query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
5fa25b664f0a0cfd722a68fc5a6ce0a3
Generar PDF con los datos del propietarios
[ { "docid": "9c2c6646d2f191e76a80e62a7ac457b7", "score": "0.0", "text": "public function pdfOwner(Owner $owner)\n {\n view()->share('owner', $owner);\n $pdf = PDF::loadView('owners.pdf-single', $owner);\n return $pdf->download($owner->first_name . '-' . str_replace(' ', '-', $owner->last_name) . '.pdf');\n }", "title": "" } ]
[ { "docid": "20e60f2894191d31e56ffa9100695bf8", "score": "0.7471556", "text": "function reportePDFPresupuestaria () {\n\t\t\t$this->objParam->defecto('ordenacion','id_formulacion_presu');\n\t\t\t$this->objParam->defecto('dir_ordenacion','asc');\n\t\t\t$this->objParam->defecto('cantidad', 1000000);\n\t\t\t$this->objParam->defecto('puntero', 0);\n\n\t\t\t$this->objParam->addFiltro(\"fpd.id_formulacion_presu = \".$this->objParam->getParametro('id_formulacion_presu'));\n\n\t\t\t$this->objFunc=$this->create('MODPresupuesto');\n\t\t\t$this->res=$this->objFunc->listarFormulacionPresuDet($this->objParam);\n\n\t\t\t//obtener titulo del reporte\n\t\t\t$titulo = 'FormulacionPresupuestaria';\n\t\t\t//Genera el nombre del archivo (aleatorio + titulo)\n\t\t\t$nombreArchivo=uniqid(md5(session_id()).$titulo);\n\n\n\t\t\t$nombreArchivo.='.pdf';\n\t\t\t$this->objParam->addParametro('orientacion','L');\n\t\t\t$this->objParam->addParametro('tamano','LETTER\t');\n\t\t\t$this->objParam->addParametro('nombre_archivo',$nombreArchivo);\n\t\t\t//Instancia la clase de pdf\n\t\t\t$this->objReporteFormato=new RFormPresupPDF($this->objParam);\n\t\t\t$this->objReporteFormato->setDatos($this->res->datos);\n\t\t\t$this->objReporteFormato->generarReporte();\n\t\t\t$this->objReporteFormato->output($this->objReporteFormato->url_archivo,'F');\n\n\n\t\t\t$this->mensajeExito=new Mensaje();\n\t\t\t$this->mensajeExito->setMensaje('EXITO','Reporte.php','Reporte generado',\n\t\t\t\t\t'Se generó con éxito el reporte: '.$nombreArchivo,'control');\n\t\t\t$this->mensajeExito->setArchivoGenerado($nombreArchivo);\n\t\t\t$this->mensajeExito->imprimirRespuesta($this->mensajeExito->generarJson());\n\n\t\t}", "title": "" }, { "docid": "c3f81595110d9489c5978bdc7d9b21f5", "score": "0.72815084", "text": "function generar_indicacion_produccion()//Crear PDFs\n{\n $this->load->library('html2pdf');\n //cargamos el modelo pdf_model\n $this->load->model('administrar_modelo');\n if(!is_dir(\"./files\"))\n {\n mkdir(\"./files\", 0777);\n mkdir(\"./files/pdfs\", 0777);\n }\n //importante el slash del final o no funcionará correctamente\n $this->html2pdf->folder('./files/pdfs/');\n\n //establecemos el nombre del archivo\n $this->html2pdf->filename('Plan_Insumos.pdf');\n\n //establecemos el tipo de papel\n $this->html2pdf->paper('a3','landscape');\n\n $this->html2pdf->html(utf8_decode($this->load->view('pdf/pdf_plan_insumos', $this->data, true)));\n //si el pdf se guarda correctamente lo mostramos en pantalla\n if($this->html2pdf->create('save'))\n {\n $this->show();\n }\n\n\n}", "title": "" }, { "docid": "fcf99af31e7619d4ead7e2b3c6acfd64", "score": "0.72667766", "text": "public function createPDForder() {\n\t\t// Implement here:\n\t\t// get all data of user's order and make a pdf....\n\t}", "title": "" }, { "docid": "8277fda348ac2f9def265707c1b8e4b4", "score": "0.7235227", "text": "public function crearPdf(){\n\n\t\t$pdf = new Pdf();\n\t\t$this->response->setHeader('Content-Type', 'application/pdf');\n\n\n\t\t$data= array(\n\t\t\t\"correo\" => \"hola@gmail.com\",\n\t\t\t\"usuario\" => \"Patito\",\n\n\t\t);\n\t\t$pdf->save_view('inicio/plantillaPDF', $data);\n\t}", "title": "" }, { "docid": "2be6828f23467e9652b60be04d012db5", "score": "0.7211702", "text": "public function emitir() {\n\n $this->prepararDados();\n\n $this->oPdf = new PDFDocument('P');\n $this->oPdf->SetFillColor(220);\n $this->oPdf->addHeaderDescription('MOVIMENTOS PENDENTES DE PAGAMENTO');\n $this->oPdf->addHeaderDescription('');\n $this->oPdf->addHeaderDescription($this->oInstituicao->getDescricao());\n $this->oPdf->Open();\n $this->oPdf->AddPage();\n $this->oPdf->SetFontSize(8);\n\n $lPrimeiraImpressao = true;\n foreach ($this->aMovimentosImpressao as $iCodigoClassificacao => $oStdClassificacao) {\n\n if (!$lPrimeiraImpressao) {\n $this->oPdf->Ln(5);\n }\n $this->imprimirCabecalho($oStdClassificacao->descricao);\n foreach ($oStdClassificacao->movimentos as $oStdMovimento) {\n\n if ($this->oPdf->getAvailHeight() < 30) {\n\n $this->oPdf->AddPage();\n $this->imprimirCabecalho($oStdClassificacao->descricao);\n }\n $this->oPdf->Cell(20, $this->iAltura, \"{$oStdMovimento->e60_codemp}/{$oStdMovimento->e60_anousu}\", \"LR\", 0, 'C');\n $this->oPdf->Cell(20, $this->iAltura, $oStdMovimento->e69_codnota, \"LR\", 0, 'C');\n $this->oPdf->Cell(20, $this->iAltura, $oStdMovimento->e53_codord, \"LR\", 0, 'C');\n $this->oPdf->Cell(90, $this->iAltura, substr($oStdMovimento->z01_nome, 0, 85), \"LR\", 0, 'L');\n $this->oPdf->Cell(20, $this->iAltura, $oStdMovimento->e69_dtvencimento->getDate(DBDate::DATA_PTBR), \"LR\", 0, 'C');\n $this->oPdf->Cell(20, $this->iAltura, trim(db_formatar(round($oStdMovimento->e81_valor, 2), 'f')), \"LR\", 1, 'R');\n }\n\n $this->oPdf->setBold(true);\n $this->oPdf->Cell(170, $this->iAltura, \"TOTAL:\", 1, 0, 'R');\n $this->oPdf->Cell(20, $this->iAltura, trim(db_formatar(round($oStdClassificacao->valor_total, 2), 'f')), 1, 1, 'R');\n $this->oPdf->setBold(false);\n $lPrimeiraImpressao = false;\n }\n $this->oPdf->showPDF();\n }", "title": "" }, { "docid": "b6dbbeaf06efe445624aa6bff8e96fa2", "score": "0.7206479", "text": "public function pdf($i,$id_datosBasicos,$id_periodo){\n \n\n }", "title": "" }, { "docid": "217b8204e527682318e3967f11335129", "score": "0.7198123", "text": "public function actionGenpdf($id_conj_rpta,$id_conj_prta,$id_fmt,$last,$estado,$nombre_formato=null,$id_capitulo=null,$idjunta=null){\n \n //Generando contenido HTML \n $_stringprint = $this->actionGenhtml($id_conj_rpta,$id_conj_prta,$id_fmt,$last,$estado,'retorno',$id_capitulo,'pdf',$idjunta);\n \n //Probando CSS en Linea\n //$_css=\".nomcapitulo{ font-size: 1.8em; font-family:arial; color:#4169E1; font-weight: bolder; border: solid 2px #000; }\";\n \n //Iniciando array de retorno\n $datos=[];\n \n //Declarando Metodos header and footer\n $methods = [ \n 'SetHeader'=>['POC'], \n 'SetFooter'=>['{PAGENO}'],\n ];\n \n //Si nmbre formato viene vacio se busca en la bd\n if($nombre_formato==null){\n $m_formato= FdFormato::findOne($id_fmt);\n $nombre_formato = $m_formato->nom_formato;\n }\n \n \n //Generando el PDF==================================================================================================\n $GeneraPdf = new genPDF();\n $propiedades=array('formato'=>$GeneraPdf::FORMATO_A4,'destino'=>$GeneraPdf::DESTINO_NAVEGADOR);\n $retorno=$GeneraPdf->generadorPDF($_stringprint,$nombre_formato,$propiedades,null,$methods,null,'@vendor/kartik-v/yii2-mpdf/assets/format.css');\n $datos['pdf']=$retorno; \n }", "title": "" }, { "docid": "75c9afa5678f719fdb81262158a01a74", "score": "0.7175548", "text": "public function pdf() \n {\n $articulos = Articulo::all();\n $coment = 'Reporte de artículos con los datos sin filtrar';\n $pdf = PDF::loadView('pdf.articulo', compact('articulos','coment'))->setPaper('letter');//,'landscape' para cambiar la horientacion de la hoja\n return $pdf->stream('articulo.pdf');//descargar directa \"dawnload\" en lugar de stream\n }", "title": "" }, { "docid": "f2f9c2ac5dcbda96437641bca9da47d3", "score": "0.71643424", "text": "public function generarPlantilla2($urlLogo, $consulta, $medico,$otros){\n $pdf = new \\FPDF_FPDF();\n $pdi = new \\FPDF_FPDI();\n \n \n $logo = $urlLogo.'laplusbelle.jpg';\n $logo2 = $urlLogo.'sonodigest.jpg';\n \n $pdf->FPDF('P','mm','Letter');\n $pdf->SetTopMargin(0);\n $pdf->SetLeftMargin(20);\n $pdf->SetAutoPageBreak(true, 6);\n $pdf->AddPage();\n $pdf->SetFillColor(255);\n \n $pdf->SetFont('Arial','B',16);\n// $pdf->Cell(120,32,$consulta[0]->getDetallePlantilla()->getPlantilla()->getNombre());\n $pdf->Cell(70);\n// $pdf->Cell(120,32,utf8_decode($consulta[0]->getDetallePlantilla()->getPlantilla()->getNombre()));\n $pdf->Cell(120,32,utf8_decode('Receta médica')); \n $pdf->Image($logo, 20, 5, 50, 20);\n $pdf->Image($logo2, 150, 5, 50, 20);\n $pdf->Line(20, 25.5, 200, 25.5);\n $pdf->Line(20, 26, 200, 26);\n \n \n $pdf->SetFont('Arial','',11);\n $pdf->SetY(20);\n $pdf->SetX(20);\n $pdf->Cell(88, 27, $medico['nombre']);\n \n $pdf->Ln(5);\n $pdf->SetX(20);\n $pdf->Cell(85, 27, $medico['cargo']);\n \n $pdf->Ln(5);\n $pdf->SetX(20);\n $pdf->Cell(85, 27, $medico['codigo']);\n \n \n \n $i=20;\n foreach($otros as $key => $otro){\n $pdf->SetY($i);\n $pdf->SetX(140);\n $pdf->Cell(20, 25, utf8_decode($otros[$key]));\n $i=$i+4;\n }\n $pdf->SetFont('Arial','B',13);\n $pdf->Ln(15);\n $pdf->Cell(20,20,utf8_decode('Información general del paciente'));\n \n \n \n \n\n \n $pdf->Ln(5); \n \n //var_dump($consulta[0]->getSesionVentaTratamientoReceta()->getFechaSesion());\n \n //$this->mostrarCelda($pdf, 32, 'Fecha: ', $consulta[0]->getConsulta()->getFechaConsulta()->format(\"d/m/Y\"));\n $this->mostrarCelda($pdf, 32, 'Fecha: ', $consulta[0]->getSesionVentaTratamientoReceta()->getFechaSesion()->format(\"d/m/Y\"));\n $this->mostrarCelda($pdf, 32, 'Proxima cita: ','_______________');\n \n $pdf->Ln(7);\n $this->mostrarCelda($pdf, 32, 'Nombre: ', utf8_decode($consulta[0]->getSesionVentaTratamientoReceta()->getPersonaTratamiento()->getPaciente()->getNombres().' '.$consulta[0]->getSesionVentaTratamientoReceta()->getPersonaTratamiento()->getPaciente()->getApellidos()));\n \n// $fecha = $consulta[0]->getSesionVentaTratamientoReceta()->getFechaSesion()->format(\"Y-m-d\"); \n \t$fecha = $consulta[0]->getSesionVentaTratamientoReceta()->getPersonaTratamiento()->getPaciente()->getPaciente()[0]->getFechaNacimiento()->format(\"Y-m-d\"); \n \n list($Y,$m,$d) = explode(\"-\",$fecha);\n $edad = date(\"md\") < $m.$d ? date(\"Y\")-$Y-1 : date(\"Y\")-$Y; \n \n $this->mostrarCelda($pdf, 13, 'Edad: ', $edad /*.' '. htmlentities('Años', ENT_QUOTES,'UTF-8')*/);\n \n $pdf->Ln(7);\n //$this->mostrarCelda($pdf, 32, 'Expediente No.: ', $consulta[0]->getConsulta()->getPaciente()->getExpediente()[0]->getNumero());\n $this->mostrarCelda($pdf, 32, 'Expediente No.: ', $consulta[0]->getSesionVentaTratamientoReceta()->getPersonaTratamiento()->getPaciente()->getPaciente()[0]->getExpediente()[0]->getNumero());\n \n $sexoPaciente = $consulta[0]->getSesionVentaTratamientoReceta()->getPersonaTratamiento()->getPaciente()->getPaciente()[0]->getSexo();\n $sexo = '';\n if($sexoPaciente == 'M'){\n $sexo = 'Masculino';\n }\n if($sexoPaciente == 'F'){\n $sexo = 'Femenino';\n }\n \n $this->mostrarCelda($pdf, 13, 'Sexo: ', $sexo);\n \n $pdf->Ln(10);\n $pdf->SetFont('Arial','B',13);\n// $pdf->Cell(32,27,'Resultado de consulta');\n $pdf->Cell(40, 27, $consulta[0]->getDetallePlantilla()->getNombre().': ', 0, 'L', false);\n $pdf->Line(20, 97, 200, 97);\n $pdf->Ln(18);\n foreach ($consulta as $value) {\n $pdf->SetX(25);\n $pdf->SetFont('Arial','B',10);\n// $pdf->MultiCell(40, 5, $value->getDetallePlantilla()->getNombre().': ', 0, 'L', false);\n $pdf->SetX(30);\n $pdf->SetFont('Arial','',10);\n $pdf->MultiCell(170, 5, $value->getValorDetalle(), 0, 'J', false);\n $this->pdf->Ln(10);\n \n }\n //$tam = count($consulta);\n \n //$espacio = \n //$pdf->Ln(55);\n $pdf->SetY(241);\n $pdf->SetX(20);\n \n $pdf->Line(20, 244, 200, 244);\n $pdf->Line(20, 245, 200, 245);\n $pdf->SetY(241);\n $pdf->SetX(20);\n $pdf->SetFont('Arial','',12);\n $pdf->Cell(85, 20, 'Tel.: 2519-2857 , 7861-0599');\n $pdf->Ln(2);\n $pdf->Cell(55, 27, utf8_decode('Colonia Escalón, Calle Cuscatlan, No. 448, San Salvador.'));\n $pdf->Ln(5);\n $pdf->SetX(20);\n \n $pdf->Output();\n \n // return $pdf;\n }", "title": "" }, { "docid": "9099acc2fd71418d0a2917c37028650d", "score": "0.7138881", "text": "function remainsMakePdf($data, $directory, $par) {\n\n function drawTableHeader(&$par) {\n $col = '<col><col><col><col>';\n $row1 = '<th rowspan=\"2\">№</th><th rowspan=\"2\">Группа</th><th rowspan=\"2\">Наименование</th><th rowspan=\"2\">Количество</th>';\n $row2 = '';\n\n if (validate_parametr($par, 'p04')) {\n $row1 .= '<th rowspan=\"2\">Текущая цена закупки</th>';\n $col .= '<col>';\n }\n if (validate_parametr($par, 'p05')) {\n $row1 .= '<th rowspan=\"2\">Текущая цена продажи</th>';\n $col .= '<col>';\n }\n if (validate_parametr($par, 'p02')) {\n $row1 .= '<th rowspan=\"2\">На сумму по закупке</th>';\n $col .= '<col>';\n }\n if (validate_parametr($par, 'p03')) {\n $row1 .= '<th rowspan=\"2\">На сумму по продаже</th>';\n $col .= '<col>';\n }\n if (validate_parametr($par, 'p01')) {\n $row1 .= '<th colspan=\"2\">Доставка</th>';\n $row2 .= '<th>Ожидает<br>поступления на<br>склад</th>';\n $row2 .= '<th>Ожидает<br>отправки<br>получателю</th>';\n $col .= '<col>';\n }\n\n $row = $row1 . '</tr><tr>' . $row2;\n\n return ['col' => $col, 'header' => $row];\n }\n\n function drawData(&$htmlDoc, &$data, &$par) {\n\n $total = [\n 'count'=>0,\n 'totalPurchase'=>0,\n 'totalSell'=>0,\n 'cntDlvr1'=>0,\n 'cntDlvr2'=>0\n ];\n\n foreach ($data['content'] as $group) {\n $groupTotal = [\n 'count'=>0,\n 'totalPurchase'=>0,\n 'totalSell'=>0,\n 'cntDlvr1'=>0,\n 'cntDlvr2'=>0\n ];\n\n $htmlDoc .= markupDrawGroup($group['group_name'], $par);\n\n foreach ($group['group_content'] as $key => $row) {\n calcVariableCol($row);\n\n $htmlDoc .= drawRow($key + 1, $row, $par);\n calcGroupTotal($groupTotal, $row);\n\n }\n $htmlDoc .= drawGroupTotal($groupTotal, $par);\n calcTotal($total, $groupTotal);\n }\n\n return $total;\n }\n\n function drawTotal(&$total, &$par) {\n $row = markupGroupTotal($grpTotal['count']);\n\n if (validate_parametr($par, 'p02')) {\n $row .= '<td class=\"subtotal-col\">' . $grpTotal['totalPurchase'] . '</td>';\n }\n if (validate_parametr($par, 'p03')) {\n $row .= '<td class=\"subtotal-col\">' . $grpTotal['totalSell'] . '</td>';\n }\n if (validate_parametr($par, 'p01')) {\n $row .= '<td class=\"subtotal-col\">' . $grpTotal['cntDlvr1'] . '</td>';\n $row .= '<td class=\"subtotal-col\">' . $grpTotal['cntDlvr2'] . '</td>';\n }\n\n $row .= '</tr>';\n\n return $row;\n }\n\n function writeFile($name, $directory, &$htmlCode) {\n $tmpName = 'make_reports/temp/' . $name . '.html';\n $fileName = 'users/' . $directory . '/reports/' . $name;\n\n $file = fopen($tmpName, 'w+');\n fputs($file, $htmlCode);\n fclose($file);\n\n $cmd = 'external_scripts/wkhtmltox/bin/wkhtmltopdf --encoding utf-8 -O Landscape '\n . $tmpName . ' ' . $fileName ;\n\n exec($cmd);\n // unlink($tmpName);\n\n if (file_exists($fileName)) {\n return true;\n }\n\n return false;\n }\n\n // ----------------------------------------\n\n function calcVariableCol(&$row) {\n\n if (isset($row['price_purchase'])) {\n $row['purchase_sum'] = $row['good_count'] * $row['price_purchase'];\n }\n\n if (isset($row['price_sell'])) {\n $row['sell_sum'] = $row['good_count'] * $row['price_sell'];\n }\n }\n\n function calcGroupTotal(&$total, &$row) {\n\n $total['count'] += (isset($row['good_count'])) ?\n $row['good_count'] : 0;\n\n $total['totalPurchase'] += (isset($row['purchase_sum'])) ?\n $row['purchase_sum'] : 0;\n\n $total['totalSell'] += (isset($row['sell_sum'])) ?\n $row['sell_sum'] : 0;\n\n $total['cntDlvr1'] += (isset($row['count_delivery_1'])) ?\n $row['count_delivery_1'] : 0;\n\n $total['cntDlvr2'] += (isset($row['count_delivery_2'])) ?\n $row['count_delivery_2'] : 0;\n }\n\n function calcTotal(&$total, &$groupTotal) {\n $total['count'] += $groupTotal['count'];\n $total['totalPurchase'] += $groupTotal['totalPurchase'];\n $total['totalSell'] += $groupTotal['totalSell'];\n $total['cntDlvr1'] += $groupTotal['cntDlvr1'];\n $total['cntDlvr2'] += $groupTotal['cntDlvr2'];\n }\n\n function drawRow($index, $rowData, &$par) {\n $row = '<tr><td class=\"col\">' . $index . '</td>';\n\n $var = isset($rowData['barcode']) ? $rowData['barcode'] : '';\n $row .= '<td class=\"col\">' . $var . '</td>';\n\n $row .= '<td class=\"col\">' . $rowData['good_name'] . '</td>';\n\n $var = (float) number_format((float) $rowData['good_count'], 2, ',', '');\n $row .= '<td class=\"col\">' . $var . '</td>';\n\n if (validate_parametr($par, 'p04')) {\n $var = isset($rowData['price_purchase']) ?\n (float) number_format((float) $rowData['price_purchase'], 2, ',', '') : '';\n\n $row .= '<td class=\"col\">' . $var . '</td>';\n }\n\n if (validate_parametr($par, 'p05')) {\n $var = isset($rowData['price_sell']) ?\n (float) number_format((float) $rowData['price_sell'], 2, ',', '') : '';\n\n $row .= '<td class=\"col\">' . $var . '</td>';\n }\n\n if (validate_parametr($par, 'p02')) {\n $var = isset($rowData['purchase_sum']) ?\n (float) number_format((float) $rowData['purchase_sum'], 2, ',', '') : '';\n\n $row .= '<td class=\"col\">' . $var . '</td>';\n }\n\n if (validate_parametr($par, 'p03')) {\n $var = isset($rowData['sell_sum']) ?\n (float) number_format((float) $rowData['sell_sum'], 2, ',', '') : '';\n\n $row .= '<td class=\"col\">' . $var . '</td>';\n }\n\n if (validate_parametr($par, 'p01')) {\n $var = isset($rowData['count_delivery_1']) ?\n (float) number_format((float) $rowData['count_delivery_1'], 2, ',', '') : '';\n $row .= '<td class=\"col\">' . $var . '</td>';\n\n $var = isset($rowData['count_delivery_2']) ?\n (float) number_format((float) $rowData['count_delivery_2'], 2, ',', '') : '';\n $row .= '<td class=\"col\">' . $var . '</td>';\n }\n\n $row .= '</tr>';\n\n return $row;\n }\n\n function drawGroupTotal(&$grpTotal, &$par) {\n $row = markupGroupTotal($grpTotal['count']);\n\n if (validate_parametr($par, 'p02')) {\n $row .= '<td class=\"subtotal-col\">' . $grpTotal['totalPurchase'] . '</td>';\n }\n if (validate_parametr($par, 'p03')) {\n $row .= '<td class=\"subtotal-col\">' . $grpTotal['totalSell'] . '</td>';\n }\n if (validate_parametr($par, 'p01')) {\n $row .= '<td class=\"subtotal-col\">' . $grpTotal['cntDlvr1'] . '</td>';\n $row .= '<td class=\"subtotal-col\">' . $grpTotal['cntDlvr2'] . '</td>';\n }\n\n $row .= '</tr>';\n\n return $row;\n }\n\n function getFileName($prefix, $date, $type) {\n function getRnd() {\n $genName = '';\n for ($i = 0; $i < 4; $i++) {\n $gen = rand(0, 9);\n $genName .= $gen;\n }\n return $genName;\n }\n // -----------------------------\n $date = date('d_m', $date);\n $name = $prefix . '_' . $date . '_';\n\n $count = 0;\n\n do {\n $number = getRnd();\n $name .= $number;\n $count ++;\n\n if ($count > 100000) {\n break;\n }\n\n } while (file_exists($name));\n\n $name .= '.' . $type;\n\n return $name;\n }\n\n // ---------- MAIN ----------\n $date = date(\"Y-m-d H:i:s\", $data['current_time']);\n $htmlDoc = markupDrawDocHeader($data['business_name'], $data['stock_name'],\n $date);\n\n $tableHeader = drawTableHeader($par);\n\n $htmlDoc .= $tableHeader['col'];\n $htmlDoc .= markupDrawTableHeaderStart();\n $htmlDoc .= $tableHeader['header'];\n $htmlDoc .= markupDrawTableHeaderEnd();\n\n $total = drawData($htmlDoc, $data, $par);\n\n $htmlDoc .= markupTotal($total['count'], $total['totalPurchase'],\n $total['totalSell'], $total['cntDlvr1'], $total['cntDlvr2']);\n\n $name = getFileName('remains', $data['current_time'], 'pdf');\n\n if (writeFile($name, $directory, $htmlDoc)) {\n return $name;\n }\n\n return false;\n}", "title": "" }, { "docid": "fa01f9815e749e8cd54867d51e1499c2", "score": "0.71069676", "text": "public function crearReporteDV()\n {\n $query = \"call read_sale_details();\";\n $result = $this->dbConnection->ExecuteReport($query);\n $resultKeys = array_keys($result[0]);\n // print_r($result);\n // print_r($resultKeys);\n\n ob_start(); //Habilita el buffer para la salida de datos\n ob_get_clean(); //Limpia lo que actualmente tenga el buffer\n // //En la variable content entre las etiquetas <page></page> va todo el contenido del pdf en formato html\n $content = \"<page backtop='40mm' backbottom='30mm' backleft='20mm' backright='20mm' footer='date;page'>\";\n $content .= \"<h1 style='text-align:center';>FARMACIA</h1>\";\n $content .= \"<h3 style='text-align:center';>Reporte Detalle Ventas</h3>\";\n\n $content .= '<link href=\"../resources/css/tabla.css\" type=\"text/css\" rel=\"stylesheet\">';\n\n $content .= \"<page_header>\n <div ><label class='logo'><img src='../resources/imgs/logo.png'></label></div>\n\n </page_header>\";\n\n\n\n $content .= \"<table '>\";\n $content .= \"<tr >\";\n for ($i = 1; $i < count($resultKeys); $i++) {\n\n $content .= \"<th>\" . $resultKeys[$i] . \"</th>\";\n }\n\n $content .= \"</tr>\";\n for ($i = 0; $i < count($result); $i++) {\n $aux = $result[$i];\n for ($j = 1; $j < count($result[$i]); $j++) {\n if ($j == 1) {\n $content .= \"<tr>\";\n }\n $b = $resultKeys[$j];\n $content .= \"<td>\" . $aux[$b] . \"</td>\";\n if ($j == count($result[$i]) - 1) {\n $content .= \"</tr>\";\n }\n\n }\n }\n print_r($content);\n\n\n $content .= \"</table>\";\n $content .= \"</page>\";\n\n\n $html2pdf = new HTML2PDF('P', 'A4', 'es'); //formato del pdf (posicion (P=vertical L=horizontal), tamaño del pdf, lenguaje)\n $html2pdf->WriteHTML($content); //Lo que tenga content lo pasa a pdf\n ob_end_clean(); // se limpia nuevamente el buffer\n $html2pdf->Output('ReporteDetalleVentas.pdf'); //se genera el pdf, generando por defecto el nombre indicado para guardar\n\n }", "title": "" }, { "docid": "21b925a52a54a39c677aa19b483f5081", "score": "0.7075874", "text": "public function createPDF($id) {\n\n $time='120';\n // $size='1024M';\n\n // ini_set('upload_max_filesize', $size);\n // ini_set('post_max_size', $size);\n\n ini_set('max_input_time', $time);\n ini_set('max_execution_time', $time);\n\n\n $inspecao = Inspecao::find($id);\n $registros = DB::table('itensdeinspecoes')\n ->join('inspecoes', 'itensdeinspecoes.inspecao_id', '=', 'inspecoes.id')\n ->join('gruposdeverificacao', 'itensdeinspecoes.grupoVerificacao_id', '=', 'gruposdeverificacao.id')\n ->join('testesdeverificacao', 'itensdeinspecoes.testeVerificacao_id', '=', 'testesdeverificacao.id')\n ->select('inspecoes.*'\n , 'itensdeinspecoes.*'\n ,'gruposdeverificacao.numeroGrupoVerificacao'\n ,'gruposdeverificacao.nomegrupo'\n ,'testesdeverificacao.numeroDoTeste'\n ,'testesdeverificacao.teste'\n )\n ->where([['inspecao_id', '=', $id]])\n ->orderBy('itensdeinspecoes.testeVerificacao_id' , 'asc')\n ->get();\n //var_dump($registros);\n // dd();\n // share data to view\n //view()->share('papelTrabalho', $inspecao, $registros);\n\n $pdf = PDF::loadView('compliance.inspecionados.pdfPapelTrabalho',compact('inspecao','registros'));\n // download PDF file with download method\n return $pdf->download('papelTrabalho_'.$inspecao->codigo.'-'.trim($inspecao->descricao).'.pdf');\n // return $pdf->setPaper('a4')->stream('Papel_Trabalho'),$pdf->download('papelTrabalho.pdf');\n }", "title": "" }, { "docid": "192ed6ef3f2f30275075cb6bd0c5e8d3", "score": "0.706645", "text": "public function carnet_pdf($id_alumno)\n {\n if (($_SESSION['is_type_user'] == 'is_admin')||($_SESSION['is_type_user'] == 'is_secretaria') || ($_SESSION['is_type_user'] == 'is_director') || ($_SESSION['is_type_user'] == 'is_rector')){\n //$id_alumno = $this->input->post('id_alumno');\n $ultimo_gestionperiodo = $this->Admin_model->ultimogestion()->id_gestionperiodo;\n $list = $this->Admin_model->get_boletin_alumno($ultimo_gestionperiodo, $id_alumno);\n \n\n $this->load->library('pdf');\n $pdf = $this->pdf->load();\n $tz = 'America/La_Paz';\n $timestamp = time();\n $dt = new DateTime(\"now\", new DateTimeZone($tz)); //first argument \"must\" be a string\n $dt->setTimestamp($timestamp); //adjust the object to correct timestamp\n $note = '';\n\n $d='';\n foreach ($list as $personqr) {\n $d .= ''.$personqr->sigla.' '.$this->encrypt->decode($personqr->primer_bim).' '.$this->encrypt->decode($personqr->segundo_bim).' ';\n $d .= ''.$this->encrypt->decode($personqr->tercer_bim).' '.$this->encrypt->decode($personqr->cuarto_bim).' '.$this->encrypt->decode($personqr->final).' ';\n }\n \n $note .='\n <html>\n <title>'.(string)$list[0]->nombres.' '.(string)$list[0]->apellido_paterno.' '.(string)$list[0]->apellido_materno.'</title>\n <head>\n <style>\n\n body{\n background-image: url('.base_url().'/assets/images/carnet.png);\n background-position: top left;\n background-repeat: no-repeat;\n background-image-resize: 3;\n }\n\n </style>\n </head>\n <body>\n ';\n \n $note .='\n\n <br>\n <br>\n <br>\n <br>\n '; \n \n $note .='<table width=\"50%\">'; \n $note .='<thead>'; \n \n $note .='<tr>'; \n $note .='<th width=\"48%\"><span style=\"color:white; font-size:8pt; font-family:courier; font-weight: normal;\n font-style: normal;\"><b>n</b></span></th>'; \n $note .='<th align=\"left\"><span style=\"color:black; font-size:8pt; font-family:courier; font-weight: normal;\n font-style: normal;\"><b>Apellidos y nombres: </b> '.(string)$list[0]->apellido_paterno.' '.(string)$list[0]->apellido_materno.' '.(string)$list[0]->nombres.'</span></th>';\n $note .='</tr>'; \n $note .='<tr>'; \n $note .='<th width=\"48%\"><span style=\"color:white; font-size:8pt; font-family:courier; font-weight: normal;\n font-style: normal;\"><b>n</b></span></th>'; \n $note .='<th align=\"left\"><span style=\"color:black; font-size:8pt; font-family:courier; font-weight: normal;\n font-style: normal;\"><b>Carrera: </b>'.(string)$list[0]->nombre_carrera.'</span></th>';\n $note .='</tr>'; \n $note .='<tr>'; \n $note .='<th width=\"48%\"><span style=\"color:white; font-size:8pt; font-family:courier; font-weight: normal;\n font-style: normal;\"><b>n</b></span></th>'; \n $note .='<th align=\"left\"><span style=\"color:black; font-size:8pt; font-family:courier; font-weight: normal;\n font-style: normal;\"><b>CI: </b>'.(string)$list[0]->ci.'</span></th>';\n $note .='</tr>'; \n $note .='<tr>'; \n $note .='<th width=\"48%\"><span style=\"color:white; font-size:8pt; font-family:courier; font-weight: normal;\n font-style: normal;\"><b>n</b></span></th>'; \n $note .='<th align=\"left\"><span style=\"color:black; font-size:8pt; font-family:courier; font-weight: normal;\n font-style: normal;\"><b>Fecha : </b>'.$dt->format('d-m-Y').'</span></th>';\n $note .='</tr>'; \n $note .='</thead>'; \n $note .='</table>';\n\n $note .='</body>\n </html>';\n $pdf=new mPDF('c','A4','','',10,10,10,25,16,13);\n\n $pdf->WriteHTML($note);\n $pdf->Output(''.(string)$list[0]->apellido_paterno.' '.(string)$list[0]->apellido_materno.' '.(string)$list[0]->nombres.'.pdf','I');\n exit;\n\n }else {\n redirect(base_url() . '', 'refresh');\n }\n //---------------CARNET por alumno---////////// \n }", "title": "" }, { "docid": "92d5fe8207cc15200b7b9b2236274da3", "score": "0.70371693", "text": "function generar_pdf($id_lote = NULL, $id_boleta = NULL)\n {\n $db['lotes_ant'] = $this->m_lotes->getRegistros($this->_session_data['id_ente'], 'id_ente');\n $impresiones = $this->m_impresiones->getRegistros();\n \n foreach ($impresiones as $_row) \n {\n $cantidad_x_hoja = $_row->x_hoja;\n } \n \n if($id_lote != NULL)\n {\n if($id_boleta != NULL)\n {\n $boletas = $this->m_boletas->getBoleta($id_boleta);\n }else\n {\n $boletas = $this->m_boletas->getLote($id_lote, $this->_session_data['id_ente']);\n }\n \n foreach ($db['lotes_ant'] as $row) \n {\n if($row->id_lote == $id_lote)\n {\n $_lote = (array) $row;\n } \n }\n }\n \n // Cargo las librerias de pdf y los parametros \n $this->load->library('CI_fpdf');\n $this->load->library('CI_Code128');\n \n $pdf = new CI_Code128();\n $pdf->AddPage();\n $pdf->SetFont('Arial','',10);\n \n $code = 'CODE 128';\n \n $cantidad = 0;\n $_div = 1;\n $_hoja = 1;\n \n // Recorro el array de boletas\n if($boletas)\n {\n foreach ($boletas as $row) \n {\n // Cada tres boletas agrego una nueva pagina\n if($_div == 1)\n {\n if($_hoja != 1)\n {\n $pdf->AddPage();\n }\n \n $_hoja = $_hoja + 1;\n $_div = 0;\n $cantidad = 0;\n }\n \n $cantidad = $cantidad + 1;\n \n $boleta_array = (array) $row;\n \n // Datos de la tabla \n $pdf->Cell(60,6, lang('ente'),1);\n $pdf->Cell(130,6, iconv(\"UTF-8\", \"CP1250//TRANSLIT\", $boleta_array['ente']) ,1);\n $pdf->Ln();\n \n $pdf->Cell(60,6, formatStringPdf(lang('codigo').' '.lang('ente')),1);\n $pdf->Cell(130,6, $boleta_array['codigo_ente'] ,1);\n $pdf->Ln();\n \n $pdf->Cell(60,6, formatStringPdf(lang('codigo').' '.lang('afiliado')),1);\n $pdf->Cell(130,6, $boleta_array['codigo_afiliado'] ,1);\n $pdf->Ln();\n \n $pdf->Cell(60,6, lang('nombre').' '.lang('afiliado'),1);\n $pdf->Cell(130,6, formatStringPdf($boleta_array['apellido'].' '.$boleta_array['nombre']) ,1);\n $pdf->Ln(); \n \n $pdf->Cell(60,6, lang('vencimiento_1'),1);\n $pdf->Cell(130,6, formatDate($boleta_array['fecha_venc_1']) ,1);\n $pdf->Ln();\n \n $pdf->Cell(60,6, lang('importe_1'),1);\n $pdf->Cell(130,6, formatImporte($boleta_array['importe_venc_1']) ,1);\n $pdf->Ln(); \n \n $pdf->Cell(60,6, lang('vencimiento_2'),1);\n $pdf->Cell(130,6, formatDate($boleta_array['fecha_venc_2']) ,1);\n $pdf->Ln();\n \n $pdf->Cell(60,6, lang('importe_2'),1);\n $pdf->Cell(130,6, formatImporte($boleta_array['importe_venc_2']) ,1);\n $pdf->Ln(); \n \n // Codigos de barra por hoja \n if($cantidad == 1)\n {\n $code128 = 65;\n $setxn = 80;\n }else if($cantidad == 2)\n {\n $code128 = 160;\n $setxn = 175;\n }else\n {\n $code128 = 255;\n $setxn = 270;\n }\n \n $pdf->Code128(50 , $code128, $boleta_array['codigo_barra'], 120, 15);\n $pdf->SetXY(55, $setxn);\n $pdf->Write(5, $boleta_array['codigo_barra']); \n \n // Saltos de linea \n $pdf->Ln(); \n $pdf->Ln();\n $pdf->Ln();\n $pdf->Ln();\n $pdf->Ln();\n \n // Lineas para dividir las boletas\n $pdf->Line(0, 95, 210, 95);\n // Segunda linea, solo cuando hay mas de un registro por hoja\n if($cantidad > 1)\n {\n $pdf->Line(0, 190, 210, 190); \n } \n \n // Seteo de variables par los salto de pagina \n if($cantidad != 0 && $cantidad % $cantidad_x_hoja == 0 )\n {\n $_div = 1;\n } \n }\n } \n \n // Armado del nombre del archivo\n $nombre_archivo = '';\n \n if($_lote['nro_cuota'] != 0)\n {\n $nombre_archivo .= $_lote['nro_cuota'].'-'; \n }\n \n if($_lote['nombre'] != '')\n {\n $nombre_archivo .= $_lote['nombre'];\n }\n \n if($nombre_archivo == '')\n {\n $nombre_archivo .= date('Ymd');\n }\n \n $nombre_archivo = preg_replace('([^A-Za-z0-9--])', '', $nombre_archivo);\n \n $pdf->Output($nombre_archivo.'.pdf','I');\n \n unset($pdf);\n }", "title": "" }, { "docid": "c026cd5bff9cd0b973c82bf94f792be2", "score": "0.69947493", "text": "public function pdf()\n {\n \n $items = TalentoHumano::all();\n $total=$items->sum('costo');\n $view = \\View::make('proyecto.pdf.products', compact('items', 'total'))->render();\n $pdf = \\App::make('dompdf.wrapper');\n $pdf->loadHTML($view);\n return $pdf->stream('products');\n \n //Codigo que realiza Descarga directa de PDF\n /* $pdf = PDF::loadView('proyecto.pdf.products', compact('products'));\n return $pdf->download('listado.pdf');*/\n }", "title": "" }, { "docid": "f199e16018570b541b0924d54603a4d8", "score": "0.69810045", "text": "function generaCompraPdf($id_compra)\n\t{\n\t\tif ($this->session->userdata('login') != 1) {\n\t\t\tredirect('login');\n\t\t}\n\t\t$data['id_compra'] = $id_compra;\n\t\t$this->load->view('compras/compra_pdf', $data);\n\t}", "title": "" }, { "docid": "cba0eac5bf494c98451972cd484f9fec", "score": "0.6958241", "text": "public function actionExportToPdf() {\n if (TODOS == 0) {\n $formacionAcademica = FormacionAcademica::model()->findAll(array('condition' => 'activo = true'));\n }\n\n if (TODOS == 1) {\n $formacionAcademica = FormacionAcademica::model()->findAll();\n }\n\n if ($formacionAcademica == null || count($formacionAcademica) == 0)\n return;\n $this->renderPartial(\"exportPdf\", array('formacionAcademica' => $formacionAcademica));\n }", "title": "" }, { "docid": "52bdd0227b969935eb6d06524ce55b65", "score": "0.6911339", "text": "function PDF_Detalhe()\r\n{\r\n\r\n $mgt_planejamento_necessidade_nro = $_REQUEST['mgt_planejamento_necessidade_nro'];\r\n\r\n $pdf = new PDF('P');// relatorio em orientacao \"paisagem\"\r\n\r\n $pdf->SetName(\"Ordem de Producao - Nro.: \" . trim($mgt_planejamento_necessidade_nro));\r\n\r\n $pdf->Open();\r\n $pdf->AddPage();\r\n $pdf->SetFont('Arial', '', 8);\r\n\r\n //*** Detalhe dos Itens ***\r\n\r\n $borda = 1;\r\n\r\n while((GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->EOF) <> 1)\r\n {\r\n //*** Lista o Detalhe ***\r\n\r\n $eixo_y = $pdf->GetY();\r\n\r\n\t $pdf->Cell(10, 5, GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->Fields['mgt_planejamento_necessidade_nivel'], $borda, 0, 'R');\r\n $pdf->Cell(25, 5, GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->Fields['mgt_planejamento_necessidade_produto_codigo'], $borda, 0, 'L');\r\n $eixo_x = $pdf->GetX();\r\n $eixo_y = $pdf->GetY();\r\n $pdf->MultiCell(70, 5, GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->Fields['mgt_planejamento_necessidade_produto_descricao'], $borda, 'L');\r\n $eixo_y_2 = $pdf->GetY();\r\n $pdf->SetXY($eixo_x + 70, $eixo_y);\r\n\r\n if( (GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->Fields['mgt_planejamento_necessidade_qtde_um_produto'] - intval(GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->Fields['mgt_planejamento_necessidade_qtde_um_produto'])) > 0 )\r\n {\r\n $pdf->Cell(30, 5, GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->Fields['mgt_planejamento_necessidade_qtde_um_produto'], $borda, 0, 'R');\r\n }\r\n\t else\r\n {\r\n $pdf->Cell(30, 5, intval(GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->Fields['mgt_planejamento_necessidade_qtde_um_produto']), $borda, 0, 'R');\r\n }\r\n\r\n\t $pdf->Cell(13, 5, GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->Fields['mgt_planejamento_necessidade_medida'], $borda, 0, 'L');\r\n\r\n\t if( (GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->Fields['mgt_planejamento_necessidade_qtde_produzir'] - intval(GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->Fields['mgt_planejamento_necessidade_qtde_produzir'])) > 0 )\r\n {\r\n \t $pdf->Cell(20, 5, GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->Fields['mgt_planejamento_necessidade_qtde_produzir'], $borda, 0, 'R');\r\n }\r\n\t else\r\n {\r\n \t $pdf->Cell(20, 5, intval(GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->Fields['mgt_planejamento_necessidade_qtde_produzir']), $borda, 0, 'R');\r\n }\r\n\r\n if( (GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->Fields['mgt_planejamento_necessidade_qtde_falta'] - intval(GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->Fields['mgt_planejamento_necessidade_qtde_falta'])) > 0 )\r\n {\r\n $pdf->Cell(22, 5, GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->Fields['mgt_planejamento_necessidade_qtde_falta'], $borda, 1, 'R');\r\n\t }\r\n\t else\r\n {\r\n $pdf->Cell(22, 5, intval(GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->Fields['mgt_planejamento_necessidade_qtde_falta']), $borda, 1, 'R');\r\n\t }\r\n\r\n $pdf->SetY($eixo_y_2);\r\n\r\n GetConexaoPrincipal()->SQL_MGT_Planejamento_Necessidades->next();\r\n }\r\n\r\n //$pdf->line(10, $pdf->GetY(), 200, $pdf->GetY());// Desenha uma linha\r\n\r\n $pdf->Output();\r\n}", "title": "" }, { "docid": "b03a8e943cd3d2d6be4d48bd81cc84e4", "score": "0.68951076", "text": "public function pdf()\n {\n\n $DBase = new Connect();\n $db = $DBase->connexion();\n $q = $db->prepare('SELECT nom,prenom,adresseliv,villeliv,cpliv,reference,total,cmd_art.quantite,total,prix,description from commande \n join cmd_art on commande.id = commande\n join client on client.id = client\n join article on article.id = cmd_art.article\n where client = \"'.$_SESSION['id'].'\" \n order by commande.id desc limit '.$_SESSION['nbArticle']);\n $q->execute();\n \n return $q;\n }", "title": "" }, { "docid": "57f7b5cf75d07c2867ec1bd535b947cd", "score": "0.6890711", "text": "public function create()\n {\n $ideas = Ideanegocio::all();\n\n $pdf = PDF::loadView('pdf.proyectos', compact('ideas'));\n\n return $pdf->download('proyectos.pdf');\n\n \n }", "title": "" }, { "docid": "dcebf549f840ffc67e4eedc024909b5c", "score": "0.6873588", "text": "public function pdflistaUser(Request $request){\n $iddepto=Input::get('dept');\n\n $docentesU = Persona::select('personas.idpersona',DB::raw(\"personas.nombres as nombre, personas.apellidos as apellidos \"))->join('docentes','personas.idpersona','=','docentes.idpersona')->join('rol_carreras','docentes.iddocente','=','rol_carreras.iddocente')->join('carreras','rol_carreras.idcarrera','=','carreras.idcarrera')->where('carreras.iddepartamento','=',$iddepto)->groupBy('personas.idpersona')->get();\n \n $roles = Rol::select('roles.idrol','roles.nombre')->get();\n $carreras = Carrera::all();\n $docentes=Docente::all();\n $departamento=Departamento::all();\n \n $rol_carreras=Rol_carrera::all();\n //dd($roles);\n \n\n $pdf=\\PDF::loadview('ues.usuarios.listaUser', array('iddepto'=>$iddepto,'departamento'=>$departamento,'docentes'=>$docentes,'docentesU'=>$docentesU,'roles'=>$roles, 'carreras'=>$carreras,'rol_carreras'=>$rol_carreras))->setPaper('letter','portrait');\n return $pdf->stream('Lista_Usuarios.pdf');\n \n \n\n}", "title": "" }, { "docid": "83eb2ec0ada315a78a344daad0bb3f12", "score": "0.6859505", "text": "public function pdfproductspay(){\n $sales=Sale::where(\"status\",\"=\",2)->with(\"pdf\")->with(\"orders\")->with(\"user\")->get();\n $cont=0;\n \n foreach ($sales as $v) {\n $cont++; \n }\n for ($i=0; $i < $cont ; $i++) { \n $sales[$i]->product= Product::where(\"id\",\"=\",$sales[$i]->orders[0]->product_id)->first(); \n } \n \n \n \n $pdf = \\PDF::loadView('admin.sale.pdfproductspay',['sales'=>$sales]); \n return $pdf->stream('factura.pdf');\n }", "title": "" }, { "docid": "e6c82a5839bf59e91205686d24d2ea4c", "score": "0.68532455", "text": "public function convertToPdf($data);", "title": "" }, { "docid": "54bc7bb65f49bb97a1a6b2d448d7709b", "score": "0.684655", "text": "public function createPdf() {\n $length = 32;\n $today = date(\"m.d.y H:i:s\");\n $docKey = substr(hash('md5', $this->id.'-'.$today), 0, $length); // Hash it\n $agreement = $this->agreement;\n if(!$agreement){\n return false;\n }\n \n $firstClient = ($this->doc_type != Bill::BILL_DOC_TYPE_CESSION) ? $agreement->firstClient : ($this->cession_direction == 'D' ? $agreement->firstClient : $agreement->thirdClient);\n $secondClient = ($this->doc_type != Bill::BILL_DOC_TYPE_CESSION) ? $agreement->secondClient : ($this->cession_direction == 'D' ? $agreement->thirdClient : $agreement->secondClient);\n \n $parentList = $this->parents;\n $avansNumberList = '';\n $avansSumma = 0;\n if(!empty($parentList)){\n $avansSumma = $this->parentPaymentsSumma;\n $avansNumberList = [];\n foreach ($parentList as $bill) {\n $avansNumberList[] = $bill->doc_number;\n }\n $avansNumberList = ((count($avansNumberList) > 1) ? '## ' : '# ').implode(', ', $avansNumberList);\n }\n $data = [\n 'doc-type' => $this->doc_type,\n 'template-dir' => 'invoice',\n 'clientId' => $firstClient->id,\n //'mode' => 'FI',\n 'mode' => 'F',\n 'doc-key' => $docKey,\n 'agreement' => $agreement,\n 'invoice' => $this,\n 'billProducts' => $this->billProducts,\n 'firstClient' => $firstClient,\n 'secondClient' => $secondClient,\n 'firstClientBank' => $this->firstClientBank,\n 'secondClientBank' => $this->secondClientBank,\n 'firstClientPerson' => $this->firstClientPerson,\n 'secondClientPerson' => $this->secondClientPerson,\n 'firstClientAddress' => $firstClient->legal_address,\n 'secondClientAddress' => $secondClient->legal_address,\n 'avansNumberList' => $avansNumberList,\n 'avansSumma' => $avansSumma,\n ];\n \n $printModule = new PrintModule($data);\n $pdfFilename = $printModule->printDoc();\n unset($printModule);\n \n $result = $pdfFilename && (bool)$this->updateAttributes([\n 'doc_key' => $docKey\n ]);\n \n if(in_array($data['mode'], ['I', 'FI'])){\n exit;\n }\n \n return $result;\n }", "title": "" }, { "docid": "7362faeb3c29d6086a72c11aef8ff212", "score": "0.6844239", "text": "public function printPDF()\n {\n $comisiones = DB::select($this->query_comisiones);\n $pdf = PDF::loadView('empleados.printPDF', compact('comisiones')); \n return $pdf->download('comision-list.pdf');\n }", "title": "" }, { "docid": "b8c0257442d2f95988cab559ca669493", "score": "0.6825461", "text": "public function crearReporteM()\n {\n $query = \"call read_medicine();\";\n $result = $this->dbConnection->ExecuteReport($query);\n $resultKeys = array_keys($result[0]);\n // print_r($result);\n // print_r($resultKeys);\n\n ob_start(); //Habilita el buffer para la salida de datos\n ob_get_clean(); //Limpia lo que actualmente tenga el buffer\n // //En la variable content entre las etiquetas <page></page> va todo el contenido del pdf en formato html\n $content = \"<page backtop='40mm' backbottom='30mm' backleft='20mm' backright='20mm' footer='date;page'>\";\n\n\n $content .= \"<h1 style='text-align:center';>FARMACIA</h1>\";\n $content .= \"<h3 style='text-align:center';>Reporte Medicamentos</h3>\";\n\n $content .='<link href=\"https://fonts.googleapis.com/css?family=Rock+Salt\" rel=\"stylesheet\" type=\"text/css\">';\n $content .= '<link href=\"../resources/css/tabla.css\" type=\"text/css\" rel=\"stylesheet\">';\n $content .= \"<page_header>\n <div ><label class='logo'><img src='../resources/imgs/logo.png'></label></div>\n </page_header>\";\n\n\n // <page_footer>\n // <table style='width: 100%;'>\n // <tr>\n // <td>\n // <div><label class='footer'>Aqui pueden cargar una imagen que va en el footer</label></div>\n // </td>\n // </tr>\n // </table>\n // </page_footer>\";\n\n $content .= \"<table >\";\n $content .= \"<tr >\";\n /* for ($i = 1; $i < count($resultKeys); $i++) {\n // print_r($resultKeys[$i]);\n $content .= \"<th>\" . $resultKeys[$i] . \"</th>\";\n }*/\n $content .= \"<th>Nombre Medicamento</th>\";\n $content .= \"<th>Descripcion</th>\";\n $content .= \"<th>Fecha Expiracion</th>\";\n $content .= \"<th>Cantidad</th>\";\n $content .= \"<th>Fecha Fabricacion</th>\";\n $content .= \"<th>Precio</th>\";\n $content .= \"<th>Laboratorio</th>\";\n $content .= \"<th>Empleado</th>\";\n $content .= \"</tr>\";\n for ($i = 0; $i < count($result); $i++) {\n $aux = $result[$i];\n for ($j = 1; $j < count($result[$i]); $j++) {\n if ($j == 1) {\n $content .= \"<tr>\";\n }\n $b = $resultKeys[$j];\n $content .= \"<td>\" . $aux[$b] . \"</td>\";\n if ($j == count($result[$i]) - 1) {\n $content .= \"</tr>\";\n }\n // print_r($aux[$b] . $j . \" \");\n }\n }\n print_r($content);\n // for ($cont = 0; $cont < 20; $cont++) {\n // $content .= \"<tr>\";\n // $content .= \"<td>Codigo \" . $cont . \"</td>\";\n // $content .= \"<td>Nombre \" . $cont . \"</td>\";\n // $content .= \"<td>Apellido \" . $cont . \"</td>\";\n // $content .= \"<td>Cedula \" . $cont . \"</td>\";\n // $content .= \"<td>Edad \" . $cont . \"</td>\";\n // $content .= \"<td>Semestre \" . $cont . \"</td>\";\n // $content .= \"</tr>\";\n // }\n\n $content .= \"</table>\";\n $content .= \"</page>\";\n\n\n $html2pdf = new HTML2PDF('P', 'A4', 'es'); //formato del pdf (posicion (P=vertical L=horizontal), tamaño del pdf, lenguaje)\n $html2pdf->WriteHTML($content); //Lo que tenga content lo pasa a pdf\n ob_end_clean(); // se limpia nuevamente el buffer\n $html2pdf->Output('ReporteInventario.pdf'); //se genera el pdf, generando por defecto el nombre indicado para guardar\n\n }", "title": "" }, { "docid": "a490ec693942ffb6a5ca9c3d2b249919", "score": "0.6771551", "text": "public function pdf(Request $request)\n {\n $dari = $request->dari;\n $sampai = $request->sampai;\n // $dateString = date('Y-m', strtotime($periode));\n \t $pemesanan = Pemesanan::where('created_at', '>=', $dari, 'and', '<=', $sampai )\n ->get();\n // $pemesanan = Pemesanan::all();\n\n \t$pdf = PDF::loadview('pemesanan_pdf', ['pemesanan'=>$pemesanan, 'dari'=>$dari]);\n \treturn $pdf->stream();\n }", "title": "" }, { "docid": "f82ca0886980f20a9ed691b0ce637428", "score": "0.6762962", "text": "function Rpt_Producto_Pdf($frm=\"\")\n\t\t\t{\n\t\t\t\t$objResponse = new xajaxResponse();\n\n\n\t\t\t\tif(empty($frm[\"B_cParDescripcion_\"]))\n\t\t\t\t{\n\t\t\t\t\t $cParDescripcion=\"-\";\n\t\t\t\t}else{\n\t\t\t\t\t$cParDescripcion=$frm[\"B_cParDescripcion_\"];\n\t\t\t\t}\n\t\t\t\tif(empty($frm[\"B_cParNombre_\"]))\n\t\t\t\t{\n\t\t\t\t\t $cParNombre=\"-\";\n\t\t\t\t}else{\n\t\t\t\t\t $cParNombre=$frm[\"B_cParNombre_\"];\n\t\t\t\t}\n\t\t\t\t\t#Se Instrancia la clase Bean_parametro en un objeto y se encapasula los con los datos\n\t\t\t\t\t$objParametro = new ClsParametro() ;\n\t\t\t\t\t$bean_parametro = new Bean_parametro() ;\n\n\n\t\t\t\t\t$bean_parametro->setnOriRegistros(0) ;\n\t\t\t\t\t$bean_parametro->setnNumRegMostrar(0) ;\n\t\t\t\t\t$bean_parametro->setnPagRegistro(0) ;//que no pagine\n\t\t\t\t\t$bean_parametro->setnParClase(2007) ;\n\n\t\t\t\t\t$bean_parametro->setcParNombre($cParNombre) ;\n\t\t\t\t\t$bean_parametro->setcParDescripcion($cParDescripcion) ;\n\n\t\t\t\t\t# se llama a la funciona(sin paginado) y se le envia el objeto\n\t\t\t \t$data = $objParametro->Filtrar_Parametro($bean_parametro);\n\n\t\t\t\t$formulario= \"\";\n\n\t\t\t\tif (count($data[\"cuerpo\"]) > 0)\n\t\t\t\t{\n\t\t\t\t\t$i=1;\n\t\t\t\t\t$formulario .= \"<table class='table'>\" ;\n\t\t\t\t\t$formulario .='\n\t\t\t\t\t\t\t<tr class=\"border-bottom\">\n\t\t\t\t\t\t\t\t<th class=\"\" style=\"width:10%;\"> Número</th>\n\t\t\t\t\t\t\t\t<th class=\"\" style=\"width: 30% ;\">Abreviatura</th>\n\t\t\t\t\t\t\t\t<th class=\"\" style=\"width: 60%;\"> Productos </th>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t' ;\n\n\t\t\t\t\t$formulario .= \"<tbody>\" ;\n\n\t\t\t\t\tfor ($i = 0; $i < count($data[\"cuerpo\"]); $i++)\n\t \t{\n\t\t\t\t\t\t\t$formulario.=\"<tr>\";\n\t\t $formulario.= \t\"<td style='text-align: center ;'>\".($i+1).\" </td>\";\n\t\t\t\t\t\t \t$formulario.= \t\"<td>\".$data[\"cuerpo\"][$i][\"cParNombre\"].\"</td>\";\n\t\t\t\t\t\t \t$formulario.= \t\"<td>\".$data[\"cuerpo\"][$i][\"cParDescripcion\"].\"</td>\";\n\t\t\t\t\t\t\t$formulario.=\"</tr>\";\n\n\t\t\t\t\t}\n\t\t\t\t\t$formulario .= \"</tbody>\" ;\n\t\t\t\t\t$formulario .= \"<tfoot>\" ;\n\t\t\t\t\t$formulario .= \" \t<tr>\" ;\n\t\t\t\t\t$formulario .= \" \t<td colspan='3' class='border-top'> </td>\" ;\n\t\t\t\t\t$formulario .= \" \t</tr>\" ;\n\n\t\t\t\t\t$formulario .= \"</tfoot>\" ;\n\n\t\t\t\t\t$formulario .= \"</table>\" ;\n\t\t\t\t}\n\n\t\t\t\t$HTML =\"<html>\n\t\t\t\t\t\t\t<body>\n\t\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t\t\t<h3 class='rounded text-center mayusc title'> Lista de Productos </h3>\n\t\t\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\".$formulario.\"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</body>\n\t\t\t\t\t\t\t</html>\";\n\n\t\t\t\t\t$mpdf = Rpt_Generar_Pdf(\"A4\") ;\n\t\t\t\t\t$fichero = '../documents/pdf.pdf';\n\t\t\t\t\t$mpdf->WriteHTML($HTML);\n\t\t\t\t\t$mpdf->Output( $fichero);\n\t\t\t\t\t$objResponse->script('window.open(\"'.$fichero.'\", \"_blank\");');\n\n\t\t\t return $objResponse;\n\t\t\t}", "title": "" }, { "docid": "f9b67185d65e0b026379ff9820ca7f01", "score": "0.67485714", "text": "public function pdf()\n {\n $categorias = Categoria::all(); \n\n $pdf = PDF::loadView('almacen.categoria.invoice', compact('categorias'));\n\n return $pdf->stream('listado.pdf');\n }", "title": "" }, { "docid": "587563817ae32716f744a61a4ec37c87", "score": "0.6747145", "text": "public function generarPDF(Request $request){\n\n\t\t$mes = $request->mes;\n\t\t$annio = $request->annio;\n\t\t$mayor_obrero = 0;\n\t\t$mayor_empleado = 0;\n\n\t\t$nominas_obrero = DB::table('nomina')\n\t\t\t\t\t\t\t\t->where('fecha_inicio', 'like', '%/'.$mes.'/'.$annio.'%')\n\t\t\t\t\t\t\t\t->where('tipo', 'obrero')\n\t\t\t\t\t\t\t\t->get();\n\n\t\t$nominas_empleado = DB::table('nomina')\n\t\t\t\t\t\t\t\t->where('fecha_inicio', 'like', '%/'.$mes.'/'.$annio.'%')\n\t\t\t\t\t\t\t\t->where('tipo', 'empleado')\n\t\t\t\t\t\t\t\t->get();\n\n\t\tforeach ($nominas_obrero as $obrero) {\n\t\t\tif($obrero->id > $mayor_obrero){\n\t\t\t\t$mayor_obrero = $obrero->id;\n\t\t\t}\n\t\t}\n\n\t\tforeach ($nominas_empleado as $empleado) {\n\t\t\tif($empleado->id > $mayor_empleado){\n\t\t\t\t$mayor_empleado = $empleado->id;\n\t\t\t}\n\t\t}\n\n\t\t$html = view('pdf.devengado')->with('mayor_obrero', $mayor_obrero)->with('mayor_empleado', $mayor_empleado)->with('mes', $mes)->with('annio', $annio)->render();\n\t\treturn PDF::load($html)->show();\n\t}", "title": "" }, { "docid": "6313df4b52b2cd823594612d0942bad2", "score": "0.67184144", "text": "public function savepdfAction()\n {\n $pdfOptions = new Options();\n $pdfOptions->set('defaultFont', 'Arial');\n $em = $this->getDoctrine()->getManager();\n $produit = $em->getRepository('BaskelBundle:Produit')->findAll();\n // Instantiate Dompdf with our options\n $dompdf = new Dompdf($pdfOptions);\n\n // Retrieve the HTML generated in our twig file\n $html = $this->renderView('@Baskel/Produit/pdf.html.twig', array(\n 'produit' => $produit));\n\n // Load HTML to Dompdf\n $dompdf->loadHtml($html);\n\n // (Optional) Setup the paper size and orientation 'portrait' or 'portrait'\n $dompdf->setPaper('A4', 'portrait');\n\n // Render the HTML as PDF\n $dompdf->render();\n\n // Output the generated PDF to Browser (force download)\n $dompdf->stream(\"mypdf.pdf\", [\n \"Attachment\" => true\n ]);\n }", "title": "" }, { "docid": "28e462c06960cc0a34dcb86f4a07eac2", "score": "0.67168915", "text": "public function pdfac() //vista solo usuarios activos\n {\n $articulos = Articulo::orderBy('id','DESC')->where('estado', 'activo')->get();\n $coment = 'Reporte de artículos activos';\n $pdf = PDF::loadView('pdf.articulo', compact('articulos','coment'))->setPaper('letter');//,'landscape' para cambiar la horientacion de la hoja\n return $pdf->stream('articulo.pdf');//descargar directa \"dawnload\" en lugar de stream\n }", "title": "" }, { "docid": "3ff04abff1ef970aad000a6fdab8cdfd", "score": "0.67126936", "text": "public function crearReporteC()\n {\n $query = \"call read_client();\";\n $result = $this->dbConnection->ExecuteReport($query);\n $resultKeys = array_keys($result[0]);\n // print_r($result);\n // print_r($resultKeys);\n\n ob_start(); //Habilita el buffer para la salida de datos\n ob_get_clean(); //Limpia lo que actualmente tenga el buffer\n // //En la variable content entre las etiquetas <page></page> va todo el contenido del pdf en formato html\n $content = \"<page backtop='40mm' backbottom='30mm' backleft='20mm' backright='20mm' footer='date;page'>\";\n $content .= \"<h1 style='text-align:center';>FARMACIA</h1>\";\n $content .= \"<h3 style='text-align:center';>Reporte Clientes</h3>\";\n\n $content .= '<link href=\"../resources/css/tabla.css\" type=\"text/css\" rel=\"stylesheet\">';\n\n $content .= \"<page_header>\n <div ><label class='logo'><img src='../resources/imgs/logo.png'></label></div>\n\n </page_header>\";\n\n\n // <page_footer>\n // <table style='width: 100%;'>\n // <tr>\n // <td>\n // <div><label class='footer'>Aqui pueden cargar una imagen que va en el footer</label></div>\n // </td>\n // </tr>\n // </table>\n // </page_footer>\";\n\n $content .= \"<table '>\";\n $content .= \"<tr >\";\n /* for ($i = 1; $i < count($resultKeys); $i++) {\n\n $content .= \"<th>\" . $resultKeys[$i] . \"</th>\";\n }*/\n $content .= \"<th>Nombre</th>\";\n $content .= \"<th>Apellidos</th>\";\n $content .= \"<th>Cedula</th>\";\n $content .= \"<th>Genero</th>\";\n $content .= \"<th>Fecha Nacimiento</th>\";\n\n\n $content .= \"</tr>\";\n for ($i = 0; $i < count($result); $i++) {\n $aux = $result[$i];\n for ($j = 1; $j < count($result[$i]); $j++) {\n if ($j == 1) {\n $content .= \"<tr>\";\n }\n $b = $resultKeys[$j];\n $content .= \"<td>\" . $aux[$b] . \"</td>\";\n if ($j == count($result[$i]) - 1) {\n $content .= \"</tr>\";\n }\n\n }\n }\n print_r($content);\n\n\n $content .= \"</table>\";\n $content .= \"</page>\";\n\n\n $html2pdf = new HTML2PDF('P', 'A4', 'es'); //formato del pdf (posicion (P=vertical L=horizontal), tamaño del pdf, lenguaje)\n $html2pdf->WriteHTML($content); //Lo que tenga content lo pasa a pdf\n ob_end_clean(); // se limpia nuevamente el buffer\n $html2pdf->Output('ReporteClientes.pdf'); //se genera el pdf, generando por defecto el nombre indicado para guardar\n\n }", "title": "" }, { "docid": "f68b5d100e1acb10017c8b97db9507f6", "score": "0.67110765", "text": "public function generate_pdf($playlist, $filePath, $sort = 'asc', $pdfType = 'all', $pdfId, $sommaire = true, $couv = true, $post = true) {\r\n\t\r\n\t\t// Fonction de comparaison pour le tri sort\r\n\t\t/*function cmp($a, $b) {\r\n\t\t\treturn strcmp($a->titre, $b->titre);\r\n\t\t}*/\r\n\t\t\r\n\t\t$media_model = new Media_model();\r\n\t\t$instruments_model = new Instruments_model();\r\n\t\r\n\t\t// On donne une plus grosse mémoire au serveur php\r\n\t\t$oldMemValue = ini_set('memory_limit', '2048M');\r\n\t\t\r\n\t\t// On charge la librairie pour zipper et pour avoir les infos de fichiers\r\n\t\thelper('filesystem');\r\n\t\t\r\n\t\t// On charge la librairie mpdf\r\n\t\trequire_once APPPATH . '\\ThirdParty\\vendor\\autoload.php';\r\n\t\t\r\n\t\t\r\n\t\t// On récupère le nom de fichier\r\n\t\t$tokens = explode('/', $filePath);\r\n\t\t$fileName = $tokens[sizeof($tokens)-1];\r\n\t\t\r\n\t\t// On gère le tri alphabéthique si besoin\r\n\t\tif ($sort == 'asc') {\r\n\t\t\t// On peut bidouiller l'ordre de la playlist car elle n'est pas update !!!!!\r\n\t\t\tusort($playlist['list'], function ($a, $b) {\r\n\t\t\t\t\t\t\t\t\t\t\treturn strcmp($a->titre, $b->titre);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\t\r\n\t\t// On créé les objets pdf\r\n\t\t$mpdf = new \\Mpdf\\Mpdf(); // pdf principal\r\n\t\t$tempdf = new \\Mpdf\\Mpdf();\r\n\t\t$sompdf = new \\Mpdf\\Mpdf(); // couv + sommaire\r\n\t\t$empty = new \\Mpdf\\Mpdf();\r\n\t\t\r\n\r\n\t\t// On importe le css du pdf\r\n\t\t$stylesheet = file_get_contents(\"ressources/global/pdfStyle.css\");\r\n\t\t$mpdf->WriteHTML($stylesheet,1);\r\n\t\t$sompdf->WriteHTML($stylesheet,1);\r\n\t\t\r\n\t\t/************************************** PDF Secondaires ******************************/\r\n\t\t// Page 1 => index sur une page par défaut\r\n\t\t//$tempdf->AddPage();\r\n\t\t$sompdf->WriteHTML(\"<p class='indexTitle'>Index</p>\",2);\r\n\t\t$sompdf->WriteHTML(\"<table id='index'>\",2);\r\n\t\t\r\n\t\t//$tempURL = \"ressources/morceaux/\".dir_path($version->titre).\"/\".$version->collection.\"/\".urldecode($version->mp3URL);\r\n\r\n\t\t$noerror = true;\r\n\t\t$error_msg = 'error :: ';\r\n\r\n\t\t// On est page page 4 (à gauche derrière l'index page 3)\r\n\t\t$page = 4;\r\n\t\t$index = 1; // pour colorer les even et odd\r\n\t\tforeach ($playlist['list'] as $version) {\r\n\t\t\t// On saute les pauses\r\n\t\t\tif ($version->versionId > 0) {\r\n\t\t\t\t\r\n\t\t\t\t// On récupère les medias associés\r\n\t\t\t\t$list_media = $media_model->get_selected_medias($version->versionId, $pdfType, $pdfId);\r\n\t\t\t\t\r\n\t\t\t\t// On normalise le path\r\n\t\t\t\t$version_path = dir_path($version->titre);\r\n\t\t\t\t\r\n\t\t\t\tlog_message(\"debug\", \"PDF ********** \".$version_path);\r\n\t\t\t\t\r\n\t\t\t\t// On parcours les medias d'une version\r\n\t\t\t\tforeach ($list_media as $media) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t// On vérifie que le media existe\r\n\t\t\t\t\tif (!file_exists(urldecode(\"ressources/morceaux/\".$version_path.\"/\".$version->collection.\"/\".$media->URL))) {\r\n\t\t\t\t\t\t$noerror = false;\r\n\t\t\t\t\t\t$error_msg = 'Error : Le fichier \"<b>'.urldecode(\"ressources/morceaux/\".$version_path.\"/\".$version->collection.\"/\".$media->URL).'</b>\" est introuvable sur le serveur. L\\'opération est interrompue';\r\n\t\t\t\t\t\t// On break tout\r\n\t\t\t\t\t\tbreak 2;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Le fichier existe\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// On compte les page du pdf importé\r\n\t\t\t\t\t\t$pagecount = $tempdf->SetSourceFile(urldecode(\"ressources/morceaux/\".$version_path.\"/\".$version->collection.\"/\".$media->URL));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On ajoute une page empty si besoin\r\n\t\t\t\t\t\tif ($pagecount%2 == 0 && $page%2 == 1) {\r\n\t\t\t\t\t\t\t$pagecount = $tempdf->SetSourceFile(urldecode(\"ressources/global/empty.pdf\"));\r\n\t\t\t\t\t\t\t$tplId = $tempdf->ImportPage($pagecount);\r\n\t\t\t\t\t\t\t$tempdf->AddPage();\r\n\t\t\t\t\t\t\t$tempdf->UseTemplate($tplId);\r\n\t\t\t\t\t\t\t$page++;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// On reload la page courante\r\n\t\t\t\t\t\t\t$pagecount = $tempdf->SetSourceFile(urldecode(\"ressources/morceaux/\".$version_path.\"/\".$version->collection.\"/\".$media->URL));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On ajoute une ligne à l'index\r\n\t\t\t\t\t\t$state = $index%2 ? \"impair\" : \"pair\";\r\n\t\t\t\t\t\t$media->catId > 0 ? $note = $media->catName : $note = '';\r\n\t\t\t\t\t\t$sompdf->WriteHTML(\"<tr class='\".$state.\"'><td class='songTitle'><b>&nbsp;\".$version->titre.\"&nbsp;</b><small><i>&nbsp;&nbsp;\".$note.\"</i></small></td><td class='artist'>&nbsp;&nbsp;&nbsp;\".$version->artisteLabel.\"</td><td class='pageNum'>\".$page.\"</td></tr>\",2);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On importe chaque page du pdf\r\n\t\t\t\t\t\tfor ($i=0; $i<$pagecount; $i++) {\r\n\t\t\t\t\t\t\t// Saut de page\r\n\t\t\t\t\t\t\t$tempdf->AddPage();\r\n\t\t\t\t\t\t\t// On met le pdf en mémoire\r\n\t\t\t\t\t\t\t$tplId = $tempdf->ImportPage($i+1);\r\n\t\t\t\t\t\t\t// On le fusionne avec le pdf principal\r\n\t\t\t\t\t\t\t$tempdf->UseTemplate($tplId);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On actualise le numéro de page\r\n\t\t\t\t\t\t$page += $pagecount;\r\n\t\t\t\t\t\t$index++;\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\t// La postface doit être sur un numéro de page pair\r\n\t\tif ($page%2 == 1) {\r\n\t\t\t$pagecount = $tempdf->SetSourceFile(urldecode(\"ressources/global/empty.pdf\"));\r\n\t\t\t$tplId = $tempdf->ImportPage($pagecount);\r\n\t\t\t$tempdf->AddPage();\r\n\t\t\t$tempdf->UseTemplate($tplId);\r\n\t\t\t$page++;\r\n\t\t}\r\n\t\t\r\n\t\t// On ferme et on écrit l'index\r\n\t\t$sompdf->WriteHTML(\"</table>\",2);\r\n\t\t$sompdf->Output(\"ressources/global/tempIndex.pdf\",'F');\r\n\t\t\r\n\t\t// On écrit le pdf temporaire\r\n\t\t$tempdf->Output(\"ressources/global/tempPdf.pdf\",'F');\r\n\t\t\r\n\t\t\r\n\t\t/****************************** PDF principal ********************************/\r\n\t\t\r\n\t\t// COUVERTURE\r\n\t\tif ($couv) {\r\n\t\t\t// On importe la page de couverture\r\n\t\t\t$pagecount = $mpdf->SetSourceFile(urldecode(\"ressources/global/couverture.pdf\"));\r\n\t\t\t$tplId = $mpdf->ImportPage($pagecount);\r\n\t\t\t$mpdf->UseTemplate($tplId);\r\n\t\t\t// On écrit le titre\r\n\t\t\tif ($pdfType == 'cat')\r\n\t\t\t\t$titre = ucfirst($instruments_model->get_catName($pdfId)).\" Book\";\r\n\t\t\telse if ($pdfType == 'instru')\r\n\t\t\t\t$titre = ucfirst($instruments_model->get_instrument($pdfId)).\" Book\";\r\n\t\t\telse if ($pdfType == 'all' || true)\r\n\t\t\t\t$titre = \"Master Book\";\r\n\t\t\t\r\n\t\t\t$mpdf->WriteHTML(\"<br><p class='title'>\".$titre.\"<br>\".$playlist[\"infos\"][\"title\"].\"</p><br>\",2);\r\n\t\t\t\r\n\t\t\t// Saut de page (verso de couverture)\r\n\t\t\t$mpdf->AddPage();\r\n\t\t\t// DATE\r\n\t\t\t$mpdf->SetHTMLFooter('\r\n\t\t\t\t<table height=\"100%\" style=\"vertical-align: bottom; font-family: serif; font-size: 8pt; font-weight: bold;\">\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td style=\"text-align: right; \">'.date(\"d-m-Y\").'</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>');\r\n\t\t}\r\n\t\t\r\n\t\t// SOMMAIRE\r\n\t\tif ($sommaire) {\r\n\t\t\t// On importe l'index\r\n\t\t\t$mpdf->AddPage();\r\n\t\t\t$pagecount = $mpdf->SetSourceFile(urldecode(\"ressources/global/tempIndex.pdf\"));\r\n\t\t\t$tplId = $mpdf->ImportPage($pagecount);\r\n\t\t\t$mpdf->UseTemplate($tplId);\r\n\t\t}\r\n\t\t\r\n\t\t// On ajouter les numéro de page\r\n\t\t$mpdf->SetHTMLFooter('\r\n\t\t\t<table>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td id=\"pageNumber\">{PAGENO}</td>\r\n\t\t\t\t</tr>\r\n\t\t\t</table>');\r\n\r\n\t\t\r\n\t\t// On écrit le pdf temporaire\r\n\t\t$pagecount = $mpdf->SetSourceFile(urldecode(\"ressources/global/tempPdf.pdf\"));\r\n\t\t// On importe chaque page du pdf\r\n\t\tfor ($i=0; $i<$pagecount; $i++) {\r\n\t\t\t// Saut de page\r\n\t\t\t$mpdf->AddPage();\r\n\t\t\t// On met le pdf en mémoire\r\n\t\t\t$tplId = $mpdf->ImportPage($i+1);\r\n\t\t\t// On le fusionne avec le pdf principal\r\n\t\t\t$mpdf->UseTemplate($tplId);\r\n\t\t}\r\n\t\t\r\n\t\t// POSTFACE\r\n\t\tif ($post) {\r\n\t\t\t// On importe la page de postface\r\n\t\t\t$mpdf->AddPage();\r\n\t\t\t// On enlève le numéro de page\r\n\t\t\t$mpdf->SetHTMLFooter('');\r\n\t\t\t$pagecount = $mpdf->SetSourceFile(urldecode(\"ressources/global/postface.pdf\"));\r\n\t\t\t$tplId = $mpdf->ImportPage($pagecount);\r\n\t\t\t$mpdf->UseTemplate($tplId);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// On écrit le pdf principal\r\n\t\tif ($noerror) $mpdf->Output($filePath,'F');\r\n\t\t\r\n\t\t\r\n\t\t/****************************** UPDATE BD ********************************/\r\n\t\tif ($noerror) {\r\n\t\t\r\n\t\t\t// On récupère les infos du fichiers créé\r\n\t\t\t$file_infos = get_file_info($filePath);\r\n\t\t\t\t\t\t\r\n\t\t\t// On restreint la mémoire du serveur php\r\n\t\t\tini_set('memory_limit', $oldMemValue);\r\n\t\t\t\r\n\t\t\treturn $file_infos;\r\n\t\t}\r\n\r\n\t\treturn $error_msg;\r\n\t}", "title": "" }, { "docid": "ed86b3f67b71842520b52b8773e9cc8c", "score": "0.6706319", "text": "public function generatePdf($num) {\n require_once(\"lib/fpdf/fpdf.php\");\n $this->pdf = new FPDF();\n // if number == 1 generate a bulletien de paie;\n if ($num == 1) {\n $this->pdf->AddPage();\n $this->pdf->SetFont('Arial','B',16);\n $this->pdf->Cell(70);\n $this->pdf->SetTextColor(60, 164, 255);\n $this->pdf->Cell(40,10,'Bulletien de paie');\n $this->pdf->Ln(20);\n $this->pdf->SetTextColor(0, 0, 0);\n $this->pdf->SetFont('Arial','',14);\n $this->pdf->Cell(40,10,'Name : '.Session::get('username'));\n $this->pdf->Ln();\n $this->pdf->Cell(40, 10,'porte la CIN num : '.Session::get(\"userid\"));\n $this->pdf->Ln(30);\n $this->pdf->Cell(40, 10,'Nous sommes l\\'entreprise yxz nos declare que le monsieur '.Session::get('username'));\n $this->pdf->Output();\n }\n // generate .......\n elseif ($num == 2) {\n $this->pdf->AddPage();\n $this->pdf->SetFont('Arial','B',16);\n $this->pdf->Cell(70);\n $this->pdf->SetTextColor(60, 164, 255);\n $this->pdf->Cell(40,10,'certificat de .....');\n $this->pdf->Ln(20);\n $this->pdf->SetTextColor(0, 0, 0);\n $this->pdf->SetFont('Arial','',14);\n $this->pdf->Cell(40,10,'Name : '.Session::get('username'));\n $this->pdf->Ln();\n $this->pdf->Cell(40, 10,'porte la CIN num : '.Session::get(\"userid\"));\n $this->pdf->Ln(30);\n $this->pdf->Cell(40, 10,'Nous sommes l\\'entreprise yxz nos declare que le monsieur '.Session::get('username'));\n $this->pdf->Output();\n }\n }", "title": "" }, { "docid": "b62185f5e9b72ca2eba98bd8cac21e1f", "score": "0.6668997", "text": "protected function servicio__vista_pdf( $objetos )\n\t{\n\t\t$salida = new toba_vista_pdf();\n\t\t$salida->asignar_objetos( $objetos );\n\t\t$salida->generar_salida();\n\t\t$salida->enviar_archivo();\n\t}", "title": "" }, { "docid": "9112a1f5d6fbbe1dfebe02a533ef158a", "score": "0.6658369", "text": "public function pdf() {\n $arriendos = DB::table('arriendo')->get();\n //Se genera el archive PDF\n $pdf = PDF::loadView('pdf.arriendos', compact('arriendos'));\n //Lo forzamos a iniciar descarga\n return $pdf->download('listado_arriendos.pdf');\n }", "title": "" }, { "docid": "fe6fb035eb8fdb11221ab92fe9c5dd49", "score": "0.66478634", "text": "public function pdf_estudiante($id)\n{\n$user=DB::table('estudiante')\n->join('grado', 'grado.idGrado', '=', 'estudiante.idGrado')\n->join('acudiente', 'idAcudiente', '=', 'estudiante.Acudiente_idAcudiente')\n->select('estudiante.nombre','estudiante.apellido','estudiante.fechaNac', 'estudiante.documento', 'estudiante.expedicion','estudiante.telefono','estudiante.celular','estudiante.direccion','estudiante.peso','estudiante.tipoSangre','estudiante.anioActual','estudiante.condicion','estudiante.religion','grado.grado','acudiente.documentoPadre','acudiente.nombrePadre','acudiente.nombremadre','acudiente.apellidoMadre','acudiente.apellidoPadre','acudiente.documentoMadre','acudiente.ocupacionPadre','acudiente.ocupacionMadre','acudiente.celularPadre','acudiente.celularMadre','acudiente.correoMadre','acudiente.correoPadre','acudiente.estadoCivil','acudiente.nombreAcu','acudiente.documentoAcu','acudiente.celularAcu','acudiente.ocupacion','acudiente.correoAcu','acudiente.parentesco')\n->where('idEstudiante',$id)\n->first();\n\n$headers = array(\n 'Content-Type: application/pdf',\n );\n $pdf = PDF::loadView('pdfvistaEstudiante',['user' => $user]);\nreturn $pdf->download('ResumenInformacionEstudiante.pdf',$headers);\n\n}", "title": "" }, { "docid": "c4aebeadc2926115a942500e94b0c9d0", "score": "0.66477394", "text": "public function getPdf()\n {\n \n $pasien = Pasien::all();\n $pdf = PDF::loadView('pdf.pembayaran');\n return $pdf->stream('pembayaran.pdf');\n }", "title": "" }, { "docid": "833d2bb7ce65b291cfb5f38592581297", "score": "0.6646533", "text": "public function crearReporteV()\n {\n $query = \"call read_sales();\";\n $result = $this->dbConnection->ExecuteReport($query);\n $resultKeys = array_keys($result[0]);\n // print_r($result);\n // print_r($resultKeys);\n\n ob_start(); //Habilita el buffer para la salida de datos\n ob_get_clean(); //Limpia lo que actualmente tenga el buffer\n // //En la variable content entre las etiquetas <page></page> va todo el contenido del pdf en formato html\n $content = \"<page backtop='40mm' backbottom='30mm' backleft='20mm' backright='20mm' footer='date;page'>\";\n $content .= \"<h1 style='text-align:center';>FARMACIA</h1>\";\n $content .= \"<h3 style='text-align:center';>Reporte Ventas</h3>\";\n\n $content .= '<link href=\"../resources/css/tabla.css\" type=\"text/css\" rel=\"stylesheet\">';\n\n $content .= \"<page_header>\n <div ><label class='logo'><img src='../resources/imgs/logo.png'></label></div>\n\n </page_header>\";\n\n\n\n $content .= \"<table '>\";\n $content .= \"<tr >\";\n /* for ($i = 1; $i < count($resultKeys); $i++) {\n\n $content .= \"<th>\" . $resultKeys[$i] . \"</th>\";\n }*/\n\n $content .= \"<th>Fecha Venta</th>\";\n $content .= \"<th>Valor de la Venta</th>\";\n $content .= \"<th>Cliente</th>\";\n $content .= \"<th>Empleado</th>\";\n\n\n $content .= \"</tr>\";\n for ($i = 0; $i < count($result); $i++) {\n $aux = $result[$i];\n for ($j = 1; $j < count($result[$i]); $j++) {\n if ($j == 1) {\n $content .= \"<tr>\";\n }\n $b = $resultKeys[$j];\n $content .= \"<td>\" . $aux[$b] . \"</td>\";\n if ($j == count($result[$i]) - 1) {\n $content .= \"</tr>\";\n }\n\n }\n }\n print_r($content);\n\n\n $content .= \"</table>\";\n $content .= \"</page>\";\n\n\n $html2pdf = new HTML2PDF('P', 'A4', 'es'); //formato del pdf (posicion (P=vertical L=horizontal), tamaño del pdf, lenguaje)\n $html2pdf->WriteHTML($content); //Lo que tenga content lo pasa a pdf\n ob_end_clean(); // se limpia nuevamente el buffer\n $html2pdf->Output('ReporteClientes.pdf'); //se genera el pdf, generando por defecto el nombre indicado para guardar\n\n }", "title": "" }, { "docid": "f8880704fe4c3a790ea0397d56dbddd6", "score": "0.664377", "text": "public function reportesAction()\n { \n \n \n $datos=$this->getDoctrine()->getRepository('bdBundle:Medico')->findAll();\n \n echo\"datos\";\n \n \n $this->get('knp_snappy.pdf')->generateFromHtml(\n $this->renderView(\n 'bdBundle:Reportes:reportes.html.twig',compact(\"datos\")),'C:\\Users\\dulce\\Desktop\\file.pdf');\n return $this->render('bdBundle:Reportes:reportes.html.twig');\n }", "title": "" }, { "docid": "108d4d8c247a8696c38907d68b1af9fa", "score": "0.6636732", "text": "public function createPDF()\n {\n $data = Product::where('is_deleted', '0')->get();\n // share data to view\n view()->share('products', $data);\n $pdf = PDF::loadView('pdf_view', $data)->setOptions(['defaultFont' => 'sans-serif', 'isRemoteEnabled' => true])->setPaper('A4', 'Landscape');\n\n // download PDF file with download method\n return $pdf->download('pdf_file.pdf');\n }", "title": "" }, { "docid": "9c4652caba7f4a2d5854581c5131d378", "score": "0.66335046", "text": "public function createPDF() { \n // retreive all records from db \n $data = Profile::all();\n \n // share data to view \n view()->share('profile',$data); \n $pdf = PDF::loadView('pdf1_view', $data); \n \n // download PDF file with download method \n return $pdf->download('pdf_file.pdf');\n }", "title": "" }, { "docid": "ebf3a1208c8fd52a7253439313b80a16", "score": "0.6627571", "text": "public function generateComanda() {\n\t\t\t\t$arts = array();\n\t\t\t\tforeach($_GET as $name => $value) {\n\t\t\t\t\tarray_push($arts,$value);\n\t\t\t\t}\n\t\t\t\t\t$datasource = $this->Articulo->getDataSource();\n\t\t\t\t\t//Comienzo la transaccion del Articulo\n\t\t\t\t\t$datasource->begin();\n\t\t\t if ( ! $this->request->is('post')) {\n\t\t\t\t\t\t//CargarLista de Articulos\n\t\t\t\t\t\t$this->getListaArticulos();\n\n\t\t\t\t\t\t$this->response->type('application/pdf');\n\t\t\t\t\t\t$this->layout = 'pdf'; //this will use the pdf.ctp layout\n\t\t\t\t\t\t$this->render();\n\t\t\t\t\t}\n\n\t}", "title": "" }, { "docid": "6d43f6b57619ece88b5aa79d47c9ea27", "score": "0.66142744", "text": "public function print() {\n $comptes = Compte::all(); \n $filename = \"Comptes.pdf\";\n /* Generamos el pdf y nos vamos.\n */\n $file = base_path().'/documentos/'.$filename;\n $view = View::Make( '/comptes/print' , compact('comptes') )->render();\n //-- Revisamos el retorno de carro/salto de línea\n// $view = str_replace(\"-crlf-\",\"<br>\",$view);\n $pdf = \\App::make( 'dompdf.wrapper' );\n $pdf->loadHTML( $view );\n $output = $pdf->output();\n file_put_contents( $file , $output );\n //-- Abrimos el pdf.\n header('Content-type: application/pdf');\n header('Content-Disposition: attachment; filename=\"'.$filename.'\"');\n readfile($file);\n }", "title": "" }, { "docid": "96f34222f96ff67543bb84397fd908ac", "score": "0.6608401", "text": "public function pdflistaDepartamentos(){\n\n $user=user::all();\n $departamento=Departamento::all();\n $facultades=Facultad::all(); \n \n //return view(\"ues.departamentos.listaDepto\",array('user'=>$user,'departamento'=>$departamento,'facultades'=>$facultades));\n $pdf=\\PDF::loadview('ues.departamentos.listaDepto', array('user'=>$user,'departamento'=>$departamento,'facultades'=>$facultades))->setPaper('letter','portrait');\n return $pdf->stream('Lista_Depto_Activos.pdf');\n\n}", "title": "" }, { "docid": "e56aa85baf2e87e6a44a2374b607c21f", "score": "0.6606783", "text": "public function getPdf(){\r\n set_time_limit(600);\r\n\r\n $mes = explode('/', Input::get('fecha'))[0];\r\n $anio = explode('/', Input::get('fecha'))[1];\r\n\r\n $asistencias = Asistencia::where('fecha', '>=', $anio.'-'.$mes.'-01')\r\n ->where('fecha', '<=', $anio.'-'.$mes.'-'.$this->diasdelmes($mes))->get();\r\n\r\n $empresa = Empresa::find(Input::get('empresa_ruc'));\r\n $trabajadores = Trabajador::with('persona')->where('empresa_ruc', '=', Input::get('empresa_ruc'))->get();\r\n //$trabajadores = $empresa->trabajadores;\r\n\r\n //$trabajadores = $trabajadores->chunk(20);\r\n\r\n return View::make('trabajador.pagos')->with('trabajadores', $trabajadores)->with('fecha', \r\n Input::get('fecha'))->with('empresa', $empresa);\r\n\r\n $html = \"<!DOCTYPE html>\r\n <html>\r\n <head>\r\n <meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'>\r\n <meta http-equiv='X-UA-Compatible' content='IE=edge'>\r\n <title> PLANILLA DE PAGOS\".Input::get('fecha').\"</title>\r\n <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' \r\n name='viewport'>\r\n </head>\r\n <body>\r\n <style type='text/css'>\r\n h1{\r\n font-size: 12pt;\r\n font-family: Cambria, Georgia, serif;\r\n }\r\n h2{\r\n font-size: 11pt;\r\n font-family: Cambria, Georgia, serif;\r\n }\r\n h3{\r\n font-size: 10pt;\r\n font-family: Cambria, Georgia, serif;\r\n }\r\n @page{\r\n margin-top: 1cm;\r\n margin-left: 0.5cm;\r\n margin-right: 0.5cm;\r\n margin-bottom: 1cm;\r\n }\r\n .borde-tabla {\r\n width: 100%;\r\n border-collapse: collapse;\r\n border: 1px solid #000000;\r\n }\r\n th, td {\r\n font-size: 8pt;\r\n font-family: Cambria, Georgia, serif;\r\n text-align: left;\r\n border: 1px solid #000000;\r\n }\r\n th{\r\n text-align: center;\r\n }\r\n </style>\r\n <h1 align='center'>PLANILLA DE PAGOS \".Input::get('fecha').\" \".$empresa->nombre.\"</h1>\r\n <table class='borde-tabla'>\r\n <tr>\r\n <th rowspan='3'>DNI</th>\r\n <th rowspan='3'>TRABAJADOR</th>\r\n <th colspan='6'>REMUNERACIONES</th>\r\n <th colspan='9'>DESCUENTOS</th>\r\n <th rowspan='3'>TOTAL</th>\r\n </tr>\r\n <tr>\r\n <th rowspan='2'>SUELDO BASICO</th>\r\n <th rowspan='2'>ASIGNACIÓN FAMILIAR</th>\r\n <th colspan='2' rowspan='2'>HORAS EXTRAS</th>\r\n <th colspan='2'>BONIFICACIONES</th>\r\n <th colspan='3'>AFP</th>\r\n <th rowspan='2'>ONP</th>\r\n <th colspan='3'>FALTAS</th>\r\n <th colspan='2' rowspan='2'>TARDANZAS</th>\r\n </tr>\r\n <tr>\r\n <th>BE1</th>\r\n <th>BE2</th>\r\n <th>FONDO</th>\r\n <th>PRIMA</th>\r\n <th>FLUJO</th>\r\n <th>JUSTIFICADAS</th>\r\n <th>INJUSTIFICADAS</th>\r\n <th>SALUD</th>\r\n </tr>\";\r\n foreach ($trabajadores as $trabajador) {\r\n $html .= \"\r\n <tr>\r\n <td>\".$trabajador->persona_dni.\"</td>\r\n <td>\".$trabajador->persona->nombre.\" \".$trabajador->persona->apellidos.\"</td>\r\n <td>\".$trabajador->sueldo.\"</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\";\r\n }\r\n\r\n $html .= \"</table>\r\n </body>\r\n </html>\";\r\n\r\n $pdf = PDF::loadHtml($html);\r\n\r\n //$pdf = PDF::loadView('trabajador.pagos', array('fecha'=>Input::get('fecha'), \r\n // 'empresa'=>$empresa, 'trabajadores'=>$trabajadores));\r\n define('BUDGETS_DIR', public_path('documentos/asistencias/'.$empresa->ruc));\r\n\r\n if (!is_dir(BUDGETS_DIR)){\r\n mkdir(BUDGETS_DIR, 0755, true);\r\n }\r\n\r\n $ruta = BUDGETS_DIR.'/otro.pdf';\r\n\r\n $pdf->setPaper('a4')->setOrientation('landscape')\r\n ->save($ruta);\r\n\r\n return \"inicio: \".$inicio.\"fin: \".date('H:i:s');\r\n\r\n }", "title": "" }, { "docid": "5bb42b003d4f7e3922541956f0275003", "score": "0.66066456", "text": "public function generatePDF(Request $request)\n {\n $id=$request->id;\n $Plano = (new AtividadeController())->mostrar_planodetrabalho($id);\n $Metas=(new PlanodetrabalhoController())->mostrar_metas($Plano->id);\n $Data = ['Metas' => $Metas,'Titulo' => $Plano->NomePlano];\n\n $pdf = PDF::loadView('myPDF', $Data);\n \n //return $pdf->download('relatorio.pdf');\n return view('myPDF',$Data);\n }", "title": "" }, { "docid": "9056669070f79a499dc01f991d4dc53e", "score": "0.6606218", "text": "public function pdfRelatorio(Request $request)\n {\n \n $start = $request->start .' 00:00:00';\n $end = $request->end .' 23:59:59';\n\n $entradas = Pagamentos::whereBetween('created_at', [$start, $end])->get();\n $alunos=AlunoPagamentos::all();\n $propinas=PagamentoPropinas::all();\n\n $pdf = PDF::loadView('secretaria.pagamentos-entradas.pdf.entradas', $data=[\"entradas\"=>$entradas, \"alunoPagamentos\"=>$alunos, \"propinas\"=>$propinas, \"start\"=>$request->start, \"end\"=>$request->end])->setPaper('a4', 'landscape');\n return $pdf->stream('marcacoes.pdf');\n }", "title": "" }, { "docid": "8f576c8798813ad53316f3664eb6031e", "score": "0.66046834", "text": "public function getBladePdf(Request $request)\n {\n $usuario = Usuario::all();\n $detallePedido = DetallePedido::Where('iddetalle_pedido', $request->idpedido)->first();\n\n $listaProductos = DB::table('producto')\n ->join('rel_prod_detalle', 'producto.idproducto', '=', 'rel_prod_detalle.producto_idproducto')\n ->where('detalle_pedido_iddetalle_pedido', '=', $detallePedido->iddetalle_pedido)\n ->select('*')\n ->get();\n\n $listaPromociones = DB::table('promocion')\n ->join('rel_prom_detalle', 'promocion.idpromocion', '=', 'rel_prom_detalle.promocion_idpromocion')\n ->where('detalle_pedido_iddetalle_pedido', '=', $detallePedido->iddetalle_pedido)\n ->select('*')\n ->get();\n\n $mediopago = MedioPago::Where('idmedio_pago', $detallePedido->medio_pago_idmedio_pago)->first();\n\n\n $pdf = PDF::loadView('pedido.pedido-pdf', ['usuario' => $usuario,\n 'detalle' => $detallePedido,\n 'mediopago' => $mediopago,\n 'productos' => $listaProductos,\n 'promocion' => $listaPromociones,\n ]);\n $pdf->setOptions(['dpi' => 150, 'defaultFont' => 'arial', 'fontHeightRatio' => 0.8]);\n return $pdf->setPaper('c8')->stream('detalle-pedido.pdf');\n }", "title": "" }, { "docid": "0a0183dc123dde70289737ea8f91484d", "score": "0.6602478", "text": "public function pdf() {\n $servicios = DB::table('servicio')->get();\n //Se genera el archive PDF\n $pdf = PDF::loadView('pdf.servicios', compact('servicios'));\n //Lo forzamos a iniciar descarga\n return $pdf->download('listado_servicios.pdf');\n }", "title": "" }, { "docid": "363265b5bc91742376ec82c69e9d9dec", "score": "0.65943", "text": "public function ExportaPdf($orden) {\n \n $pdf= new FPDF();\n $pdf->AddPage();\n $pdf->SetFont('helvetica','B',26);\n $pdf->SetTextColor(248,128,0);\n $pdf->Cell(0,7,\"Orden \".$orden['idtrabajo'],0,0,'C');\n $pdf->Ln();$pdf->Ln();\n $pdf->SetFont('helvetica','B',12);\n $pdf->SetTextColor(70,70,70);\n $pdf->Image('asset/img/LOGO-PUBLIBIT-.png', 60, 222, 90, 20);\n $pdf->Cell(40,7,\"Cliente: \".$orden['nomempresa'],0);\n $pdf->Ln();$pdf->Ln();\n $pdf->Cell(70,7,\"Estado: \".$orden['estado'],0);\n $pdf->Ln();$pdf->Ln();\n $pdf->Cell(70,7,\"Redactada por: \".$orden['redactor'],0); \n $pdf->Ln();$pdf->Ln();\n $pdf->Cell(70,7,\"Fecha inicio: \".$orden['fecha_inicio'],0);\n $pdf->Ln();$pdf->Ln();\n /*$pdf->writeHTML(\"<hr size='8px' color='black' />\");*/\n $pdf->Write(7,\"Denominacion: \".$orden['denominacion']);\n $pdf->Ln();$pdf->Ln();\n $pdf->Write(7,\"Descripcion: \".$orden['descripcion']);\n\n //$pdf->Output();\n $pdf->Output($orden['nomempresa'].'_'.$orden['idtrabajo'].'.pdf','D');\n }", "title": "" }, { "docid": "47cb94d6e30e1c0dfd62ad4ec9b1cae9", "score": "0.65776515", "text": "function Pdf() {\n $this->createDocument();\n }", "title": "" }, { "docid": "f6417f9dd8de96aa7201ecc042b33c10", "score": "0.6559151", "text": "public function imprimepdf($datos)\n {\n //return $pdf->download('ReporteVentas.pdf');\n $pdf = PDF::loadHTML('<h1>Hello World!!</h1>');\n return $pdf->download('ReporteVentas.pdf');\n \n }", "title": "" }, { "docid": "9463d410b6539a173a776681e50cc729", "score": "0.6547763", "text": "private function genreatePDF() {\n\t\t$pdf = new Model_Sales_QuotationPDF('L', PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\t\t\n\t\t// set document information\n\t\t$pdf->SetCreator('S3');\n\t\t$pdf->SetAuthor('S3');\n\t\t$pdf->SetTitle('Quotation');\n\t\t$pdf->SetSubject('Quotation');\n\t\t\n\t\t// set default header data\n\t\t$pdf->setPrintHeader(false);\n\t\t$pdf->setPrintFooter(true);\n\t\t\n\t\t// set default monospaced font\n\t\t$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\t\t\n\t\t// set margins\n\t\t$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n\t\t\n\t\t// set font\n\t\t$pdf->SetFont('cid0jp', '', 10);\n\t\t\n\t\t$pdf->AddPage();\n\t\t//background-color:grey\n\t\t$html = '<div style=\"width:100%;text-align:center;background-color:grey\">お見積書'.$this->order_id.'</div>';\n\t\t$pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true);\n\t\t\n\t\t/** Customer Name */\n\t\t//$pdf->SetAbsX(10);\n\t\t//$pdf->SetAbsY(20);\n\t\t$html = $this->customerName.' 御中';\n\t\t$pdf->writeHTMLCell(100, 10, 10, 20, $html, 0, 1, 0, true, '', true);\n\t\t\n\t\t/** Customer Address */\n\t\t$customerAddress = '';\n\t\tif (!empty($this->order->customer->address1)) {\n\t\t\t$customerAddress .= $this->order->customer->address1.'<br />';\n\t\t}\n\t\tif (!empty($this->order->customer->address2)) {\n\t\t\t$customerAddress .= $this->order->customer->address2.'<br />';\n\t\t}\n\t\tif (!empty($this->order->customer->address3)) {\n\t\t\t$customerAddress .= $this->order->customer->address3.'<br />';\n\t\t}\n\t\t$pdf->writeHTMLCell(100, 30, 10, 25, $customerAddress, 0, 1, 0, true, '', true);\n\t\t\n\t\t/** Order No & Date */\n\t\t$pdf->SetAbsX(240);\n\t\t$pdf->SetAbsY(25);\n\t\t$html = 'No.';\n\t\t$pdf->writeHTMLCell(20, 5, 240, 25, $html, 0, 1, 0, true, '', true);\n\t\t\n\t\t$html = 'Date: ';\n\t\t$pdf->writeHTMLCell(20, 5, 240, 30, $html, 0, 1, 0, true, '', true);\n\t\t\n\t\t$html = $this->order_id;\n\t\t$pdf->writeHTMLCell(30, 5, 260, 25, $html, 0, 1, 0, true, '', true);\n\t\t\n\t\t$html = Date('Y-m-d');\n\t\t$pdf->writeHTMLCell(30, 5, 260, 30, $html, 0, 1, 0, true, '', true);\n\t\t\n\t\t/** Office Address */\n\t\t$officeAddress = new Model_OfficeAddress($this->order->customer->office_address_id);\n\t\tif ($officeAddress->loaded()) {\n\t\t\t$html = $officeAddress->name.'<br />'.$officeAddress->address.'<br />'.$officeAddress->tel;\n\t\t\t$pdf->writeHTMLCell(55, 10, 240, 35, $html, 0, 1, 0, true, '', true);\n\t\t}\n\t\t\n\t\t/** Products */\n\t\t$view = View::factory('sales/quotation_pdf');\n\t\t$view->set('form', $this);\n\t\t$pdf->SetY(55);\n\t\t$pdf->writeHTMLCell(0, 0, '', '', $view, 0, 1, 0, true, '', true);\n\t\t\n\t\t$orderCreateDate = date('Y-m-d', strtotime($this->order->create_date));\n\t\t//$pdf->Output($orderCreateDate.'_'.$this->order_id.'.pdf', 'D');\n\t\t$pdf->Output($this->order_id.'.pdf', 'D');\n\t}", "title": "" }, { "docid": "adc65ff0c5c8673e6ec155237bee36f6", "score": "0.6523252", "text": "public function print()\n {\n $user = Auth::user();\n\n $data = [\n 'user' =>$user,\n 'products' => $products = Product::where('user_id', $user->id)->orderBy('name')->get(),\n 'date' => $date = date('d/m/y'),\n 'hour' => $hour = date('H:i'),\n 'title' => 'Lista de Produtos',\n 'heading' => 'MEU ESTOQUE',\n ];\n\n $pdf = PDF::loadView('pdf.products_pdf', $data)->setPaper('a4', 'portrait');\n return $pdf->stream('Produtos.pdf');\n\n }", "title": "" }, { "docid": "bd3c1e72cd6b02811dc7a9f63e231285", "score": "0.65202975", "text": "public static function listadoPdf($id_usuario){\n\n\t\t$res = Admin::consultarPdf($id_usuario);\n\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "fb9f3237a5cf4468d08f24ea3549c3e1", "score": "0.6518189", "text": "function pdf_write_domaine( $domaine ) {\r\n global $Refpdf;\r\n \r\n\t\tif ($domaine){\r\n $code = $domaine->code_domaine;\r\n $description_domaine = $domaine->description_domaine;\r\n $ref_referentiel = $domaine->ref_referentiel;\r\n\t\t\t$num_domaine = $domaine->num_domaine;\r\n\t\t\t$nb_competences = $domaine->nb_competences;\r\n \t\t\t$Refpdf->SetFont('helvetica','B',10); \r\n \t $Refpdf->Write(6,(trim(get_string('domaine','referentiel').\" : \".stripslashes($code))));\r\n $Refpdf->Ln(6);\r\n $Refpdf->SetFont('helvetica','',10); \r\n \t $Refpdf->Write(6, (trim(stripslashes($description_domaine))));\r\n \t \t$Refpdf->Ln(6);\r\n\t\t\t\r\n\t\t\t// LISTE DES COMPETENCES DE CE DOMAINE\r\n\t\t\t$records_competences = referentiel_get_competences($domaine->id);\r\n\t\t\tif ($records_competences){\r\n\t\t\t\tforeach ($records_competences as $record_c){\r\n pdf_write_competence( $record_c );\r\n\t\t\t\t}\r\n\t\t\t}\r\n }\r\n}", "title": "" }, { "docid": "ac4c4223ad450a595732f0aff4f64494", "score": "0.6509518", "text": "function corpoRelatorio(PDF $oPdf, $oFiltros, $aEscola) {\n\n $oFiltros->iTotalAlunos = 0;\n\n foreach ($aEscola as $iEnsino => $aEnsino) {\n\n $oEnsino = new Ensino($iEnsino);\n $sEnsino = $oEnsino->getNome();\n\n foreach ($aEnsino as $iTurma => $aTurma) {\n\n foreach ($aTurma as $iEtapa => $aEtapa) {\n\n $oEtapa = EtapaRepository::getEtapaByCodigo($iEtapa);\n $sEtapa = $oEtapa->getNome();\n\n /**\n * Percorremos os alunos matriculados na turma\n */\n foreach ($aEtapa as $iMatricula => $aDiarios ) {\n\n $oMatricula = MatriculaRepository::getMatriculaByCodigo($iMatricula);\n $iCodigoAluno = $oMatricula->getAluno()->getCodigoAluno();\n $sNomeAluno = $oMatricula->getAluno()->getNome();\n\n if (!in_array($iCodigoAluno, $oFiltros->aControleAlunos)) {\n $oFiltros->aControleAlunos[] = $iCodigoAluno;\n }\n\n if (($oPdf->GetY() > $oPdf->h - 15)) {\n\n $oPdf->AddPage();\n cabecalhoRelatorio($oPdf, $oFiltros);\n }\n\n $oPdf->SetFont('arial', '', 6);\n\n /**\n * Percorremos o array dos cabecalhos a serem impressos, e de acordo com o tipo selecionado, imprimimos os\n * devidos campos com tamanho correto\n */\n foreach ($oFiltros->aCabecalho as $oCabecalho) {\n\n switch ($oCabecalho->iTipo) {\n\n /**\n * Codigo do Aluno\n */\n case 1:\n\n $oPdf->Cell($oCabecalho->iTamanho, $oFiltros->iAlturaColuna, $iCodigoAluno, 1, 0, 'R');\n break;\n\n /**\n * Nome do aluno\n */\n case 2:\n\n $oPdf->Cell($oCabecalho->iTamanho, $oFiltros->iAlturaColuna, $sNomeAluno, 1, 0, 'L');\n break;\n\n /**\n * Nome do curso\n */\n case 3:\n\n $oPdf->Cell($oCabecalho->iTamanho, $oFiltros->iAlturaColuna, $sEnsino, 1, 0, 'L');\n break;\n\n /**\n * Descricao da etapa\n */\n case 4:\n\n $oPdf->Cell($oCabecalho->iTamanho, $oFiltros->iAlturaColuna, $sEtapa, 1, 0, 'L');\n break;\n\n /**\n * Resultado Final\n */\n case 5:\n\n /**\n * Percorremos os diarios verificando os resultados finais. Caso encontre algum resultado como R,\n * setamos a variavel do resultado para R\n */\n $sResultadoFinal = 'A';\n foreach ($aDiarios as $iDiario => $sResultado) {\n\n if ($sResultado == 'R') {\n $sResultadoFinal = 'R';\n }\n }\n $sResultadoFinal = totalizadorResultadoFinal($oPdf, $oFiltros, $iEnsino, $sResultadoFinal);\n $oPdf->Cell($oCabecalho->iTamanho, $oFiltros->iAlturaColuna, $sResultadoFinal, 1, 0, 'C');\n break;\n }\n }\n $oPdf->Ln();\n $oFiltros->iTotalAlunos++;\n $oFiltros->iTotalAlunosGeral++;\n }\n }\n }\n }\n}", "title": "" }, { "docid": "94e85f447fbd896405008a00dd85fc38", "score": "0.6509453", "text": "public function pdf($id){\n $data['citologia'] = Citologia::selectRaw('citologia.*, doctores.nombre as doctor, pacientes.name as paciente, pacientes.sexo as sexo, pacientes.edad as edad, pacientes.meses as meses, grupos.nombre as grupo')\n ->join('doctores', 'citologia.doctor_id', '=', 'doctores.id')\n ->join('pacientes', 'citologia.paciente_id', '=', 'pacientes.id')\n ->join('grupos', 'citologia.grupo_id', '=', 'grupos.id')\n ->where('citologia.id', '=', $id)\n ->first();\n if ($data['citologia'] == null) { return redirect('citologias'); } //Verificación para evitar errores\n $data['citologia']->recibido = General::formatoFecha( $data['citologia']->recibido );\n $data['citologia']->entregado = General::formatoFecha( $data['citologia']->entregado );\n $pdf = PDF::loadView('/citologia/pdf', $data);\n return $pdf->download( $data['citologia']->informe . '.pdf');\n }", "title": "" }, { "docid": "8e748f3ead15c77fc47ea803a4eca22e", "score": "0.65052927", "text": "public function pdflistaDepartamentosI(){\n\n $user=user::all();\n $departamento=Departamento::all();\n $facultades=Facultad::all(); \n \n //return view(\"ues.departamentos.listaDepto\",array('user'=>$user,'departamento'=>$departamento,'facultades'=>$facultades));\n $pdf=\\PDF::loadview('ues.departamentos.listaDeptoI', array('user'=>$user,'departamento'=>$departamento,'facultades'=>$facultades))->setPaper('letter','portrait');\n return $pdf->stream('Lista_Depto_Inactivos.pdf');\n\n}", "title": "" }, { "docid": "21a779bc5aec95625811a4d55acc9f07", "score": "0.65036684", "text": "public function setPDF($id_presupuesto){\n\t\t$presupuesto = $this->presupuestos_model->getRegistro($id_presupuesto);\n\t\t$presupuesto = $presupuesto[0];\n\t\t$rengloPresupuesto = $this->renglon_presupuesto_model->getDetalle($id_presupuesto);\n\n\t\tif($presupuesto->facturado == 1){\n\t\t\t$factura = $this->facturas_model->getBusqueda(['id_presupuesto' => $id_presupuesto]);\n\t\t\t$factura = $factura[0];\n\t\t\t$vendedores = false;\n\t\t} else {\n\t\t\t$factura = false;\n\t\t\t$vendedores = $this->vendedores_model->getRegistros();\n\t\t}\n\t\t$cliente = $this->clientes_model->getCliente($presupuesto->id_cliente);\n\t\t$cliente = $cliente[0];\n\n\t\t$empresa = $this->empresas_model->getRegistros(1);\n\t\t$empresa = $empresa[0];\n\n\t\t$fpdf = $this->load->library('/fpdf/fpdf');\n\t\t$caePdf = $this->load->library('/fpdf/CAEPdf');\n\t\t$pdf = new CAEPdf();\n\t\t$pdf->setValues($presupuesto, $rengloPresupuesto, $cliente, $empresa, $factura, $vendedores);\n\t\t$pdf->AddPage();\n\t\t$pdf->detail();\n\t\t$pdf->Output();\n\t}", "title": "" }, { "docid": "be4e208303070fc7d7805b02e7d563fb", "score": "0.6497688", "text": "function getBoletaPago($id_usuario, $boleta_id) {\r\n $pdf = new PdfControlador('P', 'mm', PDF_PAGE_FORMAT, true, 'UTF-8', true);\r\n\r\n /*$pdf->SetCreator(PDF_CREATOR);\r\n $pdf->SetAuthor('Boletas Netafim');\r\n $pdf->SetTitle('Boleta de Pago');\r\n $pdf->SetSubject('Boleta de Pago periodo');\r\n\r\n $pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);\r\n\r\n $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));\r\n $pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));\r\n\r\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\r\n\r\n $pdf->SetMargins(30, 30, 10, true);\r\n $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\r\n $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\r\n\r\n $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\r\n\r\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);*/\r\n\r\n // Aqui para la primera tabla\r\n //$pdf->AddPage();\r\n /*$pdf->SetFont('times', 'B', 18);\r\n $pdf->Write($h=0, 'NOTA DE ENTRADA', $link='', $fill=0, $align='C', $ln=true, $stretch=0, $firstline=false, $firstblock=false, $maxh=0);\r\n //$pdf->Ln();\r\n $a_c1 = 30; // ancho primera columna\r\n $t_me = 12; // tamano de letra mensaje\r\n*/\r\n \r\n /**\r\n * Cabecera tabla\r\n */\r\n\r\n \r\n // $boleta = InternamientoNegocio::create()->getPrintCabeceraBoletaPago($internamiento_id);\r\n $html .= '\r\n<style>.cellCab{font-size:9px;font-style:Calibri;font-weight:normal;text-align:center;} .cellDat{font-size:9px;font-style:Calibri;font-weight:normal;text-align:center;} .der{text-align:right;} .izq{text-align:left;}</style>\r\n<div style=\"position:absolute; top:100px; right:100px; width:200px; background-color:#E0E0E0;\">\r\n <table border=\"0\" width=\"100%\">\r\n <tr>\r\n <td class=\"cellCab\" rowspan=\"4\"><img src=/../../vistas/images/logonetafim.png/></td>\r\n <td>\r\n <tr>\r\n <td class=\"cellCab\" style\"text-align:center;\" >RUC: 20481450510</td>\r\n </tr>\r\n <tr>\r\n <td class=\"cellCab\" style\"text-align:center;\" >Av Los Eucaliptos N° 371 Interior 41 Z.I. Santa Genoveva</td>\r\n </tr>\r\n <tr>\r\n <td class=\"cellCab\" style\"text-align:center;\" >Lurin / Lima / Lima</td>\r\n </tr>\r\n <tr>\r\n <td class=\"cellCab\" style\"text-align:center;\" >PERIODO DICIEMBRE 2013</td>\r\n </tr>\r\n </td>\r\n </tr>\r\n </table>\r\n <table border=\"1\" width=\"100%\">\r\n <tr>\r\n <td class=\"cellCab\">CATERORIA</td>\r\n <td class=\"cellCab\" colspan=\"3\">APELLIDO PATERNO</td>\r\n <td class=\"cellCab\" colspan=\"3\">APELLIDO MATERNO</td>\r\n <td class=\"cellCab\" colspan=\"3\">NOMBRES</td>\r\n </tr>\r\n <tr>\r\n <td class=\"cellDat\">EMPLEADO</td>\r\n <td class=\"cellDat\" colspan=\"3\">GUTIERREZ</td>\r\n <td class=\"cellDat\" colspan=\"3\">CASTRO</td>\r\n <td class=\"cellDat\" colspan=\"3\">JOSE FERNANDO</td>\r\n </tr>\r\n </table>\r\n <table border=\"1\" width=\"100%\">\r\n <tr>\r\n <td class=\"cellCab\" colspan=\"5\">CARGO</td>\r\n <td class=\"cellCab\" colspan=\"3\">AREA</td>\r\n <td class=\"cellCab\" colspan=\"2\">SEDE</td>\r\n </tr>\r\n <tr> \r\n <td class=\"cellDat\" colspan=\"5\">ANALISTA DE COMPESACIONES & BENEFICIOS</td>\r\n <td class=\"cellDat\" colspan=\"3\">RRHH</td>\r\n <td class=\"cellDat\" colspan=\"2\">LIMA</td>\r\n </tr>\r\n </table>\r\n <table border=\"1\" width=\"100%\">\r\n <tr>\r\n <td class=\"cellCab\" colspan=\"2\"> CALIFICACION </td>\r\n <td class=\"cellCab\">TIPO DOC</td>\r\n <td class=\"cellCab\" colspan=\"2\"> Nº DOC. IDENT. </td>\r\n <td class=\"cellCab\" colspan=\"3\"> FECHA DE INGRESO </td>\r\n <td class=\"cellCab\" colspan=\"2\"> FECHA DE CESE </td>\r\n </tr> \r\n <tr> \r\n <td class=\"cellDat\" colspan=\"2\">CONF/SUJETO A FISC.</td>\r\n <td class=\"cellDat\">DNI</td>\r\n <td class=\"cellDat\" colspan=\"2\">10497891</td>\r\n <td class=\"cellDat\" colspan=\"3\">28/01/2013</td>\r\n <td class=\"cellDat\" colspan=\"2\"></td>\r\n </tr>\r\n </table>\r\n <table border=\"1\" width=\"100%\">\r\n <tr>\r\n <td class=\"cellCab\" colspan=\"2\"> SIST. DE PENSIONES </td>\r\n <td class=\"cellCab\" colspan=\"2\"> CUSPP </td>\r\n <td class=\"cellCab\" colspan=\"3\"> SISTEMA DE SEGURO </td>\r\n <td class=\"cellCab\" colspan=\"2\"> AUTOGENERADO </td>\r\n <td class=\"cellCab\"> SUELDO </td>\r\n </tr> \r\n <tr> \r\n <td class=\"cellDat\" colspan=\"2\">SPP INTEGRA</td>\r\n <td class=\"cellDat\" colspan=\"2\">584611JGCIT1</td>\r\n <td class=\"cellDat\" colspan=\"3\">EPS</td>\r\n <td class=\"cellDat\" colspan=\"2\">7712041GICTJ002</td>\r\n <td class=\"cellDat\">S/. 3.000,00</td>\r\n </tr>\r\n </table>\r\n <table border=\"1\" width=\"100%\">\r\n <tr> \r\n <td class=\"cellCab\" colspan=\"2\">DIAS LABORADOS</td>\r\n <td class=\"cellCab\" colspan=\"2\">DIAS NO LABORADOS</td>\r\n <td class=\"cellCab\" colspan=\"2\">DIAS SUBS.</td>\r\n <td class=\"cellCab\" colspan=\"2\">DIAS VAC.</td>\r\n <td class=\"cellCab\" colspan=\"2\">TOTAL HHEE</td>\r\n </tr> \r\n <tr> \r\n <td class=\"cellDat\" colspan=\"2\">31</td>\r\n <td class=\"cellDat\" colspan=\"2\">0</td>\r\n <td class=\"cellDat\" colspan=\"2\">0</td>\r\n <td class=\"cellDat\" colspan=\"2\">0</td>\r\n <td class=\"cellDat\" colspan=\"2\">0</td>\r\n </tr>\r\n </table>\r\n <table width=\"100%\">\r\n <tr>\r\n <td style=\"background-color:gray;font-weight=bold;\" class=\"cellCab\" width=\"50%\" colspan=\"3\">INGRESO</td>\r\n <td style=\"background-color:gray;font-weight=bold;\" class=\"cellCab\" width=\"50%\" colspan=\"3\">DESCUENTO</td>\r\n </tr>\r\n <tr> \r\n <td class=\"cellDat\">Sueldo básico mes</td>\r\n <td class=\"cellDat\">30</td> \r\n <td class=\"cellDat\">3000</td>\r\n <td class=\"cellDat\">Fondo AFP</td>\r\n <td class=\"cellDat\">10</td>\r\n <td class=\"cellDat\">307,5</td>\r\n </tr>\r\n <tr> \r\n <td class=\"cellDat\">Asignación Familiar</td>\r\n <td class=\"cellDat\">30</td> \r\n <td class=\"cellDat\">3000</td>\r\n <td class=\"cellDat\">Seguro AFP</td>\r\n <td class=\"cellDat\">10</td>\r\n <td class=\"cellDat\">307,5</td>\r\n </tr> \r\n <tr> \r\n <td class=\"cellDat\">Gratif. Julio/Diciembre</td>\r\n <td class=\"cellDat\">30</td> \r\n <td class=\"cellDat\">3000</td>\r\n <td class=\"cellDat\">Comision Variable</td>\r\n <td class=\"cellDat\">10</td>\r\n <td class=\"cellDat\">307,5</td>\r\n </tr> \r\n <tr> \r\n <td class=\"cellDat\">Horas Extras 25%</td>\r\n <td class=\"cellDat\">30</td> \r\n <td class=\"cellDat\">3000</td>\r\n <td class=\"cellDat\">Dscto.Concesionario</td>\r\n <td class=\"cellDat\">10</td>\r\n <td class=\"cellDat\">307,5</td>\r\n </tr> \r\n <tr> \r\n <td class=\"cellDat\">Horas extras 35%</td>\r\n <td class=\"cellDat\">30</td> \r\n <td class=\"cellDat\">3000</td>\r\n <td class=\"cellDat\">Dcto. Asig. Cumpleaños</td>\r\n <td class=\"cellDat\">10</td>\r\n <td class=\"cellDat\">307,5</td>\r\n </tr> \r\n <tr> \r\n <td class=\"cellDat\">Horas extras 100%</td>\r\n <td class=\"cellDat\">30</td> \r\n <td class=\"cellDat\">3000</td>\r\n <td class=\"cellDat\">Dscto.Aguinaldo</td>\r\n <td class=\"cellDat\">10</td>\r\n <td class=\"cellDat\">307,5</td>\r\n </tr>\r\n <tr> \r\n <td class=\"cellDat\">Vale por Segregación</td>\r\n <td class=\"cellDat\">30</td> \r\n <td class=\"cellDat\">3000</td>\r\n <td class=\"cellDat\">Dscto.Segregación</td>\r\n <td class=\"cellDat\">10</td>\r\n <td class=\"cellDat\">307,5</td>\r\n </tr> \r\n <tr> \r\n <td class=\"cellDat\">Bonif. Ext. L. 2935/td>\r\n <td class=\"cellDat\">30</td> \r\n <td class=\"cellDat\">3000</td>\r\n <td class=\"cellDat\">Descuento EPS</td>\r\n <td class=\"cellDat\">10</td>\r\n <td class=\"cellDat\">307,5</td>\r\n </tr> \r\n <tr> \r\n <td class=\"cellDat\">Asignación por cumpleaños</td>\r\n <td class=\"cellDat\">30</td>\r\n <td class=\"cellDat\">3000</td>\r\n <td class=\"cellDat\">Impto.Rentas 5ta.Categor</td>\r\n <td class=\"cellDat\">10</td>\r\n <td class=\"cellDat\">307,5</td>\r\n </tr>\r\n <tr> \r\n <td class=\"cellDat\">Aguinaldo Diciembre</td>\r\n <td class=\"cellDat\">30</td> \r\n <td class=\"cellDat\">3000</td>\r\n <td class=\"cellDat\">Adelanto .Antic.Gratificación</td>\r\n <td class=\"cellDat\">10</td>\r\n <td class=\"cellDat\">307,5</td>\r\n </tr> \r\n <tr> \r\n <td class=\"cellDat\"></td>\r\n <td class=\"cellDat\"></td> \r\n <td class=\"cellDat\"></td>\r\n <td class=\"cellDat\">Adelanto de Quinc.</td>\r\n <td class=\"cellDat\"></td>\r\n <td class=\"cellDat\">307,5</td>\r\n </tr> \r\n </table>\r\n <table width=\"100%\"> \r\n <tr> \r\n <td style=\"background-color:gray;font-weight=bold;\" class=\"cellCab\" width=\"100%\" colspan=\"5\">APORTES EMPLEADOR</td>\r\n </tr> \r\n <tr> \r\n <td width=\"20%\"></td> \r\n <td width=\"20%\">Essalud 6.75%</td>\r\n <td width=\"20%\">0</td>\r\n <td width=\"20%\">0</td>\r\n <td width=\"20%\"></td> \r\n </tr> \r\n <tr> \r\n <td width=\"20%\"></td> \r\n <td width=\"20%\">Essalud 6.75%</td>\r\n <td width=\"20%\">0</td>\r\n <td width=\"20%\">0</td>\r\n <td width=\"20%\"></td> \r\n </tr> \r\n <tr> \r\n <td width=\"20%\"></td> \r\n <td width=\"20%\">Essalud 6.75%</td>\r\n <td width=\"20%\">0</td>\r\n <td width=\"20%\">0</td>\r\n <td width=\"20%\"></td> \r\n </tr> \r\n <tr> \r\n <td width=\"20%\"></td> \r\n <td width=\"20%\">Essalud 6.75%</td>\r\n <td width=\"20%\">0</td>\r\n <td width=\"20%\">0</td>\r\n <td width=\"20%\"></td> \r\n </tr> \r\n <tr> \r\n <td width=\"20%\"></td> \r\n <td width=\"20%\">Essalud 6.75%</td>\r\n <td width=\"20%\">0</td>\r\n <td width=\"20%\">0</td>\r\n <td width=\"20%\"></td> \r\n </tr> \r\n </table>\r\n</div>\r\n ';\r\n $pdf->Ln();\r\n \r\n $pdf->AddPage();\r\n $pdf->writeHTML($html);//, true, false, true, false, '');\r\n //$pdf->Ln();\t\r\n return $pdf->Output('doc.pdf', 'I');\r\n \r\n}", "title": "" }, { "docid": "40c0d86d1e865bd25d61f3d3f1777c72", "score": "0.64964", "text": "public function drawPdfWindows()\n\t{\n\t\t$pdf = Yii::createComponent('application.extensions.tcpdf.ETcPdf', \n 'P', 'cm', 'Letter', true, 'UTF-8');\n\t\t$pdf->SetCreator(PDF_CREATOR);\n\t\t$pdf->SetAuthor(\"Sotranscol\");\n\t\t$pdf->SetTitle(\"Remesa \" . $this->id);\n\t\t$pdf->SetSubject(\"Remesa \" . $this->id);\n\t\t$pdf->setPrintHeader(false);\n\t\t$pdf->setPrintFooter(false);\n\t\t$pdf->AddPage();\n\t\t$pdf->SetFont(\"pdfahelvetica\", \"\", 9);\n\t\t \n\t\t/* oficina */\n\t\t$pdf->text(4,2.8,strtoupper($this->oficina->nombre));\n\t\t$pdf->text(12,2.8,$this->formatOracionFecha());\n\t\t//$pdf->text(19,2.8,$this->cargo_oficina);\n\t\t$pdf->text(4, 3.2, strtoupper($this->remitente->nombre));\n\t\t$pdf->text(4, 3.6, strtoupper($this->destinatario));\n\t\t$pdf->text(18, 3.6, strtoupper($this->telefono));\n\t\t$pdf->text(4, 4, strtoupper($this->direccion));\n\t\t$pdf->text(18, 4, strtoupper($this->ciudad->nombre));\n\n\t\t$y = 4.9;\n\t\tforeach($this->items AS $i)\n\t\t{\n\t\t\t$pdf->text(2, $y, strtoupper($i->bultos));\n\t\t\t$pdf->text(3.2, $y, strtoupper($i->clase));\n\t\t\t$pdf->text(4.7, $y, strtoupper($i->kilos));\n\t\t\t$pdf->text(6.5, $y, strtoupper($i->descripcion));\n\t\t\tif($i->contraentrega != 0)\n\t\t\t\t$pdf->text(15, $y, \"$\".number_format($i->contraentrega));\n\t\t\t/*if($i->cta_corriente != 0)\n\t\t\t\t$pdf->text(17.5, $y, \"$\".number_format($i->cta_corriente));\n\t\t\tif($i->cancelado != 0)\n\t\t\t\t$pdf->text(20, $y, \"$\".number_format($i->cancelado));*/\n\t\t\t$y += 0.44;\n\t\t}\n\t\t$pdf->text(6.5, 9.2, strtoupper($this->observaciones));\n\n\t\t$pdf->text(4, 9.4,$this->fletes);\n\t\t$pdf->text(4, 9.9, $this->valor_aforo);\n\t\t$pdf->text(4, 10.4, $this->v_u);\n\t\t$pdf->text(4, 10.9, strtoupper($this->vehiculos->placa));\n\t\t$pdf->text(8.5, 10.9, strtoupper($this->vehiculos->conductor));\n\n\t\t//$pdf->Cell(0,10,\"Example 002\",1,1,'C');\n\t\t$pdf->Output(\"remesa-{$this->id}.pdf\", \"I\");\n\t}", "title": "" }, { "docid": "731ac2e6271667e0c10e6957984f4765", "score": "0.64843196", "text": "function muestraCompraPdf($id_compra, $id = 0, $mess = \"mensegprueba\", $estade = \"\")\n\t{\n\t\tif ($this->session->userdata('login') != 1) {\n\t\t\tredirect('login');\n\t\t}\n\t\t$data['id_compra'] = $id_compra;\n\t\t$this->load->view(\"encabezado\");\n\t\t$this->load->view('compras/ver_compra_pdf', $data);\n\t\t$data['id'] = $id;\n\t\t$data['mesg'] = $mess;\n\t\t$data['estade'] = $estade;\n\t\t$this->load->view(\"pie\", $data);\n\t}", "title": "" }, { "docid": "55cb79cb1e4edd355efd62fa30f02d86", "score": "0.6476601", "text": "public function getPdf()\n {\n return view('resume.pdf', [\n 'objective' => Objective::active()->first(),\n 'jobs' => Job::display()->get(),\n 'projects' => Project::display()->get(),\n 'credentials' => Credential::display()->get(),\n 'skills' => Skill::display()->get()\n ]);\n }", "title": "" }, { "docid": "bdd7d5a1b2b0990bc8256d09f3966e83", "score": "0.646808", "text": "function reporteInformacionP (){\n $this->objFunc=$this->create('MODPresupuesto');\n $dataSource=$this->objFunc->reporteInformacionP();\n $this->dataSource=$dataSource->getDatos();\n\n $nombreArchivo = uniqid(md5(session_id()).'[Reporte-InformaciónPresupuestaria]').'.pdf';\n $this->objParam->addParametro('orientacion','P');\n $this->objParam->addParametro('tamano','LETTER');\n $this->objParam->addParametro('nombre_archivo',$nombreArchivo);\n\n $this->objReporte = new RInformacionPresupuestaria($this->objParam);\n $this->objReporte->setDatos($this->dataSource);\n $this->objReporte->generarReporte();\n $this->objReporte->output($this->objReporte->url_archivo,'F');\n\n\n $this->mensajeExito=new Mensaje();\n $this->mensajeExito->setMensaje('EXITO','Reporte.php','Reporte generado', 'Se generó con éxito el reporte: '.$nombreArchivo,'control');\n $this->mensajeExito->setArchivoGenerado($nombreArchivo);\n $this->mensajeExito->imprimirRespuesta($this->mensajeExito->generarJson());\n }", "title": "" }, { "docid": "f13b8d7893d279329ee363330f338b25", "score": "0.64499444", "text": "function get_pagos_pdf($where,$order_by)\n\t{\n\t\t$obj = new Pago();\n\t\t$sql = \"SELECT pagos.id, pr_facturas.folio_factura AS folio, cproveedores.razon_social AS proveedor, usuarios.username AS capturista, pagos.fecha, cpr_formas_pago.tag AS forma_pago, ccuentas_bancarias.numero_cuenta, ccuentas_bancarias.banco, pagos.monto_pagado AS importe, ctipos_pagos.tag AS tipo_pago FROM pagos LEFT JOIN pr_facturas ON pr_facturas.id = pagos.pr_factura_id LEFT JOIN cproveedores \tON cproveedores.id = pr_facturas.cproveedores_id LEFT JOIN usuarios ON usuarios.id = pagos.usuario_id LEFT JOIN cpr_formas_pago ON cpr_formas_pago.id = pagos.cpr_forma_pago_id LEFT JOIN ccuentas_bancarias ON ccuentas_bancarias.id = pagos.cuenta_origen_id LEFT JOIN ctipos_pagos ON ctipos_pagos.id = pagos.ctipo_pago_id $where $order_by\";\n\t\t$obj->query($sql);\n\t\tif($obj->c_rows > 0)\n\t\t\treturn $obj;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "b684dfc173c07c107af284ac0518e366", "score": "0.6442648", "text": "protected function servicio__generar_consulta_pdf($objetos, $query, $titulo, $altura_titulo, $parametros_mostrar= '')\n\t{\n\n\t\t//////////////////////////////////////////////////\n\n\t\t$salida= new toba_vista_pdf();\n\t\t$nombre= 'consulta.pdf';\n\n\t\t$salida->set_nombre_archivo($nombre);\n\n\t\t$pdf = $salida->get_pdf();\n\t\t//modificamos los márgenes de la hoja top, bottom, left, right\n\t\t$pdf->ezSetMargins(105, 30, 20, 20);\n\t\t//Configuramos el pie de página. El mismo, tendra el número de página centrado en la página y la fecha ubicada a la derecha.\n\t\t//Primero definimos la plantilla para el número de página.\n\t\t$formato = 'Página {PAGENUM} de {TOTALPAGENUM}';\n\t\t//Determinamos la ubicación del número página en el pié de pagina definiendo las coordenadas x y, tamaño de letra, posición, texto, pagina inicio\n\t\t$pdf->ezStartPageNumbers(300, 20, 8, 'left', utf8_d_seguro($formato), 1);\n\t\t//Luego definimos la ubicación de la fecha en el pie de página.\n\t\t$pdf->addText(480,20,8,date('d/m/Y h:i:s a'));\n\t\t//Configuración de Título.\n\t\t//$salida->titulo(utf8_d_seguro(\"Consulta\"));\n\n\t\t//////////////////////////////////////////////////\n\t\t//controlar que el ancho total de las columnas no pase el ancho visible\n\t\t$ancho= $salida->get_ancho(100);\n\n\t\t$query= $this->ajustar_campos_a_ancho($query, $ancho);\n\t\ttoba::logger()->info('--------------Query Consulta Dinamica--------------------');\n\t\ttoba::logger()->info($query);\n\t\ttoba::logger()->info('--------------Query Consulta Dinamica--------------------');\n\n\t\t//////////////////////////////////////////////////\n\n\t\t$sql= $query;\n\t\t$pdo= toba::db()->get_pdo();\n\t\t$datos= array();\n\t\t$titulos= array();\n\t\t$options= array();\n\t\t$muestra_nombre_columnas= false;\n\t\t$i= 0;\n\t\t$datos= array();\n\t\t$agrupamiento= array();\n\t\t$corte= array();\n\t\t$sumar= array();\n\t\t$sumatoria= array();\n\t\t$sumatoria_total= array();\n\t\t$subtotal= false;\n\t\t$cant_sub_tot= 0;\n\t\ttry {\n\t\t\t$stmt = $pdo->prepare($sql, array(PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL));\n\t\t\t$stmt->execute();\n\t\t\twhile ($row = $stmt->fetch(PDO::FETCH_ASSOC, PDO::FETCH_ORI_NEXT)) {\n\t\t\t $row;\n\t\t\t $i++;\n\t\t\t if (empty($titulos)) {\n\t\t\t \t$muestra_nombre_columnas= true;\n\t\t\t \tforeach ($row as $key => $value) {\n\t\t\t\t\t$titulos[$key]= substr($key, 0, strpos($key, \"{\") - 1);\n\t\t\t\t\t$justification= substr($key, strpos($key, \"{\") + 1, strpos($key, \",\") - strpos($key, \"{\")- 1);\n\t\t\t\t\t$nivel_agrupamiento= null;\n\t\t\t\t\tif (substr_count($key, ',') == 1){\n\t\t\t\t\t\t$width= substr($key, strpos($key, \",\") + 1, strpos($key, \"}\") - strpos($key, \",\") - 1);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$aux= $this->strpos_r($key, ',');\n\t\t\t\t\t\t$width= substr($key, $aux[1]+1, $aux[0] - $aux[1] - 1);\n\t\t\t\t\t\t$nivel_agrupamiento= substr($key, $aux[0]+1, strpos($key, \"}\") - $aux[0] - 1);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (($nivel_agrupamiento != null)&&($nivel_agrupamiento != 'sum')) {\n\t\t\t\t\t\t$agrupamiento[$nivel_agrupamiento]= $key;\n\t\t\t\t\t}else{ //tiene como valor una suma o algun otro operador\n\t\t\t\t\t\tif (($nivel_agrupamiento != null)&&($nivel_agrupamiento == 'sum')) {\n\t\t\t\t\t\t\ttoba::logger()->info('*****************************************');\n\t\t\t\t\t\ttoba::logger()->info($nivel_agrupamiento);\n\t\t\t\t\t\ttoba::logger()->info('*****************************************');\n\t\t\t\t\t\t\tarray_push($sumar, $key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$options[$key]= array(\"justification\" => $justification, \"width\" => $width);\n\t\t\t\t}\n\t\t\t }\n\n\t\t\t //controlar el corte de control\n\t\t\t if (count($agrupamiento) > 0) {\n\t\t\t \tfor ($i=1; $i <= count($agrupamiento); $i++) {\n\t\t\t \t\tif (!isset($control[$i])||$control[$i] != $row[$agrupamiento[$i]]) {\n\t\t\t \t\t\tif (($i+1 <= count($agrupamiento))&&(isset($control[$i+1]))) {\n\t\t\t\t \t\t\tfor ($j=$i+1; $j <= count($control)+1; $j++) { \n\t\t\t\t \t\t\t\tunset($control[$j]);\n\t\t\t\t \t\t\t}\n\t\t\t \t\t\t}\n\t\t\t \t\t\tif (isset($control[$i])){\n\t\t\t \t\t\t\t$subtotal= true;\n\t\t\t \t\t\t}\n\t\t\t \t\t\t$valor= $row[$agrupamiento[$i]];\n\t\t\t \t\t\t$control[$i]= $valor;\n\t\t\t \t\t}elseif ((isset($control[$i]))&&($control[$i] == $row[$agrupamiento[$i]])) {\n\t\t\t \t\t\t$row[$agrupamiento[$i]]= '';\n\t\t\t \t\t}\n\t\t\t \t}\n\n\t\t\t \tif (($subtotal)&&(count($sumar) > 0)) {\n\t\t\t \t\tif ($cant_sub_tot > 1){\n\t\t\t \t\t\t$cant_sub_tot= 0;\n\t\t\t\t \t\t$total_row= $row;\n\t\t\t\t \t\tforeach ($total_row as $key => $value) {\n\t\t\t\t \t\t\t$total_row[$key]= '';\n\t\t\t\t \t\t}\n\t\t\t\t \t\tforeach ($sumatoria as $key => $value) {\n\t\t\t\t \t\t\t$total_row[$key]= $value;\n\t\t\t\t \t\t}\n\t\t\t\t \t\t$key = array_keys($sumatoria);\n\t\t\t\t \t\t$key= $key[0];\n\t\t\t\t\t\t$position = array_search($key, array_keys($total_row), true);\n\t\t\t\t\t\t$total_keys= array_keys($total_row);\n\t\t\t\t\t\t$col_prev= $total_keys[$position-1];\n\t\t\t\t\t\t$total_row[$col_prev]= \"<b>Sub Total</b>\";\n\t\t\t\t \t\tarray_push($datos, $total_row);\n\t\t\t\t \t}\n\t\t\t\t \t$sumatoria= array();\n\t\t\t\t \t$subtotal= false;\n\t\t\t \t}\n\n\t\t\t \t//sumar los totales\n\t\t\t \tif (!empty($sumar)){\n\t\t\t\t \tforeach ($sumar as $key => $value) {\n\t\t\t\t \t\tif(!isset($sumatoria[$value])){\n\t\t\t\t \t\t\t$sumatoria[$value]= $row[$value];\n\t\t\t\t \t\t}\n\t\t\t\t \t\telse{\n\t\t\t\t \t\t\t$sumatoria[$value]+= $row[$value];\n\t\t\t\t \t\t}\n\t\t\t\t \t\tif(!isset($sumatoria_total[$value])){\n\t\t\t\t \t\t\t$sumatoria_total[$value]= $row[$value];\n\t\t\t\t \t\t}\n\t\t\t\t \t\telse{\n\t\t\t\t \t\t\t$sumatoria_total[$value]+= $row[$value];\n\t\t\t\t \t\t}\n\t\t\t\t \t}\n\t\t\t\t \t$cant_sub_tot+= 1;\n\t\t\t\t}\n\t\t\t }else{\n\t\t\t \t//solo sumar los totales\n\t\t\t \tif (!empty($sumar)){\n\t\t\t\t \tforeach ($sumar as $key => $value) {\n\t\t\t\t \t\tif(!isset($sumatoria[$value])){\n\t\t\t\t \t\t\t$sumatoria[$value]= $row[$value];\n\t\t\t\t \t\t}\n\t\t\t\t \t\telse{\n\t\t\t\t \t\t\t$sumatoria[$value]+= $row[$value];\n\t\t\t\t \t\t}\n\t\t\t\t \t\tif(!isset($sumatoria_total[$value])){\n\t\t\t\t \t\t\t$sumatoria_total[$value]= $row[$value];\n\t\t\t\t \t\t}\n\t\t\t\t \t\telse{\n\t\t\t\t \t\t\t$sumatoria_total[$value]+= $row[$value];\n\t\t\t\t \t\t}\n\t\t\t\t \t}\n\t\t\t\t \t$cant_sub_tot+= 1;\n\t\t\t\t}\n\t\t\t }\n\n\t\t\t array_push($datos, $row);\n\n\t\t\t if ($i == 500) {\n\t\t\t \t$datos_salida= array('datos_tabla' => $datos, 'titulo_tabla' => '', 'titulos_columnas' => $titulos);\n\t\t\t \t$salida->tabla( $datos_salida, $muestra_nombre_columnas, 8,array(\"cols\" => $options));\n\t\t\t \t$i= 0;\n\t\t\t \t$datos= array();\n\t\t\t \t$muestra_nombre_columnas= false;\n\t\t\t }\n\t\t\t}\n\t\t\t$stmt = null;\n\t\t} catch (PDOException $e) {\n\t\t\ttoba::logger()->error($e->getMessage());\n\t\t}\n\t\tif (($i > 0)&&(count($datos) > 0)) {\n\t\t\tif (count($sumar) > 0) {\n\t\t \t\t$total_row= $datos[0];\n\t\t \t\tforeach ($total_row as $key => $value) {\n\t\t \t\t\t$total_row[$key]= '';\n\t\t \t\t}\n\t\t \t\tforeach ($sumatoria as $key => $value) {\n\t\t \t\t\t$total_row[$key]= $value;\n\t\t \t\t}\n\t\t \t\t$key = array_keys($sumatoria);\n\t\t \t\tif (isset($key[0])){\n\t\t\t \t\t$key= $key[0];\n\t\t\t\t\t$position = array_search($key, array_keys($total_row), true);\n\t\t\t\t\t$total_keys= array_keys($total_row);\n\t\t\t\t\t$col_prev= $total_keys[$position-1];\n\t\t\t\t\t$total_row[$col_prev]= 'Sub Total';\n\t\t\t\t\tarray_push($datos, $total_row);\n\t\t\t\t\t$total_row[$col_prev]= '';\n\t\t\t\t\tforeach ($sumatoria_total as $key => $value) {\n\t\t\t\t\t\t$total_row[$key]= $value;\n\t\t\t\t\t}\n\t\t\t\t\t//array_push($datos, $total_row);\n\t\t\t\t}\n\t\t \t}\n\n\t\t\t$datos_salida= array('datos_tabla' => $datos, 'titulo_tabla' => '', 'titulos_columnas' => $titulos);\n\t\t \t$salida->tabla( $datos_salida, $muestra_nombre_columnas, 8,array(\"cols\" => $options));\n\t\t \t$i= 0;\n\t\t \t$muestra_nombre_columnas= false;\n\t\t \t$datos= array();\n\t\t \t//$pdf->ezStream(array());\n\t\t \tif (!empty($sumatoria_total)) {\n\t\t\t \tarray_push($datos, $total_row);\n\t\t\t \t$datos_salida= array('datos_tabla' => $datos, 'titulo_tabla' => \"<b>TOTALES</b>\", 'titulos_columnas' => $titulos);\n\t\t\t \t$salida->tabla( $datos_salida, true, 12,array(\"cols\" => $options));\n\t\t \t}\n\t\t }\n\t\t toba::logger()->info('--------------Agrupamientos--------------------');\n\t\t toba::logger()->info($agrupamiento);\n\t\t toba::logger()->info('--------------Agrupamientos--------------------');\n\n\t\t//$datos= toba::db()->consultar($query);\n\n\t\t/////////////////////////////////////////////////////////\n\n\t\t$this->armar_encabezado_consulta_pdf($pdf, $titulo, $altura_titulo, $parametros_mostrar);\n\n\t\t$salida->generar_salida();\n\t\t$salida->enviar_archivo();\n\t}", "title": "" }, { "docid": "87c77d93192c06fbe8072e9a46884751", "score": "0.64342695", "text": "public function pdfspp(Request $request)\n {\n $tgl = $request->input('tanggal');\n $tgl1 = $request->input('tanggal1');\n\n $bulan = date('m', strtotime($tgl));\n $bln = Bulan::findOrFail(intval($bulan));\n $bulan1 = date('m', strtotime($tgl1));\n $bln1 = Bulan::findOrFail(intval($bulan1));\n $tahun = date('20y', strtotime($tgl1));\n $tahun1 = date('20y', strtotime($tgl1));\n\n $spp = SppBayar::whereBetween('tgl_bayar', [new Carbon($tgl), new Carbon($tgl1)])->orderBy('created_at', 'desc')->get();\n\n $sub[] = 0;\n foreach($spp as $nr) {\n $sub[] = $nr->dibayar; \n }\n $total = array_sum($sub);\n \n $keuangan = User::where('role', 'Admin')->first();\n\n $no = 1;\n $pdf = PDF::loadview('laporan.pdfspp',\n compact('keuangan', 'spp', 'no', 'total', 'bln', 'bln1', 'tahun', 'tahun1'))->setPaper('a4', 'portrait');\n\n return $pdf->stream('Laporan SPP - '.time().'.pdf');\n }", "title": "" }, { "docid": "773f49a69e9ccd1065aa22304ede3266", "score": "0.6428334", "text": "function Cabecera($pdf) {\r\n\r\n\t$pdf->AddPage();\r\n\r\n\t$pdf->Image('../imagenes/logos/contraloria.jpg', 10, 10, 10, 10);\t\r\n\r\n\t$pdf->SetFont('Arial', 'B', 8);\r\n\r\n\t$pdf->SetXY(20, 10); $pdf->Cell(190, 5,utf8_decode( 'Contraloría del Estado Monagas'), 0, 1, 'L');\r\n\r\n\t$pdf->SetXY(20, 15); $pdf->Cell(190, 5, utf8_decode('Dirección de Administración'), 0, 1, 'L');\t\r\n\r\n\t$pdf->SetFont('Arial', 'B', 10);\r\n\r\n\t$pdf->Cell(190, 10, 'A J U S T E', 0, 1, 'C');\t\r\n\r\n\t$pdf->SetDrawColor(0, 0, 0); $pdf->SetFillColor(200, 200, 200); $pdf->SetTextColor(0, 0, 0);\r\n\r\n\t$pdf->SetFont('Arial', 'B', 6);\r\n\r\n\t$pdf->Cell(10, 5, utf8_decode('PERIODO'), 1, 0, 'C', 1);// AÑO\r\n\r\n\t$pdf->Cell(20, 5, utf8_decode('FECHA APROBADO'), 1, 0, 'C', 1);\t// FECHA APROBADO\r\n\r\n\t$pdf->Cell(15, 5, utf8_decode('Nro OFICIO'), 1, 0, 'C', 1);//\r\n\r\n\t$pdf->Cell(15, 5, utf8_decode('Nro GACETA'), 1, 0, 'C', 1);//Nro DECRETO\t\r\n\r\n\t$pdf->Cell(20, 5, utf8_decode('MONTO'), 1, 0, 'R', 1);//MONTO\r\n\r\n\t$pdf->Cell(15, 5, utf8_decode('ESTATUS'), 1, 0, 'C', 1);//ESTATUS\t\r\n\r\n\t$pdf->Cell(80, 5, utf8_decode('MOTIVO DEL PROCESO'), 1, 0, 'C', 1);//MOTIVO DEL PROCESO\r\n\r\n\t\r\n\r\n\t$pdf->Cell(20, 5, utf8_decode('TIPO MOV.'), 1, 0, 'C', 1);//MOTIVO DEL PROCESO\r\n\r\n\t\r\n\r\n\t\r\n\r\n}", "title": "" }, { "docid": "630bc337b575a4e5853854bbf64bcc43", "score": "0.64282596", "text": "function pdf_write_competence( $competence ) {\r\n global $Refpdf;\r\n \t\t if ($competence){\r\n $code = $competence->code_competence;\r\n $description_competence = $competence->description_competence;\r\n $ref_domaine = $competence->ref_domaine;\r\n $num_competence = $competence->num_competence;\r\n\t\t\t $nb_item_competences = $competence->nb_item_competences;\r\n $Refpdf->SetFont('helvetica','B',10); \r\n\t \t $Refpdf->Write(6,(trim(get_string('competence','referentiel').\" : \".stripslashes($code))));\r\n $Refpdf->Ln(6);\r\n $Refpdf->SetFont('helvetica','',10); \r\n $Refpdf->Write(6, (trim(stripslashes($description_competence))));\r\n\t \t \t$Refpdf->Ln(6);\r\n\t\t\t\r\n\t\t\t // ITEM\r\n\t\t\t $records_items = referentiel_get_item_competences($competence->id);\r\n if ($records_items){\t\t\t\t \r\n \t $Refpdf->SetFont('helvetica','B',10); \r\n\t $Refpdf->Write(6,(trim(get_string('items','referentiel'))));\r\n $Refpdf->Ln(6);\r\n\r\n\t\t\t\t foreach ($records_items as $record_i){\r\n\t\t\t\t\t\tpdf_write_item( $record_i );\r\n\t\t\t\t }\r\n\t\t\t\t $Refpdf->Ln(6);\r\n\t\t\t }\r\n }\r\n}", "title": "" }, { "docid": "65265ce891f12f1737fa39473488ea5d", "score": "0.64268786", "text": "function Cabecera($pdf, $head, $fperiodo) {\r\n\t$pdf->AddPage();\r\n\t$pdf->SetFont('Arial', 'B', 8);\r\n\t$pdf->Cell(260, 4, ('CONTRALORIA DEL ESTADO MONAGAS'), 0, 1, 'L');\r\n\t$pdf->Cell(260, 4, ('DIVISION DE ADMINISTRACION Y PRESUPUESTO'), 0, 1, 'L');\r\n\t$pdf->Cell(260, 4, ('DIRECCION DE RECURSOS HUMANOS'), 0, 1, 'L');\r\n\t$pdf->Cell(260, 4, ('R.I.F. '.$head['DocFiscal']), 0, 1, 'L');\r\n\t//---------------------------------------------------\r\n\t$pdf->Cell(260, 6, 'RELACION DE INGRESOS', 0, 1, 'C');\r\n\t//---------------------------------------------------\r\n\t$pdf->Cell(160, 4, 'NOMBRES Y APELLIDOS', 0, 0, 'L');\r\n\t$pdf->Cell(100, 4, 'CEDULA DE IDENTIDAD', 0, 1, 'C');\r\n\t//---------------------------------------------------\r\n\t$pdf->SetFont('Arial', '', 8);\r\n\t$pdf->Cell(160, 4, utf8_decode($head['NomCompleto']), 0, 0, 'L');\r\n\t$pdf->Cell(100, 4, number_format($head['Ndocumento'], 0, '', '.'), 0, 1, 'C');\r\n\t//---------------------------------------------------\r\n\t$pdf->SetFont('Arial', 'BU', 8);\r\n\t$pdf->Cell(260, 10, utf8_decode('REGISTRO DE SUELDOS Y REMUNERACIONES PERCIBIDAS EN EL AÑO '.$fperiodo), 0, 1, 'C');\r\n\t//---------------------------------------------------\r\n\t$pdf->SetFont('Arial', 'B', 8);\r\n\t$pdf->Cell(50, 4, ('PERIODO'), 1, 0, 'L');\r\n\t$pdf->Cell(40, 4, ('SUELDO FIJO'), 1, 0, 'R');\r\n\t$pdf->Cell(5, 4);\r\n\t$pdf->Cell(120, 4, ('BONOS Y REMUNERACIONES'), 1, 0, 'L');\r\n\t$pdf->Cell(40, 4, ('MONTO'), 1, 1, 'R');\r\n\t//---------------------------------------------------\r\n\t$pdf->SetFont('Arial', '', 8);\r\n}", "title": "" }, { "docid": "8754b27282b8bb3cf383f80c13742b0c", "score": "0.6419401", "text": "function executeGetReport4Pdf()\n { \n\n \t$sbFechaIni = $_REQUEST['FechaIni'];\n \t$sbFechaFin = $_REQUEST['FechaFin'];\n \t$sbDNI = $_REQUEST['NoComprobante'];\n \n \t\n \t$this->objQuerys->Report4($sbFechaIni, $sbFechaFin, $sbDNI);\n \t\n \t$fecha = date(\"Y\").\"-\".date(\"m\").\"-\".date(\"d\");\n\t\t$hora = getdate(time());\n\t\t$sbUserName=getSession(\"username\");\n \t\n\t\t$sbTitleSec = \"Fecha Inicial: \". $sbFechaIni . \" Fecha Final: \" . $sbFechaFin . \" Usuario: \".$sbUserName;\n \t\n \t$this->objPdf->setTitulo(\"Reporte Contenedor x DNI\");\n \t$this->objPdf->setTituloSecundario($sbTitleSec);\n \t$this->objPdf->setFecha($fecha.\" \".$hora[\"hours\"] . \":\" . $hora[\"minutes\"] . \":\" . $hora[\"seconds\"]);\n \t\n \t//Armando Reporte\n \t$nuTamanoCelda = 25;\n\t\t$nuAnchoCelda = 7;\n\n\t\t$this->objPdf->AddPage('L');\n\t\t$this->objPdf->SetFont('Arial', 'B', 14);\n\t\n\t\t$this->objPdf->SetFont('Arial', 'B', 10);\n\t\t\n\t\t$this->objPdf->SetFillColor(50);\n\t\t$this->objPdf->centrarTexto(($nuTamanoCelda*10)+($nuTamanoCelda/3));\n\t\t$this->objPdf->Cell($nuTamanoCelda/3, 7, '#', 1, 0, 'C');\n\t\t$this->objPdf->Cell($nuTamanoCelda+15, 7, 'Cliente', 1, 0, 'C');\n\t\t$this->objPdf->Cell($nuTamanoCelda+5, 7, 'Contenedor', 1, 0, 'C');\n\t\t$this->objPdf->Cell($nuTamanoCelda+5, 7, 'NoComprobante', 1, 0, 'C');\n\t\t$this->objPdf->Cell($nuTamanoCelda+10, 7, 'Descripcion', 1, 1, 'C');\t\t\n\n\t\n\t $nuI = 0;\n\t\tforeach ($this->objQuerys->report_array as $rcDatos) { \n \t\t\t\n\t\t\tif($nuI>0){\t\n\t\t\t\t$this->objPdf->SetFont('Arial', '', 9);\n\t\t\t\t\n\t\t\t\t$this->objPdf->centrarTexto(($nuTamanoCelda*10)+($nuTamanoCelda/3));\n\t\t\t\t$nuCantidad++;\n\t\t\t\t\n \t\t\t$this->objPdf->Cell($nuTamanoCelda/3, $nuAnchoCelda, $nuCantidad, 1, 0, 'C');\n\t\t\t\t$this->objPdf->Cell($nuTamanoCelda+15, $nuAnchoCelda, $rcDatos[\"Cliente\"], 1, 0, 'C' );\n\t\t\t\t$this->objPdf->Cell($nuTamanoCelda+5, $nuAnchoCelda, $rcDatos[\"Contenedor\"], 1, 0, 'C' );\n\t\t\t\t$this->objPdf->Cell($nuTamanoCelda+5, $nuAnchoCelda, $rcDatos[\"NoComprobante\"], 1, 0, 'C' );\n\t\t\t\t$this->objPdf->Cell($nuTamanoCelda+10, $nuAnchoCelda, $rcDatos[\"Descripcion\"], 1, 1, 'C' );\t\n\t\t\t}\n\t\t\t$nuI++;\t\t\n\n\t\t}\n \t//Fin Armando Reporte\n \t\n \t$sbTitle = \"Reporte_Contenedor_DNI\";\n\t\t$sbNomArchivo = $fecha.\"_\".$sbTitle.'.pdf';\n\t\t\n\t $this->objPdf->Output( $sbNomArchivo, 'D' );\n \t\n }", "title": "" }, { "docid": "bc61b166512ccb13491e98c34f5fdbba", "score": "0.64098245", "text": "function generarMYPDF_RME_ORDEN_MEDICA($atributosReceta, $labelCabecera, $labelPie, $datosCabecera, $datosDetalle, $datosPie, $modo, $nombreReporte, $parametros) {\n $pdf = new TCPDF($parametros[\"PDF_PAGE_ORIENTATION\"], PDF_UNIT, $parametros[\"PDF_PAGE_FORMAT\"], true, 'UTF-8', false);\n// set document information\n $pdf->SetCreator(PDF_CREATOR);\n $pdf->SetAuthor('HMLO');\n $pdf->SetTitle('OrdenMedica');\n $pdf->SetSubject('HMLO');\n $pdf->SetKeywords('TCPDF, PDF, example, test, guide');\n// set default header data\n// $pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE . ' 048', PDF_HEADER_STRING);\n// remove default header/footer\n $pdf->setPrintHeader($parametros[\"PRINT_HEADER\"]);\n $pdf->setPrintFooter($parametros[\"PRINT_FOOTER\"]);\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($parametros[\"PDF_MARGIN_LEFT\"], $parametros[\"PDF_MARGIN_TOP\"], $parametros[\"PDF_MARGIN_RIGHT\"]);\n $pdf->SetHeaderMargin($parametros[\"PDF_MARGIN_HEADER\"]);\n $pdf->SetFooterMargin($parametros[\"PDF_MARGIN_FOOTER\"]);\n\n//set auto page breaks\n $pdf->SetAutoPageBreak($parametros[\"AUTO_PAGE_BREAK\"], $parametros[\"PDF_MARGIN_BOTTOM\"]);\n\n//set image scale factor\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n//set some language-dependent strings\n// $pdf->setLanguageArray($l);\n// ---------------------------------------------------------\n// set font\n $pdf->SetFont('helvetica', 'B', 20);\n\n// add a page\n $pdf->AddPage();\n // define barcode style\n $style = array(\n 'position' => '',\n 'align' => 'C',\n 'stretch' => false,\n 'fitwidth' => true,\n 'cellfitalign' => '',\n 'border' => false,\n 'hpadding' => 'auto',\n 'vpadding' => 'auto',\n 'fgcolor' => array(0, 0, 0),\n 'bgcolor' => false, //array(255,255,255),\n 'text' => false,\n 'font' => 'helvetica',\n 'fontsize' => 8,\n 'stretchtext' => 4\n );\n// CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.\n //$pdf->Cell(10, 5, 'CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9', 0, 1);\n $pdf->write1DBarcode($parametros[\"CODIGO_DE_BARRAS\"], 'C39', 68, 137, 70, 8, 0.4, $style, 'N');\n// $pdf->Write(0, 'Example of HTML tables', '', 0, 'L', true, 0, false, false, 0);\n $pdf->SetFont('helvetica', '', 8);\n //======================================================================================================\n $sizeDatos = 6;\n $sizeTitulo = 8;\n $sizeSubtitulo = 6;\n $family = \"helvetica\";\n $styleNormal = \"N\";\n $styleNegrita = \"B\";\n /* ======================================= Obs ============================================ */\n // width->0, height->1, top->2, left->3, color->4 TipoLetra=>5 EstiloLetra=>6 TamañoLetra=>6\n /* ===================================================================================================== */\n $lblCabecera = array();\n// $lblDetalle=array();\n $lblPie = array();\n $styleCL = array();\n $styleCD = array();\n// $styleDL=array();\n// $styleDD=array();\n $stylePL = array();\n $stylePD = array();\n\n $o_classGeneral = new classGeneral();\n $o_classGeneral->setLabelCabecera($labelCabecera, $atributosReceta);\n $o_classGeneral->setLabelPie($labelPie, $atributosReceta);\n $styleCL = $o_classGeneral->getStyleCL();\n $styleCD = $o_classGeneral->getStyleCD();\n $stylePL = $o_classGeneral->getStylePL();\n $stylePD = $o_classGeneral->getStylePD();\n $lblCabecera = $o_classGeneral->getLblCabecera();\n $lblPie = $o_classGeneral->getLblPie();\n /* ===================================================================================================== */\n /* ===================================================================================================== */\n\n /* ===================================================================================================== */\n /* ===================================== Cabecera =================================================== */\n if (is_array($lblCabecera) && !empty($lblCabecera) && $modo == 1) {\n foreach ($lblCabecera as $i => $value) {\n $isImg = end(explode(\".\", $value));\n if ($isImg == \"jpg\" || $isImg == \"png\" || $isImg == \"gif\") {\n $filename = '../../../tcPDF/tcpdf/tcpdf/images/' . $lblCabecera[$i];\n if (file_exists($filename))\n $pdf->Image($filename, $styleCL[$i][3], $styleCL[$i][2], $styleCL[$i][0], $styleCL[$i][1], '', '', '', false, 300);\n }\n else {\n $color = $styleCL[$i][4];\n $pdf->SetTextColor($color[0], $color[1], $color[2]);\n $pdf->SetFont($styleCL[$i][5], $styleCL[$i][6], $styleCL[$i][7]);\n $pdf->MultiCell($styleCL[$i][0], $styleCL[$i][1], $lblCabecera[$i], 0, 'L', 0, 1, $styleCL[$i][3], $styleCL[$i][2], true);\n }\n }\n }\n\n if (is_array($datosCabecera) && !empty($datosCabecera)) {\n $indice = array_keys($datosCabecera);\n foreach ($indice as $val => $z) {\n $color = $styleCD[$z][4];\n $pdf->SetTextColor($color[0], $color[1], $color[2]);\n $pdf->SetFont($styleCD[$z][5], $styleCD[$z][6], $styleCD[$z][7]);\n $pdf->MultiCell($styleCD[$z][0], $styleCD[$z][1], $datosCabecera[$z], 0, 'L', 0, 1, $styleCD[$z][3], $styleCD[$z][2], true);\n }\n }\n\n /* ===================================================================================================== */\n /* ===================================== Fin Cabecera ============================================== */\n\n /* =============================== espacio despues de la cabecera ================================ */\n $pdf->writeHTML(\"<br>\", true, false, false, false, '');\n /* ===================================================================================================== */\n\n /* ===================================================================================================== */\n /* ===================================== Antecedentes ========================================== */\n \n $cadenaAntecedentes = $RP . '<table width=\"700\" border=\"1\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#ffffff\">\n <tr>\n <td width=\"35\" align=\"center\"><strong><br>NRO</strong></td>\n <td align=\"center\" width=\"250\">\n <strong>PROCEDIMIENTOS</strong><br/>\n <strong>Y/O</strong><br/>\n <strong>INTERCONSULTAS</strong></td>\n <td align=\"center\" width=\"160\"><strong><br>SERVICIO</strong></td>\n <td align=\"center\" width=\"270\"><strong><br>INDICACIONES</strong></td>\n </tr>\n <tr>\n \n </tr>';\n $orden = 0;\n foreach ($datosDetalle as $key => $value) {\n $orden++;\n $cadenaAntecedentes.='<tr>\n <td><font size=\"6\"><strong>' . $orden . '.</strong></font></td>\n <td><font size=\"6\">' . utf8_encode($value[0]) . '</font></td>\n <td><font size=\"6\">' . utf8_encode($value[4][0][0]) . '</font></td>\n \n <td><font size=\"6\">' . utf8_encode($value[3]) . '</font></td>\n </tr>';\n }\n $cadenaAntecedentes.='</table>';\n $cadenaAntecedentes.='<table border=\"0\" cellspacing=\"3\" cellpadding=\"0\"><tr><td width=\"685\">Utilizado hasta el regl&oacute;n ....................... Inclusive </td></tr></table>';\n //echo $cadenaAntecedentes;\n $pdf->SetFont($family, $styleNormal, $sizeTitulo);\n $pdf->writeHTML($cadenaAntecedentes, true, false, false, false, '');\n /* ===================================================================================================== */\n /* ===================================================================================================== */\n\n /* ===================================================================================================== */\n /* ===================================== Pie =================================================== */\n if (is_array($lblPie) && !empty($lblPie) && $modo == 1) {\n foreach ($lblPie as $i => $value) {\n $color = $stylePL[$i][4];\n $pdf->SetTextColor($color[0], $color[1], $color[2]);\n $pdf->SetFont($stylePL[$i][5], $stylePL[$i][6], $stylePL[$i][7]);\n $pdf->MultiCell($stylePL[$i][0], $stylePL[$i][1], $lblPie[$i], 0, 'L', 0, 1, $stylePL[$i][3], $stylePL[$i][2], true);\n }\n }\n if (is_array($datosPie) && !empty($datosPie)) {\n foreach ($datosPie as $i => $value) {\n $color = $stylePD[$i][4];\n $pdf->SetTextColor($color[0], $color[1], $color[2]);\n $pdf->SetFont($stylePD[$i][5], $stylePD[$i][6], $stylePD[$i][7]);\n $pdf->MultiCell($stylePD[$i][0], $stylePD[$i][1], $datosPie[$i], 0, 'L', 0, 1, $stylePD[$i][3], $stylePD[$i][2], true);\n }\n }\n\n /* ===================================================================================================== */\n /* ===================================== Fin Pie ================================================= */\n// -----------------------------------------------------------------------------\n//Close and output PDF document\n $pdf->Output($nombreReporte, 'I');\n//============================================================+\n// END OF FILE\n//============================================================+\n }", "title": "" }, { "docid": "47144d9f8d09f33d8d9e1c2aae33e875", "score": "0.6401393", "text": "public function reporteTrabajadores()\n {\n $this->load->model('workmodel');\n // Se carga la libreria fpdf\n $this->load->library('pdf');\n \n // Se obtienen los alumnos de la base de datos\n $trabajadores = $this->workmodel->getListaWorkers();\n \n // Creacion del PDF\n \n /*\n * Se crea un objeto de la clase Pdf, recuerda que la clase Pdf\n * heredó todos las variables y métodos de fpdf\n */\n $this->pdf = new Pdf();\n // Agregamos una página\n $this->pdf->AddPage();\n // Define el alias para el número de página que se imprimirá en el pie\n $this->pdf->AliasNbPages();\n \n /* Se define el titulo, márgenes izquierdo, derecho y\n * el color de relleno predeterminado\n */\n $this->pdf->SetTitle(\"Lista de Trabajadores\");\n $this->pdf->SetLeftMargin(15);\n $this->pdf->SetRightMargin(15);\n $this->pdf->SetFillColor(200,200,200);\n \n // Se define el formato de fuente: Arial, negritas, tamaño 9\n $this->pdf->SetFont('Arial', 'B', 9);\n /*\n * TITULOS DE COLUMNAS\n *\n * $this->pdf->Cell(Ancho, Alto,texto,borde,posición,alineación,relleno);\n */\n \n $this->pdf->Cell(15,7,'CLAVE','TBL',0,'C','1');\n $this->pdf->Cell(60,7,'NOMBRE','TB',0,'C','1');\n $this->pdf->Cell(40,7,'SUELDO','TBR',0,'C','1');\n \n $this->pdf->Ln(7);\n // La variable $x se utiliza para mostrar un número consecutivo\n $x = 1;\n foreach ($trabajadores as $trabajador) {\n // se imprime el numero actual y despues se incrementa el valor de $x en uno\n //$this->pdf->Cell(15,5,$x++,'BL',0,'C',0);\n // Se imprimen los datos de cada alumno\n $this->pdf->Cell(15,5,$trabajador->clave,'B',0,'C',0);\n $this->pdf->Cell(60,5,$trabajador->nombre,'B',0,'C',0);\n $this->pdf->Cell(40,5,$trabajador->sueldo,'B',0,'R',0);\n \n //Se agrega un salto de linea\n $this->pdf->Ln(5);\n }\n /*\n * Se manda el pdf al navegador\n *\n * $this->pdf->Output(nombredelarchivo, destino);\n *\n * I = Muestra el pdf en el navegador\n * D = Envia el pdf para descarga\n *\n */\n $this->pdf->Output(\"ListadeTrab.pdf\", 'I');\n }", "title": "" }, { "docid": "0ac20094e54103d75de1edcfdc189ba7", "score": "0.6399806", "text": "public function gerarPdf($relatorio)\n\t{ \n\n\t\tif( is_file( asset('pdf/relatorios/relatorio-'.$relatorio->id.'_'.$relatorio->type.'.pdf') ) ){\n\t\t\t$pdf = App::make('dompdf');\n\t\t}else{\n\t\t\t//$pdf = App::make('dompdf');\n\t\t\t$pdf = PDF::loadView( 'relatorios.'.$relatorio->type.'.pdf', compact('relatorio'))->setPaper('a4')->setOrientation('portrait')->setWarnings(false)->save( 'pdf/relatorios/relatorio-'.$relatorio->id.'_'.$relatorio->type.'.pdf' );\n\t\t}\t\t\n\t\t\n\t\treturn $pdf; \t\t\n\t}", "title": "" }, { "docid": "b8f778e48e61d24171afae4c01bd4014", "score": "0.63996404", "text": "function Cabecera($pdf, $ftiponom, $nomina, $proceso, $periodo) {\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\r\n\t$pdf->SetXY(20, 10); $pdf->Cell(190, 5,('Contraloría del estado Monagas'), 0, 1, 'L');\r\n\t$pdf->SetXY(20, 15); $pdf->Cell(190, 5,('Direccion de Recursos Humanos'), 0, 1, 'L');\r\n\t$pdf->SetXY(20, 20); $pdf->Cell(190, 5,('Relación de Nómina - '.$nomina), 0, 1, 'L');\r\n\t$pdf->SetXY(20, 25); $pdf->Cell(190, 5,($periodo.' '.utf8_decode($proceso)), 0, 1, 'L');\r\n\t$pdf->SetXY(20, 30); $pdf->Cell(190, 5, 'Pagina: '.$pdf->PageNo().'/{nb}', 0, 1, 'R');\r\n\t$pdf->Ln(5);\r\n\t\r\n\r\n\t$pdf->SetDrawColor(0, 0, 0); $pdf->SetFillColor(255, 255, 255); $pdf->SetTextColor(0, 0, 0);\r\n\t$pdf->SetWidths(array(8, 20, 60, 20, 20,20,40));\r\n\t$pdf->SetAligns(array('C', 'C', 'C', 'C', 'C','C', 'C'));\r\n\t$pdf->Row(array('N°','Cédula', 'Apellidos y Nombres','Fecha de Ingreso', 'Años de Servicio CEM','Años de Servicio Adm Pub', 'Salario Básico Mensual'));\r\n}", "title": "" }, { "docid": "513f677c392140057ce96cbc220b65b3", "score": "0.6390692", "text": "public function project_data_core($project_id)\n\t{\n\t\t/*\n\t\t\t* Se manda el pdf al navegador\n\t\t\t*\n\t\t\t* $this->pdf->Output(nombredelarchivo, destino);\n\t\t\t*\n\t\t\t* I = Muestra el pdf en el navegador\n\t\t\t* D = Envia el pdf para descarga\n\t\t\t*\n\t\t*/\n\t $this->load->library('Pdf');\n\n\t\t/*\n\t\t\t* PROYECT DATA\n\t\t*/\n\t\t\t$this->load->model('Project_model');\n\t\t\t$project_data = $this->Project_model->get_project($project_id);\n\n\t\t\t$project_name \t= utf8_decode($project_data['name']);\n\t\t\t$description \t= utf8_decode($project_data['description']);\n\t\t\t$ranges_limits \t= utf8_decode($project_data['ranges']);\n\t\t\t$specifications = utf8_decode($project_data['specifications']);\n\n\t\t\t$project_texts = array( \n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id' => 'desc', \n\t\t\t\t\t\t\t\t\t'name' => utf8_decode('Descripción'), \n\t\t\t\t\t\t\t\t\t'text' => $description, \n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id' => 'spc', \n\t\t\t\t\t\t\t\t\t'name' => utf8_decode('Especificaciones'), \n\t\t\t\t\t\t\t\t\t'text' => $specifications, \n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id' => 'ranges', \n\t\t\t\t\t\t\t\t\t'name' => utf8_decode('Alcances y limitaciones'), \n\t\t\t\t\t\t\t\t\t'text' => $ranges_limits, \n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\n\t\t/*\n\t\t\t* Se crea un objeto de la clase Pdf, recuerda que la clase Pdf\n\t\t\t* heredó todos las variables y métodos de fpdf\n\t\t*/\n\t\t\t$this->pdf = new PDF();\n\t\t\t// Nombre del Reporte\n\t\t\t$this->pdf->setNameReport($project_name);\n\n\t\t\t// aslkdj\n\t\t\t$this->pdf->SetAutoPageBreak(true, 60);\n\t\t\t// Agregamos una página\n\t\t\t$this->pdf->AddPage('P', 'Letter');\n\t\t\t// Define el alias para el número de página que se imprimirá en el pie\n\t\t\t$this->pdf->AliasNbPages();\n\n\t\t/* \n\t\t\t* Se define el titulo, márgenes izquierdo, derecho y\n\t\t\t* el color de relleno predeterminado\n\t\t*/\n\t\t\t$this->pdf->SetTitle($project_name);\n\t\t\t$this->pdf->SetLeftMargin(25);\n\t\t\t$this->pdf->SetRightMargin(25);\n\t\t\t$this->pdf->SetFillColor(129,129,129);\n\n\t\t\t// Se define el formato de fuente: OpenSans, Regular, tamaño 9\n\n\t\t/*\n\t\t\t* TEXT BUCLE\n\t\t*/\n\t\t\tforeach ($project_texts as $key => $value) {\n\t\t\t\t$this->pdf->SetTextColor(49,155,87);\n\t\t\t\t$this->pdf->SetFont('OpenSans', 'B', 16);\n\t\t\t\t$this->pdf->Cell(0, 4, $value['name'], 0, 'J');\n\t\t\t\t$this->pdf->Ln(7);\n\t\t\t\t$this->pdf->SetTextColor(53,54,56);\n\t\t\t\t$this->pdf->SetFont('OpenSans', '', 9);\n\t\t\t\t// $this->pdf->MultiCell(0, 4, $value['text'], 0, 'J');\n\t\t\t\t$this->pdf->WriteHTML($value['text']);\n\t\t\t\t$this->pdf->Ln(10);\n\t\t\t}\n\t\t\t\n\t\t\t$this->pdf->Output($project_name.'.pdf', 'I');\n\t}", "title": "" }, { "docid": "5df6ce9d2e20d406fd958cc41d0ee202", "score": "0.6388112", "text": "public function crearReporteDetalleVenta()\n {\n $query = \"call read_sale_details();\";\n $result = $this->dbConnection->ExecuteReport($query);\n $resultKeys = array_keys($result[0]);\n // print_r($result);\n // print_r($resultKeys);\n\n ob_start(); //Habilita el buffer para la salida de datos\n ob_get_clean(); //Limpia lo que actualmente tenga el buffer\n // //En la variable content entre las etiquetas <page></page> va todo el contenido del pdf en formato html\n /* Se define la zona horaria en Colombia para generar el archivo */\n date_default_timezone_set(\"America/Bogota\");\n /* Se genera el nombre del archivo con la fecha y hora de la generacion */\n $fileName = 'ReporteDetalleVenta' . '-' . date(\"Y-m-d\") . \"(\" . date(\"h:i:sa\") . \")\" . '.csv';\n /* Se define que se retornara un archivo CVS */\n header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');\n header('Content-Disposition: attachment; filename=' . $fileName);\n\n $caracterSeparado = $_POST['txtCaracter'];\n\n $content = '';\n for ($i = 1; $i < count($resultKeys); $i++) {\n\n $content .= $resultKeys[$i] .$caracterSeparado;\n\n }\n\n\n for ($i = 0; $i < count($result); $i++) {\n $aux = $result[$i];\n for ($j = 1; $j < count($result[$i]); $j++) {\n if ($j == 1) {\n // $content .= $caracterSeparado;\n $content.= \"\\n\";\n }\n $b = $resultKeys[$j];\n $content .= $aux[$b] . $caracterSeparado;\n if ($j == count($result[$i])) {\n // $content .= $caracterSeparado;\n $content.= \"\\n\";\n }\n\n }\n }\n\n\n\n echo $content;\n\n\n\n }", "title": "" }, { "docid": "864d671e657b3ed60dcfdf229048efd2", "score": "0.63820845", "text": "public function imprimirPdf()\n {\n $url = Storage::url('public/100-JEAN-CARLOS-ACNAPURI.pdf');\n //return $url;\n //$contents = Storage::files('/public/100-JEAN-CARLOS-ACNAPURI.pdf');\n $printerId = '2147c452-5582-a70c-a44d-a65f8fc99757';\n GoogleCloudPrint::asPdf()\n ->file('storage/100-JEAN-CARLOS-ACNAPURI.pdf')\n ->range(1, 1)\n ->printer($printerId)\n ->marginsInCentimeters(5, 5, 5, 5)\n ->send();\n return View('index');\n }", "title": "" }, { "docid": "89814a04382780aebadbd4a2f2d3e677", "score": "0.63780975", "text": "function header_principal($pdf){\n$pdf->Ln(0);\n$pdf->Image('img/logo_papeleria.jpg',35,0,125);\n//$pdf->Image('img/cina_informe.png',180,17,17);\n$pdf->SetFont('Arial','B',14);\n$pdf->Ln(40);\n$sql=\"Select sol.fecha_ingreso,cli.nombre as nombre_cliente,cli.sexo,doc.nombre as nombre_doctor from tbl_solicitudes sol inner join tbl_clientes cli on sol.consecutivo='\".$_REQUEST['solicitud'].\"' and sol.id_cliente=cli.id join tbl_doctores doc on sol.doctor_referente=doc.id\";\n$result=mysql_query($sql);\n$row=mysql_fetch_object($result);\nglobal $sexo;\n$sexo=$row->sexo;\n$pdf->SetTextColor(89,177,255);\n$pdf->Cell(185,3,'Informe de Resultados',0,1,'C');\n$pdf->SetTextColor(225,0,0);\n$pdf->Cell(10,5,'________________________________________________________________________________________________________________________________________________',0,1,'C');\n$pdf->Ln(5);\n$pdf->SetTextColor(89,177,255);\n$pdf->SetFont('Courier','B',12);\n$pdf->Cell(23,5,'PACIENTE:',0,0,'L');\n$pdf->SetFont('Arial','',10);\n$pdf->SetTextColor(0,0,0);\n$pdf->Cell(103,5,strtoupper(utf8_decode($row->nombre_cliente)),0,0,'');\n$pdf->SetTextColor(89,177,255);\n$pdf->SetFont('Courier','B',12);\n$pdf->Cell(16,5,'FECHA: ',0,0,'');\n$pdf->SetFont('Arial','',10);\n$pdf->SetTextColor(0,0,0);\n$pdf->Cell(43,5,fecha_nacional($row->fecha_ingreso),0,1,'');\n$pdf->Ln(5);\n$pdf->SetTextColor(89,177,255);\n$pdf->SetFont('Courier','B',12);\n$pdf->Cell(18,5,'MEDICO:',0,0,'L');\n$pdf->SetFont('Arial','',10);\n$pdf->SetTextColor(0,0,0);\n$pdf->Cell(103,5,utf8_decode($row->nombre_doctor),0,0,'');\n$pdf->Ln(10);\n$pdf->SetTextColor(225,0,0);\n$pdf->SetFont('Arial','B',14);\n$pdf->Cell(10,5,'________________________________________________________________________________________________________________________________________________________________________________________________________',0,0,'C');\n$pdf->Ln(10);\n}", "title": "" }, { "docid": "c046f268ab72f62f699c5bbb753eb84c", "score": "0.63777864", "text": "public function createPdf($id)\n {\n $truckListAllData = $this->getAllTruckList(true);\n if($id == \"all\"){\n $truckListData = $truckListAllData;\n } else {\n $id = explode(',', $id);\n $truckListData = $truckListAllData->whereIn('id', $id);\n }\n foreach($truckListData as $key => $row){\n $image_name = explode('uploads', $row->signature);\n if(!empty($image_name[1])){\n $truckListData[$key]['signature_image'] = $image_name['1'];\n } else {\n $truckListData[$key]['signature_image'] = '';\n }\n }\n $this->loads = new Loads();\n if($id == \"all\"){\n $truckLoadData = $this->loads->getAllData(false);\n } else {\n $truckLoadData = $this->loads->getAllData($id);\n }\n foreach($truckLoadData as $key => $val){\n if(count($val->loadData) > 0){\n $truckLoadData[$key]['cargo_load'] = $val->loadData->value;\n $truckLoadData[$key]['cargo_load_desc'] = $val->loadData->description;\n } else {\n $truckLoadData[$key]['cargo_load'] = '';\n $truckLoadData[$key]['cargo_load_desc'] = '';\n }\n if(count($val->volumeData) > 0){\n $truckLoadData[$key]['cargo_volume'] = $val->volumeData->value;\n $truckLoadData[$key]['cargo_volume_desc'] = $val->volumeData->description;\n } else {\n $truckLoadData[$key]['cargo_volume'] = '';\n $truckLoadData[$key]['cargo_volume_desc'] = '';\n }\n }\n if($id == \"all\"){\n $trucklistImages = DB::table('las_truck_lists_images')->get();\n } else {\n $trucklistImages = DB::table('las_truck_lists_images')->whereIn('truck_list_id', $id)->get();\n }\n\n $company_info = Company::where('id', Auth::getUser()->company_id)->first();\n $pdf = PDF::loadView('admin.pdf', ['truckListData' => $truckListData, 'truckLoadData' => $truckLoadData, 'trucklistImages' => $trucklistImages, 'company_info' => $company_info])\n ->setPaper('a4')->setOrientation('landscape')\n ->setOption('footer-html', 'Digital lassliste levert av lass.no');\n return $pdf->download('Trucklist.pdf');\n }", "title": "" }, { "docid": "94f361451e55e5f9ae2b17fd6e85e799", "score": "0.6377767", "text": "function certificado_predeterminados($id,$evento,$funcion,$imagen,$dependencia)\n{\nrequire_once('php/tcpdf/config/lang/eng.php');\n\nini_set('memory_limit', '512M'); //Amplá la capacidad de memoria. Importante cuando se generan archivos muy pesados\nset_time_limit(0); //Libera la capacidad del tiempo de respuesta\n\nob_start();\n/*\necho \"<pre>\";\n print_r($_POST);\n echo \"</pre>\"; \n*/\n$sql =\"SELECT nombre FROM funcion WHERE codigo='$funcion'\";\n$db=$this->db;\n$rs = $db->query($sql);\n$rw = $db->fetch_assoc($rs);\n$funcion=utf8_decode($rw['nombre']);\n\n\n$sql =\"SELECT nombre FROM acto WHERE id='$evento'\";\n$db=$this->db;\n$rs = $db->query($sql);\n$rw = $db->fetch_assoc($rs);\n$nombre_evento=utf8_decode($rw['nombre']);\n\n$sql=\"SELECT p.identifica,p.tipoide, CONCAT_WS('',p.nombre,' ',p.apellido1,' ',p.apellido2) as nombre,t.nombre as tipo_identifica\n FROM general.persona p, general.tipoidentificacion t\n WHERE p.tipoide=t.codigo and p.id='$id'\";\n\n$db=$this->db;\n$rs = $db->query($sql);\n$rw = $db->fetch_assoc($rs);\n\n$nombre=utf8_decode($rw['nombre']);\n$tipo_documento=$rw['tipo_identifica'];\n$numero_documento=$rw['identifica'];\n\n//$this->SetFont('times', '', 10);\n $fecha = strftime(\"%A %d de %B del %Y - %H:%M:%S\");\n $fecha2 = strtoupper($fecha);\n$dependencia1=explode(\":\", $dependencia);\n\n \n\n?>\n\n<table border=\"0\" align=\"center\" >\n <tr style=\"background-image: url('../img/logo.png');\">\n <td colspan=\"3\" style=\"width:460px;text-align:justify;font-size:13px;\">\n <br/>\n <br/>\n <br/>\n\n El Jefe de la oficina de Registro y Control Académico,\n <br/>\n <br/>\n\n <p align=\"center\" style=\"font-size:20px;font-weight:bold\" >\n CERTIFICA:\n </p>\n <br/>\n \n Que, revisados los registros de esta institución de educación superior, se pudo certificar que <b><?php echo $nombre ?></b>, identifificado(a) con la <b><?php echo $tipo_documento ?> </b> número<b> <?php echo $numero_documento ?> </b>, asistio al acto <b><?php echo $nombre_evento ?> </b>\n cumpliendo la funcion de <b><?php echo $funcion ?></b>, de parte de la institucion <b><?php echo $dependencia1[0].\":\".$dependencia1[1] ?></b> del programa de <b><?php echo $dependencia1[2] ?></b>.\n \n <br/>\n <br/>\n <br/>\n <br/>\n Quibdó, <b><?php echo $fecha2 ?> </b>\n \n <br/>\n <br/>\n <br/>\n <br/>\n <br/>\n <br/>\n <br/>\n <br/>\n <b>JOSE DE LOS SANTOS RENTERÍA CÓRDOBA</b>\n \n \n \n </td>\n </tr>\n \n\n\n</table>\n\n\n<?php\n\n$html = ob_get_contents(); //Pasa el contenido html anterior a una variable\nob_end_clean(); //Limpiar los datos anterios \n\n/*$formato=$_POST['formato'];\n$formato=\"pdf\";\nif($formato==\"excel\")\n{\n header(\"Content-Type: application/force-download\");\n header(\"Content-Type: application/octet-stream\");\n header(\"Content-Type: application/download\");\n header(\"Content-Disposition: attachment; filename={$nombre_archivo}.xls;\");\n echo $html;\n}\n\n\nif($formato==\"word\")\n{\n header(\"Content-Type: application/force-download\");\n header(\"Content-Type: application/octet-stream\");\n header(\"Content-Type: application/download\");\n header(\"Content-Disposition: attachment; filename={$nombre_archivo}.doc;\");\n echo $html; \n}\n\n\nif($formato==\"html\")\n{ \n echo $html; \n}\n\n\nif($formato==\"pdf\")\n{ }*/ \n\n $p = new TCPDF_REPORTE(\"P\", \"pt\", \"LETTER\", true);\n $p->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n $p->SetMargins(85,100,55);// margenes de izquierda, arriba y abajo\n $p->setFooterMargin (30); \n \n $p->setPrintHeader(true);\n $p->setPrintFooter(true);\n \n $p->SetDrawColorArray( array(50,50,50) );\n \n $p->SetDisplayMode(100);\n $p->SetAutoPageBreak(TRUE,40);\n \n $p->AddPage();\n $p->SetFont(\"times\",\"\",10);\n $p->writeHTML($html, true, 0, true, 0); \n $p->Output(\"documento.pdf\"); \n\n}", "title": "" }, { "docid": "5aa1f3b3322b32744784dcb53252b8f8", "score": "0.6373364", "text": "public function generateStyledPDF($proposal){\n $prop = Proposal::find($proposal);\n $cdn_id = $prop->cdn;\n $cdn = DB::table('cdns')->where('id', $cdn_id)->first();\n $proposal_devices = $prop->devices;\n $devices_names = [];\n $dev_ids = [];\n \n $devices_names = [];\n foreach ($proposal_devices as $device){\n $dev = new Device();\n $dev = DB::table('devices')->where('id', $device->id)->first();\n array_push($dev_ids, $dev->id);\n }\n foreach ($proposal_devices as $device){\n $dev = new Device();\n $dev = DB::table('devices')->where('id', $device->id)->first();\n array_push($devices_names, $dev->name);\n }\n\n $devices_unique = array_unique($devices_names);\n\n $func_obj = $prop->functionalities;\n\n $mov_devices = self::calculateDevicesPerType($dev_ids, \"Aplicaciones móviles\");\n $tv_devices = self::calculateDevicesPerType($dev_ids, \"Aplicaciones de TV conectada\");\n\n $data = [\n 'proposal' => $prop,\n 'cdn' => $cdn,\n 'devices_unique' => $devices_unique,\n 'func_obj' => $func_obj,\n 'tv_devices' => $tv_devices,\n 'mov_devices' => $mov_devices,\n ];\n //$pdf = PDF::loadView('proposal_2', $data);\n //return $pdf->download('proposal.pdf');\n\n return \\PDF_styled::loadView('proposal_2', $data)->download('proposal-styled.pdf');\n }", "title": "" }, { "docid": "764a6c4b4c5eaff79cc375f6b1a988fe", "score": "0.63710964", "text": "function CuerpoFicha($datos) \n\t{\n\t\t// Documento\n\t\t$this->pdf = new PDF_App();\n\t\t$this->pdf->SetMostrarLogo(false);\n\t\t$this->pdf->SetTopMargin(5);\n\t\t$this->pdf->AddPage();\n\t\t\n\t\t$this->pdf->SetTextColor(0,0,0);\n\t\t$this->pdf->SetDrawColor(0,0,0);\n\t\t$this->pdf->SetFillColor(140,140,140);\n\t\t\n\t\t// Datos de Factura\n\t\t$this->pdf->SetFont('Arial','BU',10);\n\t\t$this->pdf->MultiCell(190,5,\"DATOS DE LA FACTURA\",0,'L',0);\n\t\t$this->pdf->Ln(2);\n\t\t$this->pdf->SetFont(\"arial\", \"\", 8);\n\t\t$this->pdf->MultiCell(195,4,\"FECHA: \".$datos['dia_fecha_emision'].\"/\".$datos['mes_fecha_emision'].\"/\".$datos['anio_fecha_emision'],0,'J',0);\n\t\t$this->pdf->Ln(2);\n\t\t$this->pdf->MultiCell(195,4,\"Nª FACTURA: \".$datos['num_factura'],0,'J',0);\n\t\t$this->pdf->Ln(2);\n\t\tif($datos['tipo_factura']==\"compra_venta\")\n\t\t\t$this->pdf->MultiCell(195,4,\"CONCEPTO: Gestión por la intermediación de la venta del inmueble ubicado en \".$datos['poblacion_vivienda'].\", \".$datos['direccion_vivienda'],0,'J',0);\n\t\tif($datos['tipo_factura']==\"arrendamiento\")\n\t\t\t$this->pdf->MultiCell(195,4,\"CONCEPTO: Gestión por la intermediación del arrendamiento del inmueble ubicado en \".$datos['poblacion_vivienda'].\", \".$datos['direccion_vivienda'],0,'J',0);\n\t\t$this->pdf->Ln(7);\n\t\t$this->pdf->SetFont(\"arial\", \"\", 8);\n\t\t$this->pdf->Cell(30,4,\"IMPORTE\",1,0);\n\t\t$this->pdf->Cell(15,4,\"\",1,0);\n\t\t$this->pdf->Cell(30,4,$datos['cantidad_parcial'],1,0);\n\t\t$this->pdf->Cell(20,4,\"EUROS\",1,1);\n\t\t$this->pdf->Cell(30,4,\"I.V.A.\",1,0);\n\t\t$this->pdf->Cell(15,4,$datos['iva'],1,0);\n\t\t$this->pdf->Cell(30,4,$datos['cantidad_iva'],1,0);\n\t\t$this->pdf->Cell(20,4,\"EUROS\",1,1);\n\t\t$this->pdf->Cell(30,4,\"TOTAL\",1,0);\n\t\t$this->pdf->Cell(15,4,\"\",1,0);\n\t\t$this->pdf->Cell(30,4,$datos['cantidad_total'],1,0);\n\t\t$this->pdf->Cell(20,4,\"EUROS\",1,1);\n\t\t$this->pdf->Ln(10);\n\t\t\n\t\t// Datos del cliente\n\t\t$this->pdf->SetFont('Arial','BU',10);\n\t\t$this->pdf->MultiCell(190,5,\"DATOS DEL CLIENTE\",0,'L',0);\n\t\t$this->pdf->Ln(2);\n\t\t$this->pdf->SetFont(\"arial\", \"\", 8);\n\t\t$this->pdf->MultiCell(195,4,\"NOMBRE: \".$datos['nombre_completo'],0,'J',0);\n\t\t$this->pdf->Ln(2);\n\t\t$this->pdf->MultiCell(195,4,\"DOMICILIO: \".$datos['domicilio'].\", \".$datos['poblacion'],0,'J',0);\n\t\t$this->pdf->Ln(2);\n\t\t$this->pdf->MultiCell(195,4,\"NIF: \".$datos['nif'],0,'J',0);\n\t\t$this->pdf->Ln(15);\n\t\t\n\t\t// Firmas\n\t\t$this->pdf->SetFont(\"arial\", \"\", 8);\n\t\t$this->pdf->Cell(70,4,\"DE CONFORMIDAD\",0,1);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->Cell(70,4,\"EL AGENTE COMERCIAL\",0,0);\n\t\t$this->pdf->Cell(70,4,\"EL VENDEDOR\",0,1);\n\t\t$this->pdf->Ln(25);\n\t\t$this->pdf->Cell(70,4,\"Fdo. D. ___________________,\",0,0);\n\t\t$this->pdf->Cell(70,4,\"Fdo. D. ___________________,\",0,0);\n\t}", "title": "" }, { "docid": "763f91184b7f92df5b2fe22fa500c1ec", "score": "0.6348377", "text": "public function PDF()\n {\n $data = Empleado::latest()->where('id_empleado', '>', 1)->get();\n\n $pdf = PDF::loadView('reportes.pdfEmpleado', compact('data'));\n return $pdf->download('Reporte de Empleados.pdf');\n }", "title": "" }, { "docid": "85327c8ec5113cba2b10fcc401db3451", "score": "0.63475466", "text": "function Cabecera($pdf) {\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, ( 'Contraloría del Estado Monagas'), 0, 1, 'L');\r\n\t$pdf->SetXY(20, 15); $pdf->Cell(190, 5, ('Dirección de Recursos Humanos'), 0, 1, 'L');\t\r\n\t$pdf->SetFont('Arial', 'B', 10);\r\n\t$pdf->Cell(190, 10, 'Maestro de Conceptos', 0, 1, 'C');\t\r\n\t$pdf->SetDrawColor(0, 0, 0); $pdf->SetFillColor(200, 200, 200); $pdf->SetTextColor(0, 0, 0);\r\n\t$pdf->SetFont('Arial', 'B', 6);\r\n\t$pdf->Cell(20, 5);\r\n\t$pdf->Cell(20, 5, utf8_decode('Código'), 1, 0, 'C', 1);\r\n\t$pdf->Cell(80, 5, utf8_decode('Descripción'), 1, 0, 'C', 1);\r\n\t$pdf->Cell(30, 5, 'Tipo', 1, 0, 'C', 1);\r\n\t$pdf->Cell(20, 5, 'Estado', 1, 1, 'C', 1);\r\n}", "title": "" }, { "docid": "67cfe8c2faa6ba4159f6eecb6af4597a", "score": "0.6346067", "text": "public function createPDF($id)\n {\n $pedidos = Pedido::findOrFail($id);\n\n if (auth()->user()->id == 2) {\n\n $invoices = DB::table('pedidos')->where('id', '=', $id)\n ->get();\n\n // share data to view\n view()->share('Cart.invoices-pdf', $invoices);\n $pdf = PDF::loadView('Cart.invoices-pdf', ['invoices' => $invoices]);\n } else {\n\n\n $invoices = DB::table('pedidos')->where('id_cliente', '=',auth()->user()->id)\n ->where('id', \"=\",$id) \n ->get();\n\n // share data to view\n view()->share('Cart.invoices-pdf', $invoices);\n $pdf = PDF::loadView('Cart.invoices-pdf', ['invoices' => $invoices]);\n }\n\n\n // download PDF file with download method\n return $pdf->download('nota_de_pago.pdf');\n }", "title": "" }, { "docid": "4b110c3183acf5ab27be7e393867677e", "score": "0.6341194", "text": "public function getGenerar(Request $request)\n {\n $accion = $request->get('accion');\n $tipo = $request->get('tipo');\n return $this->pdf($accion,$tipo);\n }", "title": "" }, { "docid": "f1983c05e368ff3257b4f5a768ca3ff3", "score": "0.6335438", "text": "function genTANPDF($TanNo, $user_id)\r\n{\r\n $db = new DbConnector;\r\n $result = $db->execQuery(\"SELECT fullname, username FROM users WHERE user_id = '$user_id'\");\r\n $pdf = new FPDF_Protection();\r\n $pass = mysqli_fetch_assoc($result);\r\n $password = substr((strtoupper($pass['fullname'])), 0, 4) . substr((strtolower($pass['username'])), 0, 4);\r\n $pdf->SetProtection(array(\r\n 'copy',\r\n 'print'\r\n ), $password);\r\n $pdf->AddPage();\r\n $pdf->SetFont('Arial');\r\n for ($i = 0; $i < 100; $i++) {\r\n $temp = $i + 1 . \"->\" . $TanNo[$i];\r\n $pdf->Cell(5);\r\n $pdf->Cell(5, 5, $temp, 0, 1);\r\n \r\n }\r\n $filename = \"TANList.pdf\";\r\n $pdf->Output($filename, 'F');\r\n}", "title": "" }, { "docid": "ed1f57e7b94fa1d71aee2643d7fe0b80", "score": "0.63268775", "text": "public function pdfmasuk(Request $request)\n {\n $tgl = $request->input('tanggal');\n $tgl1 = $request->input('tanggal1');\n\n $bulan = date('m', strtotime($tgl));\n $bln = Bulan::findOrFail(intval($bulan));\n $bulan1 = date('m', strtotime($tgl1));\n $bln1 = Bulan::findOrFail(intval($bulan1));\n $tahun = date('20y', strtotime($tgl1));\n $tahun1 = date('20y', strtotime($tgl1));\n\n $bos = Pemasukan::where('sumber', 'BOS')->whereBetween('tgl_bayar', [new Carbon($tgl), new Carbon($tgl1)])->orderBy('created_at', 'desc')->get();\n $lain = Pemasukan::where('sumber', 'Lainnya')->whereBetween('tgl_bayar', [new Carbon($tgl), new Carbon($tgl1)])->orderBy('created_at', 'desc')->get();\n $pemasukan = Pemasukan::whereBetween('tgl_bayar', [new Carbon($tgl), new Carbon($tgl1)])->orderBy('created_at', 'desc')->get();\n $tagihanlain = JenistUserBayar::whereBetween('tgl_bayar', [new Carbon($tgl), new Carbon($tgl1)])->orderBy('created_at', 'desc')->get();\n \n $sub_bos[] = 0;\n foreach($bos as $satu) {\n $sub_bos[] = $satu->nominal; \n }\n $subbos = array_sum($sub_bos);\n\n $sub_tlain[] = 0;\n foreach($tagihanlain as $tiga) {\n $sub_tlain[] = $tiga->dibayar; \n }\n $subtlain = array_sum($sub_tlain);\n\n $sub_lain[] = 0;\n foreach($lain as $empat) {\n $sub_lain[] = $empat->nominal; \n }\n $sublain = array_sum($sub_lain);\n\n $kepsek = User::where('role', 'Kepala Sekolah')->first();\n \n $total = $subbos + $sublain + $subtlain;\n\n $keuangan = User::where('role', 'Admin')->first();\n\n $pdf = PDF::loadview('laporan.pdfmasuk',\n compact('keuangan', 'total', 'sumasuk', 'subtlain' , 'pemasukan', 'sublain', 'bos', 'lain', 'tagihanlain', 'saldo', 'no', 'total', 'kepsek', 'bln', 'bln1', 'tahun', 'tahun1'))->setPaper('a4', 'portrait');\n \n return $pdf->stream('Laporan Pemasukan - '.time().'.pdf');\n }", "title": "" }, { "docid": "984ddc9a508eed78a4c7279639d6c4ec", "score": "0.63214755", "text": "function reportePOA (){\n $this->objFunc=$this->create('MODPresupuesto');\n $dataSource=$this->objFunc->reportePOA();\n $this->dataSource=$dataSource->getDatos();\n\n $nombreArchivo = uniqid(md5(session_id()).'[Reporte-POA]').'.pdf';\n $this->objParam->addParametro('orientacion','L');\n $this->objParam->addParametro('tamano','LETTER');\n $this->objParam->addParametro('nombre_archivo',$nombreArchivo);\n\n $this->objReporte = new RPoaPDF($this->objParam);\n $this->objReporte->setDatos($this->dataSource);\n $this->objReporte->generarReporte();\n $this->objReporte->output($this->objReporte->url_archivo,'F');\n\n\n $this->mensajeExito=new Mensaje();\n $this->mensajeExito->setMensaje('EXITO','Reporte.php','Reporte generado', 'Se generó con éxito el reporte: '.$nombreArchivo,'control');\n $this->mensajeExito->setArchivoGenerado($nombreArchivo);\n $this->mensajeExito->imprimirRespuesta($this->mensajeExito->generarJson());\n }", "title": "" }, { "docid": "84a464b74f351bbe484f582ffe5bfb69", "score": "0.6317468", "text": "public function generatePdf(){\n\n\t\t$this->directoryAsset = Yii::$app->assetManager->getPublishedUrl('@frontend/views/myasset');\n\t\t\n\t\t$this->pdf = new Tbl4PdfStart(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\t\t$this->pdf->SetFont(\"arialnarrow\", '', 11);\n\t\t\n\t\t$this->setDocStyle();\n\t\t$this->writeHeaderFooter();\n\t\t\n\t\t$this->startPage();\n\t\t$this->courseName();\n\t \t$this->synopsis();\n\t\t$this->academicStaff();\n\t\t$this->semYear();\n\t\t$this->creditValue();\n\t\t$this->prerequisite();\n\t\t$this->clo();\n\t\t$this->mapping(); \n\t\t$this->transferable(); \n\t\t$this->sltColums();\n\t\t$this->sltHead();\n\t\t$this->sltSyllabus(); \n\t\t$this->sltContAssessHead();\n\t\t$this->sltSumAssessHead(); \n\t\t$this->sltSummary();\n\t\t$this->specialRequirement();\n\t\t$this->references(); \n\t\t$this->additionalInfomation();\n\t\t$this->htmlWriting();\n\t\t//$this->preparedBy();\n\t\t\n\t\t//$this->signiture();\n\t\t//$this->signitureVerify();\n\t\t$this->tableVerify();\n\t\t\n\t\t\n\n\t\t$this->pdf->Output('TABLE 4 - '.$this->model->course->course_code .'.pdf', 'I');\n\t}", "title": "" }, { "docid": "a9efe39c5eed41577cd63823def6e13e", "score": "0.6317114", "text": "public function pdfEstados(Request $request){\n \n //Obteniendo variables request\n $escuela = $request['escuela'];\n $estado = $request['estado'];\n $periodo = $request['periodo'];\n\n //Verificar si el reporte sera para todas las escuelas.\n if($estado=='Ingresado'){\n $estado=null;\n }\n $inicio = '';\n $fin = '';\n $ciclo = '';\n\n $mensaje='';\n $consulta='';\n $college='';\n\n //Dos ciclos\n if($periodo == 'mas_ciclo'){\n $inicio = $request['cicloInicio'];\n $fin = $request['cicloFin'];\n\n $cicloInicio = Semester::find($inicio);\n $cicloFin = Semester::find($fin);\n\n \n //Si las fechas estan bien\n $fechaInicio = date($cicloInicio->fechaInicio);\n $fechaFin = date($cicloFin->fechaInicio);\n if($escuela=='todas'){\n $consulta =Tdg::join('semesters', 'tdgs.ciclo_id', '=', 'semesters.id')\n ->join('colleges', 'tdgs.escuela_id', '=', 'colleges.id')\n ->select('tdgs.id', 'tdgs.codigo', 'tdgs.nombre', 'semesters.ciclo', 'colleges.nombre_completo as escuela')\n ->where('semesters.fechaInicio','>=',$fechaInicio)\n ->where('semesters.fechaInicio', '<=', $fechaFin)\n ->where('tdgs.estado_oficial', '=',$estado)\n ->orderBy('colleges.id')\n ->orderBy('semesters.id')\n ->get();\n $college = 'Todas las escuelas';\n }else{\n $consulta =Tdg::join('semesters', 'tdgs.ciclo_id', '=', 'semesters.id')\n ->join('colleges', 'tdgs.escuela_id', '=', 'colleges.id')\n ->select('tdgs.id', 'tdgs.codigo', 'tdgs.nombre', 'semesters.ciclo', 'colleges.nombre_completo as escuela')\n ->where('colleges.id', '=',$escuela)\n ->where('semesters.fechaInicio','>=',$fechaInicio)\n ->where('semesters.fechaInicio', '<=', $fechaFin)\n ->where('tdgs.estado_oficial', '=',$estado)\n ->orderBy('semesters.id')\n ->get();\n\n $college = College::find($escuela);\n }\n \n\n }else{\n\n //Un ciclo\n $id_ciclo = $request['ciclo'];\n $ciclo = Semester::find($id_ciclo);\n\n $fechaCiclo = date($ciclo->fechaInicio);\n\n if($escuela=='todas'){\n $consulta =Tdg::join('semesters', 'tdgs.ciclo_id', '=', 'semesters.id')\n ->join('colleges', 'tdgs.escuela_id', '=', 'colleges.id')\n ->select('tdgs.id', 'tdgs.codigo', 'tdgs.nombre', 'semesters.ciclo', 'colleges.nombre_completo as escuela')\n ->where('semesters.fechaInicio','=',$fechaCiclo)\n ->where('tdgs.estado_oficial', '=',$estado)\n ->orderBy('colleges.id')\n ->get();\n\n $college = 'Todas las escuelas';\n }else{\n $consulta =Tdg::join('semesters', 'tdgs.ciclo_id', '=', 'semesters.id')\n ->join('colleges', 'tdgs.escuela_id', '=', 'colleges.id')\n ->select('tdgs.id', 'tdgs.codigo', 'tdgs.nombre', 'semesters.ciclo', 'colleges.nombre_completo as escuela')\n ->where('colleges.id', '=',$escuela)\n ->where('semesters.fechaInicio','=',$fechaCiclo) \n ->where('tdgs.estado_oficial', '=',$estado)\n ->get();\n\n $college = College::find($escuela);\n }\n \n\n }\n \n if($estado==null){\n $estado = 'Recién ingresado';\n }\n \n $titulo = 'Reporte de estado '.$estado;\n \n $date = Carbon::now();\n $fecha = $date->toFormattedDateString(); \n\n $estadom = strtolower($estado);\n \n \n $pdf = PDF::loadView('reportes.estadosPdf', compact('consulta','titulo','college','fecha','estado'));\n\n return $pdf->download('Reporte_'.$fecha.'.pdf');\n\n\n //dd($escuela, $estado, $periodo);\n \n }", "title": "" }, { "docid": "ceacd1a466ddf015e879436b42337280", "score": "0.6307794", "text": "public function generate_pdf($order_id) {\n $id = Auth::id();\n $userProfile = User::find($id);\n $shipping_info = '';\n $order_details = DB::table('orders')\n ->leftJoin('order_items', 'order_items.order_id', '=', 'orders.id')\n ->where('orders.user_id', '=', $id)\n ->where('orders.id', '=', $order_id)\n ->orderBy('orders.id', 'DESC')\n ->get();\n\n $total = 0;\n foreach ($order_details as $order_detail) {\n $total = $total + ($order_detail->amount * $order_detail->quantity);\n }\n\n $shipping_info = DB::table('orders')\n ->select('orders.id', 'orders.order_no', 'orders.paid_amount', 'orders.shipping_rate', 'orders.amount',\n 'orders.created_at', 'shipping_infos.first_name',\n 'shipping_infos.last_name', 'shipping_infos.apartment',\n 'shipping_infos.address', 'shipping_infos.city',\n 'shipping_infos.state', 'shipping_infos.country',\n 'shipping_infos.pin_code')\n ->leftJoin('shipping_infos', 'shipping_infos.id', '=', 'orders.shipping_id')\n ->where('orders.user_id', '=', $id)\n ->where('orders.id', '=', $order_id)\n ->orderBy('orders.id', 'DESC')\n ->first();\n $pdf = PDF::loadView('user.invoice', compact('order_details', 'userProfile', 'shipping_info', 'total'));\n return $pdf->stream('document.pdf');\n }", "title": "" }, { "docid": "78c8e06cecf998fa10f604b4d3f58095", "score": "0.6287861", "text": "function PDF($or = 'P') { \r\n $this->FPDF($or); \r\n }", "title": "" }, { "docid": "2f3f5b00d4a3ab6f9eda9b60b9aa4313", "score": "0.62842983", "text": "public function pdf(){\n error_reporting(0);\n\n $parameters=array(\n 'paper'=>'A4',\n 'orientation'=>'portrait',\n );\n\n // load library extension class Cezpdf\n $this->load->library('Pdf', $parameters);\n\n // pastikan path font benar\n $this->pdf->selectFont(APPPATH.'/third_party/pdf-php/fonts/Helvetica.afm');\n\n // judul rekap\n $this->pdf->ezText(\"Data Warga RT 05/RW VII Kelurahan Genuk\", 15, array('justification'=> 'centre'));\n\n // spasi judul dengan tabel\n $this->pdf->ezSetDy(-15);\n\n $this->pdf->ezSetCmMargins(3, 3, 3, 3);\n\n // jalankan query\n $data_kk = $this->M_penduduk->select_all_kk();\n $j_iterator=1;\n foreach ($data_kk as $kk) {\n \tif($kk->no_kk != ''){\n \t\t$this->pdf->ezText($j_iterator.\".\\t\\tNomor KK \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t:\\t\".$kk->no_kk,11,array('justification'=>'left','aleft'=>'70'));\n\t $this->pdf->ezText(\"\\t\\t\\t\\t\\tKepala Keluarga :\\t\".$kk->nama,11,array('justification'=>'left','aleft'=>'70'));\n\t $this->pdf->ezSetDy(-8); \n\t \n\t $query = $this->M_penduduk->select_penduduk_by_no_kk($kk->no_kk);\n\n\t\t // persiapkan data (array) untuk tabel pdf\n\t\t $nom = 0;\n\t\t $i_iterator = 0;\n\t\t $data_penduduk=array();\n\t\t foreach ($query as $key => $value) {\n\t\t // jangan ganti urutan 3 baris ini, atau nomor tidak tampil\n\t\t $data_penduduk[$key] = $value;\n\t\t $data_penduduk[$i_iterator]['no']= ++$nom;\n\t\t $i_iterator++;\n\t\t }\n\n\t\t // header tabel pdf\n\t\t $column_header=array(\n\t\t 'no' => 'No',\n\t\t 'NIK'=>'NIK',\n\t\t 'nama'=>'Nama',\n\t\t );\n\n\t\t // buat tabel pdf\n\t\t $options=array(\n\n\t\t\t 'xPos'=>85,'xOrientation'=>'right'\n\n\t\t\t );\n\t\t $this->pdf->ezTable($data_penduduk, $column_header,'',$options);\n\t\t $this->pdf->ezSetDy(-15);\n\t\t $j_iterator++;\n\t\t \n \t}\n \n }\n $nama_file = 'Data Warga RT 05 RW VII Kelurahan Genuk.pdf';\n\n // force download, nama file sesuai dengan $nama_file\n $this->pdf->ezStream(array('Content-Disposition'=>$nama_file));\n\t}", "title": "" }, { "docid": "8030517288b654b69f925c2c2a49e9f5", "score": "0.62835056", "text": "public function HomeGeraPDF()\n\t{\n\t\t\n$html = '\n<html>\n<head>\n<style>\n\n/* Type some style rules here */\n@page, html { margin:0; padding:0; }\nhtml { background:Moccasin; }\nbody {margin:30px; }\nh3 { color:red; margin:30px; }\n</style>\n</head>\n\n<body>\n\n<!-- Type some HTML here -->\n<h3>Rafael <i>doissssdão</i></h3>';\n\nfor($i=0;$i<=25;$i++)\n\t$html .= 'LRICARDODOHSAO HFODAHSO HOFDHA OFDOASH'.$i.'<br>';\n$html .= '\n</body>\n</html>\n';\n\n$arquivo = 'arquivo-em-pdf-22.pdf';\n$caminho = GlobalConfig::$APP_ROOT.'/certificados-gerados/';\n$this->geraPDF($arquivo, $caminho, $html);\n$this->compactar($arquivo,$arquivo);\n\n//echo '<iframe src=\"http://docs.google.com/gview?url='.GlobalConfig::$ROOT_URL.$arquivo.'&embedded=true\" style=\"width:718px; height:700px;\" frameborder=\"0\"></iframe>';\n\necho '\n<script type=\"text/javascript\">\nfunction printPDF() \n{\n var w = window.open(\"'.GlobalConfig::$ROOT_URL.$arquivo.'\", \"\", \"toolbar=no, scrollbars=no, resizable=yes, top=50, left=50, width=\"+(screen.width-100)+\", height=\"+(screen.height-200)+\"\");\n\tsetTimeout(function(){ w.print(); },500);\n}\n</script>\n\n<a onclick=\"printPDF()\">Imprimir PDF</a>\n\n<embed id=\"iwc\" name=\"iwc\" src=\"'.GlobalConfig::$ROOT_URL.$arquivo.'\" width=\"885\" height=\"628\" wmode=\"transparent\" type=\"application/pdf\" style=\"display:block; margin:0 auto;\">';\n\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "1d4437f4dcb69dc359e10c44a4305b36", "score": "0.62820494", "text": "function createHtmlPDF($post = array(), $data = array()) {\n $loop = '';\n $total = 0;\n foreach ($data as $value) {\n $loop .= '<tr>\n <td width=\"360\" colspan=\"2\" valign=\"top\"><p> ' . $value['description'] . ' </p></td>\n <td width=\"60\"><p align=\"center\"> ' . $value['service_date'] . '</p></td>\n <td width=\"60\" colspan=\"2\"><p align=\"center\">' . $value['time_rate'] . '</p></td>\n <td width=\"60\"><p>' . number_format($value['total'], 2) . '</p></td>\n </tr>';\n $total += $value['total'];\n }\n $html = '<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\" width=\"\" cellpadding=\"100%\">\n\n <tbody><tr>\n <td width=\"180\" rowspan=\"3\" valign=\"top\"><h2 style=\"font-size: +10\"><strong>For:</strong></h2>\n ' . $_POST['company_name'] . ' <br>\n ' . $_POST['fullname'] . ' <br>\n ' . $_POST['address'] . ' </td>\n <td width=\"180\" rowspan=\"2\" valign=\"top\"><p><strong style=\"font-size: +10\">Contact:</strong> \n ' . $_POST['fullname'] . '<br>\n <a href=\"mailto: ' . $_POST['email_address'] . '\"> ' . $_POST['email_address'] . ' </a><br>\n <strong style=\"font-size: +10\">Phone:</strong><br>\n Ph: ' . $_POST['phone'] . ' <br>\n Fax: ' . $_POST['phone'] . ' <strong style=\"font-size: +10\"> </strong></p></td>\n <td width=\"180\" colspan=\"4\"><p align=\"center\"><strong style=\"font-size: +10\">Proposal Date: </strong>\n ' . date(\"M-dd-Y\", time()) . ' </p></td>\n </tr>\n <tr>\n <td width=\"180\" colspan=\"4\" valign=\"top\"><p align=\"center\">www.lucentone.com<br>\n <strong style=\"font-size: +10\">Ph: </strong>210.775.2495<strong style=\"font-size: +10\"></strong><br>\n <strong style=\"font-size: +10\">Email: </strong>sales@lucentone.com<strong\n style=\"font-size: +10\"></strong><br>\n <strong style=\"font-size: +10\">Support</strong>:<strong style=\"font-size: +10\"> </strong>support@crucialnic.com<strong\n style=\"font-size: +10\"></strong></p></td>\n </tr>\n <tr>\n <td width=\"180\" valign=\"top\"><h2 style=\"font-size: +10\">&nbsp;</h2></td>\n <td width=\"180\" colspan=\"4\" valign=\"top\"><h2 style=\"font-size: +10\">Project Manager/Designers:</h2>\n\n <p>Tracy Stewart</p></td>\n </tr>\n <tr>\n <td width=\"360\" colspan=\"2\" rowspan=\"5\" valign=\"top\"><h2 style=\"font-size: +10\">Project Notes:</h2>\n\n <p>All project details outlined below.</p></td>\n <td width=\"180\" colspan=\"4\" valign=\"top\"><h2 style=\"font-size: +10\">Support technician: </h2>Tracy Stewart</td>\n </tr>\n <tr>\n <td width=\"180\" colspan=\"4\" valign=\"top\"><h2 style=\"font-size: +10\">Hosting support provided by:</h2> Crucial NIC\n </td>\n </tr>\n <tr>\n <td width=\"180\" colspan=\"4\" valign=\"top\"><h2 style=\"font-size: +10\">Domain: domain.com </h2></td>\n </tr>\n <tr>\n <td width=\"180\" colspan=\"4\" valign=\"top\"><h2 style=\"font-size: +10\">Project Provisions: </h2>N/A</td>\n </tr>\n <tr>\n <td width=\"180\" colspan=\"4\" valign=\"top\"><h2 style=\"font-size: +10\">Server Hosting:</h2> Server Hosting Provided by\n Crucial NIC\n </td>\n </tr>\n <tr style=\"text-align: center\">\n\n <td width=\"360\" colspan=\"2\"><p>Description of Services</p></td>\n <td width=\"60\"><p>Service Dates</p></td>\n <td width=\"60\" colspan=\"2\"><p>Time/Rate</p></td>\n <td width=\"60\"><p>Total</p></td>\n </tr>\n\n <!--loop here --->\n \n ' . $loop . '\n \n <!--end loop here -->\n <tr>\n <td width=\"360\" colspan=\"2\" rowspan=\"7\" valign=\"top\"><p><strong style=\"font-size: +10\">Payments:</strong><br>\n Server and hosting payments are due in advance of monthly services.<br>\n Projects Require a 50% Deposit before work can begin.<br>\n Project balance is due upon completion of services unless extension is agreed upon by client and Lucent One for further work.<br>\n Project consultation fees will be acknowledged and billed at the hourly rate for any project research and/or consultation provided before project begins.<br>\n Monthly maintenance plans include any website updates, image or content changes, bug fixes or programming. Does not include graphics work.<br>\n Balances past due 30+ days are subject to $25 late fee and 12% interest.<br>\n Make all checks payable to:<br>\n Lucent One, 11334 Victory Cavern, San Antonio, TX 78254<br>\n\n <strong style=\"font-size: +10\">Lucent One, 11334 Victory Cavern, San Antonio, TX 78254</strong></p></td>\n <td width=\"90\" colspan=\"3\"><p>Project/Web Total Amount</p></td>\n <td width=\"90\" valign=\"top\"><p>' . number_format($total, 2) . '</p></td>\n </tr>\n <tr>\n <td width=\"90\" colspan=\"3\"><p>Credits</p></td>\n <td width=\"90\" valign=\"top\"><p>0.00</p></td>\n </tr>\n <tr>\n <td width=\"90\" colspan=\"3\"><p>Hosting / Server Fees </p></td>\n <td width=\"90\" valign=\"top\"><p>0.00</p></td>\n </tr>\n <tr>\n <td width=\"90\" colspan=\"3\"><p>TOTAL Amount</p></td>\n <td width=\"90\"><p>' . number_format($total, 2) . '</p></td>\n </tr>\n <tr>\n <td width=\"90\" colspan=\"3\"><p>1/2 Deposit plus ANY Monthly Maintenance Fees</p></td>\n <td width=\"90\"><p>180.00</p></td>\n </tr>\n <tr>\n <td width=\"90\" colspan=\"3\"><p>Balance</p></td>\n <td width=\"90\"><p>$180.00</p></td>\n </tr>\n <tr>\n <td width=\"90\" colspan=\"3\"><p>Date Due</p></td>\n <td width=\"90\"><p align=\"center\">Upon Acceptance</p></td>\n </tr>\n </tbody></table>';\n return $html;\n }", "title": "" }, { "docid": "ee02ab2632f47128afc8bb7c35c0514a", "score": "0.6281314", "text": "public function show_pdf($id, $est='', $hidden='')\r\n {\r\n try {\r\n \r\n $count=Servicio::where('planilla_id',$id)->count(); \r\n \r\n \r\n $totalrechazo = 0;\r\n $realizoPH = 0;\r\n $servicios=Servicio::where('planilla_id',$id)->paginate($count+1);\r\n foreach ($servicios as $key => $valServ) {\r\n $valServ->sucursal=$valServ->planilla->sucursal;\r\n $valServ->fecha_servicio=$valServ->planilla->fecha_servicio;\r\n $rowtype=$valServ->elemento->row_type;\r\n $valServ->elemento=$valServ->elemento->$rowtype;\r\n if ($valServ->elemento->sustituto != 0){\r\n $valServ->cantsusti++;\r\n }\r\n $valServ->CantRepuesto=$valServ->reparacion;\r\n $valServ->rechazo;\r\n $Rep=(new Reparacion)::where('idServiciosigex',$valServ->idsigexservicio)->count();\r\n $valServ->CantRepuesto=$Rep;\r\n \r\n if(count($valServ->rechazo) > 0){\r\n $totalrechazo ++;\r\n };\r\n \r\n if ($valServ->realizoPH){\r\n $realizoPH ++;\r\n }\r\n \r\n }\r\n $servicios->totalrechazo = $totalrechazo;\r\n $servicios->realizoPH = $realizoPH;\r\n switch($est){\r\n \r\n case 'json':\r\n \r\n return $servicios->makeHidden($hidden)->toJson();\r\n case 'array':\r\n return $servicios->makeHidden($hidden)->toArray();\r\n default:\r\n return $servicios; \r\n }\r\n \r\n } catch (\\Throwable $th) {\r\n dd($th->getMessage()); \r\n }\r\n }", "title": "" } ]
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "4715c68566404b3d9942adf45b07f28b", "score": "0.0", "text": "public function run()\n {\n DB::table('products')->insert([\n ['name' => 'Banaan', 'description' => 'Een krom en geel voorwerp', 'price' => '500.00'],\n ['name' => 'Sla', 'description' => 'Een groene bal voor slakken', 'price' => '1.49'],\n ['name' => 'Tomaat', 'description' => 'Jouw kop', 'price' => '0.50'],\n ['name' => 'Destiny 2', 'description' => 'Te verslavend', 'price' => '10.00'],\n ['name' => 'Sybren', 'description' => 'Één of andere slaaf', 'price' => '5.00'],\n ['name' => 'Slaaf', 'description' => 'Sybren', 'price' => '50000.00'],\n ['name' => 'Fortnite', 'description' => 'Te verslavend voor Sybren', 'price' => '30.00'],\n ['name' => 'harry potter', 'description' => 'tovernaar', 'price' => '9.99'],\n ['name' => 'harry potter2', 'description' => 'tovernaar met update voor jou', 'price' => '19.99']\n ]);\n }", "title": "" } ]
[ { "docid": "520d3a91ddad10619dacf1b7197c5aec", "score": "0.7992128", "text": "public function run()\n {\n DB::table('users')->insert([\n 'id' => 1,\n 'name' => 'Usuário',\n 'email' => 'user@email.com',\n 'password' => bcrypt('secret'),\n ]);\n\n DB::table('empresas')->insert([\n 'nome' => 'Empreendimentos S.A.',\n 'telefone' => '11900001111',\n 'endereco' => 'Rua Qualquer',\n 'cep' => '00000-000',\n 'cnpj' => '00.000.000/0000-00',\n 'user_id' => 1\n ]);\n\n $faker = Faker::create();\n foreach (range(1,5) as $i){\n DB::table('fornecedores')->insert([\n 'nome' => $faker->name,\n 'email' => $faker->email,\n 'mensalidade' => mt_rand( 0, $faker->numberBetween(100, 1000) ) / 10,\n 'user_id' => 1\n ]);\n }\n }", "title": "" }, { "docid": "9d32f8ff8b6ed1c924761b8262ce875e", "score": "0.79787016", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n\t factory(App\\Models\\Person::class , 10)->create(); \n\t factory(App\\Models\\Company::class , 10)->create(); \n\t factory(App\\Models\\Account::class , 10)->create(); \n factory(App\\Models\\Tag::class , 10)->create();\n factory(App\\Models\\Customer::class , 10)->create();\n factory(App\\Models\\Project::class , 10)->create();\n factory(App\\Models\\Domain::class , 3)->create();\n\n foreach (['Watermark', 'Filter', 'Optimize'] as $index) {\n DB::table('processes')->insert([\n 'name' => $index, \n 'class' => $index,\n ]);\n }\n\n DB::table('process_tag')->insert([\n 'process_id' => 1, \n 'tag_id' => 1,\n ]);\n \n DB::table('process_tag')->insert([\n 'process_id' => 1, \n 'tag_id' => 2,\n ]);\n\n DB::table('process_tag')->insert([\n 'process_id' => 2, \n 'tag_id' => 3,\n ]);\n\n }", "title": "" }, { "docid": "e3f2301106fd912254f1c33890600754", "score": "0.7965562", "text": "public function run()\n {\n //Create faker instance\n $faker = \\Faker\\Factory::create();\n //Flush the table before recreate\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n DB::table('chapters')->truncate();\n \\App\\Chapter::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n foreach (range(1,5) as $number) {\n \\App\\Chapter::create([\n 'chapter' => $faker->word,\n 'subject_id'=> rand(1,3),\n ]);\n }\n }", "title": "" }, { "docid": "9e7127cb6c71143fb79c04b4fee8ad17", "score": "0.7947562", "text": "public function run()\n {\n /**\n * Seed Users Table\n */\n DB::table('users')->insert([\n [\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'password' => Hash::make('admin'),\n 'role_id' => Config::get('constants.roles.administrator'),\n 'created_at' => Carbon::now()\n ],\n [\n 'name' => 'John Doe',\n 'email' => 'johndoe@example.com',\n 'password' => Hash::make('johndoe'),\n 'role_id' => Config::get('constants.roles.user'),\n 'created_at' => Carbon::now()\n ],\n ]);\n\n /**\n * Seed Roles Table\n */\n DB::table('roles')->insert([\n [\n 'display_name' => 'Administrator',\n 'description' => 'System Admin',\n 'created_at' => Carbon::now()\n ],\n [\n 'display_name' => 'User',\n 'description' => 'Can access expenses',\n 'created_at' => Carbon::now()\n ],\n ]);\n }", "title": "" }, { "docid": "37ee2d6976618f232b9fc479d5b57a06", "score": "0.79213214", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n \n Post::insert([\n [\n 'id' => 1,\n 'title' => 'post 1',\n 'content' => 'post content 1'\n ], \n [\n 'id' => 2,\n 'title' => 'post 2',\n 'content' => 'post content 2'\n ],\n [\n 'id' => 3,\n 'title' => 'post 3',\n 'content' => 'post content 3'\n ],\n [\n 'id' => 4,\n 'title' => 'post 4',\n 'content' => 'post content 4'\n ],\n [\n 'id' => 5,\n 'title' => 'post 5',\n 'content' => 'post content 5'\n ],\n [\n 'id' => 6,\n 'title' => 'post 6',\n 'content' => 'post content 6'\n ],\n [\n 'id' => 7,\n 'title' => 'post 7',\n 'content' => 'post content 7'\n ]\n ]);\n \n }", "title": "" }, { "docid": "341ec9573f9443b609a2c9e8c0a90413", "score": "0.79124165", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \tfactory(App\\User::class)->create();\n factory(App\\Client::class, 40)->create();\n factory(App\\Driver::class, 20)->create();\n factory(App\\Guide::class, 20)->create();\n factory(App\\Vehicle::class, 30)->create();\n factory(App\\Order::class, 80)->create();\n factory(App\\Invoice::class, 160)->create();\n factory(App\\DriverSchedule::class, 50)->create();\n factory(App\\GuideSchedule::class, 50)->create();\n factory(App\\VehicleSchedule::class, 50)->create();\n\n\n // Seed driver_order table\n\n $orders = App\\Order::all();\n $drivers = App\\Driver::all();\n $guides = App\\Guide::all();\n $vehicles = App\\Vehicle::all();\n\n $this->seedManyToMany($drivers, $orders);\n $this->seedManyToMany($guides, $orders);\n $this->seedManyToMany($vehicles, $orders);\n }", "title": "" }, { "docid": "c455dbfa0c734909206ed15084e64a1d", "score": "0.79038024", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(ArticlesTableSeeder::class);\n\n\n DB::table('categories')->delete();\n //insert some dummy records\n DB::table('categories')->insert(array(\n array('name'=>'groenten','pic'=>'groenten.png'),\n array('name'=>'vlees','pic'=>'vlees.png'),\n array('name'=>'fruit','pic'=>'fruit.png'),\n array('name'=>'snacks','pic'=>'snacks.png'),\n array('name'=>'drinken','pic'=>'drinken.png')\n\n ));\n }", "title": "" }, { "docid": "ec53d7f325471d31c8d4b9ef320da423", "score": "0.78988916", "text": "public function run()\n {\n $this->call(LanguageTableSeeder::class);\n $this->call(SkillsTableSeeder::class);\n\n// factory(\\App\\Skill::class, 1000)->create();\n\n factory(\\App\\User::class, 20)->create()->each(function($user) {\n $user->skills()->saveMany(\\App\\Skill::all()->random(rand(1, 25)));\n $user->languages()->saveMany(\\App\\Language::all()->random(rand(1, 10)));\n $user->save();\n });\n\n factory(\\App\\Question::class, 50)->create()->each(function($question) {\n $question->skills()->saveMany(\\App\\Skill::all()->random(rand(1, 5)));\n $question->save();\n });\n\n factory(\\App\\Answer::class, 50)->create();\n factory(\\App\\Vote::class, 80)->create();\n }", "title": "" }, { "docid": "b29caf34b66d3312d3383baca3e725cf", "score": "0.7895321", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(\\App\\Set::class, 3)->create()->each(function ($set) {\n $setProducts = factory(\\App\\Product::class, 30)->make();\n\n $set->products()->saveMany($setProducts);\n });\n factory(\\App\\Category::class, 3)->create();\n\n }", "title": "" }, { "docid": "88258f9f401554ae03712d5c26de4e86", "score": "0.78949255", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker\\Factory::create();\n\n foreach (range(1,10) as $index) {\n Product::create([\n 'title' => $faker->name ,\n 'description' => $faker->text ,\n 'price' => $faker->numberBetween(10, 100),\n ]);\n }\n }", "title": "" }, { "docid": "c5ca42e038468200777d2f68273e9f74", "score": "0.7888331", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => \"Jovan\",\n 'password' => Hash::make(\"12121212\"),\n 'email' => \"name@gmail.com\"\n ]);\n\n DB::table('users')->insert([\n 'name' => \"Pera\",\n 'password' => Hash::make(\"123123123\"),\n 'email' => \"pera@gmail.com\"\n ]);\n\n $faker = Faker::create();\n for ($i = 0; $i < 10; $i++) {\n DB::table('posts')->insert([\n 'title' => $faker->text(40),\n 'content' => $faker->sentence(10),\n 'user_id' => $faker->numberBetween(1, 2)\n ]);\n }\n }", "title": "" }, { "docid": "3b2875053d0fe7dd172affc98ba741cd", "score": "0.7887019", "text": "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n\n\n DB::table('users')->insert([\n 'name' => 'Juste',\n 'email' => 'juste@gmail.com',\n 'password' => Hash::make('123'),\n ]);\n\n foreach (range(0, 10) as $_ ) {\n \n DB::table('posts')->insert([\n 'town' => $faker->city(),\n 'capacity' => 20,\n 'code' =>'P-'.rand(1,99),\n ]);\n }\n\n foreach (range(1, 50) as $_ ) {\n DB::table('parcels')->insert([\n 'weight' => mt_rand(111, 15999)/100,\n 'phone' => '+37069'.rand(100000, 999999),\n 'info' => $faker->text(400),\n 'post_id' => rand(1, 11)\n ]);\n }\n\n\n }", "title": "" }, { "docid": "b07e3ee3c4b1736184933db829b4a9bc", "score": "0.7874933", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n App\\Role::create([\n 'name' => 'Administrador',\n 'description' => 'no se'\n ]);\n\n App\\Role::create([\n 'name' => 'Edil',\n 'description' => 'no se'\n ]);\n\n App\\Role::create([\n 'name' => 'Ciudadano',\n 'description' => 'no se'\n ]);\n\n\n App\\Locality::create([\n 'name' => 'Puente Aranda',\n 'city_id' => 495,\n ]);\n\n\n App\\Entity::create([\n 'name' => 'Administracion del sistema',\n 'phone_contact' => '301301301',\n 'email' => 'oscarfamado@email.com',\n 'country_id' => 48\n ]);\n\n App\\Entity::create([\n 'name' => 'Entidad 1',\n 'phone_contact' => '301301301',\n 'email' => 'entidad@email.com',\n 'country_id' => 48\n ]);\n\n App\\User::create([\n 'name' => 'Oscar',\n 'email' => 'oscarfamado@gmail.com',\n 'password' => bcrypt('oscar123'),\n 'last_name' => 'Amado',\n 'entity_id' => 1,\n 'rol_id' => 1,\n 'document' => '1022445546',\n ]);\n\n }", "title": "" }, { "docid": "385bfd731a375a2d4ef0c36d568c50e1", "score": "0.786952", "text": "public function run()\n {\n //Clears database\n DB::table('users')->delete();\n DB::table('settings')->delete();\n\n //Seeds database\n factory(User::class,\"admin\", 1)->create();\n factory(User::class, 10)->create();\n factory(Setting::class, 1)->create();\n }", "title": "" }, { "docid": "6e77cc4bd37ebe82a97b96bf3dec7bab", "score": "0.7860597", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n \tforeach (range(1,10) as $index) {\n\t DB::table('item')->insert([\n 'title' => $faker->name,\n 'description' => $faker->realText($maxNbChars = 200, $indexSize = 2),\n 'id_model' =>$faker->numberBetween(1,69),\n 'id_province' =>$faker->numberBetween(1,96),\n 'id_brand' =>$faker->numberBetween(1,79),\n 'id_user' =>$faker->numberBetween(1,7),\n\t 'created_at' => $faker->dateTimeBetween($startDate = '-1 months', $endDate = 'now'),\n 'status' => $faker->randomElement(array('New', 'Active', 'Inactive')),\n\t ]);\n }\n }", "title": "" }, { "docid": "10380f0624cacc8ec438ce737cd5a23c", "score": "0.785481", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n \\App\\Review::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 50; $i++) {\n \\App\\Review::create([\n 'user_id' => $faker->randomElement(\\App\\User::all()->pluck('id')->toArray()),\n 'restaurant_id' => $faker->randomElement(\\App\\Restaurant::all()->pluck('google_places_id')->toArray()),\n 'review_text' => $faker->paragraph,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "7b08efa0e8b289b221b37a9f42fcbab6", "score": "0.7840935", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(VideosTableSeeder::class);\n\n factory(App\\Models\\User::class, 5)->create()->each(function ($i) {\n $i->interests()\n ->saveMany(\n factory(App\\Models\\Interest::class, rand(1, 5))->make()\n );\n });\n }", "title": "" }, { "docid": "4d8a3e194e5213b07ba6e1f01065371a", "score": "0.78395134", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n User::create(array('first_name' => 'George','last_name' => 'Petrou', 'avatar' => 'default.jpg', 'email' => 'admin@admin.com','password' => Hash::make('1234')));\n User::create(array('first_name' => 'Nick','last_name' => 'Jones', 'avatar' => 'default.jpg', 'email' => 'nick@gmail.com','password' => Hash::make('1235')));\n User::create(array('first_name' => 'Ryan','last_name' => 'Giggs', 'avatar' => 'default.jpg', 'email' => 'giggs@gmail.com','password' => Hash::make('1236')));\n Roles::create(array('role' => 'admin','user_id' => 1));\n Roles::create(array('role' => 'user','user_id' => 2));\n Roles::create(array('role' => 'user','user_id' => 3));\n }", "title": "" }, { "docid": "bc912a8c1dddc8fa40444c9031b40718", "score": "0.78330994", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $users = [\n [\n 'name' => 'admin',\n 'email' => 'admin@gmail.com'\n ],\n [\n 'name' => 'jahed',\n 'email' => 'jahed@gmail.com'\n ],\n [\n 'name' => 'hasan',\n 'email' => 'hasan@gmail.com'\n ],\n [\n 'name' => 'jahedhasan',\n 'email' => 'jahedhasan@gmail.com'\n ],\n [\n 'name' => 'jh',\n 'email' => 'jh@gmail.com'\n ],\n \n [\n 'name' => 'jahedd',\n 'email' => 'jahedd@gmail.com'\n ],\n [\n 'name' => 'jb',\n 'email' => 'jb@gmail.com'\n ],\n ];\n foreach ($users as $user) {\n factory(User::class)->create([\n 'name' => $user['name'],\n 'email' => $user['email']\n ]);\n }\n factory(Note::class, 30)->create();\n }", "title": "" }, { "docid": "32f8a9675ac74c00bb4974c472281dba", "score": "0.7821223", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // Customer::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 3; $i++) {\n Customer::create([\n 'full_name' =>$faker->name,\n 'cin' =>$faker->word,\n 'phone' => $faker->e164PhoneNumber ,\n 'email' =>$faker->Email, \n // 'user_id' =>$i+1, \n 'workspace_id' =>1, \n ]);\n }\n }", "title": "" }, { "docid": "7390b50b8fae46f7555e0eaf084fd3ef", "score": "0.7807736", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('users')->insert([\n // 'name' => str_random(10),\n // 'email' => str_random(10).'@gmail.com',\n // 'password' => bcrypt('secret'),\n // ]);\n for($count=1;$count<=3; $count++ ){\n\t DB::table('users')->insert([\n\t 'name' => 'admin'.$count,\n\t 'email' => 'admin'.$count.'@gmail.com',\n\t 'password' => bcrypt('admin'),\n\t 'admin'\t=>1,\n\t ]);\n }\n // DB::table('projects')->insert([\n // 'title' => str_random(10),\n // 'description' => str_random(100),\n // 'status' => 'open',\n // 'category' => 'Web',\n // ]); \n // DB::table('tasks')->insert([\n // 'title' => str_random(10),\n // 'description' => str_random(100),\n // 'status' => 'in progress',\n // 'category' => 'Front-End',\n // 'project_id'=>1\n // ]);\n // DB::table('task_user')->insert([\n // \t'task_id' => 1,\n // \t'user_id'\t=> 1,\n\n // \t]);\n }", "title": "" }, { "docid": "4d4c9c609f68448903976a4c7b76bb72", "score": "0.7806386", "text": "public function run() {\n $this->call(CountriesSeeder::class);\n $this->call(CastsTableSeeder::class);\n $this->call(MoviesSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@admin.com',\n 'password' => bcrypt('password'),\n 'user_type' => 'ADMIN'\n ]);\n DB::table('ratings')->insert(\n [\n 'user_id' => 1,\n 'movie_id' => 1,\n 'rating_value' => 5\n ]\n );\n }", "title": "" }, { "docid": "39cab0ab1b75aec77c6b02db375756d1", "score": "0.7804264", "text": "public function run()\n {\n /*$this->call([\n //LanguageTableSeeder::class,\n UsersTableSeeder::class\n ]);*/\n\n //create dummy data for cashflow\n $faker = Faker::create();\n foreach (range(1,100) as $index) {\n\n DB::table('cashflow')->insert([\n 'name' => $faker->sentence(6, true),\n 'description' => $faker->text,\n 'flow_type' => $faker->randomElement(array ('1','2')),\n 'amount' => $faker->numberBetween(1000, 9000),\n 'created_at' => $faker->dateTimeThisYear('now', 'UTC') \n ]);\n }\n }", "title": "" }, { "docid": "249635981f4ce9205eb86a95422d00e1", "score": "0.780369", "text": "public function run()\n {\n $this->call(RoleSeeder::class);\n $this->call(PermissionSeeder::class);\n factory(Tag::class, 20)->create();\n Permission::where('slug', 'manage-users')->first()->roles()\n ->sync([\n Role::where('slug', 'administrator')->first()->id,\n ]);\n Permission::where('slug', 'manage-articles')->first()->roles()\n ->sync([\n Role::where('slug', 'administrator')->first()->id,\n Role::where('slug', 'editor')->first()->id,\n ]);\n $this->call(UserSeeder::class);\n factory(User::class, 2)->create()->each(function($user) {\n $user->articles()->saveMany(factory(Article::class, (int) rand(10, 20))->make());\n $user->news()->saveMany(factory(News::class, (int) rand(10, 20))->make());\n });\n $this->call(EntryTagTableSeeder::class);\n $this->call(CommentTableSeeder::class);\n }", "title": "" }, { "docid": "11218f98139c57a6846510c7c4c15a64", "score": "0.77917063", "text": "public function run()\n {\n $faker = FakerFactory::create();\n\n # php artisan migrate:refresh --seed\n $bob = new App\\User();\n $bob->name = \"Bob\";\n $bob->email = \"bob@gmail.com\";\n $bob->password = bcrypt(\"123456\");\n $bob->save();\n\n $alice = new App\\User();\n $alice->name = \"Alice\";\n $alice->email = \"alice@gmail.com\";\n $alice->password = bcrypt(\"123456\");\n $alice->save();\n\n for($i=0; $i<20; $i++) {\n $comment = new App\\Comment();\n $comment->comment = $faker->paragraph;\n $comment->post_id = rand(1, 10);\n $comment->user_id = rand(1, 2);\n $comment->save();\n }\n\n for($i=0; $i<10; $i++) {\n $post = new App\\Post();\n $post->title = $faker->sentence;\n $post->body = $faker->paragraph;\n $post->category_id = rand(1, 5);\n $post->save();\n }\n\n for($i=0; $i<5; $i++) {\n $category = new App\\Category();\n $category->name = ucwords( $faker->word );\n $category->save();\n }\n\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "0abeef674742d2ee575c2285b0a63e54", "score": "0.7787361", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n //seta = 0\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n //Cidades \n DB::table('cidades')->truncate();\n \tDB::table('cidades')->insert([\n \t\t// 'id' => \"1\",\n 'cidade_nome' => \"Cuiabá\",\n ]);\n \tDB::table('cidades')->insert([\n \t\t// 'id' => \"2\",\n 'cidade_nome' => \"Várzea Grande\",\n ]);\n\n\n //Planos \n DB::table('planos')->truncate();\n \tDB::table('planos')->insert([\n \t\t// 'id' => \"1\",\n 'plano_nome' => \"Silver\",\n 'plano_vantagens' => \"Para controle financeiro de quem trabalha sozinho\",\n ]);\n \tDB::table('planos')->insert([\n \t\t// 'id' => \"2\",\n 'plano_nome' => \"Gold\",\n 'plano_vantagens' => \"Melhor opção para quem quer crescer e receber mais rápido.\", \n ]);\n \tDB::table('planos')->insert([\n \t\t// 'id' => \"2\",\n 'plano_nome' => \"Platium\",\n 'plano_vantagens' => \"Mais notas e boletos para sua empresa.\",\n ]);\n\n\n }", "title": "" }, { "docid": "e1d4f0e4e0b4cd624b555f00f69d8386", "score": "0.77770865", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n //----DATOS REALES DE PRUEBA---------\n $this->call(CitySeeder::class);\n $this->call(SucursaleSeeder::class);\n $this->call(StateSeeder::class);\n $this->call(CategorySeeder::class);\n $this->call(RoleSeeder::class);\n\n //-----DATOS FALSOS DE PRUEBA--------\n //User::factory(10)->create();\n Product::factory(5)->create();\n Group::factory(5)->create();\n Modifier::factory(20)->create();\n //Sale::factory(20)->create();\n }", "title": "" }, { "docid": "5636dd7cb3d474c1bf2462b273b361ff", "score": "0.7776088", "text": "public function run()\n {\n\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('users')->truncate();\n DB::table('categories')->truncate();\n\n\n //seeding the data\n\n User::factory()->count(1)->create();\n\n Category::factory()->count(10)->create()->each(function($category){\n $category->products()->saveMany(Product::factory(Product::class)->count(5)->create());\n });\n\n // \\App\\Models\\User::factory(10)->create();\n }", "title": "" }, { "docid": "a8dfa675e6ffec96b1dd6192fd68b3a2", "score": "0.77732474", "text": "public function run()\n {\n \t// Crear Seeder\n \t// php artisan make:seeder MiniSkillsTableSeeder\n\n \t// Ejecutar\n \t//php artisan db:seed --class=MiniSkillsTableSeeder\n \t//\n \t/*\n \tDB::table('mini_skills')->insert([\n\t 'title' => 'SEO',\n\t 'progress' => 100, \n\t 'status' => 1,\n\t 'created_at' => now(),\n\t 'updated_at' => now()\n ]);\n */\n \n \n\n \tMiniSkill::create([\n\t 'title' => 'SEO',\n\t 'progress' => 100, \n\t 'status' => 1\n ]);\n }", "title": "" }, { "docid": "e09eb1651561e63be4b2b1e9c41c333c", "score": "0.77729875", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory('App\\Admin', 1)->create();\n factory('App\\Membre', 10)->create();\n factory('App\\Psychologue', 10)->create();\n factory('App\\Blog', 10)->create();\n factory('App\\Statut', 10)->create();\n factory('App\\Discussion', 10)->create();\n }", "title": "" }, { "docid": "fc4ebf94d0a8bf8e90abe65163ca460c", "score": "0.77711946", "text": "public function run()\n {\n $this->call(UsersSeeder::class);\n // factory(App\\User::class, 5)->create()->each(function ($u) {\n // \t$u->laporan()->saveMany(factory(App\\Laporan::class, 5)->make());\n // });\n // factory(App\\Dospem::class, 2)->create();\n // factory(App\\Pemlap::class, 2)->create();\n // factory(App\\Instansi::class, 2)->create();\n }", "title": "" }, { "docid": "afcd93274839927545e6c2a6489c97b4", "score": "0.7769354", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $faker=Faker::create();\n foreach (range(1,100) as $index) {\n DB::table('posts')->insert([\n 'title'=>$faker->text(30),\n 'body'=>$faker->text(300)\n ]);\n }\n }", "title": "" }, { "docid": "b9f891c56a6dcdf4ec65f847082d6389", "score": "0.77666545", "text": "public function run()\n {\n $faker = Faker::create();\n foreach (range(1, 5) as $index) {\n DB::table('articles')->insert(\n [\n 'name' => $faker->unique()->word,\n 'user_id' => 1,\n 'title' => $faker->words(3, true),\n 'text' => $faker->text(1000),\n 'rank' => $faker->randomNumber(),\n 'enabled' => $faker->boolean(true),\n 'created_at' => $faker->date(),\n 'updated_at' => $faker->date(),\n ]\n );\n }\n }", "title": "" }, { "docid": "f908dcf673136d275768a26e1ed8f43d", "score": "0.77663046", "text": "public function run()\n {\n /*\n // Seed with a database querry.\n DB::table('users')->insert([\n 'name' => Person::firstNameMale(),\n 'email' => str_random(10) . '@' . str_random(5) . '.com',\n 'password' => bcrypt('secret'),\n 'date_birth' => DateTime::unixTime(),\n 'telephone' => PhoneNumber::phoneNumber(),\n 'address' => Address::streetSuffix() . $this->delimiter . Address::buildingNumber() . $this->address_delimiter .\n Address::postcode() . $this->delimiter . Address::citySuffix() . $this->address_delimiter .\n Address::country(),\n 'nationality' => Miscellaneous::countryCode(),\n 'work_permit' => str_random(1),\n 'driver_permit' => 'yes',\n ]);\n */\n\n //Seeding with a factory.\n // No relationships are made.\n factory(App\\User::class,5)->create();\n /*\n // Seed and attach relationships to each user;\n factory(App\\User::class,5)->create()->each(function($u){\n $u->templates()->save(factory(App\\Template::class)->make());\n // Cannot continue as the foreign key integrities are not respected afterwards.\n $u->cvs()->save(factory(App\\Cv::class)->make());\n $u->sections()->save(factory(App\\Section::class)->make());\n $u->skills()->save(factory(App\\Skill::class)->make());\n $u->hobbies()->save(factory(App\\Hobby::class)->make());\n $u->jobs()->save(factory(App\\Work::class)->make());\n $u->languages()->save(factory(App\\Language::class)->make());\n $u->educations()->save(factory(App\\Education::class)->make());\n });\n */\n }", "title": "" }, { "docid": "40ca19c7f708ecdfdcd4af8c02d83f2f", "score": "0.7763938", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(AdminTableSeeder::class);\n // factory(App\\Admin::class, 50)->create();]\n factory(App\\Model\\Artist::class, 15)->create();\n factory(App\\Model\\Category::class, 20)->create();\n factory(App\\Model\\Album::class, 20)->create();\n factory(App\\Model\\Song::class, 50)->create();\n }", "title": "" }, { "docid": "78fa4e7ae6998de91422744dcdef4f25", "score": "0.77621245", "text": "public function run()\n { \n \n /* factory(App\\Resource::class, 10000)->create();\n factory(App\\Work::class, 50)->create();\n factory(App\\Cost::class, 500)->create();\n factory(App\\Refwork::class, 50)->create();\n factory(App\\Refresource::class, 200)->create(); */\n\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n \n }", "title": "" }, { "docid": "480eecd886ef3ee8fb2edf36add7a6e6", "score": "0.7761234", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(RoleUserTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n// factory('App\\User', 15)->create();\n factory('App\\Article', 6)->create();\n $this->call(ArticlesTableSeeder::class);\n $this->call(ArticleCategoryTableSeeder::class);\n\n }", "title": "" }, { "docid": "43e31086667a15be4100b3788e32525a", "score": "0.77569884", "text": "public function run()\n {\n $faker = Faker::create('id_ID');\n DB::table('users')->insert([\n [\"role_id\" => 1, \"name\" => 'Admin 1', \"email\" => \"admin1@readandwrite.com\", \"password\" => Hash::make(\"admin12345\")],\n [\"role_id\" => 1, \"name\" => 'Admin 2', \"email\" => \"admin2@readandwrite.com\", \"password\" => Hash::make(\"admin12345\")],\n [\"role_id\" => 2, \"name\" => 'John Doe', \"email\" => \"johndoe@gmail.com\", \"password\" => Hash::make(\"john12345\")],\n [\"role_id\" => 2, \"name\" => 'Ji Eun', \"email\" => \"jieun@gmail.com\", \"password\" => Hash::make(\"jieun12345\")],\n ]);\n }", "title": "" }, { "docid": "c5a55e8cf6dced6dcea94dbb4eb4d4fe", "score": "0.7746075", "text": "public function run()\n {\n $this->seed('EntryTypesTableSeeder');\n\t\t$this->seed('TaxonomyTableSeeder');\n\t\t$this->seed('RolesTableSeeder');\n\t\t$this->seed('SettingsTableSeeder');\n\t\t$this->seed('PagesTableSeeder');\n\t\t$this->seed('MenuTableSeeder');\n }", "title": "" }, { "docid": "84eb153850f1545b5a2f9529a74ca3bb", "score": "0.774333", "text": "public function run()\n {\n Author::factory(10)->create();\n Book::factory(10)->create();\n Relation::factory(10)->create();\n $this->call([\n UserSeeder::class,\n RelationSeeder::class\n ]);\n }", "title": "" }, { "docid": "1159542e19a2f9f8712ba8239cdba0c8", "score": "0.7737675", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Category::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n $categories = [\n 'Acheter et vendre','Autos et véhicules','Immobilier','Services','Animaux','Locations de vacances','Communauté'\n ];\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 7; $i++) {\n Category::create([\n 'name' => $categories[$i]\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n }", "title": "" }, { "docid": "d2d80f7d460efe018a3f140847e1a279", "score": "0.7736776", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // Dejar nulo las claves foraneas\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n DB::table('category_product')->truncate();\n\n //Me ayudara para que los eventos al comienzo no se activen\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $catidadUsuarios = 200;\n $cantidadCategorias = 30;\n $cantidadProductos = 500;\n $cantidadTransacciones = 1000;\n\n factory(User::class,$catidadUsuarios)->create();\n factory(Category::class,$cantidadCategorias)->create();\n\n factory(Product::class,$cantidadProductos)->create()->each(\n function($producto){\n //random (colleccion)\n $categorias=Category::all()->random(mt_rand(1,5))->pluck('id');\n $producto->categories()->attach($categorias);\n }\n );\n\n factory(Transaction::class, $cantidadTransacciones)->create();\n }", "title": "" }, { "docid": "b71b6c9d43290ee575ba0a2222937224", "score": "0.7735867", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n \n $data = [];\n\n $users=App\\User::pluck('id')->toArray();//permet de retourner les id de la table et les stock dans une table\n \n for ($i = 1; $i <= 100 ; $i++) {\n array_push($data, [\n 'name'=>$faker->sentence,\n 'body'=>$faker->realText(2000) ,\n 'user_id'=>$faker->randomElement($users),\n 'published_at'=>$faker->datetime(),\n\n ]);\n }\n Article::insert($data);\n }", "title": "" }, { "docid": "9d2e1f29bfaf34564e90f02a58e8ad3b", "score": "0.77346915", "text": "public function run()\n {\n \t\n \tDB::table('profissao')->insert([\n 'descricao' => 'Professor'\n ]);\n\n DB::table('profissao')->insert([\n 'descricao' => 'Aluno'\n ]);\n\n DB::table('profissao')->insert([\n 'descricao' => 'Engenheiro'\n ]);\n\n DB::table('profissao')->insert([\n 'descricao' => 'Agricultor'\n ]);\n\n DB::table('profissao')->insert([\n 'descricao' => 'Outro'\n ]);\n\n\n DB::table('perfil')->insert([\n 'descricao' => 'Administrador'\n ]);\n\n DB::table('perfil')->insert([\n 'descricao' => 'Registrador'\n ]);\n \n $this->call(ModelosTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(PluviometrosSeeder::class); \n }", "title": "" }, { "docid": "de46177ac0fa0a295c6ae2ab0fba4901", "score": "0.7733467", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(Course::class, 10)->create()->each(function($course){\n $course->episodes()->saveMany(factory(Episode::class,10)->make());\n });\n }", "title": "" }, { "docid": "5c50c6331a8da5e7c37b7e78f795a900", "score": "0.7731594", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n User::create([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'password' => '123123'\n ]);\n\n Security::create(['code' => 'helloworld']);\n Security::create(['code' => 'welcomehere']);\n }", "title": "" }, { "docid": "5594e3238793cf289d046986c5f56d58", "score": "0.77295095", "text": "public function run() {\n // \\App\\Models\\User::factory(10)->create();\n// $this->call(ArticlesTableSeeder::class);\n// $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n // Let's make sure everyone has the same password and\n // let's hash it before the loop, or else our seeder\n // will be too slow.\n $password = Hash::make('netireki');\n\n User::create([\n 'name' => 'Admin',\n 'email' => 'admin@test.com',\n 'password' => $password,\n ]);\n\n // And now let's generate a few dozen users for our app:\n for ($i = 0; $i < 10; $i++) {\n User::create([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'password' => $password,\n ]);\n }\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'title' => $faker->sentence,\n 'body' => $faker->paragraph,\n ]);\n }\n }", "title": "" }, { "docid": "b330d291de9fbd392f253311a96f3c6d", "score": "0.7729395", "text": "public function run()\n {\n // \\App\\Models\\User::factory(1)->create();\n // \\App\\Models\\Article::factory(5)->create();\n // \\App\\Models\\Category::factory(5)->create();\n // \\App\\Models\\Topic::factory(5)->create();\n // \\App\\Models\\Tag::factory(5)->create();\n // $this->call(ArticleCategorySeeder::class);\n // $this->call(ArticleTopicSeeder::class);\n $this->call(RegionSeeder::class);\n }", "title": "" }, { "docid": "bad0c06d6cc426f60d248d0caa0771bb", "score": "0.77290624", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(AssessmentSeeder::class);\n DB::table('users')->insert([\n\n [\n 'name' => 'Admin 1',\n 'email' => 'admin@test.com',\n 'password' => bcrypt('test1234'),\n ],\n [\n 'name' => 'Admin 2',\n 'email' => 'admin2@test.com',\n 'password' => bcrypt('test1234'),\n ],\n [\n 'name' => 'Admin 3',\n 'email' => 'admin3@test.com',\n 'password' => bcrypt('test1234'),\n ]\n\n ]);\n }", "title": "" }, { "docid": "2e159f4e54504bdde9f62ecdf35810ee", "score": "0.772654", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory('App\\User',50)->create();\n factory('App\\Post',50)->create();\n factory('App\\Profile',50)->create();\n factory('App\\Category',3)->create();\n \n $posts = factory(App\\Post::class)->create();\n\n factory(Comment::class, 30)->create([\n 'post_id' => $posts->id\n ]);\n\n $comment = Comment::first();\n\n factory(Comment::class, 20)->create([\n 'post_id' => $posts->id,\n 'comment_id' => $comment->id,\n ]);\n\n }", "title": "" }, { "docid": "bad3760d584e717874b4137c76409e6b", "score": "0.7724795", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n DB::table('roles')->insert([\n 'name' => 'SUPERUSER',\n ]);\n\n DB::table('contractors')->insert([\n 'name' => 'MY ENTERPRISE',\n ]);\n\n DB::table('projects')->insert([\n 'name' => 'PROJECT EXAMPLE',\n 'datestart' => now()->format('Y-m-d H:i:s'),\n 'dateFinish' => now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'SUPERUSER',\n 'user' => 'superuser',\n 'email' => 'example@email.com',\n 'password' => Hash::make('IdonSoft'),\n 'role_id' => '1',\n 'contractor_id' => '1',\n ]);\n\n DB::table('permits')->insert([\n 'user_id' => '1',\n 'create_folio' => '1',\n 'create_dailyreport' => '1',\n 'create_note' => '1',\n 'create_comment' => '1',\n 'print_dailyreport' => '1',\n 'print_note' => '1',\n 'print_folio' => '1',\n 'edit_sequence' => '1',\n ]);\n \n }", "title": "" }, { "docid": "d6c8622705e47deae5dda1c458f83e8a", "score": "0.7724516", "text": "public function run()\n {\n DB::table('dias')->insert([\n // Para que los tres tipos de roles puedan darse,\n // Poner php artisan migrate:fresh --seed para hacer la migración del seed\n // primero php artisan db:seed --class=RolesTableSeeder\n // y luego php artisan db:seed --class=UsersTableSeeder\n // finalmente php artisan db:seed --class=DiasTableSeeder\n [\n 'nombre' => 'Lunes'\n ],\n [\n 'nombre' => 'Martes'\n ],\n [\n 'nombre' => 'Miercoles'\n ],\n [\n 'nombre' => 'Jueves'\n ],\n [\n 'nombre' => 'Viernes'\n ],\n [\n 'nombre' => 'Sabado'\n ],\n [\n 'nombre' => 'Domingo'\n ]\n ]);\n }", "title": "" }, { "docid": "7c1039e8faa671c62b7faf41b7d53536", "score": "0.77197814", "text": "public function run()\n {\n Model::unguard();\n Category::where('id', '<=', '5')->delete();\n $data = [\n ['name' => '汽车'],\n ['name' => '游戏'],\n ['name' => '影视'],\n ['name' => '社会'],\n ['name' => '政治'],\n ];\n foreach ($data as $d) {\n Category::create($d);\n }\n factory(Content::class, 1000)->create();\n // $this->call(\"OthersTableSeeder\");\n }", "title": "" }, { "docid": "bbdcb34cad1d7381d781f85b5830c22f", "score": "0.77192366", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n// $this->depeartmntTableSeed();\n// $this->designationTableSeed();\n /**\n * Run the database seeds.\n *\n * @return void\n */\n\n }", "title": "" }, { "docid": "7d13b7cccd5ea1d589bdc8b1ce81b63f", "score": "0.7715028", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // factory(App\\User::class)->create();\n\n // factory(Student::class,50)->create()->each(function($student)\n // {\n // $student->educationalQualification()->save(factory(Parents::class)->make());\n // $student->educationalQualification()->save(factory(Payment::class)->make());\n // $student->educationalQualification()->save(factory(Guardian::class)->make());\n // $student->educationalQualification()->save(factory(EQ::class)->make());\n // });\n }", "title": "" }, { "docid": "b84407b90ecd0da0f136c70b54b6b0f0", "score": "0.7710997", "text": "public function run()\n {\n /// Let's truncate our existing records to start from scratch.\n Category::truncate();\n\n $faker = \\Faker\\Factory::create();\n $category_names = array('Category One', 'Category Two');\n foreach($category_names as $name) {\n Category::create([\n 'name' => $name,\n 'price_mod' => $faker->randomFloat($nbMaxDecimals = 2, $min = -2, $max = 10.0),\n ]);\n }\n }", "title": "" }, { "docid": "1506f1139a748a04763396e2ad86ef7a", "score": "0.7710608", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n factory(Category::class,10)->create();\n factory(ProductType::class,20)->create();\n // factory(Product::class,150)->create();\n $this->call(ProductSeeder::class);\n\n }", "title": "" }, { "docid": "510b6a95b0bda8150598fcfcd5e0fa41", "score": "0.77091455", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n \n \\App\\User::truncate();\n \\App\\Category::truncate();\n \\App\\Product::truncate();\n \\App\\Transaction::truncate();\n\n \\App\\User::flushEventListeners();\n \\App\\Category::flushEventListeners();\n \\App\\Product::flushEventListeners();\n \\App\\Transaction::flushEventListeners();\n\n factory(\\App\\User::class,100)->create();\n factory(\\App\\Category::class,10)->create();\n factory(\\App\\Product::class,30)->create()->each(\n function ($product) {\n $categories = \\App\\Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n }\n );\n factory(\\App\\Transaction::class,10)->create();\n\n }", "title": "" }, { "docid": "2f62f5093b8e26beb38831e5bdf29130", "score": "0.7708483", "text": "public function run()\n {\n $faker = Faker::create();\n foreach (range(1,10) as $index) {\n DB::table('employees')->insert([\n 'id' => $index,\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'password' => Hash::make('12345678')\n ]);\n }\n $this->call(UserSeeder::class);\n }", "title": "" }, { "docid": "c31a689ff9ae8523f84c6d76cbc5c3ea", "score": "0.7707085", "text": "public function run()\n {\n $user = [\n 'name' => 'Heru Trijaya',\n 'email' => 'herutrijaya13+1@gmail.com',\n 'email_verified_at' => now(),\n 'password' => bcrypt(\"password\"),\n 'remember_token' => Str::random(10),\n 'created_at' => now(),\n ];\n DB::table('users')->insert($user);\n $user = [\n 'name' => 'John Doe',\n 'email' => 'herutrijaya13+johndoe@gmail.com',\n 'email_verified_at' => now(),\n 'password' => bcrypt(\"password\"),\n 'remember_token' => Str::random(10),\n 'created_at' => now(),\n ];\n DB::table('users')->insert($user);\n \\App\\Models\\Author::factory(10)->create();\n \\App\\Models\\Book::factory(10)->create();\n }", "title": "" }, { "docid": "5b9bc9e211e20662e2eb7209dd7f3c70", "score": "0.7703563", "text": "public function run()\n {\n Student::factory(10)->create();\n Post::factory(10)->create();\n Category::factory(10)->create();\n Category_Post::factory(10)->create();\n Comment::factory(10)->create();\n // $this->call([\n // TableFirst::class,\n // SubjectTableSeeder::class,\n // ThuanSeeder::class,\n // ]);\n }", "title": "" }, { "docid": "134a3a3db82b46df656b48877e3819ce", "score": "0.77008", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n // Seed the Time Zones\n //$this->call(TimeZonesTableSeeder::class);\n\n // Seed the Languages\n $this->call(LanguagesTableSeeder::class);\n\n // Seed the countries\n $this->call(CountriesTableSeeder::class);\n\n // Seed the setting table\n $this->call(SettingsTableSeeder::class);\n\n // Seed the company & company translation\n //$this->call(CompanySeeder::class);\n\n // Seed Brand table\n //$this->call(BrandSeeder::class);\n\n // Seed Vehicle table\n //$this->call(VehicleSeeder::class);\n\n // Seed dealership group table\n //$this->call(GroupSeeder::class);\n\n // Seed Dealership table\n //$this->call(DealershipSeeder::class);\n\n // Seed Event type table\n //$this->call(EventTypeSeeder::class);\n\n // Seed Event table\n //$this->call(EventSeeder::class);\n\n // Seed Region table\n //$this->call(RegionSeeder::class);\n\n // Seed Brand Dealership table\n //$this->call(BrandDealershipSeeder::class);\n\n\n // Seed User table\n $this->call(UserSeeder::class);\n\n // Seed Guest table\n// $this->call(GuestSeeder::class);\n }", "title": "" }, { "docid": "c9cd9baaee4f0804b80ef0f6ae5ccbb6", "score": "0.7700753", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n User::create([\n 'email' => 'ceci.jimg@gmail.com',\n 'name' => 'Ceci',\n 'password' => bcrypt('123456'),\n 'role' => 'U'\n ]);\n User::create([\n 'email' => 'practicas106@hotmail.com',\n 'name' => 'Emmanuel',\n 'password' => bcrypt('123456'),\n 'role' => 'U'\n ]);\n User::create([\n 'email' => 'mntr_rdrgz@hotmail.com',\n 'name' => 'Fabián Montero',\n 'password' => bcrypt('123456'),\n 'role' => 'A'\n ]);\n User::create([\n 'email' => 'ssmontero@outlook.com',\n 'name' => 'Santiago Montero',\n 'password' => bcrypt('123456'),\n 'role' => 'U'\n ]);\n }", "title": "" }, { "docid": "cf80c34d1b3a3ce834cad902d96a49ae", "score": "0.7695887", "text": "public function run()\n {\n \\App\\Models\\User::factory(10)->create();\n $this->call(DicRegionsTableSeeder::class);\n $this->call(DicCitiesTableSeeder::class);\n $this->call(AdCategoriesTableSeeder::class);\n Adverts::factory()->count(100)->create();\n }", "title": "" }, { "docid": "8d26d80f703923cebce1f22a4b67618a", "score": "0.76952183", "text": "public function run()\n {\n\n //Make roles and permissions\n\t Role::create(['name' => 'user']); // normal register user\n\t Role::create(['name' => 'owner']); // owner club user\n\t Role::create(['name' => 'manager']); // portal manager\n\t Role::create(['name' => 'admin']); // admin with full permission\n\n //Start other seeders.\n $this->call([\n MusicTypesTableSeeder::class,\n\t VoivodeshipsTableSeeder::class,\n\t CitiesTableSeeder::class,\n UsersTableSeeder::class,\n\t ClubsTableSeeder::class,\n\t EventsTableSeeder::class,\n\t UserSettingsSeeder::class\n ]);\n\n }", "title": "" }, { "docid": "d95416047e958fc5cae8011cf9c8b698", "score": "0.7695155", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker\\Factory::create();\n for ($i=0; $i < 20; $i++) { \n \tPost::create([\n \t\t'title'=> $faker->sentence,\n \t\t'body'=> implode('',$faker->sentences(4))\n \t\t]);\n }\n }", "title": "" }, { "docid": "58e1005fcab19ab4f45f7567ad4fbe32", "score": "0.76921916", "text": "public function run()\n {\n //factory(App\\Category::class, 5)->create();\n $this->call(PageSeeder::class);\n $this->call(TagSeeder::class);\n $this->call([\n CategorySeeder::class,\n ProductCategorySeeder::class,\n ProductTagSeeder::class,\n RelationshipSeeder::class,\n \n ]);\n factory(App\\Comment::class, 200)->create();\n factory(App\\User::class, 25)->create();\n //factory(App\\ProductCategory::class,5)->create();\n factory('App\\Post',50)->create();\n factory('App\\Product',80)->create();\n }", "title": "" }, { "docid": "07d21e2f0b22563e12932cf198047658", "score": "0.7690095", "text": "public function run()\n {\n $faker = Faker::create();\n $products = c2a(Product::lists('id'));\n $users = c2a(User::lists('id'));\n\n foreach (range(1, 20) as $index) {\n Topic::create([\n 'title' => $faker->sentence(6),\n 'slug' => $faker->name,\n 'product_id' => $faker->randomElement($products),\n 'user_id' => $faker->randomElement($users),\n 'keywords' => $faker->sentence,\n 'description' => $faker->sentence(10),\n 'content' => $faker->sentence(100),\n 'page_view_count' => rand(10, 3059),\n 'vote_count' => rand(0, 199),\n 'reply_count' => rand(0, 100)\n ]);\n }\n\n }", "title": "" }, { "docid": "454fbceec11c7288d6d51c17b75dacd8", "score": "0.7688257", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(\\App\\User::class, 1)->create([\n 'email' => 'admin@user.com',\n 'role' => \\App\\User::ROLE_ADMIN\n ]);\n\n factory(\\App\\User::class, 1)-> create([\n 'email' => 'user@user.com'\n ]);\n\n $this->call(PostTableSeeder::class);\n $this->call(TbSinproAdminPermissaoSeeder::class);\n// factory(\\App\\Post::class, 20)->create();\n\n }", "title": "" }, { "docid": "201732e6ba9e0b6eef969d5379841fde", "score": "0.7688141", "text": "public function run()\n {\n //factory(\\App\\Models\\User::class, 10)->create();\n\n $users = \\App\\Models\\Role::all()->pluck('id')->toArray();\n\n /**\n * Creating seeder for every role\n */\n for ($i = 1; $i < (sizeof($users)); $i++) {\n DB::table('users')->insert([\n\n 'name' => 'Janko',\n 'email' => 'janko' . $i . '@gmail.com',\n 'surname' => 'Mrkvicka',\n 'password' => bcrypt('test123'),\n 'email_verified_at' => now(),\n 'id_role' => $users[$i - 1],\n 'created_at' => now(),]);\n }\n\n }", "title": "" }, { "docid": "d0ebc0b2fe28ccfde9a1ac80f9ebf4ad", "score": "0.768708", "text": "public function run()\n {\n $this->call(UserTableSeeder::class);\n // $this->call(MissionTableSeeder::class);\n factory(App\\Models\\Mission::class, 20)->create();\n factory(App\\Models\\Project::class, 20)->create();\n factory(App\\Models\\News::class, 20)->create();\n factory(App\\Models\\Event::class, 20)->create();\n }", "title": "" }, { "docid": "2603f00e40c258c840226bb9122a174d", "score": "0.76867145", "text": "public function run() {\n $this->call(AppConfigSeeder::class);\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n $this->call(TopicTableSeeder::class);\n $this->call(BankTableSeeder::class);\n $this->call(ProvinceTableSeeder::class);\n\n // factory(App\\Product::class, 100)\n // ->create()\n // ->each(function ($product) {\n // $product->fees()->saveMany(factory(App\\ProductFee::class, 3)->create([\n // 'product_id' => $product->id,\n // ]));\n // });\n }", "title": "" }, { "docid": "0e51afc722eeda1b1ce5a397b6fed9ba", "score": "0.76860857", "text": "public function run()\n {\n \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\ItemCondition::factory(10)->create();\n\n $this->call([\n PrimaryCategorySeeder::class,\n SecondaryCategorySeeder::class,\n // ItemConditionSeeder::class,\n ]);\n\n DB::table('users')->insert([\n 'name' => 'root',\n 'email' => 'hogehoge@example.com',\n 'email_verified_at' => now(),\n 'remember_token' => Str::random(10),\n 'password' => Hash::make('11111111'),\n ]);\n }", "title": "" }, { "docid": "869949cd0ca1c0b3e62d490a128b7a0b", "score": "0.76857895", "text": "public function run()\n {\n $this->call(ReputationsTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(PublishersTableSeeder::class);\n $this->call(AuthorsTableSeeder::class);\n $this->call(TagsTableSeeder::class);\n $this->call(BooksTableSeeder::class);\n // $this->call(UserImagesTableSeeder::class);\n // $this->call(BookImagesTableSeeder::class);\n // $this->call(AuthorImagesTableSeeder::class);\n // $this->call(ScoresTableSeeder::class);\n\n $this->call(AuthorBookTableSeeder::class);\n $this->call(BookTagTableSeeder::class);\n // $this->call(RoleUserTablerSeeder::class);\n\n // factory(App\\User::class, 35)->create();\n\n // factory(App\\Score::class, 100)->create();\n\n factory(App\\Review::class, 35)->create();\n\n // factory(App\\ReviewResponse::class, 35)->create();\n\n $this->call(SocialMediasTableSeeder::class);\n }", "title": "" }, { "docid": "989db8f23e2aa4fc9b9956c2987e7b19", "score": "0.7683379", "text": "public function run()\n {\n $faker = \\Faker\\Factory::create('en_GB');\n\n \\App\\User::create([\n 'name' => env('ADMIN_NAME', ''),\n 'email' => env('ADMIN_EMAIL', ''),\n 'email_verified_at' => now(),\n 'password' => bcrypt(env('ADMIN_PASSWORD', '')),\n 'role' => 'admin',\n 'created_at' => now(),\n ]);\n\n // Added seed of random UK address data for ease\n for ($i = 0; $i < 10; $i++) \n {\n \\App\\Restaurant::create([\n 'name' => $faker->name,\n 'street' => $faker->streetName,\n 'city' => $faker->city,\n 'postcode' => $faker->postcode\n ]);\n }\n }", "title": "" }, { "docid": "ec07eb0122812cf17ee5e1ceaae51aeb", "score": "0.7680502", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n\n factory(Subscriber::class, 2)->create();\n factory(Shop::class, 10)->create();\n factory(Music::class, 10)->create();\n factory(Video::class, 2)->create();\n\n }", "title": "" }, { "docid": "51a1f86bae6860c0a7c4877c0fefde5c", "score": "0.76785475", "text": "public function run()\n {\n User::create([\n 'name' => 'admin',\n 'email' => 'admin@grtech.com.my',\n 'password' => bcrypt('password')\n ]);\n User::create([\n 'name' => 'user',\n 'email' => 'user@grtech.com.my',\n 'password' => bcrypt('password')\n ]);\n\n Companies::create([\n 'name' => 'Mark Zuckenberg',\n 'email' => 'admin@grtech.com.my',\n 'website' => 'https://www.facebook.com/'\n ]);\n\n Companies::create([\n 'name' => 'Kevin Systrom',\n 'email' => 'admin@grtech.com.my',\n 'website' => 'https://www.instagram.com/'\n ]);\n\n // Companies::factory(5)->create();\n\n Employees::factory(20)->create();\n }", "title": "" }, { "docid": "68c5a5f69b2f6ff14c735017c7d3ac07", "score": "0.76763934", "text": "public function run()\n {\n $this->call([\n ItemSeeder::class,\n PropertySeeder::class,\n ItemPropertiesSeeder::class,\n\n ]);\n /*\n \\App\\Models\\Item::factory(10)->create();\n \\App\\Models\\Property::factory(10)->create();\n \\App\\Models\\ItemProperties::factory(10)->create();\n */\n \\App\\Models\\User::create([\n 'name' => 'simple',\n 'email' => 'simple@simpledelivery.com',\n 'password' =>Hash::make('simple'),\n ]);\n \n\n\n }", "title": "" }, { "docid": "040547254a75eaa4c796f44c64dd6435", "score": "0.76726955", "text": "public function run()\n {\n $user_ids = ['1','2','3','4','5'];\n\n\t\t$faker = app(Faker\\Generator::class);\n\n $posts = factory(Post::class)->times(50)->make()->each(function ($post) use ($faker, $user_ids) {\n $post->user_id = $faker->randomElement($user_ids);\n });\n\n Post::insert($posts->toArray());\n }", "title": "" }, { "docid": "bd269fc9c6211e950f76f57cd2214618", "score": "0.76678604", "text": "public function run()\n {\n\n $data = [\n ['name'=>'Computer Science'],\n ['name'=>'Pharmacy'],\n ['name'=>'Psychology'],\n ['name'=>'Medicine'],\n ['name'=>'Dentistry'],\n\n ];\n $faker = Faker::create();\n foreach($data as $d){\n DB::table('faculties')->insert([\n 'name' => $d['name'],\n 'description' => $faker->sentence,\n ]);\n }\n }", "title": "" }, { "docid": "b8157e614e83d25d500f4d94dffc10e8", "score": "0.76667905", "text": "public function run()\n {\n m_dosens::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n m_dosens::create([\n 'body' => $faker-> paragraph,\n 'id'=> $faker -> rand(),\n 'nama_dosen'=> $faker -> sentence,\n 'matkul'=> $faker -> sentence,\n 'ruang kelas' => $faker -> sentence,\n $table->timestamps(),\n ]);\n }\n }", "title": "" }, { "docid": "f3ec341e6252123b6f3f5aacac2d5793", "score": "0.7664834", "text": "public function run()\n {\n \\App\\Models\\Address::factory(20)->create(); // php artisan db:seed --class=AddressSeeder\n \\App\\Models\\User::factory(15)->create(); // php artisan db:seed --class=UserSeeder\n \\App\\Models\\Admin::factory(4)->create(); // php artisan db:seed --class=AdminSeeder\n \\App\\Models\\Client::factory(16)->create(); // php artisan db:seed --class=ClientSeeder\n \\App\\Models\\Unit::factory(5)->create(); // php artisan db:seed --class=UnitSeeder\n \\App\\Models\\Category::factory(13)->create(); // php artisan db:seed --class=CategorySeeder\n \\App\\Models\\Market::factory(20)->create(); // php artisan db:seed --class=MarketSeeder\n \\App\\Models\\Product::factory(30)->create(); // php artisan db:seed --class=ProductSeeder\n // \\App\\Models\\Rating::factory(10)->create(); // php artisan db:seed --class=RatingSeeder\n // \\App\\Models\\Price::factory(30)->create(50); // php artisan db:seed --class=PriceSeeder\n }", "title": "" }, { "docid": "e6df187fdede5a2fd76c7dced952e9f5", "score": "0.76642543", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'username' => 'Admin',\n 'email' => 'admin@email.com',\n 'password' => bcrypt('Admin')\n ]);\n Author::factory(30)->create()->each(function($author){\n $volumes = Volum::factory(10)->make();\n $author->volums()->saveMany($volumes);\n });\n\n }", "title": "" }, { "docid": "c184051466e0849a143a12cd08517914", "score": "0.76604694", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n // DB::table('socios')->insert(['nombre'=>'pepe','dni'=>'12345678','direccion'=>'por ahi 222','nacimiento'=>'2020-10-10','email'=>'pepe@gmail.com','telefono'=>'456798456','url'=>'www.google.com']);\n // DB::table('socios')->insert(['nombre'=>'juan','dni'=>'12332378','direccion'=>'por allk 222','nacimiento'=>'2010-10-10','email'=>'juan@gmail.com','telefono'=>'223242434','url'=>'www.google1.com']);\n \\App\\Models\\Estado::factory(3)->create();\n \\App\\Models\\Socios::factory(10)->create();\n //$this->call(SociosSeeder::class);\n }", "title": "" }, { "docid": "ffe63233202bdd209cfbffd2e2f07ebd", "score": "0.7660093", "text": "public function run()\n {\n Author::factory(50)->create();\n Books::factory(100)->create();\n $this->call(UserTableSeeder::class);\n $this->call(ShelveTableSeeder::class);\n $this->call(ShelveBookSeeder::class);\n }", "title": "" }, { "docid": "bb85cd62424281e6a7862cad3a9b9b5a", "score": "0.7659672", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'luoyinghao',\n 'email' => 'luoyinghao@gmail.com',\n 'group_id' => 1,\n 'status' => 1,\n 'password' => bcrypt('123456'),\n ]);\n\n DB::table('pet')->insert([\n 'name' => 'default',\n 'nick' => '弹幕娘',\n 'user_id' => 1,\n ]);\n\n DB::table('user_pet')->insert([\n 'user_id' => 1,\n 'pet_id' => 1,\n 'exp' => 1,\n ]);\n\n DB::table('event')->insert([\n 'sender' => '系统',\n 'sender_id' => 0,\n 'action' => 7,\n 'target' => 0,\n 'target_type' => 'announce',\n 'content' => '这是通告,通告听到了吗?听到了请回答,听到了请回答',\n 'type' => 'remind',\n 'receiver' => 0,\n 'is_read' => 1,\n 'time' => date('Y-m-d H:i:s')\n ]);\n\n }", "title": "" }, { "docid": "d200dedc6a0dba3a8fcc4d5cb3b5af61", "score": "0.7659325", "text": "public function run()\n {\n /* $this->call(UsersTableSeeder::class);\n $this->call(CollectoinsTableSeeder::class);\n $this->call(Extra_itemsTableSeeder::class);\n $this->call(AdditionalsTableSeeder::class);*/\n\n\n DB::table('roles')-> insert([\n [\n 'name' => 'Admin',\n 'alias' => 'admin',\n 'created_at' => date(\"Y-m-d H:i:s\")\n ],\n [\n 'name' => 'User',\n 'alias' => 'user',\n 'created_at' => date(\"Y-m-d H:i:s\")\n ]\n ]);\n\n\n }", "title": "" }, { "docid": "a5ce77c3e99f12ab19018d9164fdffc8", "score": "0.76591766", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $directors=factory(App\\Director::class)->times(7)->create();\n $movies=Movie::all();\n\n foreach ($movies as $oneMovies) {\n $oneMovies->director()->associate($directors->random(1)->first()->id);\n $oneMovies->save();\n }\n\n }", "title": "" }, { "docid": "d26cbbf9444f51683da0101c8bae9147", "score": "0.7656243", "text": "public function run()\n {\n //create a known demo user\n User::factory()->create([\n 'email' => 'example@mail.com'\n ]);\n\n $this->call([\n UserTableSeeder::class,\n ]);\n\n Quiz::factory()->count(20)->create()->each(function($c) {\n $c->mcqs()->saveMany(\n MCQ::factory()->count(random_int(10,50))->create()\n );\n });\n }", "title": "" }, { "docid": "5340b733c0c35d4a0890dae51ca9f01e", "score": "0.7655571", "text": "public function run()\n {\n $this->truncateUserTables();\n\n \\App\\Models\\User::firstOrCreate([\n 'name' => 'Admin User',\n 'email' => 'admin@gmail.com',\n 'password' => Hash::make('admin1123'),\n ]);\n\n $faker = Faker::create();\n\n foreach (range(1, 25) as $index) {\n \\App\\Models\\Student::create([\n 'fullname' => $faker->firstname,\n 'roll' => $index,\n 'propic' => null,\n ]);\n }\n }", "title": "" }, { "docid": "a48cd5bbd88c4d067c54457c50be726c", "score": "0.7653848", "text": "public function run()\n {\n $this->truncateTables([\n 'users',\n 'images',\n 'likes',\n 'comments'\n ]);\n \n User::factory(10)->create();\n Image::factory(10)->create();\n Like::factory(10)->create();\n Comment::factory(10)->create();\n\n $this->call([\n UserSeeder::class,\n ]);\n }", "title": "" }, { "docid": "786ba8399b50f481be52bd7398718a58", "score": "0.76531196", "text": "public function run()\n {\n //$this->call(CitySeeder::class);\n \n City::factory(12)->create();\n $this->call(VehicleSeeder::class);\n \n //$this->call(TelephoneSeeder::class);\n \n Telephone::factory(50)->create();\n Rental::factory(100)->create();\n\n }", "title": "" }, { "docid": "e6f06365d22e1b28b3bd14b58444dc04", "score": "0.76521194", "text": "public function run()\n {\n\n $faker = Faker::create();\n\n foreach(range(1,10) as $index){\n DB::table('iis_interpret')->insert([\n 'name' => $faker->sentence(3, true),\n 'members' => $faker->sentence(3, true),\n 'genre' => $faker->randomElement($array = array ('pop','rock','rap', 'metal', 'punk')),\n 'publisher' => $faker->word(),\n 'image' => $faker->imageUrl($width = 1280, $height = 720),\n 'description' => $faker->paragraph(2),\n 'formed_at' => $faker->date($format = 'Y-m-d H:i:s', $max = 'now'),\n 'created_at' => $faker->date($format = 'Y-m-d H:i:s', $max = 'now'),\n 'updated_at' => $faker->date($format = 'Y-m-d H:i:s', $max = 'now')\n ]);\n }\n\n }", "title": "" }, { "docid": "c8e097995b44d3b77d7922d45d3e7d18", "score": "0.7651747", "text": "public function run()\n {\n Model::unguard();\n\n // https://gist.github.com/isimmons/8202227\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n User::truncate();\n Category::truncate();\n Post::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $categories = factory(App\\Category::class, 30)->create();\n\n factory(App\\User::class, 10)->create()->each(function($user) use ($categories) {\n $user->posts()->saveMany(factory(App\\Post::class, 50)->create()->each(function($post) use ($categories) {\n $post->categories()->sync($categories->random(3)->pluck('id')->all());\n }));\n });\n\n Model::reguard();\n }", "title": "" }, { "docid": "b95080596763428b065e5fbdb7fdf0c5", "score": "0.7650356", "text": "public function run()\n {\n $faker \t= Factory::create('id_ID');\n \t$data \t= [];\n \tforeach (range(1,50) as $i) {\n \t\t$data[] = [\n \t\t\t'title' \t\t=> 'Beli Deposit',\n \t\t\t'content'\t\t=> 'Membeli deposit sebesar 50000',\n \t\t\t'user_id'\t\t=> '38',\n \t\t\t'created_at'\t=> $faker->datetime,\n \t\t\t'updated_at'\t=> now(),\n \t\t];\n \t}\n \tDB::statement('SET FOREIGN_KEY_CHECKS=0;');\n \tDB::table('activities')->truncate();\n \tDB::table('activities')->insert($data);\n }", "title": "" }, { "docid": "4caecf4e2dbd3c5accb7ad81244e8ae2", "score": "0.76480454", "text": "public function run()\n {\n // seed of perfis\n DB::table('perfis')->insert([\n [\n 'id' => 1,\n 'name' => 'admin',\n 'display_name' => 'Administrador',\n 'description' => 'Perfil de administrador',\n ],\n [\n 'id' => 2,\n 'name' => 'usuario',\n 'display_name' => 'Usuario',\n 'description' => 'Perfil do Usuario que aloca e compra imoveis.',\n ],\n ]);\n\n /**\n * Adicionar a permissao para os usurios da seed\n */\n DB::table('usuarios_perfis')->insert([\n [\n 'usuario_id' => 1,\n 'perfil_id' => 1\n ],\n [\n 'usuario_id' => 2,\n 'perfil_id' => 1\n ],\n [\n 'usuario_id' => 3,\n 'perfil_id' => 1\n ],\n [\n 'usuario_id' => 4,\n 'perfil_id' => 1\n ],\n [\n 'usuario_id' => 5,\n 'perfil_id' => 1\n ],\n [\n 'usuario_id' => 6,\n 'perfil_id' => 2\n ],\n ]);\n }", "title": "" }, { "docid": "4f4496d20543369fd27d03bb58fe3133", "score": "0.76468253", "text": "public function run()\n {\n $faker = app(Faker\\Generator::class);\n $user = User::find(1);\n\n $topics = factory(Topic::class)->times(rand(100, 200))->make()->each(function ($topic) use ($faker, $user) {\n $topic->user_id = 1;\n $topic->category_id = 1;\n $topic->is_excellent = rand(0, 1) ? 'yes' : 'no';\n });\n Topic::insert($topics->toArray());\n }", "title": "" }, { "docid": "4ac022527ef235783677bc6ef115503d", "score": "0.76461226", "text": "public function run()\n {\n $this->call(BlogArticlesCategoriesTableSeeder::class);\n $this->call(ProductsCategoriesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(BlogEventsCategoriesTableSeeder::class);\n $this->call(ProductsTableSeeder::class);\n factory(\\App\\Models\\User::class, 50)->create();\n factory(\\App\\Models\\BlogEvent::class, 50)->create();\n factory(\\App\\Models\\BlogArticle::class, 50)->create();\n\n }", "title": "" }, { "docid": "8945612ec7a49f0f1852938590417f44", "score": "0.7646043", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('items')->insert([\n ['name' => '1 More E1001 Triple Driver IEM'],\n ['name' => '1 More E1001 Triple Driver IEM (Demo)'],\n ['name' => '1 More Piston Fit'],\n ['name' => 'ALO Litz MMCX 2.5'],\n ['name' => 'ATH-AR1iS'],\n ['name' => 'ATH-DSR7BT Black'],\n ['name' => 'ATH-LS50iS Black'],\n ['name' => 'ATH-LS70iS Black'],\n ]);\n }", "title": "" }, { "docid": "68bf7d23d85baec30f2ba67a6fa4e4b6", "score": "0.76455927", "text": "public function run()\n {\n $this->studentSkillsSeeder();\n $this->studentTagsSeeder();\n }", "title": "" }, { "docid": "8494dc0b48ead42c5e9f8183bb5471d3", "score": "0.76453424", "text": "public function run()\n {\n \\App\\User::truncate();\n $faker = Faker\\Factory::create();\n for($i=0;$i<50;$i++){\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'lastName' => $faker->lastName,\n 'email' => $faker->email,\n 'sex' => 'f',\n 'phone' => $faker->phoneNumber,\n 'pesel' => $faker->randomDigit,\n 'role' => 'user',\n 'password' => bcrypt('secret'),\n ]);\n }\n DB::table('users')->insert([\n 'name' => 'Sample',\n 'lastName' => 'Example',\n 'email' => \"admin@gmail.com\",\n 'sex' => 'f',\n 'phone' => $faker->phoneNumber,\n 'pesel' => $faker->randomDigit,\n 'role' => 'admin',\n 'password' => bcrypt('secret'),\n ]);\n }", "title": "" } ]
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "a433e4db90e8b2bc1724f47789dc0d06", "score": "0.0", "text": "public function edit($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "eaff1ff5ad75e879908bb065beeea534", "score": "0.789207", "text": "public function edit(Resource $resource)\n {\n return view('actions.resource.edit', compact('resource'));\n }", "title": "" }, { "docid": "f3bc4ff0e0f2cc54bf914d77670e405e", "score": "0.78099495", "text": "public function edit(Resource $resource)\n {\n return view('resource.edit',['resource'=>$resource]);\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.7692893", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "4bdbe4ff8aec98fee963bdf4dbf6da91", "score": "0.7512742", "text": "public function edit(FormBuilder $formBuilder, $course, Resource $resource)\n {\n //\n $edit = $formBuilder->create(\\App\\Forms\\Resource::class, [\n 'method' => 'PATCH',\n 'url' => route('resource.update', [$course, $resource->id]),\n 'model' => $resource,\n ]);\n //\n $delete = $formBuilder->create(\\App\\Forms\\DeleteForm::class, [\n 'method' => 'DELETE',\n 'url' => route('resource.destroy', [$course, $resource->id]),\n ]);\n $pageTitle = 'Edit Resource';\n return view('resources.formEdit', compact('edit','delete', 'pageTitle'));\n\n }", "title": "" }, { "docid": "93f7e624d9e32a9fbf006f4f83dae8a8", "score": "0.7485166", "text": "public function edit($id)\n {\n /*show edit form*/\n }", "title": "" }, { "docid": "1404e57fbb5774c03bfe25411f8fe287", "score": "0.7329009", "text": "public function edit($id)\n {\n $resource = Resource::findOrFail($id);\n \n $data = [\n 'resource' => $resource,\n ];\n\n return view('resources.edit-resource')->with($data);\n }", "title": "" }, { "docid": "ed0028dbd1fbb47ee337d77b8a651d9a", "score": "0.7300998", "text": "public function edit($id)\n\t{\n\t\t$resource = Resource::findOrFail($id);\n\t\treturn View::make('resource/edit', compact('resource'));\n\t}", "title": "" }, { "docid": "4753e80c2af19bb37f8b9df0bf10829e", "score": "0.72601366", "text": "public function edit( )\n\t{\n\t\t// show\n\t}", "title": "" }, { "docid": "2d0354bc64da2d977cfd60754017882b", "score": "0.7256488", "text": "public function edit($id)\n {\n $userdata = Resources::findOrFail($id);\n return view('admin.resource.edit', compact('userdata'));\n }", "title": "" }, { "docid": "8c5ec66a768a8406204fdc19e3dec141", "score": "0.7236764", "text": "public function edit($id)\n\t{\n\t\t// Get the resource if it has not been provided by the child class\n\t\tif( ! $this->resource->getKey())\n\t\t\t$this->resource = $this->resource->findOrFail($id);\n\n\t\t$this->layout->subtitle = _('Edit');\n\n\t\treturn $this->loadView(__FUNCTION__, $this->resource->getFillableLabels());\n\t}", "title": "" }, { "docid": "f486aa2dad1b98a29b575e9dba22938d", "score": "0.7131576", "text": "public function edit($id)\n {\n $resource = Resource::findOrFail($id);\n\n return view('resources.edit')->with(compact('resource'));\n }", "title": "" }, { "docid": "654b96e5d414d66677bf1e3d1695b1d8", "score": "0.7118867", "text": "public function edit_form()\n {\n return View::make(\"app.edit\");\n }", "title": "" }, { "docid": "ecbdcecae7d17f5fd47a1b3471865b07", "score": "0.71140355", "text": "public function edit($resourceId)\n {\n $resource = $this->resource->find($resourceId);\n\n return view('laramanager::resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "8640b0c244bf00ab3b420106f09d5eb1", "score": "0.71136826", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BWBlogBundle:Resource')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Resource entity.');\n }\n\n $form = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BWBlogBundle:Resource:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "ab1c5f00384bd443c0312a8cedd635d9", "score": "0.709417", "text": "function edit() {\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t$productId = KRequest::getInt('productId');\n\t\t$matrixId = KRequest::getInt('id');\n\n\t\t$view = $this->getDefaultViewForm();\n\t\t$view->setProductId($productId);\n\t\t$view->setMatrixId($matrixId);\n\t\t$view->display();\n\n\t}", "title": "" }, { "docid": "5df52742ed05bd924198604d4236743d", "score": "0.7058229", "text": "public function edit($id)\n {\n //$resource = Resource::findOrFail($id);\n $query = '\"select\":\"*\",\"where\":\"id=' . $id . '\"';\n $data = ResourcesService::getResourcesTableRow($query);\n $resource = $data[\"Result\"][0];\n SyncService::SyncResourcesTable();\n return view('admin.resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "6c1e231bfb659c518730d45c158fa402", "score": "0.7040291", "text": "public function edit($id)\n\t{\n\t\t$resource = $this->repository->getResource($id);\n\t\t$menuTab = $this->menuTab;\n\t\treturn response()->view('admin.resources.edit', compact(['resource', 'menuTab']));\n\t}", "title": "" }, { "docid": "9c8836b3e3aa143dfa78083f839f6e60", "score": "0.7036434", "text": "public function editAction()\n {\n $request = $this->getRequest();\n\t\t$id = $request->getParam(\"id\");\n\n $form = new Application_Form_Book();\n $book = new Application_Model_Book();\n\t\t$mapper = new Application_Model_BookMapper();\n $mapper->find($id, $book);\n\t\t\n\t\t$form->populate($book);\n\t\t\n\t\t$this->view->form=$form;\n\n }", "title": "" }, { "docid": "96884a0d55f36349b743e3d913248156", "score": "0.70006657", "text": "function edit()\n {\n $this->_view_edit('edit');\n }", "title": "" }, { "docid": "38b4c2bcc5d6f933f82442e502068ae3", "score": "0.6945275", "text": "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "title": "" }, { "docid": "0aee08a6c8d208457326de0c63ab1d93", "score": "0.69405466", "text": "public function edit($id)\n\t{\n $form_data = ['route' => [self::$prefixRoute . 'update', $this->revision->id], 'method' => 'PUT'];\n\n return view(self::$prefixView . 'form', compact('form_data'))\n \t->with(['revision' => $this->revision]);\n\t}", "title": "" }, { "docid": "13550b89e98e00015a895299bc148377", "score": "0.69336295", "text": "public function editAction()\n {\n $assign_id = $this->_getParam('assign');\n $this->_includeForm($assign_id);\n }", "title": "" }, { "docid": "44db8e15fc1352a7c519823621a72cc9", "score": "0.69331795", "text": "public function edit()\n {\n return view('coreplanification::edit');\n }", "title": "" }, { "docid": "901ccd53ce97c5a7d1966359f57043a4", "score": "0.69117606", "text": "public function edit()\n {\n return view('inpatient::edit');\n }", "title": "" }, { "docid": "6acf67aab48fd2b396026c0eeb096874", "score": "0.69115764", "text": "public function edit()\n {\n return view('prappo::edit');\n }", "title": "" }, { "docid": "291ee83a27f023635ff2c99d1e9ea7a6", "score": "0.69041586", "text": "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'em' => $this->getDoctrine()->getManager(),\n 'action' => $this->generateUrl('resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array(\n 'label' => 'Update',\n 'attr' => array(\n 'class' => 'btn btn-primary',\n ),\n ));\n\n return $form;\n }", "title": "" }, { "docid": "53a8dd3945e8d394e8af0378fcb0759a", "score": "0.68744934", "text": "public function edit($id)\n\t{\n // get\n $resident = Resident::find($id);\n\n // show the edit form and pass\n return View::make('residents.edit')\n ->with('resident', $resident);\n\t}", "title": "" }, { "docid": "b1f8a3dd503a02e69fbec578be1ee9d1", "score": "0.686333", "text": "public function editForm($id)\n\t{\n\t\t$job = Job::find($id);\n\t\tif(!$job)\n\t\t{\n\t\t\tApp::abort(404);\n\t\t}\n\n\t\treturn View::make('admin.jobs.edit')->with(array(\n\t\t\t'title' => 'Edition de '.$job->name,\n\t\t\t'job' => $job\n\t\t));\n\t}", "title": "" }, { "docid": "6fe32e6f0c7ebd96d516ccbe60770da8", "score": "0.686321", "text": "public function edit()\n\t{\n\t\t$jInput = JFactory::getApplication()->input;\n\t\t$jInput->set('view', 'field');\n\t\t$jInput->set('layout', 'default');\n\t\t$jInput->set('hidemainmenu', 1);\n\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "766ad0e46f9488ff1bb3e99bffd9b013", "score": "0.68585783", "text": "public function edit($id)\n {\n return view('formbuilder::edit');\n }", "title": "" }, { "docid": "3adf6e4a4db6770a78d161ea39e0d09a", "score": "0.68573624", "text": "public function editAction ( )\n {\n $model = $this->getModel($this->_modelName);\n $request = $this->getRequest();\n $form = $model->getForm();\n $params = $request->getParams();\n\n $model->load($request->getParam('id'));\n\n $form->injectDependencies($model, $params);\n\n if (! $model->id) {\n $message = sprintf(self::MSG_LOAD_FAILURE, $this->_modelName);\n $this->flashAndRedirect($message, 'error', array(\n 'module' => $request->getModuleName(),\n 'controller' => $request->getControllerName(),\n 'action' => 'index',\n ));\n }\n\n if ($request->isPost()) {\n try {\n $this->_edit($model, $request);\n } catch (Zend_Exception $exception) {\n $get = $this->_getGetRequest();\n $this->flashAndRedirect($exception->getMessage(), 'error', $get);\n }\n }\n\n $this->view->form = $form;\n $this->view->model = $model;\n\n }", "title": "" }, { "docid": "d56e1574f0c5378fe3811673b7df8b42", "score": "0.6851044", "text": "public function edit($id)\n\t{\n\t\t$this->page_title = 'Edit Associate';\n\t\t$data = $this->rendarEdit($id);\n\t\treturn view('admin.crud.form',$data);\n\t}", "title": "" }, { "docid": "489dd9e64fb4a5c656aedbd3e14c8922", "score": "0.6848005", "text": "public function edit($id)\n\t{\n\t\t$question = Question::findOrFail($id);\n return view('admin.question.form', compact('question'));\n\t}", "title": "" }, { "docid": "9f631e40538fb44577d89db78f7348d8", "score": "0.684799", "text": "public function edit($id)\n {\n\t\t$user = $this->repository->findOneById($id);\n\n return view($this->base . 'form',compact('user'));\n }", "title": "" }, { "docid": "ebdfabd30fdb198a4595764f3e45e18f", "score": "0.6832047", "text": "public function actionEdit()\n {\n $this->view->article = Article::findById((int)$_GET['id']);\n $this->view->display(__DIR__ . '/../../../templates/admin/edit.php');\n }", "title": "" }, { "docid": "8f4207c19a0c7a6f7e5ad8a14497a90f", "score": "0.6824207", "text": "public function edit($id)\n\t{\n\t\treturn \"Shows a form for editing a specific post\";\n\t}", "title": "" }, { "docid": "3968d721d2d6a0540f1d6feba20cef0c", "score": "0.68226755", "text": "public function edit($id)\n {\n return view('controllers.resource-controllers.edit', compact('id'));\n }", "title": "" }, { "docid": "43a06ccc90a0e604ffd06cacb786b0ff", "score": "0.6820547", "text": "public function edit($id)\n\t{\n\t\t$student = $this->students->findById($id);\n return View::make('students._form', array('student' => $student, 'exists' => true));\n\n\t}", "title": "" }, { "docid": "dd6567bb75ad8b2f5dcd4461b639f0e6", "score": "0.6819833", "text": "public function edit($id)\n {\n $form = Form::find($id);\n return view('formbuilder::form.edit',compact('form'));\n }", "title": "" }, { "docid": "ca5f52bec4884c7fcd8605fda797f2e0", "score": "0.681206", "text": "public function edit($id)\n {\n $form =\\App\\Form::find($id);\n return view('form.edit',compact('form'));\n }", "title": "" }, { "docid": "07993cef1b04896170dffd4d46ed96aa", "score": "0.68106216", "text": "public function edit($class_id, $resource)\n {\n //\n }", "title": "" }, { "docid": "42fefa0bb00f6a35ff461a006d5fb4fe", "score": "0.6809563", "text": "public function editForm()\n {\n $data = [\n 'question' => App::get('database')->select('questions', 'id', $_GET['id']),\n 'answers' => App::get('database')->select('answers', 'answer_id', $_GET['id'])\n ];\n\n return view('questions.edit', compact('data'));\n }", "title": "" }, { "docid": "5dbf6a424144f5f1ea70f7e2584cb814", "score": "0.68048286", "text": "public function edit()\r\n {\r\n return view('admin::edit');\r\n }", "title": "" }, { "docid": "b2548057b424e6a5cacb6db19ee658ae", "score": "0.68022823", "text": "public function edit()\n {\n return view('api::edit');\n }", "title": "" }, { "docid": "62c2bf22604789e0fe0631318bc4da7e", "score": "0.6793394", "text": "public function edit() {\n\t\t/* CHANGED - switched to url(\"id\") as $this->param(\"id\") is deprecated */\n\t $this->id = WaxUrl::get(\"id\");\n\t\tif(!$this->id) $this->id = $this->route_array[0];\n $this->model = new $this->model_class($this->id);\n \n\t\t$this->form = $this->render_partial(\"form\");\n\t\tif($_POST['cancel']) $this->redirect_to(Session::get(\"list_refer\"));\n\t\tif($_POST['save']) $this->save($this->model, \"edit\");\n\t\telse $this->save($this->model, Session::get(\"list_refer\"));\n\t}", "title": "" }, { "docid": "4d4b5c8d6ba885d863626bf0f1e99725", "score": "0.67909837", "text": "public function edit($id)\n\t{\n\t\t$this->resources = array('car' => $this->resource,\n \t\t\t\t\t\t\t\t 'categories' => Category::ClassListSelectInput(),\n \t\t\t\t\t\t\t\t 'carList' => Car::carListSelectOptions()\n \t\t\t\t\t\t);\n\t\treturn $this->respondTo(\n\t\t\tarray('html'=> function()\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t $this->layout->nest('content', $this->view, $this->resources);\n\t\t\t\t \t\t\t},\n\t\t\t\t 'js' => function()\n\t\t\t\t \t\t {\n\t\t\t\t \t\t \t $form = View::make($this->form, $this->resources)->render();\n\t\t\t\t \t\t \t return View::make('admin.shared.modal', array('body' => $form))->render();\n\t\t\t\t \t\t }\n\t\t\t\t )\n\t\t\t);\n\t}", "title": "" }, { "docid": "86d596efe1714c0e50410fc7134cd9e3", "score": "0.67899823", "text": "public function edit()\n {\n return view('berating::edit');\n }", "title": "" }, { "docid": "2147ded57d317abac917ded7bf4c5589", "score": "0.678895", "text": "public function edit($id)\n {\n $record = $this->model->findOrFail($id);\n\n $this->viewData['record'] = $record;\n\n $this->viewData['formMethod'] = 'PUT';\n $this->viewData['formAction'] = 'user.update';\n\n return view($this->defaultFormView, $this->viewData);\n }", "title": "" }, { "docid": "b475fc8e937568a510257d6507f3a6e2", "score": "0.67683", "text": "public function edit($id)\n {\n $product = Product::find($id);\n return view('admin.product.form',[ 'product' => $product ]);\n }", "title": "" }, { "docid": "cadf80168cda3fc14631174ff8ec05e6", "score": "0.6767456", "text": "public function editAction()\n {\n $model = $this->_initModel();\n\n // make sure that the model exists before continuing\n if ($this->_getRequestedId() && !$model && !$model->getId()) {\n Mage::getSingleton('adminhtml/session')->addError($this->__('This ' . $this->_getObjectLabel() . ' no longer exist or is corrupt.'));\n $this->_redirect('*/*/');\n } else {\n $this->_initAction()->renderLayout();\n }\n }", "title": "" }, { "docid": "5bf37156a011a54f8d1f89ba96911864", "score": "0.67593914", "text": "public function edit(Form $form)\n {\n return view('forms.edit',compact('form'));\n }", "title": "" }, { "docid": "ac62d8f04a855af96ee81ddcc7f43f6a", "score": "0.674935", "text": "public function edit(): void\n {\n $this->showEditPage($this->getItem());\n }", "title": "" }, { "docid": "e87e608ddadfa3687caa6cc9477425cf", "score": "0.6745892", "text": "public function edit($id)\n {\n $is_edit = true;\n $product = Product::find($id);\n\n return view('products.form', compact('product', 'is_edit'));\n }", "title": "" }, { "docid": "f317696c87c55af5bdb2c774e7855698", "score": "0.67415434", "text": "public function edit(Resource $resource)\n {\n //\n // $this->authorize('update',Resource::class);\n // $page=Page::all();\n // return view('resource.edit',compact('page','resource'));\n return response()->json($resource);\n }", "title": "" }, { "docid": "2a0de8686ce09f7bacd45838296d3aac", "score": "0.6740148", "text": "public function edit($id)\n {\n if(Gate::denies('familia-edit')){\n abort(403,\"Não autorizado!\");\n }\n\n $familia = Familia::find($id);\n\n return view('familias.form',compact('familia'));\n }", "title": "" }, { "docid": "6d0cd677e592e2179223532437971edd", "score": "0.67277086", "text": "public function edit($id)\n\t{\n return view($this->path . 'edit', ['record' => Record::find($id)] );\n\t}", "title": "" }, { "docid": "8ecab6633b0244e83acc1262c8f70524", "score": "0.6724784", "text": "public function edit($id)\n\t{\n\t\t$famoso = Famoso::find($id);\n\n\t\t// show the edit form and pass the object\n\t\treturn View::make('famoso.edit')\n\t\t\t->with('famoso', $famoso);\n\t}", "title": "" }, { "docid": "5e95479074ff3a4269a77c41326ace59", "score": "0.67221993", "text": "public function editing(){\n\t\t/// Send the user to this view\n\t\t$this->render(\"editing\");\n\t}", "title": "" }, { "docid": "e9232910411eba7ae6c98603663c9453", "score": "0.6719594", "text": "public function edit($id)\n {\n $company = Company::find($id);\n $company->form_action = $this->getRoute() . '.update';\n $company->page_title = 'Company Edit Page';\n // Add page type here to indicate that the form.blade.php is in 'edit' mode\n $company->page_type = 'edit';\n return view('backend.companies.form', [\n 'company' => $company\n ]);\n }", "title": "" }, { "docid": "73c3c8ef8ccb5ebffbd7c9d1617e5de2", "score": "0.6716718", "text": "public function editForm() {\n\t\t$layout = $this->input->get('layout', null, 'string');\n\t\t$nameModelForm = (empty($layout)) ? $this->nameKey.'form' : $layout.'form';\n\t\t$layout = (empty($layout)) ? 'edit' : 'edit_'.$layout; //BmDebug::log($layout, __method__);\n\t\t$view = $this->getView($this->default_view,\n\t\t\tJFactory::getDocument()->getType(), '', array('layout' => $layout));\n\t\t$view->setModel($this->getModel($this->nameKey));\n\t\t$view->setModel($this->getModel($nameModelForm));\n\t\t$view->editForm();\n\t}", "title": "" }, { "docid": "1d24319a1462677632ee7717aa20a61d", "score": "0.6715344", "text": "public function edit($id)\n { \n \treturn view(\"gestion.formularios.edit\",[\"formulario\"=>Formulario::findOrFail($id)]); \n }", "title": "" }, { "docid": "2a667f76d35f0224dbbf223e12e110af", "score": "0.6706635", "text": "public function actionEdit($id)\n\t{\n\t\t$form = $this->getComponent('rightResourceForm');\n\t\t/* @var $form Form */\n\n\t\t$submit = $form->addSubmit(FormBuilder::SUBMIT_EDIT, 'upravit zdroj oprávnění');\n\t\t$submit->onClick[] = callback($this,'edit');\n\n\t\t$form->addSubmit('stortno', \"storno\")->setValidationScope(false)->onClick[] = callback($this,'formStorno');\n\t}", "title": "" }, { "docid": "a7dded643ee65e6b9cf08ef89ee539b6", "score": "0.6699572", "text": "public function edit($id)\n\t{\n $form_data = ['route' => [self::$prefixRoute . 'update', $this->presentation->id], 'method' => 'PUT'];\n\n return view(self::$prefixView . 'form', compact('form_data'))\n \t->with(['presentation' => $this->presentation]);\n\t}", "title": "" }, { "docid": "4e3f60120231c9e9fb4516dda6cad799", "score": "0.6698769", "text": "public function edit($id)\n {\n $entity = Entity::query()->find($id);\n return view('crudgenerator::entities.edit', compact('entity'));\n }", "title": "" }, { "docid": "b3e1f1e6d5549bd781053c989eb1e847", "score": "0.66949964", "text": "public function edit($id)\n {\n $author = Author::find($id);\n return view('admin.author.form',['author' => $author]); \n }", "title": "" }, { "docid": "fe08627e9afbe6ed7f13f71f273030a1", "score": "0.6693402", "text": "public function edit($id)\n\t{\n $employee = Employee::find($id);\n return View::make('system.Employee.edit',compact(\"employee\"));\n\t}", "title": "" }, { "docid": "b8547be61d1a0bb98b26ec7de01610cd", "score": "0.668619", "text": "public function edit($id, FormBuilder $form_builder): Renderable\n {\n $existing_product = $this->product_repository->getById($id);\n\n $form = $form_builder->create('App\\Forms\\Product\\EditForm', [\n 'method' => 'PUT',\n 'url' => route('product.update'),\n 'model' => $existing_product\n ]);\n\n return view('product.modify', compact('form'));\n }", "title": "" }, { "docid": "bf49bc8226e13e2862c2259d16e93588", "score": "0.6680715", "text": "public function edit($id)\n {\n $product = Product::find($id);\n return view('products.edit_form')->with('product', $product)->with('manufacturers', Manufacturer::all());\n }", "title": "" }, { "docid": "6c0376e096733d3b0fa90503eef2434b", "score": "0.6677822", "text": "public function edit()\n {\n return view('bangunan::edit');\n }", "title": "" }, { "docid": "44ff363bc16fe7311c23454456531dbc", "score": "0.66771793", "text": "public function edit_item()\n {\n $this->check_authorization();\n \n $id = $this->get_arg('id', 0);\n $item = Item::find($id); \n $data['item'] = $item;\n $data['breadcrumbs'] = $this->generate_breadcrumbs(\n $item->category_id,\n array('/show_item?id='.$item->id => $item->name)\n );\n\n return new View('item_form', $data); \n }", "title": "" }, { "docid": "41567083a127c71ff96104505b7b5dec", "score": "0.66739434", "text": "public static function edit()\n {\n $record = todos::findOne($_REQUEST['id']);\n self::getTemplate('edit_task', $record);\n\n }", "title": "" }, { "docid": "98c3057a696eb14943e7e5fea5851c0b", "score": "0.6665287", "text": "public function edit($id)\n {\n return $this->showForm($id);\n }", "title": "" }, { "docid": "58fa8a98152b59c2e07c439335e492b4", "score": "0.6664993", "text": "public function edit($id)\n {\n return view('web::edit');\n }", "title": "" }, { "docid": "adb01bd13a4dfbf550016516570e7b60", "score": "0.6664392", "text": "public function edit($id)\n\t{\n\t\t$this->resources = array('station' => $this->resource\n \t\t\t\t\t\t);\n\t\treturn $this->respondTo(\n\t\t\tarray('html'=> function()\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t $this->layout->nest('content', $this->view, $this->resources);\n\t\t\t\t \t\t\t},\n\t\t\t\t 'js' => function()\n\t\t\t\t \t\t {\n\t\t\t\t \t\t \t $form = View::make($this->form, $this->resources)->render();\n\t\t\t\t \t\t \t return View::make('admin.shared.modal', array('body' => $form))->render();\n\t\t\t\t \t\t }\n\t\t\t\t )\n\t\t\t);\n\t}", "title": "" }, { "docid": "5fa4968110c48bd9bdcff5495b19f29a", "score": "0.66524285", "text": "public function edit()\n {\n return view('task::edit');\n }", "title": "" }, { "docid": "c13dfacb9aed13d70a670ff15ea907b6", "score": "0.664798", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('EmpleadoBundle:Empleado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Empleado entity.');\n }\n\n $editForm = $this->createForm(new EmpleadoType(), $entity);\n \n\n return $this->render('PanelBundle:Empleado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n ));\n }", "title": "" }, { "docid": "58f55c0117c1a36e605cb5c2aabc68e3", "score": "0.66402805", "text": "public function edit() {\n\t\t$author = pick_arg(Author::class) ?: new Author;\n\t\treturn $this->viewEdit(compact('author'));\n\t}", "title": "" }, { "docid": "221efc99f3dd40c0f971d42862c5b218", "score": "0.66357946", "text": "public function edit($id)\n\t{\n\t\tif(!$this->autorizado) return Redirect::to('/login');\n\t\t$modelo = Modelo::find($id);\n\t\tif (is_null ($modelo))\n\t\t{\n\t\t\tApp::abort(404);\n\t\t}\n\t\treturn View::make('models.form')->with('modelo', $modelo);\n\t}", "title": "" }, { "docid": "b912d383bf373377209a233f3ceefe90", "score": "0.66283524", "text": "public function editAction($id) {\r\n $em = $this->getDoctrine()->getEntityManager();\r\n\r\n $entity = $em->getRepository('MedicinaKernelBundle:Oficina')->find($id);\r\n\r\n if (!$entity) {\r\n throw $this->createNotFoundException('No se ha encontrado la oficina solicitada');\r\n }\r\n\r\n $editForm = $this->createForm(new OficinaType(), $entity);\r\n\r\n return $this->render('BackendBundle:Oficina:edit.html.twig', array(\r\n 'entity' => $entity,\r\n 'form' => $editForm->createView(),\r\n ));\r\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6627662", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "e69682a60ea811251468072e63bf80cb", "score": "0.6626088", "text": "public function showEditForm($id)\n\t{\n\t\t$post = Post::where('id', $id)->first();\n\t\treturn view('admin.post.edit', ['post' => $post]);\n\t}", "title": "" }, { "docid": "bb154b1db81c97b24dc305b03e48e156", "score": "0.6624101", "text": "function edit() {\n\t\t$this->display();\n\t}", "title": "" }, { "docid": "4ba7055b2304ab3f588267e488d1cfb9", "score": "0.6620297", "text": "function viewedit(){\n $id=Request::read('id');\n \n $nota = $this->getModel()->getNota($id);\n $this->getModel()->addData('titulo', $nota->getTitulo());\n $this->getModel()->addData('contenido', $nota->getContenido());\n $this->getModel()->addData('favorito', $nota->getFavorito());\n $this->getModel()->addData('idNotas', $nota->getId());\n $this->getModel()->addData('idUsuario', $nota->getIdUsuario());\n $this->getModel()->addFile('form', 'sections/nota/formEdit.html');\n }", "title": "" }, { "docid": "c9ce59f5b770500a9924cc8e0f97bf72", "score": "0.66186434", "text": "public function edit($id)\n {\n $resident = Resident::where('id','=',$id)->with('relatives')->first();\n return view('survey.family-member-form.edit', compact('resident'));\n }", "title": "" }, { "docid": "afb09dad84e30958b4252ef05c35ffd3", "score": "0.66183454", "text": "public function editView() {\n $this->edit = true;\n $this->addView();\n }", "title": "" }, { "docid": "63720603ef56686d63e3133a9a3ec385", "score": "0.6612739", "text": "public function edit()\n {\n return view('mgdestino::edit');\n }", "title": "" }, { "docid": "09ca9097e9f59afd7ab61c2fa4368b57", "score": "0.66118366", "text": "public function showEditForm($id)\r\r\n {\r\r\n $userinfo = User::findOrFail($id);\r\r\n return view('/auth/edituser', compact('userinfo'));\r\r\n }", "title": "" }, { "docid": "f77eec10d5891a2545e2b33ab8d59228", "score": "0.66089296", "text": "public function edit()\n {\n $company = Company::first();\n return view('company.edit',compact('company'));\n }", "title": "" }, { "docid": "035eb13b2ca5fd52c8005c0d17b6d221", "score": "0.66086483", "text": "public function edit()\n {\n return view('dashboard::edit');\n }", "title": "" }, { "docid": "035eb13b2ca5fd52c8005c0d17b6d221", "score": "0.66086483", "text": "public function edit()\n {\n return view('dashboard::edit');\n }", "title": "" }, { "docid": "fb75ecb723bf601f0c220bda3e7a2405", "score": "0.66079116", "text": "public function edit($id);", "title": "" }, { "docid": "9ec66c39b4a9570023bc9493ee748e0e", "score": "0.66041213", "text": "protected function editAction()\n {\n $this->editAction\n ->setAccess($this, Access::CAN_EDIT)\n ->setOwnerAccess($this)\n ->execute($this, UserEntity::class, UserActionEvent::class, NULL, __METHOD__, [], ['user_id' => $this->thisRouteID()])\n ->render()\n ->with(\n [\n 'user' => $this->toArray($this->findOr404()),\n 'check_icon' => '<li><ion-icon name=\"checkmark-outline\"></ion-icon></li>',\n 'close_icon' => '<ion-icon name=\"close-outline\"></ion-icon>'\n ]\n )\n ->form($this->formUser)\n ->end();\n }", "title": "" }, { "docid": "f1396c5dcd191e30f534693231be69da", "score": "0.66018045", "text": "public function edit()\n {\n return view('usersupplier::edit');\n }", "title": "" }, { "docid": "2a47ad7ce79b806f24d1a15c7fc9c440", "score": "0.6596694", "text": "public function edit($id)\n {\n return view('frontend::edit');\n }", "title": "" }, { "docid": "5f22addb2b8cf9ad635b7e8fa77bb71c", "score": "0.6594983", "text": "public function edit()\n {\n return view('mgcatalogos::edit');\n }", "title": "" }, { "docid": "751bc10498bcb4f6f6569034693a7061", "score": "0.6590733", "text": "public function edit($id)\n {\n $template = (object) $this->template;\n $form = $this->form();\n $data = SPM::find($id);\n return view('admin.master.edit',compact('template','form','data'));\n }", "title": "" }, { "docid": "bdaf931446dd96d9ab719a5b26c06691", "score": "0.65898085", "text": "public function edit(FormBuilder $formBuilder, $id)\n {\n $form = $formBuilder->create(\\App\\Forms\\BookForm::class, [\n 'method' => 'PUT',\n 'url' => route('book.update',$id),\n ]);\n $books = Book::find($id);\n return view($this->folder.'.edit',compact('books','form'));\n }", "title": "" }, { "docid": "fbf7adc2631fd986ff97047f975f7733", "score": "0.6589644", "text": "public function formEdit($id)\n {\n //data poli berdasarkan id poli\n $poli = Poli::find($id);\n\n return view('poli.edit', compact('poli'));\n }", "title": "" }, { "docid": "300b72dd1771af8bcd33044e19ed0e2d", "score": "0.6585872", "text": "public function edit($id)\n\t{\n\t\t// get the nerd\n\t\t$user = Cliente::find($id);\n\n\t\t// show the edit form and pass the nerd\n\t\treturn View::make('preinscrito.editar')\n\t\t\t->with('user', $user);\n\t}", "title": "" }, { "docid": "f39615b9da8997b13628876a6e82ad26", "score": "0.65829885", "text": "public function edit()\n {\n return view('bill::edit');\n }", "title": "" }, { "docid": "48a8ca09ce387a26578ef11260681196", "score": "0.65802926", "text": "public function editform($id){\n $cultivo = Cultivo::findOrFail($id);\n\n return view(\"editform\", compact(\"cultivo\"));\n }", "title": "" } ]
12d24e9cc8dd189c88f4d81d9b86cacd
Valore da impostare per ordine minimo
[ { "docid": "58ac7b6c646ae5a40f820077deddef2e", "score": "0.5519073", "text": "function wc_minimum_order_amount() {\n global $woocommerce;\n //get customer country\n $country = WC()->customer->get_country();\n //echo $country;\n if (\"IT\" != $country) {\n $minimum = 50;\n } \n else {\n $mininum = 20;\n }\n //check if in cart or checkout\n if ( WC()->cart->subtotal < $minimum ) {\n if( is_cart() ) {\n wc_print_notice( \n sprintf( 'Ordine minimo di %s, il tuo carrello contiene articoli per %s.' , \n wc_price( $minimum ), \n wc_price( WC()->cart->total )\n ), 'error' \n );\n\n } \n else {\n wc_add_notice( \n sprintf( 'Ordine minimo di %s, il tuo carrello contiene articoli per %s.' , \n wc_price( $minimum ), \n wc_price( WC()->cart->total )\n ), 'error' \n );\n\n }\n }\n\n}", "title": "" } ]
[ { "docid": "4459c10505d7480ff59c857bc637c6ef", "score": "0.6594259", "text": "public function getMinValue(){ return $this->m_minValue; }", "title": "" }, { "docid": "080aded436792182ad694f1a150e3d76", "score": "0.64433455", "text": "function getSiguiente(){\r\n return min($this->getPaginas(),$this->paginaActual+1);\r\n// return $this->paginaActual+1;\r\n }", "title": "" }, { "docid": "a829775107b66879465ac1292b6fd93d", "score": "0.64298993", "text": "function ventasMINE(){\n return ($this->game_min->getPrecio() * $this->cant_vent_min);\n }", "title": "" }, { "docid": "a829775107b66879465ac1292b6fd93d", "score": "0.64298993", "text": "function ventasMINE(){\n return ($this->game_min->getPrecio() * $this->cant_vent_min);\n }", "title": "" }, { "docid": "df0a9d2288dd0a2518c0e10c5fb17ec8", "score": "0.6382659", "text": "public function getMin();", "title": "" }, { "docid": "16b21cf50fbbfdba521de2de37a0e2c7", "score": "0.63634205", "text": "public function getMinimo() {\r\n\t\treturn $this->minimo; \r\n\t}", "title": "" }, { "docid": "d1c1ea467b409e9b2d94c9a6967e077e", "score": "0.6256442", "text": "public function getMin(): int\n {\n return $this->min;\n }", "title": "" }, { "docid": "75b3fb3cd705dfff796911ebbab1ffb6", "score": "0.6256336", "text": "function premierVoyage($sommets_param){\r\n\r\n\t$heureDepMin = 20000;\r\n\t$voyDepMin = 0;\r\n\tforeach ($sommets_param as $i => $s){\r\n\t\tif($s->get_parcouru() == false){\r\n\t\t\tif($s->get_voyage()->get_hdep() < $heureDepMin){\r\n\t\t\t\t$heureDepMin = $s->get_voyage()->get_hdep();\r\n\t\t\t\t$voyDepMin = $s;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn $voyDepMin;\r\n}", "title": "" }, { "docid": "d1e0c50d38758f79b643f951742bf5e8", "score": "0.6214594", "text": "private function getMin()\n {\n return (-1 * self::MaxCoeff * pow(self::Base, self::MaxExp));\n }", "title": "" }, { "docid": "a4b506232ca1a47f0460030eea6f46b1", "score": "0.6141882", "text": "function comisionMINE(){\n return ($this->game_min->getComision() * $this->cant_vent_min);\n }", "title": "" }, { "docid": "a4b506232ca1a47f0460030eea6f46b1", "score": "0.6141882", "text": "function comisionMINE(){\n return ($this->game_min->getComision() * $this->cant_vent_min);\n }", "title": "" }, { "docid": "6d977d579d80b9e45776942a8c88c810", "score": "0.61222243", "text": "public function getMinValue()\n {\n return $this->min_value;\n }", "title": "" }, { "docid": "a3dc06f2a8679250745cc8c5f6dcf55d", "score": "0.6105333", "text": "public function getMinimumQuantity();", "title": "" }, { "docid": "a3dc06f2a8679250745cc8c5f6dcf55d", "score": "0.6105333", "text": "public function getMinimumQuantity();", "title": "" }, { "docid": "2daa31c39724d8654efb3e552f93906f", "score": "0.6085846", "text": "public function get_min() {\n return $this->min;\n }", "title": "" }, { "docid": "e2da47debdbcbf290f2260734269b8b0", "score": "0.6082696", "text": "public function get_minValue()\n {\n return $this->_minVal;\n }", "title": "" }, { "docid": "e2da47debdbcbf290f2260734269b8b0", "score": "0.6082696", "text": "public function get_minValue()\n {\n return $this->_minVal;\n }", "title": "" }, { "docid": "2412b016f285708dd1ee59b4d1fa07ec", "score": "0.60639626", "text": "private function primeSalaire()\n {\n return $this->getSalaireAnnuel() * 1000 * 0.05; // on retourne le montant de la prime annuelle\n }", "title": "" }, { "docid": "1f22db571e4ee28571c2c1d011472b95", "score": "0.6048713", "text": "public function getMinQuantity()\n {\n return (int)$this->getOriginalInstance()->MinQuantity;\n }", "title": "" }, { "docid": "ea164e850030c6c936f1fbed87c900e9", "score": "0.6043804", "text": "function getMinX() {}", "title": "" }, { "docid": "c49331f58f0d581aa21f355c0cf4fd99", "score": "0.6028422", "text": "public function getCosteMinimo() {\r\n return $this->_scopeConfig->getValue('payment/mage2payin7/general/minimum_cost');\r\n }", "title": "" }, { "docid": "0f35588b51ab7709626a3d3bfb35f170", "score": "0.5999507", "text": "public function minValue() \n {\n return min($this->values);\n }", "title": "" }, { "docid": "43259834de7707e2ad8b54aa5155cf9d", "score": "0.5981569", "text": "function drugaPrimanja() {\n return round($this->topliObrok() + $this->karnet->getValue('iznosOtpremnina') +\n $this->karnet->getValue('iznosRegres') + $this->karnet->getValue('iznosTerenskiDodatak') +\n $this->karnet->getValue('iznosPoklonDeci') + $this->karnet->getValue('iznosOstalo'), 2);\n }", "title": "" }, { "docid": "32e99dd29d057d08e9c255ab216b2d16", "score": "0.5965729", "text": "public function getMinValue()\n\t\t{\n\t\t\treturn $this->minValue;\n\t\t}", "title": "" }, { "docid": "4ee04b3df60c79982b8802026b8dfe7d", "score": "0.5957044", "text": "public static function minValue();", "title": "" }, { "docid": "658c010761f7f39c6fa9901c406a7fda", "score": "0.5943113", "text": "public function getMin()\n {\n return $this->min;\n }", "title": "" }, { "docid": "45dbf148ef272a39cb31a88bbf2952ab", "score": "0.59068894", "text": "public function getMinimumAmount()\n {\n return $this->minimumAmount;\n }", "title": "" }, { "docid": "b7ad3fd6da47b8d18669d365afb56d0a", "score": "0.5895085", "text": "public function getMinUnit()\n {\n return $this->min_unit;\n }", "title": "" }, { "docid": "7c9aa8110039ea7f9132a163b930cc11", "score": "0.5884885", "text": "public function getMin() {\n return $this->min;\n }", "title": "" }, { "docid": "6d6c7ec95dde17f11f57491cdb18a933", "score": "0.5884832", "text": "function getCantVentMine(){\n return $this->cant_vent_min;\n }", "title": "" }, { "docid": "6d6c7ec95dde17f11f57491cdb18a933", "score": "0.5884832", "text": "function getCantVentMine(){\n return $this->cant_vent_min;\n }", "title": "" }, { "docid": "b98e5f45f8e20302a4864faf0128ee0a", "score": "0.5882406", "text": "public function GetMin () {\n\t\treturn $this->min;\n\t}", "title": "" }, { "docid": "40753f8e76402c9493accde302983b6c", "score": "0.5879738", "text": "public function getMin()\n {\n return $this->_min;\n }", "title": "" }, { "docid": "40753f8e76402c9493accde302983b6c", "score": "0.5879738", "text": "public function getMin()\n {\n return $this->_min;\n }", "title": "" }, { "docid": "40753f8e76402c9493accde302983b6c", "score": "0.5879738", "text": "public function getMin()\n {\n return $this->_min;\n }", "title": "" }, { "docid": "95043ed44d3253393ca30fb7554435dd", "score": "0.5879673", "text": "public function getSort(){\n //ici on affiche les dégats Maximun du joueur avec Arme\n $pouvoir = $this->getPouvoir();\n $coef = 1;\n $lvl = 1;\n $forcePouvoir = 0;\n if(!is_null($pouvoir)){\n $coef = $pouvoir->getEfficacite();\n $forcePourvoir = $pouvoir->getForce();\n $lvl = $pouvoir->getLvl();\n }\n $val = round(($this->_degat+$forcePouvoir)*$coef);\n return $val;\n }", "title": "" }, { "docid": "40f1d4d2db7e05e2438a93eb904e9239", "score": "0.5844614", "text": "public function min() : float\n {\n return min($this->components);\n }", "title": "" }, { "docid": "26af94f284681bdc3d5360064fcba958", "score": "0.58098453", "text": "function zaradaDoprinosPoslovnomUspehu() {\n if($this->karnet->getValue('tipNagrada') === 1) {\n return round($this->karnet->getValue('iznosNagrada'), 2);\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "07113465ecff37999d423c03168776e9", "score": "0.5805314", "text": "public function getMinRangeValue(){ return $this->m_minRangeValue; }", "title": "" }, { "docid": "94e77cf9f53e4ff0a7da9fa781be930d", "score": "0.57969826", "text": "public function getMin(){\n\t\treturn $this->getTag('min');\n\t}", "title": "" }, { "docid": "17ccaa0ae7898f59dd049ea164a9b668", "score": "0.579248", "text": "private function calcolaValutazione()\n {\n $media=0;\n ///////////////non va int $media /////////////////////////////////\n if(count($this->stagioni)>0){\n foreach ($this->getStagioni() as $value)\n {\n $media=$media+$value->getValutazione();\n\n }\n $this->valutazione=$media/count($this->stagioni);}\n }", "title": "" }, { "docid": "5e7caa2cf37b77428666671016107c9b", "score": "0.5775718", "text": "public function absMin() : float\n {\n $result = 0.0;\n\n foreach ($this->components as $component) {\n if ($result > $abs = abs($component)) {\n $result = $abs;\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "76db0fabd05a4dc931147d788e8be06b", "score": "0.5758447", "text": "public function promeniCenu(){\n\t\tif($this->godiste<2000){\n\t\t\treturn $smanjenacena=$this->cena*0.7;\n\t\t\t\n\t\t\t//nakon smanjenja dodeljujemo atributu cena sada //umanjenu cenu\n\t\t\t$this->cena=$smanjenacena;\n\t\t}\n\t\t\treturn $this->cena;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "28b13584d70005c50e1ed47205ad941b", "score": "0.57561076", "text": "function menorTemperatura($temperaturas) {\n\n\t$aNegativos = array();\n\t$aPositivos = array();\n\n\tforeach($temperaturas as $temp){//Separa os positivos e negativos\n\t\tif($temp <= -1){\n\t\t\tarray_push($aNegativos,$temp);\n\t\t} else { \t\n\t\t\tarray_push($aPositivos,$temp);\n\t\t}\n\t}\n\n\tif(count($aNegativos) == 0) return (min($aPositivos));//Se o array aNegativos for vazio, busca logo minimo do aPositivos\n\tif(count($aPositivos) == 0) return (max($aNegativos));//Se o array aPositivos for vazio, busca logo máximo do aNegativos\n\n\t$vMinimoP = min($aPositivos);//Seleciona o mínimo valor do array aPositivos\n\t$vMinimoN = max($aNegativos);//Seleciona o máximo valor do array aNegativos\n\n\tif($vMinimoP + $vMinimoN == 0) return $vMinimoP;//Verifica se o valor absoluto é negativo ou positivo. \n\n\t$rComp = min(array($vMinimoP,-($vMinimoN))); //Verifica o valor mais próximo de Zero.\n\tif(in_array(-($rComp),$aNegativos)) return (-1 * $rComp);\n\n\treturn $rComp;\n}", "title": "" }, { "docid": "f86c764af6648acae9412994e8c7b1dd", "score": "0.5741889", "text": "public function minimumQuantity()\n {\n return $this->minimumQuantity;\n }", "title": "" }, { "docid": "99cbf50283f307f7ad85bc0aa94748d9", "score": "0.5739781", "text": "public function getMin()\n {\n return $this->options['min'];\n }", "title": "" }, { "docid": "74b3ebe9d9443649432b918370775bf9", "score": "0.5733435", "text": "public function umfang()\n {\n return $this->durchmesser() * self::pi;\n }", "title": "" }, { "docid": "e4912af8950e813ad3912cd8b1a42c16", "score": "0.56870764", "text": "public function getMinValues(): int\n {\n return $this->min_values;\n }", "title": "" }, { "docid": "37c49ebf1f387799f6f51cff2b6b527b", "score": "0.56676596", "text": "public function getMinPrice()\n {\n return $this->minPrice;\n }", "title": "" }, { "docid": "bf218416c7a2cd7ca2d5604e15763208", "score": "0.56657684", "text": "function najskupljiAuto($automobili){\n\n //pretpostavkada je prvi najskuplji u nizu\n\t$max = $automobili[0];\n\n\tforeach($automobili as $pom){\n\n\t\t if($pom->getCena() > $max->getCena()){\n\n $max = $pom;\n\t\t }\n\t}\n\treturn $max;\n}", "title": "" }, { "docid": "243f37e7799103f8992b9af92a5d4f0b", "score": "0.5638129", "text": "public function ultimoItem(){\n $pos=0;\n foreach ($this->items as $k => $v) {\n $pos=$k;\n }\n return $pos;\n }", "title": "" }, { "docid": "a279731cf8fa0aa54a5b6c8f962804c0", "score": "0.56353116", "text": "function doprinosNezaposlenostPoslodavac() {\n return round($this->osnovicaDoprinosa() * $this->payment->getValue('stopaNezaposlenostPoslodavac') / 100, 2);\n }", "title": "" }, { "docid": "392272feb960299c6af5c01795e0f8d2", "score": "0.56169176", "text": "function hitungUmur($thn_lahir, $thn_sekarang) {\n $umur = $thn_sekarang - $thn_lahir;\n return $umur;\n}", "title": "" }, { "docid": "5b542cabbd94e4ada05263178f7cb50f", "score": "0.56161916", "text": "function sueldoMensualXHora($monto) {\n $valor = ($monto / DIA_BASE) / HORA_BASE;\n return $valor;\n}", "title": "" }, { "docid": "6235fbe09204e28e6ebb1cd368a48a5d", "score": "0.5615429", "text": "public function set_min ($min) {\n $this->min = $min;\n }", "title": "" }, { "docid": "1b8fb15d603392c262a5d5eadad91675", "score": "0.5596486", "text": "function marcarPremium() {\n $this->chequearLogueo();\n\n if ($_SESSION['IS_ADMIN'] == true && $_POST['valoracion'] >=0) {\n \n $valoraciones = $this->model->getValoracionesPromedio();\n \n foreach ($valoraciones as $valoracion) {\n if ($valoracion->promedio > $_POST['valoracion']) {\n $this->model->setEmpresaPremium($valoracion->id_empresa);\n }\n }\n }\n \n\n }", "title": "" }, { "docid": "0cadf0c036c298578b3778b29b8a568e", "score": "0.5595002", "text": "function adherir_zero($hora_minuto) {\n if (strlen($hora_minuto) < 2)\n return '0' . $hora_minuto;\n return $hora_minuto;\n }", "title": "" }, { "docid": "1d810191921eae9d95cd99cc1a2f1f73", "score": "0.55930746", "text": "public function getMinValue()\n {\n return $this->isValidNumber() ? $this->getValue('min') : '';\n }", "title": "" }, { "docid": "824f941a7b4edcc7e456307a4a59512e", "score": "0.55874676", "text": "function getComision(){ return ($this->comision * $this->precio)/100;}", "title": "" }, { "docid": "559441b07c95301778dd3a1d7368ce1a", "score": "0.55866843", "text": "public function getMinimalQuantity()\n\t{\n\t\treturn $this->minimal_quantity;\n\t}", "title": "" }, { "docid": "6f2f300b24fe6a5e25118a60b5908195", "score": "0.55843407", "text": "public function getInitialAttribute()\n {\n return (float) $this->attributes['initialQuantity'];\n }", "title": "" }, { "docid": "6f155fa6e3879ef6f5194f708684b451", "score": "0.5582476", "text": "public function getMinYValue() {\r\n $result = parent::getMinYValue();\r\n if (($this->iMultiBar == MultiBars::$NONE) || ($this->iMultiBar == MultiBars::$SIDE)) {\r\n for ($t = 0; $t < $this->getCount(); $t++) {\r\n if ($this->offsetValues->value[$t] < 0) {\r\n $result = min($result, $this->vyValues->value[$t] + $this->offsetValues->value[$t]);\r\n }\r\n }\r\n }\r\n return $result;\r\n }", "title": "" }, { "docid": "4bfc01d0866c16e6c36fec515f4e4570", "score": "0.5580472", "text": "function determineMinTemp($range){\n if($range == 1){\n return $minTemp = 0; }\n elseif ($range == 2) {\n return $minTemp = 10;\n }\n elseif ($range == 3) {\n return $minTemp = 20;\n }\n elseif ($range == 4) {\n return $minTemp = 30;\n }\n}", "title": "" }, { "docid": "6e79dcee897c71bc6642a4f84f8002b7", "score": "0.5580397", "text": "public function getDurchschnitt(){\n\t\treturn $this->all_requested_minis/$this->getNumberMinis();\n\t}", "title": "" }, { "docid": "ecfac90da9623b408a421ce46f0a92c2", "score": "0.55759907", "text": "public function getMinimum() {\n\t\tif ($this->limitsDirty) $this->sort();\n\t\treturn $this->oMinimum;\n\t}", "title": "" }, { "docid": "3058b1297bdc5382fd88bb0507f1454e", "score": "0.55749154", "text": "function impuesto($precio)\r\n{\r\n $x = $precio*.16;\r\n $y = round($x * 100) / 100;\r\n $z = $precio+$y;\r\n return $z;\r\n}", "title": "" }, { "docid": "1243525781340a9c37d206b0877b1354", "score": "0.5573797", "text": "public function getMinNumericValue(){\n $precisionValue = $this->getAbsValueByLengthPrecision($this->column);\n switch ($this->column->getType()->getName()){\n case Type::BIGINT:\n return $this->column->getUnsigned() ? 0 : bcpow(2, 63);\n break;\n case Type::INTEGER:\n return $this->column->getUnsigned() ? 0 : max(-$precisionValue, -bcpow(2, 31));\n break;\n case Type::SMALLINT:\n return $this->column->getUnsigned() ? 0 : -bcpow(2, 15);\n break;\n case Type::DECIMAL:\n return $this->column->getUnsigned() ? 0 : -$precisionValue;\n break;\n case Type::FLOAT:\n return $this->column->getUnsigned() ? 0 : -1.79 * bcpow(10, 308);\n break;\n }\n }", "title": "" }, { "docid": "9f965db044a451c96bba809b35e04276", "score": "0.5558208", "text": "function plusPetit(array $tab){\n if(!empty($tab)){\n echo(min($tab).\" est le plus petit <br>\");\n }else{\n echo(\"Null <br>\");\n }\n }", "title": "" }, { "docid": "a81ebb204a2affe5ebf5cfbbcaacade3", "score": "0.5555106", "text": "function pangkat(){\n\t\t\t$jumlah = pow($this->bilangan1,$this->bilangan2);\n\t\t\treturn $jumlah;\n\t\t}", "title": "" }, { "docid": "253ce4f62b50901dd4d8e54bb137c298", "score": "0.5552858", "text": "public function getParer(){\n //ici on affiche les dégats Maximun Absorbé avec une armure\n $bouclier = $this->getBouclier();\n $coef = 1;\n $forceBouclier = 0;\n if(!is_null($bouclier)){\n $coef = $bouclier->getEfficacite();\n $forceBouclier = $bouclier->getForce();\n }\n //alors Todo Je sais pas ... evaluer la valeur d'une armure\n $val = $coef * $forceBouclier ;\n return round($val,1);//arrondi à 1 chiffre aprés la virgul\n }", "title": "" }, { "docid": "cfb413316000aa9d8994097c871b9cec", "score": "0.5536564", "text": "public function maj(){\n\t\t$produit=Produit::produit_par_id($this->produit);\n\t\t$this->stock_boutique = $produit->stock_boutique;\n\t\t$this->stock_web=$produit->stock_web;\n\t\t$this->valeur_web=$produit->stock_web*$produit->prix;\n\t\t$this->valeur_boutique=$produit->stock_boutique*$produit->prix;\n\t}", "title": "" }, { "docid": "c8e40e71ab03bd165ccf0e02309b0175", "score": "0.5523509", "text": "function minMaxPromos() {\n // Récupératon de la connexion à la BD\n $bdd = ConnexionBD::getInstance()->getBDD();\n\n $req = $bdd->query(\"SELECT MIN(promo) AS min, MAX(promo) AS max\n FROM Profil\");\n\n $resultat = $req->fetch(PDO::FETCH_ASSOC);\n\n return $resultat;\n }", "title": "" }, { "docid": "fb496f8d75769d6b16fa39dd66734572", "score": "0.5505091", "text": "public function getMinGaranti(): ?float {\n return $this->minGaranti;\n }", "title": "" }, { "docid": "ab6b061ab6bae8c212c234c9f98fda85", "score": "0.55011463", "text": "public function getMaxRequestedMinis(){\n\t\treturn $this->max_requested_minis;\n\t}", "title": "" }, { "docid": "60abe58d2cd4894dd458895fb6ef6e7e", "score": "0.5498132", "text": "function doprinosZdravstvoPoslodavac() {\n return round($this->osnovicaDoprinosa() * $this->payment->getValue('stopaZdravstvoPoslodavac') / 100, 2);\n }", "title": "" }, { "docid": "108ad9bb3603f0f4881b0dd2494b3faa", "score": "0.5498001", "text": "function toInteger(){\n\t\t$m = ($this->min*100)/60;\n\t\treturn intval($this->hour . (($m<10)?\"0\":'') . $m);\n\t}", "title": "" }, { "docid": "ce7418c410619c1d94c58cb7d1222d9a", "score": "0.5491872", "text": "function getPrecio(){ return $this->precio;}", "title": "" }, { "docid": "ce7418c410619c1d94c58cb7d1222d9a", "score": "0.5491872", "text": "function getPrecio(){ return $this->precio;}", "title": "" }, { "docid": "92a832016f3526097867eb5de87099f7", "score": "0.54831964", "text": "public function getValeur(){\n $valeur = 0;\n foreach ($this->getEquipements() as $value) {\n $valeur+=$value->getValeur();\n }\n\n $valeur = 100;\n\n return $valeur;\n }", "title": "" }, { "docid": "2b2454aa2eb00beefac52b8dbcd5d87a", "score": "0.54818594", "text": "public function getDefaultMinusMoney()\n {\n return 0;\n }", "title": "" }, { "docid": "1ea673accc1b044f1b6d59ad57242866", "score": "0.5480554", "text": "function get_minimum_payout_amount();", "title": "" }, { "docid": "df46418426e8aa43fee566a76b7f5e9e", "score": "0.54741013", "text": "public function getRangeMin()\n {\n return $this->iRangeMin;\n }", "title": "" }, { "docid": "5757da82f2b76c6424d3e4741fb27d72", "score": "0.5468582", "text": "function minimo(&$array,$iniz,$fine){\n $indMin = $iniz;\n for ($i=$iniz+1; $i <= $fine ; $i++) {\n if (minore($array,$indMin,$i)) {\n $indMin=$i;\n }\n }\n return $indMin;\n }", "title": "" }, { "docid": "4bfa199fcf72f50ea8a9abd41b6d7277", "score": "0.5467984", "text": "public function set_lowestValue($newval)\n {\n $rest_val = strval(round($newval * 65536.0));\n return $this->_setAttr(\"lowestValue\",$rest_val);\n }", "title": "" }, { "docid": "4ba64edf3da8a715012ee44f0710f56b", "score": "0.5464608", "text": "function prosecnaCenaSvih($automobili){\n //pretpostvke u pocetku\n $prosek;\n $sumacena=0;\n $brojauta=0;\n\n foreach($automobili as $pom){\n\n $sumacena=$sumacena+$pom->getCena();\n $brojauta++;\n \n }\n $prosek = $sumacena/$brojauta;\n // echo\"broj automobila\".$brojauta;\n // echo\"ukupna suma cena\".$sumacena;\n // echo \"prosek\".$prosek;\n return $prosek;\n\n\n}", "title": "" }, { "docid": "39e52969cc4d27ba6b2b14de6a7be151", "score": "0.54625666", "text": "public function getMin()\n {\n return $this->getTag('min');\n }", "title": "" }, { "docid": "79d5471c6db2730544d18c6ccdc8c86f", "score": "0.54581296", "text": "public function getAttaque(){\n //ici on affiche les dégats Maximun du joueur avec Arme\n $arme = $this->getArme();\n $coef = 1;\n $lvl = 1;\n $forceArme = 0;\n if(!is_null($arme)){\n $coef = $arme->getEfficacite();\n $forceArme = $arme->getForce();\n $lvl = $arme->getLvl();\n }\n $val = round(($this->_degat+$forceArme)*$coef);\n return $val;\n }", "title": "" }, { "docid": "32f32cf0889a8a42249d51dbe98d9d47", "score": "0.54544663", "text": "public function setMin($min)\n {\n $this->_min = $min;\n }", "title": "" }, { "docid": "4d446b6646826bd11d1753fe4f52f132", "score": "0.54508215", "text": "function osnovicaDoprinosa() {\n $osnovica = $this->izracunajMinOsnDop();\n $ukBruto = $this->brutoUkupno();\n if($ukBruto > $osnovica) {\n if($ukBruto > $this->payment->maxOsnovicaDoprinosa()) {\n $osnovica = $this->payment->maxOsnovicaDoprinosa();\n } else {\n $osnovica = $ukBruto;\n }\n }\n return round($osnovica, 2);\n }", "title": "" }, { "docid": "e76088d0b40662461de2a4635dc8c0a9", "score": "0.54479706", "text": "public function gemiddeldePrijsPerLiter(){\n $aantalMaanden = 6;\n $i = 0;\n $prijs = 0;\n $volume = 0;\n while ($i < $aantalMaanden) {\n $date = date(\"Ymd\", strtotime(\"-$i months\"));\n\n $prijs = $this->getSumMaandInkoop($date) + $prijs;\n $volume = $this->getVolumeMaandInkoop($date) + $volume;\n $i++;\n }\n\n if(!$prijs > 0 || !$volume > 0) {\n return 0;\n }\n return (float) $prijs/$volume;\n }", "title": "" }, { "docid": "cbcf4819b9fec13c427c6522f1807c5b", "score": "0.54372627", "text": "public function getMinValue()\n {\n $items = $this->filter->getItems();\n return $items['min'];\n }", "title": "" }, { "docid": "974e26df56944ba3d82b8d87352aae94", "score": "0.5436781", "text": "function valore_totale_lordo_mio_ordine($id_ordine,$id_user){\n return (float)valore_costi_totali($id_ordine,$id_user)+\n valore_arrivato_netto_ordine_user($id_ordine,$id_user);\n}", "title": "" }, { "docid": "5bbd63077ae8d03ffc07631d37faaa21", "score": "0.5435414", "text": "public function impuestos(){\r\n\t\t\t$total = $this->porte_con_iva()-$this->porte_sin_iva();\r\n\t\t\treturn $total;\r\n\t\t}", "title": "" }, { "docid": "ce7014fe7b465e14a4fee14d12082b00", "score": "0.5435092", "text": "public function tiempoRestante(){\n\n $fechaFinTarea = Carbon::parse($this->fecha_fin, 'Europe/Madrid');\n $ahora = Carbon::parse('now', 'Europe/Madrid');\n\n if ($fechaFinTarea < $ahora){\n return 0;\n }\n\n $minutos = $fechaFinTarea->diffInMinutes($ahora);\n \n return $minutos;\n }", "title": "" }, { "docid": "f75b982acf37bfff0ee987ecc50fad88", "score": "0.5417296", "text": "function db_get_min_runtime_small()\n\t{\n\t\tglobal $lb_sql;\n\t\tdb_connect();\n\t\t$sql = \"SELECT min(runtime_small) as MIN_T FROM ( \" .\n $lb_sql .\n\t\t \") TT;\";\t\t\n\t\t$sql_res = mysql_query($sql);\n\t\tif(!$sql_res) {\n\t\t\tdie(\"Can't execute db query! (db_get_min_runtime_small)\");\n\t\t}\n\t\t$num_rows = mysql_numrows($sql_res);\n\t\tif($num_rows == 1) {\n\t\t\t$row = mysql_fetch_assoc($sql_res);\n\t\t\t$t = floatval($row['MIN_T']);\n\t\t} else {\n\t\t\t$t = 100;\n\t\t}\n\t\treturn $t;\n\t}", "title": "" }, { "docid": "27f00f5054eba5d8a1c208e61c83ecbc", "score": "0.5416746", "text": "function sat_vapor_min($temp_min){\n\t\t// =0.6108*EXP(17.27*D12/(237.3+D12))\n\t\tif(!empty($temp_min)||$temp_min!=null){\n\n\t\t\t$result=0.6108*EXP(17.27*$temp_min/(237.3+$temp_min));\n\t\t}else{\n\t\t\t$result=FALSE;\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "348628ec9cdb5c338ed3ba8bbf6768cd", "score": "0.54161733", "text": "function db_get_min_runtime_new()\n\t{\n\t\tglobal $lb_sql;\n\t\tdb_connect();\n\t\t$sql = \"SELECT min(runtime_new) as MIN_T FROM ( \" .\n $lb_sql .\n\t\t \") TT;\";\t\t\t\t\t\n\t\t$sql_res = mysql_query($sql);\n\t\tif(!$sql_res) {\n\t\t\tdie(\"Can't execute db query! (db_get_min_runtime_big)\");\n\t\t}\n\t\t$num_rows = mysql_numrows($sql_res);\n\t\tif($num_rows == 1) {\n\t\t\t$row = mysql_fetch_assoc($sql_res);\n\t\t\t$t = floatval($row['MIN_T']);\n\t\t} else {\n\t\t\t$t = 100;\n\t\t}\n\t\treturn $t;\n\t}", "title": "" }, { "docid": "87f3ae1bb39f5a78b7c3575828a2062c", "score": "0.54125845", "text": "public function integerValue() {\n $sign = (\n gmp_cmp(\n gmp_init($this->cents, 10), 0\n ) < 0\n )? '-' : '';\n\n return $sign . gmp_strval(\n gmp_div_q(\n gmp_abs(\n gmp_init($this->cents, 10)\n ),\n 100\n ),\n 10\n );\n }", "title": "" }, { "docid": "a4b5fe7dcdb5b2332d0d6083614029cc", "score": "0.5404768", "text": "public function ult_pasaje_abonado();", "title": "" }, { "docid": "a4bb0be358ef59f194440a27ea636586", "score": "0.53981626", "text": "public function getMinDamage()\r\n {\r\n if ($this->buff) {\r\n /* $result = \t$this->weapondamage_min +\r\n $this->buff->weapondamage_min_mod +\r\n $this->buff->weapondamage_mod; */\r\n } else {\r\n $result = $this->damage_min;\r\n }\r\n\r\n return $result;\r\n }", "title": "" } ]
49e4c5ad125b9f7aecfb150c20dc1e88
Delete multiple activities by arbitrary WHERE clause.
[ { "docid": "6dd8af3005bbca293a9ae6048b57cce8", "score": "0.57423764", "text": "public function delete_by($field = null, $match = null)\n\t{\n\t\tif ( ! empty($field))\n\t\t{\n\t\t\t// Turn things into an array.\n\t\t\t(is_array($field)) OR $field = array($field => $match);\n\n\t\t\tforeach ($field as $key => $val)\n\t\t\t{\n\t\t\t\tif (is_int($key) && is_array($val))\n\t\t\t\t{\n\t\t\t\t\t$this->ci->db->where($val);\n\t\t\t\t}\n\t\t\t\telseif (is_array($val))\n\t\t\t\t{\n\t\t\t\t\t$this->ci->db->where_in($key, $val);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->ci->db->where($key, $val);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Proceed to deletion.\n\t\t$this->ci->db->delete('activities');\n\t\treturn ($this->ci->db->affected_rows() > 0);\n\t}", "title": "" } ]
[ { "docid": "55f3f19d161654920e967b51949ac8a8", "score": "0.7126715", "text": "public function delete(array $where = []);", "title": "" }, { "docid": "3e651928eba87cf304c3e6d0f40c279e", "score": "0.69126767", "text": "public static function delete_many($where, $params=array())\n {\n if (is_array($where)) {\n list($where, $params) = BDb::where($where);\n }\n $sql = \"DELETE FROM \".static::table().\" WHERE {$where}\";\n BDebug::debug('SQL: '.$sql);\n return static::run_sql($sql, $params);\n }", "title": "" }, { "docid": "77984eedd3bbe83249b121c499caaf93", "score": "0.65796936", "text": "public function deleteMultiple(\\Magento\\Framework\\Api\\SearchCriteriaInterface $searchCriteria);", "title": "" }, { "docid": "9c3a25c85a3e9b5eb241cfbae1954b4f", "score": "0.652619", "text": "public function delete($where = null, array $markers = []);", "title": "" }, { "docid": "9c3a25c85a3e9b5eb241cfbae1954b4f", "score": "0.652619", "text": "public function delete($where = null, array $markers = []);", "title": "" }, { "docid": "eb8e4df8935486846c6568c7809c5f8f", "score": "0.65150934", "text": "public final function delete(){\n $this->clearData();\n $this->where = $this->prepareCondition(func_get_args(),'AND');\n $this->lastQuery = \"DELETE FROM {$this->table} WHERE {$this->where}\";\n return $this->app['DB']->query($this->lastQuery);\n }", "title": "" }, { "docid": "e2a2f2a5f21c37611a9aba935d5db0e0", "score": "0.6226594", "text": "public function deleting_multiple($query)\n {\n }", "title": "" }, { "docid": "70a7f68d4cbb00b5c67dec4fd563706f", "score": "0.6166808", "text": "function deleteInBatch(array $ids);", "title": "" }, { "docid": "40c4f9ffb8e369519270437ff9d456d8", "score": "0.61506665", "text": "function delete_activities($field = null, $match = null)\n\t{\n\t\treturn get_instance()->kbcore->activities->delete_by($field, $match);\n\t}", "title": "" }, { "docid": "3c18650330d0354f0e3d8875d91fe6e8", "score": "0.61418843", "text": "public function delete(){\n $sql = \"DELETE FROM \".$this->table.\" \".$this->where_to_string(false);\n $stmt = parent::prepare($sql);\n foreach($this->where as $name => $val){\n $stmt->bindParam(':'.$name, $this->where[$name]);\n }\n $stmt->execute();\n}", "title": "" }, { "docid": "b2fd97d2b75f556a5b600daa840b9ca4", "score": "0.6135771", "text": "public static function delete_multiple($params) {\n $query = db_delete('messaging_store');\n foreach ($params as $field => $value) {\n $query->condition($field, $value);\n }\n return $query->execute();\n }", "title": "" }, { "docid": "7d9f726e283fafda104e1fadf1134528", "score": "0.6083707", "text": "public function delete_selected()\n\t{\n\t\tif (!has_permissions('users', 'delete'))\n\t\t{\n\t\t\techo \"error\";\n\t\t}\n\n\t\t$where = $this->input->post('ids');\n\t\t$ids = implode(\",\", $where);\n\n\t\t$delete_many = $this->projects->delete_many($where);\n\n\t\tif ($delete_many)\n\t\t{\n\t\t\tlog_activity(_l('deleted', _l('projects')).\"[IDS:$ids] \");\n\t\t}\n\t}", "title": "" }, { "docid": "09b2da13692936c201c3fc6b3f7b8d87", "score": "0.606692", "text": "public function deleteActivity($id, $type = \"soft\", $isMultiple = null) {\n\t\tif($isMultiple) {\n\t\t\t$criteria = new CDbCriteria;\n\t\t\t$criteria->addInCondition('id',$id);\n\t\t\tif($type == \"soft\") {\n\t\t\t\tself::model()->updateAll(array(\"is_deleted\" => 1), $criteria);\n\t\t\t} else {\n\t\t\t\tself::model()->deleteAll($criteria);\n\t\t\t}\n\t\t} else {\n\t\t\tif($type == \"soft\") {\n\t\t\t\tself::model()->updateByPk($id, array(\"is_deleted\"=>1));\n\t\t\t} else {\n\t\t\t\tself::model()->deleteByPk($id);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ae7fa7d40ad7da5e74b9a415504d1f01", "score": "0.60321176", "text": "abstract protected function _delete($ids);", "title": "" }, { "docid": "3807fc61771f142d75c114615033a1c7", "score": "0.5997041", "text": "public function delete($criteria);", "title": "" }, { "docid": "f159d4d2ac0acff1e5cde100e42a477e", "score": "0.597796", "text": "public static function deleteBatch(array $filter)\n\t{\n\t\tparent::deleteBatch($filter);\n\t}", "title": "" }, { "docid": "e5600c6dadc2a855ba232e1f65ec8b04", "score": "0.59719455", "text": "public function delete(string $table, array $where = [], array $between = []);", "title": "" }, { "docid": "774df3e22e6e29e863e0fd7b0dc69cb2", "score": "0.59717554", "text": "abstract public function delete_all();", "title": "" }, { "docid": "9fd3be67a0d00e4924fbb68f573b39f2", "score": "0.5952069", "text": "public abstract function deleteAll();", "title": "" }, { "docid": "d56d6f7d74fed4c91445bbb88e235ea4", "score": "0.5918112", "text": "abstract public function deleteByAttributes(array $conditions);", "title": "" }, { "docid": "315cb4d7488bcc6bcbdb4a0b0a8eb167", "score": "0.58985555", "text": "private static function _deleteEntriesWhere($where) {\n $sql = rex_sql::factory();\n $sql->setDebug(self::$debug);\n $query = 'DELETE FROM ' . $sql->escapeIdentifier(self::$tableName) . ' WHERE ( ' . $where . ')';\n $sql->setQuery($query);\n }", "title": "" }, { "docid": "f54dcd337c284e54dce5715fbb603b18", "score": "0.58909994", "text": "public static function deleteAll($condition = NULL, $params = []) {\n try {\n // update flag deleted semua data\n return parent::updateAll([\n 'isdeleted' => 1,\n 'deletedtime' => date(\"Y-m-d H:i:s\"),\n 'deleteduser' => \\Yii::$app->user->getId()\n ], $condition, $params);\n } catch (\\Exception $e) {\n Yii::error($e->getMessage());\n throw $e;\n }\n }", "title": "" }, { "docid": "e63f02dd33e93775c7ad890513461dd9", "score": "0.58672386", "text": "public function deleteBy($criteria, $params = false)\n {\n $query = $this->model->query();\n \n /*== FILTER ==*/\n if (isset($params->filter)) {\n $filter = $params->filter;\n \n if (isset($filter->field))//Where field\n $field = $filter->field;\n }\n \n /*== REQUEST ==*/\n $model = $query->where($field ?? 'id', $criteria)->first();\n $model ? $model->delete() : false;\n }", "title": "" }, { "docid": "f1560dd66e00dffef011a6b846e769c2", "score": "0.5862771", "text": "public function multipleDelete(Request $request)\n {\n \n $model = $this->m;\n $pk = $this->pk;\n\n $ids = $request->get('ts_id');\n\n $model::whereIn($pk, $ids)->delete();\n\n return ['status' => 0];\n }", "title": "" }, { "docid": "9b8265cce2fae5e4123e3738fc52ce45", "score": "0.5860474", "text": "public static function deleteAll($condition = null)\n {\n }", "title": "" }, { "docid": "97781143fa6cb2a3b5086dbdf144360d", "score": "0.5853763", "text": "public function delete($where='') {\n\n\t\t$where = str_replace(\",\", \" AND \", $where);\n\t\t$sql = \"DELETE FROM \".$this->table.\" WHERE \".$where.\";\";\n\t\t$result = $this->connect()->query($sql);\n\t\t$this->count = 0;\n\t\t$this->connect()->close();\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "10109a091d21b35eff8c56d4b49ecc63", "score": "0.58487415", "text": "public function delete_where($where) {\n\t\t$res = array();\n\t\t$this->db->where($where);\n\t\t$this->db->delete($this->table);\n\t}", "title": "" }, { "docid": "900b1e2b2828bc7884004a7d1c9aad33", "score": "0.5823387", "text": "public function deleteMultiple($ids = array())\n {\n return $this->apartment->whereIn('id', $ids)->delete();\n }", "title": "" }, { "docid": "636c4a4038b5de6c63d4d7b31cd3401f", "score": "0.5813178", "text": "public function deleteBy(array $criteria = [], $operator = null);", "title": "" }, { "docid": "df93971f772438cfe12c44a248f46999", "score": "0.57855976", "text": "public function delete(array $where)\n {\n list($column, $operator, $value) = $where;\n $sql = \"DELETE FROM {$this->table} WHERE {$column} {$operator} :{$column};\";\n $params = [\":{$column}\" => $value];\n return $this->run($sql, $params);\n }", "title": "" }, { "docid": "b40f86b3216436931551f9f3d65941c1", "score": "0.5785325", "text": "function del_criterium()\n{\n global $g_comp_database;\n\n // Delete selected entries\n if (isset($_POST[\"mysearchSelection\"]))\n {\n foreach ($_POST[\"mysearchSelection\"] as $l_selID => $l_selStatus)\n {\n $g_comp_database->query('DELETE FROM isys_search\tWHERE isys_search__id = ' . (int) $l_selID . ';');\n }\n }\n}", "title": "" }, { "docid": "31942b2aa1ea7b56d7065dfe143874b9", "score": "0.5785219", "text": "public function multipleDelete(Request $request)\n {\n\n $model = $this->m;\n $pk = $this->pk;\n\n $ids = $request->get('ts_id');\n\n $model::whereIn($pk, $ids)->delete();\n\n return ['status' => 0];\n }", "title": "" }, { "docid": "d852bac1cb6c18a5be856559d39defe2", "score": "0.57836974", "text": "public function delete($array=[])\r\n {\r\n $sql_parts=[];\r\n $arguments=[];\r\n $i = 0;\r\n foreach($array as $k=>$v)\r\n {\r\n $sql_parts[$i]= $k.'=?';\r\n $arguments[$i]=$v;\r\n $i++;\r\n }\r\n $a = implode(\" and \",$sql_parts);\r\n $statement = 'DELETE from '.$this->table.' WHERE ' .$a;\r\n\r\n App::getDb()->prepare($statement,$arguments);\r\n }", "title": "" }, { "docid": "0b4b9a799578b302f0b43893d26d81e4", "score": "0.57663655", "text": "function softDeletesMulti($params)\n {\n foreach ($params as $value) {\n $this->softDelete($value);\n }\n }", "title": "" }, { "docid": "2843e49fb0b01ad10359d5b2493555e3", "score": "0.57611704", "text": "public function deleteAll(array $where = NULL)\n {\n $this->_where($where);\n return $this->db->delete($this->getTableName());\n }", "title": "" }, { "docid": "60f29abf648caf2c034d2b79261efc5b", "score": "0.57574326", "text": "public function delete() {\n $where=\"\";\n $params=array();\n\n if(!empty($this->wheres)){\n for($i=0;$i<count($this->wheres);$i++){\n $where=$this->wheres[$i][\"field\"].\n $this->wheres[$i][\"operator\"].\":\".\n $this->wheres[$i][\"field\"];\n $params[\":\".$this->wheres[$i][\"field\"]]= $this->wheres[$i][\"value\"];\n if($i!=count($this->wheres)-1){\n $where.=\" AND \";\n }\n }\n }\n\n $ps=\"DELETE FROM $this->table WHERE $where\";\n\n\n $connection = PdoConnection::getInstance();\n return $connection->delete($ps,$params);\n }", "title": "" }, { "docid": "d9f37e9eab8fa918ea3ac31c862060f6", "score": "0.5744324", "text": "public function on_activity_delete( $activities ) {\n\t\t$bp = $GLOBALS['bp'];\n\n\t\t// Pluck the activity IDs out of the $activities array.\n\t\t$activity_ids = wp_parse_id_list( wp_list_pluck( $activities, 'id' ) );\n\n\t\t// See if any of the deleted activity IDs were being followed.\n\t\t$sql = 'SELECT leader_id, follower_id FROM ' . esc_sql( $bp->follow->table_name ) . ' ';\n\t\t$sql .= 'WHERE leader_id IN (' . implode( ',', wp_parse_id_list( $activity_ids ) ) . ') ';\n\t\t$sql .= \"AND follow_type = 'activity'\";\n\n\t\t$followed_ids = $GLOBALS['wpdb']->get_results( $sql );\n\n\t\tforeach ( $followed_ids as $activity ) {\n\t\t\t// clear followers count for activity item.\n\t\t\twp_cache_delete( $activity->leader_id, 'bp_follow_activity_followers_count' );\n\n\t\t\t// clear queried followers for activity item.\n\t\t\twp_cache_delete( $activity->leader_id, 'bp_follow_activity_followers_query' );\n\n\t\t\t// delete user's activity follow count.\n\t\t\twp_cache_delete( $activity->follower_id, 'bp_follow_user_activity_following_count' );\n\n\t\t\t// delete queried activity that user was following.\n\t\t\twp_cache_delete( $activity->follower_id, 'bp_follow_user_activity_following_query' );\n\n\t\t\t// Delete the follow entry\n\t\t\t// @todo Need a mass bulk-delete method.\n\t\t\tbp_follow_stop_following( array(\n\t\t\t\t'leader_id' => $activity->leader_id,\n\t\t\t\t'follower_id' => $activity->follower_id,\n\t\t\t\t'follow_type' => 'activity',\n\t\t\t) );\n\t\t}\n\t}", "title": "" }, { "docid": "8905cfc06fd8f793b04d0ede5ce37f44", "score": "0.5721217", "text": "public function deleteAll();", "title": "" }, { "docid": "8905cfc06fd8f793b04d0ede5ce37f44", "score": "0.5721217", "text": "public function deleteAll();", "title": "" }, { "docid": "8905cfc06fd8f793b04d0ede5ce37f44", "score": "0.5721217", "text": "public function deleteAll();", "title": "" }, { "docid": "8905cfc06fd8f793b04d0ede5ce37f44", "score": "0.5721217", "text": "public function deleteAll();", "title": "" }, { "docid": "8905cfc06fd8f793b04d0ede5ce37f44", "score": "0.5721217", "text": "public function deleteAll();", "title": "" }, { "docid": "8905cfc06fd8f793b04d0ede5ce37f44", "score": "0.5721217", "text": "public function deleteAll();", "title": "" }, { "docid": "8905cfc06fd8f793b04d0ede5ce37f44", "score": "0.5721217", "text": "public function deleteAll();", "title": "" }, { "docid": "8905cfc06fd8f793b04d0ede5ce37f44", "score": "0.5721217", "text": "public function deleteAll();", "title": "" }, { "docid": "9a56c674b9805631a88f05c426d88947", "score": "0.57194793", "text": "function _activity_log_delete_related($id, $type, $extra_where = array(), $extra_args = array()) {\n $query = \"SELECT aid FROM {activity_log_events} WHERE (target_id = %d AND target_type = '%s')\";\n $args = array($id, $type);\n foreach ($extra_where as $clause) {\n $query .= \" OR $clause\";\n }\n $result = db_query($query, array_merge($args, $extra_args));\n $query = \"UPDATE {activity_log_messages} SET cached = '', \";\n $set = $where = $args = $aids = array();\n while ($row = db_fetch_object($result)) {\n $set[] = \"aids = REPLACE(aids, '%s', ',')\";\n $args[] = \",$row->aid,\";\n $where[] = \"aids LIKE '%%,%d,%%'\";\n $aids[] = $row->aid;\n }\n if (!empty($where)) {\n $query .= implode(\", \", $set);\n $query .= \" WHERE \";\n $query .= implode(\" OR \", $where);\n db_query($query, array_merge($args, $aids));\n }\n db_query(\"\n DELETE FROM {activity_log_messages}\n WHERE (stream_owner_id = %d AND stream_owner_type = '%s') OR aids = ','\n \", $id, $type);\n}", "title": "" }, { "docid": "6f47dbf064a87a353ba8396a965d0a54", "score": "0.57179266", "text": "function delete_activity_by($field = null, $match = null)\n\t{\n\t\treturn get_instance()->kbcore->activities->delete_by($field, $match);\n\t}", "title": "" }, { "docid": "096ac80727bbd7642f06d6023c09c9b7", "score": "0.57101864", "text": "public function deleteRecords(array $ids);", "title": "" }, { "docid": "c864045cde31410654feebe22d2d086e", "score": "0.5708989", "text": "public function deleteItemMultiple(array $items);", "title": "" }, { "docid": "d8f6f8b1f2afbf27b159e86b9706a306", "score": "0.5704554", "text": "function compileQueryDelete(array $statement);", "title": "" }, { "docid": "aac29cd0565935aafabe7f507d307d74", "score": "0.5690998", "text": "public function deleteMultiple($ids)\n {\n return $this->leave_request->whereIn('id', $ids)->delete();\n }", "title": "" }, { "docid": "e14ed634ab4127659576cda029d6023d", "score": "0.56818444", "text": "public function delete_multiple() {\n\t\t$where = $this->input->post('ids');\n\n\t\t$deleted = $this->sub_categories->delete_many($where);\n\n\t\tif ($deleted) \n\t\t{\n\t\t\t$ids = implode(',', $where);\n\t\t\techo 'true';\n\t\t} \n\t\telse \n\t\t{\n\t\t\techo 'false';\n\t\t}\n\n\t}", "title": "" }, { "docid": "527ebc1666bc2330a0d26eac38969f78", "score": "0.566589", "text": "protected function delete_records( $table,$params, $extraparams ) {\r\n //deletes are often carried out with an array\r\n //audit expects a object so a quick conversion\r\n //is needed\r\n if (is_array($params)) $auditobj = (array) $params;\r\n $deleteobject = $this->dbc->get_records($table, $params );\r\n $success = $this->dbc->delete_records($table, $params);\r\n\r\n if (!empty($deleteobject)) {\r\n foreach ($deleteobject as $delobj) {\r\n foreach( $extraparams as $key=>$value ){\r\n $delobj->$key = $value;\r\n }\r\n $this->add_to_audit($table,ILP_LOG_DELETE,$delobj);\r\n }\r\n\r\n }\r\n\r\n return $success;\r\n }", "title": "" }, { "docid": "91aac98bf9738cfe27d12ae3c61b9f4f", "score": "0.56532997", "text": "public function deleteAllByAttributes($attributes, $condition='', $params=array()) {\r\n\t\t$models = $this->findAllByAttributes($attributes, $condition, $params);\r\n\t\t$count = 0;\r\n\t\tforeach ($models as $model) {\r\n\t\t\t$count += $model->delete();\r\n\t\t}\r\n\t\treturn $count;\r\n\t}", "title": "" }, { "docid": "b64f07409a05306a468e187acae6738e", "score": "0.5652931", "text": "public function deleteAll(StatementParams $params = null)\n\t{\n\t\t$this->database->execute($this->buildDelete(), $params);\n\t}", "title": "" }, { "docid": "dcf068cb89224d922f20fd7e257f4b09", "score": "0.56497645", "text": "abstract public function delete($table, $where = 1, $operator = 'AND');", "title": "" }, { "docid": "b462b5527972e0036973546d71a6f8db", "score": "0.56430894", "text": "public function multiDelete(Request $request) {\n\n if ($request->has('id')) {\n foreach ($request->id as $id) {\n Payment::where('id', $id)->delete();\n }\n }\n }", "title": "" }, { "docid": "00149bd82f30b61c21c5f6d835d0f868", "score": "0.56408125", "text": "public function deleteAll()\n {\n $this->_query->type = QueryType::$DELETE;\n return QueryExecutor::prepare($this->_db, $this->_query)->execute();\n }", "title": "" }, { "docid": "a54a38bccdada6afa716a0f4e30f46f9", "score": "0.5638324", "text": "public function actionBatchDelete()\r\n {\r\n if (($ids = Yii::$app->request->post('ids')) !== null) {\r\n $models = $this->findModel($ids);\r\n foreach ($models as $model) {\r\n $model->delete();\r\n }\r\n return $this->redirect(['index']);\r\n } else {\r\n throw new HttpException(400);\r\n }\r\n }", "title": "" }, { "docid": "332ad009e648197b234566baa0b2451a", "score": "0.5632256", "text": "function exec_DELETEquery($params) {\n $table = isset($params['table']) ? $params['table'] : '';\n $where = isset($params['where']) ? $params['where'] : '';\n $debug = isset($params['debug']) ? $params['debug'] : '';\n\n if (empty($table) || is_array($where))\n return false;\n\n // debug output of the SQL statement\n if ($debug) {\n t3lib_div::debug($params, 'exec_DELETEquery Parameter');\n $sql = \"delete from $table where $where\";\n t3lib_div::debug($sql, 'SQL-Statement');\n }\n\n // execute the insert\n $res = $GLOBALS['TYPO3_DB']->exec_DELETEquery(\n $table,\n $where\n );\n\n // debug output of the result set\n if ($debug)\n t3lib_div::debug($res, 'SQL Result');\n\n return $res;\n }", "title": "" }, { "docid": "17a5dce83ea6f905ec5c2eb5a6e49db8", "score": "0.5628879", "text": "public function delete(array $attributes)\n {\n return $this->model->where($attributes)->delete();\n }", "title": "" }, { "docid": "65f599a5f749f9bdf7dd1b517b6b893b", "score": "0.56268394", "text": "public function massDeleteAction()\n {\n $idsArray = $this->getRequest()->getParam('id');\n $collection = Mage::getResourceModel('requestprice/requests_collection')\n ->addFieldToFilter('entity_id',\n ['in' => $idsArray]\n );\n foreach ($collection as $article) {\n $article->delete()->save();\n }\n $this->_redirectReferer();\n }", "title": "" }, { "docid": "db9e08be9321d32ee433462eb773b849", "score": "0.5624901", "text": "public static function deleteAll();", "title": "" }, { "docid": "80f9f22f53bfdef4df9a9c025462e797", "score": "0.5622235", "text": "public function deleteWhere(QueryFilter $filter = null);", "title": "" }, { "docid": "60cdc1ca3da21ca7fa9191af038bcd85", "score": "0.5612659", "text": "public function delete (array $whereClause) {\n $conn = $this->connectToDB();\n\n $sql = \"DELETE FROM `user_session` WHERE $whereClause[0] $whereClause[1] '$whereClause[2]'\";\n\n $query = mysqli_query($conn, $sql);\n\n if ($query){\n return true;\n }else{\n die(mysqli_error($conn));\n return false;\n }\n\n }", "title": "" }, { "docid": "a8fc07dbc1f50565ae253bd53eaf820b", "score": "0.56021816", "text": "public function massDestroy(Request $request)\n {\n if (! Gate::allows('statement_delete')) {\n return abort(401);\n }\n if ($request->input('ids')) {\n $entries = Statement::whereIn('id', $request->input('ids'))->get();\n\n foreach ($entries as $entry) {\n $entry->delete();\n }\n }\n }", "title": "" }, { "docid": "cf630b44f51470c65f825f9a79f8cd95", "score": "0.55977166", "text": "function deleteBy($conditions, $operador=\"and\") {\n try {\n\n $sql = \"DELETE FROM \" . $this->tableName . \" WHERE \";\n\n foreach ($conditions as $key => $value) {\n $sql .= $key . \" = :\" . $key . \" \" . $operador . \" \";\n }\n\n $sql = substr($sql, 0, strlen($sql) - strlen($operador . \" \"));\n $stmt = $this->connection->prepare($sql);\n\n // & no $value para passar como referencia\n foreach ($conditions as $key => &$value) {\n $stmt->bindParam($key, $value, PDO::PARAM_STR);\n }\n\n $result = $stmt->execute();\n $e = $stmt->errorInfo();\n \n if ($stmt->errorInfo()[0] != 0) {\n throw new Exception();\n }\n\n return $result;\n } catch (PDOException $e) {\n throw $e;\n }\n }", "title": "" }, { "docid": "3510062ecc91c7407717a3309f67b57c", "score": "0.55971277", "text": "function deleteAll($table,$conditions){\n $sql = \"DELETE FROM \".$table;\n try {\n if(!empty($conditions))\n {\n $sql .= \" WHERE \";\n foreach($conditions as $key=>$condition)\n {\n $sql .= \"$key=:$key \";\n }\n }\n $db = getConnection();\n $stmt = $db->prepare($sql); \n \n if(!empty($conditions))\n {\n foreach($conditions as $key=>$condition)\n {\n $stmt->bindParam($key, $condition);\n }\n }\n $stmt->execute();\n $db = null;\n return '{\"success\":{\"text\":\"Deleted successfully\"}}';\n } catch(PDOException $e) {\n return '{\"error\":{\"text\":'. $e->getMessage() .'}}'; \n }\n}", "title": "" }, { "docid": "2c49390076194cc550beaf9fc1440ad7", "score": "0.55810046", "text": "public function deleteAll($condition='', $params=array()) {\r\n\t\t$models = $this->findAll($condition, $params);\r\n\t\t$count = 0;\r\n\t\tforeach ($models as $model) {\r\n\t\t\t$count += $model->delete();\r\n\t\t}\r\n\t\treturn $count;\r\n\t}", "title": "" }, { "docid": "8efc6f52bd83c5c1cc301411268fbc56", "score": "0.5575822", "text": "function delete($tableName,$conditions)\t{ // $data should be array and table name should be passed\r\n $query = \"DELETE FROM `$tableName` \";\t\r\n\tforeach($conditions as $k=>$v){\r\n\t $whereConditions[]= \"`$k`='$v'\";\t\r\n\t}\r\n\tif(count($whereConditions)>0) {\r\n\t $query .= \" WHERE \". implode(\" AND \", $whereConditions); }\r\n\t else{\r\n\t\techo \"Wrong Query \";\r\n\t\texit;\r\n\t }\r\n\r\n\t return execute($query);\r\n\t}", "title": "" }, { "docid": "5252f8b704397401acf40e3e4f731cab", "score": "0.55598426", "text": "public function deleteByIds(array $ids)\n {\n try\n {\n $criteria = new Criteria();\n $criteria->add(ProjectLog::ID_PROJECT_LOG, $ids, Criteria::IN);\n $this->db->delete(ProjectLog::TABLENAME, array($criteria->createSql()));\n }\n catch(Exception $e)\n {\n throw new ProjectLogException(\"Can't delete that\\n\" . $e->getMessage());\n }\n }", "title": "" }, { "docid": "21e9bd8b24315db16e8097214e595ba1", "score": "0.55541384", "text": "static function deleteByParents($parents) {\n if(is_foreachable($parents)) {\n foreach($parents as $parent_type => $parent_ids) {\n DB::execute('DELETE FROM ' . TABLE_PREFIX . 'activity_logs WHERE (subject_type = ? AND subject_id IN (?)) OR (target_type IN (?) AND target_id IN (?))', $parent_type, $parent_ids, $parent_type, $parent_ids);\n } // foreach\n } // if\n }", "title": "" }, { "docid": "25520d24582e7ea06569eb2058029482", "score": "0.55492824", "text": "public function softDeleteBy(array $criteria, array $flags = array());", "title": "" }, { "docid": "32a463b6b3600510a8033e8df7eec9fd", "score": "0.5541293", "text": "public function delete(array $data, $where='', array $params=null )\n\t{\n\t\t$result = false;\n\t\tif(!$this->del) return $result;\n\t\t//SQL Server hack\n\t\tif(!$this->checkPrimary()) {\n\t\t\treturn $result;\n\t\t}\t\t\n\t\t$ide = null;\n\t\t$binds = array(&$ide);\n\t\t$types = array();\n\t\t$odbc = strpos($this->dbtype, 'odbc');\n\t\n\t\tif(count($data)>0) {\n\t\t\tif($where && strlen($where)>0) {\n\t\t\t\t$id = \"\";\n\t\t\t\t$sql = \"DELETE FROM \".$this->table.\" WHERE \".$where;\n\t\t\t\t$stmt = $this->parseSql($sql, $params);\n\t\t\t\t$delids = \"\";\n\t\t\t\t$custom = true;\n\t\t\t} else {\n\t\t\t\t$id = $this->getPrimaryKeyId();\n\t\t\t\tif(!isset($data[$id])) {\n\t\t\t\t\t$this->errorMessage = \"Missed data id value to perform delete!\";\n\t\t\t\t\tif($this->showError) {\n\t\t\t\t\t\t$this->sendErrorHeader();\n\t\t\t\t\t}\n\t\t\t\t\treturn $result;\n\t\t\t\t}\n\t\t\t\t$sql = \"DELETE FROM \".$this->table.\" WHERE \".$id. \"=?\";\n\t\t\t\t$stmt = $odbc === false ? $this->parseSql($sql, $binds, false) : true;\n\t\t\t\t$delids = explode(\",\",$data[$id]);\n\t\t\t\t$custom = false;\n\t\t\t}\n\t\t\t$types[0] = 'custom';\n\t\t\tif($stmt) {\n\t\t\t\tif($this->trans) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tjqGridDB::beginTransaction($this->pdo);\n\t\t\t\t\t\t$result = $this->_actionsCRUDGrid('del', 'before');\n\t\t\t\t\t\tif( $custom ) {\n\t\t\t\t\t\t\tif($this->debug) $this->logQuery($sql, $params, false, $data, null, $this->primaryKey);\n\t\t\t\t\t\t\t$result = jqGridDB::execute( $stmt, $params, $this->pdo );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tforeach($delids as $i => $ide) {\n\t\t\t\t\t\t\t\t$delids[$i] = trim($delids[$i]);\n\t\t\t\t\t\t\t\t$binds[0] = &$delids[$i];\n\t\t\t\t\t\t\t\tif($this->debug) $this->logQuery($sql, $binds, $types, $data, $this->fields, $this->primaryKey);\n\t\t\t\t\t\t\t\tif( $odbc === false ) {\n\t\t\t\t\t\t\t\t\tjqGridDB::bindValues($stmt, $binds, $types);\n\t\t\t\t\t\t\t\t\t$result = jqGridDB::execute($stmt, $binds, $this->pdo);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$stmt = jqGridDB::prepare($this->pdo,$sql, $binds, false, false);\n\t\t\t\t\t\t\t\t\t$result = jqGridDB::execute($stmt, $binds, $this->pdo);\n\t\t\t\t\t\t\t\t\tjqGridDB::closeCursor($stmt);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(!$result) {\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tunset($binds[0]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$ret = $result ? true : false;\n\t\t\t\t\t\tif ( $odbc === false ) {\n\t\t\t\t\t\t\tjqGridDB::closeCursor($this->dbtype== \"adodb\" ? $result : $stmt);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($ret) $result = $this->_actionsCRUDGrid('del', 'after'); \n\t\t\t\t\t\telse $result = false;\n\t\t\t\t\t\tif($result) {\n\t\t\t\t\t\t\tjqGridDB::commit($this->pdo);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this->errorMessage = jqGridDB::errorMessage( $this->pdo );\n\t\t\t\t\t\t\tthrow new Exception($this->errorMessage);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\t\tjqGridDB::rollBack($this->pdo);\n\t\t\t\t\t\t$result = false;\n\t\t\t\t\t\tif(!$this->errorMessage) $this->errorMessage = $e->getMessage();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\t$result = $this->_actionsCRUDGrid('del', 'before');\n\t\t\t\t\t\tif($result) {\n\t\t\t\t\t\t\tif($custom) {\n\t\t\t\t\t\t\t\t$result = jqGridDB::execute( $stmt, $params, $this->pdo );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tforeach($delids as $i => $ide) {\n\t\t\t\t\t\t\t\t\t$delids[$i] = trim($delids[$i]);\n\t\t\t\t\t\t\t\t\t$binds[0] = &$delids[$i];\n\t\t\t\t\t\t\t\t\tif($this->debug) $this->logQuery($sql, $binds, $types, $data, $this->fields, $this->primaryKey);\n\t\t\t\t\t\t\t\t\tif( $odbc === false ) {\n\t\t\t\t\t\t\t\t\t\tjqGridDB::bindValues($stmt, $binds, $types);\n\t\t\t\t\t\t\t\t\t\t$result = jqGridDB::execute($stmt, $binds, $this->pdo);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$stmt = jqGridDB::prepare($this->pdo,$sql, $binds, false, false);\n\t\t\t\t\t\t\t\t\t\t$result = jqGridDB::execute($stmt, $binds, $this->pdo);\n\t\t\t\t\t\t\t\t\t\tjqGridDB::closeCursor($stmt);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!$result) {\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tunset($binds[0]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$ret = $result ? true : false;\n\t\t\t\t\t\tif($odbc == false) {\n\t\t\t\t\t\t\tjqGridDB::closeCursor($this->dbtype== \"adodb\" ? $result : $stmt);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($ret) $result = $this->_actionsCRUDGrid('del', 'after');\n\t\t\t\t\t\telse $result = false;\n\t\t\t\t\t\tif(!$result) {\n\t\t\t\t\t\t\t$this->errorMessage = jqGridDB::errorMessage( $this->pdo );\n\t\t\t\t\t\t\tthrow new Exception($this->errorMessage);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception $e){\n\t\t\t\t\t\t$result = false;\n\t\t\t\t\t\tif(!$this->errorMessage) $this->errorMessage = $e->getMessage();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif($this->debug) $this->debugout();\n\t\tif($this->showError && !$result) {\n\t\t\t$this->sendErrorHeader();\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "25e77c1a33ee1bac36885fca5fd75141", "score": "0.5538547", "text": "function delete_list($ids)\n {\n $this->db->where_in('id', $ids);\n $success = $this->db->update('attributes', array('deleted' => 1));\n return $success;\n }", "title": "" }, { "docid": "275adaf26b04090aa2a05c198ca73a0d", "score": "0.55214244", "text": "public function deleteByIds(array $ids)\n {\n try\n {\n $criteria = new Criteria();\n $criteria->add(ProjectTask::ID_PROJECT_TASK, $ids, Criteria::IN);\n $this->db->delete(ProjectTask::TABLENAME, array($criteria->createSql()));\n }\n catch(Exception $e)\n {\n throw new ProjectTaskException(\"Can't delete that\\n\" . $e->getMessage());\n }\n }", "title": "" }, { "docid": "2d22dbb8db6a58c73a1d1fa750f7ec77", "score": "0.55188215", "text": "function delete($tableName,$conditions)\t{\n $query = \"delete from `$tableName` \";\n foreach($conditions as $k=>$v){\n $whereConditions[]= \"`$k`='$v'\";\n }\n if(count($whereConditions)>0) {\n $query .= \" WHERE \". implode(\" AND \", $whereConditions); }\n else{\n echo \"Wrong Query \";\n exit;\n }\n\n return execute($query);\n}", "title": "" }, { "docid": "dbf8dc4af9ce79cbd4daa0d4e6ae8842", "score": "0.55165887", "text": "public function delete($args){\n $req = 'DELETE FROM '.$args[\"from\"];\n if (isset($args[\"where\"])) $req .= ' WHERE ' .implode(\" AND \", $args[\"where\"]);\n //launch query and return result\n return $this->request($req);\n }", "title": "" }, { "docid": "3ed9971996f267a3581488cb6a9644b5", "score": "0.5514144", "text": "public function deleteAll(array $params,$tableName=null){\n\t\t$tableName = $tableName === null ? $this->tableName : $tableName;\n\t\tif(!$tableName){\n\t\t\tthrow new Exception('Table name has to be specified');\n\t\t}\n\t\t\n\t\t$whereKeys = array();\n\t\tforeach ($params as $key=>$value){\n\t\t\t$whereKeys[] = \"`{$key}`=?\";\n\t\t}\n\t\t\n\t\t$qWhere = '';\n\t\tif(sizeof($whereKeys)){\n\t\t\t$qWhere = \" WHERE \" . implode(' AND ',$whereKeys);\n\t\t}\n\t\t\n\t\t$this->sql = \"DELETE FROM `{$this->tableName}`\" . $qWhere;\n\t\tif($this->query($this->sql,array_values($params))){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d8689e70218777a01cb07daf9a3a2ba7", "score": "0.5512627", "text": "public function multiDeleteAction() {\n \n //GET THE IDS WHICH EVNETS WE WANT TO DELETE\n $this->view->event_ids = $event_ids = $this->_getParam('event_ids', null);\n\n $confirm = $this->_getParam('confirm', false);\n\n //COUNTING THE EVENT IDS\n $this->view->count = count(explode(\",\", $event_ids));\n\n //IF NOT POST OR FORM NOT VALID, RETURN\n if ($this->getRequest()->isPost() && $confirm == true) {\n\n //MAKING THE EVENT ID ARRAY.\n $eventids_array = explode(\",\", $event_ids);\n\n foreach ($eventids_array as $event_id) {\n\t\t\t\t//DELETE EVENT, ALBUM AND EVENT IMAGES\n\t\t\t\tEngine_Api::_()->sitepageevent()->deleteContent($event_id);\n }\n //REDIRECTING TO THE MANAGE EVENTS PAGE\n $this->_helper->redirector->gotoRoute(array('action' => 'index'));\n }\n }", "title": "" }, { "docid": "9525b23168875c97c43ccbb76084bfeb", "score": "0.55017954", "text": "public function delete(array $where = [])\n {\n return $this->db->delete($this->table, $where);\n }", "title": "" }, { "docid": "a916c52f0911b492fef60803c20d0b6c", "score": "0.5499408", "text": "public function actionBulkDelete()\n\t{\n\t\tif (Yii::app()->request->isAjaxRequest)\n {\n $selectedContacts = Yii::app()->request->getPost('selectedContacts');\n\n //iterate through all ids\n foreach ($selectedContacts as $id)\n {\n $this->loadModel($id)->delete();\n }\n }\n\t}", "title": "" }, { "docid": "0d5ef7af1d32f91064080d8dc6b86518", "score": "0.5496578", "text": "public function delete_batch($ids = NULL, $domains = NULL , $api_id = NULL)\n\t{\n\t\tif($ids !== NULL)\n\t\t{\n\t\t\tif(sizeof($ids) == 0) return FALSE ;\n\t\t\t$this->db->where_in(self::COLUMN_ID , $ids);\n\n\t\t}\n\t\telse if ($domains !== NULL && $api_id !== NULL)\n\t\t{\n\t\t\tif(sizeof($domains) == 0) return FALSE ;\n\t\t\t$this->db->where(self::COLUMN_API_ID , $api_id);\n\t\t\t$this->db->where_in(self::COLUMN_NAME , $domains);\t\n\t\t}\n\n\t\t$this->db->limit(0);\n\t\t$this->db->delete($this->_table_name);\n\t}", "title": "" }, { "docid": "82df321366a83bc7df5a7ba500912097", "score": "0.54956967", "text": "public function delete(EntityInterface ...$entities);", "title": "" }, { "docid": "48456859bedbc399d47a5773a382789b", "score": "0.5493964", "text": "public function delete_all()\n {\n $ids = $this->input->post('ids');\n foreach ($ids as $id)\n {\n $this->_del($id);\n }\n }", "title": "" }, { "docid": "4ff28c296035084de3afd43fa68b5cd1", "score": "0.54931563", "text": "public function deleteMultipleById(array $ids) :int\n {\n }", "title": "" }, { "docid": "4ff28c296035084de3afd43fa68b5cd1", "score": "0.54931563", "text": "public function deleteMultipleById(array $ids) :int\n {\n }", "title": "" }, { "docid": "5269aa0c2bd302cd9ebf462161ec6c77", "score": "0.5490415", "text": "public function delete(string $table, array $where): \\PDOStatement;", "title": "" }, { "docid": "dfae1e15009eb0adbe6145dd8fcc6389", "score": "0.5490107", "text": "function deleteAll($table, $cond = array()) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "52445ad57e12abcc4b927506201c60fd", "score": "0.54849124", "text": "public function delete($attributes)\n\t{\n\t\t//Chargement d'une requete preparer DELETE.\n\t\t$query = $this->getPDO()->prepare('DELETE FROM post WHERE id = :id');\n\t\t$query->execute($attributes);\n\t\treturn $query;\n\t\t\n\t}", "title": "" }, { "docid": "1ea31d980bbbff65327dd1fb441e9960", "score": "0.54757273", "text": "function delete_all() {\n $ids = $this->input->post('ids');\n foreach ($ids as $id) {\n $this->_del($id, false);\n }\n }", "title": "" }, { "docid": "a513e024d763ac4263e5fbb65c6623b9", "score": "0.54716885", "text": "abstract public function deleteAll(): void;", "title": "" }, { "docid": "5f1f0a26d294ce37a653f8e9c29edef2", "score": "0.54650885", "text": "public function deleteMultiple( $keys );", "title": "" }, { "docid": "6c396fdbf849590ad7b77d44331597a8", "score": "0.5462794", "text": "function delete_query($table, $where=\"\", $limit=\"\");", "title": "" }, { "docid": "f7729fc7b2a7f0b81616162474846022", "score": "0.5458646", "text": "function delete_all(){\n $ids = $this->input->post('ids');\n foreach($ids as $id) {\n $this->_delete($id);\n }\n }", "title": "" }, { "docid": "a8a33af24675f399eafca06bd82226a0", "score": "0.5456911", "text": "public function bulkDelete(Request $request)\n {\n return $this->model->bulkDelete($request->ids);\n }", "title": "" }, { "docid": "34d8ac79b93b5ef78123cc0e9e894e66", "score": "0.54519033", "text": "function bulkDeleteIntegrations($pageIndex, $ids)\n{\n global $wpdb;\n $string= implode(\",\",$ids);\n $query = $wpdb->prepare(\"DELETE FROM integrations WHERE id IN (\".$string.\") AND page_index=%d\", $pageIndex);\n $res = $wpdb->query($query);\n return $res;\n}", "title": "" }, { "docid": "4d2dbdb7874d1f3e3c599c3d8172524e", "score": "0.544131", "text": "function delete (...$args) {\n return $this->execute(\"DELETE\", ...$args);\n }", "title": "" }, { "docid": "42f2d9da660341691c1ceb95b5110564", "score": "0.5441257", "text": "abstract public function deleteEntity(array $sql, array $conditions = []): bool;", "title": "" }, { "docid": "c9c434fd6d8e0e27ab962b775025ecc7", "score": "0.543706", "text": "public function deleteItems( array $ids );", "title": "" } ]
47880f1489b9cfcfa1191d0a199de54c
function to get the list of film weekly cinemas as search results
[ { "docid": "9f8601b3ed1ac1405ff97a4934b78ea5", "score": "0.71461236", "text": "private function getFilmWeeklyAdvanced($search, $db) {\n \n \t$markers = $this->getFilmWeeklyMarkers();\n \n \t$results = array();\n \n \t// build a query to search for film_weekly_cinema_id using data from the film_weekly_table\n \t$sql = \"SELECT DISTINCT film_weekly_cinemas_id \n \t\t FROM film_weekly_searches \n \t\t WHERE MATCH (fwc_street, fwc_suburb, fwc_cinema_name, fwc_exhibitor_name)\n\t\t\t\tAGAINST ({:search} IN BOOLEAN MODE)\";\n \t\n \t// execute the query\n \t$batch = $db->read($sql, \n \t\tarray(\n \t\t\t'return' => 'array',\n \t\t\t'search' => $search\n \t\t)\n \t);\n \t\n \t//populate an array of ids\n \t$cinemas = array();\n \t\n \tforeach($batch as $item) {\n \t\n \t\t$cinemas[] = $item['film_weekly_cinemas_id'];\n \t}\n \t\n \t// build a query to search for film_weekl_cinema_id using data from the film_weekly_archaeology_table\n \t$sql = \"SELECT DISTINCT film_weekly_archaeologies.film_weekly_cinemas_id\n\t\t\t\tFROM film_weekly_searches, film_weekly_archaeologies\n\t\t\t\tWHERE MATCH (fwa_cinema_name, fwa_exhibitor_name) AGAINST ({:search} IN BOOLEAN MODE)\n\t\t\t\tAND film_weekly_searches.film_weekly_archaeologies_id = film_weekly_archaeologies.id\";\n \t\n \t// execute the data\n \t$batch = $db->read($sql, \n \t\tarray(\n \t\t\t'return' => 'array',\n \t\t\t'search' => $search\n \t\t)\n \t);\n \t\n \t// add ids to the array\n\t\tforeach($batch as $item) {\n \t\n \t\t$cinemas[] = $item['film_weekly_cinemas_id'];\n \t}\n \t\n \t// remove any duplicates\n \t$cinemas = array_unique($cinemas, SORT_NUMERIC);\n \t\n \treturn $this->getFilmWeeklyCinemas($cinemas, $markers);\n }", "title": "" } ]
[ { "docid": "9a889e27ed3d771e10ecdd667eb2889b", "score": "0.7154143", "text": "private function getFilmWeekly($search, $db) {\n \n \t$markers = $this->getFilmWeeklyMarkers();\n \n \t$results = array();\n \n \t// build a query to search for film_weekly_cinema_id using data from the film_weekly_table\n \t$sql = \"SELECT DISTINCT film_weekly_cinemas_id \n \t\t FROM film_weekly_searches \n \t\t WHERE MATCH (fwc_street, fwc_suburb, fwc_cinema_name, fwc_exhibitor_name)\n\t\t\t\tAGAINST ({:search} IN NATURAL LANGUAGE MODE)\";\n \t\n \t// execute the query\n \t$batch = $db->read($sql, \n \t\tarray(\n \t\t\t'return' => 'array',\n \t\t\t'search' => $search\n \t\t)\n \t);\n \t\n \t//populate an array of ids\n \t$cinemas = array();\n \t\n \tforeach($batch as $item) {\n \t\n \t\t$cinemas[] = $item['film_weekly_cinemas_id'];\n \t}\n \t\n \t// build a query to search for film_weekl_cinema_id using data from the film_weekly_archaeology_table\n \t$sql = \"SELECT DISTINCT film_weekly_archaeologies.film_weekly_cinemas_id\n\t\t\t\tFROM film_weekly_searches, film_weekly_archaeologies\n\t\t\t\tWHERE MATCH (fwa_cinema_name, fwa_exhibitor_name) AGAINST ({:search} IN NATURAL LANGUAGE MODE)\n\t\t\t\tAND film_weekly_searches.film_weekly_archaeologies_id = film_weekly_archaeologies.id\";\n \t\n \t// execute the data\n \t$batch = $db->read($sql, \n \t\tarray(\n \t\t\t'return' => 'array',\n \t\t\t'search' => $search\n \t\t)\n \t);\n \t\n \t// add ids to the array\n\t\tforeach($batch as $item) {\n \t\n \t\t$cinemas[] = $item['film_weekly_cinemas_id'];\n \t}\n \t\n \t// remove any duplicates\n \t$cinemas = array_unique($cinemas, SORT_NUMERIC);\n \t\n \treturn $this->getFilmWeeklyCinemas($cinemas, $markers);\n }", "title": "" }, { "docid": "9c27177fc0298e0c1b08f7ce3c8df76b", "score": "0.6917781", "text": "private function getFilmWeeklyCinemas($cinemas, $markers) {\n \n \t// loop through getting all of the cinemas one at a time\n \t// TODO: yes I know this is inefficient, need to revisit this if it becomes an issue\n \t\n \t$records = array();\n \t\n \t$results = array();\n \t\n \tforeach($cinemas as $cinema) {\n \t\n \t\t$record = FilmWeeklyCinemas::find(\n \t\t\t'first',\n \t\t\tarray(\n \t\t\t\t'with' => 'AustralianStates',\n \t\t\t\t'conditions' => array('FilmWeeklyCinemas.id' => $cinema)\n \t\t\t)\n \t\t);\n \t\t\n \t\t$records[] = $record;\n \t}\n \t\n \t// get the film weekly identifiers\n \t$categories = array();\n \t\n \t// get a connection to the database\n \t$db = Connections::get('default');\n\n\t\t// define sql to select the min and maximum ids\n\t\t$sql = \"SELECT MIN(film_weekly_categories_id) as min_id, MAX(film_weekly_categories_id) as max_id\n\t\t\t\tFROM film_weekly_category_maps\t\n\t\t\t\tWHERE film_weekly_cinemas_id = {:search}\";\n\t\t\t\t\n\t\t// get the data\n\t\tforeach($cinemas as $cinema) {\n\t\t\n\t\t\t$record = $db->read($sql,\n\t\t\t\tarray(\n\t\t\t\t\t'return' => 'array',\n\t\t\t\t\t'search' => $cinema\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\t$categories[] = $record;\n\t\t}\n \t\n \t// loop through the list of cinemas building up the search results\n \t$count = 0;\n \t\n \tforeach($records as $record) {\n \t\t\n \t\t$results[] = array(\n \t\t\t'id' => $record->id,\n \t\t\t'type' => 'film_weekly_cinema',\n \t\t\t'result' => $record->search_result_ajax(),\n \t\t\t'coords' => $record->latitude . ',' . $record->longitude,\n \t\t\t'title' => $record->cinema_name,\n \t\t\t'state' => $record->australian_state->shortname,\n \t\t\t'icon' => $markers[$record->film_weekly_cinema_types_id][$record->locality_types_id],\n \t\t\t'cinema_type' => $record->film_weekly_cinema_types_id,\n \t\t\t'locality_type' => $record->locality_types_id,\n \t\t\t'min_film_weekly_cat' => $categories[$count][0]['min_id'],\n \t\t\t'max_film_weekly_cat' => $categories[$count][0]['max_id']\n \t\t);\n \t\t\n \t\t$count++;\n \t}\n \t\n \treturn $results;\n }", "title": "" }, { "docid": "7f12ac0901afa6d59b992c864cc2f7f0", "score": "0.61140424", "text": "function getFilms($page,$search){\n $return=array();\n $returnresult=array();\n $offset=0;\n if($search!=null){\n $searchQuery='WHERE (FilmTitle LIKE \"%'.$search.'%\" )';\n $urlQuery='&search='.$search;\n }else{\n $searchQuery='';\n $urlQuery='';\n } \n if (is_numeric($page)){\n $offset=getOffset($page);\n $results=loadQueryArray('SELECT FilmID FROM Films '.$searchQuery.' ORDER BY FilmID ASC LIMIT 10 OFFSET '.$offset);\n if($results!=null){\n foreach($results as $result){\n $returnresult[] = searchFilmByID($result['FilmID'],false);\n }\n }else{\n $return['detail']=MSG_NOT_FOUND;\n return(json_encode($return));\n }\n }else{\n $return['detail']=MSG_NOT_FOUND;\n return(json_encode($return));\n }\n $return['count']=loadQueryArray('SELECT COUNT(*) as FilmsCount FROM Films '.$searchQuery)[0]['FilmsCount'];\n if($offset+10<$return['count']){\n $return['next']=LOCAL_URL.'/films/?page='.($page+1).$urlQuery;\n }else{\n $return['next']=null;\n }\n if($page-1>0){\n $return['previous']=LOCAL_URL.'/films/?page='.($page-1).$urlQuery;\n }else{\n $return['previous']=null;\n }\n $return['results']=$returnresult;\n return(json_encode($return));\n}", "title": "" }, { "docid": "5d27fab15459dd1fe512a27b31bdd622", "score": "0.6056978", "text": "function getFilms($urls){\n\t\t// access conn variable globally for database connection\n\t\tglobal $conn;\t\t\n\t\t// loop through each URL to explore its webpage \n\t\tforeach ($urls as $url){\t\t\n\t\t\t// get the contents of the webpage\n\t\t\t$file = file_get_contents($url);\n\t\t\t// split the URL using forward slash\n\t\t\t$pieces = explode(\"/\", $url);\n\t\t\t// get the last index which is the name of the cinema\n\t\t\t$cinema = $pieces[count($pieces)-1];\n\t\t\t// replace all hyphens with spaces and capitalize all words\n\t\t\t$cinema = ucwords(str_replace(\"-\", \" \", $cinema));\n\t\t\t// now replace certain words with others to make them consistent with the cinema names\n\t\t\t$cinema = str_replace(\"Odeon\", \"ODEON\", $cinema);\n\t\t\t$cinema = str_replace(\"Imc\", \"IMC\", $cinema);\n\t\t\t$cinema = str_replace(\"Liffordstrabane\", \"Lifford/Strabane\", $cinema);\t\n\t\t\t$cinema = str_replace(\"Cl \", \"C&L \", $cinema);\t\n\t\t\t// some cinemas may contain a comma in their name so here is a list of what these cinemas start with\t\t\n\t\t\t$cin_names = array(\"Gate Multiplex\", \"Movie House\", \"Ormond Cineplex\", \"The Arc Cinema\", \"Eclipse Cinemas\", \n\t\t\t\"Phoenix Cinema\", \"The Ritz\", \"The Reel Picture\", \"Park Cinema\");\n\t\t\t// loop through the list of cinema names\n\t\t\tforeach ($cin_names as $cin){\n\t\t\t\t// if cinema starts with the current list item then add a comma after it eg. \"The Arc Cinema Drogheda\" becomes \n\t\t\t\t// \"The Arc Cinema, Drogheda\"\n\t\t\t\tif(substr($cinema, 0, strlen($cin)) == $cin ){\n\t\t\t\t\t$cinema = str_replace($cin, $cin . \",\", $cinema);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// get the position of the heading with the cinema name and set that as the starting position\n\t\t\t$start = stripos($file, \"<h1>\". $cinema . \"</h1>\");\n\t\t\t// match the titles of all films on the page\n\t\t\tpreg_match_all('/<h3>(.*?)[^<]<\\/h3>/s', $file, $titles);\n\t\t\t// the number of films on page\n\t\t\t$num_films = count($titles[1]);\n\t\t\t// loop through the required number of times to extract each film title \n\t\t\tfor($i=0;$i< $num_films;$i++) {\n\t\t\t\t// get the text of the film title\n\t\t\t\t$title = $titles[1][$i];\n\t\t\t\t// get the position of the film title within the webpage \n\t\t\t\t$start = strpos($file, $title, $start);\n\t\t\t\t// remove leading or trailing whitespace \n\t\t\t\t$title = trim(strip_tags($title));\n\n\t\t\t\t// if it is not the last film on the page \n\t\t\t\tif($i < $num_films-1){\n\t\t\t\t\t// get the position of the next film title and set that as the end position\n\t\t\t\t\t$end = strpos($file, $titles[1][$i+1], $start);\n\t\t\t\t\t// use start and end to determine the section of the page will be used for searching dates and times\n\t\t\t\t\t$section = substr($file, $start, $end-$start);\n\t\t\t\t}\n\t\t\t\t// else it is the last film so dont specify an end \n\t\t\t\telse {\n\t\t\t\t\t$section = substr($file, $start);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// search the section for all the dates\n\t\t\t\tpreg_match_all('/<p class=\"date-header\">(.*?)<\\/p>/s', $section, $dates);\n\t\t\t\t// search the section for the running time\n\t\t\t\tpreg_match('/<p><strong>Running time:<\\/strong>(.*?)<\\/p>/s', $section, $runtime);\n\t\t\t\t\n\t\t\t\t// get the text from the runtime and extract the integer value to get the number. If no integer value or no match \n\t\t\t\t// was found then set variable to NULL \n\t\t\t\tif(count($runtime) > 0){\n\t\t\t\t\t$runtime = trim(strip_tags($runtime[1]));\n\t\t\t\t\t$runtime = intval($runtime);\n\t\t\t\t\tif($runtime == 0){\n\t\t\t\t\t\t$runtime = \"NULL\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$runtime = \"NULL\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// to get its rating, count the number of full and half stars and add them together\n\t\t\t\t$fullstars = substr_count($section, 'class=\"icon-star-full' );\n\t\t\t\t$halfstars = substr_count($section, 'class=\"icon-star-half' );\n\t\t\t\t$totalstars = $fullstars + ($halfstars/2);\n\t\t\t\tif($totalstars == 0){\n\t\t\t\t\t$totalstars = \"NULL\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// search table to see if the film has already been added, if so then retrieve the filmId\t\t\n\t\t\t\t$select = mysqli_query($conn, \"SELECT filmId FROM Films WHERE film = '$title'\");\n\t\t\t\tif(mysqli_num_rows($select)){\n\t\t\t\t\t$filmId = mysqli_fetch_row($select)[0];\n\t\t\t\t}\n\t\t\t\t// else it hasnt been added so insert it and retrieve the insert ID\n\t\t\t\telse{\t\t\t\t\n\t\t\t\t\t$insert = \"INSERT INTO Films (film, runtime, avg_rating) \n\t\t\t\t\tVALUES ('$title', $runtime, $totalstars)\";\t\t\t\t\n\t\t\t\t\tif(mysqli_query($conn, $insert)){\n\t\t\t\t\t\t$filmId = mysqli_insert_id($conn);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tdie(\"Error inserting data \" . mysqli_error($conn));\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// arrays for days and months with their keys and values\n\t\t\t\t$days = [\"Mon\" => \"Monday\", \"Tue\" => \"Tuesday\", \"Wed\" => \"Wednesday\", \"Thu\" => \"Thursday\", \"Fri\" => \"Friday\", \n\t\t\t\t\"Sat\" => \"Saturday\", \"Sun\" => \"Sunday\"];\n\t\t\t\t$months = [\"Jan\" => \"January\", \"Feb\" => \"February\", \"Mar\" => \"March\", \"Apr\" => \"April\", \"Jun\" => \"June\",\n\t\t\t\t\"Jul\" => \"July\", \"Aug\" => \"August\", \"Sep\" => \"September\", \"Oct\" => \"October\", \"Nov\" => \"November\", \"Dec\" => \"December\"];\n\n\t\t\t\t// the number of dates \n\t\t\t\t$num_dates = count($dates[1]);\n\t\t\t\t\t\t\t\t\n\t\t\t\t// loop through the required number of times to get each date \n\t\t\t\tfor($j=0; $j< $num_dates; $j++) {\t\n\t\t\t\t\t// get the text from the current iteration\n\t\t\t\t\t$date = $dates[1][$j];\t\n\t\t\t\t\t// if the date starts with \"Today\" then get the text after first five characters\n\t\t\t\t\tif(strpos($date, \"Today\")){\n\t\t\t\t\t\t$date = trim(strip_tags(substr($date, strpos($date, \"Today\")+5)));\n\t\t\t\t\t}\n\t\t\t\t\t// if it starts with \"Next\" then get the text after the first four characters\n\t\t\t\t\telse if(strpos($date, \"Next\")){\n\t\t\t\t\t\t$date = trim(strip_tags(substr($date, strpos($date, \"Next\")+4)));\n\t\t\t\t\t}\n\t\t\t\t\t// else we want all the text \n\t\t\t\t\telse{\n\t\t\t\t\t\t$date = trim(strip_tags($date));\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t// set the starting position for the date\n\t\t\t\t\t$date_start = strpos($file, $date, $start); \n\t\t\t\t\t\n\t\t\t\t\t// if it is not the last date then find the position of the next date and use that as the end position for\n\t\t\t\t\t// the page section\n\t\t\t\t\tif($j< $num_dates-1){\n\t\t\t\t\t\t$date_end = strpos($file, $dates[1][$j+1], $date_start);\n\t\t\t\t\t\t$section = substr($file, $date_start, $date_end - $date_start);\n\t\t\t\t\t}\n\t\t\t\t\t// if it is not the last film on the page then find the position of the next film and use that as the end \n\t\t\t\t\t// position for the page section \n\t\t\t\t\telse if($i< $num_films-1) {\n\t\t\t\t\t\t$date_end = strpos($file, $titles[1][$i+1], $start);\n\t\t\t\t\t\t$section = substr($file, $date_start, $date_end - $date_start);\n\t\t\t\t\t}\n\t\t\t\t\t// else we are on both the last film and the last date so dont specify an end position \n\t\t\t\t\telse{\n\t\t\t\t\t\t$section = substr($file, $date_start);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// get all the times from whithin the page section \n\t\t\t\t\tpreg_match_all('/<div class=\"single-time-item\">(.*?)<\\/div>/s', $section, $times);\n\t\t\t\t\t// number of times\n\t\t\t\t\t$num_times = count($times[1]);\n\n\t\t\t\t\t// loop through the list of days and replace the key with its value \n\t\t\t\t\tforeach($days as $init => $day){\n\t\t\t\t\t\t$date = str_replace($init, $day, $date);\n\t\t\t\t\t}\n\t\t\t\t\t// loop through the list of months and replace the key with its value \n\t\t\t\t\tforeach($months as $init => $month){\n\t\t\t\t\t\t$date = str_replace($init, $month, $date);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// loop through the required number of times to get each time \n\t\t\t\t\tfor($k=0;$k< $num_times;$k++) {\n\t\t\t\t\t\t// get the text from the time \n\t\t\t\t\t\t$timeStr = trim(strip_tags($times[1][$k]));\n\t\t\t\t\t\t// retrieve first five characters from the time string\n\t\t\t\t\t\t$time = substr($timeStr, 0, 5);\n\t\t\t\t\t\t// convert time to an integer \n\t\t\t\t\t\t$timestamp = strtotime($time);\n\t\t\t\t\t\t// everything after the fifth character is the screen type\n\t\t\t\t\t\t$screen_type = trim(substr($timeStr, 5));\n\t\t\t\t\t\t// insert all the variables including the filmId into the Cinemas table \n\t\t\t\t\t\t$insert = \"INSERT INTO Cinemas (cinema, date, time, screen_type, filmId) \n\t\t\t\t\t\tVALUES ('$cinema', '$date', $timestamp, '$screen_type', $filmId )\";\n\t\t\t\t\t\tif(!mysqli_query($conn, $insert)){\n\t\t\t\t\t\t\tdie (\"Error inserting data \" . mysqli_error($conn));\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t}\t// end for num_times\n\t\t\t\t}\t// end for num_dates\t\t\t\t\t\t\t\t\n\t\t\t}\t// end for num_films \n\t\t}\t// end foreach\n\t}", "title": "" }, { "docid": "ec9e9028ffb2342a50e9a1e99569c443", "score": "0.60302085", "text": "function searchMovie()\r\n {\r\n //multiple words\r\n $query = urlencode($_POST['query']);\r\n \r\n //the json link\r\n $jsonMovieList = TMDB_URI . 'search/movie?query='. $query . '&api_key=' . API_KEY;\r\n $json = file_get_contents($jsonMovieList);\r\n \r\n //the movie list object\r\n $movieList = json_decode($json, true, 512, JSON_BIGINT_AS_STRING);\r\n \r\n //bring the json object back to page\r\n echo json_encode($movieList['results']);\r\n }", "title": "" }, { "docid": "ecf44b8eca6d7c03b5d00958c16fc0f6", "score": "0.6025827", "text": "function search ($user_id, $code, $search, $movies, $series, $catchup, $group) {\n global $sql;\n $result = [\n 'movies' => [],\n 'series' => [],\n 'catchup' => []\n ];\n $search = '%' . str_replace(' ', '%', $search) . '%';\n $groups = implode(',', $sql->sql_select_array_query(\"SELECT groups FROM `app` WHERE `user_id` = '{$user_id}' AND `code` = '{$code}'\")[0]['groups']);\n $group = $group ? 'GROUP BY tmdb_id' : '';\n if ($movies === true) {\n $movies = $sql->sql_select_array_query(\"SELECT * FROM `movie` WHERE user_id = '{$user_id}' AND group_id IN ({$groups}) AND sync_is_removed = 0 AND (stream_tvg_name LIKE '{$search}' OR movie_name LIKE '{$search}' OR movie_year LIKE '{$search}' OR tmdb_keywords LIKE '{$search}') AND (tmdb <> '' AND tmdb IS NOT NULL) {$group} LIMIT 50\");\n usort($movies, function($a, $b) {\n return strtotime($b['tmdb']['release_date']) - strtotime($a['tmdb']['release_date']);\n });\n $result['movies'] = $movies;\n }\n if ($series === true) {\n $series = $sql->sql_select_array_query(\"SELECT * FROM (SELECT `tmdb`, (SELECT count(*) FROM `episodes` WHERE tmdb_id = s.tmdb_id AND playlist_id = s.playlist_id AND group_id IN ({$groups})) AS `episodes`, (SELECT count(DISTINCT serie_season) FROM `episodes` WHERE tmdb_id = s.tmdb_id AND playlist_id = s.playlist_id AND group_id IN ({$groups})) AS `seasons`, FROM `series_tmdb` s WHERE user_id = '{$user_id}' AND tmdb_id IN (SELECT DISTINCT tmdb_id FROM `episodes` WHERE serie_name LIKE '{$search}' OR stream_tvg_name LIKE '{$search}') AND (SELECT count(*) FROM `episodes` WHERE tmdb_id = s.tmdb_id AND playlist_id = s.playlist_id AND group_id IN ({$groups})) > 0) AS series GROUP BY tmdb_id\");\n usort($series, function($a, $b) {\n return strtotime($b['tmdb']['first_air_date']) - strtotime($a['tmdb']['first_air_date']);\n });\n $result['series'] = $series;\n }\n if ($catchup === true) {\n\n }\n return $result;\n }", "title": "" }, { "docid": "a0a585dbf0e67d2abd48aa68a952b017", "score": "0.59690344", "text": "public function getMovies(){\n\t\ttry {\n\t\t\t$response = $this->basUrl()->get('films/');\n\t\t\t$response = $response->getBody();\n\t\t\t$apiResult = json_decode($response, true);\n\t\t\t$data = $apiResult['results'];\t\t\n\t\t\tforeach($data as $index => $key){\n\t\t\t\t$result[$index]['movie_name'] = $key['title'];\n\t\t\t\t$result[$index]['opening_crawl'] = $key['opening_crawl'];\n\t\t\t\t$result[$index]['release_date'] = $key['release_date'];\n\t\t\t\t$result[$index]['comment_count'] = $this->query->getCommentCount($key['episode_id']);\n\t\t\t}\n\t\t\treturn $result;\n\t\t} catch (ClientErrorResponseException $exception) {\n\t\t\treturn $exception->getResponse()->getBody(true);\n\t\t}\n\t}", "title": "" }, { "docid": "4d61e2b5e654f6655394da34522454ee", "score": "0.5919695", "text": "public function bycinematype() {\n \n \tif ($this->request->data) {\n \t\n \t// get the search terms from the post data\n \t$type = $this->request->data['type'];\n \t$state = $this->request->data['state'];\n \t\n \t// get a connection to the database\n \t$db = Connections::get('default');\n \t\n \t$results = array();\n \t\n \t$results = array_merge($results, $this->getFilmWeeklyByCinemaType($type, $state, $db));\n \t\n \t// save an activity log entry\n \t$log = array(\n \t\t'type' => 'browse-by-cinema-type',\n \t\t'notes' => $this->request->data['type'] . ' - ' . $this->request->data['state'],\n \t\t'timestamp' => date('Y-m-d H:i:s')\n \t);\n \t\n \t$activity = ActivityLogs::create($log);\n \t$activity->save();\n \t\n \t\treturn compact('results');\n }\n \n }", "title": "" }, { "docid": "7f56543a0e586e7ddca5b3325033235f", "score": "0.58587354", "text": "public function index() {\n \n if ($this->request->data) {\n \t\n \t// get the search terms from the post data\n \t$search = $this->request->data['search'];\n \t\n \t// get a connection to the database\n \t$db = Connections::get('default');\n \t\n \t$results = array();\n \t\n \t$results = array_merge($results, $this->getFilmWeekly($search, $db));\n \t\n \t// save an activity log entry\n \t$log = array(\n \t\t'type' => 'search',\n \t\t'notes' => $this->request->data['search'],\n \t\t'timestamp' => date('Y-m-d H:i:s')\n \t);\n \t\n \t$activity = ActivityLogs::create($log);\n \t$activity->save();\n \t \t\n \t\treturn compact('results');\n }\n }", "title": "" }, { "docid": "2ce96b61b192a348ab6c8fa839f5b9f9", "score": "0.57411706", "text": "public function advanced() {\n \n \tif ($this->request->data) {\n \t\n \t// get the search terms from the post data\n \t$search = $this->request->data['search'];\n \t\n \t// get a connection to the database\n \t$db = Connections::get('default');\n \t\n \t$results = array();\n \t\n \t$results = array_merge($results, $this->getFilmWeeklyAdvanced($search, $db));\n \t\n \t// save an activity log entry\n \t$log = array(\n \t\t'type' => 'adv-search',\n \t\t'notes' => $this->request->data['search'],\n \t\t'timestamp' => date('Y-m-d H:i:s')\n \t);\n \t\n \t$activity = ActivityLogs::create($log);\n \t$activity->save();\n \t \t\n \t\treturn compact('results');\n }\n \n }", "title": "" }, { "docid": "d7b6e4b26242d53c0ec16476a0bf35ea", "score": "0.569891", "text": "function searchWine()\n{\n if (isset ($_REQUEST ['searchWord'])) {\n include_once '../../Wine.php';\n $wine = new Wine ();\n\n $searchWord = $_REQUEST ['searchWord'];\n\n if ($result = $wine->searchWine($searchWord)) {\n $row = $result->fetch_assoc();\n echo '{\"result\":1, \"wines\": [';\n while ($row) {\n echo '{\"wine_id\": \"' . $row [\"wine_id\"] . '\", \"wine_name\": \"' . $row [\"wine_name\"] . '\",\n \"winery_name\": \"' . $row [\"winery_name\"] . '\", \"cost\": \"' . $row [\"cost\"] . '\",\n \"wine_type\": \"' . $row[\"wine_type\"] . '\", \"year\": \"' . $row[\"year\"] . '\"}';\n\n if ($row = $result->fetch_assoc()) {\n echo ',';\n }\n }\n echo ']}';\n } else {\n echo '{\"result\":0,\"status\": \"An error occurred for select product.\"}';\n }\n }\n}", "title": "" }, { "docid": "a0b584ca9dee53860530810965da1520", "score": "0.56826645", "text": "private function getFilmWeeklyMarkers() {\n \n \t$markers = array();\n \t\n \t$records = FilmWeeklyMarkers::all();\n \t\n \tforeach($records as $record) {\n \t\n \t\tif(empty($markers[$record->film_weekly_cinema_types_id])) {\n \t\t\n \t\t\t$markers[$record->film_weekly_cinema_types_id] = array(\n \t\t\t\t$record->locality_types_id => $record->marker_url\n \t\t\t);\n \t\t} else {\n \t\t\t$markers[$record->film_weekly_cinema_types_id][$record->locality_types_id] = $record->marker_url;\n \t\t}\n \t}\n \t\n \treturn $markers;\n \n }", "title": "" }, { "docid": "33cb84c48af6c916c9fa25ea3c4c6368", "score": "0.5650551", "text": "function getRecentSearch()\n{\n // token to authenticate the API request.\n $token_auth = \"69496b0a76704f1fe4258de87134ecd2\";\n\n // REST API to request keywords for the last month for the idsite=1\n $url = \"https://deco3801-team-lit.uqcloud.net/admin/admin/index.php\";\n $url .= \"?module=API&method=Actions.getSiteSearchKeywords\";\n $url .= \"&idSite=1&period=month&date=today\";\n $url .= \"&format=PHP&filter_limit=20\";\n $url .= \"&token_auth=$token_auth\";\n\n $fetched = file_get_contents($url);\n $content = unserialize($fetched);\n\n // case error\n if (!$content) {\n print(\"Error, content fetched = \" . $fetched);\n }\n\n // initialize loop variable and string variable\n $i=0;\n $recentSearch=\"\";\n\n // loop the retrieved keyword into table format\n foreach($content as $row){\n\n $keyword = htmlspecialchars(html_entity_decode(urldecode($row['label']), ENT_QUOTES), ENT_QUOTES);\n $hits = $row['nb_visits'];\n $searchKeyword = \"<td><a href='/includes/search.php?resourceType=SLQcollections&search=$keyword&itemType=Allitems&phasing=contain&location=anywhere'>$keyword</a></td>\";\n\n\n if ($i==0)\n $recentSearch.=(\"<tr>$searchKeyword\");\n\n $i++;\n\n if ($i==2 || $i==3) \n $recentSearch.=(\"$searchKeyword\");\n \n if ($i==4)\n {\n $recentSearch.=(\"$searchKeyword</tr>\");\n $i=0;\n }\n }return $recentSearch;\n}", "title": "" }, { "docid": "2360a6b7f4f30745862a3a35242c379b", "score": "0.56111777", "text": "public function search() {\n $query_terms = trim($_GET['query-terms']);\n\n //if search term is empty, list all movies\n if ($query_terms == \"\") {\n $this->index();\n }\n\n //search the database for matching movies\n $xboxs = $this->xbox_model->search_xbox($query_terms);\n\n if ($xboxs === false) {\n //handle error\n $message = \"An error has occurred.\";\n $this->error($message);\n return;\n }\n //display matched movies\n $search = new XboxSearch();\n $search->display($query_terms, $xboxs);\n }", "title": "" }, { "docid": "e97dc6aa5d78d70719e8568b5800b7e8", "score": "0.55784297", "text": "public function search() {\n\t\t\t$Recherches = $this->Components->load( 'WebrsaRecherchesFichesprescriptions93' );\n\t\t\t$Recherches->search();\n\t\t}", "title": "" }, { "docid": "7854e9283cd093a3cc53b48e546fb33e", "score": "0.55240554", "text": "function get_movie_movie_title($movie_title) {\n if ((!$movie_title) || ($movie_title == '')) {\n return false;\n }\n $conn = db_connect();\n $query = \"select distinct p.movie_id, p.title from played_in_movie p where p.title like '%\".$movie_title.\"%'\";\n $result = @$conn->query($query);\n if (!$result) {\n return false;\n }\n\n //create an array of the movies\n return db_result_to_array($result);\n}", "title": "" }, { "docid": "2db298f33f261784ca30b3f192f2f287", "score": "0.54992497", "text": "private function getFilmWeeklyByCinemaType($type, $state, $db) {\n \n \t$markers = $this->getFilmWeeklyMarkers();\n\n\t\t$records = FilmWeeklyCinemas::find(\n\t\t\t'all',\n\t\t\tarray (\n\t\t\t\t'fields' => array('id'),\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'film_weekly_cinema_types_id' => $type,\n\t\t\t\t\t'australian_states_id' => $state\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\t\t\n\t\t$cinemas = array();\n\t\t\n\t\tforeach($records as $record) {\n\t\t\n\t\t\t$cinemas[] = $record->id;\n\t\t}\n\t\t\n\t\treturn $this->getFilmWeeklyCinemas($cinemas, $markers);\n \n }", "title": "" }, { "docid": "6d8a90b919e64f131abd593de14d5966", "score": "0.5490369", "text": "public function getShowListByTitle() {\n $query = 'SELECT `title`,`performer`,DATE_FORMAT(`date`,\\'%e/%m/%Y\\') AS `date`,`startTime` FROM `shows` ORDER BY `title`';\n $queryResult = $this->db->query($query);\n return $queryResult->fetchAll(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "bb41702909d9d59caff9b4387dab39cd", "score": "0.5488787", "text": "public function index(Request $request) \n {\n $movieObj = new Movie;\n if(!empty($request->search)) {\n $search = $request->search;\n $movieObj = $movieObj->where(function($query) use($search){\n $query->where('title','LIKE',\"%$search%\")\n ->orWhere('overview','LIKE',\"%$search%\")\n ->orWhere('release_year','LIKE',\"%$search%\")\n ->orWhere('runtime','LIKE',\"%$search%\")\n ->orWhere('cast_mem','LIKE',\"%$search%\")\n ->orWhere('popular_movie','LIKE',\"%$search%\")\n ->orWhere('trending_movie','LIKE',\"%$search%\");\n });\n }\n return $movieObj->latest()->get();\n }", "title": "" }, { "docid": "bf3e5ec801cd2b771a7f2d85f29b45c8", "score": "0.54850334", "text": "public function getSearchclinicbyname(){\n\n\t\t\n\t\t$text = Input::get('clinic_name');\t//searching clinic name\n\t\t\n\t\t$town = Input::get('town_name');\t//searching town name\n\n\t\tif($text){\t\t\n\n\t\t\t$inactives = DB::table('schedules')\n\t\t\t\t\t\t->leftJoin('doctors', 'schedules.doctor_id', '=', 'doctors.id')\n\t\t\t\t\t\t->leftJoin('towns', 'schedules.town_id', '=', 'towns.id')\n\t\t\t\t\t\t->leftJoin('inactives', 'inactives.schedule_id', '=', 'schedules.id')\n\t\t\t\t\t\t->where('hospital', 'LIKE', '%'.$text.'%')\n\t\t\t\t\t\t->where('towns.name', 'LIKE', '%'.$town.'%')\n\t\t\t\t\t\t->select('start_time', 'end_time', 'schedules.doctor_id', 'town_id', 'day', 'doctors.name', 'towns.name', 'date', 'hospital')\n\t\t\t\t\t\t->get();\n\n\t\t\tif(sizeOf($inactives) > 0){\n\t\t\t\treturn $inactives;\n\t\t\t}\n\t\t\treturn 'No match';\n\t\t}\n\t}", "title": "" }, { "docid": "05c31021ed62716dcb5d07151d1ef851", "score": "0.5484239", "text": "function getFilms() {\n $cn = getConnection();\n $cn->consulta('SELECT * FROM peliculas ORDER BY fecha_lanzamiento desc');\n return $cn->restantesRegistros();\n}", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.54828227", "text": "public function search();", "title": "" }, { "docid": "0e14b8ef380174a9d14f32ccb53b89c6", "score": "0.5482378", "text": "function showResults($order, $date, $starttime, $endtime){\n\t\t// access conn variable globally for database connection\n\t\tglobal $conn;\t\t\n\t\t// get a list of each cinema \n\t\t$cinemaNames = mysqli_query($conn, \"SELECT DISTINCT cinema FROM cinemas\");\n\t\t// loop through results set \n\t\twhile($cinemas = mysqli_fetch_array($cinemaNames)){\n\t\t\t// save the cinema to a variable \n\t\t\t$cinema = $cinemas[0];\t\t\n\t\t\t// if order by title then construct the query to join the two tables where the criteria matches the parameters and order results by title \n\t\t\tif($order == \"title\"){\n\t\t\t\t$select = \"SELECT film, date, time, screen_type, avg_rating, runtime FROM Cinemas RIGHT JOIN films ON cinemas.filmId = films.filmId WHERE cinema = '$cinema' AND date LIKE '%$date%' AND time BETWEEN '$starttime' AND '$endtime'\";\t\n\t\t\t\t$buttonText = \"Order by time\";\n\t\t\t\t$buttonValue = \"time\";\n\t\t\t}\n\t\t\t// else order by time so construct the query to join the two tables where the criteria matches the parameters and order results by time\n\t\t\telse{\n\t\t\t\t$select = \"SELECT film, date, time, screen_type, avg_rating, runtime FROM Cinemas RIGHT JOIN films ON cinemas.filmId = films.filmId WHERE cinema = '$cinema' AND date LIKE '%$date%' AND time BETWEEN '$starttime' AND '$endtime' ORDER BY time, film\";\n\t\t\t\t$buttonText = \"Order by title\";\n\t\t\t\t$buttonValue = \"title\";\n\t\t\t}\n\t\t\t\n\t\t\t// run the query to return the appropriate rows\n\t\t\t$res = mysqli_query($conn, $select);\t\t\n\t\t\t// heading to show a summary of the search criteria \n\t\t\t$heading = $cinema . \"<br>\". \"Films on \". date_format(date_create($date), \"l d F\") .\" between \".date('H:i', $starttime).\n\t\t\t\" and \".date('H:i', $endtime);\t\t\t\t\t\n\t\t?>\n\t\t<div>\n\t\t\t<form method=\"post\">\n\t\t\t\t<input type=\"hidden\" name=\"date_format\" value=<?php echo $date; ?> />\n\t\t\t\t<input type=\"hidden\" name=\"start_time\" value=<?php echo $starttime; ?> />\n\t\t\t\t<input type=\"hidden\" name=\"end_time\" value=<?php echo $endtime; ?> />\n\t\t\t\t<label>Order results by: <input type=\"submit\" name=\"orderResults\" value=<?php echo $buttonValue; ?> /></label>\n\t\t\t</form>\n\t\t\t\n\t\t\t<h2><?php echo $heading ?></h2>\n\t\t\t<table>\n\t\t\t\t<tr>\n\t\t\t\t\t<th>Film</th>\n\t\t\t\t\t<th>Date</th>\n\t\t\t\t\t<th>Time</th> \n\t\t\t\t\t<th>Screen type</th>\n\t\t\t\t\t<th>Rating</th>\n\t\t\t\t\t<th>Runtime</th>\n\t\t\t\t</tr>\n\t\t\t\t<?php\n\t\t\t\t\t// loop through the results and display each column\n\t\t\t\t\twhile($row = mysqli_fetch_array($res)){\n\t\t\t\t?>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td> <?php echo htmlspecialchars_decode($row[0]); ?> </td>\n\t\t\t\t\t\t\t<td> <?php echo $row[1]; ?> </td>\n\t\t\t\t\t\t\t<td> <?php echo date('H:i', $row[2]); ?> </td>\n\t\t\t\t\t\t\t<td> <?php echo $row[3]; ?> </td>\n\t\t\t\t\t\t\t<td> <?php echo $row[4]; ?> </td>\n\t\t\t\t\t\t\t<td> <?php if($row[5] !== null) { \n\t\t\t\t\t\t\t\t\t echo $row[5] . \" minutes\";\n\t\t\t\t\t\t\t\t} ?> \n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t<?php\n\t\t\t\t\t}\t// end while row\n\t\t\t\t?>\n\t\t\t </table>\n\t\t</div>\t\n\t<?php\n\t\t}\t// end while cinemas\n\t}", "title": "" }, { "docid": "bf7b32863c8a25d2edb64c03e009fb44", "score": "0.54384315", "text": "function searchFilmByID($filmID,$encode=true){\n $statement=prepareQuery('SELECT * FROM Films WHERE FilmID= :FilmID');\n $array=array('FilmID'=>$filmID);\n $statement->execute($array);\n $result=$statement->fetch();\n $return=array();\n if ($result!=null){\n $return['id']=$result['FilmID'];\n $return['title']=$result['FilmTitle'];\n $return['episode_id']=$result['FilmEpisodeID'];\n $return['opening_crawl']=$result['FilmOpeningCrawl'];\n $return['director']=$result['FilmDirector'];\n $return['producer']=$result['FilmProducer'];\n $return['release_date']=$result['FilmReleaseDate'];\n $return['characters'][]=MSG_NOT_YET_DEVELOPED;\n $return['planets'][]=MSG_NOT_YET_DEVELOPED;\n $starshipsInTheFilm=getStarshipsOfFilm($result['FilmID']);\n foreach($starshipsInTheFilm as $starship){\n $return['starships'][]=$starship['StarshipURL'];\n }\n $vehiclesInTheFilm=getVehiclesOfFilm($result['FilmID']);\n foreach($vehiclesInTheFilm as $vehicle){\n $return['vehicles'][]=$vehicle['VehicleURL'];\n }\n $return['species'][]=MSG_NOT_YET_DEVELOPED;\n $return['created']=$result['FilmCreated'];\n $return['edited']=$result['FilmEdited'];\n $return['url']=$result['FilmURL'];\n }else{\n $return['detail']=MSG_NOT_FOUND;\n }\n \n return($encode?json_encode($return):$return);\n}", "title": "" }, { "docid": "c5cfbf09519f07e4349b334e6ff1c782", "score": "0.5434346", "text": "function getSearchTerms();", "title": "" }, { "docid": "d662a9529acfb2860a88a6c4b59c634b", "score": "0.5417668", "text": "public function showChineseMovies()\n {\n $calenderInfo = new CalenderModel();\n $sql = \"SELECT running_films.Film_Id, Film_Name, `LANGUAGE`, DATE_FORMAT(Run_Time, '%d-%M-%Y') AS Run_Date,Date_FORMAT(Run_Time,'%h:%i %p') AS Run_Time FROM `films`\n JOIN running_films\n ON films.Film_Id = running_films.Film_Id\n WHERE `LANGUAGE` = 'CHINESE'\";\n $calender = $calenderInfo->getCalenderDetail($sql);\n echo json_encode($calender);\n }", "title": "" }, { "docid": "5b506c56564a4599c8265237389a56c3", "score": "0.5401172", "text": "public function search() {\n $query_terms = trim($_GET['query-terms']);\n\n //if search term is empty, list all movies\n if ($query_terms == \"\") {\n $this->index();\n }\n\n //search the database for matching movies\n $boards = $this->board_model->search_board($query_terms);\n\n if ($boards === false) {\n //handle error\n $message = \"An error has occurred.\";\n $this->error($message);\n return;\n }\n //display matched movies\n $search = new BoardSearch();\n $search->display($query_terms, $boards);\n }", "title": "" }, { "docid": "16609a770d9863fe956935f893ef42ee", "score": "0.5397811", "text": "public static function search();", "title": "" }, { "docid": "3aded7bf8026676f1829b1a7c885a7e4", "score": "0.5397031", "text": "public function search()\n {\n return view('film.search');\n }", "title": "" }, { "docid": "6f09886d06de4ec276d8deb320f0e934", "score": "0.5394191", "text": "public function getSearchbydoctor() {\n\n\t\t$doc = Input::get('doc');\t//doctor name\n\t\t$location = Input::get('location'); // town name\n\n\t\t$town_arr = array();\n\t\t$schedules = array();\n\n\t\tif($doc) {\n\n\t\t\t$towns = DB::table('towns')\n\t\t\t\t\t\t->select('id')\n\t\t\t\t\t\t->where('name', 'LIKE', '%'.$location.'%')\n\t\t\t\t\t\t->get();\n\n\t\t\tforeach ($towns as $town) {\n\n\t\t\t\t$town_arr[] = $town->id;\n\t\t\t}\n\t\t\t\n\t\t\t$doctors = DB::table('doctors')\n\t\t\t\t\t\t\t->join('schedules', 'schedules.doctor_id', '=', 'doctors.id')\n\t\t\t\t\t\t\t->where('doctors.name', 'LIKE', '%'.$doc.'%')\n\t\t\t\t\t\t\t->where('active', 1)\n\t\t\t\t\t\t\t->whereIn('schedules.town_id',$town_arr)\n\t\t\t\t\t\t\t->groupBy('schedules.town_id', 'schedules.doctor_id')\n\t\t\t\t\t\t\t->get();\n\n\t\t\t//getting the schedules of the doctors\n\t\t\tforeach ($doctors as $key => $value) {\n\t\t\t\t\n\t\t\t\t$schedules[] = $this->schedule($value->doctor_id);\n\t\t\t}\n\n\t\t\tif($doctors) {\n\n\t\t\t\treturn $schedules;\n\t\t\t}\n\n\t\t\treturn 'No doctors found';\n\t\t} else {\n\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "77749ffc23f71ade41a9d6a0e84a4ce8", "score": "0.53826815", "text": "public function search() {\n debug($this->request->getQuery());\n $query = $this->Films->find('search', [\n 'search' => $this->request->getQuery()\n ]);\n \n debug($query);\n debug($query->all());\n die();\n }", "title": "" }, { "docid": "f3907d492394662959aaaf09bfda079a", "score": "0.53775615", "text": "public function showAllMovies(){\n $calenderInfo = new CalenderModel();\n $sql = \"SELECT running_films.Film_Id, Film_Name, `LANGUAGE`, DATE_FORMAT(Run_Time, '%d-%M-%Y') AS Run_Date,Date_FORMAT(Run_Time,'%h:%i %p') AS Run_Time FROM `films`\n JOIN running_films\n ON films.Film_Id = running_films.Film_Id\";\n $calender = $calenderInfo->getCalenderDetail($sql);\n echo json_encode($calender);\n }", "title": "" }, { "docid": "93cf0a7d69be933cbc71ce4947810adb", "score": "0.5359648", "text": "function searchMovies($mood) {\n $obj = json_decode($mood);\n //Run processMatch based on user input\n processMatch($obj->label1, $obj->label2, $obj->label3, $obj->label4);\n // function getMoviesByPreference. $orderedResult will have all the programmes in order of match levels.\n $orderedResult = getMoviesByPreference();\n\n //Take the first 5 programmes and echo out image path and name. This will be picked up by javascript\n for ($i = 0; $i < 5; $i++) {\n echo $orderedResult[$i]->image . \",\";\n echo $orderedResult[$i]->name . \";\";\n }\n}", "title": "" }, { "docid": "6c3bf6581bb25f70a728731cc588898c", "score": "0.53588825", "text": "private function getFilmWeeklyByState($state, $db) {\n \n \t$markers = $this->getFilmWeeklyMarkers();\n\n\t\t$records = FilmWeeklyCinemas::find(\n\t\t\t'all',\n\t\t\tarray (\n\t\t\t\t'fields' => array('id'),\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'australian_states_id' => $state\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\t\t\n\t\t$cinemas = array();\n\t\t\n\t\tforeach($records as $record) {\n\t\t\n\t\t\t$cinemas[] = $record->id;\n\t\t}\n\t\t\n\t\treturn $this->getFilmWeeklyCinemas($cinemas, $markers);\n \n }", "title": "" }, { "docid": "72fe7b2417508927d2bfef42f4091947", "score": "0.53585434", "text": "public function index(){\n\n\n\n $movies = Movie::searchMovie(request()->search)->searchCategory(request()->category)->paginate(5);\n\n $categories = category::all();\n\n return view(\"dashboard.movies.index\", compact('movies','categories'));\n }", "title": "" }, { "docid": "2754af41d404ac5bc9aab6bf9e5d187c", "score": "0.53490657", "text": "public function index() \n\t{\n\t\treturn Film::paginate(1);\n\t}", "title": "" }, { "docid": "761e36e2b2e30d38d0e2012789b0f305", "score": "0.5345716", "text": "public function generateClinics()\n {\n $search = request()->all();\n $statistics = [];\n \n if($search){\n\n $search['medic'] = (isset($search['medic'])) ? $search['medic'] : '';\n $search['clinic'] = (isset($search['clinic'])) ? $search['clinic'] : '';\n $search['date1'] = (isset($search['date1'])) ? $search['date1'] : '';\n $search['date2'] = (isset($search['date2'])) ? $search['date2'] : '';\n\n \n \n $statistics = $this->clinicRepo->reportsStatisticsAppointments($search);\n \n \n }\n \n return $statistics;\n }", "title": "" }, { "docid": "e1bfd29351e446e8bc58ae34b9799966", "score": "0.5336146", "text": "function getTheonionsNews($keyword, $per_page = 10)\r\n\t{\r\n\t\tif ( empty($keyword) || !is_string($keyword) ) return array();\r\n\t\t\r\n\t\t$TheonionsData = array();\r\n\t\t$num = 0;\r\n\t\t$keyword = $keyword;\t\r\n\t\t$theonion_url = \"http://www.theonion.com\";\r\n\t\t\r\n\t\t$this->_curlObj->createCurl('get',\"http://www.theonion.com/search/\",array('q' => $keyword));\r\n\t\t$html = $this->_curlObj->__toString();\r\n\t\t\r\n\t\t$htmlArray = explode('<ul id=\"archive_list\">', $html);\r\n\t\t$htmlArray = isset($htmlArray[1])?explode('<div id=\"pagination\">', $htmlArray[1]):'';\r\n\t\t$htmlArray = isset($htmlArray[0])?explode('</li>', $htmlArray[0]):'';\r\n\t\t\r\n\t\tif (!empty($htmlArray))\r\n\t\t{\r\n\t\t\tforeach ($htmlArray as $item)\r\n\t\t\t{\r\n\t\t\t\tif ($num == $per_page) break;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tif (strpos($item ,'class=\"with_image\"'))\r\n\t\t\t\t\t$reg = '#<h3><a href=\"(.*?)\">(.*?)</a></h3>.*?\\|.*?([\\d|.]*? )\\|.*? <p class=\"teaser\">\\n\\s+(.*)\\n\\s+<i>.*?<img src=\"(.*)\" w.*?/>#is';\r\n\t\t\t\telse \r\n\t\t\t\t\t$reg = '#<h3><a href=\"(.*)\">(.*)</a></h3>.*?\\|\\s*([\\d|.]*? )\\| .*?<p class=\"teaser\">\\n\\s+(.*)<i>.*?</p>#is';\r\n\t\t\t\t\t\r\n\t\t\t\tpreg_match($reg, $item, $matches);\t\r\n\t\t\t\t\r\n\t\t\t\tif (count($matches) == 5)\r\n\t\t\t\t{\r\n\t\t\t\t\t$TheonionsData[] = array(\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t'content_link' => $theonion_url.$matches[1],\r\n\t\t\t\t\t\t'content_title' => $matches[2],\r\n\t\t\t\t\t\t'content_time_start' => strtotime($matches[3]),\r\n\t\t\t\t\t\t'content_main_content' => $matches[4],\r\n\t\t\t\t\t\t'content_source' => 'theonions'\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t\telseif (count($matches) == 6)\r\n\t\t\t\t{\r\n\t\t\t\t\t$TheonionsData[] = array(\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t'content_link' => $theonion_url.$matches[1],\r\n\t\t\t\t\t\t'content_title' => $matches[2],\r\n\t\t\t\t\t\t'content_time_start' => strtotime($matches[3]),\r\n\t\t\t\t\t\t'content_main_content' => $matches[4],\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t'content_photo_src' => $matches[5],\r\n\t\t\t\t\t\t'content_source' => 'theonions'\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$num++;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\r\n\t\treturn $TheonionsData;\r\n\t}", "title": "" }, { "docid": "74d8a5d099295d841daf76c7f545473f", "score": "0.53328127", "text": "function search_sale_daily() {\n $this->load->model('Sale_daily');\n $term = $this->input->get('term');\n if (empty($term)) {\n return;\n }\n $parts = explode('/', $term);\n $term = $parts[2] . '-' . $parts[1] . '-' . $parts[0];\n $customer = $this->stock_lib->get_stock_out_customer();\n if (!empty($customer)) {\n $customer = $this->Customer->get_info_by_code($customer);\n $suggestions = $this->Sale_daily->get_search_suggestions($term, get_data($customer, 'id'), 100);\n echo json_encode($suggestions);\n }\n }", "title": "" }, { "docid": "79feb196e2a4cf31c1622dce839e7bdf", "score": "0.5319381", "text": "function ciniki_writingfestivals_winnerSearch($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 'start_needle'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Search String'),\n 'limit'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Limit'),\n ));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $args = $rc['args'];\n\n //\n // Check access to tnid as owner, or sys admin.\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'writingfestivals', 'private', 'checkAccess');\n $rc = ciniki_writingfestivals_checkAccess($ciniki, $args['tnid'], 'ciniki.writingfestivals.winnerSearch');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n\n //\n // Get the list of winners\n //\n $strsql = \"SELECT ciniki_writingfestival_winners.id, \"\n . \"ciniki_writingfestival_winners.festival_id, \"\n . \"ciniki_writingfestival_winners.category, \"\n . \"ciniki_writingfestival_winners.award, \"\n . \"ciniki_writingfestival_winners.sequence, \"\n . \"ciniki_writingfestival_winners.title, \"\n . \"ciniki_writingfestival_winners.author \"\n . \"FROM ciniki_writingfestival_winners \"\n . \"WHERE ciniki_writingfestival_winners.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND (\"\n . \"name LIKE '\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR name LIKE '% \" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \") \"\n . \"\";\n if( isset($args['limit']) && is_numeric($args['limit']) && $args['limit'] > 0 ) {\n $strsql .= \"LIMIT \" . ciniki_core_dbQuote($ciniki, $args['limit']) . \" \";\n } else {\n $strsql .= \"LIMIT 25 \";\n }\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQueryArrayTree');\n $rc = ciniki_core_dbHashQueryArrayTree($ciniki, $strsql, 'ciniki.writingfestivals', array(\n array('container'=>'winners', 'fname'=>'id', \n 'fields'=>array('id', 'festival_id', 'category', 'award', 'sequence', 'title', 'author')),\n ));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( isset($rc['winners']) ) {\n $winners = $rc['winners'];\n $winner_ids = array();\n foreach($winners as $iid => $winner) {\n $winner_ids[] = $winner['id'];\n }\n } else {\n $winners = array();\n $winner_ids = array();\n }\n\n return array('stat'=>'ok', 'winners'=>$winners, 'nplist'=>$winner_ids);\n}", "title": "" }, { "docid": "70d1041f2a25a11e3f7db910bc67e472", "score": "0.53059775", "text": "public function christmas_list() {\n $start_time = strtotime(\"2017-12-23\");\n $total = $this->t_teacher_christmas->get_total($start_time);\n $info = $this->t_teacher_christmas->get_all_list($start_time);\n\n foreach($info as &$item){\n // $userInfo = UserManage::getUserInfo($item['wx_openid']);\n // $item['wx_nick'] = @$userInfo['nickname'];\n $item['phone'] = substr($item['phone'],0,3).\"****\".substr($item['phone'],7);\n }\n\n\n\n\n return $this->pageView(__METHOD__, '', [\n 'total' => $total,\n \"info\" => $info\n ]);\n }", "title": "" }, { "docid": "aa6df7935fa2b783f91eeba7e9c209dd", "score": "0.53019595", "text": "public function search(){\n if( $search = \\Request::get('q') ){\n $perfumes = Perfume::where(function ($query) use ($search){\n $query->where('name', 'LIKE', \"%$search%\")\n ->orWhere('aroma', 'LIKE', \"%$search%\")\n ->orWhere('type', 'LIKE', \"%$search%\")\n ->orWhere('stock', 'LIKE', \"%$search%\");\n })->paginate(6);\n return $perfumes;\n }\n else{\n return Perfume::latest()->paginate(6);\n }\n \n }", "title": "" }, { "docid": "6d07b74d9f6b82781496dc2aea2fe0e3", "score": "0.52970964", "text": "public function getCurrentMovies(){\n $query = $this->getEntityManager()\n ->createQuery(\n 'SELECT p\n FROM CinheticPublicBundle:Movies p\n WHERE p.dateRelease >= :current\n AND p.visible = 1\n ORDER BY p.title ASC'\n )\n ->setParameters(\n array(\n 'current' => new \\Datetime('midnight'),\n ));\n\n return $query->getResult();\n }", "title": "" }, { "docid": "eacb689274b4b4145276a7d5f66fd339", "score": "0.52802455", "text": "function search()\n\t{\n\t\tif($_POST == NULL)\n\t\t\t$_POST['search'] = NULL;\n\t\t\n\t\t$data['title'] = 'Search Results';\n\t\t$data['search'] = $_POST['search'];\n\t\t$results = $this->media_model->search($_POST['search']);\n\t\t\n\t\t\n\t\t\n\t\t//Figure out which media belongs to who and what type they are\n\t\t$currentUser = $this->session->userdata('user_id');\n\t\t$data['books'] = array();\n\t\t$data['movies'] = array();\n\t\t$data['cds'] = array();\n\t\t\n\t\tforeach($results as $media)\n\t\t{\n\t\t\t$media['rating'] = $this->query->getAverageRating($media['media_id']);\n\t\t\t\n\t\t\tif($media['user_id'] == $currentUser)\n\t\t\t\t$media['thisUser'] = true;\n\t\t\telse\n\t\t\t\t$media['thisUser'] = false;\n\t\t\t\n\t\t\tif($media['type'] == 'book')\n\t\t\t\tarray_push($data['books'], $media);\n\t\t\tif($media['type'] == 'movie')\n\t\t\t\tarray_push($data['movies'], $media);\n\t\t\tif($media['type'] == 'cd')\n\t\t\t\tarray_push($data['cds'], $media);\n\t\t}\n\t\t\n\t\t\n\t\t$this->load->view('search_results', $data);\n\t}", "title": "" }, { "docid": "1cb97ba81f4ab4b7c19ff945674484e9", "score": "0.52726966", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n $criteria = Calendar::find();\n /* $criteria = new CDbCriteria( array(\n 'order' => 't.day asc',\n ) );*/\n\n $criteria->andFilterWhere([\n 'or',\n ['like', 'city', $this->city],\n ]);\n $criteria->andFilterWhere([\n 'or',\n ['like', 'day', $this->day],\n ]);\n $criteria->orderBy = 't.day asc';\n return new ActiveDataProvider( array(\n 'query' => $criteria,\n ) );\n }", "title": "" }, { "docid": "2e2c1671252f116cde8a5ecefd2779f0", "score": "0.52673393", "text": "public function index()\n {\n $movie = Movie::paginate(15);\n\n return movieresource::collection($movie);\n }", "title": "" }, { "docid": "c2263a09561fcfb695eae98ef1dc94d0", "score": "0.52531135", "text": "function index()\n {\n $search = isset($_POST[\"searchterm\"]) ? $_POST[\"searchterm\"] : '';\n $this->set('active','list');\n $this->set('search',$search);\n if($search)\n {\n $this->set('title','Results for '.$search . ' - Netflix Movies');\n $this->set('data',$this->Movie->search($search)); \n }\n else\n {\n $this->set('title','All Results - Netflix Movies');\n $this->set('data',$this->Movie->selectAll());\n }\n }", "title": "" }, { "docid": "010b3c5a683c777dbd0a40db403708da", "score": "0.525078", "text": "public function getSearchWords()\n\t{\n\t\t$aData = $this->getData(array(\n\t\t\t'dimensions' => 'ga:keyword',\n\t\t\t'metrics' => 'ga:visits',\n\t\t\t'sort' => 'ga:keyword'\n\t\t));\n\t\t// sort descending by number of visits\n\t\tarsort($aData);\n\t\treturn $aData;\n\t}", "title": "" }, { "docid": "269bd8e415c587712c0c2e24648760a0", "score": "0.5248206", "text": "function search() {\n include_once 'common.php';\n $search_words = trim($this->input->post('search'));\n $category = $this->News_Model->search($search_words);\n\n if (empty($category)) {\n $data['content'] = NULL;\n } else {\n foreach ($category as $row)\n $data['category'][] = $this->load->view('front/CAT_EACH_view', $row, TRUE);\n\n $data['content'] = 'front/CAT_view.php';\n }\n $this->load->view('front/TEMPLATE_view', $data);\n }", "title": "" }, { "docid": "f6c8bb8a53d5f3c76c948ce4c3ace871", "score": "0.5247", "text": "function search($params)\n\t{\n\t\tif ($this->debug) error_log('bocalendar::search('.print_r($params,true).')');\n\n\t\t// some defaults for xmlrpc\n\t\tif (!isset($params['date_format'])) $params['date_format'] = $this->xmlrpc_date_format;\n\t\tif (!isset($params['enum_recuring'])) $params['enum_recuring'] = false;\n\t\t// security precausion\n\t\tunset($params['ignore_acl']);\n\n\t\t$events =& $this->cal->search($params);\n\n\t\tforeach($events as $key => $event)\n\t\t{\n\t\t\t$events[$key] = $this->xmlrpc_prepare($event);\n\t\t}\n\t\treturn !$params['daywise'] ? array_values($events) : $events;\n\t}", "title": "" }, { "docid": "81da849ea33adad850e4c51c98a84e15", "score": "0.5244046", "text": "public function getFilms()\n {\n $registers = Register::where('vote_id', $this->voteId)->get();\n $films = Films::all();\n foreach ($registers as $register) {\n foreach ($films as $film) {\n if ($register->film_id == $film->id) {\n $result = $film->name_film;\n }\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "99465fcc1d14de8f5c710e19726fff24", "score": "0.52399105", "text": "public function fetchSearchResults($input) {\n \n $inputArray = explode(\" \", $input);\n\n // these settings are for the custom LengthAwarePaginator\n $currentPage = LengthAwarePaginator::resolveCurrentPage();\n $perPage = 30;\n\n $results = [];\n $pinyinResults = [];\n $translationResults = [];\n $actualResults = [];\n\n // Actual results, items that match exactly\n foreach ($inputArray as $inputItem) {\n\n $actualResults = \\App\\Character::where('char', $inputItem)\n ->orWhere('pinyin', $inputItem)\n ->orWhere('radical', $inputItem)\n ->orWhere('pinyin_normalised', $inputItem)->orderBy('freq', 'asc')->get();\n\n // for each result in the above collections, add to results array\n\n foreach($actualResults as $result) {\n if (! in_array($result, $results)) {\n array_push($results, $result);\n }\n }\n }\n\n // pinyin and char results using \"like\" operator\n foreach ($inputArray as $inputItem) {\n \n $pinyinResults = \\App\\Character::where('char', 'like', '%' . $inputItem .'%')\n ->orWhere('pinyin', 'like', '%' . $inputItem .'%')\n ->orWhere('radical', 'like', '%' . $inputItem .'%')\n ->orWhere('pinyin_normalised', 'like', '%' . $inputItem .'%')->orderBy('freq', 'asc')->get();\n\n // for each result in the above collections, add to results array\n\n foreach($pinyinResults as $result) {\n if (! in_array($result, $results)) {\n array_push($results, $result);\n }\n }\n }\n\n // translation and heisig results using \"like\" operator\n foreach ($inputArray as $inputItem) {\n\n $translationResults = \\App\\Character::where('heisig_keyword', 'like', '%' . $inputItem .'%')\n ->orWhere('translations', 'like', '%' . $inputItem .'%')\n ->orWhere('heisig_number', 'like', '%' . $inputItem .'%')->get();\n\n // for each result in the above collections, add to results array\n foreach($translationResults as $result) {\n if (! in_array($result, $results)) {\n array_push($results, $result);\n }\n }\n }\n \n // return the results array as a paginatior\n $results = collect($results);\n $results = new LengthAwarePaginator($results->forPage($currentPage, $perPage), $results->count(), $perPage, $currentPage, ['path' => \"/search/$input\"]);\n return $results;\n }", "title": "" }, { "docid": "45ab501bf4f7d86c92e617169cf8ffaa", "score": "0.5238369", "text": "function display_search_results($db, $searchtype, $searchterm, $operator = 'like'){\r\n\t$query = \"select distinct c.clinicname, c.clinicid, c.treatment, c.waitlistlength\r\n\t\tfrom clinics as c, doctors as d\r\n\t\twhere \".$searchtype.\" \".$operator.\" '\".$searchterm.\"'\r\n\t\tand c.clinicid = d.clinicid\r\n\t\torder by c.clinicid asc\";\r\n\r\n\t$result = mysqli_query($db, $query);\r\n\t$num_results = mysqli_num_rows($result);\r\n\r\n\techo \"<h2>Search Results</h2>\r\n\t\t <p><strong>Number of matching results found: \".$num_results.\"</strong></p><br/>\";\r\n\t\r\n\t$clinics = array();\r\n\tfor ($i = 1; $i <= $num_results; $i++){\r\n\t\t$row = mysqli_fetch_assoc($result);\r\n\t\tforeach($row as $key=>$value){\r\n\t\t\t$value = htmlspecialchars(stripslashes($value));\r\n/* \t\t\tif ($key == 'clinicname'){\r\n\t\t\t\tarray_push($clinics, $value.'+clinic');\r\n\t\t\t} */\r\n\t\t}\r\n\t\techo \"<table width=350 bgcolor=#cccccc cellpadding=10 cellspacing=0><tr><td>\r\n \t\t\t <p><strong>\".($i).\". Clinic: \".$row['clinicname'].\"</strong><br/>\r\n\t\t\t <br />Treatments: \".$row['treatment'].\"\r\n\t\t\t <br />Current number of waitlisted patients: \".$row['waitlistlength'].\"</p>\r\n\t\t\t </td></tr>\r\n\t\t\t <tr align=center bgcolor=white height=60><td>\r\n\t\t\t <a href = '/db_entry/doctors_profile.php?clinicid=\".$row['clinicid'].\"'>\r\n\t\t\t <img src='/images/doctorlist.png' width=102 height=30></a>\r\n\t\t\t <a href = '/clinic/wl_signup_form.php?clinicid=\".$row['clinicid'].\"'>\r\n\t\t\t <img src='/images/signup.png' width=85 height=30></a>\r\n\t\t\t </td></tr></table><br/><br/>\";\r\n\t}\r\n/* \t$clinics = implode(',', $clinics);\r\n\techo '<iframe width=\"600\" height=\"450\" frameborder=\"0\" style=\"border:0\"\r\n \tsrc=\"https://www.google.com/maps/embed/v1/search?key=AIzaSyDWOYkC4iLGVJqGxApuzetmYnQ7127cpcg\r\n \t&q='.$clinics.'+in+toronto+ON\">\r\n\t</iframe>'; */\r\n}", "title": "" }, { "docid": "fb918d06b47b25c2d81ff2735187a515", "score": "0.5235752", "text": "public function searchList() {\n\t\t$query = $this->input->post('search');\n\t\t$data = $this->videos_model->search($query);\n\t\techo json_encode($data);\n\t}", "title": "" }, { "docid": "cf67e50f4fff4772f59e78eb4ef6ed8a", "score": "0.5231478", "text": "public function searchFront(){\n if( $search = \\Request::get('q') ){\n $type = Perfume::findOrFail($search);\n $type = $type->type;\n $perfumes = Perfume::where(function ($query) use ($type){\n $query->where('type', 'LIKE', \"%$type%\");\n })->paginate(6);\n return $perfumes;\n }\n else{\n return Perfume::latest()->paginate(6);\n }\n \n }", "title": "" }, { "docid": "1ad40cad6fafa216caf2e29a8b1bd90d", "score": "0.5223685", "text": "public function getSearchResults()\n {\n global $mysqli, $_GET;\n $key = $mysqli->real_escape_string($_GET['key']);\n $results = array();\n\n $status[\"hidden\"] = \"versteckt\";\n $status[\"online\"] = \"online\";\n $status[\"offline\"] = \"offline\";\n $status[\"deleted\"] = \"gelöscht\";\n\n $searchData = \"AND `title` LIKE '%\" . $key . \"%'\";\n $search = \"SELECT id, title, status FROM `schools` WHERE status<>'deleted' AND (title<>'' OR title<>null) $searchData ORDER BY FIELD(status, 'online', 'hidden', 'offline', 'deleted'), title\";\n $rows = $mysqli->query($search);\n $shl_count = $rows->num_rows;\n if ($shl_count > 0) {\n $school_list = '';\n while ($school = $rows->fetch_array()) {\n $school_list .= '<tr><td><a href=\"edit_school.php?sid='.$school['id'].'\">' . $school['title'] . \" <small>(\" . $status[$school['status']] . ')</small></a></td></tr>';\n }\n if ($school_list != '') {\n $results[\"search_schools\"] = '<table class=\"table table-striped\"><thead><tr><th>Golfschulen</th></tr></thead><tbody class=\"searchable\"><tr class=\"no-data\"><td colspan=\"9\">No data in this page.</td></tr>' . $school_list . '</tbody></table>';\n }\n }\n\n $search_hotel = \"SELECT id, title, status FROM `hotels` WHERE status<>'deleted' AND (title<>'' OR title<>null) $searchData ORDER BY FIELD(status, 'online', 'offer', 'hidden', 'offline', 'deleted'), title\";\n $hotels = $mysqli->query($search_hotel);\n $htl_count = $hotels->num_rows;\n if ($htl_count > 0) {\n $hotel_list = '';\n while ($hotel = $hotels->fetch_array()) {\n $hotel_list .= '<tr><td><a href=\"edit_hotel.php?hid='.$hotel['id'].'\">' . $hotel['title'] . \" <small>(\" . $hotel['status'] . ')</small></a></td></tr>';\n }\n if ($hotel_list != '') {\n $results[\"search_hotels\"] = '<table class=\"table table-striped\"><thead><tr><th>Hotels</th></tr></thead><tbody class=\"searchable\"><tr class=\"no-data\"><td colspan=\"9\">No data in this page.</td></tr>' . $hotel_list . '</tbody></table>';\n }\n }\n\n return $results;\n }", "title": "" }, { "docid": "950b5b97ac2b6bee33f81fea8260d3be", "score": "0.5223541", "text": "private function getFilters()\r\n { \r\n $this->searchfilters = '';\r\n \r\n if ($this->streek != '')\r\n {\r\n $id = substr($this->streek, 1);\r\n \r\n if (substr($this->streek, 0, 1) == 's')\r\n {\r\n $this->streek_id = $id;\r\n $sql = \"SELECT streek_naam AS name FROM tblStreek WHERE streek_id = '$id'\";\r\n } \r\n else\r\n {\r\n $this->dept_id = $id;\r\n $sql = \"SELECT dpt.dept_naam AS name FROM tblDepts dpt WHERE dpt.dept_id = '$id'\";\r\n } \r\n \r\n $komma = 1;\r\n }\r\n \r\n if (isset($komma))\r\n {\r\n $name = $this->get_name($sql);\r\n $this->searchfilters .= $name;\r\n }\r\n \r\n /** aantal personen */\r\n if ($this->aantalpersonen != '' && $this->aantalpersonen != 0)\r\n { \r\n if (isset($komma))\r\n {\r\n $this->searchfilters .= ', ';\r\n } \r\n if ($this->aantalpersonen != '12-12')\r\n {\r\n $this->searchfilters .= $this->aantalpersonen . ' pers.';\r\n } \r\n else\r\n {\r\n $this->searchfilters .= 'vanaf 12 pers.';\r\n } \r\n $komma = 1; \r\n }\r\n \r\n /** aankomst */\r\n if ($this->aankomst != '')\r\n {\r\n $dt = new Datum();\r\n $tmp = strtotime($this->aankomst);\r\n $dt->setTmp($tmp);\r\n $datum = $dt->setFormat('dkdmlj');\r\n if (isset($komma))\r\n {\r\n $this->searchfilters .= ', ';\r\n } \r\n $this->searchfilters .= $datum.' ';\r\n \r\n if($this->weken == 1 || $this->weken == 0)\r\n {\r\n $this->searchfilters .= ', 1 week';\r\n }\r\n else \r\n {\r\n $this->searchfilters .= ', '.$this->weken.' weken'; \r\n }\r\n $komma = 1; \r\n } \r\n \r\n /** checkboxen */\r\n if ($this->count_checkbox != 0)\r\n {\r\n if (isset($komma)) $this->searchfilters .= ', ';\r\n \r\n for ($x = 0; $x < $this->arrcheckbox; $x++)\r\n {\r\n $str = $this->formatFac($this->arrcheckbox[$x]);\r\n $this->searchfilters .= $str.', ';\r\n }\r\n $komma = 1; \r\n // laatste komma weg\r\n $this->searchfilters = substr($this->searchfilters, 0, strlen($this->searchfilters)-2); \r\n } \r\n $this->searchfilters = 'Zoekfilters: '.$this->searchfilters;\r\n }", "title": "" }, { "docid": "e9764e273550b9ed017d696dbc28d1eb", "score": "0.5221336", "text": "public static function searchFoodCal($cal){\n\t\t$data=FoodEloquent::where('foodcal','LIKE',\"%\".$cal.\"%\")->get();\n\t\t$output=array();\n\t\t$size=count($data);\n\t\tfor ($a=0;$a<$size;$a++) {\n\t\t\t$output[$a]=$data[$a]->foodname;\n\t\t}\n\t\treturn $output;\n\t}", "title": "" }, { "docid": "41e0b0a76d7bb19a31de29727ee1d9d0", "score": "0.52148074", "text": "public function showEnglishMovies(){\n $calenderInfo = new CalenderModel();\n $sql =\"SELECT running_films.Film_Id, Film_Name, `LANGUAGE`, DATE_FORMAT(Run_Time, '%d-%M-%Y') AS Run_Date,Date_FORMAT(Run_Time,'%h:%i %p') AS Run_Time FROM `films`\n JOIN running_films\n ON films.Film_Id = running_films.Film_Id\n WHERE `LANGUAGE` = 'ENGLISH'\";\n $calender = $calenderInfo->getCalenderDetail($sql);\n echo json_encode($calender);\n }", "title": "" }, { "docid": "b4c604686e731ad11973a5ee255f7435", "score": "0.5212379", "text": "function sal_video_default_category_search_display($category, $got_to_page){\n\n $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;\n $current_page = ($got_to_page == '' || $got_to_page == 1 ? $paged : $got_to_page );\n\n $amount_per_page = 15;\n $posts_per_page = ( !empty($category) && $category !== 'all' ? -1 : $amount_per_page);\n\n //get the current offset to use with pagination\n $offset = ( $current_page == 1 ? 0 : $amount_per_page * ($current_page - 1) );\n\n $video_args = array( \n 'post_type' => 'portfolio', \n 'post_status' => 'publish',\n 'orderby' => 'date',\n 'order' => 'DESC',\n 'posts_per_page' => $posts_per_page, \n 'paged' => $paged,\n 'offset' => $offset\n );\n\n $all_video_args = array( \n 'post_type' => 'portfolio', \n 'post_status' => 'publish',\n 'orderby' => 'date',\n 'order' => 'DESC',\n 'posts_per_page' => -1, \n );\n\n if(!empty($category) && $category !== 'all'){\n $video_args['tax_query'] = array(\n array(\n 'taxonomy' => 'project-type',\n 'field' => 'slug',\n 'terms' => $category,\n ),\n );\n }\n\n $video_posts = get_posts( $video_args );\n\n $the_query = new WP_Query($video_args);\n $count = 0;\n $video_amount = count($video_posts);\n $all_videos_amount = count(get_posts( $all_video_args ));\n\n $last_page = ( ($amount_per_page * $current_page) >= $all_videos_amount ? true : false );\n $first_page = ( $current_page == 1 ? true : false );\n\n $prev_page = $current_page - 1;\n $next_page = $current_page + 1;\n\n if($video_amount > 0): ?>\n <div class=\"portfolio-wrap\">\n <div class=\"container\">\n <div class=\"row no-masonry\">\n\n <?php while ($the_query->have_posts()) : $the_query->the_post();\n $count++;\n $id = get_the_ID();\n $thumbnail_id = get_post_thumbnail_id();\n\n if( $thumbnail_id ) { \n list($portfolio_photo,$width,$height) = wp_get_attachment_image_src($thumbnail_id,'portfolio-thumb',false);\n }\n\n sal_video_html_grid_item($id, get_the_title(), $portfolio_photo);\n\n //add clearfixes to the rows based on the size of the browser.\n if($count % 2 == 0){\n echo '<div class=\"clearfix visible-xs-block\"></div>';\n }\n\n if($count % 3 == 0){\n echo '<div class=\"clearfix hidden-xs\"></div>';\n }\n\n endwhile;\n ?>\n </div>\n </div>\n </div>\n <?php if ($the_query->max_num_pages > 1 && ( empty($category) || $category == 'all') ): // check if the max number of pages is greater than 1. Don't show the page if there is a category filter. ?>\n <div id=\"pagination\" class=\" alt-style-padding\" data-is-text=\"All items loaded\">\n <?php echo (!$first_page ? '<div class=\"prev\"><a href=\"#\" data-page=\"' . $prev_page . '\">Prev</a></div>' : '' ); ?>\n <?php echo (!$last_page ? '<div class=\"next\"><a href=\"#\" data-page=\"' . $next_page . '\">Next</a></div>' : '' ); ?>\n </div>\n <div class=\"page-count\">page <?php echo $current_page . ' of ' . $all_videos_amount ?></div>\n <?php endif; ?>\n <?php endif; ?>\n \n \n<?php wp_reset_postdata();\n\n}", "title": "" }, { "docid": "b864588a841a52119fd2f9f408823123", "score": "0.5204528", "text": "function search($name)\n {\n return mysqli_query($this->conn,\n \"SELECT wine.*,category.* \n FROM `wine` \n INNER JOIN `category` ON category.category_id = wine.categoryid \n WHERE `name` like '%$name%' \n or `category_name` like '%$name%'\");\n }", "title": "" }, { "docid": "15648a195da11b66bb15de89ae70d6c5", "score": "0.52008986", "text": "function themeforesSearch($term) {\n\n $term = urlencode($term);\n\t\n // Check for cached result\n if (file_exists('_searches/' . $term . '.json')) {\n $json = file_get_contents('_searches/' . $term . '.json');\n \n\t// Cache lookup failed - fetch result from envato.com\n } else {\n $url = 'http://marketplace.envato.com/api/v3/search:themeforest,,' . str_replace('+', '|', $term) . '.json';\n \n $useragent = \"Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20100101 Firefox/15.0\";\n \n $curl = curl_init();\n curl_setopt($curl, CURLOPT_URL, $url);\n curl_setopt($curl, CURLOPT_HEADER, 0);\n curl_setopt($curl, CURLOPT_TIMEOUT, 30);\n curl_setopt($curl, CURLOPT_USERAGENT, $useragent);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n $json = curl_exec($curl);\n curl_close($curl);\n \n\t\t// API limit reached :( Switch to Wikipedia Results\n if (empty($json)) {\n return wikipediaSearch($term);\n }\n\t\t\n\t\t// Store result in cache\n file_put_contents('_searches/' . $term . '.json', $json);\n }\n \n $obj = json_decode($json);\n \n $results = array();\n $i = 0;\n\t\n foreach ($obj->search as $item) {\n\t\t// Ten results are enough\n if (++$i > 10) {\n continue;\n\t\t}\n\t\t\n\t\t// Store entry in results array\n $array = array(\n 'href' => $item->url . '?ref=Stammi',\n 'title' => $item->description,\n 'descr' => 'Price: $' . intval($item->item_info->cost),\n 'img' => $item->item_info->thumbnail\n );\n \n array_push($results, $array);\n }\n \n return $results;\n}", "title": "" }, { "docid": "b38afe4f4c9665c4f9e088249dc1a966", "score": "0.51972264", "text": "public function search(Request $request)\n {\n $query = $request->input('search');\n // Returns an array of articles that have the query string located somewhere within \n // our articles titles. Paginates them so we can break up lots of search results.\n $this->movies = Movie::where('title', 'LIKE', '%' . $query . '%')->get();\n \n // returns a view and passes the view the list of articles and the original query.\n return view('search_results', array('title' => 'Search Results','movies' => $this->movies));\n }", "title": "" }, { "docid": "24c5a8d02929bd0d25a0e3c517c14dd4", "score": "0.5196828", "text": "static function nev_search_videos(){\n $terms = trim($_GET['terms']);\n if ($terms == \"\"){$videos = nev_core::get_submitted_videos();}\n else{$videos = nev_core::videos_search($terms);}\n echo json_encode(array('videos' => $videos));\n exit;\n }", "title": "" }, { "docid": "28ac355f453da05483f978a71f00d502", "score": "0.5194821", "text": "private function search() {\n\t\tGLOBAL $db, $MYSQL_PREFIX, $TDTRAC_SITE;\n\t\t$keywords = $this->action['keywords'];\n\t\t\n\t\t$sqlwhere = \"( category LIKE '%\" . mysql_real_escape_string($keywords) . \"%' OR \"; \n\t\t$sqlwhere .= \"vendor LIKE '%\" . mysql_real_escape_string($keywords) . \"%' OR \"; \n\t\t$sqlwhere .= \"date = '\" . mysql_real_escape_string($keywords) . \"' OR \"; \n\t\t$sqlwhere .= \"dscr LIKE '%\" . mysql_real_escape_string($keywords) . \"%' )\";\n\t\t\n\t\t$sql = \"SELECT * FROM {$MYSQL_PREFIX}budget b, {$MYSQL_PREFIX}shows s WHERE b.showid = s.showid AND {$sqlwhere} ORDER BY b.showid DESC, category ASC, date ASC, vendor ASC\";\n\t\t$result = mysql_query($sql, $db);\n\t\t\n\t\t$html[] = \"<h3>Search Results</h3>\\n\";\n\t\tif ( mysql_num_rows($result) == 0 ) { return array_merge($html, array(\"<br /><br /><h4>No Records Found!</h4>\")); }\n\t\t\n\t\t$tabl = new tdtable(\"searchresult\");\n\t\t$tabl->addHeader(array('Show', 'Date', 'Category', 'Vendor', 'Description', 'Price', 'Tax'));\n\t\t$tabl->addSubtotal('Show');\n\t\t$tabl->addCurrency('Price');\n\t\t$tabl->addCurrency('Tax');\n\t\t$tabl->addAction(array('bpend','breim','rview'));\n\t\tif ( $this->user->can(\"editbudget\") ) { $tabl->addAction(array('bedit', 'bdel')); }\n\t\t\n\t\twhile( $line = mysql_fetch_array($result) ) {\n\t\t\t$tabl->addRow(array($line['showname'], $line['date'], $line['category'], $line['vendor'], $line['dscr'], $line['price'], $line['tax']), $line);\n\t\t}\n\t\treturn array_merge($html, $tabl->output(false));\n\t}", "title": "" }, { "docid": "7362b3ce3585bfca312b8f4c02908cec", "score": "0.5192587", "text": "function get_newswire_list()\n {\n $db_obj = new DB();\n $category_list_query=\"SELECT * FROM category WHERE newswire != 'n' order by order_num desc\";\n $result=$db_obj->query($category_list_query);\n return $result;\n }", "title": "" }, { "docid": "bbe0466d581fe7ab316ad192f1dedd5c", "score": "0.51818615", "text": "public function search_for_movie($query) {\n\t\t$params = array('query' => $query);\n\t\treturn $this->send_request('/search/movie', $params);\n\t}", "title": "" }, { "docid": "772bf85aef7a7186954e8b251f64705f", "score": "0.5178917", "text": "function bbp_search_results()\n{\n}", "title": "" }, { "docid": "4f18a976ff34e4039bfa38a29ff88653", "score": "0.51771045", "text": "abstract public function get_search_results($q);", "title": "" }, { "docid": "11ccae047137bd2508cff48f9747ccbe", "score": "0.5172257", "text": "public function getAllFilms () {\n\t\t$allmovies = $this->orm->films()->find();\n\t\t$returnedL = [];\n\t\tforeach ( $allmovies as $movie ) {\n\t\t $returnedL[] = $this->hydrateMovie( new Film, $movie );\t\n\t\t}\n\n\t\treturn $returnedL;\n\t}", "title": "" }, { "docid": "c153c03e7301b7c3a8cbbf7aedfc9d4a", "score": "0.517194", "text": "function getKeywords(){\n $xml = getHttpRequestXML(\"/keywords?order=byuse\");\n $noOfHits = sizeof($xml->xpath(\"/keywords/keyword\"));\n $terms = array();\n for ($x=1; $x <= $noOfHits; $x++) {\n $keyword = $xml->xpath(\"/keywords/keyword[\" . $x . \"]/name\");\n $count = $xml->xpath(\"/keywords/keyword[\" . $x . \"]/count\");\n array_push($terms, array(trim(ucfirst($keyword[0])), $count[0]));\n }\n return convertResults($terms);\n}", "title": "" }, { "docid": "ee5f280b2ae4631fa0e2250b2f7d3808", "score": "0.5171749", "text": "public function get_search()\n\t{\n\t\t// Capture the input criteria\n\t\t// \n\t\t$criteria = Input::query('criteria', function(){ return ''; });\n\n\t\t// Decode the criteria\n\t\t// \n\t\t$criteria = urldecode( $criteria );\n\n\t\t// Search the MSDS database\n\t\t// \n\t\t$search_results = Msds::where(function($where) use($criteria){\n\t\t\t$where->where('name', \t\t'like', \"%{$criteria}%\");\n\t\t\t$where->or_where('synonym', 'like', \"%{$criteria}%\");\n\t\t\t$where->where('active', '=', 1);\n\t\t})->get();\n\n\t\t// Return the results\n\t\t// \n\t\treturn Response::eloquent( $search_results );\n\t}", "title": "" }, { "docid": "fb6174526bb79c35aabeed694db1b8fe", "score": "0.5163952", "text": "public static function search () {\n $events = self::query ()\n ->fetch_orig ();\n\n foreach ($events as $i => $event) {\n $url = 'events/' . $event->id . '/' . URLify::filter ($event->title);\n if (! Search::add (\n $url,\n array (\n 'title' => $event->title,\n 'text' => $event->details,\n 'url' => '/' . $url\n )\n )) {\n return array (false, $i);\n }\n }\n\n return array (true, count ($events));\n }", "title": "" }, { "docid": "36351d0f90b0bb35d2fd8ffc7edd4593", "score": "0.5155981", "text": "public function get_results($search_term='default'){\n $this->db->select('*');\n $this->db->from('movie');\n $this->db->like('name', $search_term);\n // Execute the query.\n $query = $this->db->get();\n\n // Return the results.\n return $query->result_array();\n }", "title": "" }, { "docid": "de881c7a1741f286d9fe55b023963821", "score": "0.51523167", "text": "public function index()\n {\n return view('search', [\n 'series' => Serie::latest()->filter(request(['search', 'genre']))->get()->sortBy('id'),\n 'genres' => Genre::all(),\n 'currentGenre' => Genre::firstWhere('id', request('genre')),\n 'user' => User::find(auth()->id())\n ]);\n }", "title": "" }, { "docid": "a44e9d6f1f245d15ce852f7e11adb905", "score": "0.51475656", "text": "public static function getAllMovies() \r\n\t{\r\n\t\tself::connect();\r\n\t\t$result = NULL;\r\n\t\t$select = 'SELECT * FROM movies;';\r\n\t\t$sql = self::$conn->query($select);\r\n\t\twhile ($row = $sql->fetch_assoc())\r\n\t\t{\r\n\t\t\t$result[] = $row;\r\n\t\t}\r\n\t\treturn $result;\r\n\t}", "title": "" }, { "docid": "fce1a6e6ce4e1f58133d6b4b98baeff6", "score": "0.51465917", "text": "public function search() {\n //retrieves terms from the search box\n $query_terms = trim($_GET['query-terms']);\n \n //if search box is empty, all music are listed\n if ($query_terms == \"\") {\n $this->index();\n }\n \n //search for matching music titles in the database\n $musics = $this->music_model->search_music($query_terms);\n \n if ($musics == false) {\n \n //error display\n $message = \"There was an error in the search query.\";\n \n $this->error($message);\n \n return;\n \n }\n \n //matched music for display\n $search = new MusicSearch();\n $search->display($query_terms, $musics);\n \n }", "title": "" }, { "docid": "d5fbde64868ee8e987eb03fa18c69a15", "score": "0.5145907", "text": "public function search() {\n\t\t$input = $this->input->get('search');\n\t\t$videos = $this->videos_model->search($input);\n\t\t$data['userdata'] = $this->session->all_userdata();\n\t\t$data['videos'] = $videos;\n\t\t$data['heading'] = 'Search results for '. \"'\".$input.\"'\";\n\t\t$data['title'] = 'Search';\n\t\t$this->load->view('home', $data);\n\t}", "title": "" }, { "docid": "37a7b63471354f815721c0595dbd4e0f", "score": "0.51458013", "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": "1b1c75444a949bbd5e51d5f56d983b18", "score": "0.5143741", "text": "public function bysuburb() {\n \n \tif ($this->request->data) {\n \t\n \t// get the search terms from the post data\n \t$suburb = $this->request->data['suburb'];\n \t$state = $this->request->data['state'];\n \t\n \t// get a connection to the database\n \t$db = Connections::get('default');\n \t\n \t$results = array();\n \t\n \t$results = array_merge($results, $this->getFilmWeeklyBySuburb($suburb, $state, $db));\n \t\n \t// save an activity log entry\n \t$log = array(\n \t\t'type' => 'browse-by-suburb',\n \t\t'notes' => $this->request->data['suburb'] . ' - ' . $this->request->data['state'],\n \t\t'timestamp' => date('Y-m-d H:i:s')\n \t);\n \t\n \t$activity = ActivityLogs::create($log);\n \t$activity->save();\n \t\n \t\treturn compact('results');\n }\n \n }", "title": "" }, { "docid": "029419cd5132941bf88cc760b56dd715", "score": "0.5136748", "text": "public function search(Request $searchKey)\n {\n $config = Config::first();\n if ($config->age_restriction == 1) {\n if (Auth::user()) {\n # code...\n $user_id = Auth::user()->id;\n $user = User::findOrfail($user_id);\n $age = $user->age;\n } else {\n $age = 100;\n }\n }\n\n $all_movies = Movie::where('status', '1')->get();\n $all_tvseries = TvSeries::where('status', '1')->get();\n $searchKey = $searchKey->search;\n\n $tvseries = TvSeries::where('title', 'LIKE', \"%$searchKey%\")->where('status', 1)->get();\n $filter_video = collect();\n\n $tvseries = TvSeries::where('title', 'LIKE', \"%$searchKey%\")->where('status', 1)->get();\n\n foreach ($tvseries as $series) {\n $menuid = MenuVideo::where('tv_series_id', $series->id)\n ->get();\n\n if (isset($menus) && count($menus) > 0) {\n foreach ($menuid as $key => $value) {\n for ($i = 0; $i < sizeof($menus); $i++) {\n if ($value->menu_id == $menus[$i]) {\n $season = Season::where('tv_series_id', $series->id)\n ->get();\n if (isset($season)) {\n $filter_video->push($season[0]);\n }\n }\n }\n\n }\n } else {\n $season = Season::where('tv_series_id', $series->id)->get();\n if (isset($season)) {\n $filter_video->push($season[0]);\n }\n }\n\n }\n\n $movies = Movie::where('title', 'LIKE', \"%$searchKey%\")->where('status', '=', 1)->get();\n\n if (isset($movies) && count($movies) > 0) {\n foreach ($movies as $key => $movie) {\n $menuid = MenuVideo::where('movie_id', $movie->id)\n ->get();\n if (isset($menus) && count($menus) > 0) {\n foreach ($menuid as $key => $value) {\n for ($i = 0; $i < sizeof($menus); $i++) {\n if ($value->menu_id == $menus[$i]) {\n $filter_video->push($movies);\n }\n }\n\n }\n } else {\n $filter_video->push($movies);\n }\n\n }\n\n }\n\n // if search key is actor\n $actor = Actor::where('name', 'LIKE', \"%$searchKey%\")->first();\n if (isset($actor) && $actor != null) {\n foreach ($all_movies as $key => $item) {\n if ($item->actor_id != null && $item->actor_id != '') {\n $movie_actor_list = explode(',', $item->actor_id);\n for ($i = 0; $i < count($movie_actor_list); $i++) {\n $check = DB::table('actors')->where('id', '=', trim($movie_actor_list[$i]))->get();\n if (isset($check[0]) && $check[0]->name == $actor->name) {\n $filter_video->push($item);\n }\n }\n }\n }\n foreach ($all_tvseries as $key => $tv) {\n foreach ($tv->seasons as $key => $item) {\n if ($item->actor_id != null && $item->actor_id != '') {\n $season_actor_list = explode(',', $item->actor_id);\n for ($i = 0; $i < count($season_actor_list); $i++) {\n $check = DB::table('actors')->where('id', '=', trim($season_actor_list[$i]))->get();\n if (isset($check[0]) && $check[0]->name == $actor->name) {\n $filter_video->push($item);\n }\n }\n }\n }\n }\n }\n\n // if search key is director\n $director = Director::where('name', 'LIKE', \"%$searchKey%\")->first();\n if (isset($director) && $director != null) {\n foreach ($all_movies as $key => $item) {\n if ($item->director_id != null && $item->director_id != '') {\n $movie_director_list = explode(',', $item->director_id);\n for ($i = 0; $i < count($movie_director_list); $i++) {\n $check = DB::table('directors')->where('id', '=', trim($movie_director_list[$i]))->get();\n if (isset($check[0]) && $check[0]->name == $director->name) {\n $filter_video->push($item);\n }\n }\n }\n }\n }\n\n // if search key is genre\n $genre = Genre::where('name', 'LIKE', \"%$searchKey%\")->first();\n\n if (isset($genre) && $genre != null) {\n foreach ($all_movies as $key => $item) {\n if ($item->genre_id != null && $item->genre_id != '') {\n $movie_genre_list = explode(',', $item->genre_id);\n for ($i = 0; $i < count($movie_genre_list); $i++) {\n $check = Genre::where('id', '=', trim($movie_genre_list[$i]))->get();\n if (isset($check[0]) && $check[0]->name == $genre->name) {\n $filter_video->push($item);\n }\n }\n }\n }\n\n foreach ($all_tvseries as $key => $item) {\n if ($item->genre_id != null && $item->genre_id != '') {\n $tv_genre_list = explode(',', $item->genre_id);\n for ($i = 0; $i < count($tv_genre_list); $i++) {\n $check = Genre::where('id', '=', trim($tv_genre_list[$i]))->get();\n if (isset($check[0]) && $check[0]->name == $actor['name']) {\n $filter_video->push($item);\n }\n }\n }\n }\n }\n\n $filter_video = $filter_video->flatten();\n\n return view('search', compact('filter_video', 'searchKey', 'age'));\n }", "title": "" }, { "docid": "8183ab3ca65d43a83a808f04ce4da4f2", "score": "0.51360077", "text": "public function search()\n\t{\n return UnhlsPatient::search(Input::get('text'))->take(Config::get('kblis.limit-items'))->get()->toJson();\n\t}", "title": "" }, { "docid": "d200fa790d8204708fe28bf60dbfeecb", "score": "0.51245975", "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('magazine_id',$this->magazine_id,true);\n\t\t$criteria->compare('gallery_id',$this->gallery_id,true);\n $criteria->compare('filename',$this->filename,true);\n $criteria->compare('title',$this->title,true);\n $criteria->compare('publication_year',$this->publication_year);\n\t\t$criteria->compare('publication_month',$this->publication_month);\n//\t\t$criteria->compare('is_shown',$this->is_shown);\n// $criteria->order = 'publication_year DESC, publication_month DESC';\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n 'sort'=>array(\n 'defaultOrder'=>'publication_year DESC, publication_month DESC',\n )\n\t\t));\n\t}", "title": "" }, { "docid": "51f1b6b31917dd6fc86a019f25f0fdb5", "score": "0.51147854", "text": "private function getQueroworkar(): Collection\n {\n $opportunities = new Collection();\n $client = new Client();\n $crawler = $client->request('GET', 'http://queroworkar.com.br/blog/jobs/');\n $crawler->filter('.loadmore-item')->each(function ($node) use (&$opportunities) {\n $skipDataCheck = env('CRAWLER_SKIP_DATA_CHECK');\n /** @var Crawler $node */\n $client = new Client();\n $jobsPlace = $node->filter('.job-location');\n if ($jobsPlace->count()) {\n $jobsPlace = $jobsPlace->text();\n if (preg_match_all('#(Em qualquer lugar|Brasil)#i', $jobsPlace)) {\n $data = $node->filter('.job-date .entry-date')->attr('datetime');\n $data = explode('T', $data);\n $data = trim($data[0]);\n $data = new DateTime($data);\n $today = new DateTime('now', new DateTimeZone('America/Sao_Paulo'));\n if ($skipDataCheck || $data->format('Ymd') === $today->format('Ymd')) {\n $link = $node->filter('a')->first()->attr('href');\n $crawler2 = $client->request('GET', $link);\n $title = $crawler2->filter('.page-title')->text();\n $description = $crawler2->filter('.job-desc')->html();\n $description = str_ireplace(\n '(adsbygoogle = window.adsbygoogle || []).push({});',\n '',\n $description\n );\n $description .= \"\\n\\n*Como se candidatar:* \" . $link;\n\n $company = $crawler2->filter('.company-title')->text();\n $location = $crawler2->filter('.job-location')->text();\n\n $description = $this->sanitizeBody($description);\n $description = $this->addHashtagFilters($description);\n $title = $this->sanitizeSubject($title);\n\n $opportunity = new Opportunity();\n $opportunity->title = $title;\n $opportunity->description = $description;\n $opportunity->company = trim($company);\n $opportunity->location = trim($location);\n $opportunity->status = Opportunity::STATUS_ACTIVE;\n $opportunity->save();\n\n $opportunities->add($opportunity);\n }\n }\n }\n });\n return collect($opportunities);\n }", "title": "" }, { "docid": "67920128893b0c7f750597ba8da63894", "score": "0.5113373", "text": "function search($key)\r\n{\r\n // koneksi ke database\r\n mysql_connect('localhost', 'root', '');\r\n mysql_select_db('film');\r\n\r\n // query pencarian data mahasiswa\r\n $query = \"SELECT * FROM film WHERE idfilm = '$key' OR namafilm LIKE '%$key%' OR produser LIKE '%$key%'\";\r\n $hasil = mysql_query($query);\r\n while ($data = mysql_fetch_array($hasil))\r\n {\r\n // menyimpan data hasil pencarian dalam array\r\n $result[] = array('idfilm' => $data['idfilm'], 'namafilm' => $data['namafilm'], 'produser' => $data['produser']);\r\n }\r\n // mereturn array hasil pencarian\r\n return $result;\r\n}", "title": "" }, { "docid": "3713b21b96f185d007211eae4c7c5b51", "score": "0.5111513", "text": "function searchListMine($youtube, $part, $maxResults, $forMine, $q, $type) {\n $response = $youtube->search->listSearch(\n $part,\n array(\n 'maxResults' => $maxResults,\n 'forMine' => $forMine,\n 'q' => $q,\n 'type' => $type\n )\n );\n\n printResults($response);\n}", "title": "" }, { "docid": "72698b1093b072e7cc768ab16f8f8c89", "score": "0.51104474", "text": "function searchScholarMinYear($ThingToSearchFor, $year){\n\t\t\n\t\t//Create an array to hold values\n\t\t$chartArray = array();\n\t\t\n\t\t//While the submitted year is less then the current year\n\t\tfor(;$year <= date(\"Y\"); $year++){\n\n\t\t\t//get the value for the year\n\t\t\t$temp = searchScholar($ThingToSearchFor, $year);\n\n\t\t\t//add the year to the associative array\n\t\t\t$chartArray[$year] = $temp.\",\";\n\t\t}\n\t\n\t\t//build the charts array \n\t\tbuildChart($chartArray);\n\n\t}", "title": "" }, { "docid": "f6402ca3d187ed166e2c708493b9acaf", "score": "0.5106381", "text": "public function bylocality() {\n \n \tif ($this->request->data) {\n \t\n \t// get the search terms from the post data\n \t$locality = $this->request->data['locality'];\n \t$state = $this->request->data['state'];\n \t\n \t// get a connection to the database\n \t$db = Connections::get('default');\n \t\n \t$results = array();\n \t\n \t$results = array_merge($results, $this->getFilmWeeklyByLocality($locality, $state, $db));\n \t\n \t// save an activity log entry\n \t$log = array(\n \t\t'type' => 'browse-by-locality',\n \t\t'notes' => $this->request->data['locality'] . ' - ' . $this->request->data['state'],\n \t\t'timestamp' => date('Y-m-d H:i:s')\n \t);\n \t\n \t$activity = ActivityLogs::create($log);\n \t$activity->save();\n \t\n \t\treturn compact('results');\n }\n \n }", "title": "" }, { "docid": "b8b576e87e4c0a8bb37d79daa934d732", "score": "0.51028717", "text": "public function search($name) {\n\t\t// creates an Array of Show objects with basic information set (at a minimum: id + name to use in this->updateShow())\n\t\t// returns an Array of Show objects\n\t}", "title": "" }, { "docid": "8dd4a08f250c95bd55e252f931a6e427", "score": "0.51008666", "text": "public function search()\n {\n if (empty($_GET['search'])) {\n echo \"<script> alert('Não existem resultados!') </script>\";\n return [];\n } else {\n // verify if the search field is not empty\n if ($search = (!empty($_GET['search'])) ? $_GET['search'] : \"\") {\n // sql query to select activities by name\n $sql = 'SELECT * FROM activity WHERE name LIKE :search';\n } else {\n echo \"<script> alert('Não existem resultados!') </script>\";\n return [];\n }\n\n // create array of fields for the search field\n $fields = array('search' => $search.\"%\");\n // put the fields and the sql query + execute query\n $searchQuery = $this->query($sql, $fields);\n\n $rows = count($searchQuery);\n if ($rows <= 0) {\n echo \"<script> alert('Não existem resultados!') </script>\";\n return [];\n } else {\n return $searchQuery;\n }\n }\n }", "title": "" }, { "docid": "8db95c3781c2b4031948b8404a57fa12", "score": "0.5100015", "text": "function searchScholar($ThingToSearchFor, $year){\n\n\t\t//Replace any spaces with + signs for the url\n\t\t$formattedThingToSearchFor = str_replace(' ', '+', $ThingToSearchFor);\n\n\t\t//URL component parts\n\t\t//I am going to assume that google won't change there URL any time soon....\n\t\t$baseURL = 'https://scholar.google.com.au/scholar?q=\"';\n\t\t$yearlower = '\"&hl=en&as_sdt=0%2C5&as_ylo=';\n\t\t$yearHigh = '&as_yhi=';\n\n\t\t//Create the actual request\n\t\t$requestToMake = $baseURL.$formattedThingToSearchFor.$yearlower.$year.$yearHigh.$year;\n\n\t\t//sends off the request to get the page\n\t\t$html = file_get_contents($requestToMake);\n\t\t\n\t\t//gets the first instance of the phrase we want, we are using about to find the navbar \n\t\t$pos = stripos ($html , 'About');\n\n\t\t//remove everything before about inclusive and only give us the next 50 charters\n\t\t$total = substr ($html , $pos+6, 50);\n\n\t\t//find the end of our number by searching for the next element\n\t\t$sPos = stripos($total, '<b>');\n\n\t\t//remove everything after the number\n\t\t$output = substr($total, 0 ,$sPos-10);\n\n\t\t//remove the comma in the middle of the number and return just the number\n\t\treturn str_replace(',', '', $output);\n\t}", "title": "" }, { "docid": "1b15de0294fc4cb17af841446da0924f", "score": "0.5094377", "text": "public function getActiveMovies(){\n $query = $this->getEntityManager()\n ->createQuery(\n 'SELECT p\n FROM CinheticPublicBundle:Movies p\n WHERE p.dateRelease >= :current\n AND p.visible = 1\n ORDER BY p.title ASC'\n )\n ->setParameters(\n array(\n 'current' => new \\Datetime('midnight'),\n ));\n\n return $query;\n }", "title": "" }, { "docid": "928d3e6235374040fb928c0114e4a2b7", "score": "0.5094117", "text": "public function search_by_date( ) {\r\n\r\n $this->duration_range_select = array(\r\n\r\n 'this_month' => __( 'This Month' , 'woocommerce-ac' ),\r\n 'last_month' => __( 'Last Month' , 'woocommerce-ac' ),\r\n 'this_quarter' => __( 'This Quarter' , 'woocommerce-ac' ),\r\n 'last_quarter' => __( 'Last Quarter' , 'woocommerce-ac' ),\r\n 'this_year' => __( 'This Year' , 'woocommerce-ac' ),\r\n 'last_year' => __( 'Last Year' , 'woocommerce-ac' ),\r\n 'other' => __( 'Custom' , 'woocommerce-ac' ),\r\n );\r\n if ( isset( $_GET['duration_select'] ) ) {\r\n $duration_range = $_GET['duration_select'];\r\n }else{\r\n $duration_range = \"this_month\";\r\n }\r\n ?>\r\n <div class = \"main_start_end_date\" id = \"main_start_end_date\" >\r\n <div class = \"filter_date_drop_down\" id = \"filter_date_drop_down\" >\r\n <label class=\"date_time_filter_label\" for=\"date_time_filter_label\" >\r\n <strong>\r\n <?php _e( \"Select date range:\", \"woocommerce-ac\"); ?>\r\n </strong>\r\n </label>\r\n\r\n <select id=duration_select name=\"duration_select\" >\r\n <?php\r\n foreach ( $this->duration_range_select as $key => $value ) {\r\n $sel = \"\";\r\n if ( $key == $duration_range ) {\r\n $sel = __( \"selected \", \"woocommerce-ac\" );\r\n }\r\n echo\"<option value='\" . $key . \"' $sel> \" . __( $value,'woocommerce-ac' ) . \" </option>\";\r\n }\r\n ?>\r\n </select>\r\n <?php\r\n\r\n $start_date_range = \"\";\r\n if ( isset( $_GET['wcap_start_date'] ) ) {\r\n $start_date_range = $_GET['wcap_start_date'];\r\n }\r\n\r\n $end_date_range = \"\";\r\n if ( isset( $_GET['wcap_end_date'] ) ){\r\n $end_date_range = $_GET['wcap_end_date'];\r\n }\r\n $start_end_date_div_show = 'block';\r\n if ( !isset($_GET['duration_select']) || $_GET['duration_select'] != 'other' ) {\r\n $start_end_date_div_show = 'none';\r\n }\r\n ?>\r\n\r\n <div class = \"wcap_start_end_date_div\" id = \"wcap_start_end_date_div\" style=\"display: <?php echo $start_end_date_div_show; ?>;\" >\r\n <input type=\"text\" id=\"wcap_start_date\" name=\"wcap_start_date\" readonly=\"readonly\" value=\"<?php echo $start_date_range; ?>\" placeholder=\"yyyy-mm-dd\"/>\r\n <input type=\"text\" id=\"wcap_end_date\" name=\"wcap_end_date\" readonly=\"readonly\" value=\"<?php echo $end_date_range; ?>\" placeholder=\"yyyy-mm-dd\"/>\r\n </div>\r\n <div id=\"wcap_submit_button\" class=\"wcap_submit_button\">\r\n <?php submit_button( __( 'Go', 'woocommerce-ac' ), 'button', false, false, array('ID' => 'wcap-search-by-date-submit' ) ); ?>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <?php\r\n }", "title": "" }, { "docid": "ccd2de0f4bc4ef6c0c3a36a741d5b838", "score": "0.5089132", "text": "public static function search_AJAX_KEYWORD_Finder($key_qury, $filter, $per_page, $offset) {\n $database = new Database;\n\t $time_date= date(\"Y-m-d H:i:s\", time());\n\t $full_date= date(\"Y-m-d 00:00:00\", time());\n\t\t$tottal_array = '';\n \t// More Button\n\t\t$data='';\n $morequery= (!empty($per_page) || isset($offset)) ?\t\t$morequery=\"LIMIT {$per_page} OFFSET {$offset}\" : \"\";\t\n\t\t\t\t\n\t$tottal_array_query_start = \"SELECT *\tFROM (\";\n\t\t\n\t\t$union=\"\tUNION \";\n\t$events=\"SELECT EV.title AS title FROM appointment AS EV\n\t\t\t\t\tLEFT JOIN event_repeater EVR ON EVR.app_id_fk=EV.appointment_id\n\t\t\t\t\tWHERE EV.title LIKE '%{$key_qury}%'\n\t\t\t\t\tAND EVR.ev_start<='{$full_date}'\n\t\t\t\t\tAND EVR.ev_final>='{$full_date}'\n\t\t\t\t\tAND EV.ticketer>0\n\t\t\t\t\tGROUP BY title \n\t\t\t\t\";\n\t$companys=\"SELECT A.companyname AS title FROM company A\n\t\t\t\t\tWHERE A.companyname LIKE '%{$key_qury}%'\n\t\t\t\t\tAND A.active>0\n\t\t\t\t\tGROUP BY title \";\n\t\t\t\t\t\n\t$sales=\" SELECT title AS title FROM products\n\t\t\t\t\tWHERE title LIKE '%{$key_qury}%'\n\t\t\t\t\tAND end_date > '{$time_date}' AND approve>0 AND done=1 \n\t\t\t\t\tGROUP BY title \";\n\t$peoples=\"SELECT P.`firstname_entry` AS title FROM personal AS P\n\t\t\t\t\t\tINNER JOIN authors U on U.auid=P.author_id_fk \n\t\t\t\t\tWHERE P.firstname_entry LIKE '%{$key_qury}%' AND U.role>1\n\t\t\t\t\tGROUP BY title \";\n\t\n\t$bookings=\"SELECT IF( bs.group_name!='' ,bs.group_name, bs.slot_name) AS title \n\t\t\t\t\tFROM company A\n\t\t\t\t\tINNER JOIN booking_slots AS bs ON A.company_id = bs.comp_id_fk\n\t\t\t\t\tWHERE ( bs.group_name LIKE '%{$key_qury}%' OR bs.slot_name LIKE '%{$key_qury}%' )\n\t\t\t\t\tAND A.active>0 AND bs.approve>0 GROUP BY title \";\n\t\t\t\t\t\n\t$promotion =\"SELECT IF( pm_sp.spcl_title <>'', pm_sp.spcl_title, pm.title) AS title\n\t\t\t\t\t\tFROM promotion AS pm\n\t\t\t\t\t\tJoin( \tSELECT DATE_ADD('{$full_date}',INTERVAL (i2.i*10+i1.i) DAY) as Showdate\n\t\t\t\t\t\t\t\tFROM ints_multi i1 JOIN ints_multi i2\n\t\t\t\t\t\t\t\tWHERE (DATE_ADD('{$full_date}',INTERVAL (i2.i*10+i1.i) DAY)<='{$full_date}')\n\t\t\t\t\t\t\t ) B\n\t\t\t\t\tINNER JOIN promotion_timer pm_t ON pm_t.`pm_id_fk` = pm.`pm_id` \n\t\t\t\t\t\t\tAND MOD(DATEDIFF(pm_t.start_date, B.ShowDate), pm_t.repeater)=0\n\t\t\t\t\t\t\tAND ABS(MOD(DATEDIFF(pm_t.start_date, B.ShowDate), 7)) < pm_t.repeater_2\n\t\t\t\t\t\t\tAND B.ShowDate>=pm_t.start_date\n\t\t\t\t\tLEFT JOIN promotion_spcl pm_sp ON pm_sp.`pm_id_fk` = pm.`pm_id` AND DAYNAME( B.ShowDate ) = pm_sp.spcl_weeek_day\n\t\t\t\t\tWHERE ( pm.title LIKE '%{$key_qury}%' OR pm.details LIKE '%{$key_qury}%' ) AND \n\t\t\t\t\t\tpm.approve>0 GROUP BY title \";\n\n\t\t\n\t\n$tottal_array_query_end =\" \t)derivedTable {$morequery} \";\n\t\t\t$guery_final ='';$i=1;\n\tif (strpos($filter, 'all') !== false){\n\n\t\t$guery_final = $tottal_array_query_start.$sales.$union.$peoples.$union.$companys.$union.$events.$tottal_array_query_end;\n\n\t}else if (strpos($filter, 'all')=== false){\n\t\t\t$section_arr =array('sales', 'peoples', 'companys', 'events', 'bookings', 'promotion');\t//<----requrired filterd datas array....\n\t\t\t$filter_arr=explode('-',$filter);\t\t\t\t\t\t\t\t\t\t\t//<-----given filterdatas array\n\t\t\t$result_arr = array_diff($section_arr, $filter_arr);\t\t\t\t\t\t//<----compaire the difference\n\t\t\t\tforeach ($result_arr as $result){\n\t\t\t\t\t\tif(($key = array_search($result, $section_arr)) !== false) {\n\t\t\t\t\t\t\t\t\t\tunset($section_arr[$key]);\t\t\t\t\t\t//<----removing the unwanted valuea after compair\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t$guery_final.= $tottal_array_query_start;\n\t\t\tforeach ($section_arr as $section){\t\t\t\t\t\t\t//<----srot the each values as variable and then make the statement variable\n\t\t\t\t\t\t$guery_final.= $$section;\n\t\t\t\t\t\t\tif($i<count($section_arr)){\n\t\t\t\t\t\t\t\t$guery_final.= $union;\t\t\t\t\t//<---aad unnion variables\n\t\t\t\t\t\t\t}\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t$guery_final= $guery_final.$tottal_array_query_end;\t\t\n\t}\n\n\t\t$param_array=array(':key_qury' => $key_qury ); \n\t\t$totttal_array=$database->fetch_array_cached($guery_final, $param_array);\t \n\t\treturn !empty($totttal_array) ? ($totttal_array) : false;\n }", "title": "" }, { "docid": "87a4226be212747da2264c4cc80976b5", "score": "0.50866926", "text": "public function sfb_list_programs_by_season() {\n\n if (isset($_GET['start'])) {\n $start = \"'\" . $_GET['start'] . \"'\";\n if (isset($_GET['end'])) {\n $end = \"'\" . $_GET['end'] . \"'\" ;\n } else {\n $end = \"'8/1/2002'\";\n } \n } else {\n $start = \"'8/1/2002'\";\n $end = \"TODAY()\";\n }\n\n $start_year = 1991;\n $current_year = date(Y);\n\n $parsed_date = \"DATETIME_PARSE('8/1/2002', 'D MMM YYYY HH:mm')\";\n\n $query = \"?&sort[0][field]=Season&sort[0][direction]=asc&sort[1][field]=Date&sort[1][direction]=asc\";\n $query .= \"&filterByFormula=AND(IS_AFTER({Date}, \" . $start . \")\";\n $query .= \", IS_BEFORE({Date}, \" . $end . \"))\";\n\n $Programs = $this->query_airtable(\"Programs\",$query);\n\n\n echo \"<h2>Programs by Concert Season</h2>\";\n\n $prev_season = '';\n\n foreach($Programs as $index=>$this_program) {\n $fields = $this_program->fields;\n $this_season = $fields->Season;\n $program = $fields->ProgramDetails;\n $program_works = $fields->Works;\n $program_notes = $fields->ProgramNotes;\n\n $program_date = strtotime($this_program->fields->Date);\n $date = date('m', $program_date) . \"/\" . date('Y', $program_date);\n\n if ($this_season != $prev_season) { \n if ($prev_season > '') {\n echo \"<div style='clear: both'></div>\";\n echo \"</div> <!-- end table div -->\"; \n }\n\n echo \"<h3>\" . $this_season . \"</h3>\";\n echo \"<div class='sfb-programs-table'>\";\n $prev_season = $this_season;\n }\n\n echo \"<div class='sfb-program-archive-row'>\";\n\n echo \"<div style='float: left;'>\";\n echo $date;\n echo \"</div>\";\n\n echo \"<div style='width: 50%; float: left;'>\";\n echo $this_program->fields->Name;\n echo \"</div>\";\n\n echo \"<div style='float: left;'>\";\n if ($program == \"\") {\n echo \"&nbsp;\";\n } else {\n echo \"<a href='/programs-archive?program=\". $this_program->id . \"&view=Details'>Details</a>\";\n }\n \n echo \"</div>\";\n\n echo \"<div style='float: left;'>\";\n if ($program_works) {\n echo \"<a href='/programs-archive?program=\". $this_program->id . \"&view=Works'>Translations</a> \";\n } else {\n echo \"&nbsp;\";\n }\n echo \"</div>\";\n\n\n echo \"<div style='float: left;'>\";\n if ($program_notes != \"\") {\n echo \"<a href='/programs-archive?program=\". $this_program->id . \"&view=Notes'>Notes</a>\";\n }\n echo \"</div>\";\n echo \"<div style='clear: both'></div>\";\n echo \"</div> <!-- end row -->\";\n }\n\n if ($prev_season > '') {\n \n echo \"</div> <!-- end table div -->\"; \n }\n }", "title": "" }, { "docid": "bab3312946106155497b57741a3bfa6f", "score": "0.5085016", "text": "public function search(Request $request){\n $keyword = $request->input('search');\n $flowers = Flower::where('name', 'like', '%'.$keyword.'%')->orderBy('name','asc')\n ->paginate(10);\n return view('pages.index')->with('flowers', $flowers);\n }", "title": "" }, { "docid": "bc85debf1e737dcb5b91a0c6c20adf85", "score": "0.5083487", "text": "public function search (Request $request){\n $search = $request->input('search');\n \n // Search in the title and body columns from the posts table\n $comics = Comic::query()\n ->where('title', 'LIKE', \"%{$search}%\")\n ->orWhere('author', 'LIKE', \"%{$search}%\")\n ->orWhere('artist', 'LIKE', \"%{$search}%\")\n ->get();\n \n // Return the search view with the resluts compacted\n \n \n \n\n return view('series.search', compact('comics'));\n \n }", "title": "" }, { "docid": "83a6c59f04d7adc50b9abf21061d1964", "score": "0.5076101", "text": "function wikipediaSearch($term) {\n\n $term = urlencode($term);\n\t\n // Check for cached result\n if (file_exists('_searches/' . $term . '.xml')) {\n $xml = file_get_contents('_searches/' . $term . '.xml');\n \n // Cache lookup failed - fetch result from wikipedia.org\n } else {\n $url = 'http://en.wikipedia.org/w/api.php?action=opensearch&format=xml&limit=8&search=' . $term;\n \n $useragent = \"Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20100101 Firefox/15.0\";\n \n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\n curl_setopt($ch, CURLOPT_USERAGENT, $useragent);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $xml = curl_exec($ch);\n curl_close($ch);\n \n file_put_contents('_searches/' . $term . '.xml', $xml);\n }\n \n \n $xmlobj = new SimpleXMLElement($xml);\n \n $results = array();\n \n foreach ($xmlobj->Section->Item as $node) {\n\t\n\t\t// Store entry in results array\n $array = array(\n 'href' => (string) $node->Url,\n 'title' => (string) $node->Text,\n 'descr' => (string) $node->Description\n );\n \n if (isset($node->Image)) {\n $array['img'] = (string) @$node->Image[0]->attributes();\n }\n \n array_push($results, $array);\n }\n \n return $results;\n}", "title": "" }, { "docid": "6962d58d0e492668993343401a11561c", "score": "0.5069787", "text": "function searchListByKeyword($youtube, $part, $maxResults, $q, $type) {\n $response = $youtube->search->listSearch(\n $part,\n array(\n 'maxResults' => $maxResults,\n 'q' => $q,\n 'type' => $type\n )\n );\n\n printResults($response);\n}", "title": "" }, { "docid": "185967d9a59d9e55c86ca9d540e02dff", "score": "0.5064489", "text": "function search()\n\t{\n\t\t\n\t\tif (!isset($this->name))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\tif (!isset($this->start))\n\t\t{\n\t\t\t$this->start = 0;\n\t\t}\n\t\t\n\t\tif (!isset($this->num))\n\t\t{\n\t\t\t$this->num = 25;\n\t\t}\n\t\t\n\t\t$url = 'https://sccefile.scc.virginia.gov/Find/AjaxBusiness?searchTerm=' . $this->name\n\t\t\t. '&searchPattern=C&sEcho=1&iDisplayStart=' . $this->start . '&iDisplayLength=' . $this->num;\n\t\t\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_CONNECTTIMEOUT, TRUE);\n\t\tcurl_setopt($ch, CURLOPT_URL, $url);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n\t\t$allowed_protocols = CURLPROTO_HTTP | CURLPROTO_HTTPS;\n\t\tcurl_setopt($ch, CURLOPT_PROTOCOLS, $allowed_protocols);\n\t\tcurl_setopt($ch, CURLOPT_REDIR_PROTOCOLS, $allowed_protocols & ~(CURLPROTO_FILE | CURLPROTO_SCP));\n\t\t$this->json = curl_exec($ch);\n\t\tcurl_close($ch);\n\t\t\n\t\tif ($this->json === FALSE)\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\t/*\n\t\t * Turn the JSON into a PHP object.\n\t\t */\n\t\t$this->results = json_decode($this->json);\n\t\t\n\t\t/*\n\t\t * Remove records we don't need.\n\t\t */\n\t\tunset($this->results->sEcho);\n\t\tunset($this->results->iTotalDisplayRecords);\n\t\t\n\t\t/*\n\t\t * Rename \"iTotalRecords\" to \"count.\"\n\t\t */\n\t\t$this->results->count = $this->results->iTotalRecords;\n\t\tunset($this->results->iTotalRecords);\n\t\t\n\t\t/*\n\t\t * Rename \"aaData\" to \"results,\" and convert it from an array into an object.\n\t\t */\n\t\t$this->results->list = (object) $this->results->aaData;\n\t\tunset($this->results->aaData);\n\t\t\n\t\t/*\n\t\t * Iterate through each result and convert it into a keyed object.\n\t\t */\n\t\tforeach ($this->results->list as &$result)\n\t\t{\n\t\t\n\t\t\t$new = new stdClass();\n\t\t\t$new->number = strip_tags($result[1]);\n\t\t\t$new->name = strip_tags($result[2]);\n\t\t\t$new->type = $result[3];\n\t\t\t$new->status = $result[4];\n\t\t\t$result = $new;\n\t\t\t\n\t\t}\n\t\t\n\t\treturn TRUE;\n\n\n\t}", "title": "" } ]
93fa2dcbd0cbd77d7787dc047f2846ca
Get the model events to audit.
[ { "docid": "93b3e8094f52d04afa36a9f64e746b80", "score": "0.7980152", "text": "protected static function getModelEvents()\n {\n if (isset(static::$auditEvents)) {\n return static::$auditEvents;\n }\n\n return [ 'created', 'deleted', 'updated' ];\n }", "title": "" } ]
[ { "docid": "a1eb2dc8fc541ecb4cb5b1faecd37d88", "score": "0.66491276", "text": "public function getEvents()\n {\n return $this->get('events', array());\n }", "title": "" }, { "docid": "f18f50c91e89ce925650479c2a3f982f", "score": "0.6614159", "text": "public function events()\n\t{\n\t\t$events = $this->attributes;\n\t\tforeach ($events as $i => $event) {\n\t\t\t$events[$i] = 'updateTimestamp';\n\t\t}\n\t\treturn $events;\n\t}", "title": "" }, { "docid": "893797a11a66b83e50eaef1c5cbb20e3", "score": "0.6566515", "text": "public function getEvents()\n {\n return $this->events;\n }", "title": "" }, { "docid": "893797a11a66b83e50eaef1c5cbb20e3", "score": "0.6566515", "text": "public function getEvents()\n {\n return $this->events;\n }", "title": "" }, { "docid": "893797a11a66b83e50eaef1c5cbb20e3", "score": "0.6566515", "text": "public function getEvents()\n {\n return $this->events;\n }", "title": "" }, { "docid": "893797a11a66b83e50eaef1c5cbb20e3", "score": "0.6566515", "text": "public function getEvents()\n {\n return $this->events;\n }", "title": "" }, { "docid": "893797a11a66b83e50eaef1c5cbb20e3", "score": "0.6566515", "text": "public function getEvents()\n {\n return $this->events;\n }", "title": "" }, { "docid": "893797a11a66b83e50eaef1c5cbb20e3", "score": "0.6566515", "text": "public function getEvents()\n {\n return $this->events;\n }", "title": "" }, { "docid": "893797a11a66b83e50eaef1c5cbb20e3", "score": "0.6566515", "text": "public function getEvents()\n {\n return $this->events;\n }", "title": "" }, { "docid": "893797a11a66b83e50eaef1c5cbb20e3", "score": "0.6566515", "text": "public function getEvents()\n {\n return $this->events;\n }", "title": "" }, { "docid": "874e180511b2f17465b4d58d44959ce3", "score": "0.6520895", "text": "private function getEvents()\n\t{\n\t\treturn $this->events;\n\t}", "title": "" }, { "docid": "d8a4f899bd86d53e628b61c029c84bec", "score": "0.6517572", "text": "public function getEvents() {\n\t\treturn $this->events;\n\t}", "title": "" }, { "docid": "58d53dbd644192553b5cd1d0758e344f", "score": "0.6498057", "text": "function get_events() {\n\t\treturn $this->events;\n\t}", "title": "" }, { "docid": "d4c670ee2c2512ecbf11fe91f44179c7", "score": "0.6398305", "text": "public function getEvents() {\r\n return $this->_events;\r\n }", "title": "" }, { "docid": "cf15ee9e5537c792a5ca4641c950cf69", "score": "0.6366296", "text": "public function getEvents();", "title": "" }, { "docid": "5de002d92bb6c1813ebe9cf9255c23c1", "score": "0.6365289", "text": "public function getEvents() {\n\t\treturn $this->_events;\n\t}", "title": "" }, { "docid": "f3b3308d264e08d07314d5dbc00e2e6a", "score": "0.628952", "text": "public static function getEvents()\n {\n return array(\n self::ON_CHANGE,\n );\n }", "title": "" }, { "docid": "9133d829a056f50e47347f1e2c4f1c1b", "score": "0.6288461", "text": "public function getAllEvent()\n {\n // body\n $all_trails = FootPrint::orderBy(\"created_at\", \"DESC\")->get();\n $audit_box = [];\n foreach ($all_trails as $key => $value) {\n $user = User::where(\"id\", $value->EventBy)->first();\n $value->EventByID = $user->id;\n $value->EventBy = $user->profile->fullname;\n $value->EventEmail = $user->email;\n $value->EventBrowser = $this->resolvePlatform($value->EventBrowser);\n array_push($audit_box, $value);\n }\n\n return $audit_box;\n }", "title": "" }, { "docid": "3d91ae876dbc96bfe6eb37299a1c9d0c", "score": "0.62625617", "text": "function getAllLogEvents() {\n $sql = \"SELECT * FROM \\\"LogEvents\\\" ORDER BY \\\"ID\\\";\";\n return $this->getLogEventsImpl($sql);\n }", "title": "" }, { "docid": "3fa0df6bfd52f627cc61de7b7bfd312f", "score": "0.62483394", "text": "public function getEvents(): array\n\t{\n\t\treturn $this->events;\n\t}", "title": "" }, { "docid": "21716d7b3cd730614aff912421e8b109", "score": "0.62458396", "text": "public function getAudits() {\n\t\t// sestaveni seznamu id auditu\n\t\t$auditIds = array(0);\n\t\t\n\t\tforeach ($this as $item) {\n\t\t\t$auditIds[] = $item->audit_id;\n\t\t}\n\t\t\n\t\t$tableAudit = new Audit_Model_Audits();\n\t\t\n\t\treturn $tableAudit->find($auditIds);\n\t}", "title": "" }, { "docid": "78daa63ca0417cfd27b3271051754a95", "score": "0.6189928", "text": "public function events()\n\t{\n\t\treturn [\n\t\t\tActiveRecord::EVENT_AFTER_FIND => 'found',\n\t\t\tActiveRecord::EVENT_AFTER_INSERT => 'inserted',\n\t\t\tActiveRecord::EVENT_AFTER_UPDATE => 'updated',\n\t\t\tActiveRecord::EVENT_AFTER_VALIDATE => 'validated',\n\t\t\tActiveRecord::EVENT_AFTER_REFRESH => 'refreshed',\n\t\t\tActiveRecord::EVENT_AFTER_DELETE => 'deleted',\n\t\t\tActiveRecord::EVENT_BEFORE_INSERT => 'inserting',\n\t\t\tActiveRecord::EVENT_BEFORE_UPDATE => 'updating',\n\t\t\tActiveRecord::EVENT_BEFORE_VALIDATE => 'validating',\n\t\t\tActiveRecord::EVENT_BEFORE_DELETE => 'deleting',\n\t\t\tActiveRecord::EVENT_INIT => 'initialized',\n\t\t];\n\t}", "title": "" }, { "docid": "85fd91f4097227b78a3b4ba0f68a9e6b", "score": "0.61895144", "text": "public function events() {\n return [\n Model::EVENT_AFTER_VALIDATE => 'validateIdList',\n ActiveRecord::EVENT_AFTER_FIND => 'loadIdList',\n ActiveRecord::EVENT_AFTER_INSERT => 'saveRelation',\n ActiveRecord::EVENT_AFTER_UPDATE => 'saveRelation',\n ];\n }", "title": "" }, { "docid": "5633fd61e1d5099f3106a87d544f4b45", "score": "0.61459446", "text": "public function getAuditEvents($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collAuditEvents || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collAuditEvents) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initAuditEvents();\n\t\t\t} else {\n\t\t\t\t$collAuditEvents = AuditEventQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUser($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collAuditEvents;\n\t\t\t\t}\n\t\t\t\t$this->collAuditEvents = $collAuditEvents;\n\t\t\t}\n\t\t}\n\t\treturn $this->collAuditEvents;\n\t}", "title": "" }, { "docid": "c6e27c8b0a544668011612a48f8391c6", "score": "0.614426", "text": "public function all()\n {\n return $this->events;\n }", "title": "" }, { "docid": "1cf9a99df30ee50bc4d835a91a7cb051", "score": "0.6125128", "text": "public function get_events()\n\t{\n\t\treturn $this->_api_fetch_collection(\n\t\t\t\t\"issues/events\", \n\t\t\t\t'Github_Repo_Issue_Event');\n\t}", "title": "" }, { "docid": "7672a5bea7bc60f162d220f160648aea", "score": "0.60621", "text": "public function events() {\n\t\t\treturn array(\n\t\t\t\t\"after-construct\" => array( static::AFTER_CONSTRUCT, array( $this, \"afterConstruct\" ) ),\n\t\t\t\t\"after-delete\" => array( static::AFTER_DELETE, array( $this, \"afterDelete\" ) ),\n\t\t\t\t\"after-find\" => array( static::AFTER_FIND, array( $this, \"afterFind\" ) ),\n\t\t\t\t\"after-save\" => array( static::AFTER_SAVE, array( $this, \"afterSave\" ) ),\n\t\t\t\t\"before-delete\" => array( static::BEFORE_DELETE, array( $this, \"beforeDelete\" ) ),\n\t\t\t\t\"before-save\" => array( static::BEFORE_SAVE, array( $this, \"beforeSave\" ) ),\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "f704564d12213ac6d51844e8542ed531", "score": "0.60507786", "text": "public function getEvent()\n {\n return $this->getData('event');\n }", "title": "" }, { "docid": "bca473a174e9c2c45f9d5fc408c909c4", "score": "0.60463023", "text": "public function visitingEvents()\n\t{\n\t\treturn $this->attending()->with('event')->get();\n\t}", "title": "" }, { "docid": "800f12fb36c408a78d71ba5876bc744d", "score": "0.6044339", "text": "public function getEvent()\n {\n return $this->get(self::EVENT);\n }", "title": "" }, { "docid": "96860c3444412be43d05f699887de5e9", "score": "0.60408735", "text": "public function getObservableEvents()\n {\n return array_merge(\n [\n 'creating', 'created', 'updating', 'updated',\n 'deleting', 'deleted', 'saving', 'saved',\n 'restoring', 'restored',\n ],\n $this->observables\n );\n }", "title": "" }, { "docid": "e328129a8b23d1140fd36ab01ef5efe9", "score": "0.6027734", "text": "protected function getRetrievedEventAttributes(): array\n {\n // This is a read event with no attribute changes,\n // only metadata will be stored in the Audit\n\n return [\n [],\n [],\n ];\n }", "title": "" }, { "docid": "7aed38a800115bd9a0d0bc1b456411af", "score": "0.59609133", "text": "function getEvents() {\n\n $events = ['new' => __('New project'),\n 'update' => __('Update of a project'),\n 'delete' => __('Deletion of a project')];\n asort($events);\n return $events;\n }", "title": "" }, { "docid": "2f4ecea6e6730168de7a02538a39720d", "score": "0.5956438", "text": "public function getAuditResults() {\n return $this->results->getValues();\n }", "title": "" }, { "docid": "3004f030c1d43855780b74a235b40308", "score": "0.5954217", "text": "public function getObservableEvents();", "title": "" }, { "docid": "885f4fa38fe8682f8d2c773afa3098a5", "score": "0.59423596", "text": "public function getAll(){\n return Event::all();\n }", "title": "" }, { "docid": "a38313793906ed4db92de5a4d21a9f0c", "score": "0.5939738", "text": "public function auditRecords()\n {\n return $this->hasMany('App\\Models\\Order\\OrderStatusRecord');\n }", "title": "" }, { "docid": "d24221364d8c301854aa5f9f5c32c115", "score": "0.5937466", "text": "public function getEvents()\n {\n return [\n 'before' => ['beforeListener', 'first'],\n ];\n }", "title": "" }, { "docid": "3ee45c44f77d48eb58eebc3eceda20e6", "score": "0.59323597", "text": "public function getAuditLogConfigs()\n {\n return $this->audit_log_configs;\n }", "title": "" }, { "docid": "695f11d28397412cec1c76e5718b9851", "score": "0.5921831", "text": "public function getCompatibleEvents()\n {\n return array(\n TaskModel::EVENT_CREATE_UPDATE ,\n );\n }", "title": "" }, { "docid": "0f9b0983eedaf9a6700023fd093c5a4c", "score": "0.59174645", "text": "public function getAuditLog()\n\t\t{\n\t\t\tif ($this->audit_log === NULL)\n\t\t\t{\n\t\t\t\t$this->audit_log = new ECash_Application_AuditLog($this->db, $this);\n\t\t\t}\n\n\t\t\treturn $this->audit_log;\n\t\t}", "title": "" }, { "docid": "b92853399bf9fdbf625074f605aee7ed", "score": "0.59021354", "text": "public function events() {\n $events = parent::events();\n $events += array(\n 'lineItemUpdated',\n );\n return $events;\n }", "title": "" }, { "docid": "208047ddde2ea2de37d078eba36dec54", "score": "0.58990335", "text": "protected static function bootAuditsTrait()\n {\n foreach (static::getModelEvents() as $event) {\n static::$event(function ($model) use ($event) {\n $model->auditActivity($event);\n });\n }\n }", "title": "" }, { "docid": "39ada852d33a234bcbbf7fef3b714fbe", "score": "0.58890146", "text": "public function auditAction() {\n $audit = new FindsAudit();\n $this->view->audit = $audit->getChange($this->_getParam('id'));\n }", "title": "" }, { "docid": "b5ef20567615bbb1ddfcbd83539c74d4", "score": "0.588671", "text": "public function getAuditAttribute()\n {\n return $this->run->audit;\n }", "title": "" }, { "docid": "74f6a94cba20877e66fbb1e3c62d9aa0", "score": "0.5882422", "text": "public function getFetchEvents()\n {\n return $this->fetch_events;\n }", "title": "" }, { "docid": "4d7d1cd4ed895fbcd3dd349b179255a1", "score": "0.5877408", "text": "public function getEvents(): array;", "title": "" }, { "docid": "e071a840d2d20e76e616a07222de7152", "score": "0.58469194", "text": "function getEvents() {\n\t$alluser = new Event();\n\t$alluser->getAllEvents();\n}", "title": "" }, { "docid": "d4de2213d0f51d338ecc29a672ef93e2", "score": "0.58302736", "text": "public function getEvent()\n {\n return $this->event;\n }", "title": "" }, { "docid": "d4de2213d0f51d338ecc29a672ef93e2", "score": "0.58302736", "text": "public function getEvent()\n {\n return $this->event;\n }", "title": "" }, { "docid": "d4de2213d0f51d338ecc29a672ef93e2", "score": "0.58302736", "text": "public function getEvent()\n {\n return $this->event;\n }", "title": "" }, { "docid": "d4de2213d0f51d338ecc29a672ef93e2", "score": "0.58302736", "text": "public function getEvent()\n {\n return $this->event;\n }", "title": "" }, { "docid": "9358285cd8b9505ff41eafafbc4f8c40", "score": "0.5812988", "text": "public function implementedEvents()\n {\n $events = [\n 'Model.beforeFind' => ['callable' => 'beforeFind', 'priority' => 15],\n 'Model.beforeSave' => ['callable' => 'beforeSave', 'priority' => 15],\n 'Model.afterSave' => ['callable' => 'afterSave', 'priority' => 15],\n 'Model.beforeDelete' => ['callable' => 'beforeDelete', 'priority' => 15],\n 'Model.afterDelete' => ['callable' => 'afterDelete', 'priority' => 15],\n ];\n\n return $events;\n }", "title": "" }, { "docid": "66876371cde5d2209994cdf41ad9a0a9", "score": "0.5806834", "text": "public function allEvents()\n {\n $events = Event::with(['actor', 'repo'])->orderBy('id', 'asc')->get();\n $events = $this->unsetUnwantedFields($events);\n return $events;\n }", "title": "" }, { "docid": "375fe2f20191b7c19eaa57cc538e2ecb", "score": "0.58055943", "text": "public function getEvent() {\n return $this->event;\n }", "title": "" }, { "docid": "375fe2f20191b7c19eaa57cc538e2ecb", "score": "0.58055943", "text": "public function getEvent() {\n return $this->event;\n }", "title": "" }, { "docid": "3dc46bc6cbb8b1898a7504d720408432", "score": "0.57774216", "text": "public function events()\n {\n return $this->morphedByMany(Event::class, 'likeable');\n }", "title": "" }, { "docid": "ee2637a0bc4e18718a03fa877dcf38fd", "score": "0.577573", "text": "public function getEvents()\n {\n $ticketapi = new Ticketapi();\n $todayDate = date(\"Y.m.d\");\n $result = $ticketapi->getEvents(array ('beginDate' => $todayDate));\n return $result;\n }", "title": "" }, { "docid": "472251e38f91b487d5e5a09a9e9514a4", "score": "0.57738245", "text": "public function getEvent() {\n return $this->event;\n }", "title": "" }, { "docid": "b4f366d5eedb91a7abde67761dd360c4", "score": "0.5770871", "text": "public function events() {\n\t\treturn array(\n\t\t\t'onAfterConstruct' => 'afterConstruct',\n\t\t\t'onAfterValidate' => 'afterValidate',\n\t\t\t'onAfterSave' => 'afterSave',\n\t\t\t'onBeforeDelete' => 'beforeDelete',\n\t\t\t'onBeforeFind' => 'beforeFind',\n\t\t);\n\t}", "title": "" }, { "docid": "d846a64d2ce55de1baa3ef322fa9c519", "score": "0.57646626", "text": "public function getAppliedEvents()\n {\n return $this->appliedEvents;\n }", "title": "" }, { "docid": "de51de466ff3819ba44e7a16ec0b28aa", "score": "0.5763853", "text": "public function getNotifiableEvents();", "title": "" }, { "docid": "e2c1c74ed45eaccc8e89cda2fc5fab3a", "score": "0.57583535", "text": "protected function getEvent()\n {\n return $this->event;\n }", "title": "" }, { "docid": "73355a6c878e14ec9fc49bd95154db7a", "score": "0.57566166", "text": "public function getAuditDataChanges(SugarBean $bean)\n {\n $audit_fields = $bean->getAuditEnabledFieldDefinitions();\n return $this->getDataChanges($bean, array('field_filter'=>array_keys($audit_fields)));\n }", "title": "" }, { "docid": "599999fe280fee2f3927692a0f1de7ec", "score": "0.57562256", "text": "public function getEvent()\n {\n return $this->_event;\n }", "title": "" }, { "docid": "ac7d5f08e2d138713c400ebb349fa449", "score": "0.57557917", "text": "public function all()\n {\n $model = new Event();\n $events = $model->readAll();\n return ['events'=>$events];\n }", "title": "" }, { "docid": "4e9f39d5375fab7c6eb6b4d45717569d", "score": "0.5752222", "text": "public function auditable();", "title": "" }, { "docid": "2c59c3486fe30fce65b32deddbcadffa", "score": "0.57497305", "text": "public function getEventData()\n {\n return $this->eventData;\n }", "title": "" }, { "docid": "2c59c3486fe30fce65b32deddbcadffa", "score": "0.57497305", "text": "public function getEventData()\n {\n return $this->eventData;\n }", "title": "" }, { "docid": "c0ce8fe6a7fc07aa7b954273a45a62b9", "score": "0.5745884", "text": "public function events()\n {\n return new Events($this->credentials, $this->adapter);\n }", "title": "" }, { "docid": "cfd1ef9099254eb679ca6e5d7ff767cf", "score": "0.57345045", "text": "public function getTriggeredEvents()\n {\n return $this->events;\n }", "title": "" }, { "docid": "5cb54366b090be31e51fc9212178a37a", "score": "0.5728915", "text": "public function get() {\n $results = $this->service->events->listEvents($this->calendarId, $this->optParams)->getItems();\n foreach ($this->whereQuey as $key => $value) {\n $results = $this->__search($results, $key, $value);\n }\n return $results;\n }", "title": "" }, { "docid": "68999814a6d0ea2a048261fe78a35278", "score": "0.5720308", "text": "public function audits()\n {\n \treturn $this->belongsTo('App\\Model\\Audit');\n }", "title": "" }, { "docid": "2a45854bfe88b2a8fa323fed3bab61ca", "score": "0.57137775", "text": "public function getEvent() {\r\n\treturn $this->event;\r\n }", "title": "" }, { "docid": "b8ca2f97f4f32c3e3f9c64ccd046027b", "score": "0.56946677", "text": "public function getEvents()\n {\n $list = array();\n for ($i = Config\\Config::$forIndex; $i < $this->getEventNumber() + Config\\Config::$forIndex; $i++) {\n $list[] = $this->getEvent($i);\n }\n return $list;\n }", "title": "" }, { "docid": "824b2652afa9b14d0657235cf246df03", "score": "0.56893957", "text": "public function get_all_events(){\n\n\t}", "title": "" }, { "docid": "299856822f980cb224162691e356570a", "score": "0.56830764", "text": "private function _getEventList(){\n\t\t/* variable initialization */\n\t\t$strWhereClauseArr\t= array('company_code' => $this->getCompanyCode());\n\t\t$strFilterArr\t\t= array('table'=>'events_'.$this->getCompanyCode());\n\t\t/* Getting the status list */\n\t\treturn\t$this->_objDataOperation->getDataFromTable($strFilterArr, $strWhereClauseArr);\n\t}", "title": "" }, { "docid": "f7d755f665c406ae9738433d5944818a", "score": "0.56654304", "text": "public function events() {\n return $this->morphMany('App\\Models\\Event', 'eventresource');\n }", "title": "" }, { "docid": "4eeb0aa91e25f244fbd94e57a64a19fa", "score": "0.5645594", "text": "public function get_events(){\n\t\t\t$user = $this->session->userdata('user_id');\n\t\t\t$this->db->select('*');\n\t\t\t$this->db->from('event');\n\t\t\t$this->db->where('user_id', $user);\n\t\t\t$query = $this->db->get();\n\t\t\treturn $query->result_array();\n\t\t}", "title": "" }, { "docid": "65caa42d1acfea1a376e4edb45aef71f", "score": "0.5643481", "text": "public function getAuditLog()\n {\n $sqlQuery = 'SELECT * FROM audit_log';\n $statement = $this->_dbHandle->prepare($sqlQuery);\n $statement->execute();\n $dataSet = [];\n while($row = $statement->fetch()){\n $dataSet[] = new AuditLog($row);\n }\n return $dataSet; //return the array\n\n }", "title": "" }, { "docid": "5a4a97e0d9d26cc189130c65a20e14c2", "score": "0.56295884", "text": "function audit_get(){\n\n $result = $this->state_model->getallaudittrails();\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": "6ea022f99cc1ac426188b1bc027ccdb5", "score": "0.5623467", "text": "public function getTrackingEvents()\n {\n return $this->_fields['TrackingEvents']['FieldValue'];\n }", "title": "" }, { "docid": "7eefb0fc7330b8811bd4906a29e182e8", "score": "0.5617657", "text": "public function events()\r\n {\r\n # an array of an object or class name, and a method name as a string (without parentheses), e.g., [$object, 'methodName'];\r\n return [\r\n ActiveRecord::EVENT_BEFORE_VALIDATE => 'beforeValidate', // a string that refers to the name of a method of the behavior class, \r\n ];\r\n }", "title": "" }, { "docid": "753bcba8d89c6d8ec88df5b34cde2a22", "score": "0.5612934", "text": "public static function bootHasAuditsTrait()\n {\n self::created(function (Model $model) {\n $model->afterCreate();\n });\n\n self::updated(function (Model $model) {\n $model->afterUpdate();\n });\n\n self::deleted(function (Model $model) {\n $model->afterDelete();\n });\n }", "title": "" }, { "docid": "309ab593bacbd84992167a05b03501c2", "score": "0.5607305", "text": "public function events() {\n return response()->json($this->events->events(\\Input::all()));\n }", "title": "" }, { "docid": "800c3f9aa619ad1c580dff5d7b8fc339", "score": "0.5605586", "text": "public function getLogs()\n {\n return $this->hasMany(\n Logs::className(),\n [\n self::ACTION_ID => self::ACTION_ID\n ]\n );\n }", "title": "" }, { "docid": "bd9a92057b48daf7d5d8e5e9b356351a", "score": "0.56044006", "text": "public function getEvent();", "title": "" }, { "docid": "6acb5b62379e13b602b283a00de941c0", "score": "0.5601315", "text": "public function events()\n {\n parent::events();\n return array_fill_keys(array_keys($this->events), 'routeEvent');\n }", "title": "" }, { "docid": "2971e50b3380d088f57d7a5ab335e4eb", "score": "0.5587749", "text": "public function getEventsData()\n {\n $events = json_decode( get_option( $this->optionEvents ) );\n // Percolate_Log::log('WP model: Get Events' . print_r($events, true));\n return $events;\n }", "title": "" }, { "docid": "49c670e92d0a66e3db0ebc58789f2a98", "score": "0.55876416", "text": "public function Events()\n {\n return $this->hasMany(\\App\\Models\\Event::class);\n //return $this->hasMany( \\App\\Models\\Event::class )->where( 'to_user_id', '=', Auth::User()->id );\n }", "title": "" }, { "docid": "9485c694c544180ec7e105192e9b54ad", "score": "0.55844617", "text": "function readEvents() {\n\t\tglobal $dbio;\n\t\t$events = $dbio->readAllEvent();\n\t\treturn $events;\n\t}", "title": "" }, { "docid": "03e0044674f12546bcf638814cc5e470", "score": "0.55811036", "text": "public function getEvent()\n {\n return $this->m_event;\n }", "title": "" }, { "docid": "7ac36185a2a5bade2f915aef78fc0274", "score": "0.5570263", "text": "public function getEvent($id) {\n\t\t$eventModel = Event::model() -> findByPk($id);\n\t\treturn $eventModel;\n\t}", "title": "" }, { "docid": "4e358be0ce281b8b2c10d05f0be19817", "score": "0.5567118", "text": "public function events()\n\t{\n\t\treturn $this->morphMany('Asabanovic\\Events\\Model\\Event', 'creator');\n\t}", "title": "" }, { "docid": "e8c6561b00844700e01df488cda00b70", "score": "0.5552855", "text": "public function events()\r\n\t{\t\r\n\t\tstatic $event_list;\r\n\t\t\r\n\t\tif ( ! empty($event_list))\r\n\t\t\treturn $event_list;\r\n\t\t\r\n\t\tforeach($this->event_data as $event)\r\n\t\t{\r\n\t\t\t// Calculate start time using user's time offset from GMT\r\n\t\t\t$local_start_time = Date::offset($this->user->timezone, 'Europe/London') + $event->time;\r\n\r\n\t\t\t// Build event array\r\n\t\t\t$out[] = array(\r\n\t\t\t\t'details_link' => Route::url('event', array('action' => 'display', 'id' => $event->id)),\r\n\t\t\t\t'date' => date('D Y M d', $local_start_time),\r\n\t\t\t\t'time' => date('g:i A ', $local_start_time).Date::timezone_abbr($this->user->timezone),\r\n\t\t\t\t'title' => $event->title,\r\n\t\t\t\t'status' => $event->status->name,\r\n\t\t\t\t'host' => ORM::factory('character', $event->character_id)->name,\r\n\t\t\t\t'build' => $event->build->name,\r\n\t\t\t\t'url' => $event->build->url,\r\n\t\t\t\t'dungeon' => $event->dungeon->name,\r\n\t\t\t);\r\n\t\t}\r\n\t\t\r\n\t\treturn isset($out) ? $event_list = $out : FALSE;\r\n\t}", "title": "" }, { "docid": "2884066d6baa80e74736afe1944d46ed", "score": "0.55452365", "text": "public function getAuditor();", "title": "" }, { "docid": "feb58456d5683464cb1d9a4df5726330", "score": "0.55399173", "text": "public function getEvents()\n {\n return array(\n 'complete' => ['convert'],\n 'error' => ['convert']\n );\n }", "title": "" }, { "docid": "eeafae8e0a6a44d472e277e3555e0bc1", "score": "0.55393815", "text": "public function getList()\n {\n return $this->getResponse(self::URL_EVENTS_LIST);\n }", "title": "" }, { "docid": "89c48f23ba829d6f4b95c762a14e2d22", "score": "0.55380267", "text": "public function event()\n {\n return $this->event;\n }", "title": "" }, { "docid": "09579749cc9712fbd08d65492b510ab8", "score": "0.5537874", "text": "public function events()\n {\n return array(\n 'onBeginRequest' => 'handleBeginRequest',\n 'onEndRequest' => 'handleEndRequest',\n 'onException' => 'handleException',\n 'onError' => 'handleError',\n );\n }", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "fb74a9d6f002fcca953c3d1bace5f160", "score": "0.0", "text": "public function create()\n {\n return view('eventtopic.create');\n }", "title": "" } ]
[ { "docid": "f8bba5517a2cb6f46311a24713a6bef2", "score": "0.8125342", "text": "public function create()\n {\n return view('admin.resource.new');\n }", "title": "" }, { "docid": "20ef26ca996d9360798f2ecc07198092", "score": "0.7804094", "text": "public function create()\n\t{\n\t\treturn View::make('backoffice.resource.create');\n\t}", "title": "" }, { "docid": "681d20882e97df51906ce75b97ef1784", "score": "0.7775189", "text": "public function create()\n {\n return view('actions.resource.create');\n }", "title": "" }, { "docid": "0efde82a25b6100f0c21eb97e2121fd0", "score": "0.77337104", "text": "public function create()\n {\n $this->page_title = trans('resource_type.new');\n\n return view('resource_type.new', $this->vdata);\n }", "title": "" }, { "docid": "03bfd9797acc7936efbf149267039e5d", "score": "0.77260846", "text": "public function create()\n {\n return view('resource.create');\n }", "title": "" }, { "docid": "260e3a6550329e832d8155a1a557745f", "score": "0.771192", "text": "public function create()\n {\n /*show create form maybe not nessesary*/\n }", "title": "" }, { "docid": "0a28fa28b4fcdf44c0bd490fe751d763", "score": "0.7673694", "text": "public function create()\n\t{\n\t\t$this->layout->subtitle = _('Add');\n\n\t\treturn $this->loadView(__FUNCTION__, $this->resource->getFillableLabels());\n\t}", "title": "" }, { "docid": "4410c37acc7f709e86ccc730cb542643", "score": "0.75863165", "text": "public function create()\n {\n return view('admin.resources.create');\n }", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "60b8c2dc2f8ff4dabd04bc7f6dca0779", "score": "0.75383", "text": "public function newAction()\n {\n $entity = new Resource();\n $form = $this->createCreateForm($entity);\n\n return $this->render('BWBlogBundle:Resource:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "c22dae1333d29c28ed855dcb7f069232", "score": "0.7491396", "text": "public function create()\n {\n return view('resources.create');\n }", "title": "" }, { "docid": "5d140c321df7acb8c739eadcc5bc3d54", "score": "0.746548", "text": "public function create()\n {\n return view('laramanager::resources.create');\n }", "title": "" }, { "docid": "ad59d20f2872a6e73a13ec203ef2f8bc", "score": "0.72848165", "text": "public function create()\n {\n //display form\n return view(\n 'ps.create');\n }", "title": "" }, { "docid": "b232948171ce8236d12a5ecd5627119c", "score": "0.7282519", "text": "public function create()\n {\n return view(\"pages.req.form\");\n }", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.72809595", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "3347c41a19ab6c1a35b881f99ddefe9e", "score": "0.72624177", "text": "public function createAction()\n {\n $this->view->flds = '[{\"cssClass\":\"input_text\",\"required\":\"undefined\",\"values\":\"First Name\"},{\"cssClass\":\"textarea\",\"required\":\"undefined\",\"values\":\"Bio\"},{\"cssClass\":\"checkbox\",\"required\":\"undefined\",\"title\":\"Whats on your pizza?\",\"values\":{\"2\":{\"value\":\"Extra Cheese\",\"baseline\":\"undefined\"},\"3\":{\"value\":\"Beef\",\"baseline\":\"undefined\"}}}]';\n $this->view->form = new NpfWebformsForm(null);\n }", "title": "" }, { "docid": "a5d2c0c3777cd260cd88c88f37ec70a6", "score": "0.72577995", "text": "public function create_form()\n {\n return View::make(\"app.create\");\n }", "title": "" }, { "docid": "6a94e5e8f7512f93eda3c0b1ea5d5607", "score": "0.7257189", "text": "function showCreateForm(){\n return view('admin.Ebuletin.create');\n }", "title": "" }, { "docid": "64b0e85604fc330e4cbfc6f09f397b27", "score": "0.72493047", "text": "public function showCreateForm ()\n {\n $myNewspaper = App::user()->getNewspaper();\n\n if (!empty($myNewspaper)) {\n App::redirect(\"/newspaper/\" . $myNewspaper->id);\n }\n\n return $this->render('news/createNewspaper.html.twig', [\n \"creationCost\" => NewspaperModel::CREATION_COST\n ]);\n }", "title": "" }, { "docid": "d3ebdfcf36f62f0f42113a8b11f4895a", "score": "0.7240409", "text": "public function create()\n {\n return view('resources.create_resources');\n }", "title": "" }, { "docid": "b1c3c9219f8100b85c24750c6f92cd4a", "score": "0.72274303", "text": "public function create()\n {\n return view('crud.form');\n }", "title": "" }, { "docid": "755e91a474eae625dfda22659e4c1f6c", "score": "0.72203404", "text": "public function create()\n {\n return view('form.create');\n }", "title": "" }, { "docid": "5c37508d09b68f9ab4123a0772960c76", "score": "0.7212462", "text": "public function create()\n {\n return view('admin.catalog.form');\n }", "title": "" }, { "docid": "3fb888dea195139fc63f84a6e5b7db63", "score": "0.7199865", "text": "public function create()\n {\n return View::make($this->resourceView.'.create');\n }", "title": "" }, { "docid": "65a80f896bface8ccfc0be19571775ba", "score": "0.71928936", "text": "public function create()\n {\n //\n return \"Provide a form to add a car\";\n }", "title": "" }, { "docid": "1d0710555ccb7cd822584d16dcfe0336", "score": "0.7182808", "text": "public function showCreateForm()\n\t{\n\t\treturn view('admin.post.add');\n\t}", "title": "" }, { "docid": "c24e65c8a92dd430f73967cd2fb00ec9", "score": "0.7179227", "text": "public function create()\n {\n $this->resetValidation();\n $this->reset(['fields', 'is_editing']);\n\n $this->showForm();\n }", "title": "" }, { "docid": "9afc6acf07243beac05422dfa57f968f", "score": "0.7173864", "text": "public function showCreateForm()\n {\n return view(\"admin.user.create\");\n }", "title": "" }, { "docid": "3bafea32fa451a3439e6d308764b7e96", "score": "0.71605355", "text": "public function create()\n\t{\n\t\treturn view(\"barang.form\");\n\n\t}", "title": "" }, { "docid": "cfe9ceeda6c7d1649d3f15d33b16a627", "score": "0.7154192", "text": "public function newAction()\n\t{\n\t\techo $this->getForm();\n\t}", "title": "" }, { "docid": "540a53a248ba67bdca77e9032bbb635f", "score": "0.7150356", "text": "public function create()\n {\n return view('client.form');\n }", "title": "" }, { "docid": "8d4cc40a42b81724eb4460472353bc0a", "score": "0.714293", "text": "public function create()\n\t{\n // load the create form\n return View::make('residents.create');\n\t}", "title": "" }, { "docid": "a8d9b3e6c0f69a9c90642861d5e343c1", "score": "0.7141869", "text": "public function create()\n {\n return view('submit.create');\n }", "title": "" }, { "docid": "3b15559bc4c862a29339bfd433c32526", "score": "0.71411765", "text": "public function create()\n {\n return view('students.addStudentForm');\n }", "title": "" }, { "docid": "3f6a1acba05e915724250680142e88c7", "score": "0.71384877", "text": "public function create()\n {\n return view('formcreate');\n }", "title": "" }, { "docid": "8c1752e2ab024985c584b2f42d891525", "score": "0.7138087", "text": "public function create()\n {\n return view(\"piutang.form\");\n }", "title": "" }, { "docid": "d77bcfd7ac022954dfbdbaec633e0b32", "score": "0.7131701", "text": "public function create()\n {\n $resources = Resource::all();\n $categories = ResourceCategory::all();\n\n $data = [\n 'resources' => $resources,\n 'categories' => $categories,\n ];\n\n return view('resources.create-resource')->with($data);\n }", "title": "" }, { "docid": "aa71810ebd2853f92e8db655776237e2", "score": "0.712946", "text": "public function create()\n {\n return view ('siswa.form');\n }", "title": "" }, { "docid": "311b4437f4b6d54e594b3899d29f4f11", "score": "0.7121037", "text": "public function create()\n {\n return view('admin.student.addnew');\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": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "751653051dae87138c242368dc3786de", "score": "0.71069485", "text": "public function create()\n {\n $title = \"Registrar negocio\";\n $model = new Business();\n\n return view($this-> prefixView.'form',compact('title','model'));\n }", "title": "" }, { "docid": "21b741286121defb618cafb010ad9311", "score": "0.7101174", "text": "public function create()\n {\n return view('admin.crud.edit-new');\n }", "title": "" }, { "docid": "8b6604f525238bef52951de0b16d7f1f", "score": "0.7096012", "text": "public function create()\n {\n return view('formbuilder::form.create');\n }", "title": "" }, { "docid": "990414ce4876a4b2a4f29dd9d7d3abf5", "score": "0.709237", "text": "public function create()\n\t{\n\t\treturn view('admin.question.form');\n\t}", "title": "" }, { "docid": "16732db43c5e7a7dd04a193ce5b2ae23", "score": "0.70919156", "text": "public function create()\n {\n return view('resep.form');\n }", "title": "" }, { "docid": "33b0a71ac72fac345ac76b2a9dbd3cb8", "score": "0.70887756", "text": "public function newAction()\n {\n $entity = $this->get('fibe_security.acl_entity_helper')->getEntityACL('CREATE', 'Person');\n $form = $this->createForm(new PersonType($this->getUser()), $entity);\n\n return $this->render(\n 'fibeCommunityBundle:Person:new.html.twig',\n array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n )\n );\n }", "title": "" }, { "docid": "67cdf2645142d9b0d8b752e0719f92db", "score": "0.70883906", "text": "public function create()\n\t{\n\t\t//\n return view('ThemeNight.Admin.form');\n\t}", "title": "" }, { "docid": "c080ca2e31508a9332469f2e1bfc7d19", "score": "0.7087787", "text": "public function create()\n\t{\n\t\treturn view('atributos.create');\n\t}", "title": "" }, { "docid": "76bfcc35dc8ea95b43ab193fce26154f", "score": "0.7084712", "text": "public function create()\n {\n return view('supplier.form', [\n 'edit' => false\n ]);\n }", "title": "" }, { "docid": "bf72fb3fe8d0bc917f56d924e8ccf3ba", "score": "0.70816255", "text": "public function create()\n {\n //\n return view('create_form');\n }", "title": "" }, { "docid": "367e31aa42d6f06e1f2fb2e09709f1e0", "score": "0.7070958", "text": "public function create()\n {\n return view('admin.project.create_form');\n }", "title": "" }, { "docid": "43e34c710975c60c5305ac25fb3d7504", "score": "0.7067303", "text": "public function newAction()\r\n {\r\n $entity = new $this->model();\r\n $form = $this->createCreateForm($entity)->createView();\r\n\r\n $result = array(\r\n 'action' => $this->generateUrl($this->route['create']),\r\n 'fields' => $this->get('pizone_form')->formDataToArray($form)\r\n );\r\n\r\n $view = new View($result);\r\n return $this->handleView($view);\r\n }", "title": "" }, { "docid": "6145954c4b35a97e4abac9949da2a7dc", "score": "0.70663726", "text": "public function create()\n {\n $data = [];\n return view('resources.create', $data);\n }", "title": "" }, { "docid": "3b0f73abe7973dfd183dc9c20405c6b4", "score": "0.7066244", "text": "public function create()\n {\n return view('tool::create.create');\n }", "title": "" }, { "docid": "557c84d597fc8e00e9314d677e08dfe5", "score": "0.7061945", "text": "public function newAction()\n {\n $entity = new Receta();\n $form = $this->createForm(new RecetaType(), $entity);\n\n return $this->render('TodoCerdoTodoCerdoBundle:Receta:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "8c4b58d9c7ebe29aed261de1fc923c07", "score": "0.7061731", "text": "public function create()\n {\n return view('controllers.resource-controllers.create');\n }", "title": "" }, { "docid": "4b128041dfdda282b6af96d3ef403c25", "score": "0.70599586", "text": "public function create()\n {\n return view('harvests.form');\n }", "title": "" }, { "docid": "2b41dd9ed0cf1461dd65f8e05b0a94a1", "score": "0.70571953", "text": "public function create()\n {\n return $this->showForm();\n }", "title": "" }, { "docid": "08e0ba475352b37fabdca852bcbdb90e", "score": "0.7054689", "text": "public function create()\n {\n return view('mesas.forms.create');\n }", "title": "" }, { "docid": "2623500cf3f41f19394467ad3cc9656b", "score": "0.7049269", "text": "protected function showCreateForm()\n\t{\n\n\t\treturn Response::view('adm/Regions/create');\n\n\t}", "title": "" }, { "docid": "d348d95689ce20ca0e7da9c16fd55e2d", "score": "0.70483965", "text": "public function create()\n {\n return view('pengeluaran.form');\n }", "title": "" }, { "docid": "d8233d687b36de8ea5e1f179a497dba1", "score": "0.7037681", "text": "public function newAction()\n {\n $entity = new Persona();\n $form = $this->createForm(new PersonaType(), $entity);\n\n return $this->render('LyricaEirinBundle:Persona:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "cfc08ab3b0be81fb6acf7f6316f4b875", "score": "0.7036466", "text": "public function create()\n {\n return view('backend.thadin.create');\n }", "title": "" }, { "docid": "5aa70413db221403054caef7bedac770", "score": "0.7030609", "text": "public function newAction()\n\t{\n\t\t$this->page\n\t\t\t->set('section_title','New '.$this->page_title)\n\t\t\t->set('action',$this->controller_path.'new')\n\t\t\t->set('record',(object) array('activated'=>1,'id'=>-1))\n\t\t\t->set('group_options',$this->_get_groups())\n\t\t\t->set('password_format_copy',$this->user_model->password_format_copy())\n\t\t\t->build($this->controller_path.'form');\n\t}", "title": "" }, { "docid": "a9a5b6b3c656a709a1bbbab40d24c43f", "score": "0.70302194", "text": "public function create()\n {\n $is_edit = false;\n $product = new Product();\n\n return view('products.form', compact('product', 'is_edit'));\n }", "title": "" }, { "docid": "cfaeeb3c8bd4c70a19c542419f5ad0ee", "score": "0.70269614", "text": "public function create()\n {\n //显示创建资源表单页\n return view('admin/users/create',['title'=>'用户添加']);\n }", "title": "" }, { "docid": "0b984040060f01951eb2375bb849110c", "score": "0.7026164", "text": "public function create()\n\t{\n\t\treturn view('forms.project');\t\n\t}", "title": "" }, { "docid": "0c1db80c69466b1bbd9b8df7bea85585", "score": "0.70254475", "text": "public function newAction()\n {\n $recipe = $this->getRecipeManager()->createRecipe();\n $form = $this->createForm(new RecipeType(), $recipe, array(\n 'action' => $this->generateUrl('backend_recipe_create')\n ));\n\n return $this->render('AppBundle:Backend\\Recipe:new.html.twig', array(\n 'entity' => $recipe,\n 'form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "9926d30e5b0046e49a6decdaa42f3859", "score": "0.70248765", "text": "public function create()\n {\n return view('platform.people.form');\n }", "title": "" }, { "docid": "33af005bef3111b2a76f2f441180b514", "score": "0.702485", "text": "public function create()\n {\n return view('concepto.create');\n }", "title": "" }, { "docid": "c959c491c6e5b588c802c9967ef706a4", "score": "0.70230263", "text": "public function create()\n {\n //\n // echo 'Here we will show the form and then submit the details in the database';\n }", "title": "" }, { "docid": "abbbd09a7646783cf210f98d7c703c30", "score": "0.70194376", "text": "public function create()\n {\n return view('menu::form');\n }", "title": "" }, { "docid": "6316a85e6cf9ca8aa64b9f706098ae25", "score": "0.7017854", "text": "public function create()\n {\n return view('partner.form');\n }", "title": "" }, { "docid": "d001d3a1995094ca265df985f6398e01", "score": "0.70149684", "text": "public function newAction()\n {\n $entity = new Client();\n $form = $this->createForm(new ClientType(), $entity);\n\n return $this->render('BackendAdminBundle:Client:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "5c8d80287891d65eee128c6ca7878e1c", "score": "0.7013804", "text": "public function create()\n\t{\n\t\t$data = array('type' => 'stone');\n\t\t$this->layout->content = \\View::make('forms.new-stone', $data);\n\t\n\t}", "title": "" }, { "docid": "6f9af144eba20ea97bd9c8a741627e1b", "score": "0.7012243", "text": "public function create()\n {\n return view('crud::crud.add');\n }", "title": "" }, { "docid": "a36d8135bd4414e4abd4868fb56a7177", "score": "0.6996758", "text": "public function create()\n {\n return view('layouts.submitproperty');\n }", "title": "" }, { "docid": "ddb99a4f31eb90825bf6b5da7fa52ca3", "score": "0.6994577", "text": "public function create()\n {\n return view('master.form.athlete-form');\n }", "title": "" }, { "docid": "b1c0d0b9bd1b6ed833c3d3d624e5b031", "score": "0.69930637", "text": "public function create()\n {\n $title = \"Registrar producto\";\n $model = new Product();\n return view($this-> prefixView.'form',compact('title','model'));\n }", "title": "" }, { "docid": "db5850464a16ce05c16a0c42606ccb2c", "score": "0.699252", "text": "public function create()\n {\n $data['typeForm'] = \"create\";\n $data['title'] = \"Property Marketplace\";\n return view(\"admin/marketplace/form\",compact('data'));\n }", "title": "" }, { "docid": "1d37883b0775931ddf17c75e4bbd9d90", "score": "0.6989433", "text": "public function create()\n\t{\n\t\treturn View::make('famoso.create');\n\t}", "title": "" }, { "docid": "9829c4939f7030aeb42447c704de1f3e", "score": "0.69889855", "text": "public function create()\n\t{\n\t\t$this->form->setModel($this->repo->getNew());\n\n\t\treturn View::make('thing.form', ['form' => $this->form]);\n\t}", "title": "" }, { "docid": "8a982b58b2eae6f233b1dcd18de452a0", "score": "0.6987187", "text": "public function create()\n\t{\n\t\treturn view('areadetails.form');\n\t}", "title": "" }, { "docid": "5dcc6a089e3a6d063fa3cab475e28855", "score": "0.6986054", "text": "public function create()\n {\n return view(\"Backend.Pages.add-new\");\n }", "title": "" }, { "docid": "1e96f853503e9af917b9a2a64cde033f", "score": "0.6985649", "text": "public function create()\n {\n return view(\"major.create\");\n }", "title": "" }, { "docid": "610f56b2c95018c60ad6a8374c2d250e", "score": "0.69853884", "text": "public function create()\n {\n return view ('tahun.form');\n }", "title": "" }, { "docid": "eeee917bcfaf007d8d07ea2e40388b06", "score": "0.69850516", "text": "public function create()\n {\n return view('clients.form')->with([\n 'action' => 'create'\n ]);\n }", "title": "" }, { "docid": "1d1ce9ff2645b7b3f0753d499204d44f", "score": "0.6980153", "text": "public function create()\n {\n //\n\n return view::make('form.create');\n }", "title": "" }, { "docid": "d0bdcbece4be35278c63f8feea57b955", "score": "0.6978014", "text": "public function new_form(){\n $this->vars['breadcrumbs'][] = array('label' => __('Create New Customer', 'latepoint'), 'link' => false );\n\n $this->vars['customer'] = new OsCustomerModel();\n $this->vars['wp_users_for_select'] = OsWpUserHelper::get_wp_users_for_select();\n\n\n $this->format_render(__FUNCTION__);\n }", "title": "" }, { "docid": "fa1baaa9f5aebb07e6bb696f0001364c", "score": "0.6976698", "text": "public function create()\n\t\t{\n\t\t\treturn view('coa.create');\n\t\t}", "title": "" }, { "docid": "54ece91bb98da047753baa658573a9de", "score": "0.697606", "text": "public function create()\n {\n //\n return view('admin.actuForm');\n }", "title": "" }, { "docid": "df3bf96fa2e72c254a6b2d268a5f6402", "score": "0.69758654", "text": "public function create()\r\n {\r\n return view('backend/category_management/create_form');\r\n }", "title": "" }, { "docid": "c754c692adc63ca29e993ebbf09ee995", "score": "0.6974421", "text": "public function create()\n {\n return view('product::admin.form');\n }", "title": "" }, { "docid": "74a010aa8faacd0448738b50f14d4758", "score": "0.6965735", "text": "public function create()\n {\n $title = self::TITLE;\n $route = self::ROUTE;\n $action = \"Add\";\n return view(self::FOLDER . '.create', compact('title', 'route', 'action'));\n }", "title": "" }, { "docid": "de91e46735fd97173b2f990f6ecc7d8c", "score": "0.6962055", "text": "public function showCreateFormAction() {\n $this->theme->setTitle(\"Add user\");\n $this->di->session();\n $form = new \\Anax\\Users\\CFormAddUser();\n $form->setDI($this->di);\n $form->check();\n \n // view of the comment form\n $this->di->views->add('comment/form', [\n 'title' => \"Add a new user\",\n 'content' => \"<h1>Add a new user</h1>\" . $form->getHTML()\n ]);\n }", "title": "" }, { "docid": "e2ad160b52213ea876d7e50dbf6fd2cd", "score": "0.6959711", "text": "public function create()\n {\n return view('wisata.form');\n }", "title": "" }, { "docid": "93847c98ccd0e3b2c387d82adc10a23e", "score": "0.69590706", "text": "public function create()\n\t{\n\t\treturn View::make('compromissos.create');\n\t}", "title": "" } ]
bad2feada5a3badbc55e5b573e3878a6
Override this class to control how API fields are translated to instance fields.
[ { "docid": "45b29108d635dcc0019949353620d039", "score": "0.0", "text": "public function loadJsonObject(\\stdClass $object)\n {\n if ($object->type !== static::TYPE)\n throw new \\RuntimeException(sprintf('Trying to populate an object of class %s with data from WordPress object type %s', static::class, $object->type));\n\n $this->loadMappedFieldsFromJsonObject($object);\n\n // Publication date\n if (isset($object->date_gmt)) $this->date = new \\DateTime($object->date_gmt, new \\DateTimeZone('UTC'));\n // Modified\n if (isset($object->modified_gmt)) $this->modified = new \\DateTime($object->modified_gmt, new \\DateTimeZone('UTC'));\n }", "title": "" } ]
[ { "docid": "7b9a8a14950ccf01f7768b1d6f11ff54", "score": "0.656764", "text": "public static function get_fields_to_translate()\n {\n }", "title": "" }, { "docid": "db3b5f1603a04062d18fe7534cdd5d89", "score": "0.5973682", "text": "public function __construct(Field $field)\n {\n parent::__construct($field->name, $field->attribute, $field->resolveCallback);\n\n $locales = app('translatable.locales')->all();\n $this->locales = array_combine($locales, array_map(function ($value){\n \treturn strtoupper($value);\n\t\t}, $locales));\n $this->field = $field;\n\n $fields = array_map(function ($locale) use ($field) {\n \treturn $this->localizeField(clone $field, $locale);\n\t\t}, $locales);\n $this->fields = array_combine($locales, $fields);\n\n\t\t$options = [];\n\t\tforeach ($fields as $field_item) {\n\t\t\t$options[$field_item->attribute] = strtoupper($field_item->locale);\n }\n\t\t$this->options($options);\n\n $this->withMeta([\n 'locales' => $this->locales,\n 'fields' => $this->fields,\n 'originalField' => $this->field,\n\t\t\t'options' => $this->options\n ]);\n\n $this->indexLocale(app()->getLocale());\n\n $this->showOnIndex = $this->field->showOnIndex;\n $this->showOnDetail = $this->field->showOnDetail;\n $this->showOnCreation = $this->field->showOnCreation;\n $this->showOnUpdate = $this->field->showOnUpdate;\n }", "title": "" }, { "docid": "7eb8391576ee9568ecb97fabd5ad7021", "score": "0.5950655", "text": "protected function setupFields()\n {\n }", "title": "" }, { "docid": "19f2e5f28e978060376e0be99e477000", "score": "0.57231295", "text": "public function fields( $instance ) {}", "title": "" }, { "docid": "f131826b49ce3db5a7efd48e211c9077", "score": "0.56801206", "text": "private function _setFieldNames() {\n $this->id = \"id\";\n $this->name = \"name\";\n $this->surveyId = \"survey_id\";\n $this->languageId = \"language_id\";\n $this->deleted = \"deleted\"; \n }", "title": "" }, { "docid": "c06f4ae3e593289124745d0bd260f2cc", "score": "0.56782323", "text": "protected function _updatefields() {}", "title": "" }, { "docid": "e506245367ac42fc562766836e229025", "score": "0.56562495", "text": "public function getToApiObjectFields() {\n return array();\n }", "title": "" }, { "docid": "6d6cc29ad19fff39bc275b21c65fad45", "score": "0.5588486", "text": "protected function setTranslatableFields()\n {\n if ( ! post('RLTranslate')) {\n return;\n }\n\n foreach (post('RLTranslate') as $key => $value) {\n $data = collect($value)->intersectByKeys(array_flip($this->translatable));\n\n $obj = Attribute::where('locale', $key)\n ->where('model_id', $this->id)\n ->where('model_type', get_class($this));\n\n if ($obj->count() > 0) {\n $obj->update(['attribute_data' => $data->toJson()]);\n continue;\n }\n\n Attribute::create([\n 'locale' => $key,\n 'model_id' => $this->id,\n 'model_type' => get_class($this),\n 'attribute_data' => $data->toJson(),\n ]);\n }\n }", "title": "" }, { "docid": "4e9fb93cdb37b3102bd15c551149ded4", "score": "0.5564256", "text": "protected abstract function setFields();", "title": "" }, { "docid": "4c904152b97f975cb3ff8b868103fcb6", "score": "0.5513642", "text": "public function registerFields()\n {\n }", "title": "" }, { "docid": "2843d9f43c7e0230223f81955af7bcbf", "score": "0.542065", "text": "public function __construct($field){\n $this->field = $field;\n }", "title": "" }, { "docid": "160ad2d51485164c8360b85be2d39e93", "score": "0.54009914", "text": "protected function wrap_fields()\n {\n }", "title": "" }, { "docid": "5d4a34fd22b73ae5acbdd99e1d3a19a3", "score": "0.53947294", "text": "public static function setupCustomFields();", "title": "" }, { "docid": "3b729562a8da5145709258a103efea82", "score": "0.53845906", "text": "public function init_fields() {\n\t\t// Override this function in your class and assign the array of sections to $this->fields.\n\t\t_e( 'Override init_fields() in your class.', '{plugin_jump_starter_textdomain}' );\n\t}", "title": "" }, { "docid": "dccac61d02d153c6e4a32891192bec9d", "score": "0.5363644", "text": "function __construct() {\n if($this->Fields) {\n foreach($this->Fields as $key => $value) {\n $this->$key = null;\n if($value['extra'] === \"auto_increment\") $this->Id = $key;\n if($value['extra'] === \"ref\") $this->Ref = $key;\n }\n }\n }", "title": "" }, { "docid": "2943deaff104642b5f5e1021bbd1b23f", "score": "0.53568286", "text": "public function __construct()\n {\n parent::__construct();\n\n $this->inflection_attributes = array_map('array_flip', $this->inflection_attributes);\n }", "title": "" }, { "docid": "d98109f392c6790d64d2543c01ee616f", "score": "0.53133404", "text": "abstract function setCustomFields();", "title": "" }, { "docid": "2211fe622c87122cf8749d122c292d64", "score": "0.5296028", "text": "public function _replyToFieldLoader() {}", "title": "" }, { "docid": "e9f378a17d393d8df76ebea326ae4d59", "score": "0.529154", "text": "public function makeFields()\n {\n }", "title": "" }, { "docid": "cb50c500a5c6abbdd81d5dd51ba3d5dd", "score": "0.5284098", "text": "private function _setFieldNames(){\n $this->id = \"id\";\n $this->name = \"name\";\n $this->stateId = \"state_id\"; \n $this->featured = \"featured\";\n $this->status = \"status\";\n $this->order = \"order\";\n $this->deleted = \"deleted\";\n $this->createdby = \"createdby\";\n $this->modifiedby = \"modifiedby\";\n $this->cts = \"cts\";\n $this->mts = \"cts\";\n \n }", "title": "" }, { "docid": "01bcda2ee505077c73425200b9f9593a", "score": "0.52662295", "text": "public function __construct()\n {\n parent::__construct(array(\n 'singular' => 'field',\n 'plural' => 'fields',\n 'ajax' => true\n ));\n }", "title": "" }, { "docid": "9fb9ce126d0d0c237eedec063c02d381", "score": "0.52550614", "text": "public function init()\n\t\t{\n\n\t\t\t//if this class is already init'd, just return the lookup advanced fields\n\t\t\tif( $this->lookupAdvancedFields )\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$this->lookupAdvancedFields = new \\stdClass;\n\t\t\t$fieldDefs = $this->getIDatasource()\n\t\t\t\t->getFieldDefinitions();\n\n\t\t\tforeach( $fieldDefs as $fieldDef )\n\t\t\t{\n\t\t\t\tif( $fieldDef->location == 'lookupAdvanced' )\n\t\t\t\t{\n\t\t\t\t\t$this->lookupAdvancedFields->{$fieldDef->mlsName} = $fieldDef->name;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1f4703f576481bbdd2df3cb832682496", "score": "0.525302", "text": "protected function hydrate_from_api()\n {\n }", "title": "" }, { "docid": "1f4703f576481bbdd2df3cb832682496", "score": "0.525302", "text": "protected function hydrate_from_api()\n {\n }", "title": "" }, { "docid": "1f4703f576481bbdd2df3cb832682496", "score": "0.5252855", "text": "protected function hydrate_from_api()\n {\n }", "title": "" }, { "docid": "7097e6e715f92611fd4aa505c3aa9617", "score": "0.52426815", "text": "public function fieldsToTranslate()\n {\n return ['title','description'];\n }", "title": "" }, { "docid": "ea0cd2224edb25b864767de1e8e48d4e", "score": "0.52319974", "text": "public function fieldsToTranslate()\n {\n return ['name','description', 'alt_image'];\n }", "title": "" }, { "docid": "2205054a39aa9e2e64d3000dbc4ec09b", "score": "0.5200528", "text": "protected function _init()\n\t{\n\t\t$this->_fields = array(\n 'id' => new Sprig_Field_Auto,\n \n 'array' => new Sprig_Field_BelongsTo(array(\n\t\t\t\t'model' => 'Site_Array',\n 'column' => 'site_array_id', // $key_id is assumed // Column to be used in the database table for this model\n 'foreign_key' => '_id' // 'id' Is assumed\n\t\t\t)),\n \n 'key' => new Sprig_Field_Char(array(\n\t\t\t\t'empty' => TRUE, // Default FALSE\n\t\t\t)),\n 'val' => new Sprig_Field_Text(array(\n\t\t\t\t'empty' => TRUE, // Default FALSE\n\t\t\t)),\n \n\t\t);\n\t}", "title": "" }, { "docid": "5f4e12e543293ada0cbdf60256fcc765", "score": "0.51843476", "text": "protected function _init() {\n\t\t$this->_fields += array(\n\t\t\t'id' => new Sprig_Field_Auto,\n\t\t\t// Metadata\n\t\t\t'title' => new Sprig_Field_Char(array(\n\t\t\t\t'max_length' => 255,\n\t\t\t)),\n\t\t\t'subtitle' => new Sprig_Field_Char(array(\n\t\t\t\t'max_length' => 255,\n\t\t\t)),\n\t\t\t'filename' => new Sprig_Field_Image(array(\n\t\t\t\t'width' => 1000,\n\t\t\t\t'height' => 600,\n\t\t\t\t'directory' => Kohana::config('blog.upload.folder'),\n\t\t\t)),\n\t\t\t'path' => new Sprig_Field_Char(array(\n\t\t\t\t'editable' => FALSE,\n\t\t\t\t'in_db' => FALSE,\n\t\t\t)),\n\t\t\t// Relationships\n\t\t\t'article' => new Sprig_Field_BelongsTo(array(\n\t\t\t\t'model' => 'article',\n\t\t\t)),\n\t\t\t/* To be implemented\n\t\t\t'author' => new Sprig_Field_BelongsTo(array(\n\t\t\t\t'model' => 'user',\n\t\t\t\t'column' => 'author_id',\n\t\t\t\t'editable' => FALSE,\n\t\t\t)),\n\t\t\t'tags' => new Sprig_Field_ManyToMany(array(\n\t\t\t\t'model' => 'tag',\n\t\t\t)),*/\n\t\t);\n\t}", "title": "" }, { "docid": "f24092017e1f3d733afb5e9c241dc58e", "score": "0.51700574", "text": "public function fieldsToTranslate()\n {\n return [\n 'description',\n 'name',\n 'title',\n 'subtitle',\n 'alt_image'\n ];\n }", "title": "" }, { "docid": "0303665eb5d4a75ca00896ef376aaf61", "score": "0.51452285", "text": "public function __construct()\n {\n foreach (GeneralUtility::makeInstance(\\ReflectionClass::class, static::class)->getProperties() ?? [] as $reflection) {\n if (!$reflection->isProtected()) {\n $name = $reflection->getName();\n $value = $this->{$name};\n\n // Define parameter name of property\n $this->parameterMapping[$name] = GeneralUtility::camelCaseToLowerCaseUnderscored($name);\n\n // Map the type of properties\n $this->typeMapping[$name] = is_int($value) ? 'int' : (is_array($value) ? 'array' : (is_bool($value) ? 'bool' : (is_string($value) ? 'string' : null)));\n }\n }\n }", "title": "" }, { "docid": "b70a02f82449278e83ef62fd955d6926", "score": "0.5140539", "text": "private function exampleFields()\n {\n }", "title": "" }, { "docid": "8a1d6935dd56eecbd9435803485ccba6", "score": "0.5134372", "text": "abstract protected function setRequiredGetters();", "title": "" }, { "docid": "f3b3eb25693d83f1bbfe599979b2b7f1", "score": "0.5113271", "text": "private function get_api_fields() {\n\t\treturn array(\n\t\t\t'short_description' => true,\n\t\t\t'active_installs' => true,\n\t\t\t'icons' => true,\n\t\t\t'sections' => false,\n\t\t);\n\t}", "title": "" }, { "docid": "63f7f23614a1f6b727f36f9ffea48b9f", "score": "0.51033133", "text": "protected function prepare_fields()\n {\n }", "title": "" }, { "docid": "5ee43c28299e5238fabbdea42b30cb60", "score": "0.51031774", "text": "public function fieldsToTranslate()\n {\n return ['nombre'];\n }", "title": "" }, { "docid": "4696cb164c5b1d8ae5918d461c43a2d3", "score": "0.50950617", "text": "public function setFieldApiName($fieldApiName)\n {\n $this->fieldApiName = $fieldApiName;\n return $this;\n }", "title": "" }, { "docid": "9f8daa5ae0ebca798e21631183070093", "score": "0.50871915", "text": "protected function __getFieldsModel()\n {\n }", "title": "" }, { "docid": "5318f7c73e90617e81dd389a45c1ba1c", "score": "0.5068166", "text": "public function testTranslationFieldForOtherFields(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n\n $expected = 'Articles.foo';\n $field = $table->translationField('foo');\n $this->assertSame($expected, $field);\n }", "title": "" }, { "docid": "9dbae34f9463fac0937aa5d5e0383487", "score": "0.5050521", "text": "function __construct() {\n parent::__construct();\n\n $this->_converter = new \\System\\Data\\Converter();\n }", "title": "" }, { "docid": "36b8bae9eda9e8ad3905899e294de9a8", "score": "0.5040147", "text": "abstract protected function getDirectGetters();", "title": "" }, { "docid": "cc789a2a81b6fcd900429b12fcd4928c", "score": "0.5025843", "text": "public function __construct()\n {\n parent::__construct();\n\n // Set data types\n $this->data_types = array(\n 'title' => 'string',\n 'url' => 'url',\n 'url_key' => 'md5',\n 'embed' => 'string',\n 'created_on' => 'datetime'\n );\n\n }", "title": "" }, { "docid": "11c662803323bf6fb930d65c22b0c815", "score": "0.5022602", "text": "public function langField(&$aField) {\n $aField['values'] = MLFormHelper::getShopInstance()->getDescriptionValues();\n }", "title": "" }, { "docid": "23fbbf63fa7c242258eea5c87bca7287", "score": "0.5022243", "text": "function construct() {\n parent::construct();\n\n $this->additional_fields = array();\n $this->additional_fields['nid'] = 'nid';\n $this->additional_fields['format'] = array('table' => 'node_revisions', 'field' => 'format');\n $this->additional_fields['uid'] = 'uid';\n $this->additional_fields['type'] = 'type';\n }", "title": "" }, { "docid": "66b7b29c58a354d1e44758865746d882", "score": "0.5006108", "text": "protected function getClassField() {}", "title": "" }, { "docid": "9f4460281ef7380a4f7604fd67fd1932", "score": "0.49938747", "text": "public function registerFields(){\n\t\t$this->registerFieldInt('id_empresa', 'Id Empresa');\n\t\t$this->registerFieldInt('id_primary_key_current');\n\t\t$this->registerFieldInt('id_primary_key_root', 'Id Key Root', true, false);\n\t\t$this->registerFieldInt('id_log_pers_prop', 'Id Property');\n\t\t$this->registerFieldStringNullable('value_old', 'Valor Anterior');\n\t}", "title": "" }, { "docid": "a4dfc3a2805b88a639208f681da25520", "score": "0.49932227", "text": "function __construct() {\n parent::__construct(RESTDAO_DEF_LANGUAGE);\n }", "title": "" }, { "docid": "f0799a12c01b645ce14ea6af6c28f210", "score": "0.49833804", "text": "public function __construct() {\n\t\tparent::__construct();\n\t\t\n\t\t//$this->_description = __('translated...', '\n\t\t\n\t\t$this->_setSchemaAttribute('name', '', 'text');\n\t\t$this->_setSchemaAttribute('image_id', '', 'image');\n\t\t$this->_setSchemaAttribute('test', '', 'checkbox');\n\t\t$this->_setSchemaAttribute('choose', '', 'select', array(\n\t\t\t'options' => array(\n\t\t\t\t'' => 'Choose...',\n\t\t\t\t'1' => 'Something',\n\t\t\t\t'2' => 'Test'\n\t\t\t)\n\t\t));\n\t}", "title": "" }, { "docid": "365240d5c68145fbc465e113ed590b90", "score": "0.49688295", "text": "public function register_field()\n {\n }", "title": "" }, { "docid": "e388fe123521883aaa4b0c4229d46641", "score": "0.49554837", "text": "public function setFieldsWireInput(WireInput $input) {\n\t\t$rm = strtolower($input->requestMethod());\n\t\t$values = $input->$rm;\n\t\t$sanitizer = $this->wire('sanitizer');\n\n\t\tforeach ($values->getArray() as $key => $value) {\n\t\t\t$property = strtolower($key);\n\n\t\t\tif (in_array($property, self::FIELDS)) {\n\t\t\t\t$this->$property = $sanitizer->text($value);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "412d4611e0a9f1c545b3bda22672ea5f", "score": "0.49408352", "text": "private function _getSettings()\n {\n $properties = $this->_class->getProperties();\n foreach ($properties as $property) {\n $prop = new Property($property);\n $prop->fillSettings($this->_reflect);\n }\n if (empty($this->_reflect->listField)) {\n $keys = array_keys($this->_reflect->fields);\n $this->_reflect->listField = array_shift($keys);\n }\n $this->_reflect->fieldNames = array_keys($this->_reflect->fields);\n }", "title": "" }, { "docid": "70b654465b98dc32e46c26add7a76e28", "score": "0.49402267", "text": "abstract protected function loadFields();", "title": "" }, { "docid": "7b5f041ec4b1a5a3b52313903f05bb08", "score": "0.49336955", "text": "protected function _initOldFieldsMap()\n {\n return $this;\n }", "title": "" }, { "docid": "af027e3321b90028a91deafa01cdb507", "score": "0.4929568", "text": "public function __construct(VultrApi $api)\n {\n $this->api = $api;\n }", "title": "" }, { "docid": "af027e3321b90028a91deafa01cdb507", "score": "0.4929568", "text": "public function __construct(VultrApi $api)\n {\n $this->api = $api;\n }", "title": "" }, { "docid": "beabc0821858ef289cd6f6cacaae2475", "score": "0.49260837", "text": "protected function __construct()\n {\n // Instantiate new Api\n static::$api = new WpApi('bebop:api');\n static::$api->setBaseUrl('_bebop/api/');\n\n // Set post meta projection\n $postmeta_projection = new SqlProjection();\n $postmeta_projection->addColumn('meta_id', '__id')\n ->addColumn('post_id', '__post_id')\n ->addColumn('meta_key', '__key')\n ->addColumn('meta_value', 'value')\n ->setClass('Ponticlaro\\Bebop\\Resources\\Models\\ObjectMeta');\n\n self::$postmeta_projection = $postmeta_projection;\n\n // Set default routes ONLY after registering custom post types \n add_action('init', array($this, 'setDefaultRoutes'), 2);\n }", "title": "" }, { "docid": "bb7831e934f2d328e615151146d0cedd", "score": "0.49257883", "text": "public static function __init() {\r\n\t\t$class = __CLASS__;\r\n\t\t\r\n\t\t// Use the library Page model's validation rules combined with the default (but the library gets priority) this way the default rules can be changed, but if left out will still be used (to help make things nicer)\r\n\t\t// $class::_object()->validates = static::_object()->validates += $class::_object()->validates;\r\n\t\t// Now going to just override... The way things were extended, it somehow picked up validates property from other models...weird.\r\n\t\t// All this means is care needs to be taken, there's not many validation rules by default anyway...\r\n\t\t// TODO: Think about this, because it may not be a bad thing it gives more control to a developer but it \r\n\t\t$class::_object()->validates = static::_object()->validates;\r\n\t\t\r\n\t\t// Same for the search schema, the library gets priority, but combine them.\r\n\t\t$class::_object()->search_schema = static::_object()->search_schema += $class::_object()->search_schema;\r\n\t\t\r\n\t\t// Replace any set display name for context\r\n\t\t$class::_object()->display_name = static::_object()->display_name;\r\n\t\t\r\n\t\t// Replace any action_redirect properties (holds redirects for each core Minerva controller method, ie. create, update, and delete)\r\n\t\t$class::_object()->action_redirects = static::_object()->action_redirects;\r\n\t\t\r\n\t\t// Replace any URL field and URL separator values\r\n\t\t$class::_object()->url_field = static::_object()->url_field;\r\n\t\t$class::_object()->url_separator = static::_object()->url_separator;\r\n\t\t\r\n\t\t// Set the library name for this model\r\n\t\t$model_path = Libraries::path(get_class(static::_object()));\r\n\t\t$full_lib_path = LITHIUM_APP_PATH . DIRECTORY_SEPARATOR . 'libraries' . DIRECTORY_SEPARATOR;\r\n\t\t$library_string = substr($model_path, strlen($full_lib_path));\r\n\t\t$library_pieces = explode('/', $library_string);\r\n\t\t$class::_object()->library_name = $library_pieces[0];\r\n\t\t\r\n\t\t// Set the document type (for manualy set document_type values)\r\n\t\t$class::_object()->document_type = static::_object()->document_type;\r\n\t\t\r\n parent::__init();\r\n }", "title": "" }, { "docid": "146bcd4ca324844090acc5d1f3895216", "score": "0.49248326", "text": "function __construct($id = null) {\n if ($this->id_field != 'id' && !isset($this->translation['id'])) {\n $this->translation['id'] = $this->id_field;\n }\n if (isset($id)) {\n $this->load($id);\n }\n }", "title": "" }, { "docid": "2c5995f338fe3277f6dab088963f7deb", "score": "0.4915488", "text": "public function __construct(ApiJsonTransformer $apiTransformer) {\n $this->apiTransformer = $apiTransformer;\n }", "title": "" }, { "docid": "3f55fa0b6c0660cf026d5f3b012cb549", "score": "0.49136266", "text": "protected function __construct(){\n self::setGeneric();\n }", "title": "" }, { "docid": "153ef0698e4c9e2e958bccea8c0ab70e", "score": "0.4913059", "text": "public function getShouldFieldBeOverlaidData() {}", "title": "" }, { "docid": "2a8d7fdd675863befcc1eae23c7bc710", "score": "0.49121222", "text": "protected function setupObject()\n {\n try {\n $dom = $this->getAttribute(\"domain\");\n if ($dom) {\n $this->getDomain()->copy($this->getTable()->getDatabase()->getDomain($dom));\n } else {\n $type = strtoupper($this->getAttribute(\"type\"));\n if ($type) {\n if ($platform = $this->getPlatform()) {\n $this->getDomain()->copy($this->getPlatform()->getDomainForType($type));\n } else {\n // no platform - probably during tests\n $this->setDomain(new Domain($type));\n }\n } else {\n if ($platform = $this->getPlatform()) {\n $this->getDomain()->copy($this->getPlatform()->getDomainForType(self::DEFAULT_TYPE));\n } else {\n // no platform - probably during tests\n $this->setDomain(new Domain(self::DEFAULT_TYPE));\n }\n }\n }\n\n $this->name = $this->getAttribute(\"name\");\n $this->phpName = $this->getAttribute(\"phpName\");\n $this->phpType = $this->getAttribute(\"phpType\");\n\n if ($this->getAttribute(\"prefix\", null) !== null) {\n $this->namePrefix = $this->getAttribute(\"prefix\");\n } elseif ($this->getTable()->getAttribute('columnPrefix', null) !== null) {\n $this->namePrefix = $this->getTable()->getAttribute('columnPrefix');\n } else {\n $this->namePrefix = '';\n }\n\n // Accessor visibility\n if ($this->getAttribute('accessorVisibility', null) !== null) {\n $this->setAccessorVisibility($this->getAttribute('accessorVisibility'));\n } elseif ($this->getTable()->getAttribute('defaultAccessorVisibility', null) !== null) {\n $this->setAccessorVisibility($this->getTable()->getAttribute('defaultAccessorVisibility'));\n } elseif ($this->getTable()->getDatabase()->getAttribute('defaultAccessorVisibility', null) !== null) {\n $this->setAccessorVisibility($this->getTable()->getDatabase()->getAttribute('defaultAccessorVisibility'));\n } else {\n $this->setAccessorVisibility(self::DEFAULT_VISIBILITY);\n }\n\n // Mutator visibility\n if ($this->getAttribute('mutatorVisibility', null) !== null) {\n $this->setMutatorVisibility($this->getAttribute('mutatorVisibility'));\n } elseif ($this->getTable()->getAttribute('defaultMutatorVisibility', null) !== null) {\n $this->setMutatorVisibility($this->getTable()->getAttribute('defaultMutatorVisibility'));\n } elseif ($this->getTable()->getDatabase()->getAttribute('defaultMutatorVisibility', null) !== null) {\n $this->setMutatorVisibility($this->getTable()->getDatabase()->getAttribute('defaultMutatorVisibility'));\n } else {\n $this->setMutatorVisibility(self::DEFAULT_VISIBILITY);\n }\n\n $this->peerName = $this->getAttribute(\"peerName\");\n\n // retrieves the method for converting from specified name to a PHP name, defaulting to parent tables default method\n $this->phpNamingMethod = $this->getAttribute(\"phpNamingMethod\", $this->parentTable->getDatabase()->getDefaultPhpNamingMethod());\n\n $this->isPrimaryString = $this->booleanValue($this->getAttribute(\"primaryString\"));\n\n $this->isPrimaryKey = $this->booleanValue($this->getAttribute(\"primaryKey\"));\n\n $this->isNodeKey = $this->booleanValue($this->getAttribute(\"nodeKey\"));\n $this->nodeKeySep = $this->getAttribute(\"nodeKeySep\", \".\");\n\n $this->isNestedSetLeftKey = $this->booleanValue($this->getAttribute(\"nestedSetLeftKey\"));\n $this->isNestedSetRightKey = $this->booleanValue($this->getAttribute(\"nestedSetRightKey\"));\n $this->isTreeScopeKey = $this->booleanValue($this->getAttribute(\"treeScopeKey\"));\n\n $this->isNotNull = ($this->booleanValue($this->getAttribute(\"required\")) || $this->isPrimaryKey); // primary keys are required\n\n //AutoIncrement/Sequences\n $this->isAutoIncrement = $this->booleanValue($this->getAttribute(\"autoIncrement\"));\n $this->isLazyLoad = $this->booleanValue($this->getAttribute(\"lazyLoad\"));\n\n // Add type, size information to associated Domain object\n $this->getDomain()->replaceSqlType($this->getAttribute(\"sqlType\"));\n if (!$this->getAttribute(\"size\") && $this->getDomain()->getType() == 'VARCHAR' && $this->hasPlatform() && !$this->getAttribute(\"sqlType\") && !$this->getPlatform()->supportsVarcharWithoutSize()) {\n $size = 255;\n } else {\n $size = $this->getAttribute(\"size\");\n }\n $this->getDomain()->replaceSize($size);\n $this->getDomain()->replaceScale($this->getAttribute(\"scale\"));\n\n $defval = $this->getAttribute(\"defaultValue\", $this->getAttribute(\"default\"));\n if ($defval !== null && strtolower($defval) !== 'null') {\n $this->getDomain()->setDefaultValue(new ColumnDefaultValue($defval, ColumnDefaultValue::TYPE_VALUE));\n } elseif ($this->getAttribute(\"defaultExpr\") !== null) {\n $this->getDomain()->setDefaultValue(new ColumnDefaultValue($this->getAttribute(\"defaultExpr\"), ColumnDefaultValue::TYPE_EXPR));\n }\n\n if ($this->getAttribute('valueSet', null) !== null) {\n if (version_compare(PHP_VERSION, '5.3.0', '>=')) {\n $valueSet = str_getcsv($this->getAttribute(\"valueSet\"));\n } else {\n // unfortunately, no good fallback for PHP 5.2\n $valueSet = explode(',', $this->getAttribute(\"valueSet\"));\n }\n $valueSet = array_map('trim', $valueSet);\n $this->valueSet = $valueSet;\n } elseif (preg_match('/enum\\((.*?)\\)/i', $this->getAttribute('sqlType', ''), $matches)) {\n if (version_compare(PHP_VERSION, '5.3.0', '>=')) {\n $valueSet = str_getcsv($matches['1'], ',', '\\'');\n } else {\n // unfortunately, no good fallback for PHP 5.2\n $valueSet = array();\n foreach (explode(',', $matches['1']) as $value) {\n $valueSet[] = trim($value, \" '\");\n }\n }\n $this->valueSet = $valueSet;\n }\n\n $this->inheritanceType = $this->getAttribute(\"inheritance\");\n // here we are only checking for 'false', so don't use booleanValue()\n $this->isInheritance = ($this->inheritanceType !== null && $this->inheritanceType !== \"false\");\n\n $this->description = $this->getAttribute(\"description\");\n } catch (Exception $e) {\n throw new EngineException(\"Error setting up column \" . var_export($this->getAttribute(\"name\"), true) . \": \" . $e->getMessage());\n }\n }", "title": "" }, { "docid": "281d42eca942041af282b7d0de0a637a", "score": "0.49102664", "text": "protected function getCompleteFieldInformation() {}", "title": "" }, { "docid": "02d3a431b7713b3df390eca58989372b", "score": "0.49077138", "text": "public function saveJsonFields() {\n foreach ($this->json_data as $field => $data)\n $this->$field = json_encode($data);\n\n }", "title": "" }, { "docid": "1dcef0c203c5944f62bc010974f0eb9e", "score": "0.48993647", "text": "private function init() {\r\n settype($this->id, \"int\");\r\n settype($this->name, \"string\");\r\n settype($this->max_players, \"int\");\r\n settype($this->is_over_yet, \"boolean\");\r\n settype($this->players, \"array\");\r\n }", "title": "" }, { "docid": "3f53306fc81cd938113b6b1a3596dba4", "score": "0.4893579", "text": "public function __construct()\n {\n \n $this->field_list = [\n 'usr_id'=>'Validate::id',\n 'usr_email'=>'Validate::email',\n 'usr_password'=>'Validate::checkstring',\n 'usr_date_connexion'=>'Validate::alwaysTrue',\n 'usr_role'=>'Validate::role'\n ]; \n \n parent::__construct();\n }", "title": "" }, { "docid": "421cc3b45f759597dda4c0f21d2c69c3", "score": "0.4888763", "text": "function __construct(){\r\n\t\t\r\n\t\tparent::__construct();\r\n\t\t\r\n\t\t$this->load->model('api_m');\r\n\t}", "title": "" }, { "docid": "c3038fff76cdbcb0d1867de5d59d833f", "score": "0.48862797", "text": "public function getLabelField() {}", "title": "" }, { "docid": "88ddea77c31c0eae488cc220091c9581", "score": "0.48817247", "text": "public function __construct() {\n\t\tparent::__construct();\n\n\t\t$this->category = _x( 'Single Fields', 'xprofile field type category', 'buddypress' );\n\t\t$this->name = _x( 'Text Box', 'xprofile field type', 'buddypress' );\n\n\t\t$this->set_format( '/^.*$/', 'replace' );\n\t\tdo_action( 'bp_xprofile_field_type_textbox', $this );\n\t}", "title": "" }, { "docid": "062920f6715bac77a1203448118927eb", "score": "0.48809513", "text": "public function __construct()\n {\n global $API_AUTHORIZATIONS;\n\n //Construct generic API handler\n parent::__construct();\n\n //Define authorizations for current API module\n $this->AUTH = $API_AUTHORIZATIONS[self::MODULE];\n }", "title": "" }, { "docid": "062920f6715bac77a1203448118927eb", "score": "0.48809513", "text": "public function __construct()\n {\n global $API_AUTHORIZATIONS;\n\n //Construct generic API handler\n parent::__construct();\n\n //Define authorizations for current API module\n $this->AUTH = $API_AUTHORIZATIONS[self::MODULE];\n }", "title": "" }, { "docid": "b7d51856ecae58e1478e32f5fad9b8a4", "score": "0.48774505", "text": "public function testFromWP()\n {\n $fieldId = $this->fieldId();\n $field = $this->field($fieldId);\n $obj = Field::fromArray($field);\n $this->assertEquals($obj->getId(), $fieldId);\n $this->assertEquals($obj->toArray(), $field);\n }", "title": "" }, { "docid": "6c9889be276462ab190237bc10dd2665", "score": "0.48751515", "text": "function construct() {\n parent::construct();\n $this->additional_fields['uid'] = 'uid';\n }", "title": "" }, { "docid": "9e74539a1288aaac65c1c26928d7cb1f", "score": "0.4872708", "text": "function init()\n {\n\t\t$this->defineAttribute('type', false, '', COMPONENT_TYPE_STRING);\n $this->defineAttribute('label', false, '', COMPONENT_TYPE_STRING);\n $this->defineAttribute('routeUrl', false, '', COMPONENT_TYPE_STRING);\n $this->defineAttribute('recordClassName', false, '', COMPONENT_TYPE_STRING);\n $this->defineAttribute('createFromTemplate', false, false, COMPONENT_TYPE_STRING);\n\n parent::init();\n }", "title": "" }, { "docid": "3f798d5150861d9662fe2e839620ace1", "score": "0.48678628", "text": "function CustomFields()\n\t{\n\t\t$this->LoadLanguageFile();\n\t}", "title": "" }, { "docid": "fc08e1f54b3e0d338fa1b0959ac42a29", "score": "0.48641494", "text": "public function __construct()\n {\n $this->fieldDescriptors = array();\n $this->fieldDescriptors['id'] = new DoctrineFieldDescriptor('id', 'id', static::$entityName);\n $this->fieldDescriptors['username'] = new DoctrineFieldDescriptor('username', 'username', static::$entityName);\n $this->fieldDescriptors['email'] = new DoctrineFieldDescriptor('email', 'email', static::$entityName);\n $this->fieldDescriptors['password'] = new DoctrineFieldDescriptor('password', 'password', static::$entityName);\n $this->fieldDescriptors['locale'] = new DoctrineFieldDescriptor('locale', 'locale', static::$entityName);\n $this->fieldDescriptors['salt'] = new DoctrineFieldDescriptor('salt', 'salt', static::$entityName);\n $this->fieldDescriptors['apiKey'] = new DoctrineFieldDescriptor('apiKey', 'apiKey', static::$entityName);\n }", "title": "" }, { "docid": "3a2cf6e3412de7ed8c462021b77e2c87", "score": "0.48637906", "text": "public function __construct()\n {\n // call the parent constructor\n parent::__construct();\n // set the name of the field\n $this->_name = __('Cloudflare video');\n // permits to make it required\n $this->_required = true;\n // permits the make it show in the table columns\n $this->_showcolumn = true;\n // permits association\n $this->_showassociation = true;\n // set as not required by default\n $this->set('required', 'no');\n }", "title": "" }, { "docid": "363cf95de4fa79dacd3e4960e675e45f", "score": "0.4861953", "text": "public function __construct($fields)\n {\n $this->fields = $fields;\n }", "title": "" }, { "docid": "363cf95de4fa79dacd3e4960e675e45f", "score": "0.4861953", "text": "public function __construct($fields)\n {\n $this->fields = $fields;\n }", "title": "" }, { "docid": "aa51b5df3420c86925edb94988a1e4dc", "score": "0.4860304", "text": "public function __construct()\n {\n $this->HTTPMethod = $_SERVER['REQUEST_METHOD'];\n //Auflösen des Pfades (und Instantiieren des API-Objektes)\n $this->pathResolver();\n //Die jeweilige Behandlung auswählen:\n switch ($this->HTTPMethod) {\n case 'GET':\n $this->APIObj->isGET();\n break;\n case 'POST':\n $this->APIObj->isPOST();\n break;\n case 'PUT':\n $this->APIObj->isPUT();\n break;\n case 'DELETE':\n $this->APIObj->isDELETE();\n break;\n default:\n $this->error();\n }\n }", "title": "" }, { "docid": "dc145e82f664d50dfac8ff6d33b1895b", "score": "0.48574272", "text": "public function __construct(Api $api)\n {\n $this->api = $api;\n }", "title": "" }, { "docid": "dc145e82f664d50dfac8ff6d33b1895b", "score": "0.48574272", "text": "public function __construct(Api $api)\n {\n $this->api = $api;\n }", "title": "" }, { "docid": "dc145e82f664d50dfac8ff6d33b1895b", "score": "0.48574272", "text": "public function __construct(Api $api)\n {\n $this->api = $api;\n }", "title": "" }, { "docid": "8c17ff02fec204fd7a02c09bdc4b92c2", "score": "0.4853502", "text": "public function __construct($apiObject)\n {\n $this->api = $apiObject;\n }", "title": "" }, { "docid": "6df59c1480866976c651f74fabe0e9c4", "score": "0.48500043", "text": "public function __construct() {\n $this->setGetter( new HttpGetter() );\n }", "title": "" }, { "docid": "b6dcf24d91642807570b774884d5527e", "score": "0.48457518", "text": "public function fetch_field(){}", "title": "" }, { "docid": "35c47bda82d9768f9c112c0bf5acc27f", "score": "0.48396832", "text": "public function setOptionsFromApi()\n {\n // Set options from the INFO method first. If settings are set in the config\n // file, use them as 'overrides', but only if they are available (ie. are\n // returned in the INFO method)\n $this->populateViewSettings();\n $this->populateSearchCriteria();\n }", "title": "" }, { "docid": "5fe1ab1251021bce831625486c896576", "score": "0.4835505", "text": "public function fetch_field_direct(){}", "title": "" }, { "docid": "a8e84d83e6ea7b039e9d18800e18d4b6", "score": "0.48303273", "text": "public function __construct() {\n parent::__construct();\n\n $this->addFieldMapping('c4m_source_of_funding', 'funding')\n ->separator(';');\n\n $this->addFieldMapping('c4m_partner', 'partner')\n ->separator(';');\n\n $this->addFieldMapping('c4m_implemented_by', 'implementation')\n ->separator(';');\n\n $this->addFieldMapping('c4m_cris_decision_number', 'cris_decision')\n ->separator(';');\n\n $this->addFieldMapping('c4m_cris_contract_number', 'cris_contract')\n ->separator(';');\n }", "title": "" }, { "docid": "b59aeae17e27933c3f80f6c8afc37ef1", "score": "0.48292977", "text": "protected function init_subfields() {\n\t}", "title": "" }, { "docid": "900a7c4fffdf07b291d61233062affeb", "score": "0.48282057", "text": "protected function __construct() {\n \n }", "title": "" }, { "docid": "900a7c4fffdf07b291d61233062affeb", "score": "0.48282057", "text": "protected function __construct() {\n \n }", "title": "" }, { "docid": "18ce82ccbc21a31b2e8ac5741a87f64d", "score": "0.48178622", "text": "abstract public function supported_fields();", "title": "" }, { "docid": "4e7941b8e21ab7016e475da19a1bc341", "score": "0.4817241", "text": "public function __construct(Api $apiClient);", "title": "" }, { "docid": "a049989310ef199a8ca0d2dd4c0099b3", "score": "0.48169425", "text": "private function setProperties() {\n $this->entityType = $this->form['#instance']['entity_type'];\n $this->entityBundle = $this->form['#instance']['bundle'];\n $this->fieldType = $this->getFieldType();\n }", "title": "" }, { "docid": "49f6b358ac0c99000d453c156afd4395", "score": "0.48155874", "text": "protected _set;\n\n /**\n * Stores that attributes can be getter\n *\n * @var array\n */\n protected _get;\n\n /**\n * Stores the attributes that relate to class with another with different cardinality (one to one , one to many , etc ) .\n * Preserves the core functionality of Phalcon .\n * @var type\n */\n protected _related;\n\n /**\n * Stores the date the record\n *\n * @var timestamp\n */\n protected createAt;\n\n /**\n * Stores the last modified date of registration\n *\n * @var timestamp\n */\n protected modifyAt;\n\n /**\n * Stores the ID of the user who created the record\n *\n * @var uuid\n */\n protected createUser;\n\n /**\n *\n * Stores the identifier of the user who last modified the record.\n *\n * @var uuid\n */\n protected modifyUser;\n\n /**\n *\n * Saves last IP address that made ​​a change and created the record.\n *\n * @var uuid\n */\n protected requestIp;\n\n /**\n * Performs procedures to initialize the class\n */\n public function onConstruct() {}", "title": "" }, { "docid": "0bd12a3803db179fcaeb219d402f9757", "score": "0.4814593", "text": "private function _parseFields()\n {\n // make a new array from the field_types array where all values are ZERO\n $num_types = array_fill_keys(array_keys($this->field_types), 0);\n\n // create a new fillable array\n $fillable = [];\n\n // loop fields\n foreach($this->fields as &$field_config){\n\n // DB FIELD NAME ---------------------------------------------------\n // get the schema type (eg: string, text etc.)\n $type = $this->field_types[$field_config['type']]['schema_type'];\n // create the field name based on the type and count\n $field_config['name'] = $type . (++$num_types[$type]);\n\n // FILLABLE ENTRIES ---------------------------------------------------\n // add a 'fillable' value like \"string1\", \"decimal3\" etc.\n $fillable[] = $field_config['name'];\n \n // VALIDATION RULES --------------------------------------------------\n // get the related rules from either the class fields or the field_types arrays\n $field_rules = isset($field_config['rules']) ? $field_config['rules'] : $this->field_types[$type]['rules']; \n // store\n $this->validation_rules[$field_config['name']] = $field_rules;\n\n // VALIDATION MESSAGES\n // copy all the validation messages from the lang file into a \n // FIELD specific array so we can swap all the attribute names out\n foreach(explode('|', $field_rules) as $field_rule){\n $rule_name = preg_replace('@:.*@','',$field_rule);\n $this->validation_messages[$field_config['name'].'.'.$rule_name] = $this->_swapValidationAttrs($rule_name, $field_config['label'], $field_rules);\n }\n\n }\n\n // merge the dynamic fillable fields with the defaults\n $merged_fillable = array_merge($this->fillable, $fillable);\n\n // set the fillable array using the appropriate parent method\n $this->fillable($merged_fillable);\n\n }", "title": "" }, { "docid": "11143c72013ca96dc09737235bc478ae", "score": "0.48137593", "text": "protected function get_registered_fields()\n {\n }", "title": "" }, { "docid": "883332f3d08c20e7c1df7fc2e5c90c12", "score": "0.48078105", "text": "protected function renderTrustedPropertiesField() {}", "title": "" }, { "docid": "e122a8b6e6ecd13acb1879705f3ccac1", "score": "0.48059717", "text": "final protected function initClass($api_response)\n {\n\n $this->initCustom($api_response->metaDataProperty->GeocoderResponseMetaData);\n $this->featureMember = $api_response->featureMember;\n\n $this->metaData()->found() == 0 ? $this->error = true : $this->error = false;\n switch ($this->error) {\n case false:\n $this->initCollection();\n break;\n case true:\n $this->initErrorColection();\n break;\n }\n\n }", "title": "" }, { "docid": "3238cad3b56631771f4527680f128426", "score": "0.48039734", "text": "abstract protected function set_metafield();", "title": "" } ]
6bad5702e782f447e2d22834e012d6a0
Maps the wildcard path from the response route.
[ { "docid": "0ac9fdec392d22c70668bf1800896d37", "score": "0.5516326", "text": "private function mapWildcard($index) {\n\t\t$routeParts = explode('/', $this->route);\n\n\t\tif (!isset($routeParts[$index])) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$wildcardParts = array_slice($routeParts, $index);\n\t\t$wildcard = '';\n\n\t\tforeach ($wildcardParts as $idx => $piece) {\n\t if (!$idx && !$piece) {\n\t continue;\n\t }\n\n\t if ($idx) {\n\t \t$wildcard .= \"/\";\n\t }\n\n\t $wildcard .= $piece;\n\t\t}\n\n\t\treturn $wildcard;\n\t}", "title": "" } ]
[ { "docid": "625650a03b37175a37203dbc174525cc", "score": "0.6550503", "text": "public function testRouteMatchesResourceWithWildcard()\n {\n $resource = '/hello/foo/bar/world';\n $route = new \\Slim\\Route('/hello/:path+/world', function () {});\n $result = $route->matches($resource);\n $this->assertTrue($result);\n $this->assertEquals(array('path'=>array('foo', 'bar')), $route->getParams());\n }", "title": "" }, { "docid": "6f736570e447b1d00bc0d6983e613ad7", "score": "0.5844031", "text": "public function testRouteMatchesResourceWithWildcardsAndParams()\n {\n $resource = '/hello/foo/bar/world/2012/03/10/first/second';\n $route = new \\Slim\\Route('/hello/:path+/world/:year/:month/:day/:path2+', function () {});\n $result = $route->matches($resource);\n $this->assertTrue($result);\n $this->assertEquals(array('path'=>array('foo', 'bar'), 'year'=>'2012', 'month'=>'03', 'day'=>'10', 'path2'=>array('first', 'second')), $route->getParams());\n }", "title": "" }, { "docid": "6cd25cf6190bf5dea2415dd3233eb3b2", "score": "0.580655", "text": "public function testRouteDoesNotMatchResourceWithWildcard()\n {\n $resource = '/hello';\n $route = new \\Slim\\Route('/hello/:path+', function () {});\n $result = $route->matches($resource);\n $this->assertFalse($result);\n $this->assertEquals(array(), $route->getParams());\n }", "title": "" }, { "docid": "55aecc434fd5f685d269641ce7090d6d", "score": "0.58031535", "text": "public function testRouteMatchesResourceWithMultipleWildcards()\n {\n $resource = '/hello/foo/bar/world/2012/03/10';\n $route = new \\Slim\\Route('/hello/:path+/world/:date+', function () {});\n $result = $route->matches($resource);\n $this->assertTrue($result);\n $this->assertEquals(array('path'=>array('foo', 'bar'), 'date'=>array('2012', '03', '10')), $route->getParams());\n }", "title": "" }, { "docid": "4c07c951defbd7a20b7e5424ec93c39d", "score": "0.5695388", "text": "private function _doDirectMatch(array $path) {}", "title": "" }, { "docid": "411044d048ebe73f08ebe28db5f83a8c", "score": "0.56228423", "text": "public function testRouteMatchesResourceWithOptionalWildcardsAndParams()\n {\n $resourceA = '/hello/world/foo/bar';\n $routeA = new \\Slim\\Route('/hello(/:world(/:path+))', function () {});\n $this->assertTrue($routeA->matches($resourceA));\n $this->assertEquals(array('world'=>'world', 'path'=>array('foo', 'bar')), $routeA->getParams());\n\n $resourceB = '/hello/world';\n $routeB = new \\Slim\\Route('/hello(/:world(/:path))', function () {});\n $this->assertTrue($routeB->matches($resourceB));\n $this->assertEquals(array('world'=>'world'), $routeB->getParams());\n }", "title": "" }, { "docid": "f69bda1536a2e05d61852ab04590cdad", "score": "0.56160396", "text": "function scanner(){\n if(strlen(trim(rtrim($_REQUEST[$this->routeParam])))>0){\n $this->resource = explode(\"/\", rtrim($_REQUEST[$this->routeParam]));\n $route = '/'.$this->resource[0];\n unset($this->resource[0]);\n $this->resource = implode('/',array_values($this->resource));\n if(in_array($route, $this->routeList)){\n $this->route = $route;\n }else{\n $this->route ='/404';\n }\n }else{\n $this->route='/';\n }\n }", "title": "" }, { "docid": "c07f019b8005dd566854ba9e6dc7d28e", "score": "0.5545762", "text": "public function route() {\n return array(\n '/^sitemap\\.xml$/' => 'actionMap',\n '/^download\\/(.+?).html/' => array(\n 'class' => 'Download',\n 'argument' => '$1'\n )\n );\n }", "title": "" }, { "docid": "88ec78ccd70ebff72a905b7f61415f29", "score": "0.54755974", "text": "public function path_matches($request_path)\n {\n }", "title": "" }, { "docid": "e09509d127734609900e6a8e611f005f", "score": "0.5409214", "text": "protected function processPath(Aloi_Serphlet_Application_HttpRequest $request, Aloi_Serphlet_Application_HttpResponse $response) {\r\n\r\n // For prefix matching, match on the path info (if any)\r\n// $path = (string) $request->getAttribute(self::INCLUDE_PATH_INFO);\r\n// if ($path == null) {\r\n $path = $request->getPathInfo();\r\n// }\r\n// if (($path != null) && (strlen($path) > 0)) {\r\n// return ($path);\r\n// }\r\n\r\n // For extension matching, strip the module prefix and extension\r\n// $path = (string) $request->getAttribute(self::INCLUDE_SERVLET_PATH);\r\n// if ($path == null) {\r\n// $path = $request->getServletPath();\r\n// }\r\n $prefix = $this->moduleConfig->getPrefix();\r\n if (substr($path, 0, strlen($prefix)) != $prefix) {\r\n $msg = $this->getInternal()->getMessage(\"processPath\", $request->getRequestURI());\r\n self::$log->error($msg);\r\n $response->sendError(Aloi_Serphlet_Application_HttpResponse::SC_BAD_REQUEST, $msg);\r\n return null;\r\n }\r\n \r\n // TODO: Add back in support for servlet path\r\n $path = substr($path, strlen($prefix));\r\n $period = strrpos($path, \".\");\r\n if (($period >= 0) && $period !== false) {\r\n $path = substr($path, 0, $period);\r\n }\r\n \r\n return ($path);\r\n\t}", "title": "" }, { "docid": "a23cd4343ba91055996fdba22d990fa0", "score": "0.53711194", "text": "protected function _parse_routes()\n\t{\n\t\t$uri = implode('/', $this->uri->segments);\n\n\t\t// Get HTTP verb\n\t\t$http_verb = isset($_SERVER['REQUEST_METHOD']) ? strtolower($_SERVER['REQUEST_METHOD']) : 'cli';\n\n\t\t// Loop through the route array looking for wildcards\n\t\tforeach ($this->routes as $key => $val)\n\t\t{\n\t\t\t// Check if route format is using HTTP verbs\n\t\t\tif (is_array($val))\n\t\t\t{\n\t\t\t\t$val = array_change_key_case($val, CASE_LOWER);\n\t\t\t\tif (isset($val[$http_verb]))\n\t\t\t\t{\n\t\t\t\t\t$val = $val[$http_verb];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Convert wildcards to RegEx\n\t\t\t$key = str_replace(array(':any', ':num',':all'), array('[^/]+', '[0-9]+','(?!(Techsystem|techsystem|Vindex\\/tech5sManagerControl).*$).*'), $key);\n\t\t\t// $key = str_replace(array(':any', ':num'), array('[^/]+', '[0-9]+'), $key);\n\t\t\t// Does the RegEx match?\n\t\t\tif (preg_match('#^'.$key.'$#', $uri, $matches))\n\t\t\t{\n\t\t\t\t// Are we using callbacks to process back-references?\n\t\t\t\tif ( ! is_string($val) && is_callable($val))\n\t\t\t\t{\n\t\t\t\t\t// Remove the original string from the matches array.\n\t\t\t\t\tarray_shift($matches);\n\n\t\t\t\t\t// Execute the callback using the values in matches as its parameters.\n\t\t\t\t\t$val = call_user_func_array($val, $matches);\n\t\t\t\t}\n\t\t\t\t// Are we using the default routing method for back-references?\n\t\t\t\telseif (strpos($val, '$') !== FALSE && strpos($key, '(') !== FALSE)\n\t\t\t\t{\n\t\t\t\t\t$val = preg_replace('#^'.$key.'$#', $val, $uri);\n\t\t\t\t}\n\n\t\t\t\t$this->_set_request(explode('/', $val));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\n\t\t// If we got this far it means we didn't encounter a\n\t\t// matching route so we'll set the site default route\n\t\t$this->_set_request(array_values($this->uri->segments));\n\t}", "title": "" }, { "docid": "cdd621186342b3bc7a7b2f626c3e6104", "score": "0.53471607", "text": "public function routeUrlForAutodetect1(Get $request, Html $response)\n {\n echo $response->urlFor('routeUrlDestinationAutodetect');\n\n }", "title": "" }, { "docid": "65a07ae4fcfd08b4d19f1dccc3ddd1d0", "score": "0.53258604", "text": "function klein_respond( $method, $route = '*', $callback = null ) {\n\tglobal $__klein_routes, $__klein_namespace;\n\n\t$args = func_get_args();\n\t$callback = array_pop( $args );\n\t$route = array_pop( $args );\n\t$method = array_pop( $args );\n\n\tif ( null === $route ) {\n\t\t$route = '*';\n\t}\n\n\t// only consider a request to be matched when not using matchall\n\t$count_match = ( $route !== '*' );\n\n\tif ( $__klein_namespace && $route[0] === '@' || ( $route[0] === '!' && $route[1] === '@' ) ) {\n\t\tif ( $route[0] === '!' ) {\n\t\t\t$negate = true;\n\t\t\t$route = substr( $route, 2 );\n\t\t} else {\n\t\t\t$negate = false;\n\t\t\t$route = substr( $route, 1 );\n\t\t}\n\n\t\t// regex anchored to front of string\n\t\tif ( $route[0] === '^' ) {\n\t\t\t$route = substr( $route, 1 );\n\t\t} else {\n\t\t\t$route = '.*' . $route;\n\t\t}\n\n\t\tif ( $negate ) {\n\t\t\t$route = '@^' . $__klein_namespace . '(?!' . $route . ')';\n\t\t} else {\n\t\t\t$route = '@^' . $__klein_namespace . $route;\n\t\t}\n\t} // empty route with namespace is a match-all\n\telseif ( $__klein_namespace && ( '*' === $route ) ) {\n\t\t$route = '@^' . $__klein_namespace . '(/|$)';\n\t} else {\n\t\t$route = $__klein_namespace . $route;\n\t}\n\n\t$__klein_routes[] = array( $method, $route, $callback, $count_match );\n\n\treturn $callback;\n}", "title": "" }, { "docid": "13e1e327ff1cb442fea4e1c55adad66b", "score": "0.5321205", "text": "public function testRouteSetsCustomTemplate()\n {\n $route = new \\Slim\\Route('/hello/*', function () {});\n $route->setPattern('/hello/:name');\n $this->assertEquals('/hello/:name', $route->getPattern());\n }", "title": "" }, { "docid": "80dd9af14a618527b589500d53620d3d", "score": "0.52994174", "text": "public function routeUrlDestinationAutodetect()\n {\n\n }", "title": "" }, { "docid": "9dce92fc691b17607f34c03a202bf535", "score": "0.5282068", "text": "protected function _parse_routes()\n {\n $uri = implode('/', $this->uri->segments);\n\n // only for test\n // sometime js file has map file but not found in server\n if (ENVIRONMENT === 'development') {\n log_message('error', json_encode($uri));\n }\n\n // Get HTTP verb\n $http_verb = isset($_SERVER['REQUEST_METHOD']) ? strtolower($_SERVER['REQUEST_METHOD']) : 'cli';\n\n // Loop through the route array looking for wildcards\n foreach ($this->routes as $key => $val)\n {\n // Check if route format is using HTTP verbs\n if (is_array($val))\n {\n $val = array_change_key_case($val, CASE_LOWER);\n if (isset($val[$http_verb]))\n {\n $val = $val[$http_verb];\n }\n else\n {\n continue;\n }\n }\n\n // Convert wildcards to RegEx\n $key = str_replace(array(':any', ':num'), array('.+', '[0-9]+'), $key);\n\n // Does the RegEx match?\n if (preg_match('#^'.$key.'$#', $uri, $matches))\n {\n // Are we using callbacks to process back-references?\n if ( ! is_string($val) && is_callable($val))\n {\n // Remove the original string from the matches array.\n array_shift($matches);\n\n // Execute the callback using the values in matches as its parameters.\n $val = call_user_func_array($val, $matches);\n }\n // Are we using the default routing method for back-references?\n elseif (strpos($val, '$') !== FALSE && strpos($key, '(') !== FALSE)\n {\n $val = preg_replace('#^'.$key.'$#', $val, $uri);\n }\n\n $this->_set_request(explode('/', $val));\n return;\n }\n }\n\n // If we got this far it means we didn't encounter a\n // matching route so we'll set the site default route\n $this->_set_request(array_values($this->uri->segments));\n }", "title": "" }, { "docid": "c73e4a753e9cff32d31e8a9a0dcb8fa1", "score": "0.5269276", "text": "public function useRoute(){\n\t\t\t$routeParts = explode(\"@\", $this->matchingRoute->location);\n\t\t\treturn [\"controller\" => ucfirst($routeParts[0]), \"method\" => $routeParts[1]];\n\t\t}", "title": "" }, { "docid": "bd05ed8ee04845ed4ca93471712fac99", "score": "0.52619815", "text": "public function testRouteMatchesWithTrailingSlash()\n {\n $resource1 = '/foo/bar/';\n $resource2 = '/foo/bar';\n $route = new \\Slim\\Route('/foo/:one/', function () {});\n $this->assertTrue($route->matches($resource1));\n $this->assertTrue($route->matches($resource2));\n }", "title": "" }, { "docid": "7e4fff7d051300f3c26992bd7c79d4e7", "score": "0.52337825", "text": "abstract public function getRouteMatch();", "title": "" }, { "docid": "8e7c1b9434d31ad0fe1c4db2ac2ad08a", "score": "0.52297634", "text": "protected function processMapping(Aloi_Serphlet_Application_HttpRequest $request, Aloi_Serphlet_Application_HttpResponse $response, $path) {\r\n\r\n\t\t// Is there a directly defined mapping for this path?\r\n\t\t$mapping = $this->moduleConfig->findActionConfig($path);\r\n\t\tif (!is_null($mapping)) {\r\n\t\t\t$request->setAttribute(Aloi_Phruts_Globals::MAPPING_KEY, $mapping);\r\n\t\t\treturn $mapping;\r\n\t\t}\r\n\r\n\t\t// Locate the mapping for unknown paths (if any)\r\n\t\t$configs = $this->moduleConfig->findActionConfigs();\r\n\t\tforeach ($configs as $config) {\r\n\t\t\tif ($config->getUnknown()) {\r\n\t\t\t\t$request->setAttribute(Aloi_Phruts_Globals::MAPPING_KEY, $config);\r\n\t\t\t\treturn $config;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// No mapping can be found to process this request\r\n\t\t$msg = $this->getInternal()->getMessage(null, 'processInvalid', $path);\r\n\t\tself::$log->error($msg);\r\n\t\t$response->sendError(Aloi_Serphlet_Application_HttpResponse::SC_BAD_REQUEST, $msg);\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "6601abb83f57b1a5f19a2b6956c43f28", "score": "0.5208243", "text": "public function testUrlCatchAllRoute(): void\n {\n Router::createRouteBuilder('/')\n ->connect('/*', ['controller' => 'Categories', 'action' => 'index']);\n $result = Router::url(['controller' => 'Categories', 'action' => 'index', '0']);\n $this->assertSame('/0', $result);\n\n $expected = [\n 'plugin' => null,\n 'controller' => 'Categories',\n 'action' => 'index',\n 'pass' => ['0'],\n '_matchedRoute' => '/*',\n ];\n $result = Router::parseRequest($this->makeRequest('/0', 'GET'));\n unset($result['_route']);\n $this->assertEquals($expected, $result);\n\n $result = Router::parseRequest($this->makeRequest('0', 'GET'));\n unset($result['_route']);\n $this->assertEquals($expected, $result);\n }", "title": "" }, { "docid": "55dba41a8fff4159e37b39a6430882fe", "score": "0.52066886", "text": "public function paths_callback( $matches ) {\n\t\n\t\t\n\t\t//We don't want to match data URLs or absolute paths — those that are a fully\n\t\t//qualified URL or those that start with a slash\n\t\tforeach( array( 'http:', 'https:', '/', 'data:', ) as $context ) {\n\t\t\tif( substr( $matches[ 'url' ], 0, strlen( $context ) ) == $context )\n\t\t\t\treturn $matches[ 0 ];\n\t\t}\n\t\t\n\t\treturn str_replace( $matches[ 'url' ], $this->absolute_path . '/' . $matches[ 'url' ], $matches[ 0 ] );\n\t\t\n\t}", "title": "" }, { "docid": "df225ef3c15be5ede6e7faaa19113587", "score": "0.5186798", "text": "public function getBaseRoutePattern(): string;", "title": "" }, { "docid": "5f6b57c6225fb0ecb6a99667c5e47eee", "score": "0.51716924", "text": "public function get_matched_route()\n {\n }", "title": "" }, { "docid": "4d468a7686a55aba91bfdc33e1c1fa38", "score": "0.5155893", "text": "public function route()\n {\n $path = Url::getPath();\n\n // If no routes exist, set 404\n if (count($this->routes) == 0)\n {\n return;\n }\n\n // Check if exact match (cheap)\n if ((isset($this->routes[$path]))\n && (!$this->routes[$path]['is_regex']))\n {\n $this->dispatch($this->routes[$path]);\n exit;\n }\n\n // Loop through all routes and attempt to find a match. (expensive)\n foreach ($this->routes as $i => $route)\n {\n $matches = null;\n\n // If route found\n if (($route['is_regex'])\n && (preg_match($route['match'], $path, $matches)))\n {\n // Remove full match from array list\n array_shift($matches);\n\n $this->dispatch($route, $matches);\n exit;\n }\n }\n }", "title": "" }, { "docid": "5058f3572bd28700abf44b450b157c26", "score": "0.5139898", "text": "public function getFoundPath() {}", "title": "" }, { "docid": "cf8d8fd6a107d4ed905ae9aecb3e3d01", "score": "0.5136919", "text": "public function routerMatchingExamples()\n {\n return [\n ['GET', '', MatchResult::found(['name' => 'root'], [])],\n ['GET', '/', MatchResult::found(['name' => 'root-slash'], [])],\n ['GET', '/a', MatchResult::notFound()],\n ];\n }", "title": "" }, { "docid": "17a9e645ff779c215b6b621e2c06988b", "score": "0.5130287", "text": "public function testRouteSetsPattern()\n {\n $route1 = new \\Slim\\Route('/foo/bar', function () {});\n $this->assertEquals('/foo/bar', $route1->getPattern());\n }", "title": "" }, { "docid": "507cd3e3ad88d7b99c2ef03560a326ec", "score": "0.51289976", "text": "public function routeUrlForAutodetect2(Get $request, Html $response)\n {\n echo $response->urlFor('Products::routeUrlDestinationAutodetect');\n\n }", "title": "" }, { "docid": "c9cb3910810eef81ac607ce5c2d96036", "score": "0.5128498", "text": "public function add_endpoint() {\r\n add_rewrite_rule('^api/films/?(\\w+)?/?','index.php?__api=1&films=$matches[1]','top');\r\n }", "title": "" }, { "docid": "d043fe06f1b7278bc7cf4a5d65fb2b73", "score": "0.5096308", "text": "function rest_get_queried_resource_route()\n {\n }", "title": "" }, { "docid": "c1f3b20cf298e67bc8e0ffc250b38c94", "score": "0.5093857", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n $this->mapACLRoutes(); \n //\n }", "title": "" }, { "docid": "dd32bc9a2270ae397ed57bb55cebcf8f", "score": "0.5084181", "text": "private function mapResponses()\n {\n foreach ($this->responses as &$data) {\n /** @var Response $response */\n $response = $data[1];\n\n if (preg_match('/^\\$/',$response->ref)) {\n $params = explode(\"/\", strtolower($response->ref));\n\n $this->loadParent($data, $params[1], $params[2]);\n } else {\n $this->head_responses[] = &$data;\n }\n }\n }", "title": "" }, { "docid": "c435aca7e6ee1580adf9e374bf780651", "score": "0.50710624", "text": "public function pathAliasCallback() {\n $args = func_get_args();\n switch($args[0]) {\n case '/content/first-node':\n return '/node/1';\n case '/content/first-node-test':\n return '/node/1/test';\n case '/malicious-path':\n return '/admin';\n case '':\n return '<front>';\n default:\n return $args[0];\n }\n }", "title": "" }, { "docid": "3e3b536435a7ee64fad416961f4d2221", "score": "0.50705594", "text": "public function getHandledPaths();", "title": "" }, { "docid": "1a711eff9dfcf80dc43078464eed91c8", "score": "0.50700134", "text": "static function propfind($path, $handler)\r\n {\r\n Route::route(\"PROPFIND\", $path, $handler);\r\n }", "title": "" }, { "docid": "098be5c2f408bc84634c4a2ca9550d4b", "score": "0.50695467", "text": "private static function createRootRoute()\n {\n self::$Router->map('GET|POST', '/', function(){\n Root::executeResponse();\n exit();\n });\n }", "title": "" }, { "docid": "3e49ddf8a66237fe083cdbc06e486018", "score": "0.50672394", "text": "function _parse_routes()\n {\n // Do we even have any custom routing to deal with?\n // There is a default scaffolding trigger, so we'll look just for 1\n if (count($this->routes) == 1)\n {\n $this->_set_request($this->uri->segments);\n return;\n }\n\n // Turn the segment array into a URI string\n $uri = implode('/', $this->uri->segments);\n\n // Is there a literal match? If so we're done\n if (isset($this->routes[$uri]))\n {\n $this->_set_request(explode('/', $this->routes[$uri]));\n return;\n }\n\n //Art\n $i = $this->_search_by_key($this->routes, self::MAIN, $uri);\n if ($i !== FALSE)\n {\n $this->_set_request(explode('/', $this->routes[$i][self::ROUTE]));\n return;\n }\n\n // Loop through the route array looking for wild-cards\n foreach ($this->routes as $key => $val)\n {\n if(is_int($key))\n {\n $key = $val[self::MAIN];\n $val = $val[self::ROUTE];\n }\n // Convert wild-cards to RegEx\n $key = str_replace(':any', '.+', str_replace(':num', '[0-9]+', $key));\n\n // Does the RegEx match?\n if (preg_match('#^'.$key.'$#', $uri))\n {\n // Do we have a back-reference?\n if (strpos($val, '$') !== FALSE AND strpos($key, '(') !== FALSE)\n {\n $val = preg_replace('#^'.$key.'$#', $val, $uri);\n }\n $this->_set_request(explode('/', $val));\n return;\n }\n }\n\n // If we got this far it means we didn't encounter a\n // matching route so we'll set the site default route\n $this->_set_request($this->uri->segments);\n }", "title": "" }, { "docid": "68d41698f9239f34c28e74d91fa2344e", "score": "0.5064702", "text": "public function testRouteMatchesAndParamExtracted()\n {\n $resource = '/hello/Josh';\n $route = new \\Slim\\Route('/hello/:name', function () {});\n $result = $route->matches($resource);\n $this->assertTrue($result);\n $this->assertEquals(array('name' => 'Josh'), $route->getParams());\n }", "title": "" }, { "docid": "b4fcbe6218561dd4b190b33562fde63a", "score": "0.5053477", "text": "private function uri_reroute()\n {\n $match = false;\n\n $uri = parse_url($_SERVER['REQUEST_URI']);\n if (isset($uri['path']) && $uri['path'] !== \"/\") {\n $_ = preg_split(\"|/|\", $uri['path'], -1, PREG_SPLIT_NO_EMPTY);\n\n $i = 0;\n $route = null;\n $router = null;\n // while ($match === false) {\n // $path = $_[$i];\n\n // if (isset($this->configuration['ROUTES']['/' . $path])) {\n // $match = true;\n // $route = \"/$path\";\n // $router = $this->configuration['ROUTES']['/' . $path];\n // $this->route_map = $route;\n // }\n\n // if (isset($this->configuration['ROUTES'][$path])) {\n // $match = true;\n // $route = \"$path\";\n // $router = $this->configuration['ROUTES'][$path];\n // $this->route_map = $route;\n // }\n\n // ++$i;\n // }\n\n // unset($_);\n // unset($i);\n // unset($uri);\n // unset($path);\n\n if (isset($_) && is_array($_) && count($_) > 0) {\n $path = \"\";\n foreach ($_ as $k => $v) {\n $path .= \"/\" . $v;\n\n if (isset($this->configuration['ROUTES'][$path])) {\n $match = true;\n $route = \"$path\";\n $router = $this->configuration['ROUTES'][$path];\n $this->route_map = $route;\n\n // if(is_array($router['params'])){\n\n // }elseif($router['params'] == \"*\"){\n // break;\n // }\n\n break;\n }\n }\n }\n\n if (isset($router['controller'])) {\n $this->controller = $router['controller'];\n } else {\n $this->controller = \"main\";\n }\n\n if (isset($router['method'])) {\n $this->method = $router['method'];\n } else {\n $this->method = \"index\";\n }\n\n if (isset($router['action']) && isset($this->http)) {\n if (trim(strtolower($router['action'])) != strtolower($this->http->action)) {\n $this->http->http_error(403);\n }\n }\n \n if (isset($router['type']) && isset($router['type'])){\n if (trim(strtolower($router['type'])) == \"json\" && $this->http->type != \"json\"){\n $this->http->http_error(406, \"Form \" . $this->http->action . \" data is not json\");\n }\n }\n\n if (isset($router['params'])) {\n if (is_array($router['params'])) {\n $uri = preg_split(\"|/|\", str_replace($route, \"\", $_SERVER['REQUEST_URI']), -1, PREG_SPLIT_NO_EMPTY);\n\n if (is_array($router['params'])) {\n $_ = $router['params'];\n unset($router['params']);\n\n $router['params'][] = $_;\n unset($_);\n }\n\n $nums_params = count($router['params'][0]);\n\n if ($nums_params > 0) {\n foreach ($router['params'][0] as $k => $v) {\n $this->params[$v] = trim(urldecode($uri[$k]));\n }\n }\n\n $i = 0;\n $x = 0;\n while ($nums_params < $i) {\n if (isset($uri[$x]) && is_value($uri[$x])) {\n $this->params[$router['params'][$i]] = trim(urldecode($uri[$x]));\n ++$i;\n }\n ++$x;\n }\n\n } elseif ($router['params'] != \"*\") {\n return $this->http->http_error(404);\n }\n } else {\n $uri = preg_split(\"|/|\", str_replace($route, \"\", $_SERVER['REQUEST_URI']), -1, PREG_SPLIT_NO_EMPTY);\n\n if (count($uri) > 0) {\n return $this->http->http_error(404);\n }\n }\n\n unset($uri);\n unset($i);\n unset($x);\n unset($route);\n unset($router);\n }\n\n return $match;\n }", "title": "" }, { "docid": "0fbd4f0ef8f5fb11ee70281d2a54eee3", "score": "0.5047449", "text": "public function path(): RoutePathInterface;", "title": "" }, { "docid": "26c4fc14453418405f89d5ea70b66f4e", "score": "0.50471616", "text": "public function match($path, $partial = false)\n {\n if ($this->_isTranslated) {\n $translateMessages = $this->getTranslator()->getMessages();\n }\n\n $pathStaticCount = 0;\n $values = array();\n $matchedPath = '';\n\n if (!$partial) {\n $path = trim($path, $this->_urlDelimiter);\n }\n\n if ($path !== '') {\n $path = explode($this->_urlDelimiter, $path);\n\n foreach ($path as $pos => $pathPart) {\n // Path is longer than a route, it's not a match\n if (!array_key_exists($pos, $this->_parts)) {\n if ($partial) {\n break;\n } else {\n return false;\n }\n }\n\n $matchedPath .= $pathPart . $this->_urlDelimiter;\n\n // If it's a wildcard, get the rest of URL as wildcard data and stop matching\n if ($this->_parts[$pos] == '*') {\n $count = count($path);\n for($i = $pos; $i < $count; $i+=2) {\n $var = urldecode($path[$i]);\n if (!isset($this->_wildcardData[$var]) && !isset($this->_defaults[$var]) && !isset($values[$var])) {\n $this->_wildcardData[$var] = (isset($path[$i+1])) ? urldecode($path[$i+1]) : null;\n }\n }\n\n $matchedPath = implode($this->_urlDelimiter, $path);\n break;\n }\n\n $name = isset($this->_variables[$pos]) ? $this->_variables[$pos] : null;\n $pathPart = urldecode($pathPart);\n\n // Translate value if required\n $part = $this->_parts[$pos];\n if ($this->_isTranslated && (mb_substr($part, 0, 1, 'UTF-8') === '@' && mb_substr($part, 1, 1, 'UTF-8') !== '@' && $name === null) || $name !== null && in_array($name, $this->_translatable)) {\n if (mb_substr($part, 0, 1, 'UTF-8') === '@') {\n $part = mb_substr($part, 1, null, 'UTF-8');\n }\n\n if (($originalPathPart = array_search($pathPart, $translateMessages)) !== false) {\n $pathPart = $originalPathPart;\n }\n }\n\n if (mb_substr($part, 0, 2, 'UTF-8') === '@@') {\n $part = mb_substr($part, 1, null, 'UTF-8');\n }\n\n // If it's a static part, match directly\n if ($name === null && $part != $pathPart) {\n return false;\n }\n\n // If it's a variable with requirement, match a regex. If not - everything matches\n if ($part !== null && !preg_match($this->_regexDelimiter . '^' . $part . '$' . $this->_regexDelimiter . 'iu', $pathPart)) {\n return false;\n }\n\n // If it's a variable store it's value for later\n if ($name !== null) {\n $values[$name] = $pathPart;\n } else {\n $pathStaticCount++;\n }\n }\n }\n\n // Check if all static mappings have been matched\n if ($this->_staticCount != $pathStaticCount) {\n return false;\n }\n\n $return = $values + $this->_wildcardData + $this->_defaults;\n\n // Check if all map variables have been initialized\n foreach ($this->_variables as $var) {\n if (!array_key_exists($var, $return)) {\n return false;\n } elseif ($return[$var] == '' || $return[$var] === null) {\n // Empty variable? Replace with the default value.\n $return[$var] = $this->_defaults[$var];\n }\n }\n\n $this->setMatchedPath(rtrim($matchedPath, $this->_urlDelimiter));\n\n $this->_values = $values;\n\n return $return;\n\n }", "title": "" }, { "docid": "ea058a4c87ad0abb4b19945f4d481708", "score": "0.5047121", "text": "public function route()\n\t{\n\t\t/* [http|https]/[Ajax|]/[Get|Post|Delete|Put]/uri */\n\t\t$this->route = $this->route_raw = ($this->c->Request->is_https ? 'https' : 'http').'/'.($this->c->Request->is_ajax ? 'Ajax' : '').'/'.$this->c->Request->request.'/'.$this->c->Request->uri;\n\n\t\t/* call dispatch event */\n\t\t$this->c->Event->preRouter();\n\n\t\t/* rewrite dispatch route */\n\t\tforeach ($this->c->router['routes'] as $regexpath => $switchto) {\n\t\t\tif (preg_match($regexpath, $this->route)) {\n\t\t\t\t/* we got a match */\n\t\t\t\t$this->route = preg_replace($regexpath, $switchto, $this->route);\n\t\t\t\t$this->route_matched = $regexpath;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t/* call dispatch event */\n\t\t$this->c->Event->postRouter();\n\n\t}", "title": "" }, { "docid": "cd91cce84dcf48d500e3bc947d07efc5", "score": "0.50453174", "text": "abstract public function getRoutePrefix();", "title": "" }, { "docid": "5741d8879553e078c415939ebbcf753c", "score": "0.5043362", "text": "public function getRoutePath($onlyStaticPart = false);", "title": "" }, { "docid": "b2e88a90b21459f2203d4084e16bc035", "score": "0.50400585", "text": "protected function _parse_routes()\n {\n $uri = implode('/', $this->uri->segments);\n\n // Get HTTP verb\n $http_verb = isset($_SERVER['REQUEST_METHOD']) ? strtolower($_SERVER['REQUEST_METHOD']) : 'cli';\n\n // Is there a literal match? If so we're done\n if (isset($this->routes[$uri])) {\n // Check default routes format\n if (is_string($this->routes[$uri])) {\n $this->_set_request(explode('/', $this->routes[$uri]));\n return;\n }\n // Is there a matching http verb?\n elseif (is_array($this->routes[$uri]) && isset($this->routes[$uri][$http_verb])) {\n $this->_set_request(explode('/', $this->routes[$uri][$http_verb]));\n return;\n }\n }\n\n // decryption of module/controller/function name in admin\n if ($this->config->item('is_admin') == 1) {\n if ($this->config->item('ADMIN_URL_ENCRYPTION') == 'Y') {\n $uri_t = str_replace('admin/', '', $uri);\n if ($uri_t != \"\") {\n require_once(APPPATH . '/libraries/Ci_encrypt.php');\n $CI_Enc = new Ci_encrypt();\n $uri_t_decode = $CI_Enc->decrypt($uri_t, true);\n $CI_Enc->convertEncryptedVars();\n }\n $uri = 'admin/' . $uri_t_decode;\n }\n }\n // Loop through the route array looking for wildcards\n foreach ($this->routes as $key => $val) {\n // Check if route format is using http verb\n if (is_array($val)) {\n if (isset($val[$http_verb])) {\n $val = $val[$http_verb];\n } else {\n continue;\n }\n }\n\n // Convert wildcards to RegEx\n #$key = str_replace(array(':any', ':num'), array('[^/]+', '[0-9]+'), $key);\n $key = str_replace(':any', '.+', str_replace(':num', '[0-9]+', $key));\n\n // Does the RegEx match?\n if (preg_match('#^' . $key . '$#', $uri, $matches)) {\n // Are we using callbacks to process back-references?\n if (!is_string($val) && is_callable($val)) {\n // Remove the original string from the matches array.\n array_shift($matches);\n\n // Execute the callback using the values in matches as its parameters.\n $val = call_user_func_array($val, $matches);\n }\n // Are we using the default routing method for back-references?\n elseif (strpos($val, '$') !== FALSE && strpos($key, '(') !== FALSE) {\n $val = preg_replace('#^' . $key . '$#', $val, $uri);\n }\n\n $this->_set_request(explode('/', $val));\n return;\n }\n }\n\n // If we got this far it means we didn't encounter a\n // matching route so we'll set the site default route\n $this->_set_request(array_values($this->uri->segments));\n }", "title": "" }, { "docid": "674843e28e95aa990e5cf6ddf1e8fb0a", "score": "0.50294524", "text": "public static function route();", "title": "" }, { "docid": "c9af5225a5193a371f96a5d229a205e0", "score": "0.5026264", "text": "private function parseRoutes()\n {\n // Turn the segment array into a URI string\n $uri = implode('/', $this->uri->getSegments());\n // Is there a literal match? If so we're done\n if (isset($this->routes[$uri])) {\n return $this->setRequest(explode('/', $this->routes[$uri]));\n }\n\n // Loop through the route array looking for wild-cards\n foreach ($this->routes as $key => $val) {\n // Convert wild-cards to RegEx\n $key = str_replace(':any', '.+', str_replace(':num', '[0-9]+', $key));\n // Does the RegEx match?\n if (preg_match('#^'.$key.'$#', $uri)) {\n // Do we have a back-reference?\n if (strpos($val, '$') !== false && strpos($key, '(') !== false) {\n $val = preg_replace('#^'.$key.'$#', $val, $uri);\n }\n\n return $this->setRequest(explode('/', $val));\n }\n }\n\n // If we got this far it means we didn't encounter a\n // matching route so we'll set the site default route\n $this->setRequest($this->uri->getSegments());\n }", "title": "" }, { "docid": "baf01e5880da18a67d6b6a00fccc4d17", "score": "0.50172627", "text": "public function filterRoute($path){\n $exploded_path = explode('/', $path);\n foreach($exploded_path as $key => $path_element){\n if(is_numeric($path_element)){\n $exploded_path[$key] = '%';\n $this->actionParameter = (int)$path_element;\n }\n }\n return implode('/', $exploded_path);\n }", "title": "" }, { "docid": "4f5c4cada5c0386d892f841b1d169eec", "score": "0.5014549", "text": "abstract public function getRoute();", "title": "" }, { "docid": "d2f8ddc271fa57760079c81979cc904d", "score": "0.501413", "text": "public static function get($pattern, callable $callback): Route;", "title": "" }, { "docid": "075b035aeeb61e2a990e1bef81ffb40b", "score": "0.50095314", "text": "abstract protected function getListRoute() : string;", "title": "" }, { "docid": "1112cafa0fcd7b932d18a9a170cc4b91", "score": "0.50092214", "text": "public function getWildcardPrefixes() {}", "title": "" }, { "docid": "4d74c4bbaf44f20c4ebe2c88ab19a761", "score": "0.5001799", "text": "public function testControllerMethodCatchAll()\n {\n $route = new Route();\n \n $route->set(null, \"user\", null, \"Anax\\Route\\MockHandlerControllerCatchAll\");\n \n $path = \"user/whatever\";\n $this->assertTrue($route->match($path, \"GET\"));\n $res = $route->handle($path);\n $this->assertEquals(\"catchAll\", $res);\n }", "title": "" }, { "docid": "823506a7f2b46ec1796f7e02687656c1", "score": "0.49898556", "text": "private function getPattern(){\n $pattern = strstr( substr($this->_requestUri,1) , '/', true) ;\n if( isset( $this->_config['pattern'] [$pattern] )){\n $this->_activePatern = $this->_config['pattern'][$pattern];\n\n $this->_cacheFolder = $pattern;\n\n $this->_requestUri = str_replace(\"/$pattern/\", \"/\", $this->_requestUri);\n }\n }", "title": "" }, { "docid": "c54113c1f043d6d7fdd7afa7d920b857", "score": "0.49848878", "text": "public function wildcard()\n {\n return $this->wildcard;\n }", "title": "" }, { "docid": "41b3fa52aab9dbac9307457f41512f32", "score": "0.49780867", "text": "public function map()\n {\n $this->mapV1Routes();\n }", "title": "" }, { "docid": "144bff8b3c93f072924004fed80547b5", "score": "0.49737552", "text": "public function routeUrlForFallback1(Get $request, Html $response)\n {\n echo $response->urlFor('routeUrlParamsRequest', [\n 'id' => '123',\n 'slug' => 'slugger'\n ]);\n\n }", "title": "" }, { "docid": "6259a46bd0c24632f6c4fcc64bafd1f0", "score": "0.49716341", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n //\n }", "title": "" }, { "docid": "301e03eb5ef54f7e77e032926409cbdf", "score": "0.4965562", "text": "public function setPartialPaths() {}", "title": "" }, { "docid": "6e925ac6032538a6aea31885d7b410bc", "score": "0.49599892", "text": "public function getRouteMatch();", "title": "" }, { "docid": "ecf2059570afd45d66ddfc3a0083beb1", "score": "0.49561578", "text": "public function routeUrlForFallback2(Get $request, Html $response)\n {\n echo $response->urlFor('Products::routeUrlDestination', [\n 'var' => 'val'\n ]);\n\n }", "title": "" }, { "docid": "85e02bf647f6023a4dfc4bc9263a0576", "score": "0.49466866", "text": "public function process($path, Request $request);", "title": "" }, { "docid": "55b6bc2fa2ed86a01b2ecc6e9d75d27e", "score": "0.4939627", "text": "function add_rewrite_endpoint($name, $places, $query_var = \\true)\n {\n }", "title": "" }, { "docid": "00835e634dedb075dac83e9114f09e93", "score": "0.49381447", "text": "public function register_routes() {\n\n\t\t\\add_filter( 'do_parse_request', array( $this, 'handle_routing' ) );\n\n\t}", "title": "" }, { "docid": "c6c2731b302b143783a0279f298a317e", "score": "0.49312413", "text": "public function getResponse(\\BearFramework\\App\\Request $request)\n {\n $requestPath = (string) $request->path;\n foreach ($this->data as $route) {\n foreach ($route[0] as $pattern) {\n $found = preg_match('/^' . str_replace(['%2F', '%3F', '%2A'], ['\\/', '[^\\/]+?', '.+?'], urlencode($pattern)) . '$/u', $requestPath) === 1; // symbols: /, ?, *\n if ($found && !empty($route[2])) {\n $hasMethodOption = false;\n $isMethodValid = false;\n $hasSchemeOption = false;\n $isSchemeValid = false;\n foreach ($route[2] as $option) {\n $option = strtolower($option);\n if ($option === 'get' || $option === 'head' || $option === 'post' || $option === 'delete' || $option === 'put' || $option === 'patch' || $option === 'options') {\n $hasMethodOption = true;\n if ($option === strtolower($request->method)) {\n $isMethodValid = true;\n }\n } elseif ($option === 'http' || $option === 'https') {\n $hasSchemeOption = true;\n if ($option === strtolower($request->scheme)) {\n $isSchemeValid = true;\n }\n }\n }\n if (($hasMethodOption && !$isMethodValid) || ($hasSchemeOption && !$isSchemeValid)) {\n $found = false;\n }\n }\n if ($found) {\n foreach ($route[1] as $callable) {\n ob_start();\n try {\n $response = call_user_func($callable);\n ob_end_clean();\n } catch (\\Exception $e) {\n ob_end_clean();\n throw $e;\n }\n if ($response instanceof App\\Response) {\n return $response;\n }\n }\n // continue searching\n }\n }\n }\n if ($request->method === 'HEAD') {\n $getRequest = clone($request);\n $getRequest->method = 'GET';\n $response = $this->getResponse($getRequest);\n if ($response instanceof App\\Response) {\n $response->content = '';\n return $response;\n }\n }\n return null;\n }", "title": "" }, { "docid": "6e087c05f58da90957a7100f6afa0068", "score": "0.49307323", "text": "public function testInboundSubPath() {\n $this->aliasProcessor->expects($this->any())\n ->method('processInbound')\n ->will($this->returnCallback([$this, 'pathAliasCallback']));\n\n // Look up a subpath of the 'content/first-node' alias.\n $processed = $this->sut->processInbound('/content/first-node/a', Request::create('content/first-node/a'));\n $this->assertEquals('/node/1/a', $processed);\n\n // Look up a subpath of the 'content/first-node-test' alias.\n $processed = $this->sut->processInbound('/content/first-node-test/a', Request::create('content/first-node-test/a'));\n $this->assertEquals('/node/1/test/a', $processed);\n\n // Look up an admin sub-path of the 'content/first-node' alias without\n // disabling sub-paths for admin.\n $processed = $this->sut->processInbound('/content/first-node/edit', Request::create('content/first-node/edit'));\n $this->assertEquals('/node/1/edit', $processed);\n\n // Look up an admin sub-path without disabling sub-paths for admin.\n $processed = $this->sut->processInbound('/malicious-path/modules', Request::create('malicious-path/modules'));\n $this->assertEquals('/admin/modules', $processed);\n\n // @todo Add tests for the functionality to disallow admin subpaths once it\n // has been implemented.\n }", "title": "" }, { "docid": "ce05a3147c8dde55c82d756d70df14b5", "score": "0.49271703", "text": "public function testControllerMethodCatchAllRequestMethod()\n {\n $route = new Route();\n \n $route->set(null, \"user\", null, \"Anax\\Route\\MockHandlerControllerCatchAll\");\n \n $path = \"user/whatever\";\n $this->assertTrue($route->match($path, \"POST\"));\n $res = $route->handle($path);\n $this->assertEquals(\"catchAllPost\", $res);\n\n $this->assertTrue($route->match($path, \"PUT\"));\n $res = $route->handle($path);\n $this->assertEquals(\"catchAllPut\", $res);\n }", "title": "" }, { "docid": "b22d6293d3709ce98b04773c388e5e4b", "score": "0.49262625", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n //\n }", "title": "" }, { "docid": "b22d6293d3709ce98b04773c388e5e4b", "score": "0.49262625", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n //\n }", "title": "" }, { "docid": "b22d6293d3709ce98b04773c388e5e4b", "score": "0.49262625", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n //\n }", "title": "" }, { "docid": "b22d6293d3709ce98b04773c388e5e4b", "score": "0.49262625", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n //\n }", "title": "" }, { "docid": "b22d6293d3709ce98b04773c388e5e4b", "score": "0.49262625", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n //\n }", "title": "" }, { "docid": "b22d6293d3709ce98b04773c388e5e4b", "score": "0.49262625", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n //\n }", "title": "" }, { "docid": "b22d6293d3709ce98b04773c388e5e4b", "score": "0.49262625", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n //\n }", "title": "" }, { "docid": "b22d6293d3709ce98b04773c388e5e4b", "score": "0.49262625", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n //\n }", "title": "" }, { "docid": "e6cf4038d8a786e9868578dd1fd944c3", "score": "0.4924558", "text": "public function getServerPathAttribute();", "title": "" }, { "docid": "7dfa1b5ec7a53f691fe29046e494a407", "score": "0.49217018", "text": "abstract public function routeName();", "title": "" }, { "docid": "a7b7a115814a2e69b545ba89a3c2c6ce", "score": "0.492009", "text": "public function map()\n {\n //wap端路由为了防止和web端路由冲突一定要放到前面\n $this->mapWapRoutes();\n //web端路由\n $this->mapWebRoutes();\n //api路由\n $this->mapApiRoutes();\n //Backend路由\n $this->mapBackendRoutes();\n }", "title": "" }, { "docid": "5a16e1210609d933576c47128ebe61e1", "score": "0.49114823", "text": "public function match(ServerRequestInterface $request) : RouteInterface;", "title": "" }, { "docid": "f1f6d49213b452ec712a10c423ab5a04", "score": "0.4909518", "text": "function route($path=''){\r\n try {\r\n parent::route($path != '' ? $path : self::getEndPoint());\r\n } catch (Exception $e) {\r\n parent::route('help');\r\n }\r\n }", "title": "" }, { "docid": "8b020265ede777550873d4e6e4db7ff3", "score": "0.49079156", "text": "public function requestPaths() {\n\t\treturn array(\n\t\t\tarray('homepage', 'homepage'),\n\t\t\tarray('homepage.html', 'homepage'),\n\t\t\tarray('homepage/subpage.html', 'homepage/subpage'),\n\t\t\tarray('homepage/subpage.rss.xml', 'homepage/subpage')\n\t\t);\n\t}", "title": "" }, { "docid": "0e7a5d001d69d9fe9effbdcf3d4cade4", "score": "0.490365", "text": "public function registerSiteRoutes()\n\t{\n\t\t// NOTE: the second route is used to capture files in subdirectories as well\n\t\treturn array(\n\t\t\t'internal/(?P<id>.\\d*)' => array('action' => 'AssetManagement/Assets/findById'),\n\t\t\t'internal/(?P<directory>.*)/(?P<name>.*)' => array('action' => 'AssetManagement/Assets/findInDirectory')\n\t\t);\n\t}", "title": "" }, { "docid": "8dfaeb99c42007999cc11a5908ad49b4", "score": "0.48990965", "text": "public function map()\n {\n $this->mapWebRoutes();\n\n $this->mapApiRoutes();\n\n //\n }", "title": "" }, { "docid": "542e626a251b58ad928b134cabe4ae92", "score": "0.48916373", "text": "public function match ($uri);", "title": "" }, { "docid": "2cb8de89b9d6333146fb58326135acd8", "score": "0.4887317", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n $this->mapFrontWebRoutes();\n $this->mapBackWebRoutes();\n //\n }", "title": "" }, { "docid": "63bedbeff18e42fc0f71052474d5f971", "score": "0.48777765", "text": "public function _remap () {\n show_404();\n }", "title": "" }, { "docid": "58d9170dcfe3e8c96e82f42ee2350bc4", "score": "0.48753777", "text": "private function getRoute(){\n\t}", "title": "" }, { "docid": "6ef847d1bcda13d78a6133a72d9c27d9", "score": "0.48713773", "text": "public function route() {\n\t\t$method = $_SERVER['REQUEST_METHOD'];\n\t\t$request = (isset($_SERVER['PATH_INFO'])) ? explode(\"/\", trim($_SERVER['PATH_INFO'], \"/\")) : \"\";\n\t\t\n\t\treturn $this->routeRequest($method, $request);\n\t}", "title": "" }, { "docid": "0cc063a2454f1bc1f01024f0e515268d", "score": "0.48702577", "text": "public function testRouteMatchesResourceWithUnreservedMarks()\n {\n $marks = \"-_.!~*'()\";\n $resource = '/marks/' . $marks;\n $route = new \\Slim\\Route('/marks/:marks', function () {});\n $result = $route->matches($resource);\n $this->assertTrue($result);\n $this->assertEquals(array('marks' => $marks), $route->getParams());\n }", "title": "" }, { "docid": "f083a1f57487e9fc880122d2db436dec", "score": "0.48674387", "text": "protected function registerRouteBindings()\n {\n //\n }", "title": "" }, { "docid": "1e04ca4cb11f71b4e10efecd7ea40758", "score": "0.48665488", "text": "function getRoute($path){\n $serviceDir = \"services\";\n $path=strToLower($path);\n switch($path){\n case \"get:healthcheck\": return \"$serviceDir/healthCheck.php\";\n\n case \"get:auth\": return \"$serviceDir/authCheck.php\";\n case \"post:auth\": return \"$serviceDir/authLogin.php\";\n\n case \"get:profilelist\": return \"$serviceDir/profileList.php\";\n case \"get:profile\": return \"$serviceDir/profileGet.php\";\n case \"post:profile\": return \"$serviceDir/profileCreate.php\";\n case \"put:profile\": return \"$serviceDir/profileUpdate.php\";\n\n case \"post:image\": return \"$serviceDir/imageAdd.php\";\n\n case \"post:action\": return \"$serviceDir/actionCreate.php\";\n\n case \"get:matchList\": return \"$serviceDir/matchList.php\";\n }\n return false;\n }", "title": "" }, { "docid": "d40b51407e49f10c6fd85ec4b0ddf09b", "score": "0.48662496", "text": "abstract public function gotPath( array $path );", "title": "" }, { "docid": "61e77752c79aaf25eb887795e00cfe97", "score": "0.48602805", "text": "public static function any( $pattern, $handler, $name = null, $title = null)\n\t{\n\t\tRoute::registerRoute('ANY',$pattern, $handler, $title, $name);\n\t}", "title": "" }, { "docid": "9dcff5296dfd14a85d7db11777756ae5", "score": "0.48568407", "text": "public function __construct($path, $autoMap = true) {\n $this->path = $path;\n $this->app = \\Slim\\Slim::getInstance();\n $this->response = $this->app->response();\n $this->request = $this->app->request();\n $this->routes = array();\n\n // automap these methods, can be overridden in constructor\n if (is_null($this->autoMapMethods)) {\n $this->autoMapMethods = array('get', 'post', 'delete', 'options', 'put');\n }\n\n if ($autoMap) {\n // map public methods to REST api\n $class = new \\ReflectionClass($this);\n // get all public methods\n $methods = $class->getMethods(\\ReflectionMethod::IS_PUBLIC);\n $sortFun = function($value1, $value2) {\n return strlen($value1->name) > strlen($value2->name) ? -1 : 1;\n };\n // this sorting allows to map paths which have similar beginning but different end correctly.\n // Use longer function name for longer paths with the same beginning (after _ is ignored in path).\n usort($methods, $sortFun);\n $regex = '$(^' . implode($this->autoMapMethods, '|^') . ')$';\n foreach ($methods as $method) {\n preg_match($regex, $method->name, $temp);\n if (count($temp) == 0) {\n continue;\n }\n $httpMethod = $temp[0];\n // first check if this has custom route (remember httpmethod needs to be the first word)\n $path = annotationReader::getRoute($method);\n if (is_null($path)) {\n $path = $this->getPathStr($method->name, $httpMethod) .\n $this->getParametersStr($method);\n }\n // remember in via method name is uppercase\n array_push($this->routes, $httpMethod . ':' . $path);\n if (strlen($this->path) == 1 && strlen($path) > 0) {\n $p = $path;\n } else {\n $p = $this->path . $path;\n }\n $mw = annotationReader::getMiddleware($method);\n if (!is_null($mw)) { \n $this->app->map($p, array($this, $mw), array($this, $method->name))->\n via(strtoupper($httpMethod))->\n name(uniqid());\n } elseif (method_exists($this, 'middleware')) {\n $this->app->map($p, array($this, 'middleware'), array($this, $method->name))->\n via(strtoupper($httpMethod))->\n name(uniqid());\n } else {\n $this->app->map($p, array($this, $method->name))->\n via(strtoupper($httpMethod))->\n name(uniqid());\n }\n }\n }\n }", "title": "" }, { "docid": "064e5eb2c774b32ced930b53acf90f98", "score": "0.48539016", "text": "public function map()\n {\n //panel\n $this->mapPanelRoutes();\n //auth\n $this->mapAuthRoutes();\n //almacen\n $this->mapInventoryRoutes();\n //contabilidad\n $this->mapAccountingRoutes();\n //Recursos Humanos\n $this->mapHumanResourceRoutes();\n //ventas\n $this->mapSaleRoutes();\n\n $this->mapApiRoutes();\n\n //\n }", "title": "" }, { "docid": "a3c79e6f1aaf703ad3eb5406c2e35259", "score": "0.48422348", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n $this->mapArticleRoutes();\n $this->mapVideoRoutes();\n $this->mapProductRoutes();\n $this->mapHarvestRoutes();\n $this->mapUserRoutes();\n $this->mapCategoryRoutes();\n $this->mapRegionRoutes();\n $this->mapUnitRoutes();\n $this->mapOrderRoutes();\n $this->mapLandRoutes();\n $this->mapBannerRoutes();\n $this->mapAdminRoutes();\n\n //\n }", "title": "" }, { "docid": "fd3d9e2c7f919ae2de7f1fe7bb330c90", "score": "0.48412332", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n $this->mapMobileRoutes();\n }", "title": "" }, { "docid": "ff2dd2ae5a3bc5958a568a1ed349d3b9", "score": "0.48352292", "text": "public function testRequestResponseStrategyRouteCreateFromGlobalsRequest()\n {\n\n $collection = new Route\\RouteCollection();\n $collection->setStrategy(new RequestResponseStrategy);\n\n $_GET = ['test' => 1];\n\n $collection->get('/route', function ($request, $response) {\n $this->assertEquals(1, $request->query->get('test'));\n return $response;\n });\n\n $dispatcher = $collection->getDispatcher();\n $response = $dispatcher->dispatch('GET', '/route');\n\n }", "title": "" }, { "docid": "6a84146def53e442a808c8c9a552e62b", "score": "0.48346585", "text": "public function match($uri);", "title": "" } ]
ae7edadbfa64c9ca4e361916a15322b5
Fires up layout and view helper
[ { "docid": "1aeb6e9fe14b84a03627723f4e63cff4", "score": "0.6301992", "text": "protected function _initHeader ()\n {\n\n $this->bootstrap('layout');\n $layout = $this->getResource('layout');\n $view = $layout->getView();\n $view->addHelperPath(\"RPS/Views/Helper\", \"RPS_Views_Helper\");\n\n }", "title": "" } ]
[ { "docid": "66ec68ad7ebc3168437edab384f825fc", "score": "0.7210863", "text": "function afterroute() {\n echo Template::instance()->render('layout.htm');\n }", "title": "" }, { "docid": "82d1946f8bd45dcc17f41468f5512219", "score": "0.7168874", "text": "public function execute()\n {\n $this->_view->loadLayout(false);\n $this->_view->renderLayout();\n }", "title": "" }, { "docid": "12a4f0f3ade48b0c795e7f2e32a4977c", "score": "0.70292723", "text": "protected function _initLayout()\n {\n Avid_Layout::startMvc();\n }", "title": "" }, { "docid": "5f59c1c64209743dcd88ce6ecfec04c9", "score": "0.6899935", "text": "protected function setupLayout() {\n if ( ! is_null($this->layout)) {\n $route_parts = explode( '.', Route::currentRouteName() );\n $this->layout = View::make($this->layout)\n ->with('route_name', Route::currentRouteName())\n ->with('route_parent', $route_parts[0])\n ->with('styles', $this->styles)\n ->with('scripts', $this->scripts)\n ->with('inline_js', $this->inline_js);\n }\n }", "title": "" }, { "docid": "ea38eeb957271bc61b68730faae6f7c1", "score": "0.68597245", "text": "public function index() {\n viewHelper::$layout = \"home/index\";\n }", "title": "" }, { "docid": "ce5fcc5f384a7a4639fad621cc3676bc", "score": "0.679023", "text": "private function renderLayout() {\n\t\t$this->moveToFragment(\"layout\");\n\n\t\tinclude(__DIR__.\"/../view/layouts/\".$this->layout.\".php\");\n\n\t\tob_flush();\n\t}", "title": "" }, { "docid": "473d876ff62b2346407f71c4e2b79fc0", "score": "0.67794204", "text": "public function user_layout() {\n \n // Making temlate and send data to view.\n $this->template['header'] = $this->load->view('user/layout/header', array(), true);\n $this->template['left'] = $this->load->view('user/layout/left', array(), true);\n $this->template['body'] = $this->load->view($this->body, $this->content, true);\n $this->template['footer'] = $this->load->view('user/layout/footer', $this->footer, true);\n $this->load->view('user/layout/index', $this->template);\n }", "title": "" }, { "docid": "90262a6fc90efe8008105bae0c5d9e48", "score": "0.67614865", "text": "public function renderLayout();", "title": "" }, { "docid": "eaab09cf0c56be99b3a4fda9468c58ae", "score": "0.6740366", "text": "public function setup()\n\t{\n\t $this->layout->content = \\View::make('users.admin-setup');\n\t}", "title": "" }, { "docid": "975dd17a9e687724c62bea44d8800696", "score": "0.6736168", "text": "protected function setupLayout()\n {\n $this->runonce++;\n if(!defined('IN_ADMIN_AREA')){\n define('IN_ADMIN_AREA',true);\n }\n\n $locale = (requested('locale'))?requested('locale'):null;\n if(!is_null($locale)){\n \\Session::forget('current_locale');\n \\Session::put('current_locale',$locale);\n \\Session::forget('default_locale');\n \\Session::put('default_locale',get_default_locale());\n }\n App::setLocale(get_current_locale(), get_default_locale());\n\n if($this->runonce===1){\n add_breadcrumb(t('strings.dashboard'), url('backend/dashboard'));\n }\n if (!is_null($this->layout)) {\n $temp = $this->layout;\n $this->layout = View::make($this->layout);\n\n }\n\n\n\n\n\n \\Breadcrumbs::setListElement('ol');\n \\Breadcrumbs::addCssClasses('breadcrumb');\n \\Breadcrumbs::removeCssClasses('breadcrumbs');\n \\Breadcrumbs::setDivider(null);\n\n\n\n\n $this->getThemeConfig();\n if ($temp == 'layouts.backend.laradmin') {\n\n// register_dashboard_widget(array('backend/widget'));\n register_dashboard_navbar_tools(array('backend/tools'));\n\n $addonlinks = Event::fire('backend.addonlinks.collect');\n\n $headeritems = Event::fire('backend.header.create');\n\n foreach ($headeritems as $w) {\n foreach ($w as $o) {\n $headeritems_html .= \\View::make($o);\n }\n }\n\n $navtools_html = $headeritems_html = $footeritems_html = $sidebarmenu_html = '';\n $this->addonlinks = '';\n foreach ($addonlinks as $w) {\n foreach ($w as $o) {\n $this->addonlinks .= \\View::make($o);\n }\n }\n\n Config::set('addonlinks', $this->addonlinks);\n\n $sidebarmenu = Event::fire('backend.sidebar.create');\n\n foreach ($sidebarmenu as $w) {\n foreach ($w as $o) {\n $sidebarmenu_html .= \\View::make($o);\n }\n }\n\n $navtools = Event::fire('backend.navbar.create');\n\n foreach ($navtools as $w) {\n foreach ($w as $o) {\n $navtools_html .= \\View::make($o);\n }\n }\n\n\n $footeritems = Event::fire('backend.footer.create');\n\n foreach ($footeritems as $w) {\n foreach ($w as $o) {\n $footeritems_html .= \\View::make($o);\n }\n }\n\n\n\n Config::set('theme.menus', Event::fire('menu.positions.collect'));\n\n //check if empty\n\n\n\n $header = \\View::make('backend/header')->with('headeritems', $headeritems_html);\n $sidebar = \\View::make('backend/sidebar')->with('sidebarmenu', $sidebarmenu_html);\n $navbar = \\View::make('backend/navbar')->with('navtools', $navtools_html);\n $footer = \\View::make('backend/footer')->with('footeritems', $footeritems_html);\n\n\n\n\n \\View::share('sidebar',(string)$sidebar);\n \\View::share('navbar',(string)$navbar);\n \\View::share('footer',(string)$footer);\n \\View::share('header',(string)$header);\n }\n }", "title": "" }, { "docid": "e8a30b3401824501c3ad4dfdff229fb3", "score": "0.67131704", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\n // send variables to master layout\n if (Sentry::check()){\n View::share([\n 'groupid' => $this->getCurrentUserGroup(),\n 'currentuser' => $this->getCurrentUser()\n ]);\n }\n\t}", "title": "" }, { "docid": "bdf677ca7c1fa17df5b1fefdd0b69e8e", "score": "0.66852623", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t//$i = \n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "291f01d4217b477c9f24504b7969fcb6", "score": "0.66597825", "text": "public function admin_layout() {\n \n $this->admin_header = admin_header();\n \n // Making temlate and send data to view.\n $this->template['header'] = heads($this->load->view('admin/layout/header', $this->admin_header, true));\n $this->template['left'] = $this->load->view('admin/layout/left', $this->data, true);\n $this->template['body'] = $this->load->view($this->body, $this->content, true);\n $this->template['footer'] = $this->load->view('admin/layout/footer', $this->footer, true);\n $this->load->view('admin/layout/index', $this->template);\n \n }", "title": "" }, { "docid": "b608d4dfbdfdd144fb3679aebf317f4c", "score": "0.6638064", "text": "function frontend_layout($page_name=null,$data=array())\n{\n\t$CI = &get_instance();\n\t$CI->load->view(\"elements/front/header\",$data);\n\t$CI->load->view($page_name,$data);\n\t$CI->load->view(\"elements/front/footer\");\n}", "title": "" }, { "docid": "97ccf5c19f225489703d96b20635c2ab", "score": "0.6625961", "text": "protected function setupLayout()\n\t{\n View::share('page_title', SITE_NAME);\n\n if (Input::get('list')) {\n Session::put('list', $_GET['list']);\n } else {\n if (! Session::has('list')) Session::put('list', 'card');\n }\n\n Session::put('sortBy', Filterby::sort(Input::get('sort', 'featured')));\n\n Session::put('sortList', Filterby::sortList());\n\n if ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "93f2f1e5082ed2ddfc03cabba063429a", "score": "0.6617395", "text": "public function init()\n {\n \t$this->view->layout = array();\n }", "title": "" }, { "docid": "76bc86e47e1ad51ec3205a991087a74c", "score": "0.66163343", "text": "protected function setupLayout()\n\t{\n if ( ! is_null($this->layout))\n\t\t{\n $this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "152bee614f037c833f414deb8d1253dd", "score": "0.6616303", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = $this->view->make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "4d496b6680469bea1dc218b338fbb8d4", "score": "0.6603991", "text": "public function initialize()\n {\n\t\t$this->viewBuilder()->layout('backend'); \n }", "title": "" }, { "docid": "3b52b024d6fd38b490aa93de1e4ace67", "score": "0.6592145", "text": "protected function setupLayout() {\n if (!is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "title": "" }, { "docid": "0a20e76883c287ae7c3e1a857adf17f4", "score": "0.65720713", "text": "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = view($this->layout);\n }\n\n }", "title": "" }, { "docid": "ee8bee469d3d7887abbf7c60a826c994", "score": "0.65669864", "text": "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "title": "" }, { "docid": "2fb29d90124fc709056799b53b2c44e1", "score": "0.6541394", "text": "protected function setupLayout()\n\t{\n if ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "442c52966c75890ce760f29244ed99c9", "score": "0.65349925", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\n\t\t// I guess this is in wrong place.\n\t\t$content['areas'] = Config::get('content.area');\n\t\t$content['parties']= Config::get('content.party');\n\t\tView::share('content', $content);\n\t}", "title": "" }, { "docid": "7d659496500d4c548d26a467292d4b0d", "score": "0.6532854", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = \\View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "0f20ef9a091a32fc7b9f850da5cbd7b1", "score": "0.65306526", "text": "protected function setupLayout() {\n\t\tif ( ! is_null($this->layout)) {\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "0f20ef9a091a32fc7b9f850da5cbd7b1", "score": "0.65306526", "text": "protected function setupLayout() {\n\t\tif ( ! is_null($this->layout)) {\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "def5adf8223fc8dac5dc8c7efe83e74e", "score": "0.65056205", "text": "protected function setupLayout()\n\t{\n\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "62d0ccf0e90c7d19defb49624badfde7", "score": "0.650315", "text": "public function initLayout();", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.65026", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "7a2812aa478864355bdb6917c8ba94d2", "score": "0.6494491", "text": "public function indexAction() \n {\n\n $this->loadLayout();\n $this->renderLayout();\n }", "title": "" }, { "docid": "ffbb987d3efb4c257d6b1a8d6165925b", "score": "0.6485428", "text": "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = \\View::make($this->layout);\n }\n }", "title": "" }, { "docid": "9aa82dc871f433e67acdc45d287d3a1c", "score": "0.64819145", "text": "public function home()\n {\n $data = array(\"msg\" => \"Hello World\");\n $this->layouter->render($data);\n }", "title": "" }, { "docid": "5ced2fcf3b16c0ec20a6d3cf6b7b2be2", "score": "0.6480695", "text": "public function indexAction() {\n $this->loadLayout();\n $this->renderLayout();\n }", "title": "" }, { "docid": "a521199f7cc54dbf1d1f81ec1c86ff7b", "score": "0.6473393", "text": "protected function setupLayout() {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "title": "" }, { "docid": "7488e7c545a3e91553e0f072b0b0378b", "score": "0.647261", "text": "protected function setupLayout()\n {\n if (! is_null($this->layout)) {\n $this->layout = view($this->layout);\n }\n }", "title": "" }, { "docid": "92701cd5c08ca499692e63c76f79eca4", "score": "0.64675486", "text": "function _initViewHelper() {\n $this->bootstrap('layout');\n $layout = $this->getResource('layout');\n $view = $layout->getView();\n\n $view->setHelperPath(APPLICATION_PATH, '/helpers', '');\n \n// $view->addHelperPath(\"ZendX/JQuery/View/Helper\", \"ZendX_JQuery_View_Helper\");\n// $view->jQuery()->addStylesheet('/js/jquery/css/ui-lightness/jquery-ui-1.8.17.custom')\n// ->setLocalPath('/js/jquery/js/jquery-1.7.1.min.js')\n// ->setUiLocalPath('/js/jquery/js/jquery-ui-1.8.17.custom.min.js');\n\n ZendX_JQuery::enableView($view);\n $view->doctype('HTML4_STRICT');\n\n $view->headMeta()->appendHttpEquiv('content-type', 'text/html;cahrset=utf-8')\n ->appendName('description', 'Using Zend view Helper');\n\n $view->headTitle()->setSeparator(' - ');\n $view->headTitle('Wear and Walk');\n\n $view->admin = Zend_Registry::get('username');\n }", "title": "" }, { "docid": "f7aa64561943efca48c86c874bbfd5c8", "score": "0.6457618", "text": "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "title": "" }, { "docid": "f7aa64561943efca48c86c874bbfd5c8", "score": "0.6457618", "text": "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "title": "" }, { "docid": "f7aa64561943efca48c86c874bbfd5c8", "score": "0.6457618", "text": "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "title": "" }, { "docid": "9cbd57f31879821ba2e51bd0c87fd498", "score": "0.6452532", "text": "public function indexAction(){ \n\n $this->loadLayout();\n $this->renderLayout();\n\n\t }", "title": "" }, { "docid": "a2f3003b67a49cc00bcbd19c648d647f", "score": "0.6450147", "text": "public function indexAction()\n {\n $this->loadLayout()\n ->renderLayout();\n }", "title": "" }, { "docid": "a3516da6dcf01610c1e4fece6cff955a", "score": "0.6448434", "text": "protected function _initView() {\n $layout = $this->getResource('layout');\n $view = $layout->getView();\n\n $view->doctype('HTML5');\n\n $view->headLink()->appendStylesheet($view->baseUrl().'/css/global.css');\n \n $view->headScript()->appendFile($view->baseUrl().'/js/label_over.js');\n $view->headScript()->appendScript('$(document).ready(function() {$(\".overlabel\").labelOver(\"over-apply\")});');\n //to learn the IE HTML5 elements\n $view->headScript()->appendFile($view->baseUrl().'/js/html5.js','text/javascript',array('conditional' => 'lt IE 9'));\n \n $view->headMeta()->appendHttpEquiv('Content-Type','text/html;charset=utf-8');\n \n $view->addHelperPath(\"ZendX/JQuery/View/Helper\", \"ZendX_JQuery_View_Helper\");\n $view->jQuery()->setVersion('1.5.1')->enable();\n $view->jQuery()->setUiVersion('1.8.13')->uiEnable();\n $view->jQuery()->addStylesheet($view->baseUrl().'/css/jQuery/jquery-ui-1.8.13.custom.css');\n \n $view->jQuery()->addJavascriptFile($view->baseUrl().'/js/jquery.qtip-1.0.0-rc3.min.js','text/javascript');\n $view->jQuery()->addJavascriptFile($view->baseUrl().'/js/fullcalendar/fullcalendar.min.js','text/javascript');\n $view->jQuery()->addStylesheet($view->baseUrl().'/js/fullcalendar/fullcalendar.css');\n \n $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();\n $viewRenderer->setView($view);\n Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);\n \n }", "title": "" }, { "docid": "01ef5b2b7b8c0d77dd9d67f762d2e90e", "score": "0.644801", "text": "public function indexAction() {\n $this->_initAction()->renderLayout();\n }", "title": "" }, { "docid": "2973d5776af0e8a1a45d0ccfa463d8fa", "score": "0.6444161", "text": "private function render()\n {\n try {\n $this->loadLayout($this->layoutName);\n } catch (ErrorException $e) {\n\n }\n\n // compiling view file with mustache, adding data if needs be\n $this->parseView();\n\n // compiling layout file\n $this->parseLayout();\n\n // Setting html headers\n\n // Returning html\n }", "title": "" }, { "docid": "e613a4c7392de5f60feb5df60af1d622", "score": "0.6442831", "text": "protected function _initLayout(){\n Zend_Layout::startMvc(APPLICATION_PATH . '/modules/' . CURRENT_MODULE . '/views/layouts/');\n \n $view = Zend_Layout::getMvcInstance()->getView();\n }", "title": "" }, { "docid": "781b0d985a714aec8abb1e37ccead08b", "score": "0.6440055", "text": "public function indexAction()\n {\n $this->loadLayout();\n $this->renderLayout();\n }", "title": "" }, { "docid": "781b0d985a714aec8abb1e37ccead08b", "score": "0.6440055", "text": "public function indexAction()\n {\n $this->loadLayout();\n $this->renderLayout();\n }", "title": "" }, { "docid": "cbe84fdfce6ede4337ea7ad0153bbe49", "score": "0.6436365", "text": "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "title": "" }, { "docid": "cbe84fdfce6ede4337ea7ad0153bbe49", "score": "0.6436365", "text": "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "title": "" }, { "docid": "cbe84fdfce6ede4337ea7ad0153bbe49", "score": "0.6436365", "text": "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "title": "" }, { "docid": "cbe84fdfce6ede4337ea7ad0153bbe49", "score": "0.6436365", "text": "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "title": "" }, { "docid": "cbe84fdfce6ede4337ea7ad0153bbe49", "score": "0.6436365", "text": "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "title": "" }, { "docid": "cbe84fdfce6ede4337ea7ad0153bbe49", "score": "0.6436365", "text": "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "title": "" }, { "docid": "82a0d2675c573d02471e1319f18fd83b", "score": "0.64354235", "text": "public function make()\n\t{\n\t\t$contents = $this->getContents();\n\t\t$litPaths = $this->getLitPaths();\n\n\t\tinclude base_path('/app/views/layout.php');\n\t}", "title": "" }, { "docid": "1f846e3398af6a4d68f12eb89b4d9844", "score": "0.6423251", "text": "protected function setupLayout() {\n if ( !is_null( $this->layout ) ) {\n $this->layout = View::make( $this->layout );\n }\n }", "title": "" }, { "docid": "c7f1dfa83af26e3b80fa4a9ab0e40c39", "score": "0.6405654", "text": "function index() {\n include VIEWS . \"layout.php\";\n }", "title": "" }, { "docid": "97a7fbfa40c66157072df689ca07515c", "score": "0.63663256", "text": "public function renderView() {\n (new Layout($this->partial, $this->sessionStatus))->render();\n }", "title": "" }, { "docid": "1108f4c884ce0137e6a0a8a346a2bc29", "score": "0.6355733", "text": "public function indexAction() {\r\n $this->_initAction()\r\n ->renderLayout();\r\n }", "title": "" }, { "docid": "a49aa63679a6ab3ff5d24e86b7cee8b8", "score": "0.6355207", "text": "public function _initRegViewHelpers(){\n \t$this->bootstrap('layout');\n \t$layout = $this->getResource('layout');\n \t$view = $layout->getView();\n \t$view->addHelperPath('Boilerplate/View/Helper','Boilerplate_View_Helper');\n }", "title": "" }, { "docid": "c65a525e7dfc332138c43e30910b7ec1", "score": "0.63546014", "text": "public function after()\n {\n if ($this->auto_render === TRUE)\n {\n $this->response->body($this->layout);\n }\n\n parent::after();\n }", "title": "" }, { "docid": "6bd828c5004bf747e24e14012437a85b", "score": "0.6348676", "text": "public function index()\n\t{\n\t\t$this->load->view('admin/templates/layout', $this->getData());\n\n\t}", "title": "" }, { "docid": "c23c8ad14ab66a94b33a018d86c957ba", "score": "0.63433564", "text": "protected function setupLayout()\r\n\t{\r\n\t\t#i: Default layout\r\n if ( ! is_null($this->layout))\r\n\t\t{\r\n\t\t\t$this->layout = View::make($this->layout);\r\n $this->layout->page = false;\r\n\t\t}\r\n\r\n #i: Current route name\r\n $this->route_name = Route::currentRouteName();\r\n\t}", "title": "" }, { "docid": "ff5b40b6de15123d52cdd4b4ad2f65ce", "score": "0.63401544", "text": "public function init()\n {\n // $this->_helper->layout()->disableLayout();\n }", "title": "" }, { "docid": "b37e99237864ad20485a8b92bfb4b4b3", "score": "0.6337522", "text": "public function indexAction() {\r\n\r\n\t\t$this->loadLayout();\r\n\t\t$this->renderLayout();\r\n\r\n }", "title": "" }, { "docid": "e1afc4008d628b2e4418d4c2918962a4", "score": "0.6335011", "text": "public function configureAction()\n {\n $this->loadLayout();\n $this->renderLayout();\n }", "title": "" }, { "docid": "aef447b3f1ac30457a5c4ebf416f4410", "score": "0.63237256", "text": "public function indexAction()\n {\n $this->_initAction()\n ->renderLayout();\n }", "title": "" }, { "docid": "3107ac67c416f3fe0185e55fc2a5adde", "score": "0.6322718", "text": "public function storereturnAction()\r\n {\r\n $this->loadLayout();\r\n $this->renderLayout();\r\n }", "title": "" }, { "docid": "ba200bb9be03f293bc75f7dede3ed8fc", "score": "0.63197124", "text": "public function indexAction() {\n\t\t$this->loadLayout();\n\t\t$this->renderLayout();\n\t}", "title": "" }, { "docid": "80b2ca0c29a213ad0df43a6abd6478cf", "score": "0.630918", "text": "public static function go(){\n\t\t\tob_start();\n\t\t\tif(self::checkLoggedIn() === true){\n\t\t\t\tif(self::checkUserLevel() === 'admin'){\n\t\t\t\t\tinclude __DIR__ . '/../admin/views/layout.php';\n\t\t\t\t} else {\n\t\t\t\t\tinclude __DIR__ . '/../user/views/layout.php';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tinclude __DIR__ . '/../guest/views/layout.php';\n\t\t\t}\n\t\t\tob_end_flush();\n\t\t}", "title": "" }, { "docid": "3554ed0caad5878fc18769ee23b52a27", "score": "0.63034374", "text": "public function run() {\n $menu = $this->menu;\n $this->render('header-widget', compact('menu'));\n }", "title": "" }, { "docid": "7d01574e4e66802a63f106f301fae03e", "score": "0.62916327", "text": "public function before()\r\n\t{\r\n\t\t$this->template = \"{$this->folder}/{$this->layout}/{$this->file}\";\r\n\r\n\t\tparent::before();\r\n\r\n\t\tif(!CSRF::check($_POST)) $this->request->redirect(\"error/csrf\");\r\n\t\tunset($_POST['csrf-default']);\r\n\r\n\r\n\t\tif($this->auto_render)\r\n\t\t{\r\n\t\t\t// Инициализируем переменные\r\n\r\n\t\t\t$this->template->title = '';\r\n\t\t\t$this->template->meta_keywords = '';\r\n\t\t\t$this->template->meta_description = '';\r\n\t\t\t// css и javascript\r\n\t\t\t$this->template->styles = array();\r\n\t\t\t$this->template->scripts = array();\r\n\r\n\t\t\t// Переменные, которые будут передаваться блокам (хедеру, футеру) для отображения\r\n\t\t\t$this->template->header = array();\r\n\t\t\t$this->template->footer = array();\r\n\t\t\t$this->template->sidebar = array();\r\n\r\n\t\t\t$this->template->main_view = 'response'; // название вьювера, который показываем\r\n\t\t\t$this->template->main = array();\r\n\r\n\t\t\t// Контент для формирования\r\n\t\t\t$this->template->header_content = '';\r\n\t\t\t$this->template->sidebar_content = '';\r\n\t\t\t$this->template->content = '';\r\n\t\t\t$this->template->main_content = '';\r\n\t\t\t$this->template->footer_content = '';\r\n\r\n\t\t\t// Auth\r\n//\t\t\t$this->auth = Auth::instance();\r\n// $this->user = $this->auth->get_user();\r\n\r\n\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7bee8cde20b7329a46f4b0bae59eff74", "score": "0.62718415", "text": "public function layouts() {\n\t\trequire_once FUSION_BUILDER_PLUGIN_DIR . 'inc/admin-screens/layouts.php';\n\t}", "title": "" }, { "docid": "5fc3fa735bb91312d6382769d14e55d9", "score": "0.62672323", "text": "Function index() {\n\t\t$this->layout = 'default';\n\t\t$this->set('surveyexports',$this->Surveyexport->find('all')); // set the //info to the view, second data is what we want to send to the view\n\t\t$this->set('title_for_layout','THE GREEN TEAMS RULES YOU!!');\n\t\t$this->passOverviewData();\n\n\t}", "title": "" }, { "docid": "cb8157a5a55d2caeee624c3cb427a842", "score": "0.62651926", "text": "public function indexAction()\n {\n $content = $this->getView('help/view/layout');\n\n $this->page->setContent($content)->render();\n }", "title": "" }, { "docid": "e0ca75221230e07dc9ef9152adc82d26", "score": "0.62642425", "text": "public function display()\n\t{\n $template = 'views/admin.phtml';\n include 'views/layout_front.phtml';\n\t}", "title": "" }, { "docid": "2881f88e939b50ac4e58c0b5270da357", "score": "0.6260718", "text": "public function before()\n\t{\n\t\t$view = New View('layouts.default');\n $this->view = $view;\n\n\t\t$this->check_login();\n\n $this->load_global_css();\n $this->load_global_js();\n $this->load_page_links();\n $this->load_global_img();\n\n $this->js_post_load('layouts/layout_default');\n\n\t\t$this->view->show_flash_notices = Bundle::get('flash_notices.show_flash_notices');\n\t\t$this->view->is_logged_in = $this->is_logged_in;\n\t}", "title": "" }, { "docid": "aaf95f19f541c3c198c33061e01f8857", "score": "0.622651", "text": "public function init()\n { \n \t$this->_helper->layout->setLayout('backend');\n }", "title": "" }, { "docid": "557f6864f4075fb5797fb0d70b42a13e", "score": "0.622447", "text": "public function indexAction()\n {\n $this->getLayout();\n $this->renderLayout();\n }", "title": "" }, { "docid": "07a1f79f6395045168c1b03138426345", "score": "0.6224404", "text": "function load()\n\t\t{\n\t\t\t$this->views('layout1',[\"page\"=>\"login\"]);\n\n\t\t}", "title": "" }, { "docid": "4bb26e8495ee874c20fce9c214d28167", "score": "0.62225", "text": "protected function _initDoctype() {\n $this->bootstrap('view');\n $view = $this->getResource('view');\n // helper\n $view->addHelperPath('My/Helper/', 'My_Helper');\n $view->doctype('XHTML1_STRICT');\n }", "title": "" }, { "docid": "bd9ad9223e2c264b887b268f6d5af8a5", "score": "0.62191826", "text": "public function init(){\n try {\n //$this->_helper->layout()->disableLayout();\n $this->_helper->layout->setLayout('bootstrap'); \n } catch (Zend_Exception $exc) {\n echo $exc->getTraceAsString();\n }\n }", "title": "" }, { "docid": "a5cb9a2728201e6cb429022bab6fbb3c", "score": "0.6210938", "text": "function startup(&$controller) {\r\n\t\t// We select the correct layout\r\n\t\t$this->__setLayout();\r\n\t}", "title": "" } ]
cafbfe6ce4890d001e157b4c4f3c1d1c
Update existing record insert ID by URL
[ { "docid": "f75239c470f757866e38178ae8e81e5c", "score": "0.0", "text": "function updateProduct($db, $productId, $request, $directory)\n{\n $form_data = $request->getParsedBody();\n $sql = \"UPDATE products SET name=:name, price=:price WHERE id=:id\";\n\n $stmt = $db->prepare($sql);\n $id = (int) $productId;\n $stmt->bindParam(':id', $id, PDO::PARAM_INT);\n $stmt->bindParam(':name', $form_data['name']);\n $stmt->bindParam(':price', $form_data['price']);\n $stmt->execute();\n return $stmt->rowCount();\n}", "title": "" } ]
[ { "docid": "8348ccc893b51a5d0ddba462578b473b", "score": "0.6511624", "text": "function update($in_new_url, $in_new_name) {\n $db = db_conn();\n $id = $this->id;\n $update_sql = $sql = 'UPDATE bookmarks SET url = \"'.$in_new_url.'\", name = \"'.$in_new_name.'\" WHERE id = '.$id ;\n $db->query($update_sql);\n header(\"Location: ../views/dashboard.php\");\n }", "title": "" }, { "docid": "6c78d629f71dad960b573964f72fe5a8", "score": "0.64906365", "text": "public function update($id)\n\t{\n\t\t$result = $this->model->where('user_id', Auth::user()->id)->find($id);\n\t \n\t if ( Request::get('url') )\n\t {\n\t $url->url = Request::get('url');\n\t }\n\t \n\t if ( Request::get('description') )\n\t {\n\t $url->description = Request::get('description');\n\t }\n\t \n\t $url->save();\n\t \n\t return Response::json(array(\n\t 'error' => false,\n\t 'message' => 'url updated'),\n\t 200\n\t );\n\t}", "title": "" }, { "docid": "e50b667cd485d13e7db73d10340f5beb", "score": "0.6271669", "text": "function italm_update_link( )\r\n\t{\r\n\t\tglobal $wpdb;\r\n\r\n\t\t$tableName = $wpdb->prefix . 'italm';\r\n\r\n\t\t$linkUrl = $_POST['linkurl'];\r\n\r\n\t\t$wpdb->update($tableName, array( 'updateTime' => time() ), array( 'linkUrl' => $linkUrl ), array('%d'), array('%s') );\r\n\t}", "title": "" }, { "docid": "d39e45ac4931d2bd26be24b848490103", "score": "0.6115554", "text": "abstract public function editURL();", "title": "" }, { "docid": "1e163e18010ca361e382ce4712827460", "score": "0.60882056", "text": "public function update_values($id,$text,$url)\n\t\t{\n\t\t\tprint(\"not up to date\");\n\t\t\t$tb = $this->creds['table']['sites'];\n\t\t\t$query = \"SELECT * FROM $tb WHERE `id`='\".mysql_escape_string($id).\"';\";\n\t\t\tprint($query);\n\t\t\t$result = mysql_query($query)or die(mysql_error());\n\n\t\t\t$query = \"UPDATE $tb SET `text` = '\".mysql_escape_string($text).\"',`url` = '\".mysql_escape_string($url).\"' WHERE `id`='\".mysql_escape_string($id).\"';\";\n\t\t\tmysql_query($query)or die(mysql_error());\n\n\t\t\tReport::publish(new Report(\"Erfolgreich geändert!\",\"\",Error_LVL::Positive));\n\t\t}", "title": "" }, { "docid": "ea28a4047f35d211ee22db3269c4d858", "score": "0.60608506", "text": "public function updatePhotoUrl($id, $url){\n\t\treturn DB::table('freelancer')->where('user_id', $id)->update(['photo_url' => $url]);\n\t}", "title": "" }, { "docid": "d8a73f04276d1e698ce14bce1b9605d5", "score": "0.59926444", "text": "public function update($lID = -1, $path = '', $params = '', $originalUrl = '', $seoUrl = '', $type = 'c') {\n \n if (is_array($params)) {\n $params = serialize($params); \n }\n\n if ((int)$lID > 0 && strlen($path) > 0 && strlen($params) > 0 && strlen($originalUrl) > 0 && strlen($seoUrl) > 0) {\n $db = data::instantiate();\n \n //if $seoUrl has not got a trailing slash add them!\n if (substr($seoUrl, strlen($seoUrl) - 1, 1) !== '/') {\n $seoUrl .= '/';\n \n }\n\n //update the seo links!\n //see if the records exist for this identifier\n $sql = \"SELECT sID FROM seourlsLinks WHERE lID = ? AND type = '?'\";\n $arr = $db->query($sql, array((int)$lID, $type), 'ARRAY_A');\n \n\n \n if (substr($originalUrl, strlen($originalUrl) - 1, 1) !== '/') {\n $originalUrl .= '/';\n \n }\n if (substr($originalUrl, 0, 1) !== '/') {\n $originalUrl = '/' . $originalUrl; \n }\n \n \n \n if (substr($path, strlen($path) - 1, 1) !== '/') {\n $path .= '/';\n \n }\n if (substr($path, 0, 1) == '/') {\n $path = substr($path, 1); \n }\n \n if (!empty($arr[0])) {\n \n $sID = $arr[0]['sID'];\n \n //make sure the selected seoUrl does ont already exist!\n $sql= \"SELECT * FROM seourls WHERE url = '?' AND id <> ?\";\n \n $arr = $db->query($sql, array($seoUrl, $sID), 'ARRAY_A');\n \n if (!empty($arr[0])) {\n $db->close();\n\n return false;\n }\n \n //update the seo record\n $sql = \"UPDATE seourls SET path = '?', params = '?', originalUrl = '?', url = '?' WHERE id = '?'\";\n\n $db->create($sql, array('?', '?', '?', '?', '?'), array($path, $params, $originalUrl, $seoUrl, $sID));\n\n\t\t//update the links db - fixes a previous bug!\n\n\t\t$sql = \"UPDATE seourlsLinks SET type = 'g' WHERE lID = ? AND sID = ?\";\n\n\t\t$db->create($sql, array('?', '?'), array($lID, $sID));\n\n $db->close();\n } else {\n \n //make sure the selected seoUrl does ont already exist!\n $sql= \"SELECT * FROM seourls WHERE url = '?'\";\n \n $arr = $db->query($sql, $seoUrl, 'ARRAY_A');\n \n if (!empty($arr[0])) {\n $db->close();\n return false;\n }\n\n //create the seo link!\n \n $sql = \"INSERT INTO seourls (path, params, originalUrl, url) VALUES ('?', '?', '?', '?')\";\n \n $sID = $db->create($sql, array('?', '?', '?', '?'), array($path, $params, $originalUrl, $seoUrl), true);\n\n $sql = \"INSERT INTO seourlsLinks (sID, lID, type) VALUES ('?', '?', '?')\";\n\n $db->create($sql, array('?', '?', '?'), array((int)$sID, (int)$lID, $type));\n $db->close();\n }\n \n\n return true;\n }\n }", "title": "" }, { "docid": "20b6e281282988710abf609903f6ced9", "score": "0.59821326", "text": "function updateImgProducto($id,$url,$location){\n\t$consulta=(\"INSERT INTO imgproductos values ('0','$url',NULL,'$id')\");\n\t@mysql_query($consulta) or die(\"No se puede ejecutar la consulta \".$consulta);\n\theader(\"Location: \".$Location.\"\");\n}", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.59796816", "text": "public function update($id);", "title": "" }, { "docid": "86177586036a83f1a72f4584367bea12", "score": "0.5928989", "text": "public function api_put($params, $url_params) {\n $id = isset_or($params[$this -> id_field]);\n if (isset_or($url_params[0]))\n $id = $url_params[0];\n $params[$this -> id_field] = $id;\n $this -> update($params);\n return $this -> get($params[$this -> id_field]);\n }", "title": "" }, { "docid": "cd99fa9d1bd8040cff05ac5ce9251fa9", "score": "0.58939123", "text": "function updateImgPromo($id,$url){\n\t$consulta=(\"UPDATE promocion set img='$url' WHERE idPromocion='$id'\");\n\t@mysql_query($consulta) or die(\"No se puede ejecutar la consulta \".$consulta);\n\theader(\"Location: ./index.php\");\n}", "title": "" }, { "docid": "b142c0200cba5d1415b5f642ae828107", "score": "0.58916754", "text": "function update_site_db_entry( string $site_url, array $data ) {\n\t$site_id = Site::update( [ 'site_url' => $site_url ], $data );\n\n\tif ( ! $site_id ) {\n\t\tthrow new \\Exception( 'Unable to update values in EE database.' );\n\t}\n}", "title": "" }, { "docid": "0c3a29190c6e4f6dc0ad8d8376c58ca5", "score": "0.58666116", "text": "public function update($id = null);", "title": "" }, { "docid": "22f991340cdf2bf40004cc54580e81b4", "score": "0.58651227", "text": "protected function saveUrl($url) {\n $data = [];\n $data['actual_url'] = $url;\n $urlAdded = $this->create($data);\n\n return $urlAdded->id;\n }", "title": "" }, { "docid": "4737c5f4f127dccd63a218debbd6219c", "score": "0.5846522", "text": "public function updatePost(){\n\t\t\t$id = isset($_GET[\"id\"]) ? $_GET[\"id\"] : 0;\n\t\t\t//goi ham de update du lieu\n\t\t\t$this->modelUpdate($id);\n\t\t\t//di chuyen den trang danh sach cac ban ghi\n\t\t\techo \"<script>location.href='index.php?controller=aboutus&action=read';</script>\";\n\t\t}", "title": "" }, { "docid": "605772e8521270b9e8eab734de6fa764", "score": "0.5826106", "text": "public function add($id,$url)\n {\n if(!$this->has($id))\n {\n $this->addRecord($id, $url); \n }\n \n }", "title": "" }, { "docid": "b951da097a1fb5fd19627117d3dda7e0", "score": "0.58197", "text": "public function saveRecord($url)\n\t{\n\t\t$title = $this->getName();\n\t\tif ('' === $title) {\n\t\t\t$title = $url;\n\t\t}\n\t\t$db = \\App\\Db::getInstance();\n\t\t$insert = $db->createCommand()->insert('vtiger_rss', ['rssurl' => $url, 'rsstitle' => $title])->execute();\n\n\t\tif ($insert) {\n\t\t\t$id = $db->getLastInsertID('vtiger_rss_rssid_seq');\n\t\t\t$this->setId($id);\n\n\t\t\treturn $id;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9c51fb63a02432888ca5ac5ee659d047", "score": "0.5771782", "text": "public function update($id)\r\n {\r\n \r\n }", "title": "" }, { "docid": "a0d3584c9f2b9026f7ac59b956a27d8c", "score": "0.5756404", "text": "public function update()\n { \n $this->model->load('BaiHat');\n $baihat = $this->model->BaiHat->findById($_POST['id']);\n $baihat->casi_id = $_POST['casi_id'];\n $baihat->album_id = $_POST['album_id'];\n $baihat->theloai_id = $_POST['theloai_id'];\n $baihat->tacgia_id = $_POST['tacgia_id'];\n $baihat->ten = $_POST['ten'];\n $baihat->anh = $_POST['anh'];\n $baihat->loi_bai_hat = $_POST['loi_bai_hat'];\n $baihat->link = $_POST['link'];\n $baihat->update();\n\n go_back();\n }", "title": "" }, { "docid": "f12f28c326cf259587f797be5b0c0a53", "score": "0.57337505", "text": "public function update($id) {\n//\n }", "title": "" }, { "docid": "d26638f1b58ee8dede29cc5744da0ef9", "score": "0.57101494", "text": "public function update(Request $request, $id)\n {\n //\n //\n try {\n $url = Url::where('id', $id)->get()->first();\n $url->urlAcotada = $request->urlAcotada;\n $url->urlOriginal= $request->urlOriginal;\n $url->visitas= $request->visitas;\n $url->activo= $request->activo;\n $url->titulo = $request->titulo;\n $categoria = Categoria::where('id', $request->categoria)->get()->first();\n $url->categoria()->associate($request->categoria);\n $url->save();\n }\n catch(\\Exception $e)\n {\n Log::critical(\"No se puede actualizar ls Url: {$e->getCode()}, {$e->getLine()}, {$e->getMessage()} \");\n return response()->json(\"{$e->getMessage()}\",500);\n }\n }", "title": "" }, { "docid": "b639254c2419983d89839677fdafa0cd", "score": "0.57095015", "text": "public function update($id) {\n\t\t\n\t}", "title": "" }, { "docid": "6843288a7faafa4b6620071e87bcb5b5", "score": "0.5706176", "text": "public function update(Request $request,$id)\n {\n// dd($request->get('url'));\n $data=singlemodel::find($id);\n $data->title=$request->get('title');\n $data->link=$request->get('url');\n $data->rank=$request->get('rank');\n if($data->save()){\n return redirect('/admin/single')->with('ico',1)->with('text','更新成功');\n }else{\n return redirect('/admin/single')->with('ico',2)->with('text','更新失败');\n }\n }", "title": "" }, { "docid": "b343a87bde1f569c416360ca21122912", "score": "0.5700745", "text": "function saveUrl($url, $uid){\n $this->db->delete('options', array('user_id'=>$uid, 'key'=>'livestream'));\n $this->db->insert('options', array('user_id'=>$uid, 'key'=>'livestream', 'value'=>$url));\n }", "title": "" }, { "docid": "313e2b1f4b6e7039fddb4570d0908b94", "score": "0.5682914", "text": "function update($id)\n {\n }", "title": "" }, { "docid": "313e2b1f4b6e7039fddb4570d0908b94", "score": "0.5682914", "text": "function update($id)\n {\n }", "title": "" }, { "docid": "313e2b1f4b6e7039fddb4570d0908b94", "score": "0.5682914", "text": "function update($id)\n {\n }", "title": "" }, { "docid": "03f8b61c78f588e067b8c29de4c07f29", "score": "0.5657755", "text": "function saveWebhook($id, $url, $mode, $type, $created_at)\n {\n $sql = \"REPLACE INTO `pi_paymill_webhooks` (`id`, `url`, `mode`, `type`, `created_at`) VALUES('\".$id.\"','\".$url.\"','\".$mode.\"','\".$type.\"','\".$created_at.\"')\";\n $success = xtc_db_query($sql);\n if(!$success){\n throw new Exception(\"Webhook data could not be saved.\");\n }\n\n }", "title": "" }, { "docid": "6c2701f37c15f2baa9e6c67d894bd207", "score": "0.56489205", "text": "function slugURL(){\n\tglobal $system;\n\t/* adodb_pr($_POST); */\n\tif($system->uri(3)){\n\t\t$category_id = intval($system->uri(3));\n\t\t\n\t}else{\n\t\t$category_id = $system->db->insert_id();\n\t}\n\t\n\t$tabel=$system->table_prefix.'category';\n\t$url=seo_slug($_POST['add_category_name']);\n\t\n\t\n\t\n\t\n\t$cUrl= $system->db->getOne(\"select slug_url from \".$tabel.\" where slug_url='\".$url.\"' and category_id !='\".intval($system->uri(3)).\"'\");\n\tif($cUrl){\n\t\t$addURL=$url.'-1';\n\t}else{\n\t\t$addURL=$url;\n\t}\n\t$query=\"update \".$tabel.\" set slug_url='\".$addURL.\"' where category_id='\".$category_id.\"' \";\n\t$system->db->execute($query);\n\t\n\t\n}", "title": "" }, { "docid": "5c19033b8157dcc4f891838c6c506a8a", "score": "0.56480813", "text": "public function updateCvUrlByUserId($id, $url){\n return DB::table('freelancer')\n ->where('user_id', $id)\n ->update([\n 'cv_url' => $url\n ]);\n }", "title": "" }, { "docid": "03d77ca7af346a8b03631b2c232a5a2d", "score": "0.56465304", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'siteName' => ['required', 'url','unique:publishing_houses'],\n]);\n\n $PublishingHouse = PublishingHouse::find($id);\n$PublishingHouse->siteName = $request->input('siteName');\n$PublishingHouse->save();\n\n return redirect('/publishing')->with('success', 'succes update PublishingHouse : ' . $PublishingHouse->publishingHouseName);\n\n\n }", "title": "" }, { "docid": "265c7e4e1d9ccb8f2d919846c5c6d0e1", "score": "0.5646092", "text": "public function update($id, $input);", "title": "" }, { "docid": "265c7e4e1d9ccb8f2d919846c5c6d0e1", "score": "0.5646092", "text": "public function update($id, $input);", "title": "" }, { "docid": "a41bd9cf9591be6fe00eaa3c39924e12", "score": "0.5639264", "text": "public function update()\n {\n if (!isset($this->info['attachment']))\n $this->info['attachment'] = '';\n\n $query = \"update recours set idet = ?, idens = ?, emailens = ?, module = ?, semestre = ?, typeE = ?, description = ?, attachment = ?, dateR = ? where id = ?\";\n $statement = $this->connect()->prepare($query);\n $statement->execute([\n $this->info['idet'],\n $this->info['idens'],\n $this->info['emailens'],\n $this->info['module'],\n $this->info['semestre'],\n $this->info['typeE'],\n $this->info['desc'],\n $this->info['attachment'],\n $this->info['dateR'],\n $this->info['id']\n ]);\n\n redirect (\n $GLOBALS['MSG']['RU'],\n 'success', \n $GLOBALS['LOC']['P'], \n '?recours=success'\n );\n }", "title": "" }, { "docid": "936584d09c511ea0a2163ea6d5c3efe9", "score": "0.5635614", "text": "function guid_write( $id ){\n if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) return false; // если это автосохранение\n\n global $wpdb;\n\n if( $id = (int) $id )\n $wpdb->query(\"UPDATE $wpdb->posts SET guid='\". get_permalink($id) .\"' WHERE ID=$id LIMIT 1\");\n}", "title": "" }, { "docid": "33a0ccb371949355785a39432070a435", "score": "0.5633704", "text": "function updateDirCat($id,$url){\n\t$consulta=(\"UPDATE categoria set imgUrl='$url' WHERE idCategoria='$id'\");\n\t@mysql_query($consulta) or die(\"No se puede ejecutar la consulta \".$consulta);\n\theader(\"Location: ./index.php\");\n}", "title": "" }, { "docid": "e46142eb2ea2e137bae6084a8ad57185", "score": "0.5632373", "text": "public function save()\n\t{\n\t\tif($this->id)\n\t\t{\n\t\t\t// $this->id != NULL -----> UPDATE\n\t\t\tGlobal $pdo;\n\t\t\t\n\t\t\t$pdo->exec(\"UPDATE liens SET idRub = '\". $this->idRub. \"', nom = '\". $this->nom. \"', url = '\". $this->url. \"', affL = '\". $this->affL. \"'\tWHERE id= '\".$this->id.\"'\");\n\t\t} else {\n\t\t\t// $this->id = NULL ----> INSERT\n\t\t\tGlobal $pdo;\n\t\t\t\n\t\t\t$pdo->exec(\"\n\t\t\t\tINSERT INTO liens (idRub,nom,url)\n\t\t\t\tVALUES\n\t\t\t\t('\".$this->idRub.\"',\n\t\t\t\t'\".$this->nom.\"',\n\t\t\t\t'\".$this->url.\"')\");\n\t\t\t$this->setId(intval($pdo->lastInsertId()));\n\t\t}\n\t}", "title": "" }, { "docid": "c46bf43d7a9145b8109d047fbf301fc1", "score": "0.5622883", "text": "function dbUpdateObjId()\n {\n DatabaseBean::dbQuery(\n \"UPDATE file SET objid=\" . $this->objid .\n \" WHERE id=\" . $this->id);\n }", "title": "" }, { "docid": "80750bd3654dd4a17613d819eb8c39d1", "score": "0.5615817", "text": "function updateRow ()\n{\n\tassertUIntArg ('row_id');\n\tassertUIntArg ('location_id', TRUE);\n\tassertStringArg ('name');\n\n\tcommitUpdateObject ($_REQUEST['row_id'], $_REQUEST['name'], NULL, NULL, NULL, NULL);\n\n\tglobal $pageno;\n\tif ($pageno == 'row')\n\t\tupdateObjectAttributes ($_REQUEST['row_id']);\n\n\t$rowData = spotEntity ('row', $_REQUEST['row_id']);\n\n\t// location_id was submitted, but no link exists - create it\n\tif ($_REQUEST['location_id'] > 0 && !$rowData['location_id'])\n\t\tcommitLinkEntities ('location', $_REQUEST['location_id'], 'row', $_REQUEST['row_id']);\n\n\t// location_id was submitted, but it doesn't match the existing link - update it\n\tif ($_REQUEST['location_id'] > 0 && $_REQUEST['location_id'] != $rowData['location_id'])\n\t\tcommitUpdateEntityLink\n\t\t(\n\t\t\t'location', $rowData['location_id'], 'row', $_REQUEST['row_id'],\n\t\t\t'location', $_REQUEST['location_id'], 'row', $_REQUEST['row_id']\n\t\t);\n\n\t// no parent_id was submitted, but a link exists - delete it\n\tif ($_REQUEST['location_id'] == 0 && $rowData['location_id'])\n\t\tcommitUnlinkEntities ('location', $rowData['location_id'], 'row', $_REQUEST['row_id']);\n\n\tshowFuncMessage (__FUNCTION__, 'OK', array ($_REQUEST['name']));\n}", "title": "" }, { "docid": "2f74301c191d8cf0aada3de75ce5917b", "score": "0.5615335", "text": "public function testUpdateBankLinkUsingPut()\n {\n }", "title": "" }, { "docid": "afc102ac2941a080455d93312c10b3c0", "score": "0.56146073", "text": "public function set_OpenID ($url) {\n $db = $this->getDatabase();\n\n if (!$this->id) {\n $this->save_to_database();\n }\n $url = $db->escape($url);\n $sql = \"DELETE FROM \" . TABLE_USERS_AUTH . \" WHERE auth_type = 'OpenID' AND user_id = $this->id\";\n if (!$db->query($sql)) {\n message_die(SQL_ERROR, \"Can't delete old OpenID\", '', __LINE__, __FILE__, $sql);\n }\n if ($url != '') {\n $sql = \"INSERT INTO \" . TABLE_USERS_AUTH . \" (auth_type, auth_identity, user_id) VALUES ('OpenID', '$url', $this->id)\";\n if (!$db->query($sql)) {\n message_die(SQL_ERROR, \"Can't add new OpenID\", '', __LINE__, __FILE__, $sql);\n }\n }\n }", "title": "" }, { "docid": "d17fb8f87a0eb662fa86f5f4f00e9285", "score": "0.56125265", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "d17fb8f87a0eb662fa86f5f4f00e9285", "score": "0.56125265", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "9bca2262c4376b5a65e7dfe0daae735f", "score": "0.5611989", "text": "public function update($id)\n {\n\n }", "title": "" }, { "docid": "9bca2262c4376b5a65e7dfe0daae735f", "score": "0.5611989", "text": "public function update($id)\n {\n\n }", "title": "" }, { "docid": "3c523cd470b3a4709aa95dd1a3cb9b80", "score": "0.5610633", "text": "public function update($djangoOpenidAuthUseropenid);", "title": "" }, { "docid": "0dea886f93ebb55e9ba981cd5e7b23bc", "score": "0.56103605", "text": "public function update($id) {\n //\n }", "title": "" }, { "docid": "0dea886f93ebb55e9ba981cd5e7b23bc", "score": "0.56103605", "text": "public function update($id) {\n //\n }", "title": "" }, { "docid": "0dea886f93ebb55e9ba981cd5e7b23bc", "score": "0.56103605", "text": "public function update($id) {\n //\n }", "title": "" }, { "docid": "0dea886f93ebb55e9ba981cd5e7b23bc", "score": "0.56103605", "text": "public function update($id) {\n //\n }", "title": "" }, { "docid": "0dea886f93ebb55e9ba981cd5e7b23bc", "score": "0.56103605", "text": "public function update($id) {\n //\n }", "title": "" }, { "docid": "0dea886f93ebb55e9ba981cd5e7b23bc", "score": "0.56103605", "text": "public function update($id) {\n //\n }", "title": "" }, { "docid": "0dea886f93ebb55e9ba981cd5e7b23bc", "score": "0.56103605", "text": "public function update($id) {\n //\n }", "title": "" }, { "docid": "0dea886f93ebb55e9ba981cd5e7b23bc", "score": "0.56103605", "text": "public function update($id) {\n //\n }", "title": "" }, { "docid": "0dea886f93ebb55e9ba981cd5e7b23bc", "score": "0.56103605", "text": "public function update($id) {\n //\n }", "title": "" }, { "docid": "0dea886f93ebb55e9ba981cd5e7b23bc", "score": "0.56103605", "text": "public function update($id) {\n //\n }", "title": "" }, { "docid": "0dea886f93ebb55e9ba981cd5e7b23bc", "score": "0.56103605", "text": "public function update($id) {\n //\n }", "title": "" }, { "docid": "0dea886f93ebb55e9ba981cd5e7b23bc", "score": "0.56103605", "text": "public function update($id) {\n //\n }", "title": "" }, { "docid": "0dea886f93ebb55e9ba981cd5e7b23bc", "score": "0.56103605", "text": "public function update($id) {\n //\n }", "title": "" }, { "docid": "0dea886f93ebb55e9ba981cd5e7b23bc", "score": "0.56103605", "text": "public function update($id) {\n //\n }", "title": "" }, { "docid": "0dea886f93ebb55e9ba981cd5e7b23bc", "score": "0.56103605", "text": "public function update($id) {\n //\n }", "title": "" }, { "docid": "fd034130e20493f1f2e2972884d471fa", "score": "0.5609114", "text": "public function update($record)\n {\n\n $sql = 'SELECT MAX(ID) FROM PASTES';\n $statement = self::prepare(\"SELECT MAX(ID) AS MAX FROM PASTES\");\n $statement->execute();\n $max_id = $statement->fetchObject(static::class);\n\n // concatenate with title \n $this->slug = $max_id->MAX . $this->title;\n\n /// get the slug with sha1\n $this->slug = sha1($this->slug);\n\n $sql = sprintf('INSERT INTO versions (id, id_user, title, slug, content) \n VALUES (\\'%s\\', \\'%s\\', \\'%s\\', \\'%s\\', \\'%s\\')', $record->id, $record->id_user, $record->title, $this->slug, $record->content);\n\n $statement = Application::$app->db->pdo->prepare($sql);\n $statement->execute();\n\n /// update 'pastes' table with the new paste !\n\n $sql = sprintf(\n 'UPDATE pastes SET expiration = \\'%s\\', content = \\'%s\\' , title = \\'%s\\', UPDATED_AT = \\'%s\\' WHERE id= \\'%s\\' ',\n $record->expiration,\n $this->content,\n $this->title,\n date('Y-m-d H:i:s'),\n $record->id\n );\n\n $statement = Application::$app->db->pdo->prepare($sql);\n $statement->execute();\n return true;\n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5606448", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5606448", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5606448", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5606448", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5606448", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "9656f324bc29da9fdcaf501f9175a421", "score": "0.5605823", "text": "public function updatePostByID($inputs,$id);", "title": "" }, { "docid": "329b5f31b418f7de5e4b712a86ef9581", "score": "0.56052554", "text": "public function update(Request $request, $id)\n {\n $rules = [\n\n 'name'=>'required', \n 'url'=>'required', \n 'icon'=>'required'\n\n\n ]; \n\n $this->validate($request , $rules); \n\n $link = SocialMedia::find($id); \n\n $link->name = $request->name ; \n $link->url = $request->url ; \n $link->icon = $request->icon ; \n $link->is_active = $request->is_active ;\n\n $link->save(); \n\n return redirect()->route('social.index'); \n }", "title": "" }, { "docid": "6c2001488468d5e0f82551d6ce61c1a3", "score": "0.5590111", "text": "function guid_write( $id ){\n if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )\n return false;\n\n global $wpdb;\n\n if( $id = (int) $id )\n $wpdb->query(\"UPDATE $wpdb->posts SET guid='\". get_permalink($id) .\"' WHERE ID=$id LIMIT 1\");\n}", "title": "" }, { "docid": "cbd4d3040f040df1ad5969a9459155b1", "score": "0.5589169", "text": "public function update($id)\n {\n\n //\n\n }", "title": "" }, { "docid": "d7a8b056c7f7b8fa392501f52311aa60", "score": "0.55700594", "text": "public function save() {\n\t\t($this->data['id'])? $this->update() : $this->insert();\n\t}", "title": "" }, { "docid": "9b24eee048efe1e339ff07138c4bbd19", "score": "0.55653507", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "9b24eee048efe1e339ff07138c4bbd19", "score": "0.55653507", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "9b24eee048efe1e339ff07138c4bbd19", "score": "0.55653507", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "34250af551de7613ef1d65f162703fa4", "score": "0.5557398", "text": "public function update($data, $id);", "title": "" }, { "docid": "34250af551de7613ef1d65f162703fa4", "score": "0.5557398", "text": "public function update($data, $id);", "title": "" }, { "docid": "48312bb633692a32986231be6568e634", "score": "0.5554879", "text": "public function update($id) {\n }", "title": "" }, { "docid": "56cf5f3b47bd3fe06a6d63b435e40238", "score": "0.5552662", "text": "function updateWebsite($title, $description, $url, $id){\n \n // Checks so that the website with that id exists\n if(sizeof($this->getWebsite($id))>0){\n\n // Turns all inputted info into pure strings\n $escapedtitle = $this->connection->real_escape_string($title);\n $escapeddescription= $this->connection->real_escape_string($description);\n $escapedurl = $this->connection->real_escape_string($url);\n \n // Updates that website with that id in the database\n $sql = \"UPDATE website SET title='$escapedtitle', description='$escapeddescription', url='$escapedurl' WHERE id=$id\";\n $result = mysqli_query($this->connection, $sql);\n if ($result==true){\n http_response_code(200);\n return $this->getWebsite($id);\n }else{\n http_response_code(500);\n return array(\"message\" => \"Uppdatering misslyckades!\");\n }\n }else{\n http_response_code(404);\n return array(\"message\" => \"Det finns ingen webbplats med id $id!\");\n }\n \n }", "title": "" }, { "docid": "71efa5077cca75838df9ac4bbc8c46c0", "score": "0.5535594", "text": "public function update($id)\n\t{\n //\n\t}", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" }, { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.55293566", "text": "public function update($id)\n {\n //\n }", "title": "" } ]
f49907c63811f516fc7d6070ac9cdb90
Noramlizes configuration data so it can easily be saved to the configurations table
[ { "docid": "cf57f92cbf38aca94f369ae6562ea8d4", "score": "0.0", "text": "public static function pluginConfigWrite($data)\n {\n $config = array();\n $x = 0;\n\n foreach ($data as $key => $value) {\n $config[$x]['Configuration']['id'] = $value['id'];\n $config[$x]['Configuration']['value'] = $value['value'];\n $x++;\n }\n\n return $config;\n }", "title": "" } ]
[ { "docid": "b21bb6903ef45e49522ce419b40e544b", "score": "0.6521168", "text": "public function storeConfig();", "title": "" }, { "docid": "42da7024e06b54ba0f4ee18f0b8785df", "score": "0.65160334", "text": "public function loadDatabaseConfigValues()\n {\n $rows = Configuration::findAll(['name' => $this->preloadedParams]);\n\n foreach ($rows as $config) {\n $this->config[$config->name] = trim($config->value) != \"\" ? $config->value : false;\n }\n\n\n }", "title": "" }, { "docid": "49956dd613af89b9cd8d0e1da12f3b05", "score": "0.6006336", "text": "public function insert_sample_config_data()\n\t{\n\t\t$sample_config_data = array(\n\t\t\tarray('config_name' => 'about_us_title', 'config_value' => 'About us'),\n\t\t\tarray('config_name' => 'about_us', 'config_value' => 'Why Would you Settle for Less when you can have More? Do not let other Authors Fool you with Empty Marketing Keywords. FLATBOOTS is what you Deserve. Built to last, Built from Scratch, Nothing Less.<a href=\"#\" title=\"\"><strong> Read more</strong></a>'),\n\t\t\tarray('config_name' => 'google_analytics', 'config_value' => ''),\n\t\t\tarray('config_name' => 'twitter_id', 'config_value' => '391407906655965184'),\n\t\t\tarray('config_name' => 'adsense_header', 'config_value' => ''),\n\t\t\tarray('config_name' => 'adsense_footer', 'config_value' => ''),\n\t\t\tarray('config_name' => 'adsense_topic', 'config_value' => ''),\n\t\t\tarray('config_name' => 'logo_text', 'config_value' => 'FLATBOOTS'),\n\t\t\tarray('config_name' => 'hide_header', 'config_value' => '0'),\n\t\t\tarray('config_name' => 'hide_footer', 'config_value' => '0'),\n\t\t\tarray('config_name' => 'enable_popup_login', 'config_value' => '0'),\n\t\t\tarray('config_name' => 'mini_profile_position', 'config_value' => 'left'),\n\t\t\tarray('config_name' => 'call_enabled', 'config_value' => '1'),\n\t\t\tarray('config_name' => 'call_only_registered', 'config_value' => '1'),\n\t\t\tarray('config_name' => 'call_text', 'config_value' => 'Swap-in out addons, use only what you really need!'),\n\t\t\tarray('config_name' => 'call_button_text', 'config_value' => 'Purchase Now'),\n\t\t\tarray('config_name' => 'call_link', 'config_value' => 'http://goo.gl/LvmwlF'),\n\t\t);\n\n\t\t$this->db->sql_multi_insert($this->table_prefix . 'flatboots_style_config', $sample_config_data);\n\t}", "title": "" }, { "docid": "c880c21dad195785839124aa0d543ed0", "score": "0.5982592", "text": "protected function populateNeptuneConfig() {\n\t\t//the config so the output messages are more meaningful.\n\t\t$values = array(\n\t\t\t'log.type.fatal' => true,\n\t\t\t'log.type.warn' => true,\n\t\t\t'log.type.debug' => true,\n\t\t\t'log.file' => 'storage/logs/logs.log',\n\t\t\t'cache.default.host' => 'localhost',\n\t\t\t'cache.default.driver' => 'debug',\n\t\t\t'cache.default.prefix' => '-',\n\t\t\t'assets.url' => 'assets/',\n\t\t\t'security' => '',\n\t\t\t'env' => ''\n\t\t);\n\t\tforeach ($values as $key => $value) {\n\t\t\t$this->config->set($key, $value);\n\t\t\tif(is_string($value) && !empty($value)) {\n\t\t\t\t$this->console->veryVerbose(sprintf(\n\t\t\t\t\t\"Neptune config: Setting <info>%s</info> to <info>%s</info>\",\n\t\t\t\t\t$key, $value));\n\t\t\t} else {\n\t\t\t\t$this->console->veryVerbose(sprintf(\n\t\t\t\t\t\"Neptune config: Setting <info>%s</info>\",\n\t\t\t\t\t$key));\n\t\t\t}\n\t\t}\n\t\t$this->config->save();\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "ba2c2644d5ef5f25a0f6452d123182f4", "score": "0.59477454", "text": "function fillTableConfig ()\n\t{\n\t\tmysql_query('TRUNCATE TABLE '. TABLE_HOF_CONFIG .'');\n\t\t\n\t\tmysql_query('INSERT INTO '. TABLE_HOF_CONFIG .' VALUES\n\t\t\t(\\'vous\\', \\'1\\'),\n\t\t\t(\\'diff\\', \\'1\\'),\n\t\t\t(\\'img\\', \\'0\\'),\n\t\t\t(\\'imgLink\\', \\'http://uni3.ogame.fr/evolution/gebaeude/\\'),\n\t\t\t\n\t\t\t(\\'uni50\\', \\'0\\'),\n\t\t\t(\\'prod_heure\\', \\'0\\'),\n\t\t\t(\\'prod_jour\\', \\'1\\'),\n\t\t\t(\\'prod_semaine\\', \\'1\\'),\n\t\t\t(\\'nb_recordsMen\\', \\'3\\'),\n\t\t\t\n\t\t\t(\\'center\\', \\'1\\'),\n\t\t\t(\\'couleurCat\\', \\'fuchsia\\'),\n\t\t\t(\\'tailleCat\\', \\'16\\'),\n\t\t\t(\\'gras\\', \\'1\\'),\n\t\t\t(\\'souligne\\', \\'1\\'),\n\t\t\t(\\'italic\\', \\'0\\'),\n\t\t\t(\\'couleurLabel\\', \\'black\\'),\n\t\t\t(\\'tailleLabel\\', \\'14\\'),\n\t\t\t(\\'couleurNiv\\', \\'silver\\'),\n\t\t\t(\\'tailleNiv\\', \\'16\\'),\n\t\t\t(\\'couleurPseudos\\', \\'yellow\\'),\n\t\t\t(\\'taillePseudos\\', \\'14\\')');\n\t}", "title": "" }, { "docid": "db0346475c3ab32e5df2d9525bb7af5a", "score": "0.58331263", "text": "private static function saveToDb()\n {\n $sql = rex_sql::factory();\n // $sql->setDebug();\n\n // remove all deleted data\n if (self::$deletedData) {\n $sql->setTable(rex::getTable('config'));\n\n $where = [];\n $params = [];\n foreach (self::$deletedData as $namespace => $nsData) {\n $params = array_merge($params, [$namespace], array_keys($nsData));\n $where[] = 'namespace = ? AND `key` IN ('.implode(', ', array_fill(0, count($nsData), '?')).')';\n }\n\n $sql->setWhere(implode(\"\\n OR \", $where), $params);\n $sql->delete();\n }\n\n // update all changed data\n if (self::$changedData) {\n $sql->setTable(rex::getTable('config'));\n\n foreach (self::$changedData as $namespace => $nsData) {\n foreach ($nsData as $key => $value) {\n $sql->addRecord(function (rex_sql $record) use ($namespace, $key, $value) {\n $record->setValue('namespace', $namespace);\n $record->setValue('key', $key);\n $record->setValue('value', json_encode($value));\n });\n }\n }\n\n $sql->insertOrUpdate();\n }\n }", "title": "" }, { "docid": "84595a3ad2d04fe66b78bd73ab9cb97b", "score": "0.5812652", "text": "public function run()\n {\n DB::table('config')->insert([\n 'firm' => 'Praca licencjacka',\n 'address' => '34-617 Wilkowisko',\n 'town' => 'Wilkowisko 146',\n 'email' => 'kolo8788@wp.pl',\n 'phone' => '503527862',\n 'service_name' => 'Księgarnia internetowa',\n 'service_url' => '192.168.10.129',\n 'krs' => '0000000000',\n 'krs_text' => 'XII Wydział Gospodarczy Krajowego Rejestru Sądowego Sądu Rejonowego dla Krakowa-Śródmieścia w Krakowie',\n 'krs_text2' => 'Wysokość kapitału zakładowego: 10 000 000 zł',\n 'nip' => '000-00-00-000',\n 'regon' => '000000000',\n 'bank_name' => 'Narodowy Bank Polski Oddział Okręgowy w Krakowie',\n 'bank_number' => '00 0000 0000 0000 0000 0000 0000',\n 'office_person' => 'Kamil Staśko',\n 'office_phone' => '503527862',\n 'office_email' => 'kolo8788@wp.pl',\n ]);\n }", "title": "" }, { "docid": "2af6529fcc285f6da40c75c52dc3fa9f", "score": "0.57393694", "text": "public function config() {\n\t\treturn [\n\t\t\t\"id\" => [\n\t\t\t\t\"label\" => \"Идентификатор\",\n\t\t\t\t\"type\" => \"hidden\"\n\t\t\t],\n\t\t\t\"name\" => [\n\t\t\t\t\"label\" => \"Наименование\",\n\t\t\t\t\"type\" => \"text\",\n\t\t\t\t\"rules\" => \"required\"\n\t\t\t],\n\t\t\t\"serial\" => [\n\t\t\t\t\"label\" => \"Серийный номер\",\n\t\t\t\t\"type\" => \"number\",\n\t\t\t\t\"rules\" => \"required\"\n\t\t\t],\n\t\t\t\"model\" => [\n\t\t\t\t\"label\" => \"Модель\",\n\t\t\t\t\"type\" => \"text\",\n\t\t\t\t\"rules\" => \"required\"\n\t\t\t],\n\t\t\t\"software_version\" => [\n\t\t\t\t\"label\" => \"Версия ПО\",\n\t\t\t\t\"type\" => \"text\"\n\t\t\t],\n\t\t\t\"analyzer_type_id\" => [\n\t\t\t\t\"label\" => \"Тип анализатора\",\n\t\t\t\t\"type\" => \"DropDown\",\n\t\t\t\t\"table\" => [\n\t\t\t\t\t\"name\" => \"lis.analyzer_types\",\n\t\t\t\t\t\"key\" => \"id\",\n\t\t\t\t\t\"value\" => \"name\"\n\t\t\t\t],\n\t\t\t\t\"rules\" => \"required\"\n\t\t\t]\n\t\t];\n\t}", "title": "" }, { "docid": "594b409bc26e5a1bfb37cb6ca7982c37", "score": "0.571391", "text": "function createConfig() {\n\t\treturn $this->updateConfig(\n\t\t\tarray(\n\t\t\t\t'general' => array(\n\t\t\t\t\t'installed' => 'On',\n\t\t\t\t\t'base_url' => Request::getBaseUrl()\n\t\t\t\t),\n\t\t\t\t'database' => array(\n\t\t\t\t\t'driver' => $this->getParam('databaseDriver'),\n\t\t\t\t\t'host' => $this->getParam('databaseHost'),\n\t\t\t\t\t'username' => $this->getParam('databaseUsername'),\n\t\t\t\t\t'password' => $this->getParam('databasePassword'),\n\t\t\t\t\t'name' => $this->getParam('databaseName')\n\t\t\t\t),\n\t\t\t\t'i18n' => array(\n\t\t\t\t\t'locale' => $this->getParam('locale'),\n\t\t\t\t\t'client_charset' => $this->getParam('clientCharset'),\n\t\t\t\t\t'connection_charset' => $this->getParam('connectionCharset') == '' ? 'Off' : $this->getParam('connectionCharset'),\n\t\t\t\t\t'database_charset' => $this->getParam('databaseCharset') == '' ? 'Off' : $this->getParam('databaseCharset')\n\t\t\t\t),\n\t\t\t\t'files' => array(\n\t\t\t\t\t'files_dir' => $this->getParam('filesDir')\n\t\t\t\t),\n\t\t\t\t'security' => array(\n\t\t\t\t\t'encryption' => $this->getParam('encryption')\n\t\t\t\t),\n\t\t\t\t'oai' => array(\n\t\t\t\t\t'repository_id' => $this->getParam('oaiRepositoryId')\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "86f53de313e3cdfcb07c2f9cd4b6ce89", "score": "0.56862247", "text": "public function save()\n {\n $changed = array_diff_assoc($this->data, $this->original);\n\n $insertValues = array();\n foreach ($changed as $name => $value) {\n if (!array_key_exists($name, $this->original)) {\n $insertValues[] = array(\n 'conf_name' => $name,\n 'conf_value' => $value,\n );\n\n unset($changed[$name]);\n }\n }\n\n if (!empty($insertValues)) {\n $this->database->table('config')->insert($insertValues);\n }\n\n foreach ($changed as $name => $value) {\n $this->database->table('config')->where('conf_name', '=', $name)->update(array('conf_value' => $value));\n }\n\n // Deleted keys\n $deletedKeys = array_keys(array_diff_key($this->original, $this->data));\n if (!empty($deletedKeys)) {\n $this->database->table('config')->whereIn('conf_name', $deletedKeys)->delete();\n }\n\n // No need to cache old values anymore\n $this->original = $this->data;\n\n // Delete the cache so that it will be regenerated on the next request\n $this->cache->forget('fluxbb.config');\n }", "title": "" }, { "docid": "344cd0435dce35ba853df1e30c9d674a", "score": "0.56487316", "text": "public function saveConfig(array $data);", "title": "" }, { "docid": "7e5a5a4599afeecdd4221d15827dbb1d", "score": "0.5625446", "text": "function get_default_config_data()\n{\n return [\n //'currency' => FRAMEDWARE_CURRENCY,\n //'currency_symbol' => FRAMEDWARE_CURRENCY_SYMBOL,\n //'unit_weight' => FRAMEDWARE_UNIT_WEIGHT,\n //'unit_dimension' => FRAMEDWARE_UNIT_DIMENSION,\n 'default_min_print_res' => FRAMEDWARE_DEFAULT_MIN_PRINT_RES,\n 'minimum_print_length' => FRAMEDWARE_MINIMUM_PRINT_LENGTH,\n 'frame_weight_factor' => FRAMEDWARE_FRAME_WEIGHT_FACTOR,\n 'frame_size_padding' => FRAMEDWARE_FRAME_SIZE_PADDING,\n 'wall_image_width' => FRAMEDWARE_WALL_IMAGE_WIDTH,\n 'ui' => FRAMEDWARE_UI,\n 'wall_config' => FRAMEDWARE_WALL,\n 'paper' => FRAMEDWARE_PAPER,\n 'mat_size' => FRAMEDWARE_MAT_SIZE,\n 'skip_crop' => FRAMEDWARE_SKIP_CROP,\n// 'lowres_title' => FRAMEDWARE_LOWRES_TITLE,\n// 'lowres_message' => FRAMEDWARE_LOWRES_MESSAGE,\n ];\n}", "title": "" }, { "docid": "4cb7c6d24cd461dad416a0e32e262dd5", "score": "0.55935156", "text": "private static function loadFromDb()\n {\n $sql = rex_sql::factory();\n $sql->setQuery('SELECT * FROM ' . rex::getTablePrefix() . 'config');\n\n self::$data = [];\n foreach ($sql as $cfg) {\n self::$data[$cfg->getValue('namespace')][$cfg->getValue('key')] = json_decode($cfg->getValue('value'), true);\n }\n }", "title": "" }, { "docid": "fe18225ef03a38e0c34e3c0c56ae25ac", "score": "0.55912316", "text": "public function config()\n\t{\n\t\t//$data['support_barcode'] = $this->barcode_lib->get_list_barcodes();\n\t\t$data['logo_exists'] = $this->Appconfig->get('company_logo') != '';\n\t\t$this->load->helper('listype');\n $data['arrListtype'] = get_listtype_two();\n\t\t\n\t\t$data = $this->xss_clean($data);\n\t\t// load all the license statements, they are already XSS cleaned in the private function\n\t\t//$data['licenses'] = $this->_licenses();\n\t\t//$data['themes'] = $this->_themes();\n\t\t$this->load->view(\"employees/config\", $data);\n\t}", "title": "" }, { "docid": "8da009201b02af75c767390af706a672", "score": "0.5572516", "text": "public function run()\n {\n \\Illuminate\\Support\\Facades\\DB::table('configuration')->truncate();\n \\Illuminate\\Support\\Facades\\DB::table('config_group')->truncate();\n $datas = [\n [\n 'name'=>'系统配置',\n 'sort'=>1,\n 'configuration' => [\n [\n 'label' => '登录日志',\n 'key' => 'login_log',\n 'val' => 0,\n 'type' => 'radio',\n 'content' => '0:关闭|1:开启',\n 'tips' => '开启后将记录后台登录日志',\n ],\n [\n 'label' => '删除登录日志',\n 'key' => 'delete_login_log',\n 'val' => 0,\n 'type' => 'radio',\n 'content' => '0:禁止|1:允许',\n 'tips' => '开启后将允许后台删除登录日志',\n ],\n [\n 'label' => '操作日志',\n 'key' => 'operate_log',\n 'val' => 0,\n 'type' => 'radio',\n 'content' => '0:关闭|1:开启',\n 'tips' => '开启后将记录后台操作日志',\n ],\n [\n 'label' => '删除操作日志',\n 'key' => 'delete_operate_log',\n 'val' => 0,\n 'type' => 'radio',\n 'content' => '0:禁止|1:允许',\n 'tips' => '开启后将允许后台删除操作日志',\n ]\n ],\n ],\n [\n 'name'=>'站点配置',\n 'sort'=>2,\n 'configuration' => [\n [\n 'label' => '标题',\n 'key' => 'site_title',\n 'val' => 'laravel6.0LTS后台管理',\n 'type' => 'input',\n 'content' => '',\n 'tips' => '',\n ],\n [\n 'label' => '关键词',\n 'key' => 'site_keywords',\n 'val' => '后台管理系统管理',\n 'type' => 'input',\n 'content' => '',\n 'tips' => '',\n ],\n [\n 'label' => '描述',\n 'key' => 'site_description',\n 'val' => '后台管理系统管理,laravel6,layuiadmin,layui',\n 'type' => 'textarea',\n 'content' => '',\n 'tips' => '',\n ],\n\n ]\n ],\n [\n 'name'=>'七牛云配置',\n 'sort'=>4,\n 'configuration' => [\n [\n 'label' => 'AccessKey',\n 'key' => 'qiniu_access_key',\n 'val' => 'vYbGKXlPhvshlYNe1laBfnUtlXpNpGpbB7dWd',\n 'type' => 'input',\n 'content' => '',\n 'tips' => '',\n ],\n [\n 'label' => 'SecretKey',\n 'key' => 'qiniu_secret_key',\n 'val' => 'OZKXcY7F_tD1i6YX_zbLcaCm71OjnDTJrCdtxka4',\n 'type' => 'input',\n 'content' => '',\n 'tips' => '',\n ],\n [\n 'label' => 'Bucket',\n 'key' => 'qiniu_bucket',\n 'val' => 'company',\n 'type' => 'input',\n 'content' => '',\n 'tips' => '',\n ],\n [\n 'label' => 'Domain',\n 'key' => 'qiniu_domain',\n 'val' => 'static.nicaicai.top',\n 'type' => 'input',\n 'content' => '',\n 'tips' => 'or host: https://xxxx.clouddn.com',\n ]\n ]\n ],\n [\n 'name'=>'微信公众号配置',\n 'sort'=>5,\n 'configuration' => [\n [\n 'label' => 'AppID',\n 'key' => 'wechat_app_id',\n 'val' => 'your-app-id',\n 'type' => 'input',\n 'content' => '',\n 'tips' => '',\n ],\n [\n 'label' => 'AppSecret',\n 'key' => 'wechat_secret',\n 'val' => 'your-app-secret',\n 'type' => 'input',\n 'content' => '',\n 'tips' => '',\n ],\n [\n 'label' => 'Token',\n 'key' => 'wechat_token',\n 'val' => 'your-token',\n 'type' => 'input',\n 'content' => '',\n 'tips' => '',\n ],\n [\n 'label' => 'EncodingAESKey',\n 'key' => 'wechat_aes_key',\n 'val' => '',\n 'type' => 'input',\n 'content' => '',\n 'tips' => '兼容与安全模式下请一定要填写!!!',\n ],\n ]\n ],\n ];\n foreach ($datas as $data){\n $group = \\App\\Models\\ConfigGroup::create([\n 'name' => $data['name'],\n 'sort' => $data['sort'],\n ]);\n if (isset($data['configuration']) && !empty($data['configuration'])){\n foreach ($data['configuration'] as $configuration){\n $configuration['group_id'] = $group->id;\n \\App\\Models\\Configuration::create($configuration);\n }\n }\n }\n }", "title": "" }, { "docid": "a87c3b256e83f63c424b3551cc57901c", "score": "0.55660915", "text": "private function save_config() {\n\n if (isset($_POST['send-option'])):\n update_option('taf_discount_type', filter_input(INPUT_POST, 'discount_type', FILTER_SANITIZE_STRING));\n update_option('taf_coupon_amount', filter_input(INPUT_POST, 'coupon_amount', FILTER_SANITIZE_STRING));\n update_option('taf_usage_limit', filter_input(INPUT_POST, 'usage_limit', FILTER_SANITIZE_STRING));\n update_option('taf_days_valid', filter_input(INPUT_POST, 'days_valid', FILTER_SANITIZE_STRING));\n\n update_option('taf_thumb_header', filter_input(INPUT_POST, 'taf_thumb_header'));\n update_option('taf_my_email', filter_input(INPUT_POST, 'taf_my_email'));\n update_option('taf_friend_email', filter_input(INPUT_POST, 'taf_friend_email'));\n update_option('taf_cupom_email', filter_input(INPUT_POST, 'taf_cupom_email'));\n update_option('taf_remetente_title', filter_input(INPUT_POST, 'taf_remetente_title'));\n update_option('taf_remetente_email', filter_input(INPUT_POST, 'taf_remetente_email'));\n endif;\n }", "title": "" }, { "docid": "86d594cf4262109dc771e5b760d46dd7", "score": "0.55452263", "text": "public function setConfigVars() {\n\t\t$config = new ExampleConfig();\n\t\tSaveToConfig('Database.Host', $config->getDbHost(),FALSE);\n\t\tSaveToConfig('Database.User', $config->getDbUser(),FALSE);\n\t\tSaveToConfig('Database.Password', $config->getDbPassword(),FALSE);\n\t\tSaveToConfig('Garden.Errors.MasterView', \n\t\t\t($config->getLocation() == 'local' || $config->getLocation() == 'dev') ? 'deverror.master.php' : 'error.master.php');\n\t}", "title": "" }, { "docid": "1790a6b2af189b9a6b098a1cd2c210e3", "score": "0.5538749", "text": "public function save(){\n\t\tforeach($this->config as $k => $v):\n\t\t\t# On verifie si le parametre existe en base\n\t\t\tif( $this->db->count(PREFIX . 'config', array('cle =' => $k), 'cle' ) == 0 ):\n\t\t\t\t$this->db->insert(PREFIX . 'config', array('cle' => $k, 'valeur' => $v) );\n\t\t\telse:\n\t\t\t\t$this->db->update(PREFIX . 'config', array('valeur' => $v), array('cle =' => $k) );\n\t\t\tendif;\n\t\tendforeach;\n\t}", "title": "" }, { "docid": "ed140986bf57f2e73466e20698e40dc7", "score": "0.55265534", "text": "private function sql_configuration(){\n\t\t\n\t\tif (file_exists('../sql_config.txt')){\n\t\t\t$sql_config = file_get_contents('../sql_config.txt');\n\t\t}else{\n\t\t\t\n\t\t\t$sql_config = file_get_contents('/home3/gxblocks/public_html/sql_config.txt');\n\t\t}\n\t\t\n\t\t\n\t\t$sql_info\t= explode(',', $sql_config );\n\t\t\n\t\t$this->servername \t= $sql_info[0];\n\t\t$this->db_username \t= $sql_info[1];\n\t\t$this->db_password \t= $sql_info[2];\n\t\t$this->db_name \t\t= $sql_info[3];\n\t\t\n\t}", "title": "" }, { "docid": "d6666d8199bbdf21fa2785fe5aff3142", "score": "0.5509347", "text": "public function installConfig() {\n\n $criteria = new CDbCriteria();\n $criteria->addCondition(\"misc_type = 'other' \");\n $selected = array(\"dateformat\", \"auto_item_code\", \"slider_time\");\n $criteria->addInCondition(\"param\", $selected);\n if (!empty($_REQUEST['city_id'])) {\n $criteria->addCondition(\"city_id = '\" . $_REQUEST['city_id'] . \"'\");\n }\n $criteria->select = \"param,value\";\n\n $conf = ConfMisc::model()->findAll($criteria);\n\n if (!empty($conf)) {\n foreach ($conf as $data) {\n Yii::app()->params[$data->param] = $data->value;\n }\n }\n }", "title": "" }, { "docid": "40e25c30996db4062ae5739ce3f90c08", "score": "0.55043584", "text": "public function run()\n {\n \n\n \\DB::table('configs')->delete();\n \n \\DB::table('configs')->insert(array (\n 0 => \n array (\n 'id' => 1,\n 'key' => 'CONFIG_TYPE',\n 'label' => '配置类型',\n 'options' => NULL,\n 'value' => 'number:数字\ninput:文本\ntextarea:文本域\narray:数组\nenum:枚举\nimage:图片\ngallery:相冊\ncheckbox:多选框\nimageAndText:图片+文字',\n 'remark' => '',\n 'config_group' => 0,\n 'config_type' => 'textarea',\n 'status' => 1,\n 'sort' => 0,\n 'is_fixed' => 1,\n 'created_at' => '2019-03-07 14:18:14',\n 'updated_at' => '2019-03-07 14:18:14',\n ),\n 1 => \n array (\n 'id' => 2,\n 'key' => 'CONFIG_GROUP',\n 'label' => '配置分组',\n 'options' => NULL,\n 'value' => '1:系统\n2:网站名称',\n 'remark' => '请按格式填写: a:名称1,b:名称2',\n 'config_group' => 1,\n 'config_type' => 'textarea',\n 'status' => 1,\n 'sort' => 0,\n 'is_fixed' => 0,\n 'created_at' => '2019-03-07 14:18:14',\n 'updated_at' => '2019-04-09 02:09:28',\n ),\n 2 => \n array (\n 'id' => 3,\n 'key' => 'WEB_TITLE',\n 'label' => '网站名称',\n 'options' => NULL,\n 'value' => 'ZQCMS',\n 'remark' => '',\n 'config_group' => 2,\n 'config_type' => 'input',\n 'status' => 1,\n 'sort' => 0,\n 'is_fixed' => 0,\n 'created_at' => '2019-04-09 14:07:25',\n 'updated_at' => '2019-04-10 02:08:17',\n ),\n ));\n \n \n }", "title": "" }, { "docid": "86b46a349d8b27292dcffe0aec461466", "score": "0.54994315", "text": "public function run()\n {\n DB::table('configuracion')->insert([\n\t\t\t[\n\t\t\t\t'coordinador_abasto'\t => 'DR. LUIS JOSÉ MANCILLA VELAZQUEZ',\n\t\t\t\t'director_atencion_medica'\t => 'DRA. LETICIA GUADALUPE MONTOYA LIÉVANO',\n\t\t\t\t'jefe_recursos_materiales'\t => 'LIC. GABRIEL FLORES CANCINO',\n\t\t\t\t'subdirector_recursos_materiales'\t=> 'C.P. EDUARDO HERNANDEZ AMADOR',\n\t\t\t\t'director_administracion_finanzas'\t=> 'LIC. JAIRO CESAR GUILLEN RAMIREZ'\n\t\t\t]\n ]);\n }", "title": "" }, { "docid": "f4ad5f53405939f646b75422306b15b5", "score": "0.5497203", "text": "function setConfigurationInformations()\n\t{\n\t\tglobal $db_config;\n\t\t$this->mask_name = $db_config['HIDDING_MASK']; \n\t\t$this->mask_extension = $db_config['HIDDING_EXTENSION'];\t\n\t\t$this->item_per_page = $db_config['ITEM_PER_PAGE'];\n\t\t$this->get_first_picture = (bool)$db_config['GET_FIRST_PICTURE'];\t\n\t\t$this->memory_limit = $db_config['PHP_MEMORY_LIMIT'];\t\n\t\t$this->exif_autorotate = (bool)$db_config['EXIF_AUTOROTATE'];\t\n\t\t$this->utf8_encoding = false;\t//(bool)$db_config['UTF8_ENCODING'];\t\n\t\t$this->recursive_picture_for_song = (bool)$db_config['RECURSIVE_PICTURE_FOR_SONG'];\n\t\t$this->extension_img = $db_config['EXTENSION_IMG'];\n\t\t$this->extension_mov = $db_config['EXTENSION_MOV'];\n\t\t$this->extension_mov_displayable = $db_config['EXTENSION_MOV_DISPLAYABLE'];\t\t\n\t\t$this->extension_song = $db_config['EXTENSION_SONG'];\n\t\t$this->extension_raw = $db_config['EXTENSION_RAW'];\n\n\t\t\t\t\n\t\n\t\t\n\t\t// ADD SPECIAL DIRECTORY IN MASK \n\t\t$this->mask_name[] = \".@__thumb\";\n\t\t$this->mask_name[] = \".@__comments\";\n\t\t$this->mask_name[] = \".\";\n\t\t$this->mask_name[] = \"..\";\n\t\t\n\t}", "title": "" }, { "docid": "da2e1457c8cf06de10471131ee953b1f", "score": "0.5492508", "text": "protected function _initialize()\r\n {\r\n $this->metadata()->setTablename('configuracao');\r\n $this->metadata()->setPackage('system.application.models.dao');\r\n \r\n # nome_do_membro, nome_da_coluna, tipo, comprimento, opcoes\r\n \r\n $this->metadata()->addField('id', 'id', 'int', 11, array('primary' => true, 'notnull' => true));\r\n $this->metadata()->addField('emailToPendentes', 'email_to_pendentes', 'varchar', 45, array());\r\n $this->metadata()->addField('emailInicio', 'email_inicio', 'varchar', 45, array());\r\n $this->metadata()->addField('emailRelatorios', 'email_relatorios', 'varchar', 45, array());\r\n\r\n \r\n }", "title": "" }, { "docid": "ef120dd622efb957ac5bb14ac20f3334", "score": "0.54656744", "text": "private static function initConfig(){\n if (file_exists(self::$config)){\n $file_contents=parse_ini_file(self::$config);\n $result=$file_contents;\n return $result;\n }else{\n $myfile=fopen(self::$config,'w') or die('Unable to create the configuration file');\n $filecontents=\"[app]\\nname = 'Integrated Learning System'\\nurl = http://localhost\\n\\n\n[database]\ndriver = mysql\nhost = 127.0.0.1\nport = 3306\nusername = root\ndatabase = ils\npassword =\n\";\n fwrite($myfile, $filecontents);\n fclose($myfile);\n }\n }", "title": "" }, { "docid": "3914c07329c34d39ec8a756649324c08", "score": "0.5460264", "text": "static function postConfiguration()\n {\n config::save('dynamicSnipsTTS',1,'snips');\n SnipsUtils::update_scenario_variable('snipsMsgSession');\n SnipsUtils::update_scenario_variable('snipsMsgSiteId');\n SnipsUtils::update_scenario_variable('snipsMsgHotwordId');\n }", "title": "" }, { "docid": "be8c8171dae06197a8af328e735cbd9e", "score": "0.54528767", "text": "public function iHaveTheStandardConfiguration()\n {\n $conf = \"\npropel:\n database:\n connections:\n default:\n adapter: sqlite\n dsn: sqlite::memory:\n user: root\n password:\n generator:\n defaultConnection: default\n runtime:\n defaultConnection: default\n\";\n file_put_contents($this->workingDirectory . '/propel.yml', $conf);\n }", "title": "" }, { "docid": "eaddb43e0232a916238ae07473125b94", "score": "0.5451268", "text": "protected function setUpConfig()\n {\n $config = $this->app['config'];\n\n $table = $this->app['config']['composite-config.table'];\n\n try {\n $config->setDatabase($this->app['db']->connection());\n $config->setDatabaseTable($table);\n $config->fetchAndCache();\n } catch (PDOException $e) {\n }\n }", "title": "" }, { "docid": "9bbb28f5af6dc0c4a9abfdda456baa01", "score": "0.54502624", "text": "function webform_redhen_config_save($args = array()) {\n if (empty($args['nid'])) {\n return FALSE;\n }\n if (isset($args['mapping']) && is_array($args['mapping'])) {\n $mapping = serialize($args['mapping']);\n }\n else {\n $mapping = FALSE;\n }\n db_merge('webform_redhen_config')\n ->key(array('nid' => $args['nid']))\n ->fields(array(\n 'nid' => $args['nid'],\n 'mapping' => $mapping,\n 'enabled' => empty($args['enabled']) ? 0 : 1,\n 'bundle' => isset($args['bundle']) ? $args['bundle'] : NULL,\n ))->execute();\n\n // Reset webform redhen cache.\n webform_redhen_config_cache(TRUE);\n}", "title": "" }, { "docid": "261f2cab120fe598d24a866858733475", "score": "0.5444875", "text": "public function initConfig();", "title": "" }, { "docid": "dde628b1d9fe77fa52fdb47f6ff015c8", "score": "0.5444564", "text": "public function detectDatabasesAndTables()\n {\n $this->config['databases'] = $this->getDatabases();\n $this->config['tables'] = $this->getTables();\n }", "title": "" }, { "docid": "fb0d1b8797c920afb19f2edc7f2646fb", "score": "0.54376715", "text": "public function instance_config_save($data, $nolongerused = false) {\n global $DB, $COURSE, $USER;\n\n $context = context::instance_by_id($this->instance->parentcontextid);\n\n $config = clone($data);\n // Move embedded files into a proper filearea and adjust HTML links to match.\n $config->text_all = file_save_draft_area_files($data->text_all['itemid'], $this->context->id, 'block_rolespecificthtml', 'content', 0, array('subdirs' => true), $data->text_all['text']);\n $config->format_all = $data->text_all['format'];\n\n if (!$context) {\n $contextlevel = CONTEXT_COURSE;\n } else {\n $contextlevel = $context->contextlevel;\n }\n $roles = get_roles_for_contextlevels($contextlevel);\n\n if (!empty($roles)) {\n foreach (array_values($roles) as $rid) {\n $tk = 'text_'.$rid;\n $fk = 'format_'.$rid;\n $config->{$tk} = file_save_draft_area_files(@$data->{$tk}['itemid'], $this->context->id, 'block_rolespecificthtml', 'content', 0, array('subdirs' => true), @$data->{$tk}['text']);\n $config->{$fk} = @$data->{$tk}['format'];\n }\n }\n\n parent::instance_config_save($config, $nolongerused);\n }", "title": "" }, { "docid": "03d370000190f9d959ae5ffa65deb99a", "score": "0.54269683", "text": "function _initConfiguration()\n {\n global $objDatabase;\n\n $query = \"SELECT name, value, `status` FROM \".DBPREFIX.\"stats_config\";\n if (($objResult = $objDatabase->Execute($query))) {\n while (!$objResult->EOF) {\n $this->arrConfig[$objResult->fields['name']] = array('value' => $objResult->fields['value'], 'status' => $objResult->fields['status']);\n $objResult->MoveNext();\n }\n }\n\n $this->pagingLimit = \"LIMIT \".$this->arrConfig['paging_limit']['value'].\"\";\n $this->pagingLimitVisitorDetails = \"LIMIT \".$this->arrConfig['paging_limit_visitor_details']['value'].\"\";\n $this->currentTime = time();\n }", "title": "" }, { "docid": "c2452513804474f9675ac246503d6830", "score": "0.5420547", "text": "public function initConfig()\n {\n $this->config=array();\n }", "title": "" }, { "docid": "fc0950b036e513144ae90dddb3b76eb5", "score": "0.5416362", "text": "function getConfiguration() {\n $data = $this->getCustom('SELECT * from tbl_configuration');\n return $data;\n }", "title": "" }, { "docid": "2f8b04d4f1313d1c709017555a32eb1e", "score": "0.54158145", "text": "private function getConfig(){\n $this->config = json_decode(file_get_contents('app/config/database.json'));\n }", "title": "" }, { "docid": "83ee719c4d34640bc32e3c93a968adc5", "score": "0.5412736", "text": "public function exportConfig();", "title": "" }, { "docid": "52b6b86b8d3905f9325f96d8c0eafebc", "score": "0.5400139", "text": "function loadConfig() {\r\n\t$query = \"select cfgkey, cfgval from config\";\r\n\t$configArray = dbQuery($query);\r\n\tfor ($i=0; $i<count($configArray); $i++) {\r\n\t\tdefine($configArray[$i]['cfgkey'], $configArray[$i]['cfgval']);\r\n\t}\r\n}", "title": "" }, { "docid": "245b1f9205e4408bc968668afbd6f25d", "score": "0.5379024", "text": "public function run()\n {\n DB::table('configs')->delete();\n\n DB::table('configs')->insert([\n 0 => [\n 'id' => 1,\n 'name' => 'WEB_NAME',\n 'value' => '白俊遥博客',\n 'created_at' => '2017-04-25 12:12:00',\n 'updated_at' => '2017-04-25 12:12:00',\n 'deleted_at' => null,\n ],\n 1 => [\n 'id' => 2,\n 'name' => 'WEB_KEYWORDS',\n 'value' => '个人博客,博客模板,thinkphp,laravel博客,php博客,技术博客,白俊遥',\n 'created_at' => '2017-04-25 12:12:00',\n 'updated_at' => '2017-06-21 22:51:54',\n 'deleted_at' => null,\n ],\n 2 => [\n 'id' => 3,\n 'name' => 'WEB_DESCRIPTION',\n 'value' => '白俊遥的php博客,个人技术博客,bjyblog,bjyadmin官方网站',\n 'created_at' => '2017-04-25 12:12:00',\n 'updated_at' => '2017-04-25 12:12:00',\n 'deleted_at' => null,\n ],\n 3 => [\n 'id' => 4,\n 'name' => 'WEB_STATUS',\n 'value' => '1',\n 'created_at' => '2017-04-25 12:12:00',\n 'updated_at' => '2017-04-25 12:12:00',\n 'deleted_at' => null,\n ],\n 5 => [\n 'id' => 6,\n 'name' => 'WATER_TYPE',\n 'value' => '1',\n 'created_at' => '2017-04-25 12:12:00',\n 'updated_at' => '2017-04-25 12:12:00',\n 'deleted_at' => null,\n ],\n 6 => [\n 'id' => 7,\n 'name' => 'TEXT_WATER_WORD',\n 'value' => 'baijunyao.com',\n 'created_at' => '2017-04-25 12:12:00',\n 'updated_at' => '2017-04-25 12:12:00',\n 'deleted_at' => null,\n ],\n 7 => [\n 'id' => 8,\n 'name' => 'TEXT_WATER_TTF_PTH',\n 'value' => './Public/static/font/ariali.ttf',\n 'created_at' => '2017-04-25 12:12:00',\n 'updated_at' => '2017-04-25 12:12:00',\n 'deleted_at' => null,\n ],\n 8 => [\n 'id' => 9,\n 'name' => 'TEXT_WATER_FONT_SIZE',\n 'value' => '15',\n 'created_at' => '2017-04-25 12:12:00',\n 'updated_at' => '2017-04-25 12:12:00',\n 'deleted_at' => null,\n ],\n 9 => [\n 'id' => 10,\n 'name' => 'TEXT_WATER_COLOR',\n 'value' => '#008CBA',\n 'created_at' => '2017-04-25 12:12:00',\n 'updated_at' => '2017-04-25 12:12:00',\n 'deleted_at' => null,\n ],\n 10 => [\n 'id' => 11,\n 'name' => 'TEXT_WATER_ANGLE',\n 'value' => '0',\n 'created_at' => '2017-04-25 12:12:00',\n 'updated_at' => '2017-04-25 12:12:00',\n 'deleted_at' => null,\n ],\n 11 => [\n 'id' => 12,\n 'name' => 'TEXT_WATER_LOCATE',\n 'value' => '9',\n 'created_at' => '2017-04-25 12:12:00',\n 'updated_at' => '2017-04-25 12:12:00',\n 'deleted_at' => null,\n ],\n 12 => [\n 'id' => 13,\n 'name' => 'IMAGE_WATER_PIC_PTAH',\n 'value' => './Upload/image/logo/logo.png',\n 'created_at' => '2017-04-25 12:12:00',\n 'updated_at' => '2017-04-25 12:12:00',\n 'deleted_at' => null,\n ],\n 13 => [\n 'id' => 14,\n 'name' => 'IMAGE_WATER_LOCATE',\n 'value' => '9',\n 'created_at' => '2017-04-25 12:12:00',\n 'updated_at' => '2017-04-25 12:12:00',\n 'deleted_at' => null,\n ],\n 14 => [\n 'id' => 15,\n 'name' => 'IMAGE_WATER_ALPHA',\n 'value' => '80',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 15 => [\n 'id' => 16,\n 'name' => 'WEB_CLOSE_WORD',\n 'value' => '网站升级中,请稍后访问。',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 16 => [\n 'id' => 17,\n 'name' => 'WEB_ICP_NUMBER',\n 'value' => '豫ICP备14009546号-3',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 17 => [\n 'id' => 18,\n 'name' => 'ADMIN_EMAIL',\n 'value' => 'baijunyao@baijunyao.com',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-06-21 22:51:54',\n 'deleted_at' => null,\n ],\n 18 => [\n 'id' => 19,\n 'name' => 'COPYRIGHT_WORD',\n 'value' => '本文为白俊遥原创文章,转载无需和我联系,但请注明来自<a href=\"http://baijunyao.com\">白俊遥博客</a>http://baijunyao.com',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-06-21 22:51:54',\n 'deleted_at' => null,\n ],\n 19 => [\n 'id' => 20,\n 'name' => 'QQ_APP_ID',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 20 => [\n 'id' => 21,\n 'name' => 'CHANGYAN_APP_ID',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 21 => [\n 'id' => 22,\n 'name' => 'CHANGYAN_CONF',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 22 => [\n 'id' => 23,\n 'name' => 'WEB_STATISTICS',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-06-21 22:51:54',\n 'deleted_at' => null,\n ],\n 23 => [\n 'id' => 24,\n 'name' => 'CHANGEYAN_RETURN_COMMENT',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 24 => [\n 'id' => 25,\n 'name' => 'AUTHOR',\n 'value' => '白俊遥',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 25 => [\n 'id' => 26,\n 'name' => 'QQ_APP_KEY',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 26 => [\n 'id' => 27,\n 'name' => 'CHANGYAN_COMMENT',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 27 => [\n 'id' => 28,\n 'name' => 'BAIDU_SITE_URL',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-06-21 22:51:54',\n 'deleted_at' => null,\n ],\n 28 => [\n 'id' => 29,\n 'name' => 'DOUBAN_API_KEY',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 29 => [\n 'id' => 30,\n 'name' => 'DOUBAN_SECRET',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 30 => [\n 'id' => 31,\n 'name' => 'RENREN_API_KEY',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 31 => [\n 'id' => 32,\n 'name' => 'RENREN_SECRET',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 32 => [\n 'id' => 33,\n 'name' => 'SINA_API_KEY',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 33 => [\n 'id' => 34,\n 'name' => 'SINA_SECRET',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 34 => [\n 'id' => 35,\n 'name' => 'KAIXIN_API_KEY',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 35 => [\n 'id' => 36,\n 'name' => 'KAIXIN_SECRET',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 36 => [\n 'id' => 37,\n 'name' => 'SOHU_API_KEY',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 37 => [\n 'id' => 38,\n 'name' => 'SOHU_SECRET',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 38 => [\n 'id' => 39,\n 'name' => 'GITHUB_CLIENT_ID',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 39 => [\n 'id' => 40,\n 'name' => 'GITHUB_CLIENT_SECRET',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 40 => [\n 'id' => 41,\n 'name' => 'IMAGE_TITLE_ALT_WORD',\n 'value' => '白俊遥博客',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 41 => [\n 'id' => 42,\n 'name' => 'EMAIL_SMTP',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 42 => [\n 'id' => 43,\n 'name' => 'EMAIL_USERNAME',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 43 => [\n 'id' => 44,\n 'name' => 'EMAIL_PASSWORD',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 44 => [\n 'id' => 45,\n 'name' => 'EMAIL_FROM_NAME',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 45 => [\n 'id' => 46,\n 'name' => 'COMMENT_REVIEW',\n 'value' => '0',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 46 => [\n 'id' => 47,\n 'name' => 'COMMENT_SEND_EMAIL',\n 'value' => '1',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 47 => [\n 'id' => 48,\n 'name' => 'EMAIL_RECEIVE',\n 'value' => '',\n 'created_at' => '2017-04-25 12:12:01',\n 'updated_at' => '2017-04-25 12:12:01',\n 'deleted_at' => null,\n ],\n 48 => [\n 'id' => 49,\n 'name' => 'WEB_TITLE',\n 'value' => '白俊遥博客,技术博客,个人博客模板, php博客系统',\n 'created_at' => null,\n 'updated_at' => null,\n 'deleted_at' => null,\n ],\n 49 => [\n 'id' => 50,\n 'name' => 'QQ_QUN_ARTICLE_ID',\n 'value' => '1',\n 'created_at' => null,\n 'updated_at' => null,\n 'deleted_at' => null,\n ],\n 50 => [\n 'id' => 51,\n 'name' => 'QQ_QUN_NUMBER',\n 'value' => '88199093',\n 'created_at' => null,\n 'updated_at' => null,\n 'deleted_at' => null,\n ],\n 51 => [\n 'id' => 52,\n 'name' => 'QQ_QUN_CODE',\n 'value' => '<a target=\"_blank\" href=\"//shang.qq.com/wpa/qunwpa?idkey=bba3fea90444ee6caf1fb1366027873fe14e86bada254d41ce67768fadd729ee\"><img border=\"0\" src=\"//pub.idqqimg.com/wpa/images/group.png\" alt=\"白俊遥博客群\" title=\"白俊遥博客群\"></a>',\n 'created_at' => null,\n 'updated_at' => null,\n 'deleted_at' => null,\n ],\n 52 => [\n 'id' => 53,\n 'name' => 'QQ_QUN_OR_CODE',\n 'value' => '/uploads/images/default.png',\n 'created_at' => null,\n 'updated_at' => null,\n 'deleted_at' => null,\n ],\n 53 => [\n 'id' => 101,\n 'name' => 'bjyblog.web_name',\n 'value' => '白俊遥博客',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 54 => [\n 'id' => 102,\n 'name' => 'bjyblog.head.keywords',\n 'value' => '个人博客,博客模板,thinkphp,laravel博客,php博客,技术博客,白俊遥',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 55 => [\n 'id' => 103,\n 'name' => 'bjyblog.head.description',\n 'value' => '白俊遥的php博客,个人技术博客,bjyblog,bjyadmin官方网站',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 56 => [\n 'id' => 107,\n 'name' => 'bjyblog.water.text',\n 'value' => 'baijunyao.com',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 57 => [\n 'id' => 109,\n 'name' => 'bjyblog.water.size',\n 'value' => '15',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 58 => [\n 'id' => 110,\n 'name' => 'bjyblog.water.color',\n 'value' => '#008CBA',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 59 => [\n 'id' => 117,\n 'name' => 'bjyblog.icp',\n 'value' => '豫ICP备14009546号-3',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 60 => [\n 'id' => 118,\n 'name' => 'bjyblog.admin_email',\n 'value' => 'baijunyao@baijunyao.com',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 61 => [\n 'id' => 119,\n 'name' => 'bjyblog.copyright_word',\n 'value' => '本文为白俊遥原创文章,转载无需和我联系,但请注明来自<a href=\"http://baijunyao.com\">白俊遥博客</a>http://baijunyao.com',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 62 => [\n 'id' => 120,\n 'name' => 'services.qq.client_id',\n 'value' => '',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 63 => [\n 'id' => 123,\n 'name' => 'bjyblog.statistics',\n 'value' => '',\n 'created_at' => '2018-08-25 17:04:02',\n 'updated_at' => '2018-08-25 17:04:02',\n 'deleted_at' => null,\n ],\n 64 => [\n 'id' => 125,\n 'name' => 'bjyblog.author',\n 'value' => '白俊遥',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 65 => [\n 'id' => 126,\n 'name' => 'services.qq.client_secret',\n 'value' => '',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 66 => [\n 'id' => 128,\n 'name' => 'bjyblog.baidu_site_url',\n 'value' => '',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 67 => [\n 'id' => 133,\n 'name' => 'services.weibo.client_id',\n 'value' => '',\n 'created_at' => '2018-08-24 20:26:02',\n 'updated_at' => '2018-08-24 20:26:02',\n 'deleted_at' => null,\n ],\n 68 => [\n 'id' => 134,\n 'name' => 'services.weibo.client_secret',\n 'value' => '',\n 'created_at' => '2018-08-24 20:26:02',\n 'updated_at' => '2018-08-24 20:26:02',\n 'deleted_at' => null,\n ],\n 69 => [\n 'id' => 139,\n 'name' => 'services.github.client_id',\n 'value' => '',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 70 => [\n 'id' => 140,\n 'name' => 'services.github.client_secret',\n 'value' => '',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 71 => [\n 'id' => 141,\n 'name' => 'bjyblog.alt_word',\n 'value' => '白俊遥博客',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 72 => [\n 'id' => 142,\n 'name' => 'mail.host',\n 'value' => '',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 73 => [\n 'id' => 143,\n 'name' => 'mail.username',\n 'value' => '',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 74 => [\n 'id' => 144,\n 'name' => 'mail.password',\n 'value' => '',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 75 => [\n 'id' => 145,\n 'name' => 'mail.from.name',\n 'value' => '',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 76 => [\n 'id' => 148,\n 'name' => 'bjyblog.notification_email',\n 'value' => '',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 77 => [\n 'id' => 149,\n 'name' => 'bjyblog.head.title',\n 'value' => '白俊遥博客,技术博客,个人博客模板, php博客系统',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 78 => [\n 'id' => 150,\n 'name' => 'bjyblog.qq_qun.article_id',\n 'value' => '1',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 79 => [\n 'id' => 151,\n 'name' => 'bjyblog.qq_qun.number',\n 'value' => '88199093',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 80 => [\n 'id' => 152,\n 'name' => 'bjyblog.qq_qun.code',\n 'value' => '<a target=\"_blank\" href=\"//shang.qq.com/wpa/qunwpa?idkey=bba3fea90444ee6caf1fb1366027873fe14e86bada254d41ce67768fadd729ee\"><img border=\"0\" src=\"//pub.idqqimg.com/wpa/images/group.png\" alt=\"白俊遥博客群\" title=\"白俊遥博客群\"></a>',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 81 => [\n 'id' => 153,\n 'name' => 'bjyblog.qq_qun.or_code',\n 'value' => '/uploads/images/default.png',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 82 => [\n 'id' => 154,\n 'name' => 'mail.driver',\n 'value' => 'smtp',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 83 => [\n 'id' => 155,\n 'name' => 'mail.port',\n 'value' => '465',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 84 => [\n 'id' => 156,\n 'name' => 'mail.encryption',\n 'value' => 'ssl',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 85 => [\n 'id' => 157,\n 'name' => 'mail.from.address',\n 'value' => '',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n 86 => [\n 'id' => 158,\n 'name' => 'sentry.dsn',\n 'value' => '',\n 'created_at' => '2018-08-22 21:03:01',\n 'updated_at' => '2018-08-22 21:03:01',\n 'deleted_at' => null,\n ],\n ]);\n }", "title": "" }, { "docid": "9163412125295820dbd9af698e92eb47", "score": "0.53636914", "text": "public function configVariables()\n\t{\n $configs = DB::table('cep_configs')->where('conf_status','=','1')->get();\n foreach($configs as $config){\n $modified_configs_array[$config->conf_name] = $config->conf_value;\n }\n return $modified_configs_array;\n\t}", "title": "" }, { "docid": "6a6bbd4496b85a64a908b4b0928bd550", "score": "0.5362371", "text": "public function save_config()\n\t{\n\t\t//form validation\n\t\tif($this->form_validation->run('save_config') == FALSE)\n\t\t\t$error = validation_errors();\n\t\telse {\n\t\t\t\n\t\t\t//prapare to save\n\t\t\t$columns['admin_email'] \t\t= $this->input->post('admin_email');\n\t\t\t$columns['contact_email'] \t\t= $this->input->post('contact_email');\n\t\t\t$columns['login'] \t\t\t\t= $this->input->post('login');\n\t\t\t$columns['site_title'] \t\t\t= $this->input->post('site_title');\n\t\t\t$columns['site_description']\t= $this->input->post('site_description');\n\t\t\t$columns['site_keywords'] \t\t= $this->input->post('site_keywords');\n\t\t\t$columns['watermark'] \t\t\t= ($this->input->post('watermark') == 'Y') ? 'Y' : 'N';\n\t\t\t\n\t\t\t$pass = trim($this->input->post('pass'));\n\t\t\t\n\t\t\t//check if password as posted\n\t\t\tif( ! empty($pass) )\n\t\t\t\t$columns['pass'] = md5($pass);\n\t\t\t\n\t\t\tif( ! $this->g->save('configuration', $columns, 1) )\n\t\t\t\t$msg = 'An error occurred and the db wasn\\'t updated.';\n\t\t}\n\t\t\n\t\t//output\n\t\tif($error)\n\t\t\techo '<div class=\"error\">' . $error . '</div>';\n\t\telse\n\t\t\techo '<div class=\"success\">Database upadete succesfully! ' . anchor('admin','back') . '</div>';\n\t\t\t\n\t\techo anchor('admin/config','close') . '</div>';\n\t}", "title": "" }, { "docid": "ac17d0ccdf228e9580e9b6723ce86cd4", "score": "0.5339918", "text": "public function buildConfiguration()\n {\n $content = $this->renderConfiguration();\n $this->saveConfiguration($content);\n }", "title": "" }, { "docid": "fa348e0f556d7d71db2444c4e9a9cfd3", "score": "0.5339862", "text": "function createData() {\n\t\tif ($this->getParam('manualInstall')) {\n\t\t\t// Add insert statements for default data\n\t\t\t// FIXME use ADODB data dictionary?\n\t\t\t$this->executeSQL(sprintf('INSERT INTO site (primary_locale, installed_locales) VALUES (\\'%s\\', \\'%s\\')', $this->getParam('locale'), join(':', $this->installedLocales)));\n\t\t\t$this->executeSQL(sprintf('INSERT INTO site_settings (setting_name, setting_type, setting_value, locale) VALUES (\\'%s\\', \\'%s\\', \\'%s\\', \\'%s\\')', 'title', 'string', addslashes(Locale::translate(INSTALLER_DEFAULT_SITE_TITLE)), $this->getParam('locale')));\n\t\t\t$this->executeSQL(sprintf('INSERT INTO site_settings (setting_name, setting_type, setting_value, locale) VALUES (\\'%s\\', \\'%s\\', \\'%s\\', \\'%s\\')', 'contactName', 'string', addslashes(Locale::translate(INSTALLER_DEFAULT_SITE_TITLE)), $this->getParam('locale')));\n\t\t\t$this->executeSQL(sprintf('INSERT INTO site_settings (setting_name, setting_type, setting_value, locale) VALUES (\\'%s\\', \\'%s\\', \\'%s\\', \\'%s\\')', 'contactEmail', 'string', addslashes($this->getParam('adminEmail')), $this->getParam('locale')));\n\t\t\t$this->executeSQL(sprintf('INSERT INTO users (username, first_name, last_name, password, email, date_registered, date_last_login) VALUES (\\'%s\\', \\'%s\\', \\'%s\\', \\'%s\\', \\'%s\\', \\'%s\\', \\'%s\\')', $this->getParam('adminUsername'), $this->getParam('adminUsername'), $this->getParam('adminUsername'), Validation::encryptCredentials($this->getParam('adminUsername'), $this->getParam('adminPassword'), $this->getParam('encryption')), $this->getParam('adminEmail'), Core::getCurrentDate(), Core::getCurrentDate()));\n\t\t\t$this->executeSQL(sprintf('INSERT INTO roles (journal_id, user_id, role_id) VALUES (%d, (SELECT user_id FROM users WHERE username = \\'%s\\'), %d)', 0, $this->getParam('adminUsername'), ROLE_ID_SITE_ADMIN));\n\n\t\t\t// Install email template list and data for each locale\n\t\t\t$emailTemplateDao =& DAORegistry::getDAO('EmailTemplateDAO');\n\t\t\tforeach ($emailTemplateDao->installEmailTemplates($emailTemplateDao->getMainEmailTemplatesFilename(), true) as $sql) {\n\t\t\t\t$this->executeSQL($sql);\n\t\t\t}\n\t\t\tforeach ($this->installedLocales as $locale) {\n\t\t\t\tforeach ($emailTemplateDao->installEmailTemplateData($emailTemplateDao->getMainEmailTemplateDataFilename($locale), true) as $sql) {\n\t\t\t\t\t$this->executeSQL($sql);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\t// Add initial site data\n\t\t\t$locale = $this->getParam('locale');\n\t\t\t$siteDao =& DAORegistry::getDAO('SiteDAO', $this->dbconn);\n\t\t\t$site = new Site();\n\t\t\t$site->setRedirect(0);\n\t\t\t$site->setMinPasswordLength(INSTALLER_DEFAULT_MIN_PASSWORD_LENGTH);\n\t\t\t$site->setPrimaryLocale($locale);\n\t\t\t$site->setInstalledLocales($this->installedLocales);\n\t\t\t$site->setSupportedLocales($this->installedLocales);\n\t\t\tif (!$siteDao->insertSite($site)) {\n\t\t\t\t$this->setError(INSTALLER_ERROR_DB, $this->dbconn->errorMsg());\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t$siteSettingsDao =& DAORegistry::getDAO('SiteSettingsDAO');\n\t\t\t$siteSettingsDao->updateSetting('title', array($locale => Locale::translate(INSTALLER_DEFAULT_SITE_TITLE)), null, true);\n\t\t\t$siteSettingsDao->updateSetting('contactName', array($locale => Locale::translate(INSTALLER_DEFAULT_SITE_TITLE)), null, true);\n\t\t\t$siteSettingsDao->updateSetting('contactEmail', array($locale => $this->getParam('adminEmail')), null, true);\n\n\t\t\t// Add initial site administrator user\n\t\t\t$userDao =& DAORegistry::getDAO('UserDAO', $this->dbconn);\n\t\t\t$user = new User();\n\t\t\t$user->setUsername($this->getParam('adminUsername'));\n\t\t\t$user->setPassword(Validation::encryptCredentials($this->getParam('adminUsername'), $this->getParam('adminPassword'), $this->getParam('encryption')));\n\t\t\t$user->setFirstName($user->getUsername());\n\t\t\t$user->setLastName('');\n\t\t\t$user->setEmail($this->getParam('adminEmail'));\n\t\t\tif (!$userDao->insertUser($user)) {\n\t\t\t\t$this->setError(INSTALLER_ERROR_DB, $this->dbconn->errorMsg());\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t$roleDao =& DAORegistry::getDao('RoleDAO', $this->dbconn);\n\t\t\t$role = new Role();\n\t\t\t$role->setJournalId(0);\n\t\t\t$role->setUserId($user->getId());\n\t\t\t$role->setRoleId(ROLE_ID_SITE_ADMIN);\n\t\t\tif (!$roleDao->insertRole($role)) {\n\t\t\t\t$this->setError(INSTALLER_ERROR_DB, $this->dbconn->errorMsg());\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Install email template list and data for each locale\n\t\t\t$emailTemplateDao =& DAORegistry::getDAO('EmailTemplateDAO');\n\t\t\t$emailTemplateDao->installEmailTemplates($emailTemplateDao->getMainEmailTemplatesFilename());\n\t\t\tforeach ($this->installedLocales as $locale) {\n\t\t\t\t$emailTemplateDao->installEmailTemplateData($emailTemplateDao->getMainEmailTemplateDataFilename($locale));\n\t\t\t}\n\n\t\t\t// Install filters and filter templates.\n\t\t\t$this->installFilterTemplates();\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "aa423c23867e55ecb98cdf04060f6b0c", "score": "0.5337393", "text": "public function getAdminConfigData(){\n $config = $this->configFactory->get('drupal_assignment.config_time_in_timezone');\n $country = $config->get('country') ? $config->get('country'):'America'; \n $city = $config->get('city') ? $config->get('city'):'Chicago';\n $time_zone = $config->get('time_zone') ? $config->get('time_zone'):'America/Chicago';\n\n return [\n 'country' => $country,\n 'city' => $city,\n 'time_zone' => $time_zone\n ];\n }", "title": "" }, { "docid": "11b03022c1c5420d89bdebd8dca6717c", "score": "0.53355694", "text": "public function run()\n {\n //\n DB::table('configuration')->insert([\n \t'key' => 'home_slider',\n \t'value' => '2',\n 'type' => 'home'\n ]);\n DB::table('configuration')->insert([\n \t'key' => 'home_octeam',\n \t'value' => 'uploads/team.jpg',\n 'type' => 'home'\n ]);\n DB::table('configuration')->insert([\n \t'key' => 'home_ocwarranty',\n \t'value' => 'uploads/garantia.jpg',\n 'type' => 'home'\n\n ]);\n DB::table('configuration')->insert([\n \t'key' => 'home_ocstores',\n \t'value' => 'uploads/stores.jpg',\n 'type' => 'home'\n\n ]);\n DB::table('configuration')->insert([\n 'key' => 'home_middle_banner',\n 'value' => 'uploads/pic-big.jpg',\n 'type' => 'home'\n\n ]);\n DB::table('configuration')->insert([\n \t'key' => 'ventas_mayoristas',\n \t'value' => 'uploads/ventasmayoristas.jpg',\n 'type' => 'layout'\n ]);\n DB::table('configuration')->insert([\n 'key' => 'team_banner',\n 'value' => 'uploads/banner_team.jpg'\n ]);\n DB::table('configuration')->insert([\n 'key' => 'news_banner',\n 'value' => 'uploads/banner_team.jpg'\n ]);\n DB::table('configuration')->insert([\n 'key' => 'stores_banner',\n 'value' => 2\n ]);\n DB::table('configuration')->insert([\n 'key' => 'about_banner',\n 'value' => 'uploads/banner_team.jpg'\n ]);\n DB::table('configuration')->insert([\n 'key' => 'warranty_banner',\n 'value' => 'uploads/banner_team.jpg'\n ]);\n DB::table('configuration')->insert([\n 'key' => 'contact_banner',\n 'value' => 'uploads/banner_team.jpg'\n ]);\n DB::table('configuration')->insert([\n 'key' => 'best_seller',\n 'value' => 1\n ]);\n }", "title": "" }, { "docid": "0661bd306fcb11529ac5e381e655a726", "score": "0.53270084", "text": "private function _buildConfig($data) {\n $config = new Varien_Object;\n foreach($data as $key=>$value){\r\n if (is_array($value)){\n $config->setData($key,$this->_buildConfig($value));\n }else{\n $config->setData($key,Mage::getStoreConfig($value));\n }\r\n }\n return $config;\n }", "title": "" }, { "docid": "16769778f0d3d76d4e0b791e879dcdd7", "score": "0.53183335", "text": "abstract public function generateConfig();", "title": "" }, { "docid": "d1470bfbca8bfb08d51ddc7d642d72a6", "score": "0.5314697", "text": "public function setDefaults()\r\n {\r\n $this->configuration = array(\r\n 'description' => $this->name,\r\n 'categories' => array(),\r\n 'categoriesError' => 'The field contain bad value',\r\n 'required' => false,\r\n 'requiredError' => 'The field can not be empty',\r\n 'multiply' => false,\r\n 'expanded' => false,\r\n 'mapIdToValue' => false,\r\n 'loadDoctrineRepository' => null,\r\n );\r\n }", "title": "" }, { "docid": "b683e0bcaa08d2b9499adfadeac5e7e0", "score": "0.53073204", "text": "public function save(){\n $this->config->save();\n }", "title": "" }, { "docid": "a70889b526416c81027e29f291bef304", "score": "0.5298975", "text": "function create_config_table()\n{\n global $wpdb;\n $charset_collate = $wpdb->get_charset_collate();\n\n // CONFIG\n $config_data = get_default_config_data();\n $table_name = 'fware_config';\n $r = $wpdb->query(\"\n SELECT *\n FROM information_schema.tables\n WHERE table_schema = '\" . DB_NAME . \"'\n AND table_name = '\" . $table_name . \"'\n LIMIT 1;\");\n if ($r != 1) { // if table does not exist, create it\n $sql = \"CREATE TABLE `$table_name` (data text) $charset_collate;\";\n require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n dbDelta( $sql );\n $wpdb->insert(\n $table_name,\n [\n 'data' => json_encode($config_data),\n ],\n ['%s']\n );\n }\n}", "title": "" }, { "docid": "a111887cca6b1e3b73bef69aff0c1d18", "score": "0.52757573", "text": "function configDataList($data){\n\t\t$configData = array(\n\t\t\t// data kd_barang\n\t\t\tarray(\n\t\t\t\t'field' => $data['kd_barang'], 'label' => 'Item', 'error' => 'kd_barangError',\n\t\t\t\t'value' => 'kd_barang', 'rule' => 'angka | 1 | 99999 | required',\n\t\t\t),\n\t\t\t// data harga\n\t\t\tarray(\n\t\t\t\t'field' => $data['harga'], 'label' => 'Harga', 'error' => 'hargaError',\n\t\t\t\t'value' => 'harga', 'rule' => 'nilai | 1 | 999999 | required',\n\t\t\t),\n\t\t\t// data qty\n\t\t\tarray(\n\t\t\t\t'field' => $data['qty'], 'label' => 'Qty', 'error' => 'qtyError',\n\t\t\t\t'value' => 'qty', 'rule' => 'nilai | 1 | 999 | required',\n\t\t\t),\n\t\t\t// data ket\n\t\t\tarray(\n\t\t\t\t'field' => $data['ket'], 'label' => 'Keterangan', 'error' => 'ketError',\n\t\t\t\t'value' => 'ket', 'rule' => 'string | 1 | 255 | not_required',\n\t\t\t),\n\t\t);\n\n\t\treturn $configData;\n\t}", "title": "" }, { "docid": "69479c6163343fc5c55f0f8c6bfae078", "score": "0.5272515", "text": "function Config()\n\t\t{//_9_5_1_5e60209_1149369900562_206872_1367\n\t\t}", "title": "" }, { "docid": "fd419e1429d32eb2d9583f2dbbdec5f0", "score": "0.52644885", "text": "public function __construct( )\n {\n $this->config = array( \"ServerName\" => \"localhost\" , \"Password\" => \"\" , \"UserName\" => \"root\" , \"Port\" =>\"3360\" , \"DBName\" => \"OdnoosUsers\");\n\t//$this->config = array( \"ServerName\" => \"localhost\" , \"Password\" => \"ZZzz12345\" , \"UserName\" => \"odnoospo_odnoos\" , \"Port\" =>\"3360\" , \"DBName\" => \"odnoospo_OdnoosUsers\");\n\n\n }", "title": "" }, { "docid": "751ba96b1f19e49cc35cbd8797cc13f7", "score": "0.5263388", "text": "function get_config_data() {\n\t\treturn [];\n\n\t\t$types = [\n\t\t\t'hosts_objs',\n\t\t\t'services_objs',\n\t\t\t'hostgroups_objs',\n\t\t\t'servicegroups_objs',\n\t\t\t'timeperiods',\n\t\t\t'contacts',\n\t\t\t'contactgroups',\n\t\t\t'commands',\n\t\t];\n\n\t\t$ret = [];\n\t\tforeach ($types as $x) {\n\t\t\t$ret[$x] = object_data($x, '');\n\t\t}\n\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "874bf0e822548e12a874e79bde87c9d9", "score": "0.5259336", "text": "public function config()\r\n {\r\n return function (ConfigDB $config) {\r\n\r\n $config->hasOne = [\n 'EyufScholar' => [\n 'eyuf_scholar_id' => 'id',\n ],\n 'EyufInvoiceType' => [\n 'eyuf_invoice_type_id' => 'id',\n ],\n 'User' => [\n 'deleted_by' => 'id',\n 'created_by' => 'id',\n 'modified_by' => 'id',\n ],\n ];\r\n $config->title = Az::l('Расходы');\r\n\r\n return $config;\r\n };\r\n }", "title": "" }, { "docid": "65eb041cf06d137fae3a305e7034cb64", "score": "0.52563787", "text": "function saveConfig(){\n\t\tfile_put_contents(Installer::CONFIG_FILE,json_encode($this->conf));\n\t}", "title": "" }, { "docid": "dc3d529b2282ed7fe8d338314fc05cef", "score": "0.52562857", "text": "function get_conf(){\r\n $sqlParam = array();\r\n\t\t\tif(!$this->livello) $lev=\"root\";\r\n\t\t\telse\r\n\t\t\t\t$lev=$this->livello;\r\n\t\t\t\t\r\n\t\t\tif ($this->mode==0 or $this->mode==3)\r\n\t\t\t\t$filter_mode=\"(mode=0 or mode=3)\";\r\n else {\r\n $sqlParam[':mode'] = $this->mode;\r\n $filter_mode='(mode=:mode)';\r\n }\r\n $sql=\"select e_form.name as form_name,e_form.save_data,config_file,tab_type,form_destination,e_form.parent_level,foo.parent_name,e_level.name as level,e_form.js as javascript,order_fld,coalesce(foo.depth,-1) \r\n from \".DB_SCHEMA.\".form_level left join \".DB_SCHEMA.\".e_form on (form_level.form=e_form.id) \r\n left join \".DB_SCHEMA.\".e_level on (e_form.level_destination=e_level.id) \r\n left join \".DB_SCHEMA.\".e_level as foo on (form_level.level=foo.id) \r\n where \".$filter_mode.\" \r\n and foo.name=:lev\r\n and visible=1 \r\n and :admintype <= e_level.admintype_id \r\n order by e_level.depth,order_fld;\";\r\n\r\n $sqlParam[':lev'] = $lev;\r\n $sqlParam[':admintype'] = $this->admintype;\r\n\t\t\t\r\n print_debug($sql,null,\"conf\");\r\n print_debug($sqlParam,null,\"conf\");\r\n $stmt = $this->db->prepare($sql);\r\n $success = $stmt->execute($sqlParam);\r\n\t\t\t\r\n if (!$success) {\r\n\t\t\t\tprint_debug($sql,null,'error');\r\n\t\t\t\techo \"<p>\".GCAuthor::t(\"system_cfg_error\").\"</p>\";\r\n\t\t\t\texit;\r\n\t\t\t}\r\n $res=$stmt->fetchAll();\r\n\t\t\t\r\n // FIXME: column menu_field does not exist\r\n // $sql=\"select id as val,name as key,menu_field as field from \".DB_SCHEMA.\".e_level order by id\";\r\n $sql=\"select id as val,name as key from \".DB_SCHEMA.\".e_level order by id\";\r\n \r\n $stmt = $this->db->prepare($sql);\r\n $success = $stmt->execute();\r\n\r\n\t\t\t$arr_livelli=$stmt->fetchAll();\r\n\t\t\tforeach($arr_livelli as $value){\r\n\t\t\t\tlist($lvl_id,$lvl_name,$lvl_header)=array_values($value);\r\n\t\t\t\t$this->navTreeValues[$lvl_name]=$lvl_header;\r\n\t\t\t\t$livelli[$lvl_id]=Array(\"val\"=>$lvl_id,\"key\"=>$lvl_name);\r\n\t\t\t}\r\n\t\t\tunset($this->tableList);\t\t\t\r\n\t\t\t\r\n\t\t\tfor($i=0;$i<count($res);$i++){\r\n\t\t\t\t$res[$i][\"parent_level\"]=isset($livelli[$res[$i][\"parent_level\"]])?$livelli[$res[$i][\"parent_level\"]]:null;\r\n\t\t\t\t$this->tableList[]=$res[$i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "57299225db16c88b59c30d665edfe511", "score": "0.525066", "text": "protected function getConfigFormValues()\n {\n return array(\n 'EVERPSQUOTATION_CATEGORIES' => Tools::getValue(\n 'EVERPSQUOTATION_CATEGORIES',\n json_decode(\n Configuration::get(\n 'EVERPSQUOTATION_CATEGORIES'\n )\n )\n ),\n 'EVERPSQUOTATION_GROUPS[]' => Tools::getValue(\n 'EVERPSQUOTATION_GROUPS',\n json_decode(\n Configuration::get(\n 'EVERPSQUOTATION_GROUPS',\n (int)$this->context->language->id\n )\n )\n ),\n 'EVERPSQUOTATION_MIN_AMOUNT' => Tools::getValue(\n 'EVERPSQUOTATION_MIN_AMOUNT',\n Configuration::get(\n 'EVERPSQUOTATION_MIN_AMOUNT',\n (int)$this->context->language->id\n )\n ),\n 'EVERPSQUOTATION_PRODUCT' => Tools::getValue(\n 'EVERPSQUOTATION_PRODUCT',\n Configuration::get(\n 'EVERPSQUOTATION_PRODUCT',\n (int)$this->context->language->id\n )\n ),\n 'EVERPSQUOTATION_DROP_SQL' => Tools::getValue(\n 'EVERPSQUOTATION_DROP_SQL',\n Configuration::get(\n 'EVERPSQUOTATION_DROP_SQL'\n )\n ),\n 'EVERPSQUOTATION_LOGO_WIDTH' => Tools::getValue(\n 'EVERPSQUOTATION_LOGO_WIDTH',\n Configuration::get(\n 'EVERPSQUOTATION_LOGO_WIDTH'\n )\n ),\n 'EVERPSQUOTATION_ACCOUNT_EMAIL' => Tools::getValue(\n 'EVERPSQUOTATION_ACCOUNT_EMAIL',\n Configuration::get(\n 'EVERPSQUOTATION_ACCOUNT_EMAIL'\n )\n ),\n 'EVERPSQUOTATION_PREFIX' => Tools::getValue(\n 'EVERPSQUOTATION_PREFIX',\n Configuration::get(\n 'EVERPSQUOTATION_PREFIX'\n )\n ),\n 'EVERPSQUOTATION_RENDER_ON_VALIDATION' => Tools::getValue(\n 'EVERPSQUOTATION_RENDER_ON_VALIDATION',\n Configuration::get(\n 'EVERPSQUOTATION_RENDER_ON_VALIDATION'\n )\n ), \n 'EVERPSQUOTATION_MAIL_SUBJECT' => self::getConfigInMultipleLangs(\n 'EVERPSQUOTATION_MAIL_SUBJECT'\n ),\n 'EVERPSQUOTATION_FILENAME' => self::getConfigInMultipleLangs(\n 'EVERPSQUOTATION_FILENAME'\n ),\n 'EVERPSQUOTATION_TEXT' => self::getConfigInMultipleLangs(\n 'EVERPSQUOTATION_TEXT'\n ),\n 'EVERPSQUOTATION_MENTIONS' => self::getConfigInMultipleLangs(\n 'EVERPSQUOTATION_MENTIONS'\n ), \n );\n }", "title": "" }, { "docid": "a6016fd222aeef444dccd74a8d0f49b0", "score": "0.5249879", "text": "protected function insertNewConfiguration()\n {\n try {\n $toMerge = (new DbConfig())->getCachedData();\n\n foreach ($toMerge as $key => $value) {\n config()->set($key, $value);\n }\n } catch (\\Exception $e) {\n //\n }\n }", "title": "" }, { "docid": "86dfe052666ae1d92a5844bf49e9b5d2", "score": "0.5248383", "text": "abstract protected function initConfig();", "title": "" }, { "docid": "842dc43869e6e86d0544420c253e6f82", "score": "0.5237772", "text": "function getConfigs() {\n\t\t$db=$this->_db;\n\t\t$select=$db->select();\n\t\t$select->from('app_instance','ic_app_id');\n\t\t$select->where('instance_id=?',$this->_instance_id);\n\t\t$app_id=$db->fetchOne($select);\n\t\t$select->reset();\n\t\t$select->from('config_value_model','*');\n\t\t$select->where('ic_app_id=?',$app_id);\n\t\t$rows=$db->fetchAll($select);\n\n\t\tforeach($rows as $k=>$row)\n\t\t{\n\t\t\t$select->reset();\n\t\t\t$select->from('config_value_instance','value');\n\t\t\t$select->where('instance_id=?',$this->_instance_id);\n\t\t\t$select->where('identifier=?',$row['identifier']);\n\n\t\t\t$value=$db->fetchOne($select);\n\n\t\t\tif($value != false)\n\t\t\t\t$rows[$k]['default_value']=$value;\n\t\t}\n\n\t\t$data=array();\n\t\tforeach($rows as $row)\n\t\t{\n\t\t\t$data[$row['identifier']]=$row['default_value'];\n\t\t}\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "ddbd062a30e42961b0ec43fe9292caa4", "score": "0.52350146", "text": "function save_configurations() {\n\tglobal $wpdb;\n\n\tif ( ! empty( $_POST['delete_data'])) {\n\t\tclean_out_dictionary_data();\n\t}\n\tif ( ! empty( $_POST['save_settings'])) {\n\t\tupdate_option(\"publicationStatus\", $_POST['publicationStatus']);\n\t\tupdate_option(\"include_partial_words\", $_POST['include_partial_words']);\n\t\tupdate_option(\"searchSomposedCharacters\", $_POST['search_composed_characters']);\n\t\t//update_option(\"distinguish_diacritics\", $_POST['distinguish_diacritics']);\n\t\tif(isset($_POST['normalization']))\n\t\t{\n\t\t\tupdate_option(\"normalization\", $_POST['normalization']);\n\t\t}\n\t\t$special_characters = $_POST['characters'];\n\t\tif(trim($special_characters) == \"\")\n\t\t{\n\t\t\t$special_characters = \"empty\";\n\t\t}\n\t\tupdate_option(\"special_characters\", $special_characters);\n\t\tupdate_option(\"inputFont\", $_POST['inputFont']);\n\t\tupdate_option(\"vernacularLettersFont\", $_POST['vernacularLettersFont']);\n\n\t\t//We no longer give the option to set this (only to unset it) as this can be done in FLEx\n\t\t$displaySubentriesAsMainEntries = 'no';\n\t\tif(isset($_POST['DisplaySubentriesAsMainEntries']))\n\t\t{\n\t\t\t$displaySubentriesAsMainEntries = 1;\n\t\t}\n\t\tupdate_option(\"DisplaySubentriesAsMainEntries\", $displaySubentriesAsMainEntries);\n\t\tupdate_option(\"languagecode\", $_POST['languagecode']);\n\t\tif(is_super_admin())\n\t\t{\n\t\t\tupdate_option(\"vernacular_alphabet\", $_POST['vernacular_alphabet']);\n\t\t}\n\n\t\t//We no longer give the option to set this (only to unset it) as the letter headers/sorting should be done in FLEx\n\t\t$IncludeCharactersWithDiacritics = 'no';\n\t\tif(isset($_POST['IncludeCharactersWithDiacritics']))\n\t\t{\n\t\t\t$IncludeCharactersWithDiacritics = 1;\n\t\t}\n\t\tupdate_option(\"IncludeCharactersWithDiacritics\", $IncludeCharactersWithDiacritics);\n\n\t\tupdate_option(\"displayCustomDomains\", $_POST['displayCustomDomains']);\n\n\t\t$vernacularRightToLeft = 'no';\n\t\tif(isset($_POST['vernacularRightToLeft']))\n\t\t{\n\t\t\t$vernacularRightToLeft = 1;\n\t\t}\n\t\tupdate_option(\"vernacularRightToLeft\", $vernacularRightToLeft);\n\n\t\tupdate_option(\"reversal1_langcode\", $_POST['reversal1_langcode']);\n\t\tupdate_option(\"reversal2_langcode\", $_POST['reversal2_langcode']);\n\t\tupdate_option(\"reversal3_langcode\", $_POST['reversal3_langcode']);\n\t\tif(is_super_admin())\n\t\t{\n\t\t\tupdate_option(\"reversal1_alphabet\", $_POST['reversal1_alphabet']);\n\t\t\tupdate_option(\"reversal2_alphabet\", $_POST['reversal2_alphabet']);\n\t\t\tupdate_option(\"reversal3_alphabet\", $_POST['reversal3_alphabet']);\n\t\t}\n\n\t\t$reversal1RightToLeft = 'no';\n\t\tif(isset($_POST['reversal1RightToLeft']))\n\t\t{\n\t\t\t$reversal1RightToLeft = 1;\n\t\t}\n\t\tupdate_option(\"reversal1RightToLeft\", $reversal1RightToLeft);\n\n\t\t$reversal2RightToLeft = 'no';\n\t\tif(isset($_POST['reversal2RightToLeft']))\n\t\t{\n\t\t\t$reversal2RightToLeft = 1;\n\t\t}\n\t\tupdate_option(\"reversal2RightToLeft\", $reversal2RightToLeft);\n\n\t\t$reversal3RightToLeft = 'no';\n\t\tif(isset($_POST['reversal3RightToLeft']))\n\t\t{\n\t\t\t$reversal3RightToLeft = 1;\n\t\t}\n\t\tupdate_option(\"reversal3RightToLeft\", $reversal3RightToLeft);\n\n\t\tif(trim(strlen($_POST['txtVernacularName'])) == 0)\n\t\t{\n\t\t\techo \"<br><span style=\\\"color:red\\\">Please fill out the textfields for the language names, as they will appear in a dropdown below the searcbhox.</span><br>\";\n\t\t}\n\n\t\t$arrLanguages[0]['name'] = \"txtVernacularName\";\n\t\t$arrLanguages[0]['code'] = \"languagecode\";\n\t\t$arrLanguages[1]['name'] = \"txtReversalName\";\n\t\t$arrLanguages[1]['code'] = \"reversal1_langcode\";\n\t\t$arrLanguages[2]['name'] = \"txtReversal2Name\";\n\t\t$arrLanguages[2]['code'] = \"reversal2_langcode\";\n\t\t$arrLanguages[3]['name'] = \"txtReversal3Name\";\n\t\t$arrLanguages[3]['code'] = \"reversal3_langcode\";\n\n\t\tforeach($arrLanguages as $language)\n\t\t{\n\t\t\tif(strlen(trim($_POST[$language['code']])) != 0)\n\t\t\t{\n\t\t\t\t$sql = \"SELECT term_id, name\n\t\t\t\tFROM $wpdb->terms\n\t\t\t\tWHERE slug = '\" . $_POST[$language['code']] . \"'\";\n\n\t\t\t\t$arrLanguageNames = $wpdb->get_results($sql);\n\n\t\t\t\tif(count($arrLanguageNames) > 0)\n\t\t\t\t{\n\t\t\t\t\t$sql = \"UPDATE $wpdb->terms SET name = '\" . $_POST[$language['name']] . \"' WHERE slug = '\" . $_POST[$language['code']] . \"'\";\n\t\t\t\t\t$termid = $arrLanguageNames[0]->term_id;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$sql = \"INSERT INTO $wpdb->terms (name,slug) VALUES ('\" . $_POST[$language['name']] . \"','\" . $_POST[$language['code']] . \"')\";\n\t\t\t\t\t$termid = $wpdb->insert_id;\n\t\t\t\t}\n\n\t\t\t\t$wpdb->query( $sql );\n\n\n\t\t\t\tif(count($arrLanguageNames) > 0)\n\t\t\t\t{\n\t\t\t\t\t$sql = \"UPDATE $wpdb->term_taxonomy SET description = '\" . $_POST[$language['name']] . \"' WHERE term_id = \" . $termid;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$sql = \"INSERT INTO $wpdb->term_taxonomy (term_id, taxonomy,description,count) VALUES (\" . $term_id . \", 'sil_writing_systems', '\" . $_POST[$language['name']] . \"',999999)\";\n\t\t\t\t}\n\n\t\t\t\t$wpdb->query( $sql );\n\t\t\t}\n\t\t}\n\n\t\tif(isset($_POST['txtNotes']))\n\t\t{\n\t\t\tupdate_option(\"notes\", $_POST['txtNotes']);\n\t\t}\n\n\t\t$noSearchForm = 0;\n\t\tif(isset($_POST['noSearchForm']))\n\t\t{\n\t\t\t$noSearchForm = $_POST['noSearchForm'];\n\t\t\tif ( is_plugin_active( 'wp-super-cache/wp-cache.php' ) && $noSearchForm == 1)\n\t\t\t{\n\t\t\t\tprune_super_cache( get_supercache_dir(), true );\n\t\t\t}\n\n\t\t}\n\t\tupdate_option(\"noSearch\", $noSearchForm);\n\n\n\n\t\techo \"<br>\" . _e('Settings saved');\n\t}\n}", "title": "" }, { "docid": "a7d2c4665d86c1142f4584135e2094bf", "score": "0.52337164", "text": "function initData() {\n\t\t$siteDao =& DAORegistry::getDAO('SiteDAO');\n\t\t$site =& $siteDao->getSite();\n\n\t\t$data = array(\n\t\t\t'title' => $site->getSetting('title'), // Localized\n\t\t\t'intro' => $site->getSetting('intro'), // Localized\n\t\t\t'redirect' => $site->getRedirect(),\n\t\t\t'showThumbnail' => $site->getSetting('showThumbnail'),\n\t\t\t'showTitle' => $site->getSetting('showTitle'),\n\t\t\t'showDescription' => $site->getSetting('showDescription'),\n\t\t\t'about' => $site->getSetting('about'), // Localized\n\t\t\t'contactName' => $site->getSetting('contactName'), // Localized\n\t\t\t'contactEmail' => $site->getSetting('contactEmail'), // Localized\n\t\t\t'minPasswordLength' => $site->getMinPasswordLength(),\n\t\t\t'pageHeaderTitleType' => $site->getSetting('pageHeaderTitleType'), // Localized\n\t\t\t'siteTheme' => $site->getSetting('siteTheme'),\n\t\t\t'oneStepReset' => $site->getSetting('oneStepReset') ? true : false,\n\t\t);\n\n\t\tforeach ($data as $key => $value) {\n\t\t\t$this->setData($key, $value);\n\t\t}\n\t}", "title": "" }, { "docid": "607f21d7a6bdbb2c599d9220b78d6e36", "score": "0.5233393", "text": "public function run()\n {\n Config::query()->delete();\n Config::insert( $this->data() );\n }", "title": "" }, { "docid": "faf7c41deab62a69b51be57872751691", "score": "0.52304333", "text": "function config_decrypt($config_location) {\r\n if ($config_location) {\r\n $config = file($config_location);\r\n $ck = 0;\r\n\r\n $config_array = array();\r\n for ($i = 0; $i < count($config); $i++) {\r\n $config[$i] = trim($config[$i]);\r\n if (substr(trim($config[$i]),0,1) == '[' && substr(strrev(trim($config[$i])),0,1) == ']') {\r\n $section = substr($config[$i],1,strlen($config[$i])-2);\r\n $config_array[$section] = array();\r\n }\r\n if ($config[$i] && ereg(\"=\",$config[$i])) {\r\n list($name,$var) = explode(\"=\",$config[$i]);\r\n $var = trim($var);\r\n $name = trim($name);\r\n switch ($section) {\r\n case 'database':\r\n switch (trim($name)) {\r\n case 'database.DatabaseType':\r\n case 'DatabaseType':\r\n $config_array[$section]['db_type'] = $var;\r\n break;\r\n\r\n case 'database.DatabaseHost':\r\n case 'DatabaseHost':\r\n $config_array[$section]['db_host'] = $var;\r\n break;\r\n\r\n case 'database.DefaultDatabase':\r\n case 'DefaultDatabase':\r\n $config_array[$section]['db_name'] = $var;\r\n break;\r\n\r\n case 'database.DatabaseList':\r\n case 'DatabaseList':\r\n $config_array[$section]['db_list'] = $var;\r\n break;\r\n\r\n case 'database.DatabaseUser':\r\n case 'DatabaseUser':\r\n $config_array[$section]['db_username'] = $var;\r\n break;\r\n\r\n case 'database.DatabasePass':\r\n case 'DatabasePass':\r\n $config_array[$section]['db_password'] = $var;\r\n break;\r\n\r\n case 'database.DatabasePort':\r\n case 'DatabasePort':\r\n $config_array[$section]['db_port'] = $var;\r\n break;\r\n\r\n case 'database.ConnectionCharset':\r\n case 'ConnectionCharset':\r\n $config_array[$section]['connection_charset'] = $var;\r\n break;\r\n\r\n case 'database.ConnectionCollation':\r\n case 'ConnectionCollation':\r\n $config_array[$section]['connection_collation'] = $var;\r\n break;\r\n }\r\n break;\r\n\r\n case 'cookie':\r\n switch (trim($name)) {\r\n case 'cookie.CookieName':\r\n case 'CookieName':\r\n $config_array[$section]['cookie_name'] = $var;\r\n break;\r\n\r\n case 'cookie.CookieDomain':\r\n case 'CookieDomain':\r\n $config_array[$section]['cookie_domain'] = $var;\r\n break;\r\n\r\n case 'cookie.CookiePath':\r\n case 'CookiePath':\r\n $config_array[$section]['cookie_path'] = $var;\r\n break;\r\n\r\n case 'cookie.CookieSecure':\r\n case 'CookieSecure':\r\n $config_array[$section]['cookie_secure'] = $var;\r\n break;\r\n\r\n case 'cookie.CookieSeed':\r\n case 'CookieSeed':\r\n $config_array[$section]['cookie_seed'] = $var;\r\n break;\r\n }\r\n break;\r\n\r\n case 'system':\r\n switch (trim($name)) {\r\n case 'system.InstallDir':\r\n case 'InstallDir':\r\n $config_array[$section]['install_dir'] = $var;\r\n break;\r\n\r\n case 'system.SiteDomain':\r\n case 'SiteDomain':\r\n $config_array[$section]['site_domain'] = $var;\r\n break;\r\n\r\n case 'system.SiteAlias':\r\n case 'SiteAlias':\r\n $config_array[$section]['site_alias'] = $var;\r\n break;\r\n\r\n case 'system.LicenseNo':\r\n case 'LicenseNo':\r\n $config_array[$section]['license_no'] = $var;\r\n break;\r\n\r\n case 'system.Licensee':\r\n case 'Licensee':\r\n $config_array[$section]['licensee'] = $var;\r\n break;\r\n\r\n case 'system.DefaultCharset':\r\n case 'DefaultCharset':\r\n $config_array[$section]['default_charset'] = $var;\r\n break;\r\n }\r\n break;\r\n\r\n case 'math':\r\n switch (trim($name)) {\r\n case 'math.DecimalPrecision':\r\n case 'DecimalPrecision':\r\n $config_array[$section]['DecimalPrecision'] = $var;\r\n break;\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n if (count($config_array) < 3 || count($config_array['system']) < 4 || count($config_array['database']) < 7 || count($config_array['cookie']) < 4)\r\n (defined('CRON') ? die('-1') : config_error('config1'));\r\n\r\n define('PUN',1);\r\n return $config_array;\r\n } else\r\n config_error('config2');\r\n}", "title": "" }, { "docid": "124f78f0254242f6a61338a7c17e3f85", "score": "0.5223225", "text": "public function dumpConfig()\n {\n $out = [];\n $config = $this->getConfig();\n foreach ($config->keys() as $key) {\n $out[] = [\n 'key' => $key,\n 'env' => $config->getConstantFromKey($key),\n 'value' => $config->get($key),\n 'source' => $config->getSource($key),\n ];\n }\n return new RowsOfFields($out);\n }", "title": "" }, { "docid": "1f00c93a182d3118ee667c9c9ede3513", "score": "0.52199507", "text": "private function loadConfigurations()\n\t{\n\t\t$sql = '\n\t\t\tSELECT\n\t\t\t\tconfiguration_id,\n\t\t\t\t`key`,\n\t\t\t\t`value`\n\t\t\tFROM configurations\n\t\t';\n\t\t$temp = query($sql, true);\n\n\t\tforeach ($temp as $le)\n\t\t\t$this->configurations[$le['key']] = new Configuration(\n\t\t\t\t$le['configuration_id'], $le['key'], $le['value']\n\t\t\t);\n\t}", "title": "" }, { "docid": "7c7dbcd9b21ced2f608531cf788c56d2", "score": "0.5219346", "text": "function PmvConfig()\n\t{\n\t\t$this->url = _PHPMV_DIR_CONFIG . \"/config.php\";\n\t\t$this->content = array();\n\t\t\n\t\tif(!@is_file($this->url))\n {\n\t\t\t//trigger_error(\"Unable to load base config file, can't continue...\", E_USER_WARNING);\n }\n\t\telse\n\t\t{\n\t\t\tinclude $this->url;\n\t\t\t\n\t\t\tif (!is_array($config))\n\t {\n\t\t\t\ttrigger_error('Unattended config file format, please verify or delete your configuration file', E_USER_WARNING);\n\t }\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->content = $config;\n\t\t\t\t$this->defineAsConstant( $this->content );\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->defineTables();\n\t}", "title": "" }, { "docid": "552acf2a0e464ab33ed27e1cc5810d1f", "score": "0.521876", "text": "protected function load_config() {\n }", "title": "" }, { "docid": "2f71da926851bae9e6d1045941acc6e6", "score": "0.5218263", "text": "protected function __setModuleData()\r\n {\r\n \t$settings = empty($this->settings)?json_encode(array('sources' => $this->sourceList)):json_encode($this->settings);\r\n\t\t$pQuery = \"INSERT INTO modules (`module_name`,`module_settings`) values ('\".$this->moduleName.\"','\".$settings.\"')\";\r\n\t\t$this->moduleID = $this->_db->insert_sql($pQuery);\r\n }", "title": "" }, { "docid": "ad2bc88861f60b149e9b9c70137a59ae", "score": "0.521527", "text": "private function _get_user_config()\n {\n $query=$this->_ci->db->select('at.*,ac.*')->from('authen_type at')\n ->join('authen_config ac','ac.authen_id=at.authen_id','left')\n ->join('rbac_users usr','usr.authen_id=at.authen_id')\n ->where('usr.username',$this->username)->get();\n //$query=$this->_ci->db->query($sql);\n if($query->num_rows()>0){\n foreach($query->result() as $config){\n $this->_ldap_config['host']=((!array_key_exists('host',$this->_ldap_config))?trim($config->authen_server):$this->_ldap_config['host']);\n $this->_ldap_config['port']=((!array_key_exists('port',$this->_ldap_config))?trim($config->authen_port):$this->_ldap_config['port']);\n $this->_ldap_config[trim($config->properties)]=trim($config->value);\n }\n log_message('debug','load ldap configuration to memory');\n }\n }", "title": "" }, { "docid": "4e4d71a92875abdbc94aae6665109deb", "score": "0.5204599", "text": "public function local_config() {\n\t\t\tdo_action( 'wpseo_local_config' );\n\t\t}", "title": "" }, { "docid": "908439a3a122751c53acb55af9b39f7b", "score": "0.5202006", "text": "protected function __construct()\n {\n $this->configData = [];\n }", "title": "" }, { "docid": "ef16e1223d9f38cd1457ae1af38eaa55", "score": "0.5199679", "text": "function initGeneralSetting()\n {\n $this->arrConf = [];\n $strSQL = \"SELECT * FROM all_setting \";\n $res = $this->data->execute($strSQL);\n while ($row = $this->data->fetchrow($res)) {\n $this->arrConf[$row['code']] = $row['value'];\n }\n }", "title": "" }, { "docid": "b2eca0f63253afa5658add314f68d3e0", "score": "0.51924443", "text": "private function getConfigurations(): void\n {\n $blockRepository = $this->entityManager->getRepository(Block::class);\n\n foreach ($this->fields as $keyName => $field) {\n $matches = explode('_', $keyName);\n $this->configurations[$keyName] = $blockRepository->find(end($matches))->getFieldConfiguration();\n }\n }", "title": "" }, { "docid": "5f3bcbbc7d890c094f65277cc341c331", "score": "0.51878566", "text": "public function configure()\n {\n unset(\n $this['is_active'],\n $this['is_super_admin'],\n $this['updated_at'],\n $this['groups_list'],\n $this['permissions_list'],\n $this['last_login'],\n $this['created_at'],\n $this['salt'],\n $this['algorithm'],\n $this['username'],\n $this['password']\n );\n \n }", "title": "" }, { "docid": "448f3a4efc3d2e6af924eab7aa241a60", "score": "0.518562", "text": "function initConfig(iDataEntity $config)\n {\n return \\Poirot\\Config\\load(__DIR__ . '/../../config/mod-foundation');\n }", "title": "" }, { "docid": "63eee08eadb29f339ed914495b4a3de2", "score": "0.51801056", "text": "public function data()\n {\n $config = Config::where('key', 'setting')->first();\n if (!$config){\n return [];\n }\n\n\n $data = json_decode($config->value, true);\n\n return [\n 'qq' => isset($data['qq'])?$data['qq']:null,\n 'mobile' => isset($data['mobile'])?$data['mobile']:null,\n 'free' => isset($data['free'])?$data['free']:null,\n 'tel' => isset($data['tel'])?$data['tel']:null,\n 'email' => isset($data['email'])?$data['email']:null,\n 'address' => isset($data['address'])?$data['address']:null,\n 'record' => isset($data['record'])?$data['record']:null,\n 'script' => isset($data['script'])?$data['script']:null,\n 'blacklist' => isset($data['blacklist'])?$data['blacklist']:null,\n 'blacklistTo' => isset($data['blacklistTo'])?$data['blacklistTo']:null,\n ];\n\n }", "title": "" }, { "docid": "9be6dc2a31abfb953637dfc3818cdb7c", "score": "0.51719326", "text": "private function loadConfigFileData(){\r\r\n\t\t$this->isSiteEnabled = $this->CI->config->item(\"zt_site_enabled\");\r\r\n\t\t\r\r\n\tif($this->CI->config->item(\"zt_site_disabled_title\")){\r\r\n\t\t\t$this->siteDisabledTitle = $this->CI->config->item(\"zt_site_disabled_title\");\t\r\r\n\t\t} else {\r\r\n\t\t\tthrow new Exception(\"Config propery \\\"zt_site_disabled_title\\\" must be set.\");\r\r\n\t\t}\r\r\n\t\t\r\r\n\t\tif($this->CI->config->item(\"zt_site_disabled_msg\")){\r\r\n\t\t\t$this->siteDisabledMsg = $this->CI->config->item(\"zt_site_disabled_msg\");\t\r\r\n\t\t} else {\r\r\n\t\t\tthrow new Exception(\"Config propery \\\"zt_site_disabled_msg\\\" must be set.\");\r\r\n\t\t}\r\r\n\t\t\r\r\n\t\tif($this->CI->config->item(\"zt_site_title\")){\r\r\n\t\t\t$this->siteTitle = $this->CI->config->item(\"zt_site_title\");\t\r\r\n\t\t} else {\r\r\n\t\t\tthrow new Exception(\"Config propery \\\"zt_site_title\\\" must be set.\");\r\r\n\t\t}\r\r\n\t\t\r\r\n\t\tif($this->CI->config->item(\"zt_site_description\")){\r\r\n\t\t\t$this->siteDescription = $this->CI->config->item(\"zt_site_description\");\t\r\r\n\t\t} else {\r\r\n\t\t\tthrow new Exception(\"Config propery \\\"zt_site_description\\\" must be set.\");\r\r\n\t\t}\r\r\n\t\t\r\r\n\t\tif($this->CI->config->item(\"zt_site_keywords\")){\r\r\n\t\t\t$this->siteKeywords = $this->CI->config->item(\"zt_site_keywords\");\r\r\n\t\t} else {\r\r\n\t\t\tthrow new Exception(\"Config propery \\\"zt_site_keywords\\\" must be set.\");\r\r\n\t\t}\r\r\n\r\r\n\t}", "title": "" }, { "docid": "900e7b3c49b4dc27da8c5e7d8d09a935", "score": "0.51664096", "text": "public function config()\n\t{\n\t\t//current nav\n\t\t$this->nav = 'Config';\n\t\t\n\t\t//data from db\n\t\t$data['configs'] = $this->g->get_config();\n\t\t\n\t\t//load view\n\t\t$this->template->load('admin/template', 'admin/config', $data);\n\t}", "title": "" }, { "docid": "1616e62a9155d6028d93b0073ecd34e0", "score": "0.5164602", "text": "function saveConf() \n {\n $db = DB_API::get();\n \n $originalSettings = Configuration::getConfAll();\n $problemUpdates = array();\n\n // For each config variable we know about, update it with the value from the form.\n foreach ($originalSettings as $key => $value) {\n try {\n if (array_key_exists($key, $_POST)) {\n $stmt = \"UPDATE \" . APP_TABLE_PREFIX . \"config SET config_value = \" . $db->quote($_POST[$key]) .\n \" WHERE config_name = \" . $db->quote($key) . \" AND config_module = 'core'\";\n $db->exec($stmt);\n }\n }\n catch(Exception $ex) {\t\t\t\t\n array_push($problemUpdates, $key);\n } \n }\n return $problemUpdates;\n }", "title": "" }, { "docid": "063eaf9107d589c0ad826a67dd849080", "score": "0.5163473", "text": "public function storeFinisher()\n {\n if (!empty($this->configuration)) {\n $this->addArrayToDataArray($this->user->_getProperties());\n foreach ((array)array_keys($this->configuration) as $table) {\n $this->storeForTable($table);\n }\n }\n }", "title": "" }, { "docid": "7af5a15a0dc1aacdac0f17123bfb9aa0", "score": "0.51606965", "text": "function _load_config()\r\n\t{\r\n\t\t$this->EE->lang->loadfile('updated_sites');\r\n\t\t\r\n\t\t$this->id = ( ! $this->EE->input->get('id')) ? '1' : $this->EE->input->get_post('id');\r\n\t\t\r\n\t\t$query = $this->EE->db->get_where('updated_sites', array('updated_sites_id' => $this->id));\r\n\t\t\r\n\t\tif ($query->num_rows() > 0)\r\n\t\t{\r\n \t\t\t$row = $query->row_array();\r\n\t\t\r\n\t\t\t$this->allowed = explode(\"\\n\", trim($row['updated_sites_allowed']));\r\n\t\t\t$this->prune\t= $row['updated_sites_prune'];\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6de5dd243e4d020b9c6e4898780049ac", "score": "0.5156769", "text": "private static function loadConfigIntoSession()\n {\n $configs = Configuration::find()->select(['configuration_name', 'configuration_value'])->asArray()->all();\n\n $configArr = [];\n foreach ((array)$configs as $config) {\n if (!array_key_exists('configuration_name', $config)) {\n continue;\n }\n\n $configArr[$config['configuration_name']] = $config['configuration_value'];\n }\n return $configArr;\n }", "title": "" }, { "docid": "25eac2a020adbffeeffa686eab3de7ef", "score": "0.51515734", "text": "public static function pluginConfigWrite($data){\n $config = array();\n $x=0;\n foreach($data as $key=>$value){\n $config[$x]['Configuration']['id']=$value['id'];\n $config[$x]['Configuration']['value']=$value['value'];\n $x++;\n }\n return $config;\n }", "title": "" }, { "docid": "5f193ebee2e16d8c1ccaf221a2a9ee8c", "score": "0.51510334", "text": "public function run(): void\n {\n Config::create([\n \"data\" => config('hd')\n ]);\n }", "title": "" }, { "docid": "593892cc1775ce11135ab325dcd91077", "score": "0.51368976", "text": "protected function getConfigFormValues()\n {\n return array(\n 'MODULO_TAREA4_MINIMO_SUMAR' => Configuration::get('MODULO_TAREA4_MINIMO_SUMAR'),\n 'MODULO_TAREA4_VALOR' => Configuration::get('MODULO_TAREA4_VALOR'),\n );\n }", "title": "" }, { "docid": "0ded15fc6e2e9b95830c2bd9ce8238c0", "score": "0.5135336", "text": "private function saveConfigurations()\n {\n $ini = \"[installer]\\n\";\n $ini .= \"version = \\\"{$this->installer_version}\\\"\\n\";\n $ini .= \"osf-configured = \\\"\" . ($this->installer_osf_configured ? 'true' : 'false') . \"\\\"\\n\";\n $ini .= \"osf-drupal-configured = \\\"\" . ($this->installer_osf_drupal_configured ? 'true' : 'false') . \"\\\"\\n\";\n $ini .= \"upgrade-distro = \\\"\" . ($this->upgrade_distro ? 'true' : 'false') . \"\\\"\\n\";\n $ini .= \"auto-deploy = \\\"\" . ($this->auto_deploy ? 'true' : 'false') . \"\\\"\\n\";\n $ini .= \"\\n\";\n $ini .= \"[osf]\\n\";\n $ini .= \"application-id = \\\"{$this->application_id}\\\"\\n\";\n $ini .= \"api-key = \\\"{$this->api_key}\\\"\\n\";\n $ini .= \"data-folder = \\\"{$this->data_folder}\\\"\\n\";\n $ini .= \"logging-folder = \\\"{$this->logging_folder}\\\"\\n\";\n $ini .= \"\\n\";\n $ini .= \"[osf-web-services]\\n\";\n $ini .= \"osf-web-services-version = \\\"{$this->osf_web_services_version}\\\"\\n\";\n $ini .= \"osf-web-services-folder = \\\"{$this->osf_web_services_folder}\\\"\\n\";\n $ini .= \"osf-web-services-domain = \\\"{$this->osf_web_services_domain}\\\"\\n\";\n $ini .= \"\\n\";\n $ini .= \"[osf-components]\\n\";\n $ini .= \"osf-ws-php-api-version = \\\"{$this->osf_ws_php_api_version}\\\"\\n\";\n $ini .= \"osf-ws-php-api-folder = \\\"{$this->osf_ws_php_api_folder}\\\"\\n\";\n $ini .= \"osf-tests-suites-version = \\\"{$this->osf_tests_suites_version}\\\"\\n\";\n $ini .= \"osf-tests-suites-folder = \\\"{$this->osf_tests_suites_folder}\\\"\\n\";\n $ini .= \"data-validator-tool-version = \\\"{$this->data_validator_tool_version}\\\"\\n\";\n $ini .= \"data-validator-tool-folder = \\\"{$this->data_validator_tool_folder}\\\"\\n\";\n $ini .= \"\\n\";\n $ini .= \"[osf-tools]\\n\";\n $ini .= \"permissions-management-tool-version = \\\"{$this->permissions_management_tool_version}\\\"\\n\";\n $ini .= \"permissions-management-tool-folder = \\\"{$this->permissions_management_tool_folder}\\\"\\n\";\n $ini .= \"datasets-management-tool-version = \\\"{$this->datasets_management_tool_version}\\\"\\n\";\n $ini .= \"datasets-management-tool-folder = \\\"{$this->datasets_management_tool_folder}\\\"\\n\";\n $ini .= \"ontologies-management-tool-version = \\\"{$this->ontologies_management_tool_version}\\\"\\n\";\n $ini .= \"ontologies-management-tool-folder = \\\"{$this->ontologies_management_tool_folder}\\\"\\n\";\n $ini .= \"\\n\";\n $ini .= \"[osf-drupal]\\n\";\n $ini .= \"drupal-version = \\\"{$this->drupal_version}\\\"\\n\";\n $ini .= \"drupal-folder = \\\"{$this->drupal_folder}\\\"\\n\";\n $ini .= \"drupal-domain = \\\"{$this->drupal_domain}\\\"\\n\";\n $ini .= \"drupal-admin-username = \\\"{$this->drupal_admin_username}\\\"\\n\";\n $ini .= \"drupal-admin-password = \\\"{$this->drupal_admin_password}\\\"\\n\";\n $ini .= \"\\n\";\n $ini .= \"[sql]\\n\";\n $ini .= \"sql-server = \\\"{$this->sql_server}\\\"\\n\";\n $ini .= \"sql-host = \\\"{$this->sql_host}\\\"\\n\";\n $ini .= \"sql-port = \\\"{$this->sql_port}\\\"\\n\";\n $ini .= \"sql-root-username = \\\"{$this->sql_root_username}\\\"\\n\";\n $ini .= \"sql-root-password = \\\"{$this->sql_root_password}\\\"\\n\";\n $ini .= \"sql-app-username = \\\"{$this->sql_app_username}\\\"\\n\";\n $ini .= \"sql-app-password = \\\"{$this->sql_app_password}\\\"\\n\";\n $ini .= \"sql-app-database = \\\"{$this->sql_app_database}\\\"\\n\";\n $ini .= \"sql-app-engine = \\\"{$this->sql_app_engine}\\\"\\n\";\n $ini .= \"sql-app-collation = \\\"{$this->sql_app_collation}\\\"\\n\";\n $ini .= \"\\n\";\n $ini .= \"[sparql]\\n\";\n $ini .= \"sparql-server = \\\"{$this->sparql_server}\\\"\\n\";\n $ini .= \"sparql-channel = \\\"{$this->sparql_channel}\\\"\\n\";\n $ini .= \"sparql-dsn = \\\"{$this->sparql_dsn}\\\"\\n\";\n $ini .= \"sparql-host = \\\"{$this->sparql_host}\\\"\\n\";\n $ini .= \"sparql-port = \\\"{$this->sparql_port}\\\"\\n\";\n $ini .= \"sparql-url = \\\"{$this->sparql_url}\\\"\\n\";\n $ini .= \"sparql-graph-url = \\\"{$this->sparql_graph_url}\\\"\\n\";\n $ini .= \"sparql-username = \\\"{$this->sparql_username}\\\"\\n\";\n $ini .= \"sparql-password = \\\"{$this->sparql_password}\\\"\\n\";\n $ini .= \"\\n\";\n $ini .= \"[keycache]\\n\";\n $ini .= \"keycache-enabled = \\\"{$this->keycache_enabled}\\\"\\n\";\n $ini .= \"keycache-server = \\\"{$this->keycache_server}\\\"\\n\";\n $ini .= \"keycache-host = \\\"{$this->keycache_host}\\\"\\n\";\n $ini .= \"keycache-port = \\\"{$this->keycache_port}\\\"\\n\";\n $ini .= \"keycache-ui-password = \\\"{$this->keycache_ui_password}\\\"\\n\";\n $ini .= \"\\n\";\n $ini .= \"[solr]\\n\";\n $ini .= \"solr-host = \\\"{$this->solr_host}\\\"\\n\";\n $ini .= \"solr-port = \\\"{$this->solr_port}\\\"\\n\";\n $ini .= \"solr-core = \\\"{$this->solr_core}\\\"\\n\";\n $ini .= \"\\n\";\n $ini .= \"[owl]\\n\";\n $ini .= \"owl-host = \\\"{$this->owl_host}\\\"\\n\";\n $ini .= \"owl-port = \\\"{$this->owl_port}\\\"\\n\";\n $ini .= \"\\n\";\n $ini .= \"[scones]\\n\";\n $ini .= \"scones-host = \\\"{$this->scones_host}\\\"\\n\";\n $ini .= \"scones-port = \\\"{$this->scones_port}\\\"\\n\";\n $ini .= \"scones-url = \\\"{$this->scones_url}\\\"\\n\";\n $ini .= \"\\n\";\n\n file_put_contents('installer.ini', $ini);\n }", "title": "" }, { "docid": "d0d1e23e766f05884d0ea6e664603d57", "score": "0.51286507", "text": "function kingimport_config() {\r\n $configarray = array(\r\n \"name\" => \"Importação de Contas na Kinghost\",\r\n \"version\" => \"0.7\",\r\n \"author\" => \"Abaif\",\r\n \"language\" => \"portuguesebr\",\r\n \"fields\" => array(\r\n \"username\" => array (\"FriendlyName\" => \"Usuário da API\", \"Type\" => \"text\", \"Size\" => \"25\", \"Description\" => \"Seu email de acesso ao painel da revenda\"),\r\n \"password\" => array (\"FriendlyName\" => \"Senha da API\", \"Type\" => \"password\", \"Size\" => \"25\", \"Description\" => \"Sua senha cadastrada para a API\"),\r\n /*\"option3\" => array (\"FriendlyName\" => \"Option3\", \"Type\" => \"yesno\", \"Size\" => \"25\", \"Description\" => \"Sample Check Box\"),\r\n \"option4\" => array (\"FriendlyName\" => \"Option4\", \"Type\" => \"textarea\", \"Size\" => \"25\", \"Description\" => \"Textarea\"),\r\n \"option5\" => array (\"FriendlyName\" => \"Option5\", \"Type\" => \"dropdown\", \"Options\" => \"1,2,3,4,5\", \"Description\" => \"Sample Dropdown\"),*/\r\n ));\r\n return $configarray;\r\n}", "title": "" }, { "docid": "81902b9c291956324aa8b269d2730bcc", "score": "0.5121498", "text": "public function run()\n {\n DB::table('configs')->delete();\n\n Config::create([\n 'type' => 'color',\n 'key' => 'panel_color',\n 'value' => 'rgba(255,255,255,0.3)',\n 'title' => '展示板颜色',\n 'description' => '修改展示板的颜色'\n ]);\n Config::create([\n 'type' => 'color',\n 'key' => 'bar_color',\n 'value' => 'rgba(255,255,255,0.3)',\n 'title' => '时间轴颜色',\n 'description' => '修改时间轴的颜色'\n ]);\n Config::create([\n 'type' => 'color',\n 'key' => 'icon_border_color',\n 'value' => 'rgba(255,255,255,0.3)',\n 'title' => '图标边界颜色',\n 'description' => '修改图标边界的颜色'\n ]);\n Config::create([\n 'type' => 'color',\n 'key' => 'title_color',\n 'value' => 'rgba(255,255,255,0.3)',\n 'title' => '标题颜色',\n 'description' => '修改标题颜色'\n ]);\n Config::create([\n 'type' => 'color',\n 'key' => 'description_color',\n 'value' => 'rgba(255,255,255,0.3)',\n 'title' => '正文颜色',\n 'description' => '修改正文颜色'\n ]);\n Config::create([\n 'type' => 'color',\n 'key' => 'location_color',\n 'value' => 'rgba(255,255,255,0.3)',\n 'title' => '地点颜色',\n 'description' => '修改地点颜色'\n ]);\n Config::create([\n 'type' => 'color',\n 'key' => 'date_color',\n 'value' => 'rgba(255,255,255,0.3)',\n 'title' => '日期颜色',\n 'description' => '修改日期颜色'\n ]);\n Config::create([\n 'type' => 'text',\n 'key' => 'title',\n 'value' => '记忆画廊',\n 'title' => '站点标题',\n 'description' => '修改站点标题'\n ]);\n Config::create([\n 'type' => 'text',\n 'key' => 'description',\n 'value' => '保存你的珍藏记忆',\n 'title' => '站点描述',\n 'description' => '修改站点描述'\n ]);\n Config::create([\n 'type' => 'pic',\n 'key' => 'bg_img',\n 'value' => '/img/background.jpg',\n 'title' => '背景图',\n 'description' => '修改背景图片'\n ]);\n Config::create([\n 'type' => 'select',\n 'key' => 'is_open',\n 'value' => '0',\n 'title' => '是否公开',\n 'description' => '设置是否公开'\n ]);\n Config::create([\n 'type' => 'array',\n 'key' => 'auth_kind',\n 'value' => [\n 'admin' => '管理员',\n 'guest' => '游客',\n ],\n ]);\n Config::create([\n 'type' => 'array',\n 'key' => 'open_map',\n 'value' => [\n '1' => '开放',\n '0' => '需密钥',\n ],\n ]);\n Config::create([\n 'type' => 'site',\n 'key' => 'skin',\n 'value' => 'blue-skin'\n ]);\n Config::create([\n 'type' => 'array',\n 'key' => 'images_anim',\n 'value' => [\n 'random' => '随机动画',\n 'sim-anim-1' => '圆周绽放',\n 'sim-anim-2' => '旋转长廊',\n 'sim-anim-3' => '扇面展开',\n 'sim-anim-4' => '抛砖引玉',\n 'sim-anim-5' => '陀螺飞旋',\n 'sim-anim-6' => '经典画布',\n 'sim-anim-7' => '国画长卷',\n 'sim-anim-8' => '大鹏展翅',\n 'sim-anim-9' => '影院巨幕',\n ]\n ]);\n }", "title": "" }, { "docid": "3319820f1cdce80fc04a4f154bca802b", "score": "0.5118586", "text": "private function initializeConfiguration()\r\n\t{\r\n\t\t$configuration_model = new UserGroupsConfiguration('installation');\r\n\t\t$configuration_model->rule = 'version';\r\n\t\t$configuration_model->value = UserGroupsInstallation::VERSION;\r\n\t\t$configuration_model->options = 'CONST';\r\n\t\t$configuration_model->description = 'userGroups version';\r\n\t\tif (!$configuration_model->save())\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Setting not installed. Installation abort.'));\r\n\t\t$configuration_model = new UserGroupsConfiguration('installation');\r\n\t\t$configuration_model->rule = 'password_strength';\r\n\t\t$configuration_model->value = '0';\r\n\t\t$configuration_model->options = 'a:3:{i:0;s:4:\"weak\";i:1;s:6:\"medium\";i:2;s:6:\"strong\";}';\r\n\t\t$configuration_model->description = 'password strength:<br/>weak: password of at least 5 characters, any character allowed.<br/>\r\n\t\t\tmedium: password of at least 5 characters, must contain at least 2 digits and 2 letters.<br/>\r\n\t\t\tstrong: password of at least 5 characters, must contain at least 2 digits, 2 letters and a special character.';\r\n\t\tif (!$configuration_model->save())\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Setting not installed. Installation abort.'));\r\n\t\t$configuration_model = new UserGroupsConfiguration('installation');\r\n\t\t$configuration_model->rule = 'registration';\r\n\t\t$configuration_model->value = 'FALSE';\r\n\t\t$configuration_model->options = 'BOOL';\r\n\t\t$configuration_model->description = 'allow user registration';\r\n\t\tif (!$configuration_model->save())\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Setting not installed. Installation abort.'));\r\n\t\t$configuration_model = new UserGroupsConfiguration('installation');\r\n\t\t$configuration_model->rule = 'public_user_list';\r\n\t\t$configuration_model->value = 'FALSE';\r\n\t\t$configuration_model->options = 'BOOL';\r\n\t\t$configuration_model->description = 'logged users can see the complete user list';\r\n\t\tif (!$configuration_model->save())\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Setting not installed. Installation abort.'));\r\n\t\t$configuration_model = new UserGroupsConfiguration('installation');\r\n\t\t$configuration_model->rule = 'public_profiles';\r\n\t\t$configuration_model->value = 'FALSE';\r\n\t\t$configuration_model->options = 'BOOL';\r\n\t\t$configuration_model->description = 'allow everyone, even guests, to see user profiles';\r\n\t\tif (!$configuration_model->save())\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Setting not installed. Installation abort.'));\r\n\t\t$configuration_model = new UserGroupsConfiguration('installation');\r\n\t\t$configuration_model->rule = 'profile_privacy';\r\n\t\t$configuration_model->value = 'TRUE';\r\n\t\t$configuration_model->options = 'BOOL';\r\n\t\t$configuration_model->description = 'logged user can see other users profiles';\r\n\t\tif (!$configuration_model->save())\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Setting not installed. Installation abort.'));\r\n\t\t$configuration_model = new UserGroupsConfiguration('installation');\r\n\t\t$configuration_model->rule = 'personal_home';\r\n\t\t$configuration_model->value = 'FALSE';\r\n\t\t$configuration_model->options = 'BOOL';\r\n\t\t$configuration_model->description = 'users can set their own home';\r\n\t\tif (!$configuration_model->save())\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Setting not installed. Installation abort.'));\r\n\t\t$configuration_model = new UserGroupsConfiguration('installation');\r\n\t\t$configuration_model->rule = 'simple_password_reset';\r\n\t\t$configuration_model->value = 'FALSE';\r\n\t\t$configuration_model->options = 'BOOL';\r\n\t\t$configuration_model->description = 'if true users just have to provide user and email to reset their password.<br/>Otherwise they will have to answer their custom question';\r\n\t\tif (!$configuration_model->save())\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Setting not installed. Installation abort.'));\r\n\t\t$configuration_model = new UserGroupsConfiguration('installation');\r\n\t\t$configuration_model->rule = 'user_need_activation';\r\n\t\t$configuration_model->value = 'TRUE';\r\n\t\t$configuration_model->options = 'BOOL';\r\n\t\t$configuration_model->description = 'if true when a user creates an account a mail with an activation code will be sent to his email address';\r\n\t\tif (!$configuration_model->save())\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Setting not installed. Installation abort.'));\r\n\t\t$configuration_model = new UserGroupsConfiguration('installation');\r\n\t\t$configuration_model->rule = 'user_need_approval';\r\n\t\t$configuration_model->value = 'FALSE';\r\n\t\t$configuration_model->options = 'BOOL';\r\n\t\t$configuration_model->description = 'if true when a user creates an account a user with user admin rights will have to approve the registration.<br/>If both this setting and user_need_activation are true the user will need to activate is account first and then will need the approval';\r\n\t\tif (!$configuration_model->save())\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Setting not installed. Installation abort.'));\r\n\t\t$configuration_model = new UserGroupsConfiguration('installation');\r\n\t\t$configuration_model->rule = 'user_registration_group';\r\n\t\t$configuration_model->value = '2';\r\n\t\t$configuration_model->options = 'GROUP_LIST';\r\n\t\t$configuration_model->description = 'the group new users automatically belong to';\r\n\t\tif (!$configuration_model->save())\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Setting not installed. Installation abort.'));\r\n\t\t$configuration_model = new UserGroupsConfiguration('installation');\r\n\t\t$configuration_model->rule = 'dumb_admin';\r\n\t\t$configuration_model->value = 'TRUE';\r\n\t\t$configuration_model->options = 'BOOL';\r\n\t\t$configuration_model->description = 'users with just admin write permissions won\\'t see the Main Configuration and Cron Jobs panels';\r\n\t\tif (!$configuration_model->save())\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Setting not installed. Installation abort.'));\r\n\t\t$configuration_model = new UserGroupsConfiguration('installation');\r\n\t\t$configuration_model->rule = 'super_admin';\r\n\t\t$configuration_model->value = 'FALSE';\r\n\t\t$configuration_model->options = 'BOOL';\r\n\t\t$configuration_model->description = 'users with userGroups admin admin permission will have access to everything, just like root';\r\n\t\tif (!$configuration_model->save())\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Setting not installed. Installation abort.'));\r\n\t\t$configuration_model = new UserGroupsConfiguration('installation');\r\n\t\t$configuration_model->rule = 'permission_cascade';\r\n\t\t$configuration_model->value = 'TRUE';\r\n\t\t$configuration_model->options = 'BOOL';\r\n\t\t$configuration_model->description = 'if a user has on a controller admin permissions will have access to write and read pages. If he has write permissions will also have access to read pages';\r\n\t\tif (!$configuration_model->save())\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Setting not installed. Installation abort.'));\r\n\t\t$configuration_model = new UserGroupsConfiguration('installation');\r\n\t\t$configuration_model->rule = 'server_executed_crons';\r\n\t\t$configuration_model->value = 'FALSE';\r\n\t\t$configuration_model->options = 'BOOL';\r\n\t\t$configuration_model->description = 'if true crons must be executed from the server using a crontab';\r\n\t\tif (!$configuration_model->save())\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Setting not installed. Installation abort.'));\r\n\t}", "title": "" }, { "docid": "f015af73d9f35386b1036aa47f151a47", "score": "0.51181257", "text": "function primer_getLocalConfigurations() {\n\n\tif(!module_exists('primermanager')) {\n\t\treturn false;\n\t} else {\n\n\t $result = db_query(\"SELECT * FROM {primermanager}\");\n\t\t$returnArray = array();\n\n\t\twhile ($c = db_fetch_array($result)) {\n\n\t\t\t$returnArray[$c['configKey']]['configKey'] = $c['configKey'];\n\t\t\t$returnArray[$c['configKey']]['name'] = 'Local - ' . $c['name'];\n\t\t\t$returnArray[$c['configKey']]['date'] = $c['date'];\n\t\t\t$returnArray[$c['configKey']]['settings'] = unserialize($c['settings']);\n\n\t\t}\n\n\t}\n\n\treturn $returnArray;\n\n}", "title": "" }, { "docid": "e96d866fb7556c2e3ac4ad461f8d113d", "score": "0.5113423", "text": "public function defaults()\n {\n // Application environment\n $this->setVar('APP_DEBUG', '0');\n $this->setVar('APP_ENV', 'prod');\n\n // App secret\n if (!$this->hasVar('APP_SECRET')) {\n $hexchars = '0123456789abcdef';\n $random_val = '';\n for ($i = 0; $i < 32; ++$i) {\n $random_val .= $hexchars[random_int(0, strlen($hexchars) - 1)];\n }\n $this->setVar('APP_SECRET', $random_val);\n }\n\n // Userprovider Key\n if (!$this->hasVar('USERPROVIDER_KEY')) {\n $hexchars = '0123456789abcdef';\n $random_val = '';\n for ($i = 0; $i < 32; ++$i) {\n $random_val .= $hexchars[random_int(0, strlen($hexchars) - 1)];\n }\n $this->setVar('USERPROVIDER_KEY', $random_val);\n }\n\n $this->save();\n }", "title": "" }, { "docid": "8eddb25c2bdc4442a18321e7efd51c0c", "score": "0.5110553", "text": "private function create_initial_config($bare = FALSE) {\n $bare_status = ($bare ? 'true' : 'false');\n $config = \"[core]\\n\\trepositoryformatversion = 0\\n\\tfilemode = true\\n\\tbare = $bare_status\\n\\tlogallrefupdates = true\";\n file_put_contents('config', $config);\n }", "title": "" }, { "docid": "c5166fa2e26381411adf786337bdec93", "score": "0.5109083", "text": "public function run()\n {\n DB::table('configs')->insert([\n 'descricao' => 'Nomes das Mesas separados por vírgula',\n 'chave' => 'lista_mesas',\n 'valor' => '1,2,3,4,5,6,7,8',\n ]);\n DB::table('configs')->insert([\n 'descricao' => 'Limite de Comandas na Cozinha',\n 'chave' => 'limite_comandas',\n 'valor' => '4',\n ]);\n DB::table('configs')->insert([\n 'descricao' => 'Tempo de Atualização Tela da Cozinha (segundos)',\n 'chave' => 'tempoat_cozinha',\n 'valor' => '5',\n ]);\n DB::table('configs')->insert([\n 'descricao' => 'Tamanho da fonte Comandas da Cozinha',\n 'chave' => 'tamanho_fonte_cozinha',\n 'valor' => '18px',\n ]);\n }", "title": "" }, { "docid": "b1b880dada481d221c506aed32f62775", "score": "0.5104762", "text": "abstract protected function _getConfig();", "title": "" }, { "docid": "d08b1a832debbb27fc74a5d0d119fdf3", "score": "0.509805", "text": "public function run()\n {\n DB::table('configs')->insert([\n ['id' => 1,'title' => '网站名称','type' => 'text','name' => 'WEB_SITE_NAME','group_name' => '基本','value' => 'QuarkCMS','remark' => '','status' => 1],\n ['id' => 2,'title' => '关键字','type' => 'text','name' => 'WEB_SITE_KEYWORDS','group_name' => '基本','value' => 'QuarkCMS','remark' => '','status' => 1],\n ['id' => 3,'title' => '描述','type' => 'textarea','name' => 'WEB_SITE_DESCRIPTION','group_name' => '基本','value' => 'QuarkCMS','remark' => '','status' => 1],\n ['id' => 4,'title' => 'Logo','type' => 'picture','name' => 'WEB_SITE_LOGO','group_name' => '基本','value' => '','remark' => '','status' => 1],\n ['id' => 5,'title' => '统计代码','type' => 'textarea','name' => 'WEB_SITE_SCRIPT','group_name' => '基本','value' => '','remark' => '','status' => 1],\n ['id' => 6,'title' => '网站版权','type' => 'text','name' => 'WEB_SITE_COPYRIGHT','group_name' => '基本','value' => '© Company 2018','remark' => '','status' => 1],\n ['id' => 7,'title' => '开启SSL','type' => 'switch','name' => 'SSL_OPEN','group_name' => '基本','value' => '0','remark' => '','status' => 1],\n ['id' => 8,'title' => '开启网站','type' => 'switch','name' => 'WEB_SITE_OPEN','group_name' => '基本','value' => '1','remark' => '','status' => 1],\n\n ['id' => 9,'title' => '服务器地址','type' => 'text','name' => 'EMAIL_HOST','group_name' => '邮件','value' => '','remark' => '','status' => 1],\n ['id' => 10,'title' => '服务器端口','type' => 'text','name' => 'EMAIL_PORT','group_name' => '邮件','value' => '','remark' => '','status' => 1],\n ['id' => 11,'title' => '发件人邮箱','type' => 'text','name' => 'EMAIL_USERNAME','group_name' => '邮件','value' => '','remark' => '','status' => 1],\n ['id' => 12,'title' => '发件人密码','type' => 'text','name' => 'EMAIL_PASSWORD','group_name' => '邮件','value' => '','remark' => '','status' => 1],\n\n ['id' => 13,'title' => 'AppKey','type' => 'text','name' => 'ALIDAYU_APP_KEY','group_name' => '阿里云通信','value' => '','remark' => '','status' => 1],\n ['id' => 14,'title' => 'AppSecret','type' => 'text','name' => 'ALIDAYU_APP_SECRET','group_name' => '阿里云通信','value' => '','remark' => '','status' => 1],\n ['id' => 15,'title' => '签名','type' => 'text','name' => 'ALIDAYU_SIGNNAME','group_name' => '阿里云通信','value' => '','remark' => '','status' => 1],\n ['id' => 16,'title' => '模板代码','type' => 'text','name' => 'ALIDAYU_TEMPLATE_CODE','group_name' => '阿里云通信','value' => '','remark' => '','status' => 1],\n\n ['id' => 17,'title' => 'KeyID','type' => 'text','name' => 'OSS_ACCESS_KEY_ID','group_name' => '阿里云存储','value' => '','remark' => '你的AccessKeyID','status' => 1],\n ['id' => 18,'title' => 'KeySecret','type' => 'text','name' => 'OSS_ACCESS_KEY_SECRET','group_name' => '阿里云存储','value' => '','remark' => '你的AccessKeySecret','status' => 1],\n ['id' => 19,'title' => 'EndPoint','type' => 'text','name' => 'OSS_ENDPOINT','group_name' => '阿里云存储','value' => '','remark' => '地域节点','status' => 1],\n ['id' => 20,'title' => 'Bucket域名','type' => 'text','name' => 'OSS_BUCKET','group_name' => '阿里云存储','value' => '','remark' => '','status' => 1],\n ['id' => 21,'title' => '自定义域名','type' => 'text','name' => 'OSS_MYDOMAIN','group_name' => '阿里云存储','value' => '','remark' => '例如:oss.web.com','status' => 1],\n ['id' => 22,'title' => '开启云存储','type' => 'switch','name' => 'OSS_OPEN','group_name' => '阿里云存储','value' => '0','remark' => '','status' => 1],\n\n ['id' => 23,'title' => '用户ID','type' => 'text','name' => 'SIOO_UID','group_name' => '希奥短信','value' => '','remark' => '','status' => 1],\n ['id' => 25,'title' => '用户密码','type' => 'text','name' => 'SIOO_PASSWORD','group_name' => '希奥短信','value' => '','remark' => '','status' => 1],\n\n ['id' => 26,'title' => '开发者ID','type' => 'text','name' => 'WECHAT_PAY_APP_ID','group_name' => '微信支付','value' => '','remark' => 'AppID(JSAPI支付授权目录,例如:http://www.web.com/wechat/wechat/)','status' => 1],\n ['id' => 27,'title' => '商户号','type' => 'text','name' => 'WECHAT_PAY_MERCHANTID','group_name' => '微信支付','value' => '','remark' => '商户平台(商户号)','status' => 1],\n ['id' => 28,'title' => 'API密钥','type' => 'text','name' => 'WECHAT_PAY_KEY','group_name' => '微信支付','value' => '','remark' => '商户平台(API密钥)','status' => 1],\n ['id' => 29,'title' => '商户证书','type' => 'file','name' => 'WECHAT_PAY_APICLIENT_CERT','group_name' => '微信支付','value' => '','remark' => 'apiclient_cert.pem','status' => 1],\n ['id' => 30,'title' => '证书密钥','type' => 'file','name' => 'WECHAT_PAY_APICLIENT_KEY','group_name' => '微信支付','value' => '','remark' => 'apiclient_key.pem','status' => 1],\n\n ['id' => 31,'title' => '开发者ID','type' => 'text','name' => 'WECHAT_APP_PAY_APP_ID','group_name' => '微信APP支付','value' => '','remark' => 'AppID(需要在开放平台申请)','status' => 1],\n ['id' => 32,'title' => '商户号','type' => 'text','name' => 'WECHAT_APP_PAY_MERCHANTID','group_name' => '微信APP支付','value' => '','remark' => '商户平台(商户号)','status' => 1],\n ['id' => 33,'title' => 'API密钥','type' => 'text','name' => 'WECHAT_APP_PAY_KEY','group_name' => '微信APP支付','value' => '','remark' => '商户平台(API密钥)','status' => 1],\n ['id' => 34,'title' => '商户证书','type' => 'file','name' => 'WECHAT_APP_PAY_APICLIENT_CERT','group_name' => '微信APP支付','value' => '','remark' => 'apiclient_cert.pem','status' => 1],\n ['id' => 35,'title' => '证书密钥','type' => 'file','name' => 'WECHAT_APP_PAY_APICLIENT_KEY','group_name' => '微信APP支付','value' => '','remark' => 'apiclient_key.pem','status' => 1],\n\n ['id' => 36,'title' => '签名类型','type' => 'text','name' => 'ALIPAY_SIGN_TYPE','group_name' => '支付宝','value' => 'RSA2','remark' => '','status' => 1],\n ['id' => 37,'title' => '应用ID','type' => 'text','name' => 'ALIPAY_APP_ID','group_name' => '支付宝','value' => '','remark' => '','status' => 1],\n ['id' => 38,'title' => '商户私钥','type' => 'textarea','name' => 'ALIPAY_PRIVATE_KEY','group_name' => '支付宝','value' => '','remark' => '','status' => 1],\n ['id' => 39,'title' => '支付宝公钥','type' => 'textarea','name' => 'ALIPAY_PUBLIC_KEY','group_name' => '支付宝','value' => '','remark' => '','status' => 1],\n\n ['id' => 40,'title' => '开发者ID','type' => 'text','name' => 'WECHAT_DYH_APPID','group_name' => '微信订阅号','value' => '','remark' => 'AppID','status' => 1],\n ['id' => 41,'title' => '开发者密码','type' => 'text','name' => 'WECHAT_DYH_APPSECRET','group_name' => '微信订阅号','value' => '','remark' => 'AppSecret','status' => 1],\n ['id' => 42,'title' => '令牌','type' => 'text','name' => 'WECHAT_DYH_TOKEN','group_name' => '微信订阅号','value' => '','remark' => 'Token(服务器地址:https://website.com/wechat/server/token?type=dyh)','status' => 1],\n ['id' => 43,'title' => '消息密钥','type' => 'textarea','name' => 'WECHAT_DYH_ENCODINGAESKEY','group_name' => '微信订阅号','value' => '','remark' => 'EncodingAESKey','status' => 1],\n\n ['id' => 44,'title' => '开发者ID','type' => 'text','name' => 'WECHAT_FWH_APPID','group_name' => '微信服务号','value' => '','remark' => 'AppID','status' => 1],\n ['id' => 45,'title' => '开发者密码','type' => 'text','name' => 'WECHAT_FWH_APPSECRET','group_name' => '微信服务号','value' => '','remark' => 'AppSecret','status' => 1],\n ['id' => 46,'title' => '令牌','type' => 'text','name' => 'WECHAT_FWH_TOKEN','group_name' => '微信服务号','value' => '','remark' => 'Token(服务器地址:https://website.com/wechat/server/token?type=fwh)','status' => 1],\n ['id' => 47,'title' => '消息密钥','type' => 'textarea','name' => 'WECHAT_FWH_ENCODINGAESKEY','group_name' => '微信服务号','value' => '','remark' => 'EncodingAESKey','status' => 1],\n\n ['id' => 48,'title' => '开发者ID','type' => 'text','name' => 'WECHAT_MP_APPID','group_name' => '微信小程序','value' => '','remark' => 'AppID','status' => 1],\n ['id' => 49,'title' => '开发者密码','type' => 'text','name' => 'WECHAT_MP_APPSECRET','group_name' => '微信小程序','value' => '','remark' => 'AppSecret','status' => 1],\n\n ['id' => 50,'title' => '开发者模式','type' => 'switch','name' => 'APP_DEBUG','group_name' => '基本','value' => '1','remark' => '','status' => 1],\n ]);\n }", "title": "" }, { "docid": "7e964fddda33b7b8e5feaace86bbc50f", "score": "0.50959456", "text": "public function run()\n {\n DB::table('Configurations')->insert([\n 'tax_rate' => 21,\n 'tax_inclusion' => true,\n 'global_discount' => 3,\n ]);\n }", "title": "" }, { "docid": "bd69da5cd61cd66036eb320c9e09c595", "score": "0.5090805", "text": "public function getConfigurationFields()\n {\n $fields = array();\n\n $fields[] = array(\n \"name\" => \"GDriveEnabled\",\n \"type\" => \"checkbox\",\n \"label\" => gettext(\"Enable\"),\n \"value\" => null\n );\n $fields[] = array(\n \"name\" => \"GDriveEmail\",\n \"type\" => \"text\",\n \"label\" => gettext(\"Email Address\"),\n \"help\" => gettext(\"Client-ID in the Google cloud console\"),\n \"value\" => null\n );\n $fields[] = array(\n \"name\" => \"GDriveP12key\",\n \"type\" => \"file\",\n \"label\" => gettext(\"P12 key\"),\n \"help\" => sprintf(\n gettext('You need a private key in p12 format to use Google Drive, ' .\n 'instructions on how to acquire one can be found %shere%s.'),\n '<a href=\"https://docs.opnsense.org/manual/how-tos/cloud_backup.html\" target=\"_blank\">',\n '</a>'\n ),\n \"value\" => null\n );\n $fields[] = array(\n \"name\" => \"GDriveFolderID\",\n \"type\" => \"text\",\n \"label\" => gettext(\"Folder ID\"),\n \"value\" => null\n );\n $fields[] = array(\n \"name\" => \"GDrivePrefixHostname\",\n \"type\" => \"checkbox\",\n \"label\" => gettext(\"Prefix hostname to backupfile\"),\n \"help\" => gettext(\"Normally the config xml will be written as config-stamp.xml, with this option set \" .\n \"the filename will use the systems host and domain name.\"),\n \"value\" => null\n );\n $fields[] = array(\n \"name\" => \"GDriveBackupCount\",\n \"type\" => \"text\",\n \"label\" => gettext(\"Backup Count\"),\n \"value\" => 60\n );\n $fields[] = array(\n \"name\" => \"GDrivePassword\",\n \"type\" => \"password\",\n \"label\" => gettext(\"Password\"),\n \"value\" => null\n );\n $fields[] = array(\n \"name\" => \"GDrivePasswordConfirm\",\n \"type\" => \"password\",\n \"label\" => gettext(\"Confirm\"),\n \"value\" => null\n );\n $cnf = Config::getInstance();\n if ($cnf->isValid()) {\n $config = $cnf->object();\n foreach ($fields as &$field) {\n $fieldname = $field['name'];\n if (isset($config->system->remotebackup->$fieldname)) {\n $field['value'] = (string)$config->system->remotebackup->$fieldname;\n } elseif (\n $fieldname == \"GDrivePasswordConfirm\" &&\n isset($config->system->remotebackup->GDrivePassword)\n ) {\n $field['value'] = (string)$config->system->remotebackup->GDrivePassword;\n }\n }\n }\n\n return $fields;\n }", "title": "" }, { "docid": "adaa347bbcb663bb3047bca6d77e767e", "score": "0.5085975", "text": "protected function db_config() {\n\treturn new config('mysql', 'aw_universe');\n}", "title": "" }, { "docid": "7fa680e427d2ba45e4ec329a94e5d0ee", "score": "0.50837445", "text": "protected function setupData()\n\t{\n\t\t$this->data = new OLPBlackbox_Data();\n\n\t\t$keys = $this->data->getKeys();\n\t\t$bb_data = $this->config_data->data;\n\n\t\t// Check for all of the valid keys and see\n\t\t// if we already have them in our data.\n\t\tforeach ($keys as $key)\n\t\t{\n\t\t\tif (isset($bb_data[$key]))\n\t\t\t{\n\t\t\t\t$this->data->$key = $bb_data[$key];\n\t\t\t}\n\n\t\t\t// If we say we don't have an account, set the account_type to NONE\n\t\t\tif (strcasecmp($key, 'bank_account_type') == 0 && isset($bb_data['dep_account'])\n\t\t\t\t&& strcasecmp($bb_data['dep_account'], 'NO_ACCOUNT') == 0)\n\t\t\t{\n\t\t\t\t$this->data->$key = 'NONE';\n\t\t\t}\n\n\t\t\t// Whenever we have bbx, we almost always have a direct deposit answer\n\t\t\tif (strcasecmp($key, 'income_direct_deposit') == 0\n\t\t\t\t&& ((isset($bb_data[$key]) && strcasecmp($bb_data[$key], '') == 0)\n\t\t\t\t|| !isset($bb_data[$key])))\n\t\t\t{\n\t\t\t\t$this->data->$key = 'NONE';\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * The income and direct deposit values, when running qualify in ONLINE_CONFIRMATION\n\t\t\t * mode, will exist in the CS array in the session.\n\t\t\t */\n\t\t\tif (strcasecmp($key, 'income_monthly_net') == 0\n\t\t\t\t&& !isset($this->data->$key)\n\t\t\t\t&& isset($_SESSION['cs']['income_monthly']))\n\t\t\t{\n\t\t\t\t$this->data->$key = $_SESSION['cs']['income_monthly'];\n\t\t\t}\n\n\t\t\tif (strcasecmp($key, 'income_direct_deposit') == 0\n\t\t\t\t&& !isset($this->data->$key)\n\t\t\t\t&& isset($_SESSION['cs']['income_direct_deposit']))\n\t\t\t{\n\t\t\t\t$this->data->$key = $_SESSION['cs']['income_direct_deposit'];\n\t\t\t}\n\n\t\t\tif (strcasecmp($key, 'income_frequency') == 0\n\t\t\t\t&& !isset($this->data->$key)\n\t\t\t\t&& isset($_SESSION['cs']['paydate']['frequency']))\n\t\t\t{\n\t\t\t\t$this->data->$key = $_SESSION['cs']['paydate']['frequency'];\n\t\t\t}\n\n\t\t\t// loan_amount_desired isn't required, so if its empty it will cause\n\t\t\t// issues with the min_loan_amount_requested rule, just unset it from data.\n\t\t\tif (strcasecmp($key, 'loan_amount_desired') == 0\n\t\t\t\t&& empty($bb_data[$key]))\n\t\t\t{\n\t\t\t\t$this->data->$key = NULL;\n\t\t\t}\n\t\t}\n\n\t\tOLP_Data_Normalizer::deNormalize($this->data);\n\n\t\t$this->data->track_key = $this->config->track_key;\n\n\t\tif (is_numeric($_SESSION['react']['transaction_id']))\n\t\t{\n\t\t\t$this->data->react_app_id = $_SESSION['react']['transaction_id'];\n\t\t}\n\n\t\t$this->data->application_id = $this->config_data->application_id;\n\t\t$this->data->session_id = session_id();\n\n\t\t// We need to pass in all the permutations for a the bank account\n\t\tif (!empty($bb_data['bank_account']))\n\t\t{\n\t\t\t$this->data->permutated_bank_account_encrypted = $this->permutateAccount($bb_data['bank_account'], TRUE);\n\t\t\t$this->data->permutated_bank_account = $this->permutateAccount($bb_data['bank_account']);\n\t\t}\n\n\t\t// Flatten out the paydate model\n\t\tif (!empty($bb_data['paydate_model']))\n\t\t{\n\t\t\tforeach ($bb_data['paydate_model'] as $key => $value)\n\t\t\t{\n\t\t\t\tif (in_array($key, $keys))\n\t\t\t\t{\n\t\t\t\t\t$this->data->$key = $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//****\n\t\t// Adding these keys manually because the\n\t\t// it is not available in the bb_data array\n\t\t//****\n\t\t$this->data->promo_id = $this->config->promo_id;\n\t\t$this->data->site_name = $this->config->site_name;\n\t\t$this->data->promo_sub_code = $this->config->promo_sub_code;\n\t\tif (empty($this->config->promo_sub_code))\n\t\t{\n\t\t\t$this->data->promo_and_sub_code = $this->config->promo_id;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->data->promo_and_sub_code = $this->config->promo_id . '-' . $this->config->promo_sub_code;\n\t\t}\n\n\t\tif (!empty($_SESSION['data']['fund_amount']))\n\t\t{\n\t\t\t$this->data->loan_amount_desired = $_SESSION['data']['fund_amount'];\n\t\t}\n\n\t\t// Adding card loan from session for non-CFE companies\n\t\t$this->data->card_loan =\n\t\t\t($_SESSION['data']['loan_type'] == 'card' || $_SESSION['cs']['loan_type'] == 'card');\n\n\t\t$this->data->test_app = $this->config->app_flags->flagExists(OLP_ApplicationFlag::TEST_APP);\n\t}", "title": "" } ]
5a382fef2b893d59c1e853a261215b0a
Prevents to clone the instance.
[ { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.0", "text": "private function __clone() {}", "title": "" } ]
[ { "docid": "80beba9f973f36f9c888f5e06fbc2d81", "score": "0.77737844", "text": "public final function __clone() {\n trigger_error('Clone is not allowed for ' . __CLASS__, E_USER_ERROR);\n }", "title": "" }, { "docid": "9faf737bfb6fd217571e0d408797de9d", "score": "0.77250403", "text": "public function __clone() {\n trigger_error('Clone is not allowed.', E_USER_ERROR);\n }", "title": "" }, { "docid": "d5a84a4dda5bbab80044a1cba4268030", "score": "0.77019215", "text": "public function __clone() {\n trigger_error('Clone is not allowed.', E_USER_ERROR);\n }", "title": "" }, { "docid": "d5a84a4dda5bbab80044a1cba4268030", "score": "0.77019215", "text": "public function __clone() {\n trigger_error('Clone is not allowed.', E_USER_ERROR);\n }", "title": "" }, { "docid": "d7940bb9714b3323dc9468b90147b630", "score": "0.7690457", "text": "public function __clone() {\n trigger_error('La clonación de este objeto no está permitida', E_USER_ERROR);\n }", "title": "" }, { "docid": "94f5dc263d153aa4a24a4d57f8aa4cf1", "score": "0.768856", "text": "private function __clone() {\n // a copy of the object and defeat singletone responsibility\n }", "title": "" }, { "docid": "19f9ce3366de8f1ccbb026eb1d029ff7", "score": "0.7677611", "text": "public function __clone()\n {\n // Do nothing\n }", "title": "" }, { "docid": "1e4428faed9f2f20a4f5d000e1e92031", "score": "0.7669904", "text": "public function __clone()\n\t {\n\t trigger_error('La clonación de este objeto no está permitida', E_USER_ERROR);\n\t }", "title": "" }, { "docid": "63f1c2814265f9308b40cc8a8a8ed60d", "score": "0.7661735", "text": "public function __clone()\n {\n trigger_error(\"Clonando \" . get_class($this).\" no esta permitido: \",E_USER_ERROR);\n }", "title": "" }, { "docid": "5a4e0bd1bea50e1258546435d2da296e", "score": "0.7659734", "text": "public function __clone()\n {\n trigger_error('Clone is not allowed.', E_USER_ERROR);\n }", "title": "" }, { "docid": "5a4e0bd1bea50e1258546435d2da296e", "score": "0.7659734", "text": "public function __clone()\n {\n trigger_error('Clone is not allowed.', E_USER_ERROR);\n }", "title": "" }, { "docid": "5b581a0b4943d883fd8390d90c5466d5", "score": "0.76501805", "text": "protected function __clone() { /** Me not like clones! Me smash clones! */ }", "title": "" }, { "docid": "4271d2abafacf22d1d5e3f32316dfab0", "score": "0.763966", "text": "public function __clone() {\n\t\t// Cloning instances of the class is forbidden\n\t\t_doing_it_wrong( __FUNCTION__, esc_html__( 'Something went wrong.', 'elementor' ), '1.0.0' );\n\t}", "title": "" }, { "docid": "cfe928bf8c2c221e417db0663c27689c", "score": "0.76354057", "text": "public function __clone() {\r\n trigger_error('Clone is not allowed.', E_USER_ERROR);\r\n }", "title": "" }, { "docid": "c82ea3939dbea7b97cc2f80026708b55", "score": "0.76270664", "text": "public function __clone() \n {\n trigger_error('Clone is not allowed.', E_USER_ERROR);\n }", "title": "" }, { "docid": "3027cf3b80de92ca96c02a514e237547", "score": "0.76154035", "text": "public function __clone()\r\n {\r\n trigger_error('Clone is not allowed.', E_USER_ERROR);\r\n }", "title": "" }, { "docid": "1e86644e982868d2b25f049d6e03faee", "score": "0.761243", "text": "protected function __clone()\n {\n // Nothing here.\n }", "title": "" }, { "docid": "6e4a75d81a698d685bc0033e7abcfdee", "score": "0.7610889", "text": "private function __clone(){\n // a copy of the object and defeat singletone responsibility\n }", "title": "" }, { "docid": "822eb4b71400ca0b625e2ac50b92fd26", "score": "0.7573252", "text": "public function __clone() {\n\t\t\ttrigger_error('Clone is not allowed.', E_USER_ERROR);\n }", "title": "" }, { "docid": "d58294df950d75b206ef26040791574a", "score": "0.757203", "text": "public final function __clone() {\n \n trigger_error('Clone is not allowed for '.get_class($this).' (Singleton)', E_USER_ERROR);\n \n }", "title": "" }, { "docid": "2ccd4b57c1e31e757fc3a01622a02644", "score": "0.7557034", "text": "public function __clone() {\n\t\t// Cloning instances of the class is forbidden.\n\t\t_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin&#8217; huh?', 'optimole-wp' ), '1.0.0' );\n\t}", "title": "" }, { "docid": "45da254caec24204c8c85ee183393e41", "score": "0.754094", "text": "public function __clone()\n {\n trigger_error('Clone is not allow!', E_USER_ERROR);\n }", "title": "" }, { "docid": "3c9f5e53b9f60659bb84e39548830ee8", "score": "0.7531644", "text": "public final function __clone() {\n\t\ttrigger_error('Clone is not allowed for '.get_class($this).' (Singleton)', E_USER_ERROR);\n\t}", "title": "" }, { "docid": "8afa858c85435d7413d0e63b51504673", "score": "0.7511865", "text": "public function __clone() {\n\t\ttrigger_error('Cloning is not allowed.', LH_TRIGGER_UNEXPECTED);\n\t}", "title": "" }, { "docid": "00b8358591f37049121b672836ecd3ad", "score": "0.7493905", "text": "final private function __clone()\n\t{\n\t\ttrigger_error('Clone is not allowed.', E_USER_ERROR);\n\t}", "title": "" }, { "docid": "6f0f5d72283a231e68300387ddd69e16", "score": "0.74928725", "text": "protected function __clone() {\n\t\t// Cannot be cloned!\n\t\ttrigger_error( __CLASS__.' may not be cloned', E_USER_ERROR );\n\t}", "title": "" }, { "docid": "966cf841337b40fcae175e9efd2389f2", "score": "0.7484409", "text": "final public function __clone() {\n\t\t\tthrow new Exception('Class cloning disabled.');\n\t\t}", "title": "" }, { "docid": "a0633b9c6e029f1413c621db7444880a", "score": "0.74823964", "text": "public function __clone()\n {\n return false;\n }", "title": "" }, { "docid": "902fff7f4930aaa225c868b843b44433", "score": "0.7474871", "text": "protected function __clone() {}", "title": "" }, { "docid": "902fff7f4930aaa225c868b843b44433", "score": "0.7474871", "text": "protected function __clone() {}", "title": "" }, { "docid": "902fff7f4930aaa225c868b843b44433", "score": "0.7474871", "text": "protected function __clone() {}", "title": "" }, { "docid": "902fff7f4930aaa225c868b843b44433", "score": "0.7474871", "text": "protected function __clone() {}", "title": "" }, { "docid": "3624693725712e2a9d582acd987adcce", "score": "0.7473919", "text": "final private function __clone() {\n\t\t// Do nothing\n\t\t//TODO: Possibly throw an exception here..\n\t}", "title": "" }, { "docid": "b787c3556f30c9291a129e65a9e553e8", "score": "0.74727875", "text": "public function __clone() {\n\t\t// Cloning instances of the class is forbidden.\n\t\t_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'wampum-protected-media' ), '1.0' );\n\t}", "title": "" }, { "docid": "305e30096d4ea216bf079fe117a6bcd5", "score": "0.7472394", "text": "final public function __clone()\n {\n // Do nothing.\n }", "title": "" }, { "docid": "2f02bdaa64091aef811771a88703a34e", "score": "0.7466934", "text": "final public function __clone()\n\t\t{\n\t\t trigger_error(\"Le clonage n'est pas autorisé.\", E_USER_ERROR);\n\t\t}", "title": "" }, { "docid": "740ec90f23bbdc98428329cc81252872", "score": "0.74596536", "text": "protected function __clone() { }", "title": "" }, { "docid": "740ec90f23bbdc98428329cc81252872", "score": "0.74596536", "text": "protected function __clone() { }", "title": "" }, { "docid": "740ec90f23bbdc98428329cc81252872", "score": "0.74596536", "text": "protected function __clone() { }", "title": "" }, { "docid": "6650d5e656eef1147570d879baaaba04", "score": "0.74372673", "text": "public function __clone(){\n trigger_error('La clonación no es permitida!.', E_USER_ERROR);\n }", "title": "" }, { "docid": "bfdb12f81d73c500900c443247bc5cdb", "score": "0.74291235", "text": "protected function __clone() {\n }", "title": "" }, { "docid": "bfdb12f81d73c500900c443247bc5cdb", "score": "0.74291235", "text": "protected function __clone() {\n }", "title": "" }, { "docid": "bfa1e2f0e4d9fc857512f8aa1e80a382", "score": "0.7429001", "text": "private function __clone(){\n // Empty due to singleton pattern.\n }", "title": "" }, { "docid": "bfa1e2f0e4d9fc857512f8aa1e80a382", "score": "0.7429001", "text": "private function __clone(){\n // Empty due to singleton pattern.\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.7425807", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.7425807", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.7425807", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.7425807", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.7425807", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.7425807", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.7425807", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.7425807", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.7425807", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.7425807", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "999a454d84e3f2b08a3242cddf0fd1f4", "score": "0.74243706", "text": "public function __clone() {\n\t\t// Cloning instances of the class is forbidden\n\t\t_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'wp-fusion' ), '1.6' );\n\t}", "title": "" }, { "docid": "9dba8c791cdb068cf7c86da739f73546", "score": "0.74184835", "text": "protected function __clone(){}", "title": "" }, { "docid": "9dba8c791cdb068cf7c86da739f73546", "score": "0.74184835", "text": "protected function __clone(){}", "title": "" }, { "docid": "80c87b243bb44746cf30800d89cf975b", "score": "0.74176687", "text": "public function __clone()\n {\n $this->invalidateCache();\n }", "title": "" }, { "docid": "d1970dcf2a0271a1a87691dc61743c5c", "score": "0.7414767", "text": "protected function __clone()\r\n {\r\n }", "title": "" }, { "docid": "0f170626dc6a15bfb4b19126c79f653f", "score": "0.7413907", "text": "protected function __clone()\n {}", "title": "" }, { "docid": "0f170626dc6a15bfb4b19126c79f653f", "score": "0.7413907", "text": "protected function __clone()\n {}", "title": "" }, { "docid": "27c6a60cbde929561b52006e81a2f85c", "score": "0.7408057", "text": "public function __clone() {\n\t\t// Cloning instances of the class is forbidden.\n\t\t_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'iheart-plugin' ), '1.0' );\n\t}", "title": "" }, { "docid": "371b7280bf4feb279aeac8292d7c6af4", "score": "0.7397712", "text": "protected function __clone()\n {\n\n }", "title": "" }, { "docid": "2e44d750c43fa5ab7b5427ca29d6180c", "score": "0.7390468", "text": "public function __clone( )\n\t{\n\t\ttrigger_error('Clone is not allowed.', E_USER_ERROR);\n\t}", "title": "" }, { "docid": "f97d1f272f661004833357cd6da50ef0", "score": "0.7384167", "text": "public function __clone() {\n trigger_error(\"Cannot clone a singleton.\", E_USER_ERROR);\n }", "title": "" }, { "docid": "f7b3223b0e1aebfe019f79efd3b80e2c", "score": "0.73781997", "text": "protected function __clone() {\n\n }", "title": "" }, { "docid": "016e6561ef0fec86f833f9147c7b79e6", "score": "0.7376733", "text": "protected final function __clone(){}", "title": "" }, { "docid": "354ce1061cfced39ec668d815c80215a", "score": "0.73571205", "text": "private function __clone() {\n \n }", "title": "" }, { "docid": "354ce1061cfced39ec668d815c80215a", "score": "0.73571205", "text": "private function __clone() {\n \n }", "title": "" }, { "docid": "354ce1061cfced39ec668d815c80215a", "score": "0.73571205", "text": "private function __clone() {\n \n }", "title": "" }, { "docid": "354ce1061cfced39ec668d815c80215a", "score": "0.73571205", "text": "private function __clone() {\n \n }", "title": "" }, { "docid": "354ce1061cfced39ec668d815c80215a", "score": "0.73571205", "text": "private function __clone() {\n \n }", "title": "" }, { "docid": "98258a5f0d89dbaf12d79d6f0a78f186", "score": "0.73484063", "text": "public function __clone() {\r\n\t\t\t_doing_it_wrong( __FUNCTION__, __( 'Cloning this class could cause catastrophic disasters!', 'be-table-ship' ), '4.0' );\r\n\t\t}", "title": "" }, { "docid": "b8db3b7acf1217a68f1e4ed37e860e81", "score": "0.7342385", "text": "private function __clone()\n {\n }", "title": "" }, { "docid": "28d2ae020de56599fd3c3f3dfbb04e3e", "score": "0.73397374", "text": "protected final function __clone() {\n\n }", "title": "" }, { "docid": "9c5b00aeab4e89387eea245d27c44450", "score": "0.7329837", "text": "public function __clone() {\n\t\ttrigger_error('Clonage non autorise.' , E_USER_ERROR);\n\t}", "title": "" }, { "docid": "2a05682a083d970a35a3e936e0bbed37", "score": "0.7308836", "text": "public function __clone() {}", "title": "" }, { "docid": "2a05682a083d970a35a3e936e0bbed37", "score": "0.7308836", "text": "public function __clone() {}", "title": "" }, { "docid": "2a05682a083d970a35a3e936e0bbed37", "score": "0.7308836", "text": "public function __clone() {}", "title": "" }, { "docid": "2a537df98d51bfb8229ef2607069aa2d", "score": "0.7308072", "text": "public function __clone() { }", "title": "" }, { "docid": "02e915aaaeec0d66a0409a340b1bbad9", "score": "0.7305601", "text": "public function __clone() {\n \n }", "title": "" }, { "docid": "622366358f8e5a3ab87faf6d36b05c01", "score": "0.73025596", "text": "final private function __clone()\n {\n throw new \\Exception(\"An instance of \".get_called_class().\" cannot be cloned.\");\n }", "title": "" }, { "docid": "f72611492c77455b5ff38603bd82acf9", "score": "0.7301612", "text": "public final function __clone() {\n\t\tthrow new BadMethodCallException(\"Clone is not allowed\");\n\t}", "title": "" }, { "docid": "b5cca6f930705082871b225597bc0aea", "score": "0.7289981", "text": "public function __clone()\n {\n throw new \\Exception('Cloning is disabled!');\n }", "title": "" }, { "docid": "fe2789a90cdbf4cdd267451dfe6e2234", "score": "0.7287822", "text": "public function __clone()\n {\n\n // Cloning instances of the class is forbidden.\n _doing_it_wrong(__FUNCTION__, esc_html__('The WP_GATSBY_ class should not be cloned.', 'wp-gatsby'), '0.0.1');\n\n }", "title": "" }, { "docid": "709f3b10c5f792f81d224cab6c74be7f", "score": "0.7285773", "text": "public function __clone()\n {\n $this->clear();\n }", "title": "" }, { "docid": "709f3b10c5f792f81d224cab6c74be7f", "score": "0.7285773", "text": "public function __clone()\n {\n $this->clear();\n }", "title": "" }, { "docid": "37d29dddb76263e1d7b404df453f0d03", "score": "0.72829646", "text": "private function __clone()\n {\n }", "title": "" }, { "docid": "cc13865cf1ae979274c1e5230341a6a5", "score": "0.7275619", "text": "public function __clone(){}", "title": "" }, { "docid": "7d00785e1365a9212940e85c47609236", "score": "0.7275619", "text": "final private function __clone()\n {\n }", "title": "" }, { "docid": "bd8c1cc5188461759e5f27e4a7cf830a", "score": "0.72674006", "text": "protected function __clone() {\n\n\t}", "title": "" }, { "docid": "2113a915975e2828ea1843fe73249b1b", "score": "0.72641194", "text": "public function __clone()\n {\n }", "title": "" }, { "docid": "2113a915975e2828ea1843fe73249b1b", "score": "0.72641194", "text": "public function __clone()\n {\n }", "title": "" }, { "docid": "e4c148e2c19718be1c02da955cacc1c1", "score": "0.72603124", "text": "final public function __clone()\n {\n //throw new SingletonPatternViolationException('This is a Singleton. Clone is forbidden');\n }", "title": "" }, { "docid": "598a99e8c69e810c6d57727e857ae4a5", "score": "0.7240541", "text": "public function __clone() {\n }", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.72371536", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.72371536", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.72371536", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.72371536", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.72371536", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.72371536", "text": "private function __clone(){}", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "d973590c95698d2afbb0cc15d312f452", "score": "0.0", "text": "public function index(Request $request)\n {\n // $warehouse_id = $request->warehouse_id;\n $vehicles = Vehicle::with(['warehouse', 'vehicleType', 'vehicleDrivers.driver.user', 'expenses' => function ($q) {\n $q->orderBy('id', 'DESC');\n }, 'conditions' => function ($q) {\n $q->orderBy('id', 'DESC');\n }])/*->where('warehouse_id', $warehouse_id)*/->get();\n return response()->json(compact('vehicles'), 200);\n }", "title": "" } ]
[ { "docid": "a2c82e645f33199ca3af4df01daa0da0", "score": "0.73454344", "text": "public function listAction()\n {\n $this->view->headTitle('Book Listing ','PREPEND');\n $this->view->books = $this->bookService->listService();\n }", "title": "" }, { "docid": "2ecb35785c4b9e881de2de7a961178df", "score": "0.7216204", "text": "public function action_list(){\n\t\t$v = View::factory(static::$entity.'/list');\n\t\t$this->template->body = $v;\n\t}", "title": "" }, { "docid": "dad0a13a73bcf8293bb4d9e710796f56", "score": "0.7157767", "text": "public function listAction()\n {\n $this->processList();\n }", "title": "" }, { "docid": "e5d3acc1f5204195de85b93044bfcb61", "score": "0.71494645", "text": "function listAction()\n {\n $pageTitle = 'Golf listings';\n $listLinkStyle = 'current_page';\n $isLoggedIn = $this->isLoggedInFromSession();\n $username = $this->usernameFromSession();\n\n $golfRepository = new GolfRepository();\n $golfs = $golfRepository->getAll();\n\n require_once __DIR__ . '/../templates/list.php';\n }", "title": "" }, { "docid": "bd3a7b4e07a2548dae8d575849df412a", "score": "0.7130363", "text": "public function index() {\n return view('admin.resources.index', [\n 'resources' => Resource::paginate(10)\n ]);\n }", "title": "" }, { "docid": "174c016a6d20963698d0780d8861782d", "score": "0.710266", "text": "function showListPage() {\n\t\t$this->setCacheLevelNone();\n\n\t\t$this->render($this->getTpl('list'));\n\t}", "title": "" }, { "docid": "598d9caa73e88220c1d2180531a736f9", "score": "0.70930976", "text": "public function index()\n {\n $className = $this->modelClass;\n $model = $className::orderby('created_at', 'desc')->paginate(10);\n \n return view('admin.listing')\n ->with('pageTitle', $this->pageTitle)\n ->with('secondTitle', $this->secondTitle)\n ->with('columns', $this->columns)\n ->with('urlName', $this->urlName)\n ->with('model', $model);\n }", "title": "" }, { "docid": "3e6e80d5cb774ecfe48382a53469b26e", "score": "0.70829386", "text": "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getContents();\t\n\t\t$page = (int)($this->_request->getParam('page'));\n\t\tGlobals::doPaging($result, $page, $this->view); \n\t\t\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "title": "" }, { "docid": "4033d77018807de6b615c3ca97da7bef", "score": "0.70523685", "text": "public function index()\n {\n return TodoListResource::collection($this->listRepository->list());\n }", "title": "" }, { "docid": "fbd940db6024ed547d75a84196b6efcc", "score": "0.7010042", "text": "public function index()\n {\n //get shows\n $shows = ShowsModel::paginate(10);\n\n return ShowsResource::collection($shows);\n }", "title": "" }, { "docid": "22e061b6e387c7871a6d54e088305a74", "score": "0.69801855", "text": "public function index()\n {\n return RecipeListResource::collection(Recipe::all());\n }", "title": "" }, { "docid": "937d8c67ef1e241cc6f04440a03a35d5", "score": "0.6966139", "text": "public function listing(){\n return view('interface/listing');\n }", "title": "" }, { "docid": "43a3797d462201f8486a324b4e596f68", "score": "0.6948928", "text": "public function list()\n {\n $flash = '';\n\n if(!empty($_SESSION['flash'])){\n $flash = $_SESSION['flash'];\n $_SESSION['flash'] = '';\n }\n\n # it will be populated\n $data = [];\n\n $bookInstance = new Book();\n $books = $bookInstance->select()->get();\n\n # fill data\n $data['flash'] = $flash;\n $data['books'] = $books;\n $data['loggedUser'] = $this->loggedUser;\n $data['url'] = Request::getUrl();\n\n $this->render('library', $data);\n }", "title": "" }, { "docid": "a74b64d14d05fcd4b8d8543c548d39b6", "score": "0.69425523", "text": "public function listAction() {\n $this->_datatable();\n return $this->render('BackendBundle:FeastStageArtist:list.html.twig');\n }", "title": "" }, { "docid": "161606f4dde01f5513c0d576501b3cb7", "score": "0.6905698", "text": "public function _index()\n\t{\n\t\t_root::getRequest()->setAction('list');\n\t\t$this->_list();\n\t}", "title": "" }, { "docid": "836499ad8af32deefc4b356617470307", "score": "0.6899619", "text": "public function index()\n {\n return view('laramanager::entries.index.index')\n ->with('resource', $this->resource)\n ->with('entries', $this->entriesRepository->getList($this->resource));\n }", "title": "" }, { "docid": "378b941376864b0adca2a47f6d9cbc14", "score": "0.6898765", "text": "public function action_index(){\n\t\t$v = View::factory(static::$entity.'/list');\n\t\t$this->template->body = $v;\n\t}", "title": "" }, { "docid": "a657a499da3c1e94405a12a48a398286", "score": "0.6889014", "text": "public function action_list()\n\t{\n\t\t$recordings = Model_Recording::factory()\n\t\t\t->with('Quotes')\n\t\t\t->find_all();\n\n\t\t// Generate and output the view\n\t\t$content = View::factory('recording/list')\n\t\t\t\t ->set('recordings', $recordings);\n\t\t$template = View::factory('templates/default')\n\t\t\t\t\t->set('title', 'All recordings')\n\t\t\t\t\t->set('content', $content->render());\n\n\t\t$this->response->body($template->render());\n\t}", "title": "" }, { "docid": "b41517724d4cdbc80c63a80b966a7b01", "score": "0.68746614", "text": "public function listAction() {\n\n\t\t}", "title": "" }, { "docid": "e908ab42fc450a9a0594cc9564f4eeb9", "score": "0.68608236", "text": "public function listAction() {\n $this->model->updateStatus();\n Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagecontrol.phtml');\n\n $where = '1 = 1';\n\n $filter = $this->_request->getParam('search');\n $this->view->filter = $filter;\n\n if ($filter == 'active') {\n $where = 'status = 0';\n } else if ($filter == 'disabled') {\n $where = 'status = 2';\n } else if ($filter == 'expired') {\n $where = 'status = 1';\n }\n\n $sort = $this->_request->getParam('sort');\n if (!$sort) {\n $sort = 'description';\n }\n\n if (!isset($this->session_sorting->sort)) {\n $this->session_sorting->sort = 0;\n }\n\n if ($this->session_sorting->sort == 0) {\n $this->session_sorting->sort = 1;\n $data = $this->table->fetchAll($this->table->select()->where($where)->order($sort . ' desc'));\n } else {\n $this->session_sorting->sort = 0;\n $data = $this->table->fetchAll($this->table->select()->where($where)->order($sort . ' asc'));\n }\n\n $paginator = Zend_Paginator::factory($data);\n $paginator->setCurrentPageNumber($this->_getParam('page', 1));\n $paginator->setItemCountPerPage(10);\n\n $this->view->page = $this->_getParam('page');\n $this->view->discounts = $paginator;\n }", "title": "" }, { "docid": "8ef49cf3a3eb21ff0a74662ea3579be6", "score": "0.68547213", "text": "public function index()\n {\n // Get cards\n $cards = Card::orderBy('created_at', 'desc')->paginate(10);\n\n // Return collection of cards as a resource\n return CardResource::collection($cards);\n }", "title": "" }, { "docid": "6e9ab9b623d3bae20d9be7b36335891d", "score": "0.68502206", "text": "public function listAction()\n {\n $this->forward('index');\n }", "title": "" }, { "docid": "d6111f19a7aca7d26ffbe0986ebf3edd", "score": "0.68407434", "text": "public function indexAction()\n {\n $this->listAction();\n }", "title": "" }, { "docid": "88277ff9376f997f91e6b5491575d7bb", "score": "0.6833471", "text": "public function index()\n {\n return ShoppingListResource::collection(ShoppingList::paginate(15));\n }", "title": "" }, { "docid": "546b231c03944da42a8e98b848f51fa9", "score": "0.68256605", "text": "public function list()\n {\n $shelves = Bookshelf::visible();\n\n return $this->apiListingResponse($shelves, [\n 'id', 'name', 'slug', 'description', 'created_at', 'updated_at', 'created_by', 'updated_by', 'owned_by',\n ]);\n }", "title": "" }, { "docid": "755da2e01052312a756038c9d166d9cb", "score": "0.6794544", "text": "public function listAction() {\n $this->view->headTitle($this->view->translate('List of templates'), 'PREPEND');\n $templateModel = new Unisender_Model_UnisenderTemplate();\n $this->view->template_list = $templateModel->getAll();\n }", "title": "" }, { "docid": "d05cc4d736f09bef3c6bdf24844ac8c6", "score": "0.67895305", "text": "public function index()\n\t{\n\t\t$artists = Artist::paginate(100);\n\n\t\treturn $this->respond([\n\t\t\t'data' => $this->artistTransformer->transformCollection($artists->all())\n\t\t]);\n\t}", "title": "" }, { "docid": "89d40e37a12f5ea687a94247a2fdb4da", "score": "0.6786343", "text": "public function actionIndex()\n {\n $this->layout = '@backend/views/layouts/list';\n return $this->render('index', [\n 'dataProvider' => $this->getDataProvider(),\n 'model' => $this->getModelSearch(),\n 'currentView' => $this->getCurrentView(),\n 'availableViews' => $this->getAvailableViews()\n ]);\n }", "title": "" }, { "docid": "1647b90a06fcd39c33c32b33bf9fa133", "score": "0.67860115", "text": "public function index()\n {\n return view('list_wrapper', [\n 'entityType' => 'itemscanner',\n 'datatable' => new ItemScannerDatatable(),\n 'title' => mtrans('itemscanner', 'itemscanner_list'),\n ]);\n }", "title": "" }, { "docid": "487c93a93f48c83d96a649e03fdb104d", "score": "0.6774347", "text": "public function index()\n {\n //\n return DishResource::collection(Dish::orderBy('id', 'asc')->paginate());\n }", "title": "" }, { "docid": "6265f2e35f1c819b84733e2d894fc9f3", "score": "0.6763496", "text": "public function __list()\r\n {\r\n $current = SamsonLocale::current();\r\n\r\n $default = 'ru';\r\n\r\n if (defined('DEFAULT_LOCALE')){\r\n $default = DEFAULT_LOCALE;\r\n }\r\n\r\n // Render all available locales\r\n $html = '';\r\n foreach (SamsonLocale::get() as $locale) {\r\n if ($current != $default) {\r\n $urlText = substr(url()->text,strlen($current)+1);\r\n } else {\r\n $urlText = url()->text;\r\n }\r\n if ($locale == $default) {\r\n $url = 'http://'.$_SERVER['HTTP_HOST'].__SAMSON_BASE__.$urlText;\r\n } else {\r\n $url = 'http://'.$_SERVER['HTTP_HOST'].__SAMSON_BASE__.$locale.'/'.$urlText;\r\n }\r\n\t $localeName = '';\r\n\t if ($this->isLocaleLinkText) {\r\n\t\t $localeName = $this->translate($locale, $current);\r\n\t }\r\n $html .= $this->view('list/item')\r\n ->css(self::CSS_PREFIX)\r\n ->locale($locale == SamsonLocale::DEF && SamsonLocale::DEF == ''? 'def' : $locale)\r\n ->active($locale == $current ? self::CSS_PREFIX.'active':'')\r\n ->url($url)\r\n\t ->name($localeName)\r\n ->output();\r\n }\r\n\r\n // Set locale list view\r\n $this->view('list/index')->locale($current)->css(self::CSS_PREFIX)->items($html);\r\n }", "title": "" }, { "docid": "9574508ae15a68d9552788d66f6069d4", "score": "0.67439693", "text": "public function all()\n\t{\n\t\t$recipes = Recipe::findRecipe(array('recipe_images.is_cover'=>'yes'));\t\n\t\t\n\t\t$this->template->recipes = $recipes;\n\t\t$this->template->display('list.html.php');\n\t}", "title": "" }, { "docid": "e1224469d7f8380d5b96958c49bfc327", "score": "0.67368996", "text": "public function index()\n {\n $offers = Offer::filter()->paginate();\n\n return OfferResource::collection($offers);\n }", "title": "" }, { "docid": "e89b2c9176e1e2ba1660cebc077dc45d", "score": "0.6728091", "text": "public function index()\n {\n $user = $this->userContract->findWith(request()->user()->id, ['profile']);\n $resources = $this->resourceContract->getResourcesOrdered();\n $trashed = $this->resourceContract->getTrashedResourcesOrdered();\n\n return view('backend.resources.index', compact('user', 'resources', 'trashed'));\n }", "title": "" }, { "docid": "2422a439354b2d9d0c8e13222d75b791", "score": "0.67135084", "text": "public function indexAction()\r\n {\r\n \t$this->openApi->getItems();\r\n $this->view->data = $this->openApi->getDataResponse();\r\n }", "title": "" }, { "docid": "f38c30f9e765863f55cf5c7e5b441e0a", "score": "0.6695974", "text": "public function listAction()\n {\n $this->_title($this->__('System'))->_title($this->__('Index Management'));\n\n $this->loadLayout();\n $this->_setActiveMenu('system/index');\n $this->renderLayout();\n }", "title": "" }, { "docid": "c28bf83f5ff7f88cca0b895b2e8d3ae8", "score": "0.669245", "text": "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Reviews list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the reviews.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/reviews/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Reviews::grid() )->datagrid ();\n\t}", "title": "" }, { "docid": "a90256f37c65707c557ad75ce4efde1a", "score": "0.66915387", "text": "public function index()\n {\n return $this->service->getList();\n }", "title": "" }, { "docid": "4cc7c30861d929f90a57a50b59a5a1f5", "score": "0.66879165", "text": "public function listAction(){\n\t\t//Passes values from the Todo Mysql table into the $todos value\n\t\t$todos = $this->getDoctrine()\n\t\t\t\t\t ->getRepository('AppBundle:Todo')\n\t\t\t\t\t ->findAll();\n\t\t//Loading the todo view in here...\n return $this->render('todo/index.html.twig', array(\n\t\t\t'todos' => $todos\n\t\t));\n }", "title": "" }, { "docid": "1a9cb6255c77fe1bff8fb9d77615f930", "score": "0.66870624", "text": "public function list(): Response\n {\n return $this->renderList(\n [],\n ['artist' => 'ASC', 'title' => 'ASC']\n );\n }", "title": "" }, { "docid": "a8ee22092f12cd9a55fa2d36291251f4", "score": "0.6683523", "text": "public function action_list() {\n if (Input::method() != 'GET') { $this->response($this->no_access); return; }\n\n $params = Input::get();\n $user = $this->user_login->user;\n\n try {\n $resp = $this->listStuff($params, $user);\n } catch (Exception $exc) {\n return $this->_error_response($exc->getMessage());\n }\n \n // Set the output\n $data = array('data' => array('offers' => $resp[\"all_offers\"]), 'meta' => $resp[\"meta\"]);\n $this->response($data);\n\t}", "title": "" }, { "docid": "5a18d2c52cb259d958c945d4d6a9ea33", "score": "0.6676733", "text": "public function listAction()\n {\n $task = new Task($this->config);\n $tasks = $task->getAll();\n $amountOfTasks = $task->getAmountTasks();\n \n // load views.\n $this->view('task/list', [\n 'tasks' => $tasks,\n 'amountOfTasks' => $amountOfTasks\n ]);\n }", "title": "" }, { "docid": "fb257c74bec9eb0cfbe648823975e645", "score": "0.6653098", "text": "public function index()\n {\n $requests = ModelsRequests::paginate();\n\n return ResourcesRequests::collection($requests);\n }", "title": "" }, { "docid": "f186543d4e229fe60c320d197652a0ac", "score": "0.6648046", "text": "public function index()\n {\n return BookResource::collection(Book::paginate());\n }", "title": "" }, { "docid": "097ff24f05f0eef21fe921e55bd3b80d", "score": "0.66470236", "text": "public function listAction()\n {\n try {\n $cd = $this->currentFolder();\n return new ViewModel(array(\n 'currentFolder' => $cd,\n 'seperator' => $this->seperator,\n 'entries' => $this->directoryContent($this->getEntity(), $cd)\n ));\n } catch (\\Exception $e) {\n echo Json::encode(array(\n 'error' => $e->getCode()\n ));\n exit();\n }\n }", "title": "" }, { "docid": "59475f9f5ef859f09d1ee48e7e27d0ea", "score": "0.66406596", "text": "public function index()\n {\n return $this->showAll(SpeciesResource::collection(Species::get()));\n }", "title": "" }, { "docid": "3e9e7ace6967f2049a9e3a5287aa7bc1", "score": "0.6639121", "text": "public function index()\n {\n if ($ref = \\Request::get('getRef')) {\n return $this->getRef($ref);\n }\n\n $per_page = \\Request::get('perPage');\n $data = $this->repository->paginate($per_page);\n\n return $this->sendSuccess($data, __('api.success_list', ['name' => $this->name]));\n }", "title": "" }, { "docid": "aa0d5690d16cbfb9dc97e701071da2f2", "score": "0.6637484", "text": "public function listAction() {\n $imageService = $this->container->get(\"dft_foapi.image\");\n return $this->render('dftFoapiBundle:Common:data.json.twig', array(\n \"data\" => $imageService->fetchAll(\n $this->getAuthenticatedUserIdAndSubAccountIds()\n )\n )\n );\n }", "title": "" }, { "docid": "479fb582c4dbcbc65e4bb28c2bb3a697", "score": "0.66345435", "text": "public function list()\n {\n // and this sorting and paging logics must be in separate components\n // but for our case ... ))\n $sortTypes = ['author', 'email', 'done', 'author DESC', 'email DESC', 'done DESC'];\n $sort = input('sort', null);\n if ($sort && in_array($sort, $sortTypes)) {\n $sortSql = \" ORDER BY {$sort} \";\n } else {\n $sortSql = '';\n }\n $offset = (int) input('offset', 0);\n $offsetSql = \" LIMIT {$offset}, \" . static::PER_PAGE;\n $sql = '1 ' . $sortSql . $offsetSql;\n $todos = R::findAll('todo', $sql);\n $total = R::count('todo');\n\n //paging\n $next = false;\n $prev = false;\n\n if ($total > $offset + static::PER_PAGE) {\n $next = $offset + static::PER_PAGE;\n }\n\n if ($offset !== 0) {\n $prev = $offset - static::PER_PAGE;\n }\n\n //sorting\n $sortings = [];\n foreach (['author', 'email', 'done'] as $sortAttribute) {\n if (strpos($sort, $sortAttribute) !== false && $sort === $sortAttribute) {\n $sortings[$sortAttribute] = \"{$sortAttribute} DESC\";\n } else {\n $sortings[$sortAttribute] = $sortAttribute;\n }\n }\n\n return $this->render('list', compact('todos', 'next', 'prev', 'sortings', 'total'));\n }", "title": "" }, { "docid": "317c606a7e54f34736590f60393be790", "score": "0.662934", "text": "function index()\n\t{\n\t\t$this->items();\n\t}", "title": "" }, { "docid": "0ef8e5b1a7ba68c743bcff23cd0cf130", "score": "0.6628069", "text": "public function index()\n {\n return Resource::all();\n }", "title": "" }, { "docid": "fda26526263c4f32a26eb1c3721263e4", "score": "0.6623293", "text": "public function index()\n {\n $listings = $this->listing->latest()->paginate(50);\n\n return view('admin.listings.index', compact('listings'));\n }", "title": "" }, { "docid": "7c0e8a5f42c42d1c4f18968bb494ad0e", "score": "0.6621373", "text": "public function paginatedListAction() {\n return $this->getList();\n }", "title": "" }, { "docid": "0e1a46d9ea752b3e205c54aab701c4fd", "score": "0.6619698", "text": "public function listings() {\r\n $data = $this->model->getData();\r\n $this->template->data = $data;\r\n $this->set('general/list');\r\n }", "title": "" }, { "docid": "3e2ce9e0dce5419c500b0a60774b7605", "score": "0.6616485", "text": "public function index()\n {\n return $this->service->lists();\n }", "title": "" }, { "docid": "bca6e37ce935bd0d2b77093989d408cd", "score": "0.6612557", "text": "public function actionIndex()\n {\n $searchModel = new ListingSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "67562fbc2bb858bc588d4a91237cb673", "score": "0.6603778", "text": "function index() {\r\n\t\t// Getting the whole list\r\n\t\t$itemList = $this->model->find('all');\r\n\r\n\t\t$this->set('itemList', $itemList);\r\n\t}", "title": "" }, { "docid": "8ec8da14e071283716d59393a382ab24", "score": "0.65982807", "text": "public function listAction()\n {\n\t\t$identity = Zend_Auth::getInstance()->getIdentity();\n\t\n\t\t// if identity and user aren't the same identity, add an entry to the identityBoard (menu )\n\t\tif( $identity->id != $this->_user->id ){\n\t\t\tApplication_Model_Ui_Boards_IdentityBoard::getInstance()->addEntry(\n\t\t\t\tAnta_Core::getBase().\"/documents/\".$this->_user->cryptoId,\n\t\t\t\tI18n_Json::get( 'userDocumentList' ).' @ '.$this->_user->username , array( \n\t\t\t\t\t'class' => 'admin entry-selected'\n\t\t\t));\n\t\t\tApplication_Model_Ui_Boards_IdentityBoard::getInstance()->addEntry(\n\t\t\t\tAnta_Core::getBase().\"/gexf/entities/user/\".$this->_user->cryptoId,\n\t\t\t\tI18n_Json::get( 'gexf' ).' @ '.$this->_user->username , array( \n\t\t\t\t\t'class' => 'admin'\n\t\t\t));\n\n\t\t}\n\t\t$this->view->dock = new Application_Model_Ui_Docks_Dock();\n\t\t\n\t\t$this->view->dock->addCraft( new Application_Model_Ui_Crafts_Cargo( 'documents', I18n_Json::get( 'documentsList' ).\": \".$this->_user->username ) );\n\t\t\n\t\t$totalDocuments = Application_Model_DocumentsMapper::getNumberOfDocuments( $this->_user ); \n\t\t\n\t\t// no documents? send directly to upload, with a link, and stop this script\n\t\tif( $totalDocuments == 0 ){\n\t\t\t\n\t\t\t// draw nice upload link \"start uploading file!\" and welcome message as well\n\t\t\t$this->view->dock->documents->setHeader( new Ui_Crafts_Headers_Welcome( $this->_user ) );\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t// remove menu items\n\t\t\tUi_Board::getInstance( \"Documents\", array( 'user' => $this->_user ) )->removeItem(\n\t\t\t\t\"documents.import-tags\", \n\t\t\t\t\"documents.export-tags\",\n\t\t\t\t\"api.reset\"\n\t\t\t);\n\t\t\t\n\t\t\treturn $this->render( 'index');\n\t\t}\n\t\t\n\t\t// start listening to request filter, or default vars here\n\t\t// values and their validators\n\t\tDnst_Filter::start( array(\n\t\t\t\t\"offset\" => 0,\n\t\t\t\t\"limit\" => 100,\n\t\t\t\t\"order\" => array( \"mimetype DESC\" ),\n\t\t\t\t\"tags\"\t => array(),\n\t\t\t\t\"query\" => \"\",\n\t\t\t\t\"date_start\"=>\"\",\n\t\t\t\t\"date_end\" =>\"\"\n\t\t\t), array (\n\t\t\t\t\"order\" => new Dnst_Filter_Validator_Array( array(\n\t\t\t\t\t\"id_document DESC\", \"id_document ASC\",\n\t\t\t\t\t\"title ASC\", \"title DESC\", \"date ASC\", \"date DESC\",\"`ignore` DESC\", \"`ignore` ASC\",\n\t\t\t\t\t\"status ASC\", \"status DESC\",\n\t\t\t\t\t\"language ASC\", \"language DESC\", \"mimetype ASC\", \"mimetype DESC\",\n\t\t\t\t)),\n\t\t\t\t\"offset\" => new Dnst_Filter_Validator_Range( 0, 10000000 ),\n\t\t\t\t\"limit\" => new Dnst_Filter_Validator_Range( 1, 500 ),\n\t\t\t\t\"query\" => new Dnst_Filter_Validator_Pattern( 0, 100 )\n\t\t\t)\n\t\t);\n\t\t\n\t\tif( !Dnst_Filter::isValid() ){\n\t\t\t// if you set the filters properly, then these variables MUST be in place\n\t\t\tAnta_Core::setError(\"uhm..not valid string..\".Dnst_Filter::getErrors() );\n\t\t\treturn $this->render( 'index' );\n\t\t}\n\t\t// print_r( Dnst_Filter::read() );\n\t\t// get all the documents\n\t\t$documents = Application_Model_DocumentsMapper::select(\n\t\t\t$this->_user,\n\t\t\tDnst_Filter::read()\n\t\t);\n\t\t// send some variables to the view\n\t\t$this->view->totalItems = $documents->totalItems;\n\t\t$this->view->loadedItems = count( $documents->results );\n\t\t\n\t\t// query to group documents by month according to number of groups\n\t\t$stmt = Anta_Core::mysqli()->query(\"\n\t\t\tSELECT COUNT(*) as countable, DATE_FORMAT(date,'%d.%m.%Y') as simple_date FROM anta_{$this->_user->username}.`documents` GROUP BY (`simple_date`)\"\n\t\t);\n\t\t$timestamps = array();\n\t\twhile ( $row = $stmt->fetchObject() ){\n\t\t\t$timestamps[] =\tnew Ui_D3_Timeline_Point( \n\t\t\t\t$row->simple_date, \n\t\t\t\tarray( \n\t\t\t\t\t\"y\" => $row->countable,\n\t\t\t\t\t\"title\" => $row->simple_date .\" (\".$row->countable.\")\",\n\t\t\t\t\t\"href\" => $_SERVER['REFERRER_URI'].'?'.Dnst_Filter::setProperty( 'date_start', $row->simple_date )\n\t\t\t\t) \n\t\t\t);\t\n\t\t}\n\t\t\n\t\t// prepare headers\n\t\t$header = new Anta_Ui_Header_Documents();\n\t\t$header->user = $this->_user;\n\t\t$header->loadedItems = count( $documents->results );\n\t\t$header->totalItems = $documents->totalItems;\n\t\t$header->offset = Dnst_Filter::getProperty( \"offset\" );\n\t\t$header->limit = Dnst_Filter::getProperty( \"limit\" );\n\t\t$header->searchQuery = Dnst_Filter::getProperty( \"query\" );\n\t\t$header->setTimeline( new Ui_D3_Timeline( \n\t\t\t$timestamps, \"dd.mm.yy\", \n\t\t\tarray( \"width\"=>832, \"height\"=>40)\n\t\t));\n\t\t\n\t\t$this->view->dock->documents->setHeader( \n\t\t\t$header\n\t\t);\n\t\t\n\t\t\n\t\t\n\t\tforeach (array_keys( $documents->results ) as $k ){\n\t\t\t$this->view->dock->documents->addItem( new Anta_Ui_Item_Document( $documents->results[ $k ] ) );\n\t\t}\n\t\t\n\t\t$this->render( 'index' );\n\t\t\n }", "title": "" }, { "docid": "51ab41ffa64c6b6b7fbb813516203da1", "score": "0.6593938", "text": "public function index()\n {\n return PharmacyResource::collection($this->pharmacyRepoInstance->paginate(self::PER_PAGE, ['id', 'name', 'address']));\n }", "title": "" }, { "docid": "be3ed76ca60da4c3caa2d8528ae5c319", "score": "0.659177", "text": "public function actionIndex()\n {\n if(Yii::$app->user->can('admin')){\n $dataProvider = new ActiveDataProvider([\n 'query' => Resource::find()->where(['size'=>0]),\n ]);\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }\n else{\n $dataProvider = new ActiveDataProvider([\n 'query' => Resource::find(),\n ]);\n return $this->render('list', [\n 'dataProvider' => $dataProvider,\n ]);\n }\n\n\n }", "title": "" }, { "docid": "ccecdc5f92158721af216deee02beaf2", "score": "0.65850216", "text": "public function action_index() \n\t{\n\t\t$this->rest_output(array(\n\t\t\t'GET example!', \n\t\t));\n\t}", "title": "" }, { "docid": "c971fcbed7a0406b3764b8ecdb481920", "score": "0.6572927", "text": "protected function listAction()\r\n {\r\n $contentUid = $this->configurationManager->getContentObject()->data['uid'];\r\n $configuration = $this->configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);\r\n if (!isset($configuration['view']['pluginNamespace'])) {\r\n $configuration['view']['pluginNamespace'] = 'tx_ameosfilemanager_fe_filemanager';\r\n }\r\n\r\n $this->settings['columnsTable'] = explode(',', $this->settings['columnsTable']);\r\n $this->settings['actionDetail'] = explode(',', $this->settings['actionDetail']);\r\n $this->view->assign('settings', $this->settings);\r\n\r\n $args = $this->request->getArguments();\r\n $t = $this->fileRepository->findBySearchCriterias($args, $this->settings['startFolder'], $configuration['view']['pluginNamespace'], $this->settings['recursion']);\r\n $this->view->assign('files', $t);\r\n $this->view->assign('value', $args); \r\n $this->view->assign('content_uid', $contentUid);\r\n\r\n if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest'\r\n && $contentUid == GeneralUtility::_POST('ameos_filemanager_content')) {\r\n header('Content-Type: text/json; charset=utf8;');\r\n echo json_encode(['html' => $this->view->render()]);\r\n die();\r\n }\r\n }", "title": "" }, { "docid": "ef4fec830260d9dfb3f1e7e325eac9e0", "score": "0.6572855", "text": "public function actionList()\n {\n $products = new ActiveDataProvider([\n 'query' => Product::find(),\n 'pagination' => [\n 'pageSize' => 10\n ]\n ]);\n return $this->render('list', ['products' => $products]);\n }", "title": "" }, { "docid": "9500e1733deedb51878d2d909f31751a", "score": "0.65667915", "text": "public function actionList()\r\n {\r\n $objectClassId = $this->_input->filterSingle('object_class_id', XenForo_Input::STRING);\r\n $class = $this->_getClassOrError($objectClassId);\r\n\r\n $objectModel = $this->_getObjectModel();\r\n\r\n $objects = $objectModel->getObjects(array(\r\n 'object_class_id' => $objectClassId\r\n ));\r\n\r\n $viewParams = array(\r\n 'class' => $class,\r\n 'objects' => $objects\r\n );\r\n\r\n return $this->responseView('ThemeHouse_Objects_ViewAdmin_Object_List', 'object_list', $viewParams);\r\n }", "title": "" }, { "docid": "6b6ca26ff623891fbb04a6646a0e894c", "score": "0.6566177", "text": "public function index(Request $request)\n {\n $this->checkRole();\n\n //\tGet all records of the model and set default ordering\n $builder = $this->model('orderBy', $request->orderby ?: ((property_exists($this, 'list_order_by')) ? $this->list_order_by : 'name'), $request->order ?: ((property_exists($this, 'list_order')) ? $this->list_order : 'desc'));\n\n //\tRetrieve the fields which will be used in records table\n $fields = new RenderList($this->getFieldsForList());\n\n // Handle list search\n if ($request->has('s')) {\n $builder->where($this->list_search_on, 'LIKE', '%' . $request->s . '%');\n }\n\n // Handle list filtering\n if ($request->has('filter') && $request->has('set')) {\n $builder->where($request->filter, $request->set);\n }\n\n // Move $builder to $records with default paging of 40 p/p\n $records = $builder->paginate(40);\n\n //\tLoad the view\n return view('crud::templates.index', $this->parseViewData(compact('records', 'fields')));\n }", "title": "" }, { "docid": "22313e01879ad9cf6aefe5b6cf7eaac2", "score": "0.65648544", "text": "public function listeAction()\n {\n // des éléments de contrôle de la pagination pour plus d'informations\n Zend_View_Helper_PaginationControl::setDefaultViewPartial('controls.phtml');\n\n $mapper = new Application_Model_FilmMapper();\n $film = new Application_Model_Film();\n $film = $mapper->obtenirAllFilms();\n\n // Créons un paginateur pour cette requête\n $paginator = Zend_Paginator::factory($film);\n\n // Nous lisons le numéro de page depuis la requête. Si le paramètre n'est pas précisé\n // la valeur 1 sera utilisée par défaut\n $paginator->setCurrentPageNumber($this->_getParam('page', 1));\n\n // Assignons enfin l'objet Paginator à notre vue\n $this->view->paginator = $paginator;\n }", "title": "" }, { "docid": "ea842597a9d8fad1df58d74c6b12ab97", "score": "0.6560148", "text": "public function index()\n {\n $statuses = Status::all();\n $statuses->transformer = StatusCollection::class;\n return $this->showAll($statuses);\n }", "title": "" }, { "docid": "9854a8a0b5996147689b1cfb93901fba", "score": "0.65570813", "text": "public function index()\n {\n $entities = Entity::all();\n\n return view('actions.entity.read', compact('entities'));\n }", "title": "" }, { "docid": "6eadfe639301106d65142408b4536a7d", "score": "0.65397066", "text": "public function index()\n {\n return CentroResource::collection(Centro::paginate());\n }", "title": "" }, { "docid": "b1c6918b8a647032258b39902afb3198", "score": "0.6532946", "text": "public function index()\n {\n $this->initialiseRequest();\n $items = $this->queryRepository->all();\n if (!$items) {\n return $this->apiManager->respondNotFound('Items do not exist.');\n }\n $itemsResource = new Collection($items, $this->transformer);\n $processedItems = $this->fractalManager->createData($itemsResource)->toArray();\n return $this->apiManager->respond($processedItems);\n }", "title": "" }, { "docid": "47bc2129e22deb7b10f9cd1b3ca97140", "score": "0.65329", "text": "public function index()\n {\n\n if ($this->model->count() <> 0) {\n return $this->resource::collection($this->model);\n }\n return Response::json([\n 'error' => 'Record not found'\n ], 404);\n\n }", "title": "" }, { "docid": "b09ff22d2468ad0a34a73b6be1c564e7", "score": "0.6529856", "text": "public function index()\n {\n $questions = Question::pimp()->paginate();\n\n QuestionResource::collection($questions);\n\n return $this->sendResponse(compact('questions'));\n }", "title": "" }, { "docid": "289c02bb55888cea68db6bb293329f8b", "score": "0.65295684", "text": "public function listAction()\n {\n if (false === $this->admin->isGranted('LIST')) {\n throw new AccessDeniedException();\n }\n\n /** @var \\Symfony\\Component\\HttpFoundation\\Request $request */\n $request = $this->container->get('request_stack')->getCurrentRequest();\n\n /** @var \\Sonata\\MediaBundle\\Provider\\Pool $mediaPool */\n $mediaPool = $this->container->get('sonata.media.pool');\n\n $contexts = $mediaPool->getContexts();\n\n reset($contexts);\n $contextName = key($contexts);\n $datagrid = $this->admin->getDatagrid($request->get('context', $contextName));\n $datagrid->setValue('context', null, $this->admin->getPersistentParameter('context'));\n\n $formView = $datagrid->getForm()->createView();\n\n // set the theme for the current Admin Form\n $this->get('twig')->getExtension('form')->renderer->setTheme($formView, $this->admin->getFilterTheme());\n\n return $this->render(\n $this->admin->getTemplate('list'),\n array(\n 'action' => 'list',\n 'form' => $formView,\n 'datagrid' => $datagrid,\n 'csrf_token' => $this->getCsrfToken('sonata.batch'),\n )\n );\n }", "title": "" }, { "docid": "9541d55e53804985d6027f052d293580", "score": "0.652877", "text": "public function index()\n {\n return $this->render('index', [\n 'model' => $this->model,\n 'endpoints' => $this->getAvailableApiEndpoints(),\n 'groupsCount' => $this->model->getGroups()->count(),\n ]);\n }", "title": "" }, { "docid": "9541d55e53804985d6027f052d293580", "score": "0.652877", "text": "public function index()\n {\n return $this->render('index', [\n 'model' => $this->model,\n 'endpoints' => $this->getAvailableApiEndpoints(),\n 'groupsCount' => $this->model->getGroups()->count(),\n ]);\n }", "title": "" }, { "docid": "cc3607ce8a88164b64b1133094816f12", "score": "0.6522748", "text": "public function index()\n {\n $this->crud->hasAccessOrFail('list');\n\n $this->data['crud'] = $this->crud;\n $this->data['title'] = ucfirst(($this->chapter ? $this->chapter->name . ' --> ' : '') . $this->crud->entity_name_plural);\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 }", "title": "" }, { "docid": "cdc6c11bca5c8d643c1f6a1a0d80d23d", "score": "0.65212315", "text": "public function indexAction()\r\n {\r\n $this->parseRequestForPager();\r\n\r\n $pager = $this->getPager();\r\n $form = $this->getFilterForm()->createView();\r\n\r\n $result = array(\r\n 'list' => $this->getList($pager),\r\n 'pager' => $this->getPagination($pager),\r\n 'filters' => $this->get('pizone_form')->formDataToArray($form)\r\n );\r\n\r\n $view = new View($result);\r\n return $this->handleView($view);\r\n }", "title": "" }, { "docid": "d06d606c40c9d56f52b80f958f43b5ce", "score": "0.65188295", "text": "public function index()\n\t{\n\t\t// will show list of Data\n\t}", "title": "" }, { "docid": "3f1eb8293a667a2878f4d80d96280084", "score": "0.6518673", "text": "public function index()\n {\n return BookResource::collection(Book::paginate(25));\n }", "title": "" }, { "docid": "d44d85e06d4eeb7940282586d59ecb10", "score": "0.65124106", "text": "public function index()\n {\n return UnitResource::collection(Unit::paginate(5));\n }", "title": "" }, { "docid": "81a94e8c32b6134de5e7342f4235e4ec", "score": "0.6507357", "text": "public function index()\n {\n\n // Get articles\n $chairs = Chair::paginate(15);\n\n // Return collection of articles as a resource\n return ChairResource::collection($chairs);\n\n }", "title": "" }, { "docid": "22fb95b3636c2f407abebe88d13d8888", "score": "0.6505021", "text": "public function index()\n {\n $authors = Author::all();\n return AuthorResource::collection($authors);\n }", "title": "" }, { "docid": "1071b7d841a42ebb958087fb23ea72c9", "score": "0.64993095", "text": "public function index()\n {\n //return $this->repository->all();\n return $this->service->showAll();\n }", "title": "" }, { "docid": "cad2135c8b884f5e32721aec5b9bea32", "score": "0.6497837", "text": "public function index()\n {\n return CategoryResource::collection(Category::paginate());\n }", "title": "" }, { "docid": "1a823c7469d426833399140a05c28243", "score": "0.64936584", "text": "public function listAction()\n\t{\n\t\t$asResponse = array();\n\t\t$client = new Zend_Http_Client($this->ssUri.'/list');\n\t\t$client->setParameterGet(array('bIsRest' => true));\n\t\t$client->setConfig(array('timeout' => 30));\n\t\t$ssResponse = $client->request('GET');\n\t\t\n\t\tif($ssResponse->isSuccessful())\n\t\t{\n\t\t\t$ssResponseBody = $ssResponse->getBody();\n\t\t\t$asResponse = Zend_Json_Decoder::decode($ssResponseBody,Zend_Json::TYPE_ARRAY);\n\t\t}\n\t\t$this->view->users = $asResponse;\n\t}", "title": "" }, { "docid": "516498e2faf9e3833f4a0c0889c0d1a6", "score": "0.64926285", "text": "public function index()\n {\n $this->authorize('index', Category::class);\n\n return CategoryResource::collection(Category::paginate(15));\n }", "title": "" }, { "docid": "baeb75c01b41d5a02e946acdd0870ae9", "score": "0.6491589", "text": "public function showBooksAction()\n {\n $result = $this->model->getBooks();\n // Get params of books and pagination\n $data = $result[0];\n $pagination_params = $result[1];\n\n $this->view->render('List of books', $data, $pagination_params);\n }", "title": "" }, { "docid": "7029a5ba2d86ddb638223bf9a830e61a", "score": "0.648616", "text": "public function actionIndex()\r\n {\r\n $dataProvider = $this->getIndex('api/books', 'app\\models\\Book');\r\n\r\n return $this->render('index', [\r\n 'dataProvider' => $dataProvider\r\n ]);\r\n }", "title": "" }, { "docid": "ad2789681d764a50f799c66b64e9e3f5", "score": "0.64843917", "text": "public function index()\n {\n $data = GuestResource::collection(\n $this->guest->paginate(request()->per_page)\n );\n\n if (! $data) {\n return response()->json([\n 'message' => 'Failed to retrieve resource'\n ], 400);\n }\n\n return $data;\n }", "title": "" }, { "docid": "64c5cb71d29bff854bd1d4c026363eb2", "score": "0.6484192", "text": "public function index()\n {\n $cust = Customers::paginate(20);\n return CustomersResource::collection($cust);\n }", "title": "" }, { "docid": "fc608464ab00efa2883cbaa1ca108cd1", "score": "0.6481522", "text": "public function index()\n {\n return $this->collection($this->repository->all());\n }", "title": "" }, { "docid": "c22119f1d6e05e764e700b1cf1e15c3a", "score": "0.648076", "text": "public function index()\n {\n // Get articles\n $trackings = Tracking::paginate(10);\n\n // Return\n return BackendResource::collection($trackings);\n }", "title": "" }, { "docid": "90f607a4b7e80fdd2bcd6f3ce3d9959e", "score": "0.6477766", "text": "public function index()\n {\n $perPage = request('perPage', 10);\n $products = Product::paginate($perPage);\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "59002099eafa8643a05ba19fcbd9fedd", "score": "0.6477562", "text": "public function index()\n {\n //\n $items = Item::orderBy('id')->paginate(10);\n \n return view('manage.item.items_list', compact('items'));\n \n }", "title": "" }, { "docid": "c8bce961d8c00f94db1cc45bb581d8eb", "score": "0.6476608", "text": "public function index()\n {\n $products = Product::all();\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "c1799a28a7e3f24be756df7e3d5ed18d", "score": "0.6474707", "text": "public function index()\n {\n $people = QueryBuilder::for(Person::class)\n ->defaultSort('created_at')\n ->allowedSorts([\n 'created_at'\n ])\n ->paginate(10)\n ->appends(request()->query());\n\n return PersonResource::collection($people);\n }", "title": "" }, { "docid": "974e723cf42c91c850116aa22b80f587", "score": "0.6472995", "text": "public function index()\n {\n //\n $parent_details = \\App\\ParentDetail::orderBy('id', 'desc')->paginate(10);\n return ParentDetailResource::collection($parent_details);\n }", "title": "" }, { "docid": "b6d79dbbd4bd8f24a2ee993dec416fde", "score": "0.64697886", "text": "public function index() {\n\t\t\t$datas=DAO::getAll($this->model);\n\t\t\techo $this->_getResponseFormatter()->get($datas);\n\t}", "title": "" }, { "docid": "85336711eddcf6c317cce3da86408817", "score": "0.6469765", "text": "public function actionList()\n {\n $users = User::find()\n ->orderBy('id')\n ->all();\n if (count($users)) {\n $separator = sprintf(self::LIST_FORMAT_SEP.PHP_EOL, str_repeat('-', 10), str_repeat('-', 22), str_repeat('-', 9), str_repeat('-', 32), str_repeat('-', 42));\n echo $separator;\n printf(self::LIST_FORMAT_HEADER.PHP_EOL, 'id', 'username', 'status', 'fullname', 'email');\n echo $separator;\n foreach ($users as $user) {\n printf(self::LIST_FORMAT_LINE.PHP_EOL, $user->id, $user->username, $this->statusMap[$user->status], $user->fullname, $user->email);\n }\n echo $separator;\n }\n return Controller::EXIT_CODE_NORMAL;\n }", "title": "" }, { "docid": "f9d8426baa3f2a5993b5c1f018099562", "score": "0.64684117", "text": "public function resources_index()\n\t{\n\t\t$init = new admin_model();\n\t\t$resources = $init->getAllResources()->getResultArray();\n\n\t\t$menus = $init->getAllMenu()->getResultArray();\n\t\t$this->data = ['menus' => $menus, 'resources' => $resources];\n\t\treturn view('admin' . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'index', $this->data);\n\t}", "title": "" }, { "docid": "b9a94eb6086245c9e4f089dc9aede055", "score": "0.64675385", "text": "public function index(Request $request)\n {\n $this->authorize('listing', [$this->authorizedModel]);\n\n return response(\n $this->obj->getAll(\n ($request->has('limit') ? $request->input('limit') : 0),\n ($request->has('sort') ? $request->input('sort') : 'id'),\n ($request->has('order') ? $request->input('order') : 'desc'),\n ($request->has('offset') ? $request->input('offset') : 0)\n )\n );\n }", "title": "" } ]
854c247f435957b1695b9cd1ba3bdbd8
Update a data using model form and array.
[ { "docid": "d546d013500c0968c5274d59a85d69b2", "score": "0.0", "text": "public static function Update($tableName, $fieldList, $whereOption, $dbclassinstance)\n {\n try {\n //get table name from model\n $table = self::nameOptimizer($tableName);\n //command builder;\n $command = 'update ' . $table . ' set ';\n if ($fieldList != null) {\n foreach ($fieldList as $key => $value) {\n $command .= ' ' . $key . '=:' . $key . ',';\n }\n }\n $command = rtrim($command, ',');\n if ($whereOption != null) {\n $command .= ' where ' . $whereOption . ' ';\n }\n\n //parameter binder;\n //define database\n $m_cmd = new DbCommand($command, $dbclassinstance);\n //define query in database\n if ($fieldList != null) {\n foreach ($fieldList as $key => $value) {\n $m_cmd->SetParameter(':' . $key, $value);\n }\n }\n $m_cmd->Execute();\n } catch (Exception $ex) {\n return $ex->getMessage();\n\n return false;\n }\n }", "title": "" } ]
[ { "docid": "8a39eea6f20c4a5880b4b9ac07c7f190", "score": "0.77651554", "text": "public function update($model, array $data = []);", "title": "" }, { "docid": "5fe217da8d3bff65fab75381596c5996", "score": "0.7761571", "text": "public function update($model, array $data);", "title": "" }, { "docid": "abea62aa6dbd5e250e350387d8bf83f6", "score": "0.7448198", "text": "public function update(array $data);", "title": "" }, { "docid": "abea62aa6dbd5e250e350387d8bf83f6", "score": "0.7448198", "text": "public function update(array $data);", "title": "" }, { "docid": "abea62aa6dbd5e250e350387d8bf83f6", "score": "0.7448198", "text": "public function update(array $data);", "title": "" }, { "docid": "abea62aa6dbd5e250e350387d8bf83f6", "score": "0.7448198", "text": "public function update(array $data);", "title": "" }, { "docid": "d0cfb92491c0a0d680f433a5be233434", "score": "0.7332817", "text": "public function updating(Form $form, array $data);", "title": "" }, { "docid": "c870c2ed53cd187929408f293ef12c6a", "score": "0.7331036", "text": "public function updateData(array $data);", "title": "" }, { "docid": "3dfafabe198bae1bd8bc10de3dc8e5d0", "score": "0.7258162", "text": "protected function updateData()\n {\n $this->data[$this->id] = $this->model_data;\n }", "title": "" }, { "docid": "e131ec0fa8a59f921eb2e8fd9777a586", "score": "0.69969124", "text": "public function update(array $input, $id, Model $model = null);", "title": "" }, { "docid": "28c1a76cae587d591b038cc4f332e722", "score": "0.69923705", "text": "public function update($array) {\n }", "title": "" }, { "docid": "2e65d635d3dfc613fd88cc085de632f3", "score": "0.6883727", "text": "public function updateModel(Array $data, Model $model)\n { \n return $model->bank_account()->update($data);\n }", "title": "" }, { "docid": "3ee6740a3b0bb68994447bc0ac2be91e", "score": "0.68551785", "text": "public function update(): void\n {\n session()->flash('message', 'Updated Successfully.');\n\n $row = app($this->model)->find($this->form_data['id']);\n // *\n $data = [\n 'date_start' => $this->form_data['start'],\n 'date_end' => $this->form_data['end'],\n ];\n $data_post = [\n 'title' => $this->form_data['title'],\n ];\n /*\n PanelService::make()->get($row)->update($data);\n */\n $row->post->update($data_post);\n $row->update($data);\n // */\n $this->resetInputFields();\n // $this->events = $this->getEvents($this->info);\n }", "title": "" }, { "docid": "192ea55ae6b90a0bac7f9220769ebe3b", "score": "0.67585075", "text": "public function updateFromArray(array $data)\n {\n if (isset($data['id']))\n {\n $this->setId($data['id']);\n }\n if (isset($data['name']))\n {\n $this->setName($data['name']);\n }\n }", "title": "" }, { "docid": "848fb6e35ef2f1701688692b47fe4178", "score": "0.6722768", "text": "public function update(array $input);", "title": "" }, { "docid": "e856b5961cbd69cd39fdb92067265042", "score": "0.6692649", "text": "public function update(){\n\t\t$data = json_decode($this->input->post('data'), true);\n\t\t//get the entry to update\n\t\t$this->load->model('Alerte','run_alerte');\n\t\tif (isset($data[0])){\n\t\t\tforeach ($data as $al){\n\t\t\t\t$a = $this->run_alerte;\n\t\t\t\t$a->where('id', $al['id']);\n\t\t\t\t$a->get();\n\n\t\t\t\t//update values\n\t\t\t\t//print_r($al);\n\t\t\t\tforeach ($al as $field=>$value){\n\t\t\t\t\t$a->$field=$value;\n\t\t\t\t}\n\t\t\t\t//save updated entry into database\n\t\t\t\t$a->save();\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\t$a = $this->run_alerte;\n\t\t\t$a->where('id', $data['id']);\n\t\t\t$a->get();\n\n\t\t\t//update values\n\t\t\t//print_r($al);\n\t\t\tforeach ($data as $field=>$value){\n\t\t\t\t$a->$field=$value;\n\t\t\t}\n\t\t\t//save updated entry into database\n\t\t\t$a->save();\n\t\t}\n\t\t//RETURN JSON !\n\t\t$answer['success'] = true;\n\t\techo json_encode($answer);\n\t}", "title": "" }, { "docid": "9ee86594127cf302ee328f113dbc1598", "score": "0.6663936", "text": "public function update(array $data)\n {\n $model = $this->model->where('id',$data['id'])->orwhere('slug',$data['id'])->first();\n\n $model->fill($data);\n\n if ($model->save()) {\n return $model;\n }\n\n return false;\n\n }", "title": "" }, { "docid": "776a0753ab9b055b88a2721a0365dfc0", "score": "0.66350394", "text": "public function update($arr)\n {\n }", "title": "" }, { "docid": "73e975671e5b15e7dff6dc875a1bd3f8", "score": "0.6630563", "text": "public function update(array $data, $where);", "title": "" }, { "docid": "cfa450601e8d443bca65152fcd9d6b80", "score": "0.6626293", "text": "function update($id, array $input);", "title": "" }, { "docid": "2fc973ea2e95d79f6223b382f474c133", "score": "0.65722376", "text": "public function updateObject(){\n DatabaseAdapter::updateObject($this->dataArray(), $this->DATA_TYPE);\n }", "title": "" }, { "docid": "a0f6068d72a0490530bbda9689a17127", "score": "0.6562048", "text": "public function update($id, array $data);", "title": "" }, { "docid": "a0f6068d72a0490530bbda9689a17127", "score": "0.6562048", "text": "public function update($id, array $data);", "title": "" }, { "docid": "a0f6068d72a0490530bbda9689a17127", "score": "0.6562048", "text": "public function update($id, array $data);", "title": "" }, { "docid": "a0f6068d72a0490530bbda9689a17127", "score": "0.6562048", "text": "public function update($id, array $data);", "title": "" }, { "docid": "a0f6068d72a0490530bbda9689a17127", "score": "0.6562048", "text": "public function update($id, array $data);", "title": "" }, { "docid": "a0f6068d72a0490530bbda9689a17127", "score": "0.6562048", "text": "public function update($id, array $data);", "title": "" }, { "docid": "a0f6068d72a0490530bbda9689a17127", "score": "0.6562048", "text": "public function update($id, array $data);", "title": "" }, { "docid": "a0f6068d72a0490530bbda9689a17127", "score": "0.6562048", "text": "public function update($id, array $data);", "title": "" }, { "docid": "56897cfe4100252f465a1f803e79faef", "score": "0.6556998", "text": "public function update($model);", "title": "" }, { "docid": "1cad5866d53e712b87d8996b4a10acc0", "score": "0.65355027", "text": "public function update($record, array $data);", "title": "" }, { "docid": "863c6cefb0555dc1cf12a7732a95f7c6", "score": "0.65325266", "text": "private function _updateData()\n {\n return [\n 'formModel' => [\n 'designFormModel' => [\n 'containerDesignBlockModel' => [\n 'marginTop' => 30\n ],\n 'lineDesignBlockModel' => [\n 'marginTop' => 30\n ],\n 'submitIcon' => 'icon-5',\n 'submitIconPosition' => 0,\n 'submitAlignment' => 0\n ],\n 'hasLabel' => false,\n 'successText' => 'Success 2'\n ],\n 'subjectFormInstanceModel' => [\n 'formModel' => [\n 'designFormModel' => [\n 'containerDesignBlockModel' => [\n 'marginTop' => 40\n ],\n 'lineDesignBlockModel' => [\n 'marginTop' => 40\n ],\n 'submitIcon' => 'icon-6',\n 'submitIconPosition' => 0,\n 'submitAlignment' => 0\n ],\n 'hasLabel' => false,\n 'successText' => 'Success 7'\n ],\n 'sort' => 20,\n 'label' => 'Label 30',\n 'isRequired' => false,\n 'validationType' => 0,\n 'type' => 0,\n ],\n 'subjectText' => 'Subject 23',\n 'host' => '127.0.0.2',\n 'port' => 1000,\n 'type' => '',\n 'user' => 'user2',\n 'password' => 'pass2',\n ];\n }", "title": "" }, { "docid": "3e3f98c9403f1fd3cb7e576be1ab7c38", "score": "0.65228236", "text": "public function update($data = array()) {\r\n $this->_orm->update($data);\r\n $this->_lahaina->logger()->debug('Update model entity (' . $this->_orm->id() . ')', $this);\r\n }", "title": "" }, { "docid": "2cb024a41406183d32c483d7cf7e5f4a", "score": "0.65190774", "text": "public function update(array $data, $id)\n {\n }", "title": "" }, { "docid": "89ec6e6c21f58462613302473feeb6d3", "score": "0.6516993", "text": "public function updateOne($data)\n {\n }", "title": "" }, { "docid": "5cd37d579f047e9cf88457d9bf12ce0d", "score": "0.65045565", "text": "public function update(array $data, int $id)\n {\n }", "title": "" }, { "docid": "70840914b0cd49460d33b6b844bd0ee6", "score": "0.64859396", "text": "public function actionUpdateWeight()\n {\n $dataArray=Yii::app()->request->getPost('idArray');\n \n if(!is_null($dataArray))\n {\n foreach($dataArray as $i=>$id) \n {\n $model=Formula::model()->findByPk($id);\n $model->weight=$i;\n \n if($model->validate() && $model->save('weight')){\n $data=array(\n 'status'=>'success',\n );\n }\n else\n {\n $error = CActiveForm::validate($model);\n if($error!='[]')\n {\n $data=array(\n 'error'=>json_decode($error),\n 'status'=>'error',\n );\n } \n } \n }\n echo json_encode($data);\n Yii::app()->end(); \n } \n }", "title": "" }, { "docid": "ce1c89b5e871aea24d43291936e97c54", "score": "0.646661", "text": "public function updateRecord($Model, $id, $data);", "title": "" }, { "docid": "bc05d54f67389753e18a8c1868892396", "score": "0.6462301", "text": "public function update()\r\n {\r\n $this->model->setData($this->data);\r\n $this->model->setId($this->id);\r\n return $this->model->update();\r\n }", "title": "" }, { "docid": "3c063f4aea710de2bc4904d039e78d80", "score": "0.64423656", "text": "public function update( $id, array $data ) {\n }", "title": "" }, { "docid": "96d241a0e5833b2203cbb417018b678e", "score": "0.6437126", "text": "public function update(string $id, array $data);", "title": "" }, { "docid": "383244edae7177e8d9494c549bccdf5b", "score": "0.6417868", "text": "function updateUser($userId,$formArray)\n {\n $this->db->where('user_id',$userId);\n $this->db->update('users',$formArray);\n }", "title": "" }, { "docid": "4a59bebc10eb8a0c0556b57ca715e35a", "score": "0.63942575", "text": "public function update(array $data, $model, string $attribute = null, array $saveOptions = []): UpdateResult;", "title": "" }, { "docid": "d869238a119be6efb67bc7faceb464c4", "score": "0.6368555", "text": "function anggota_update()\n\t{\n\t\t$id = $this->input->post('id');\n\t\t$nama = $this->input->post('nama');\n\t\t$nik = $this->input->post('nik');\n\t\t$alamat = $this->input->post('alamat');\n\n\t\t//di tampung di array\n\n\t\t\t//di pisah agar mudah digunakan untuk load data dari model\n\t\t$where = array('id' => $id );\n\n\t\t$data = array(\n\t\t\t'nama' => $nama , \n\t\t\t'nik' => $nik , \n\t\t\t'alamat' => $alamat \n\t\t);\n\n\t\t// update data ke database\n\t\t$this->m_data->update_data($where, $data, 'anggota');\n\n\t\t//mengalihkan halaman ke halaman data anggota\n\t\tredirect(base_url('petugas/anggota'));\n\t}", "title": "" }, { "docid": "65c847a0fcb9e7a5df8919751c7b579b", "score": "0.63681865", "text": "public function actionUpdate()\n {\n $model = $this->findModel(Yii::$app->request->post('id'));\n\n $data = Yii::$app->request->post();\n if ($model->load($data,'') && $model->save()) {\n SpecValue::deleteAll(['spec_id'=>$model->id]);\n foreach ($data['items'] as $row) {\n $row['spec_id'] = $model->id;\n $sv = new SpecValue();\n $sv->load($row,'');\n $sv->save();\n }\n return $this->success();\n }\n\n return $this->fail($model->errors);\n }", "title": "" }, { "docid": "b9792c09eefe967778e2b8b18ccc330e", "score": "0.6367145", "text": "public function update(array $data)\n {\n $model = $this->model->find($data['id']);\n $model->fill($data);\n $model->save();\n isset($data['tags']) && $this->syncTags($model, $data['tags']);\n\n return true;\n }", "title": "" }, { "docid": "c001ce7a04db27c64760b6ed269c8995", "score": "0.6366531", "text": "public function updateFeed($array_data)\n {\n $src_model['Src_LabelModel'] = new Src_LabelModel();\n $src_model['Src_DonasiModel'] = new Src_DonasiModel();\n\n /**\n * Pembuatan array kembali bertujuan untuk mempermudah mass-assignment\n */\n if (isset($array_data['src_id_label'])) {\n foreach ($array_data['src_id_label'] as $array_key_label => $data_src_label) {\n $array_create_label[] = [\n 'id_label' => $data_src_label,\n 'id_feed' => $array_data['id_feed'],\n 'created_by' => $array_data['updated_by']\n ];\n }\n }\n\n if (isset($array_data['src_id_donasi'])) {\n foreach ($array_data['src_id_donasi'] as $array_key_donasi => $data_src_donasi) {\n $array_create_donasi[] = [\n 'id_donasi' => $data_src_donasi,\n 'id_feed' => $array_data['id_feed'],\n 'created_by' => $array_data['updated_by']\n ];\n }\n }\n\n try {\n\n /**\n * Reset status campaign apabila ada campaign yang aktif\n */\n// $status_campaign = $array_data['campaign_feed'];\n// if ($status_campaign == 2) {\n// $ex_campaign = self::select($this->primaryKey)->where('campaign_feed', 2)->first();\n// if (!empty($ex_campaign)) {\n// self::where($this->primaryKey, $ex_campaign->id_feed)->update([\"campaign_feed\" => 1]);\n// }\n// }\n\n /**\n * Proses update data detail\n */\n self::where($this->primaryKey, $array_data[$this->primaryKey])\n ->update([\n 'judul_feed' => $array_data['judul_feed'],\n \"draft_feed\" => $array_data['draft_feed'],\n \"campaign_feed\" => 1,\n \"prioritas_feed\" => $array_data['prioritas_feed'],\n \"sub_judul_feed\" => $array_data['sub_judul_feed'],\n \"isi_feed\" => $array_data['isi_feed'],\n \"alamat_feed\" => $array_data['alamat_feed'],\n \"kecamatan_feed\" => $array_data['kecamatan_feed'],\n \"kota_feed\" => $array_data['kota_feed'],\n \"provinsi_feed\" => $array_data['provinsi_feed'],\n \"min_donasi_feed\" => $array_data['min_donasi_feed'],\n \"max_donasi_feed\" => $array_data['max_donasi_feed'],\n \"talent_feed\" => $array_data['talent_feed'],\n \"email_talent_feed\" => $array_data['email_talent_feed'],\n \"telp_talent_feed\" => $array_data['telp_talent_feed'],\n \"keterangan_feed\" => $array_data['keterangan_feed'],\n \"ended_at_feed\" => $array_data['ended_at_feed'],\n 'updated_by' => $array_data['updated_by'],\n 'updated_at' => date(\"Y-m-d H:i:s\")\n ]);\n\n /**\n * Proses Replace atau reset label\n */\n if (isset($array_data['src_id_label'])) {\n $src_model['Src_LabelModel']->prosesLabelDataFeed('REPLACE', $array_create_label);\n } elseif (!isset($array_data['src_id_label'])) {\n $src_model['Src_LabelModel']->prosesLabelDataFeed('RESET', $array_data[$this->primaryKey]);\n }\n\n /**\n * Proses Replace atau reset jenis donasi (Kecuali uang)\n */\n if (isset($array_data['src_id_donasi'])) {\n $src_model['Src_DonasiModel']->prosesDataFeed('REPLACE', $array_create_donasi);\n } elseif (!isset($array_data['src_id_donasi'])) {\n $src_model['Src_DonasiModel']->prosesDataFeed('RESET', $array_data[$this->primaryKey]);\n }\n\n $status = [\n 'code' => 200,\n 'status' => 'OK',\n 'message' => 'Sub konten berhasil di update',\n 'data' => $array_data\n ];\n } catch (QueryException $error) {\n $status = [\n 'code' => 500,\n 'status' => 'Internal Server Error',\n 'message' => $error\n ];\n }\n return $status;\n }", "title": "" }, { "docid": "6ac1d60c8a828635837c1508ebed2e94", "score": "0.6359202", "text": "public function update(array $data)\n {\n $model = $this->model->find($data['id']);\n\n $model->fill($data);\n\n // $this->syncRelation($model, $data, 'galleries');\n\n if ($model->save()) {\n $this->buildLookup($model);\n $this->resetChildrenUri($model);\n return $model;\n }\n\n return $model;\n }", "title": "" }, { "docid": "b007d5680aff9731ef02bc247604c275", "score": "0.63560003", "text": "public function update($id, array $data)\n {\n }", "title": "" }, { "docid": "a3d86190b29ef3bac57af178cf11ef23", "score": "0.63545656", "text": "function modifyDataArrForFormUpdate($inputArr) {\n\t\tif (is_array($this->conf[$this->cmdKey.'.']['evalValues.'])) {\n\t\t\treset($this->conf[$this->cmdKey.'.']['evalValues.']);\n\t\t\t \n\t\t\twhile (list($theField, $theValue) = each($this->conf[$this->cmdKey.'.']['evalValues.'])) {\n\n\t\t\t\t$listOfCommands = t3lib_div::trimExplode(',', $theValue, 1);\n\t\t\t\twhile (list(, $cmd) = each($listOfCommands)) {\n\t\t\t\t\t$cmdParts = split(\"\\[|\\]\", $cmd); // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.\n\t\t\t\t\t$theCmd = trim($cmdParts[0]);\n\t\t\t\t\tswitch($theCmd) {\n\t\t\t\t\t\tcase 'twice':\n\t\t\t\t\t\tif (isset($inputArr[$theField])) {\n\t\t\t\t\t\t\tif (!isset($inputArr[$theField.'_again'])) {\n\t\t\t\t\t\t\t\t$inputArr[$theField.'_again'] = $inputArr[$theField];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$this->additionalUpdateFields .= ','.$theField.'_again';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t \n\t\tif (is_array($this->conf['parseValues.'])) {\n\t\t\treset($this->conf['parseValues.']);\n\t\t\twhile (list($theField, $theValue) = each($this->conf['parseValues.'])) {\n\t\t\t\t$listOfCommands = t3lib_div::trimExplode(',', $theValue, 1);\n\t\t\t\twhile (list(, $cmd) = each($listOfCommands)) {\n\t\t\t\t\t$cmdParts = split(\"\\[|\\]\", $cmd); // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.\n\t\t\t\t\t$theCmd = trim($cmdParts[0]);\n\t\t\t\t\tswitch($theCmd) {\n\t\t\t\t\t\tcase 'multiple':\n\t\t\t\t\t\tif (isset($inputArr[$theField]) && !$this->isPreview()) {\n\t\t\t\t\t\t\t$inputArr[$theField] = explode(',', $inputArr[$theField]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'checkArray':\n\t\t\t\t\t\tif ($inputArr[$theField] && !$this->isPreview()) {\n\t\t\t\t\t\t\tfor($a = 0; $a <= 30; $a++) {\n\t\t\t\t\t\t\t\tif ($inputArr[$theField] & pow(2, $a)) {\n\t\t\t\t\t\t\t\t\t$alt_theField = $theField.']['.$a;\n\t\t\t\t\t\t\t\t\t$inputArr[$alt_theField] = 1;\n\t\t\t\t\t\t\t\t\t$this->additionalUpdateFields .= ','.$alt_theField;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$inputArr = $this->userProcess_alt($this->conf['userFunc_updateArray'], $this->conf['userFunc_updateArray.'], $inputArr );\n\t\treturn $inputArr;\n\t}", "title": "" }, { "docid": "1bb04f8085e78d6f26b1293b1b91ff5c", "score": "0.63183844", "text": "public function updateFromRequest($data)\n\t{\n\t\t// first look for the easy to update items\n\t\tforeach ($this->formInputPropertyMapping() as $property => $formKey) {\n\t\t\tif (array_key_exists($formKey, $data)) {\n\t\t\t\t$this->$property = $data[$formKey];\n\t\t\t}\n\t\t}\n\n\t\t// assume if we're getting a password reset the system has already confirmed the user has\n\t\t// permissions to modify this\n\t\tif (array_key_exists(Constants::PARAM_PASSWORD, $data) && strlen($data[Constants::PARAM_PASSWORD]) > 7) {\n\t\t\t$this->setPassword($data[Constants::PARAM_PASSWORD]);\n\t\t}\n\n\t\t// user type can only be changed by a coordinator\n\t\t// trust that this field has been removed by the viewtroller\n\t\tif (array_key_exists(Constants::PARAM_USER_TYPE, $data)) {\n\t\t\t$this->setType($data[Constants::PARAM_USER_TYPE]);\n\t\t}\n\n\t\t// address ids should never be changed once created...\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ebcceb78deea1153de1bd13c2e619aff", "score": "0.63068396", "text": "public function modifyDataArrForFormUpdate($inputArr)\n {\n if (is_array($this->conf[$this->cmdKey.'.']['evalValues.'])) {\n foreach ($this->conf[$this->cmdKey.'.']['evalValues.'] as $theField => $theValue) {\n $listOfCommands = GeneralUtility::trimExplode(',', $theValue, 1);\n foreach ($listOfCommands as $cmd) {\n // Point is to enable parameters after each command enclosed in brackets [..].\n // These will be in position 1 in the array.\n $cmdParts = preg_split('/\\[|\\]/', $cmd);\n $theCmd = trim($cmdParts[0]);\n switch ($theCmd) {\n case 'twice':\n if (isset($inputArr[$theField])) {\n if (!isset($inputArr[$theField.'_again'])) {\n $inputArr[$theField.'_again'] = $inputArr[$theField];\n }\n $this->additionalUpdateFields .= ','.$theField.'_again';\n }\n break;\n }\n }\n }\n }\n if (is_array($this->conf['parseValues.'])) {\n foreach ($this->conf['parseValues.'] as $theField => $theValue) {\n $listOfCommands = GeneralUtility::trimExplode(',', $theValue, 1);\n foreach ($listOfCommands as $cmd) {\n // Point is to enable parameters after each command enclosed in brackets [..].\n // These will be in position 1 in the array.\n $cmdParts = preg_split('/\\[|\\]/', $cmd);\n $theCmd = trim($cmdParts[0]);\n switch ($theCmd) {\n case 'multiple':\n if (isset($inputArr[$theField]) && !$this->isPreview()) {\n $inputArr[$theField] = explode(',', $inputArr[$theField]);\n }\n break;\n case 'checkArray':\n if ($inputArr[$theField] && !$this->isPreview()) {\n for ($a = 0; $a <= 30; ++$a) {\n if ($inputArr[$theField] & pow(2, $a)) {\n $alt_theField = $theField.']['.$a;\n $inputArr[$alt_theField] = 1;\n $this->additionalUpdateFields .= ','.$alt_theField;\n }\n }\n }\n break;\n }\n }\n }\n }\n\n $inputArr = $this->userProcess_alt(\n $this->conf['userFunc_updateArray'],\n $this->conf['userFunc_updateArray.'],\n $inputArr\n );\n\n return $this->escapeHTML($inputArr);\n }", "title": "" }, { "docid": "51e7d7fc7d7aa973136b2ba2d604f172", "score": "0.6298674", "text": "function update(){\n $id = $this->input->post('id');\n $nama = $this->input->post('nama');\n $alamat = $this->input->post('alamat');\n $pekerjaan = $this->input->post('pekerjaan');\n/* masukkan daya yg diupdate \nke dalam variabel data */\n $data = array(\n 'nama' => $nama,\n 'alamat' => $alamat,\n 'pekerjaan' => $pekerjaan\n );\n /* tempat id data */\n $where = array(\n 'id' => $id\n );\n \n $this->m_data->update_data($where,$data,'user');\n redirect('crud/index');\n }", "title": "" }, { "docid": "8d4622eb6ec7317ef52fa9ecb34819f9", "score": "0.6277462", "text": "public function update()\n {\n\t\t$userArray = array();\n\t\t$getData = array();\n\t\t$funcName = array();\n\t\t$userArray = func_get_arg(0);\n\t\t\n\t\tfor($data=0;$data<count($userArray);$data++)\n\t\t{\n\t\t\t$funcName[$data] = $userArray[$data][0]->getName();\n\t\t\t$getData[$data] = $userArray[$data][0]->$funcName[$data]();\n\t\t\t$keyName[$data] = $userArray[$data][0]->getkey();\n\t\t}\n\t\t$userId = $userArray[0][0]->getUserId();\n\t\t//data pass to the model object for update\n\t\t$userModel = new UserModel();\n\t\t$status = $userModel->updateData($getData,$keyName,$userId);\n\t\treturn $status;\t\t\n }", "title": "" }, { "docid": "43ae0b87f9292bf28c6bb830c3243896", "score": "0.6268924", "text": "public function update(array $where, array $data)\n {\n foreach ($where as $field => $value) {\n if ( is_array($value) ) {\n list($field, $condition, $val) = $value;\n $this->model = $this->model->where($field,$condition,$val);\n } else {\n $this->model = $this->model->where($field,'=',$value);\n }\n }\n return $this->model->update($data);\n }", "title": "" }, { "docid": "e41d50541c8150102b3915699aa06cda", "score": "0.6257683", "text": "public function update(Model $model);", "title": "" }, { "docid": "39dcdf757262b9955806dda4f14eca32", "score": "0.6255312", "text": "private function update ()\n\t{\n\t\t$this->db->update($this->table, $this->data, \"id={$this->data['id']}\");\n\t}", "title": "" }, { "docid": "095c46ba966ea502bad1ada42641b4ac", "score": "0.62365675", "text": "public function update(Request $request)\n {\n $dataArr = $request->all();\n \n $this->validate($request,[ \n 'fullname' => 'required',\n 'account_no' => 'required',\n 'bank_name' => 'required',\n 'branch' => 'required',\n 'phone' => 'required',\n ]); \n \n $model = UserBank::find($dataArr['id']); \n $model->update($dataArr);\n \n Session::flash('message', 'Update success'); \n\n return redirect()->route('user-bank.index');\n }", "title": "" }, { "docid": "f28a2054a7f9ac46f313045558b65e77", "score": "0.62349534", "text": "public function update(array $data)\n {\n\n \t$this->title = $data[ 'title' ];\n \t$this->description = $data[ 'description' ];\n \t$this->start_time = $data[ 'start_time' ];\n \t$this->start_date = $data[ 'start_date' ];\n \t$this->end_time = $data[ 'end_time' ];\n \t$this->end_date = $data[ 'end_date' ];\n \t$this->allDay = $data[ 'allDay' ];\n $this->className = $data[ 'className' ];\n $this->level = $data[ 'level' ];\n \t$this->color = $data[ 'color' ];\n\n $this->save();\n\n }", "title": "" }, { "docid": "462495c54f536f6c328f75aefa9af304", "score": "0.6232765", "text": "public function updateData()\r\n {\r\n\r\n //$data = ['ID' => $_POST['ID'], 'id_recruit' => $_POST['id_recruit'], 'department' => $_POST['department'], 'position' => $_POST['position'], 'amount' => $_POST['amount'], 'time' => $_POST['time'], 'location' => $_POST['location']];\r\n\r\n //$data = ['ID' => $_POST['ID'], 'id_recruit' => $_POST['id_recruit'], 'department' => $_POST['department'], 'position' => $_POST['position'], 'require' => $_POST['require'], 'describe' => $_POST['describe'], 'amuont' => $_POST['amount'], 'time' => $_POST['time'], 'location' => $_POST['location'], 'benefit' => $_POST['benefit']];\r\n //$data = ['ID' => 18, 'id_recruit' => 'testupdate', 'department' => 'testupdate', 'time' => '2021-07-07', 'benefit' => '<p>testupdate</p>'];\r\n // var_dump($data);\r\n //$datajson = json_encode($data);\r\n $recruitmentModel = $this->load->model('recruitmentmodel');\r\n $parse = json_decode($_POST['recruitment']);\r\n //$parse = json_decode($datajson);\r\n // var_dump($parse);\r\n $id = $parse->ID;\r\n $table_name = 'tbl_recruitment';\r\n $cond = \"tbl_recruitment.ID=$id\";\r\n $getKey = '';\r\n $getValue = '';\r\n foreach ($parse as $key => $value) {\r\n $getKey .= $key . ',';\r\n $getValue .= $value . ',';\r\n };\r\n $getKey = rtrim($getKey, ',');\r\n $getValue = rtrim($getValue, ',');\r\n $key = explode(',', $getKey);\r\n $value = explode(',', $getValue);\r\n // var_dump($key);\r\n // $key = array_map($key[0], $key);\r\n // $value = array_map($value[0], $value);\r\n\r\n $count = count($key);\r\n // echo $count;\r\n $data = [];\r\n for ($i = 0; $i < $count; $i++) {\r\n $data[$key[$i]] = $value[$i];\r\n }\r\n // var_dump($data);\r\n $result = $recruitmentModel->updateData($table_name, $data, $cond);\r\n echo json_encode($data);\r\n }", "title": "" }, { "docid": "4d43c1aca40799cf361419df62c3bfc9", "score": "0.6231981", "text": "public function update($model, array $data)\n {\n $offer = $this->find($model);\n\n $offer->update($data);\n\n return $offer;\n }", "title": "" }, { "docid": "5a7cd380bbde15766c5dce038bfde51b", "score": "0.62150675", "text": "public function actionUpdate($id)\n {\n $model = $this->loadModel($id);\n $choices = $model->choices;\n //$this->performAjaxValidation($model);\n\n if (isset($_POST['Poll2'])) {\n $model->attributes = $_POST['Poll2'];\n\n $texts_choice2 = array();\n $texts_choice3 = array();\n\n if (isset($_POST['Poll2Choice'])) {\n if (isset($_FILES['Poll2Choice']['name']) != '' AND count($_FILES['Poll2Choice']['name']) > 0) {\n foreach ($_POST['Poll2Choice'] as $id => $choice) {\n $texts_choice2[] = array(\n 'weight'=> $choice['weight'],\n 'label'=> $choice['label'],\n 'jumlah_rekayasa'=> $choice['jumlah_rekayasa'],\n );\n }\n }\n\n if (count($_POST['Poll2Choiceimg2']) > 0) {\n foreach ($_POST['Poll2Choice'] as $id => $choice) {\n $texts_choice3[$id] = array(\n 'weight'=> $choice['weight'],\n 'label'=> $choice['label'],\n 'jumlah_rekayasa'=> $choice['jumlah_rekayasa'],\n );\n }\n }\n }\n\n\n // jika find ada data, maka update, jika find tidak ada data maka insert data baru\n if ( count($texts_choice3) > 0 OR count($texts_choice2) > 0) {\n\n // change key array to number\n $arrays_tn = array();\n foreach ($_POST['Poll2Choice'] as $ids => $choice) {\n $modelImage = Poll2Choice::model()->find('id = :id', array(':id'=> $ids ));\n if ( $modelImage){ \n // update data lama\n $modelImage->poll_id = $model->id;\n $modelImage->label = $choice['label'];\n $modelImage->weight = $choice['weight'];\n $modelImage->jumlah_rekayasa = $choice['jumlah_rekayasa'];\n $modelImage->save(false);\n }else{\n $arrays_tn[] = array(\n 'label'=> $choice['label'],\n 'weight'=> $choice['weight'],\n 'jumlah_rekayasa'=> $choice['jumlah_rekayasa'],\n );\n }\n } \n\n // input data baru \n if ( isset($_FILES['Poll2Choice']) AND count($_FILES['Poll2Choice']['name']) > 0) { \n // echo \"<pre>\"; print_r($_FILES['Poll2Choice']['name']); exit;\n foreach ($_FILES['Poll2Choice']['name'] as $key => $choicess):\n $pollChoice = new Poll2Choice;\n $image = CUploadedFile::getInstance($pollChoice,'['.$key.']image');\n if ($image->name != '') {\n $pollChoice->poll_id = $model->id; \n $pollChoice->label = $arrays_tn[$key]['label'];\n $pollChoice->weight = $arrays_tn[$key]['weight'];\n $pollChoice->jumlah_rekayasa = $arrays_tn[$key]['jumlah_rekayasa'];\n $pollChoice->image = substr(md5(time()),0,5).'-'.rand(100, 2500).'-'.$image->name;\n $image->saveAs(Yii::getPathOfAlias('webroot').'/images/uploads/polling/'.$pollChoice->image);\n $pollChoice->save(false);\n }\n endforeach;\n }\n // end input baru\n }\n\n if ($model->save(false)) {\n $this->redirect(array('index'));\n }\n }\n \n $this->render('update',array(\n 'model'=>$model,\n 'choices'=>$choices,\n ));\n }", "title": "" }, { "docid": "9dc115f8dbc9d56d8bbc6a798bded07a", "score": "0.6208388", "text": "function update(){\n $data = array(\n 'name' => $_POST['name'],\n 'multiplicity' => $_POST['multiplicity'],\n 'severity' => $this->input->post('severity'),\n 'unit' => $_POST['unit']\n );\n $this->m_activities->update($data);\n $data['records'] = $this->m_activities->getAll();\n $this->load->view('v_activities', $data);\n\t}", "title": "" }, { "docid": "9f31b47ab07ed8f7effea689ae758174", "score": "0.6189352", "text": "public function update()\n {\n $this->getDataBackend()->update();\n }", "title": "" }, { "docid": "a35d19b7ab6b5e023f68103041ada972", "score": "0.6187565", "text": "public function update_form( $form_id, $data );", "title": "" }, { "docid": "9f8705bb65d1819772c1f4718555042a", "score": "0.61750513", "text": "function Update($data)\n {\n }", "title": "" }, { "docid": "b48883dd6d3a628c60e452ca97a1e75a", "score": "0.6169281", "text": "public function update(DaoModel $model, array $data) : DaoModel\n {\n $data = $this->cleanData($data);\n\n foreach ($data as $key => $value)\n {\n $model->$key = $value;\n }\n\n $model->save();\n\n $model->update($data);\n\n $this->fireModelEvent(\"Updated\", $model);\n\n return $model;\n }", "title": "" }, { "docid": "623734467a8a3a6597b04794cdfdc35c", "score": "0.6154371", "text": "public function update(){\r\n\r\n\t\t$this->view = 'index';\r\n\t\t$this->keep_action = \"\";\r\n\r\n\t\tGenerator::scaffold(&$this->form, $this->scaffold);\r\n\r\n\t\tif(!kumbia::is_model($this->source)){\r\n\t\t\tFlash::error('No hay un modelo \"'.$this->source.'\" para hacer la operacin de actualizaci&oacute;n');\r\n\t\t\t$this->_create_model();\r\n\t\t\treturn $this->route_to('action: index');\r\n\t\t}\r\n\r\n\t\t$modelName = kumbia::get_model_name($this->source);\r\n\r\n\t\tif(!$this->{$modelName}->is_dumped()){\r\n\t\t\t$this->{$modelName}->dump();\r\n\t\t}\r\n\r\n\t\tforeach($this->{$modelName}->attributes_names as $field_name){\r\n\t\t\t$this->{$modelName}->$field_name = $_REQUEST[\"fl_$field_name\"];\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Busca si existe un m&eacute;todo o un llamado variable al m&eacute;todo\r\n\t\t * validation, si este m&eacute;todo devuelve false termina la ejecuci�n\r\n\t\t * de la accin\r\n\t\t */\r\n\t\tif(method_exists($this, \"validation\")){\r\n\t\t\tif($this->validation()===false){\r\n\t\t\t\t$this->keep_action = \"update\";\r\n\t\t\t\tif(!Kumbia::$routed){\r\n\t\t\t\t\treturn $this->route_to('action: index');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(Kumbia::$routed){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif(isset($this->validation)){\r\n\t\t\t\tif($this->{$this->validation}()===false){\r\n\t\t\t\t\t$this->keep_action = \"update\";\r\n\t\t\t\t\tif(!Kumbia::$routed){\r\n\t\t\t\t\t\treturn $this->route_to('action: index');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(Kumbia::$routed){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Busca si existe un metodo o un llamado variable al metodo\r\n\t\t * before_update, si este metodo devuelve false termina la ejecucion\r\n\t\t * de la accion\r\n\t\t */\r\n\t\tif(method_exists($this, \"before_update\")){\r\n\t\t\tif($this->before_update()===false){\r\n\t\t\t\t$this->keep_action = \"update\";\r\n\t\t\t\tif(!Kumbia::$routed){\r\n\t\t\t\t\treturn $this->route_to('action: index');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(Kumbia::$routed){\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif(isset($this->before_update)){\r\n\t\t\t\tif($this->{$this->before_update}()===false){\r\n\t\t\t\t\t$this->keep_action = \"update\";\r\n\t\t\t\t\tif(!Kumbia::$routed){\r\n\t\t\t\t\t\treturn $this->route_to('action: index');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(Kumbia::$routed){\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Subimos los archivos de Im&aacute;genes del Formulario\r\n\t\t */\r\n\t\tforeach($this->form['components'] as $fkey => $rrow){\r\n\t\t\tif($this->form['components'][$fkey]['type']=='image'){\r\n\t\t\t\tif($_FILES[\"fl_\".$fkey]){\r\n\t\t\t\t\tmove_uploaded_file($_FILES[\"fl_\".$fkey]['tmp_name'], htmlspecialchars(\"public/img/upload/{$_FILES[\"fl_\".$fkey]['name']}\"));\r\n\t\t\t\t\t$this->{$modelName}->$fkey = urlencode(htmlspecialchars(\"upload/\".$_FILES[\"fl_\".$fkey]['name']));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Utilizamos el modelo ActiveRecord para actualizar el registro\r\n\t\t */\r\n\t\tif($this->{$modelName}->update()){\r\n\t\t\tif($this->success_update_message){\r\n\t\t\t\tFlash::success($this->success_update_message);\r\n\t\t\t} else {\r\n\t\t\t\tFlash::success(\"Se actualiz&oacute; correctamente el registro\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif($this->failures_update_message){\r\n\t\t\t\tFlash::error($this->failure_update_message);\r\n\t\t\t} else {\r\n\t\t\t\tFlash::error(\"Hubo un error al actualizar el registro\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tforeach($this->{$modelName}->attributes_names as $field_name){\r\n\t\t\t$_REQUEST[\"fl_$field_name\"] = $this->{$modelName}->$field_name;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Busca si existe un m&eacute;todo o un llamado variable al m&eacute;todo\r\n\t\t * after_update\r\n\t\t */\r\n\t\tif(method_exists($this, \"after_update\")){\r\n\t\t\t$this->after_update();\r\n\t\t\tif(Kumbia::$routed){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif(isset($this->after_update)){\r\n\t\t\t\t$this->{$this->after_update}();\r\n\t\t\t\tif(Kumbia::$routed){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Muestra el Formulario en la accion index\r\n\t\treturn $this->route_to('action: index');\r\n\r\n\t}", "title": "" }, { "docid": "c1ff647871a28b0021c2db3265e295b4", "score": "0.614599", "text": "public function updaterecipe() {\n //method called when submit button is pressed\n $array = array();\n $array[] = array(\n 'code' => $this->input->post('code'),\n 'name' => $this->input->post('name'),\n 'description' => $this->input->post('description')\n );\n $this->recipes->update($array);\n redirect('/Administration/recipes');\n }", "title": "" }, { "docid": "b0b54ca334c646b9a168a5ae272ab53b", "score": "0.6144954", "text": "public function update()\n {\n $data = json_decode($this->input->post('data'), TRUE);\n $result = $this->Model->delete($this->input->post('id'));\n $this->guardar();\n }", "title": "" }, { "docid": "1a20504be3f93017d2032b976906d9ca", "score": "0.61438006", "text": "public function update(array $data, int $id)\n {\n return Model::find($id)->update($data);\n }", "title": "" }, { "docid": "6cdadefc2232dc21e827c6d8adc3f475", "score": "0.6122549", "text": "function update(array $fieldsAndValues);", "title": "" }, { "docid": "69a2320b90471b743326cee8ac7272f0", "score": "0.61166203", "text": "public function updateForm(){\n $action = $this->model->getAction();\n $this->view->updateForm($action);\n }", "title": "" }, { "docid": "399204ce8bf12bc4d7870cfd24e1348b", "score": "0.6112238", "text": "public function updateRecord($formData)\n {\n }", "title": "" }, { "docid": "09ec80843f728795785e2775a4aab331", "score": "0.6103182", "text": "public function update()\n {\n $values = get_object_vars($this->model);\n\n foreach ($values as $key => $value) {\n if (in_array($key, $this->_validColumns))\n {\n if($key == \"date\" && $value instanceof Zend_Date)\n $data[$key] = $value->get(Zend_Date::TIMESTAMP);\n else\n $data[$key] = $value;\n }\n }\n\n $this->db->update(\n self::TABLE_NAME,\n $data,\n array('id = ?' => $this->model->getId())\n );\n }", "title": "" }, { "docid": "25b7dc7200a068269557fa3419a705bd", "score": "0.60936624", "text": "public function updateEmployee($data){\n\n $this->full_name = $data['full_name'];\n $this->birth_date = $data['birth_date'];\n $this->city = $data['city'];\n $this->phone_number = $data['phone_number'];\n $this->email = $data['email'];\n $this->id = $data['id'];\n\n $sql = \"UPDATE employees SET full_name = :full_name, birth_date = :birth_date , city = :city,\n phone_number = :phone_number, email = :email WHERE id = :id\";\n\n $result = $this->query($sql, [\n 'full_name' => $this->full_name,\n 'birth_date' => $this->birth_date,\n 'city' => $this->city,\n 'phone_number' => $this->phone_number,\n 'email' => $this->email,\n 'id' => $this->id\n ]);\n }", "title": "" }, { "docid": "fa8c7975cf66331eede5ed6599bc9670", "score": "0.6086277", "text": "public function updateItem($data)\n {\n \n }", "title": "" }, { "docid": "f0de5bc6c2cd12d322dde1caa03acf9e", "score": "0.6068626", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n\n\n\n $input = $request->all();\n\n $product->fill($input)->save();\n\nreturn back();\n }", "title": "" }, { "docid": "7a02cb3e895a2e4736834216206128d5", "score": "0.6066096", "text": "public function update(array $data, $id)\n {\n return $this->model\n ->where('id', $id)\n ->update($data);\n }", "title": "" }, { "docid": "ebc50518dcbc82980524c87aa9020cf6", "score": "0.6065802", "text": "public function update_submit()\n {\n $id = $this->uri->segment(3);\n\n //menangkap data input dari view\n $nama = $this->input->post('first_name');\n $email = $this->input->post('email');\n $address = $this->input->post('address');\n $numberphone = $this->input->post('numberphone');\n $numberwhatsapp = $this->input->post('numberwhatsapp');\n\n //mengirim data ke model\n $input = array(\n //format : nama field/kolom table => data input dari view\n 'first_name' => $nama,\n 'email' => $email,\n 'address' => $address,\n 'numberphone' => $numberphone,\n 'numberwhatsapp' => $numberwhatsapp,\n );\n\n //memanggil function insert pada model\n //function insert berfungsi menyimpan/create data ke table di database\n $data_pelanggan = $this->pelanggan_model->update($input, $id);\n\n //mengembalikan halaman ke function read\n redirect('pelanggan/read');\n }", "title": "" }, { "docid": "c759c5550c99fad3ca125b4740edc56d", "score": "0.60639733", "text": "public function updateAction(){\n \n $post = $this->getRequest()->getPost();\n $id = $post['id'];\n unset($post['id']);\n $datap=array_filter($post, \"strlen\");\n\n // Arreglar direccion\n if (isset($datap['address'])) {\n $datap['address'] = array('address' => $datap['address'],'city' => $datap['city']);\n unset($datap['city']);\n }\n\n // Acomodo los terminos de pago\n if (isset($datap['term'])) {\n $datap['term'] = array('id' => $datap['term']);\n }\n\n // tipo de cliente\n $type = [];\n if (isset($datap['client'])) {\n $type[] = 'client';\n unset($datap['client']);\n }\n if (isset($datap['provider'])) {\n $type[] = 'provider';\n unset($datap['provider']);\n }\n $datap['type'] = $type;\n\n $cliente = new Application_Model_Client();\n // Envio datos al model\n $data_string = json_encode($datap);\n $resp = $cliente->update($id, $data_string);\n // Envia respuesta a la vista\n $this->view->datos = $resp;\n }", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.60542566", "text": "public function update($id, $data);", "title": "" }, { "docid": "8244ce1302ea544555d5fe06b8ea8f77", "score": "0.60483134", "text": "public function update_multiple($data){\n $this->db->update_batch('nilai', $data, 'id_nilai' );\n }", "title": "" }, { "docid": "1fe323a39ad0085ed17c10e60882b507", "score": "0.6042433", "text": "function updateFromArray(int $id, $vars);", "title": "" }, { "docid": "84a5fbd7e11d16e55977c372ed5f90b3", "score": "0.6041242", "text": "abstract public function updateAll($data_object);", "title": "" }, { "docid": "c68ae4384ad26c6ff2cddd9039985e6c", "score": "0.6036506", "text": "public function actionUpdate()\n {\n $id = 1;\n $model = $this->findModel($id);\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Yii::$app->getSession()->setFlash('success', Adm::t('','Data successfully changed!'));\n return Adm::redirect(['update', 'id' => $model->id]);\n }\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "f740cacabf8c4e6363b7ea0dade90784", "score": "0.6035425", "text": "public function actionUpdate()\n\t{\n if(isset($_POST['Exercises']))\n {\n foreach ($_POST['Exercises'] as $id => $attributes)\n {\n $model = Exercises::model()->findByPk($id);\n if(!$model)\n die('Нет такого задания');\n $model->attributes=$attributes;\n if($model->save())\n echo 1;\n }\n }\n\t}", "title": "" }, { "docid": "7eb4b1d349f15397c57cb7309c836e8d", "score": "0.603406", "text": "public function update($data){\n\t\t\t$this->db->query(\"UPDATE medicos SET nombre = :name, apellido = :lastName, Profesion = :job, estatus = :status WHERE id = :id\");\n\t\t\t$this->db->bind(\":id\", $data[\"id\"]);\n\t\t\t$this->db->bind(\":name\", $data[\"name\"]);\n\t\t\t$this->db->bind(\":lastName\", $data[\"lastName\"]);\n\t\t\t$this->db->bind(\":job\", $data[\"job\"]);\n\t\t\t$this->db->bind(\":status\", $data[\"status\"]);\n\t\t\t$update = $this->db->execute();\n\t\t\treturn $update;\n\t\t}", "title": "" }, { "docid": "6364efeb32f3730adc172b49bb52d597", "score": "0.60242534", "text": "public function update()\n {\n $data = json_decode($this->input->post('data'), TRUE);\n unset($data['id']);\n $result = $this->Model->update($data,$this->input->post('id'));\n if($result)\n {\n $r = array(\"success\" => \"true\");\n }\n else\n {\n $r = array(\"failure\" => \"true\");\n }\n echo json_encode($r);\n }", "title": "" }, { "docid": "8576d995f0ad5fb05e24f4249f91de06", "score": "0.6022245", "text": "public function update() {\n $this->save();\n }", "title": "" }, { "docid": "045efde534ee96a658e3016b6dadccb6", "score": "0.60179484", "text": "public function update()\n {\n\t\t$settingArray = array();\n\t\t$getData = array();\n\t\t$funcName = array();\n\t\t$settingArray = func_get_arg(0);\n\t\tfor($data=0;$data<count($settingArray);$data++)\n\t\t{\n\t\t\t$funcName[$data] = $settingArray[$data][0]->getName();\n\t\t\t$getData[$data] = $settingArray[$data][0]->$funcName[$data]();\n\t\t\t$keyName[$data] = $settingArray[$data][0]->getkey();\n\t\t}\n\t\t// data pass to the model object for update\n\t\t$settingModel = new SettingModel();\n\t\t$status = $settingModel->updateData($getData,$keyName);\n\t\treturn $status;\t\n\t}", "title": "" }, { "docid": "ea7e26d803cea82828b8d68b344e8710", "score": "0.6016571", "text": "public function update(array $data, array $options = []): array\n\t{\n\t\t$options = array_merge([\n\t\t\t'checkboxes' => false,\n\t\t\t'children' => false,\n\t\t\t'load' => true,\n\t\t], $options);\n\n\t\tif ($options['load'])\n\t\t\t$this->load();\n\n\t\tif ($options['checkboxes']) {\n\t\t\t$form = $this->getForm();\n\t\t\tforeach ($form->getDataset() as $k => $d) {\n\t\t\t\tif ($d->options['type'] !== 'checkbox')\n\t\t\t\t\tcontinue;\n\t\t\t\t$data[$k] = $data[$k] ?? 0;\n\t\t\t}\n\t\t}\n\n\t\t$this->beforeUpdate($data);\n\n\t\t$tableModel = $this->getORM()->getDb() ? $this->getORM()->getDb()->getTable($this->settings['table']) : false;\n\t\t$keys = $this->getDataKeys();\n\n\t\tif ($tableModel === false or $keys === false)\n\t\t\t$this->model->error('Can\\'t find cached table model for \"' . $this->settings['table'] . '\"');\n\n\t\t$multilangKeys = [];\n\t\tif (class_exists('\\\\Model\\\\Multilang\\\\Ml')) {\n\t\t\t$mlTables = \\Model\\Multilang\\Ml::getTables($this->getORM()->getDb());\n\t\t\tif (array_key_exists($this->settings['table'], $mlTables)) {\n\t\t\t\t$multilangTable = $this->settings['table'] . $mlTables[$this->settings['table']]['table_suffix'];\n\t\t\t\t$multilangTableModel = $this->getORM()->getDb()->getTable($multilangTable);\n\t\t\t\t$multilangKeys = $mlTables[$this->settings['table']]['fields'];\n\t\t\t}\n\t\t}\n\n\t\t$saving = [];\n\t\t$dontUpdateSaving = false;\n\t\tforeach ($data as $k => $v) {\n\t\t\tif (in_array($k, $multilangKeys)) { // In case of multilang columns, I only update the current language in the element\n\t\t\t\t$column = $multilangTableModel->columns[$k];\n\t\t\t\t$saving[$k] = $v;\n\n\t\t\t\tif (is_array($v)) {\n\t\t\t\t\tif (array_key_exists(\\Model\\Multilang\\Ml::getLang(), $v)) {\n\t\t\t\t\t\t$dontUpdateSaving = true;\n\t\t\t\t\t\t$v = $v[\\Model\\Multilang\\Ml::getLang()];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} elseif (in_array($k, $keys) or $k === $this->settings['primary']) {\n\t\t\t\t$column = $tableModel->columns[$k];\n\t\t\t\t$saving[$k] = $v;\n\t\t\t} else {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ($column['null'] and $v === '') {\n\t\t\t\t$v = null;\n\t\t\t} else {\n\t\t\t\tif (in_array($column['type'], ['date', 'datetime'])) {\n\t\t\t\t\tif (is_object($v)) {\n\t\t\t\t\t\tif (get_class($v) != 'DateTime')\n\t\t\t\t\t\t\t$this->model->error('Only DateTime objects can be saved in a date or datetime field.');\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$v = $v ? date_create($v) : null;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ($v) {\n\t\t\t\t\t\tswitch ($column['type']) {\n\t\t\t\t\t\t\tcase 'date':\n\t\t\t\t\t\t\t\t$v = $v->format('Y-m-d');\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'datetime':\n\t\t\t\t\t\t\t\t$v = $v->format('Y-m-d H:i:s');\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ($column['null']) $v = null;\n\t\t\t\t\t\telse $v = '';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!$dontUpdateSaving)\n\t\t\t\t$saving[$k] = $v;\n\t\t\t$this->data_arr[$k] = $v;\n\t\t}\n\n\t\tif (isset($this->form))\n\t\t\t$this->form->setValues($data);\n\n\t\t$this->afterUpdate($saving);\n\n\t\treturn $saving;\n\t}", "title": "" }, { "docid": "0d59fe1e39cd83a9ba15a3d92c219855", "score": "0.601586", "text": "public function updateOrCreate($updateArray, $data);", "title": "" }, { "docid": "ee740de973139950861963738c337610", "score": "0.6014382", "text": "public function update()\n {\n if ($this->request->exists('post')) {\n $data = $this->request->get();\n if ($data['csrftoken'] && $this->token->validateToken($data['csrftoken'], $data['frm_name'])) {\n $table = str_replace(' ', '', ucwords(str_replace('_', ' ', $data['table'])));\n $model = $this->container->make($table . 'Manager'::class)->set_SoftDelete(true);\n $categories = ($table === 'posts' && array_key_exists('categorie', $data)) ? array_values($data['categorie']) : '';\n $colID = $model->get_colID();\n $model->getDetails($data[$colID]);\n if ($model->count() === 1) {\n $model = current($model->get_results());\n AuthManager::check_UserSession();\n $model->populate($data)->setselect2Data($data);\n $model->id = $data[$colID];\n method_exists('Form_rules', $table) ? $model->validator($data, Form_rules::$table()) : '';\n if ($model->validationPasses()) {\n $file = H_upload::upload_files($this->request->getFiles(), $model, $this->container);\n if ($file['success']) {\n $model = $file['msg'];\n $action = ($table == 'users' && isset($data['action'])) ? $data['action'] : '';\n if ($model->manageCheckboxes($data)->save($data)->count() === 1) {\n H_upload::manage_uploadImage($model->$colID, $table, $data);\n (!empty($categories)) ? $model->saveCategories($categories, 'post_categorie') : '';\n $this->container->make(NotificationManager::class)->notify(AuthManager::currentUser()->userID, $data['notification'] ?? 'Admin', 'A' . $table . ' has been updated');\n $this->jsonResponse(['result' => 'success', 'msg' => $model->get_successMessage('update', $data)]);\n } else {\n $this->jsonResponse(['result' => 'error', 'msg' => FH::showMessage('danger', 'Server encountered errors!')]);\n }\n } else {\n $this->jsonResponse(['result' => 'error-file', 'msg' => $file['msg']]);\n }\n } else {\n $this->jsonResponse(['result' => 'error-field', 'msg' => $model->getErrorMessages()]);\n }\n } else {\n $this->jsonResponse(['result' => 'error', 'msg' => FH::showMessage('warning', 'User not found!')]);\n }\n } else {\n $this->jsonResponse(['result' => 'error', 'msg' => FH::showMessage('danger', 'Bad Csrf token')]);\n }\n }\n }", "title": "" }, { "docid": "15fbd4c63f2af81f4495e9ab4ffa59ca", "score": "0.6010495", "text": "public function update(array $data, int $id)\n {\n $record = $this->show($id);\n\n return $record->update($data);\n }", "title": "" }, { "docid": "5f7460475fb72427ec6153829489ef27", "score": "0.60050887", "text": "public function update(array $data, $id)\n {\n // $pro =User::find($id);\n // 'name' => $data['name'],\n // 'email' => $data['email'],\n // 'country' => $data['country'],\n // 'phone' => $data['phone'],\n // 'town'=>$data['town'],\n // 'address'=>$data['address'],\n // 'role'=>$data['role'],\n // 'password' => Hash::make($data['password']),\n // $pro->save();\n // return redirect('/product/')->with('success','Update successfully');\n }", "title": "" }, { "docid": "0be2cf4dcd23e7004527bdbf14d84cb5", "score": "0.6002072", "text": "public function update( $id, $inputs );", "title": "" }, { "docid": "e4a8255b0616014d65cee31720bd3fdb", "score": "0.5999556", "text": "public function update($data, int $id)\n {\n $faq = Faq::find($id);\n\n $faq->type = $data['type'];\n $faq->program_id = isset($data['program_id']) ? $data['program_id'] : NULL;\n $faq->institution_id = isset($data['institution_id']) ? $data['institution_id'] : NULL;\n foreach ($data['faq'] as $key => $value) {\n $datas[$key] = $value;\n }\n\n $faq->fill($datas)->save();\n return $faq;\n }", "title": "" }, { "docid": "4d832647d92b6afdc1c21b9fff1f742b", "score": "0.5996212", "text": "public function update(){\n\n $table_field = [\n 'booth_title',\n 'booth_price',\n 'booth_left',\n 'booth_right',\n 'booth_location',\n 'booth_unit_no',\n 'booth_address',\n 'booth_floor',\n 'booth_status',\n 'booth_desc',\n 'booth_min_day',\n 'booth_max_day',\n ];\n\n $table_value = [\n $this->booth_title,\n $this->booth_price,\n $this->booth_left,\n $this->booth_right,\n $this->booth_location,\n $this->booth_unit_no,\n $this->booth_address,\n $this->booth_floor,\n $this->booth_status,\n $this->booth_desc,\n $this->booth_min_day,\n $this->booth_max_day,\n ];\n\n $remark = \"Update Booth.\";\n if(!$this->save->UpdateData($table_field,$table_value,'db_booth','booth_id',$remark,$this->booth_id)){\n return false;\n }else{\n return true;\n }\n }", "title": "" }, { "docid": "20128d38edd91ca0535a53750c0a0e6c", "score": "0.5992362", "text": "public function putRequest($arrData){\n $kegiatan_pengajian = \"\";\n $nama_ustadz = \"\";\n $jumlah_jamaah_pengajian = \"\";\n $newArrData = [];\n\n foreach($arrData as $key=>$value){\n if(strpos($key, DPKEntity::KEGIATAN_PENGAJIAN) !== false){\n $kegiatan_pengajian .= $value . '__';\n $newArrData = array_merge($newArrData, [DPKEntity::KEGIATAN_PENGAJIAN => $kegiatan_pengajian]);\n } else if(strpos($key, DPKEntity::NAMA_USTADZ_KOTA) !== false){\n $nama_ustadz .= $value . '__';\n $newArrData = array_merge($newArrData, [DPKEntity::NAMA_USTADZ_KOTA => $nama_ustadz]);\n } else if(strpos($key, DPKEntity::JUMLAH_JAMAAH_PENGAJIAN) !== false){\n $jumlah_jamaah_pengajian .= $value . '__';\n $newArrData = array_merge($newArrData, [DPKEntity::JUMLAH_JAMAAH_PENGAJIAN => $jumlah_jamaah_pengajian]);\n } else if(strpos($key, 'save') === false){\n $newArrData = array_merge($newArrData, [$key => ($value == \"\" ? '-' : $value)]);\n }\n }\n try{\n Connection::update($newArrData, [DPKEntity::USER_LOGIN => $this->getCurrentUser()]);\n } catch (\\Exception $e){\n echo $e->getMessage();\n }\n }", "title": "" }, { "docid": "c2e1fad99e2523a55f0d522575e6b551", "score": "0.5991679", "text": "function action_update_order()\n {\n\n //convert quotes in json string back to normal\n $jArray = htmlspecialchars_decode($_POST['orderArray']);\n\n //create object/array from json data\n $orderArray = json_decode($jArray, true);\n\n foreach ($orderArray as $id => $order_number) {\n\n $task = new ProjectTask();\n $task->retrieve($id);\n $task->order_number = $order_number;\n $task->save();\n\n }\n }", "title": "" } ]
4818b07c8edf62bcd27804744efe43f5
Return the resolved amount for the transaction for prabhuPay payment
[ { "docid": "9f3e50a915d26106006d094fb8278eb2", "score": "0.63586944", "text": "public static function resolvePrabhuPayAmount($transaction, $orders)\n {\n $orderFinalPrice = (static::getTotalPrice($orders) +\n static::getGatewayServiceCharge((optional($transaction)->service_charge ?? 0)));\n\n return static::getPrice($orderFinalPrice - $transaction->voucher_discount);\n }", "title": "" } ]
[ { "docid": "1dee20b04338085dce8e77e2f8b6b74f", "score": "0.63779855", "text": "public function getAmountPaid(): float;", "title": "" }, { "docid": "3cea2531ce13dbc1285b8807798c154a", "score": "0.6334552", "text": "public function amountPaid();", "title": "" }, { "docid": "738f25fe652df7db50c563dbe414e005", "score": "0.6245969", "text": "public function getAmountPayed(){\n \t$total = 0;\n \tforeach(Charge::where(['ChargeSourceId' => $this->{$this->primaryKey}], $this->companyId)->get() as $charge)\n \t\t$total += ($charge->ChargeAmount * ($charge->ChargeIsRefund ? -1 : 1));\n \t\n \treturn $total;\n }", "title": "" }, { "docid": "2163e3c9ef534947bf98a8fe611b6dd9", "score": "0.6244074", "text": "public static function resolveAmount($transaction)\n {\n $class = get_class($transaction);\n if($class == KunyoCurrency::class)\n return self::getPrice($transaction->amount);\n\n elseif ($class == Payment::class){\n $orders = $transaction->orders;\n $gateway = PaymentConstant::gateways()[$transaction->payment_gateway_id];\n $function = 'resolve' . str_replace(' ', '', $gateway) . 'Amount';\n return self::{$function}($transaction, $orders);\n }\n return 0;\n }", "title": "" }, { "docid": "3e2b1fba5fff39b455662ab297bdc874", "score": "0.6090888", "text": "function get_transaction_amount()\n {\n return $this->moneybookers_post_vars['mb_amount']; \n }", "title": "" }, { "docid": "ef9cab54752cbc69e9e4945ab1105909", "score": "0.60704106", "text": "public function getRefundedAmount()\n {\n return $this->_getValue('oepaypal_refundedamount');\n }", "title": "" }, { "docid": "e06b0bfac95730218d0df0f3d587a711", "score": "0.5984213", "text": "public function getAmount()\n {\n return $this->_getValue('oepaypal_amount');\n }", "title": "" }, { "docid": "cdf566de0aaf64fdcc78dfab4128f775", "score": "0.59582657", "text": "public function payOutstandingAmount(){\n\t\tRequirements::customScript(<<<JS\n\n\t\t\t$('#GetPayments').click();\n\t\t\t\t\nJS\n\t\t\t\t);\n\t\t\n\t\t$amount = ($_POST['SelfPayAmt'] > 100)? 100: $_POST['SelfPayAmt'];\n\t\t$data = array(\n\t\t\t\t'RefID' => Member::currentUserID(),\n\t\t\t\t'RefName' => 'memberId',\n\t\t\t\t'Payer' => 'member',\n\t\t\t\t'Credit' => $amount\n\t\t\t\t\n\t\t);\n\t\treturn $this->customise($data)->renderWith(array('TenderPage_showPayments','Page'));\n\t}", "title": "" }, { "docid": "06f89be36653217783a7826aefb9ec9d", "score": "0.59273505", "text": "public function actionPay()\n {\n $orderId = Yii::$app->request->get('orderId');\n if (auth()) {\n $order = Order::findOne(['id' => $orderId, 'status' => Order::STATUS_DRAFT, 'created_by' => auth()->id]);\n } else {\n $order = Order::findOne(['id' => $orderId, 'status' => Order::STATUS_DRAFT]);\n }\n if (!$order) throw new NotFoundHttpException('the order with that id does not exest');\n\n // chack if there already is an order with the given paypal order id in the database (there should not be)\n $paypalOrderId = Yii::$app->request->post('orderID');\n $orderAlreadyExists = Order::find()->andWhere(['paypal_order_id' => $paypalOrderId])->exists();\n if ($orderAlreadyExists) {\n throw new BadRequestHttpException();\n }\n\n // validate transaction on paypal\n $environment = new SandboxEnvironment(Yii::$app->params['paypalClientId'], Yii::$app->params['paypalClientSecret']);\n $client = new PayPalHttpClient($environment);\n\n /** @var PayPalCheckoutSdk\\Orders\\OrdersGetRequest $response */\n $response = $client->execute(new OrdersGetRequest($paypalOrderId));\n\n if ($response->statusCode === 200) {\n $order->paypal_order_id = $paypalOrderId;\n $status = $response->result->status;\n $order->status = $status === 'COMPLETED' ? Order::STATUS_COMPLETED : Order::STATUS_FAILED;\n\n $order->transaction_id = $response->result->purchase_units[0]->payments->captures[0]->id;\n\n // check it the paypal paid amount and currnecy is the same as in the database (it should not be changed)\n $paidAmount = 0;\n foreach ($response->result->purchase_units as $purchase_unit) {\n if ($purchase_unit->amount->currency_code == 'USD') {\n $paidAmount += $purchase_unit->amount->value;\n }\n }\n if ($order->save()) {\n return ['success' => true];\n }\n }\n\n throw new BadRequestHttpException();\n }", "title": "" }, { "docid": "9c8ba41015e6eb9e2b4f56129580b016", "score": "0.5920798", "text": "public function getPaymentValues()\n {\n $data = $this->getValues();\n $values = array(\n 'fare' => 0,\n 'iva' => 0,\n 'taereo' => 0,\n 'taxes' => 0,\n 'ta' => 0,\n 'total' => 0\n );\n\n foreach($data->passengers as $pax => $quantity)\n {\n foreach($data->values[$pax] as $tax => $amount)\n {\n $money = (float)($amount * $quantity);\n\n // Se valida el concepto y se suma seguns corrsponda, para luego\n // organizarlos y enviarcelos al medio de pago\n if($tax == 'FARE')\n $values['fare'] += $money;\n\n elseif($tax == 'ADMIN')\n $values['ta'] += $money;\n\n elseif(preg_match('/^YS/', $tax))\n $values['iva'] += $money;\n\n elseif(preg_match('/^CO/', $tax))\n $values['taereo'] += $money;\n else\n $values['taxes'] += $money;\n\n $values['total'] += $money;\n }\n }\n\n if($values['ta'] != $this->_order->fare_ta + $this->_order->taxes_ta)\n throw new Exception('TA ERROR');\n\n $paymentInfo = new stdClass();\n\n $paymentInfo->TotalAmount = $values['total'] - $values['ta'] - $values['taereo'];\n $paymentInfo->TaxAmount = $values['iva'];\n $paymentInfo->DevolutionBaseAmount = $paymentInfo->TaxAmount > 0 ? $values['fare'] : 0;\n $paymentInfo->ServiceFee = $values['ta'];\n $paymentInfo->ServiceFeeDevolution = $this->_order->fare_ta;\n $paymentInfo->ServiceFeeTax = $this->_order->taxes_ta;\n $paymentInfo->AirportTax = $values['taereo'];\n\n return $paymentInfo;\n }", "title": "" }, { "docid": "56a736ac5dec58bafeb5bdbef1f28db5", "score": "0.5898313", "text": "public function getAmountToPay()\n {\n return $this->amountToPay;\n }", "title": "" }, { "docid": "4da91ae877f824348bd027a40b0f4fe9", "score": "0.5879609", "text": "function getPotentialMoney($membership_id){\n\t\t\t//getting all transaction of a member\n\t\t\t$transaction = $this->manage_content->getValue_twoCoditions(\"money_transfer_log\",\"*\",\"membership_id\",\"potentialMoney\",\"notes\",$membership_id); \n\t\t\t//initialize a variable for serial no calculation\n\t\t\t$sl_no = 1;\n\t\t\t//initialize a variable for total amount calculation\n\t\t\t$total_amount = 0;\n\t\t\tif(count($transaction[0]) > 0)\n\t\t\t{\n\t\t\t\tforeach($transaction as $transactions){\n\t\t\t\t\t//checking for only debited amount\n\t\t\t\t\tif(!empty($transactions['debit']))\n\t\t\t\t\t{\t\n\t\t\t\t\t\tif(substr($transactions['product_id'],0,1) == 'C')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//fetching the name of product from product table\n\t\t\t\t\t\t\t$coupon_details = $this->manage_content->\n\t\t\t\t\t\t\tgetValue_where(\"coupon_table\",\"*\",\"coupon_id\",$transactions['product_id']);\n\t\t\t\t\t\t\t//showing the details of money debited in detail\n\t\t\t\t\t\t\techo '<tr>\n\t\t\t\t\t\t\t\t\t<td>'.$sl_no.'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$coupon_details[0]['coupon_name'].'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$transactions['product_quantity'].'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$this->changeDateFormat($transactions['date']).'</td>\n\t\t\t\t\t\t\t\t\t<td> € '.$transactions['debit'].'</td>\n\t\t\t\t\t\t\t\t</tr>';\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// total amount calculation\n\t\t\t\t\t\t\t\t$total_amount = $total_amount + $transactions['debit'];\n\t\t\t\t\t\t\t\t//increment of serial_no variable\n\t\t\t\t\t\t\t\t$sl_no++;\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//checking for membership product or not\n\t\t\t\t\t\t\tif(substr($transactions['product_id'],0,2) == 'M_')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$table_name = 'membership_product';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$table_name = 'product_table';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//fetching the name of product from product table\n\t\t\t\t\t\t\t$product_details = $this->manage_content->\n\t\t\t\t\t\t\tgetValue_where($table_name,\"*\",\"product_id\",$transactions['product_id']);\n\t\t\t\t\t\t\t//showing the details of money debited in detail\n\t\t\t\t\t\t\techo '<tr>\n\t\t\t\t\t\t\t\t\t<td>'.$sl_no.'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$product_details[0]['product_name'].'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$transactions['product_quantity'].'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$this->changeDateFormat($transactions['date']).'</td>\n\t\t\t\t\t\t\t\t\t<td> € '.$transactions['debit'].'</td>\n\t\t\t\t\t\t\t\t</tr>';\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// total amount calculation\n\t\t\t\t\t\t\t\t$total_amount = $total_amount + $transactions['debit'];\n\t\t\t\t\t\t\t\t//increment of serial_no variable\n\t\t\t\t\t\t\t\t$sl_no++;\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\techo '';\n\t\t\t}\n\t\t\t\n\t\t\t//checking from invalid potential money table\n\t\t\t$invalid_potentials = $this->manage_content->getValue_where(\"invalid_potential_money\",\"*\",\"membership_id\",$membership_id);\n\t\t\tif(!empty($invalid_potentials[0]))\n\t\t\t{\n\t\t\t\tforeach($invalid_potentials as $invalid_potential)\n\t\t\t\t{\n\t\t\t\t\tif(substr($invalid_potential['product_id'],0,1) == 'C')\n\t\t\t\t\t{\n\t\t\t\t\t\t//fetching the name of product from product table\n\t\t\t\t\t\t$coupon_details = $this->manage_content->\n\t\t\t\t\t\tgetValue_where(\"coupon_table\",\"*\",\"coupon_id\",$invalid_potential['product_id']);\n\t\t\t\t\t\t//showing the details of money debited in detail\n\t\t\t\t\t\techo '<tr>\n\t\t\t\t\t\t\t\t<td>'.$sl_no.'</td>\n\t\t\t\t\t\t\t\t<td>'.$coupon_details[0]['coupon_name'].'</td>\n\t\t\t\t\t\t\t\t<td>'.$invalid_potential['product_quantity'].'</td>\n\t\t\t\t\t\t\t\t<td>'.$this->changeDateFormat($invalid_potential['date']).'</td>\n\t\t\t\t\t\t\t\t<td> € '.$invalid_potential['amount'].'</td>\n\t\t\t\t\t\t\t</tr>';\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// total amount calculation\n\t\t\t\t\t\t\t$total_amount = $total_amount + $invalid_potential['amount'];\n\t\t\t\t\t\t\t//increment of serial_no variable\n\t\t\t\t\t\t\t$sl_no++;\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//checking for membership product or not\n\t\t\t\t\t\tif(substr($invalid_potential['product_id'],0,2) == 'M_')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$table_name = 'membership_product';\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$table_name = 'product_table';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//fetching the name of product from product table\n\t\t\t\t\t\t$product_details = $this->manage_content->\n\t\t\t\t\t\tgetValue_where($table_name,\"*\",\"product_id\",$invalid_potential['product_id']);\n\t\t\t\t\t\t//showing the details of money debited in detail\n\t\t\t\t\t\techo '<tr>\n\t\t\t\t\t\t\t\t<td>'.$sl_no.'</td>\n\t\t\t\t\t\t\t\t<td>'.$product_details[0]['product_name'].'</td>\n\t\t\t\t\t\t\t\t<td>'.$invalid_potential['product_quantity'].'</td>\n\t\t\t\t\t\t\t\t<td>'.$this->changeDateFormat($invalid_potential['date']).'</td>\n\t\t\t\t\t\t\t\t<td> € '.$invalid_potential['amount'].'</td>\n\t\t\t\t\t\t\t</tr>';\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// total amount calculation\n\t\t\t\t\t\t\t$total_amount = $total_amount + $invalid_potential['amount'];\n\t\t\t\t\t\t\t//increment of serial_no variable\n\t\t\t\t\t\t\t$sl_no++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//showing total amount in table\n\t\t\techo '<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td class=\"total_amount\"> Total Amount: </td>\n\t\t\t\t\t\t<td> € '.$total_amount.'</td>\n\t\t\t\t\t</tr>';\n\t\t}", "title": "" }, { "docid": "07dfd89075323664e56e7e39eda6085d", "score": "0.5878784", "text": "public function getPaymentAmount(): ?int\n {\n return $this->paymentAmount;\n }", "title": "" }, { "docid": "ccf343b0a14b5f0ac48858b56017e4c3", "score": "0.5868711", "text": "public function getDepositedAmount()\n {\n $paymentAmountInfo = $this->getPaymentAmountInfo();\n return array_key_exists('depositedAmount', $paymentAmountInfo) ? $paymentAmountInfo['depositedAmount'] : null;\n }", "title": "" }, { "docid": "fb6969bdfb1ae13a7e7e36b629bb96c2", "score": "0.5861457", "text": "public function getTransactionAmountToPay()\n {\n return $this->transactionAmountToPay;\n }", "title": "" }, { "docid": "fd6b0c9bb739383eee386a19e6b60fa2", "score": "0.5831267", "text": "private function chargeMoney($payment, $request)\n {\n $merchantAuthentication = new AnetAPI\\MerchantAuthenticationType();\n $merchantAuthentication->setName($this->getSetting('api_login_id'));\n $merchantAuthentication->setTransactionKey($this->getSetting('transaction_key'));\n\n\n // Create the payment data for a credit card\n $creditCard = new AnetAPI\\CreditCardType();\n $creditCard->setCardNumber(preg_replace('~[^0-9]~', '', $request['number']));\n $creditCard->setExpirationDate(preg_replace('~[^0-9-]~', '', $request['expiration']));\n $creditCard->setCardCode(intval($request['cvv']));\n\n\n // Add the payment data to a paymentType object\n $paymentOne = new AnetAPI\\PaymentType();\n $paymentOne->setCreditCard($creditCard);\n\n // Create order information\n $order = new AnetAPI\\OrderType();\n $order->setInvoiceNumber($payment['id']);\n\n\n // Create a TransactionRequestType object and add the previous objects to it\n $transactionRequestType = new AnetAPI\\TransactionRequestType();\n $transactionRequestType->setTransactionType(\"authCaptureTransaction\");\n $transactionRequestType->setAmount(floatval($payment['meta']['pay_amount']));\n $transactionRequestType->setCurrencyCode($payment['meta']['pay_currency']);\n $transactionRequestType->setOrder($order);\n $transactionRequestType->setPayment($paymentOne);\n\n\n // Assemble the complete transaction request\n $request = new AnetAPI\\CreateTransactionRequest();\n $request->setMerchantAuthentication($merchantAuthentication);\n $request->setRefId('ref' . $payment['id']);\n $request->setTransactionRequest($transactionRequestType);\n\n // Create the controller and get the response\n $controller = new AnetController\\CreateTransactionController($request);\n $response = $controller->executeWithApiResponse(\\net\\authorize\\api\\constants\\ANetEnvironment::SANDBOX);\n\n\n if ($response === null) {\n $this->log(3, \"No response returned\");\n throw new \\Exception($this->lang['authorize.transaction_error']);\n }\n\n\n if ($response->getMessages()->getResultCode() !== \"Ok\") {\n\n $tresponse = $response->getTransactionResponse();\n\n if ($tresponse != null && $tresponse->getErrors() != null) {\n $errors = $tresponse->getErrors();\n } else {\n $errors = $response->getMessages()->getMessage()[0];\n }\n\n $this->log(3, 'Errors: ' . print_r($errors, true));\n throw new \\Exception($this->lang['authorize.transaction_error']);\n }\n\n // Check to see if the API request was successfully received and acted upon\n // Since the API request was successful, look for a transaction response\n // and parse it to display the results of authorizing the card\n $tresponse = $response->getTransactionResponse();\n\n\n if ($tresponse == null || $tresponse->getMessages() == null) {\n\n $errors = [];\n if ($tresponse->getErrors() != null) {\n $errors = $tresponse->getErrors()[0];\n }\n $this->log(3, 'Errors: ' . print_r($errors, true));\n throw new \\Exception($this->lang['authorize.transaction_error']);\n\n }\n\n $this->log(1, 'Response success: ' . print_r($tresponse, true));\n\n }", "title": "" }, { "docid": "625f35dbd0c2758abf8c88d857ba5555", "score": "0.5801862", "text": "protected function amountToCalc() {\n\t\treturn $this->amount;\n\t}", "title": "" }, { "docid": "58cd2202d349ac530441966323ea17fe", "score": "0.57976943", "text": "public function getTrxPaymentAmount()\n\t{\n\t\treturn $this->trxPaymentAmount;\n\t}", "title": "" }, { "docid": "5e2edcb357e510e416906ad55078a702", "score": "0.5789343", "text": "public function total_payment(){\n $res = $this->db->where('status', 'a')->select_sum('payment_amount', 'amount')->get('payments')->row();\n\n if($res){ return $res; }else{ return false;}\n }", "title": "" }, { "docid": "1021d5b60dbf9fb5986821464f6bf3c8", "score": "0.5757374", "text": "public function getPayment();", "title": "" }, { "docid": "4412f95a127573b8f51e76a66e49f22b", "score": "0.57534516", "text": "function icreditsimulator__calculateTotalToPay($requestedAmount=0,$termInDays=1,$settings=null)\r\n {\r\n if($settings==null){\r\n \\Log::error(\"Error in icreditsimulator__calculateTotalToPay not received settings data\");\r\n return 0;\r\n }\r\n if(is_array($settings))\r\n $settings=(object)$settings;\r\n $amortization = $settings->amortization;\r\n $usePlataform = $settings->usePlataform;\r\n $usePlataform = $usePlataform*$termInDays;\r\n $iva = $settings->iva;\r\n $iva=$usePlataform*0.19;//$usePlataform * 19% = iva\r\n $warranty = $settings->warranty;\r\n $warranty=$requestedAmount*0.12;//requestedAmount * 12%\r\n $nominalRate=0.242;//Nominal rate value, the percent (24,2) / 100\r\n $nPery=365;\r\n $i=$nominalRate/$nPery;\r\n $simpleInterest=(pow(1+$i,$nPery))-1;\r\n $interestRate=($simpleInterest*100)/$nPery;\r\n $interestRate=round($interestRate * 10000) / 10000;//Round to 4 decimals\r\n $interest=icreditsimulator__interestCalculation($requestedAmount,$termInDays,$interestRate);\r\n $totalToPay=$interest->totalInterest+$warranty+$usePlataform+$iva+$requestedAmount;\r\n $data=(object)[\r\n \"amortization\"=>$amortization,\r\n \"usePlataform\"=>$usePlataform,\r\n \"iva\"=>$iva,\r\n \"warranty\"=>$warranty,\r\n \"nominalRate\"=>$nominalRate,\r\n \"nPery\"=>$nPery,\r\n \"i\"=>$i,\r\n \"simpeInterest\"=>$simpleInterest,\r\n \"interestRate\"=>$interestRate,\r\n \"interest\"=>$interest,\r\n \"totalToPay\"=>$totalToPay\r\n ];\r\n return $data;\r\n }", "title": "" }, { "docid": "2701c23cfcd3b533a9563073b84648de", "score": "0.5746205", "text": "public function paypal_refund($transaction_id = null,$payment_id = null)\n {\n\n $payment = Payment::find($payment_id);\n $user = Auth::user();\n //dd($user);\n \n try {\n \n $user_name = $this->paypal_user_name; // API User Username\n $password = $this->paypal_password; // API User Password\n $vendor = $this->paypal_vendor; // Merchant Login ID\n // Reseller who registered you for Payflow or 'PayPal' if you registered\n // directly with PayPal\n $partner = $this->paypal_partner; \n\n $sandbox = $this->paypal_sandbox;\n\n $transactionId = $payment->transaction_id; // The PNREF # returned when the card was charged\n $amount = $payment->net_amount;\n $currency = 'USD';\n\n $url = $sandbox ? 'https://pilot-payflowpro.paypal.com'\n : 'https://payflowpro.paypal.com';\n\n $params = array(\n 'USER' => $user_name,\n 'VENDOR' => $vendor,\n 'PARTNER' => $partner,\n 'PWD' => $password,\n 'TENDER' => 'C', // C = credit card, P = PayPal\n 'TRXTYPE' => 'C', // S=Sale, A= Auth, C=Credit, D=Delayed Capture, V=Void \n 'ORIGID' => $transactionId,\n 'AMT' => $amount,\n 'CURRENCY' => $currency\n );\n\n $data = '';\n $i = 0;\n foreach ($params as $n=>$v) {\n $data .= ($i++ > 0 ? '&' : '') . \"$n=\" . urlencode($v);\n }\n\n $headers = array();\n $headers[] = 'Content-Type: application/x-www-form-urlencoded';\n $headers[] = 'Content-Length: ' . strlen($data);\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n curl_setopt($ch, CURLOPT_HEADER, $headers);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n $result = curl_exec($ch);\n curl_close($ch);\n\n // Parse results\n $response = array();\n $result = strstr($result, 'RESULT'); \n $valArray = explode('&', $result);\n foreach ($valArray as $val) {\n $valArray2 = explode('=', $val);\n $response[$valArray2[0]] = $valArray2[1];\n }\n //print_r($response);\n if (isset($response['RESULT']) && $response['RESULT'] == 0) {\n //dd($user);\n $user = User::find($user->id);\n $user->status = '3';\n // $user->save();\n\n $payment->refund_status = '1';\n $payment->save();\n // Auth::logout();\n sendrefundEmail($user->id);\n return true;\n \n } else {\n return redirect()->back()->with('error','some error in refunding'); \n }\n\n \n \n }catch (Exception $e) {\n // Something else happened, completely unrelated to Stripe\n return redirect()->back()->with('error','some error in refunding'); \n }\n\n\n }", "title": "" }, { "docid": "12fee1e995e66fd4179a891dcbdd0f3e", "score": "0.5725634", "text": "public function getLocalPayment() {\n return $this->localPayment;\n }", "title": "" }, { "docid": "51e3f90609327fa6a050a2d62705335d", "score": "0.57088846", "text": "protected function getTotalPaymentAmount()\n {\n $amount = 0.0;\n\n foreach ($this->payments as $payment) {\n $amount += $payment->getAmount();\n }\n\n return $amount;\n }", "title": "" }, { "docid": "74ab3e51445360df9ecb6b403d974331", "score": "0.5703493", "text": "function getPaidAmount() {\n\t\treturn $this->_PaidAmount;\n\t}", "title": "" }, { "docid": "c24b8c34135c78642478db96d5ead7a1", "score": "0.57023746", "text": "function pay($whom, $amount) {\n\t\t\t\t\n\t\tif ($this->account - $amount < 0) { \n\t\t if ($this->loggedin) return 0;\n\t\t $this->overdraw($amount - $this->account);\n\t\t }\n\t\t$this->account -= $amount;\n\t\tlog_and_confirm(\"paid \" . CURRSYM . \"$amount to \" . \n\t\t\t$this->id_to_name($whom), $this->id, 0);\n\t\t$whom_obj =& $this->id_to_obj($whom); \n\t\treturn $whom_obj->benefit($this->id, $amount);\n\t\t}", "title": "" }, { "docid": "941373ed257e3d252e565a64c5ddb407", "score": "0.56953543", "text": "public function getFullPaymentAmount($data){\r\n\r\n $loan_id = $this->db->escape($data['loan_id']);\r\n $member_id = $this->db->escape($data['member_id']);\r\n $dop = $this->db->escape($data['dop']);\r\n $payment_type = $this->db->escape($data['type']);\r\n\r\n $sql = \"\";\r\n\r\n if($payment_type == 1){\r\n $sql = \"SELECT\r\n a.loan_id,\r\n a.date_approved,\r\n a.maturity_date, \r\n concat(c.lname, ', ', c.fname, ' ', c.extn, ' ', c.mname) as name,\r\n\r\n \r\n (\r\n a.principal + \r\n\r\n (((a.principal * (a.interest / 100)) / 30) * DATEDIFF(STR_TO_DATE('{$dop}', '%Y-%m-%d'), a.date_approved)) -\r\n\r\n (\r\n IFNULL( (SELECT SUM(x.amount) FROM t_payments x WHERE x.loan_id = a.loan_id AND x.member_id = a.member_id) , 0)\r\n ) \r\n \r\n ) as amount \r\n FROM t_loans a \r\n INNER JOIN t_members c ON c.member_id = a.member_id\r\n WHERE a.loan_id = '{$loan_id}' AND a.member_id = '{$member_id}'\";\r\n }else{\r\n $sql = \"SELECT\r\n a.loan_id,\r\n a.date_approved,\r\n a.maturity_date,\r\n (((a.principal * (a.interest / 100)) / 30) * DATEDIFF(STR_TO_DATE('{$dop}', '%Y-%m-%d'), a.date_approved)) as aa,\r\n concat(c.lname, ', ', c.fname, ' ', c.extn, ' ', c.mname) as name,\r\n (\r\n a.principal + \r\n\r\n (((a.principal * (a.interest / 100)) / 30) * DATEDIFF(STR_TO_DATE('{$dop}', '%Y-%m-%d'), a.date_approved)) -\r\n\r\n (\r\n IFNULL( (SELECT SUM(x.amount) FROM t_payments x WHERE x.loan_id = a.loan_id AND x.member_id = a.member_id) , 0)\r\n ) \r\n \r\n ) as amount \r\n FROM t_loans a \r\n INNER JOIN t_members c ON c.member_id = a.member_id\r\n WHERE a.loan_id = '{$loan_id}' AND a.member_id = '{$member_id}'\";\r\n }\r\n \r\n\r\n $result = $this->db->query($sql);\r\n if (isset($result[0])){\r\n return $result[0];\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "9a41286e05cd1ca0f559348927ae42d0", "score": "0.56950146", "text": "function getPayableAmount() {\n\t\treturn $this->_PayableAmount;\n\t}", "title": "" }, { "docid": "d29c632e0f9df07b45fb68197c0e29c3", "score": "0.5694085", "text": "function getMyWalletValue($membership_id){\n\t\t\t//getting all transaction of a member\n\t\t\t$transaction = $this->manage_content->\n\t\t\tgetValue_twoCoditions_descending(\"money_transfer_log\",\"*\",\"membership_id\",$membership_id,\"frozen_money\",0);\n\t\t\t//initialize a variable for serial no calculation\n\t\t\t$sl_no = 1;\n\t\t\t//initialize a variable for total amount calculation\n\t\t\t$total_amount = 0;\n\t\t\t$withdraw_amount = 0;\n\t\t\t$withdraw_requested_amount = 0;\n\t\t\t$purchase_by_account = 0;\n\t\t\t$net_amount = 0;\n\t\t\t$add_money = 0;\n\t\t\tif(count($transaction[0]) > 0)\n\t\t\t{ \n\t\t\t\tforeach($transaction as $transactions){\n\t\t\t\t\t//checking for only debited amount\n\t\t\t\t\tif(!empty($transactions['debit']))\n\t\t\t\t\t{\t\n\t\t\t\t\t\tif(substr($transactions['product_id'],0,1) == 'C')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//fetching the name of product from product table\n\t\t\t\t\t\t\t$coupon_details = $this->manage_content->\n\t\t\t\t\t\t\tgetValue_where(\"coupon_table\",\"*\",\"coupon_id\",$transactions['product_id']);\n\t\t\t\t\t\t\t//showing the details of money debited in detail\n\t\t\t\t\t\t\techo '<tr>\n\t\t\t\t\t\t\t\t\t<td>'.$sl_no.'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$coupon_details[0]['coupon_name'].'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$transactions['product_quantity'].'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$this->changeDateFormat($transactions['date']).'</td>\n\t\t\t\t\t\t\t\t\t<td> € '.$transactions['debit'].'</td>\n\t\t\t\t\t\t\t\t</tr>';\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// total amount calculation\n\t\t\t\t\t\t\t\t$total_amount = $total_amount + $transactions['debit'];\n\t\t\t\t\t\t\t\t//increment of serial_no variable\n\t\t\t\t\t\t\t\t$sl_no++;\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//checking for membership product or not\n\t\t\t\t\t\t\tif(substr($transactions['product_id'],0,2) == 'M_')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$table_name = 'membership_product';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$table_name = 'product_table';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//fetching the name of product from product table\n\t\t\t\t\t\t\t$product_details = $this->manage_content->\n\t\t\t\t\t\t\tgetValue_where($table_name,\"*\",\"product_id\",$transactions['product_id']);\n\t\t\t\t\t\t\t//showing the details of money debited in detail\n\t\t\t\t\t\t\techo '<tr>\n\t\t\t\t\t\t\t\t\t<td>'.$sl_no.'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$product_details[0]['product_name'].'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$transactions['product_quantity'].'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$this->changeDateFormat($transactions['date']).'</td>\n\t\t\t\t\t\t\t\t\t<td> € '.$transactions['debit'].'</td>\n\t\t\t\t\t\t\t\t</tr>';\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// total amount calculation\n\t\t\t\t\t\t\t\t$total_amount = $total_amount + $transactions['debit'];\n\t\t\t\t\t\t\t\t//increment of serial_no variable\n\t\t\t\t\t\t\t\t$sl_no++;\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\t//getting the withdrawal amount from database\n\t\t\t\t$withdraws = $this->manage_content->getValue_twoCoditions(\"withdraw_log\",\"*\",\"membership_id\",$membership_id,\"frozen_money\",0);\n\t\t\t\t//getting the amount withdrawal to that member\n\t\t\t\tif(!empty($withdraws[0]))\n\t\t\t\t{\n\t\t\t\t\tforeach($withdraws as $withdrawal)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(substr($withdrawal['withdraw_order_id'],0,8) == 'withdraw')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//checking for status of money transfer\n\t\t\t\t\t\t\tif($withdrawal['status'] == 1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$withdraw_amount = $withdraw_amount + $withdrawal['withdraw_amount'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//checking for requested amount\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$withdraw_requested_amount = $withdraw_requested_amount + $withdrawal['withdraw_amount'];\n\t\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$purchase_by_account = $purchase_by_account + $withdrawal['withdraw_amount'];\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\techo \"\";\n\t\t\t}\n\t\t\t//calculating add money to ewallet\n\t\t\t$add_money_details = $this->manage_content->getValue_twoCoditions_descending(\"addmoney_info\",\"*\",\"membership_id\",$membership_id,\"status\",1);\n\t\t\tif(!empty($add_money_details[0]))\n\t\t\t{\n\t\t\t\tforeach($add_money_details as $add_money_detail)\n\t\t\t\t{\n\t\t\t\t\t$add_money = $add_money + $add_money_detail['amount'];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\techo '</tbody>';\n\n\t\t\t//showing total amount in table\n\t\t\techo '<tbody>\n\t\t\t\t<tr>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td class=\"total_amount\"> Gross Amount: </td>\n\t\t\t\t\t<td> € '.$total_amount.'</td>\n\t\t\t\t</tr>';\n\t\t\t\n\t\t\tif(!empty($withdraw_amount))\n\t\t\t{\n\t\t\t\techo '<tr>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td class=\"total_amount\"> Withdrew Amount: </td>\n\t\t\t\t\t\t<td> € '.$withdraw_amount.'</td>\n\t\t\t\t\t</tr>';\n\t\t\t}\n\t\t\t\n\t\t\tif(!empty($withdraw_requested_amount))\n\t\t\t{\n\t\t\t\techo '<tr>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td class=\"total_amount\"> Amount Requested for Withdrawal: </td>\n\t\t\t\t\t\t<td> € '.$withdraw_requested_amount.'</td>\n\t\t\t\t\t</tr>';\n\t\t\t}\n\t\t\tif(!empty($purchase_by_account))\n\t\t\t{\n\t\t\t\techo '<tr>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td class=\"total_amount\"> Product Purchase Amount: </td>\n\t\t\t\t\t\t<td> € '.$purchase_by_account.'</td>\n\t\t\t\t\t</tr>';\n\t\t\t}\n\t\t\tif(!empty($add_money))\n\t\t\t{\n\t\t\t\techo '<tr>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td class=\"total_amount\"> Add Money To ML Wallet: </td>\n\t\t\t\t\t\t<td> € '.$add_money.'</td>\n\t\t\t\t\t</tr>';\n\t\t\t}\n\t\t\tif((($total_amount + $add_money) - \n\t\t\t($withdraw_requested_amount + $purchase_by_account + $withdraw_amount)) != 0)\n\t\t\t{\n\t\t\t\techo '<tr>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td class=\"total_amount\"> Net Amount: </td>\n\t\t\t\t\t<td> € '.(($total_amount + $add_money) - ($withdraw_requested_amount + $purchase_by_account + $withdraw_amount)).'</td>\n\t\t\t\t</tr>';\n\t\t\t\treturn (($total_amount + $add_money) - ($withdraw_requested_amount + $purchase_by_account + $withdraw_amount));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo '<tr>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td class=\"total_amount\"> Net Amount: </td>\n\t\t\t\t\t<td> € '.(int)(($total_amount + $add_money) - ($withdraw_requested_amount + $purchase_by_account + $withdraw_amount)).'</td>\n\t\t\t\t</tr>';\n\t\t\t\treturn (int)(($total_amount + $add_money) - ($withdraw_requested_amount + $purchase_by_account + $withdraw_amount));\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "0ab8d52136d4c0fdf267fde4462800ec", "score": "0.566934", "text": "protected function getPayment()\n {\n $payment = new Payment($this->getInstruction(), 123.45);\n\n $transaction = new FinancialTransaction();\n $transaction->setTransactionType(FinancialTransaction::TRANSACTION_TYPE_APPROVE);\n $payment->addTransaction($transaction);\n\n $transaction = new FinancialTransaction();\n $transaction->setTransactionType(FinancialTransaction::TRANSACTION_TYPE_DEPOSIT);\n $payment->addTransaction($transaction);\n\n $transaction = new FinancialTransaction();\n $transaction->setTransactionType(FinancialTransaction::TRANSACTION_TYPE_DEPOSIT);\n $payment->addTransaction($transaction);\n\n $transaction = new FinancialTransaction();\n $transaction->setTransactionType(FinancialTransaction::TRANSACTION_TYPE_DEPOSIT);\n $payment->addTransaction($transaction);\n\n $transaction = new FinancialTransaction();\n $transaction->setTransactionType(FinancialTransaction::TRANSACTION_TYPE_REVERSE_APPROVAL);\n $payment->addTransaction($transaction);\n\n $transaction = new FinancialTransaction();\n $transaction->setTransactionType(FinancialTransaction::TRANSACTION_TYPE_REVERSE_APPROVAL);\n $payment->addTransaction($transaction);\n\n $transaction = new FinancialTransaction();\n $transaction->setTransactionType(FinancialTransaction::TRANSACTION_TYPE_REVERSE_DEPOSIT);\n $payment->addTransaction($transaction);\n\n $transaction = new FinancialTransaction();\n $transaction->setTransactionType(FinancialTransaction::TRANSACTION_TYPE_REVERSE_DEPOSIT);\n $payment->addTransaction($transaction);\n\n $transaction = new FinancialTransaction();\n $transaction->setTransactionType(FinancialTransaction::TRANSACTION_TYPE_REVERSE_DEPOSIT);\n $payment->addTransaction($transaction);\n\n $transaction = new FinancialTransaction();\n $transaction->setTransactionType(FinancialTransaction::TRANSACTION_TYPE_REVERSE_DEPOSIT);\n $payment->addTransaction($transaction);\n\n return $payment;\n }", "title": "" }, { "docid": "70a981f4156ce45ae1289aaf70ed6561", "score": "0.56626874", "text": "public function bk_get_pending_balance()\n {\n \n $where = array('payment_type' => 'Pending');\n\t$where = \"receiver='\".$this->session->email.\"' OR sender='\".$this->session->id.\"'\";\n $this->db->where($where);\n $this->db->select_sum('total');\n $query = $this->db->get('transactions');\n \n $balance = $query->row_array();\n $balance = round($balance['total'],2);\n return $balance;\n }", "title": "" }, { "docid": "db2b7a98ac8ad1e6d920e4039c2ce57d", "score": "0.56611943", "text": "public function processPayment()\n\t {\n\t }", "title": "" }, { "docid": "731eab246fc472ca815f1eaa37d69197", "score": "0.5650746", "text": "function get_pay_amount($sponsorfee,$fee,$sponsor,$num,$discount) {\n print \"$sponsorfee,$fee,$sponsor,$num,$discount\";\nif ($sponsor) {\n $bbqfee = $num*$fee - $discount;\n if ($bbqfee < 0) {\n $bbqfee = 0;\n }\n $amount=$sponsorfee+$bbqfee;\n } else {\n $bbqfee=$info['num_adults']*$fee;\n $amount=$info['num_adults']*$fee;\n }\n return $amount;\n}", "title": "" }, { "docid": "662ddd917326e5a6b3a3be985a939cc9", "score": "0.563967", "text": "function distributeMoneyByPaypalPayment($order_id){\n\t\t\t //getting purchase info from dtabase\n\t\t\t $purchase_details = $this->manage_data->getValue_where(\"purchase_info\",\"*\",\"order_id\",$order_id);\n\t\t\t //getting date of insertion\n\t\t\t $date = $this->getDate();\n\t\t\t //executing every value in order\n\t\t\t foreach($purchase_details as $purchase){\n\t\t\t\t //getting membership id\n\t\t\t\t $member = $this->manage_data->getValue_where(\"purchase_log\",\"membership_id\",\"order_id\",$order_id);\n\t\t\t\t //getting last system balence\n\t\t\t\t $system_balence = $this->manage_data->getLastValue(\"money_transfer_log\",\"system_balence\",\"id\");\n\t\t\t\t //checking for guest or member\n\t\t\t\t if($member[0]['membership_id'] == 'guest')\n\t\t\t\t {\n\t\t\t\t\t $price = 'price_guest';\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t\t $price = 'price_members';\n\t\t\t\t }\n\t\t\t\t//checking for membership product\n\t\t\t\tif(substr($purchase['product_id'],0,1) == 'M')\n\t\t\t\t{\n\t\t\t\t\t//getting product price\n\t\t\t\t\t$product_price = $this->manage_data->getValue_where(\"membership_product\",\"*\",\"product_id\",$purchase['product_id']);\n\t\t\t\t\t//amount credited\n\t\t\t\t\t$amount = $purchase['quantity']*$product_price[0]['price'];\n\t\t\t\t\t//new system balence\n\t\t\t\t\t$new_balance = $system_balence[0]['system_balence'] + $amount;\n\t\t\t\t\t//inserted credit amount\n\t\t\t\t\t$result = $this->manage_data->insertCreditAmount($member[0]['membership_id'],\n\t\t\t\t\t$purchase['product_id'],$purchase['quantity'],$date,$amount,$new_balance,0,\"\");\n\t\t\t\t\t//getting member details from member table\n\t\t\t\t\t$member_details = $this->manage_data->getValue_where(\"member_table\",\"*\",\"membership_id\",$member[0]['membership_id']);\n\t\t\t\t\t$previous_member_active = $member_details[0]['membership_activation'];\n\t\t\t\t\t//setting expiration date after 1 year\n\t\t\t\t\t$expiration_date = date('Y-m-d', strtotime('+1 years'));\n\t\t\t\t\t//updating the membership_activation column of member table\n\t\t\t\t\t$membership_activation = $this->manage_data->updateValueWhere(\"member_table\",\"membership_activation\",1,\"membership_id\",$member[0]['membership_id']);\n\t\t\t\t\t//update expiration date\n\t\t\t\t\t$update_expiry = $this->manage_data->updateValueWhere(\"member_table\",\"expiration_date\",$expiration_date,\"membership_id\",$member[0]['membership_id']);\n\t\t\t\t\tif($result == 1 && substr($member[0]['membership_id'],0,6) == 'member')\n\t\t\t\t\t{\n\t\t\t\t\t\t//calling function for distribute money\n\t\t\t\t\t\t$result = $this->moneyCalculationForMembershipProduct($member[0]['membership_id'],$purchase['product_id']);\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//checking for member product\n\t\t\t\telse if(substr($purchase['product_id'],0,1) == 'P')\n\t\t\t\t{\n\t\t\t\t\t//getting product price\n\t\t\t\t\t$product_price = $this->manage_data->getValue_where(\"product_table\",\"*\",\"product_id\",$purchase['product_id']);\n\t\t\t\t\t//amount credited\n\t\t\t\t\t$amount = $purchase['quantity']*$product_price[0][$price];\n\t\t\t\t\t//new system balence\n\t\t\t\t\t$new_balance = $system_balence[0]['system_balence'] + $amount;\n\t\t\t\t\t//inserted credit amount\n\t\t\t\t\t$result = $this->manage_data->insertCreditAmount($member[0]['membership_id'],\n\t\t\t\t\t$purchase['product_id'],$purchase['quantity'],$date,$amount,$new_balance,0,\"\");\n\t\t\t\t\tif($result == 1 && substr($member[0]['membership_id'],0,6) == 'member')\n\t\t\t\t\t{\n\t\t\t\t\t\t//calling function for distribute money\n\t\t\t\t\t\t$result = $this->moneyCalculationForMemberProduct($member[0]['membership_id'],$purchase['product_id'],$purchase['quantity']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//checking for coupon in table\n\t\t\t\telse if(substr($purchase['product_id'],0,1) == 'C')\n\t\t\t\t{\n\t\t\t\t\t//getting coupon price\n\t\t\t\t\t$coupon = $this->manage_data->getValue_where(\"coupon_table\",\"*\",\"coupon_id\",$purchase['product_id']);\n\t\t\t\t\t//amount credited\n\t\t\t\t\t$amount = $purchase['quantity']*$coupon[0][$price];\n\t\t\t\t\t//new system balence\n\t\t\t\t\t$new_balance = $system_balence[0]['system_balence'] + $amount;\n\t\t\t\t\t//inserted credit amount\n\t\t\t\t\t$result = $this->manage_data->insertCreditAmount($member[0]['membership_id'],\n\t\t\t\t\t$purchase['product_id'],$purchase['quantity'],$date,$amount,$new_balance,0,\"\");\n\t\t\t\t\tif($result == 1 && substr($member[0]['membership_id'],0,6) == 'member')\n\t\t\t\t\t{\n\t\t\t\t\t\t//calling function for distribute money\n\t\t\t\t\t\t$result = $this->moneyCalculationForCoupon($member[0]['membership_id'],$purchase['product_id']);\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t }\n\t\t\t //approve the payment confirmation\n\t\t\t $update = $this->manage_data->updateValueWhere(\"purchase_info\",\"payment_status\",1,\"order_id\",$order_id);\n\t\t\t $payment_status = $this->manage_data->updateValueWhere(\"purchase_info\",\"payment_request\",\"Confirm\",\"order_id\",$order_id);\n\t\t }", "title": "" }, { "docid": "46598675964469381df6b44f3fddd756", "score": "0.5628171", "text": "public function getTotalPaid(): float\n {\n return $this->payments->sum('amount');\n }", "title": "" }, { "docid": "b06d0ce1cb2522031cabae987d6f218e", "score": "0.5624852", "text": "public function getAmount();", "title": "" }, { "docid": "b06d0ce1cb2522031cabae987d6f218e", "score": "0.5624852", "text": "public function getAmount();", "title": "" }, { "docid": "b06d0ce1cb2522031cabae987d6f218e", "score": "0.5624852", "text": "public function getAmount();", "title": "" }, { "docid": "b06d0ce1cb2522031cabae987d6f218e", "score": "0.5624852", "text": "public function getAmount();", "title": "" }, { "docid": "b06d0ce1cb2522031cabae987d6f218e", "score": "0.5624852", "text": "public function getAmount();", "title": "" }, { "docid": "b06d0ce1cb2522031cabae987d6f218e", "score": "0.5624852", "text": "public function getAmount();", "title": "" }, { "docid": "968cabc61ef76059be3ed4635fee76b0", "score": "0.55960464", "text": "function getEwalletValue($membership_id){\n\t\t\t//getting all transaction of a member\n\t\t\t$transaction = $this->manage_content->\n\t\t\tgetValue_twoCoditions_descending(\"money_transfer_log\",\"*\",\"membership_id\",$membership_id,\"frozen_money\",0);\n\t\t\t//initialize a variable for serial no calculation\n\t\t\t$sl_no = 1;\n\t\t\t//initialize a variable for total amount calculation\n\t\t\t$total_amount = 0;\n\t\t\t$withdraw_amount = 0;\n\t\t\t$withdraw_requested_amount = 0;\n\t\t\t$purchase_by_account = 0;\n\t\t\t$net_amount = 0;\n\t\t\t$add_money = 0;\n\t\t\tif(count($transaction[0]) > 0)\n\t\t\t{ \n\t\t\t\tforeach($transaction as $transactions){\n\t\t\t\t\t//checking for only debited amount\n\t\t\t\t\tif(!empty($transactions['debit']))\n\t\t\t\t\t{\t\n\t\t\t\t\t\tif(substr($transactions['product_id'],0,1) == 'C')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//fetching the name of product from product table\n\t\t\t\t\t\t\t$coupon_details = $this->manage_content->\n\t\t\t\t\t\t\tgetValue_where(\"coupon_table\",\"*\",\"coupon_id\",$transactions['product_id']);\n\t\t\t\t\t\t\t//showing the details of money debited in detail\n\t\t\t\t\t\t\t/*echo '<tr>\n\t\t\t\t\t\t\t\t\t<td>'.$sl_no.'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$coupon_details[0]['coupon_name'].'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$transactions['product_quantity'].'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$this->changeDateFormat($transactions['date']).'</td>\n\t\t\t\t\t\t\t\t\t<td> € '.$transactions['debit'].'</td>\n\t\t\t\t\t\t\t\t</tr>';*/\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// total amount calculation\n\t\t\t\t\t\t\t\t$total_amount = $total_amount + $transactions['debit'];\n\t\t\t\t\t\t\t\t//increment of serial_no variable\n\t\t\t\t\t\t\t\t$sl_no++;\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//checking for membership product or not\n\t\t\t\t\t\t\tif(substr($transactions['product_id'],0,2) == 'M_')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$table_name = 'membership_product';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$table_name = 'product_table';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//fetching the name of product from product table\n\t\t\t\t\t\t\t$product_details = $this->manage_content->\n\t\t\t\t\t\t\tgetValue_where($table_name,\"*\",\"product_id\",$transactions['product_id']);\n\t\t\t\t\t\t\t//showing the details of money debited in detail\n\t\t\t\t\t\t\t/*echo '<tr>\n\t\t\t\t\t\t\t\t\t<td>'.$sl_no.'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$product_details[0]['product_name'].'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$transactions['product_quantity'].'</td>\n\t\t\t\t\t\t\t\t\t<td>'.$this->changeDateFormat($transactions['date']).'</td>\n\t\t\t\t\t\t\t\t\t<td> € '.$transactions['debit'].'</td>\n\t\t\t\t\t\t\t\t</tr>';*/\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// total amount calculation\n\t\t\t\t\t\t\t\t$total_amount = $total_amount + $transactions['debit'];\n\t\t\t\t\t\t\t\t//increment of serial_no variable\n\t\t\t\t\t\t\t\t$sl_no++;\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\t//getting the withdrawal amount from database\n\t\t\t\t$withdraws = $this->manage_content->getValue_twoCoditions(\"withdraw_log\",\"*\",\"membership_id\",$membership_id,\"frozen_money\",0);\n\t\t\t\t//getting the amount withdrawal to that member\n\t\t\t\tif(!empty($withdraws[0]))\n\t\t\t\t{\n\t\t\t\t\tforeach($withdraws as $withdrawal)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(substr($withdrawal['withdraw_order_id'],0,8) == 'withdraw')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//checking for status of money transfer\n\t\t\t\t\t\t\tif($withdrawal['status'] == 1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$withdraw_amount = $withdraw_amount + $withdrawal['withdraw_amount'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//checking for requested amount\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$withdraw_requested_amount = $withdraw_requested_amount + $withdrawal['withdraw_amount'];\n\t\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$purchase_by_account = $purchase_by_account + $withdrawal['withdraw_amount'];\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\techo \"\";\n\t\t\t}\n\t\t\t//calculating add money to ewallet\n\t\t\t$add_money_details = $this->manage_content->getValue_twoCoditions_descending(\"addmoney_info\",\"*\",\"membership_id\",$membership_id,\"status\",1);\n\t\t\tif(!empty($add_money_details[0]))\n\t\t\t{\n\t\t\t\tforeach($add_money_details as $add_money_detail)\n\t\t\t\t{\n\t\t\t\t\t$add_money = $add_money + $add_money_detail['amount'];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\techo '</tbody>';\n\n\t\t\t//showing total amount in table\n\t\t\techo '<tbody>\n\t\t\t\t<tr>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td class=\"total_amount\"> Gross Amount: </td>\n\t\t\t\t\t<td> € '.$total_amount.'</td>\n\t\t\t\t</tr>';\n\t\t\t\n\t\t\techo '<tr>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td class=\"total_amount\"> Withdrew Amount: </td>\n\t\t\t\t\t<td> € '.$withdraw_amount.'</td>\n\t\t\t\t</tr>';\n\t\t\t\n\t\t\tif(!empty($withdraw_requested_amount))\n\t\t\t{\n\t\t\t\techo '<tr>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td class=\"total_amount\"> Amount Requested for Withdrawal: </td>\n\t\t\t\t\t\t<td> € '.$withdraw_requested_amount.'</td>\n\t\t\t\t\t</tr>';\n\t\t\t}\n\t\t\tif(!empty($purchase_by_account))\n\t\t\t{\n\t\t\t\techo '<tr>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td class=\"total_amount\"> Product Purchase Amount: </td>\n\t\t\t\t\t\t<td> € '.$purchase_by_account.'</td>\n\t\t\t\t\t</tr>';\n\t\t\t}\n\t\t\tif(!empty($add_money))\n\t\t\t{\n\t\t\t\techo '<tr>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td class=\"total_amount\"> Add Money To ML Wallet: </td>\n\t\t\t\t\t\t<td> € '.$add_money.'</td>\n\t\t\t\t\t</tr>';\n\t\t\t}\n\t\t\tif((($total_amount + $add_money) - \n\t\t\t($withdraw_requested_amount + $purchase_by_account + $withdraw_amount)) != 0)\n\t\t\t{\n\t\t\t\techo '<tr>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td class=\"total_amount\"> Net Amount: </td>\n\t\t\t\t\t<td> € '.(($total_amount + $add_money) - ($withdraw_requested_amount + $purchase_by_account + $withdraw_amount)).'</td>\n\t\t\t\t</tr>';\n\t\t\t\treturn (($total_amount + $add_money) - ($withdraw_requested_amount + $purchase_by_account + $withdraw_amount));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo '<tr>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td class=\"total_amount\"> Net Amount: </td>\n\t\t\t\t\t<td> € '.(int)(($total_amount + $add_money) - ($withdraw_requested_amount + $purchase_by_account + $withdraw_amount)).'</td>\n\t\t\t\t</tr>';\n\t\t\t\treturn (int)(($total_amount + $add_money) - ($withdraw_requested_amount + $purchase_by_account + $withdraw_amount));\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "ea437dd4e78742b6f143f376a7c5979e", "score": "0.55654234", "text": "public function getWIPPaymentCost() {\n $query = $this->getWIPPaymentDbCommand()\n ->select('\n SUM(\n CASE\n WHEN (upsd.payment_depends_on_video_length = 1) \n THEN (upsd.payment_rate * pv.video_lenght) \n ELSE (upsd.payment_rate) \n END\n ) job_amount\n ')\n ->queryScalar();\n \n return $this->regularPaymentsCost = array_merge($this->regularPaymentsCost, array('wip' => NumberHelper::filter($query)));\n }", "title": "" }, { "docid": "b8a15db52ec4ede25445f0480156440f", "score": "0.555374", "text": "public function bk_get_refund_balance()\n {\n \n $array = array('receiver' => $this->session->email, 'status' => 'Processed', 'payment_type' => 'refund');\n $this->db->where($array);\n $this->db->select_sum('total');\n $query = $this->db->get('transactions');\n \n $balance = $query->row_array();\n $total_balance = $balance['total'];\n $balance = round($total_balance,2);\n return $balance;\n }", "title": "" }, { "docid": "d6b4a8962d9859a00bccbfe9cad48df1", "score": "0.5547712", "text": "public function getTotalPaid() {\n if (isset($this->total_paid)) return $this->total_paid;\n $sql = \"SELECT sum(p.amount) as total FROM users AS u\n LEFT JOIN payment AS p\n ON u.id = p.fk_user OR u.cpf = p.cpf\n WHERE u.id = :user_id\n GROUP BY u.id\";\n $query = SELF::conn()->prepare($sql);\n $query->execute(['user_id' => $this->id]);\n $data = (object) $query->fetch();\n return (double) $data->total;\n }", "title": "" }, { "docid": "1f582afb6bbd21cbd1e91e32148b6796", "score": "0.5547406", "text": "public function bk_get_fund_balance()\n {\n \n $array = array('sender' => $this->session->id, 'status' => 'Processed', 'payment_type' => 'Deposit');\n\t$where = array('userid' => $this->session->id);\n $this->db->where($array);\n $this->db->select_sum('amount');\n $query = $this->db->get('transactions');\n \n $balance = $query->row_array();\n $balance = round($balance['amount'],2);\n return $balance;\n }", "title": "" }, { "docid": "a338e886f01fc302be32bc1a0c62e89d", "score": "0.5543897", "text": "function successPayment(Request $request)\n {\n $payment_id = Session::get('paypal_payment_id');\n /** clear the session payment ID * */\n Session::forget('paypal_payment_id');\n //if ((!$request['PayerID']) || (!$request['token'])) {\n if(empty(Input::get('PayerID')) || empty(Input::get('token'))) {\n \\Session::flash('payErrorTitle', 'عذراً..العملية مرفوضة');\n \\Session::flash('payError', 'حصل خطأ غير معروف اثناء عملية الشحن الرجاء المحاولة لاحقا');\n return redirect('/balance');\n }\n $payment = Payment::get($payment_id, $this->_api_context);\n /** PaymentExecution object includes information necessary * */\n /** to execute a PayPal account payment. * */\n /** The payer_id is added to the request query parameters * */\n /** when the user is redirected from paypal back to your site * */\n $execution = new PaymentExecution();\n $execution->setPayerId(Input::get('PayerID'));\n /** Execute the payment **/\n $result = $payment->execute($execution, $this->_api_context);\n if($result == null) {\n \\Session::flash('payErrorTitle', 'عذراً..العملية مرفوضة');\n \\Session::flash('payError', 'حصل خطأ غير معروف اثناء عملية الشحن الرجاء المحاولة لاحقا');\n return redirect('/balance');\n }\n /** DEBUG RESULT, remove it later **/\n if ($result->getState() == 'approved') {\n //global $setting;\n $amountAfter = ((100*$result->transactions[0]->amount->total ) / (2.9+100));\n\n $transactionType = 1;\n \\App\\transaction::transfer(0, session('user')['id'], $amountAfter, $amountAfter,2,$transactionType);\n \n /** it's all right $result->transactions[0]->amount->total* */\n /** Here Write your database logic like that insert record or value in database if you want * */\n \n \\Session::flash('paySuccess', 'لقد تم بنجاح شحن حسابكم على انجزلي بمبلغ قدره ');\n \\Session::flash('paySuccessTitle','تم عملية الشحن');\n \\Session::flash('amount', $amountAfter);\n \n user::where('id', session('user')['id'])->update(['balance' => DB::raw('balance+' . ($amountAfter))]);\n \n return redirect('/balance');\n }\n \n \\Session::flash('payErrorTitle', 'عذراً..العملية مرفوضة');\n \\Session::flash('payError', 'حصل خطأ غير معروف اثناء عملية الشحن الرجاء المحاولة لاحقا');\n return redirect('/balance');\n }", "title": "" }, { "docid": "d903a3cca798e0ffa050a16bb85fff59", "score": "0.5536792", "text": "public function payment(PaymentRequest $request)\n {\n // Get currency object\n $currencies = Currency::enabled()->pluck('rate', 'code')->toArray();\n $currency = Currency::where('code', $request['currency_code'])->first();\n\n $request['currency_code'] = $currency->code;\n $request['currency_rate'] = $currency->rate;\n\n $invoice = Invoice::find($request['invoice_id']);\n\n $total_amount = $invoice->amount;\n\n $default_amount = (double) $request['amount'];\n\n if ($invoice->currency_code == $request['currency_code']) {\n $amount = $default_amount;\n } else {\n $default_amount_model = new InvoicePayment();\n\n $default_amount_model->default_currency_code = $invoice->currency_code;\n $default_amount_model->amount = $default_amount;\n $default_amount_model->currency_code = $request['currency_code'];\n $default_amount_model->currency_rate = $currencies[$request['currency_code']];\n\n $default_amount = (double) $default_amount_model->getDivideConvertedAmount();\n\n $convert_amount = new InvoicePayment();\n\n $convert_amount->default_currency_code = $request['currency_code'];\n $convert_amount->amount = $default_amount;\n $convert_amount->currency_code = $invoice->currency_code;\n $convert_amount->currency_rate = $currencies[$invoice->currency_code];\n\n $amount = (double) $convert_amount->getDynamicConvertedAmount();\n }\n\n if ($invoice->payments()->count()) {\n $total_amount -= $invoice->payments()->paid();\n }\n\n // For amount cover integer\n $multiplier = 1;\n\n for ($i = 0; $i < $currency->precision; $i++) {\n $multiplier *= 10;\n }\n\n $amount_check = (int) ($amount * $multiplier);\n $total_amount_check = (int) (round($total_amount, $currency->precision) * $multiplier);\n\n if ($amount_check > $total_amount_check) {\n $error_amount = $total_amount;\n\n if ($invoice->currency_code != $request['currency_code']) {\n $error_amount_model = new InvoicePayment();\n\n $error_amount_model->default_currency_code = $request['currency_code'];\n $error_amount_model->amount = $error_amount;\n $error_amount_model->currency_code = $invoice->currency_code;\n $error_amount_model->currency_rate = $currencies[$invoice->currency_code];\n\n $error_amount = (double) $error_amount_model->getDivideConvertedAmount();\n\n $convert_amount = new InvoicePayment();\n\n $convert_amount->default_currency_code = $invoice->currency_code;\n $convert_amount->amount = $error_amount;\n $convert_amount->currency_code = $request['currency_code'];\n $convert_amount->currency_rate = $currencies[$request['currency_code']];\n\n $error_amount = (double) $convert_amount->getDynamicConvertedAmount();\n }\n\n $message = trans('messages.error.over_payment', ['amount' => money($error_amount, $request['currency_code'], true)]);\n\n return response()->json([\n 'success' => false,\n 'error' => true,\n 'data' => [\n 'amount' => $error_amount\n ],\n 'message' => $message,\n 'html' => 'null',\n ]);\n } elseif ($amount_check == $total_amount_check) {\n $invoice->invoice_status_code = 'paid';\n } else {\n $invoice->invoice_status_code = 'partial';\n }\n\n $invoice->save();\n\n $invoice_payment = dispatch(new CreateInvoicePayment($request, $invoice));\n\n // Upload attachment\n if ($request->file('attachment')) {\n $media = $this->getMedia($request->file('attachment'), 'invoices');\n\n $invoice_payment->attachMedia($media, 'attachment');\n }\n\n $message = trans('messages.success.added', ['type' => trans_choice('general.payments', 1)]);\n\n return response()->json([\n 'success' => true,\n 'error' => false,\n 'message' => $message,\n ]);\n }", "title": "" }, { "docid": "388d8d8451b0735a038e1b1b37f3814c", "score": "0.5529748", "text": "function bank_pay($src, $dest, $amount)\n{\n\t$command = array(cmd => COMMAND_BANK_PAY, src => $src, dest => $dest, amount => $amount, cert => 0, retval => 0);\n\t$message = bank_send($command);\n\n\treturn $message[retval];\n}", "title": "" }, { "docid": "fc2ff2eab7e61ef6f4b3ef8cadaaa7d8", "score": "0.5519511", "text": "public function getTransactionAmount() \n {\n return $this->_fields['TransactionAmount']['FieldValue'];\n }", "title": "" }, { "docid": "f632836b37926406f5bba7b152c54687", "score": "0.55193704", "text": "function payMoney($options, $postedarray) {\n $MERCHANT_KEY = $options['merchant_id'];\n\n// Merchant Salt as provided by Payu\n $SALT = $options['merchant_salt'];\n\n// End point - change to https://secure.payu.in for LIVE mode\n $PAYU_BASE_URL = $options['merchant_base_url'];\n\n $action = '';\n\n $posted = array();\n if (!empty($postedarray)) {\n //print_r($_POST);\n foreach ($postedarray as $key => $value) {\n $posted[$key] = $value;\n }\n }\n\n $formError = 0;\n\n if (empty($posted['txnid'])) {\n // Generate random transaction id\n $txnid = substr(hash('sha256', mt_rand() . microtime()), 0, 20);\n $posted['txnid'] = $txnid;\n } else {\n $txnid = $posted['txnid'];\n }\n $hash = '';\n// Hash Sequence\n $hashSequence = \"key|txnid|amount|productinfo|firstname|email|udf1|udf2|udf3|udf4|udf5|udf6|udf7|udf8|udf9|udf10\";\n if (empty($posted['hash']) && sizeof($posted) > 0) {\n if (\n empty($posted['key']) || empty($posted['txnid']) || empty($posted['amount']) || empty($posted['firstname']) || empty($posted['email']) || empty($posted['phone']) || empty($posted['productinfo']) || empty($posted['surl']) || empty($posted['furl']) || empty($posted['service_provider'])\n ) {\n $formError = 1;\n } else {\n //$posted['productinfo'] = json_encode(json_decode('[{\"name\":\"tutionfee\",\"description\":\"\",\"value\":\"500\",\"isRequired\":\"false\"},{\"name\":\"developmentfee\",\"description\":\"monthly tution fee\",\"value\":\"1500\",\"isRequired\":\"false\"}]'));\n $hashVarsSeq = explode('|', $hashSequence);\n $hash_string = '';\n foreach ($hashVarsSeq as $hash_var) {\n $hash_string .= isset($posted[$hash_var]) ? $posted[$hash_var] : '';\n $hash_string .= '|';\n }\n\n $hash_string .= $SALT;\n \n $hash = strtolower(hash('sha512', $hash_string));\n $action = $PAYU_BASE_URL . '/_payment';\n }\n $posted['hash'] = $hash;\n } elseif (!empty($posted['hash'])) {\n $hash = $posted['hash'];\n }\n return $posted;\n}", "title": "" }, { "docid": "f038a8b7f2a163cca2ac32d57f888e30", "score": "0.5514051", "text": "public function rawAmount()\n {\n return $this->charge->amount;\n }", "title": "" }, { "docid": "d9992011f81dfe0bcb2b6bc77a0b3927", "score": "0.5506098", "text": "public function getFixedMoney()\n {\n return $this->fixedMoney;\n }", "title": "" }, { "docid": "5793a340558b8e7c42c6ec58aaba7741", "score": "0.55038893", "text": "public function fetchPaidDebts(): ?float\n {\n try {\n $paidDebts = $this->crud->query(\n \"SELECT SUM(debt.vl_divida) as paidDebts\n FROM {$this->table_item_divida_devedor} AS item\n INNER JOIN {$this->table_devedor} AS debtor\n ON item.id_devedor = debtor.id\n LEFT JOIN {$this->table_divida} AS debt\n ON debt.id = item.id_divida\n WHERE debtor.ic_ativo = 1\n AND debt.ic_ativo = 1\n AND debt.dt_vencimento < DATE(NOW())\"\n );\n \n return count($paidDebts) > 0 ? $paidDebts[0]['paidDebts'] : 0;\n } catch (\\Exception $e) {\n throw new \\Exception($e->getMessage());\n }\n }", "title": "" }, { "docid": "9a868585d0e9704a24b2bf3bf28b2a68", "score": "0.5494167", "text": "function affp_getPaymentsAmount($_CustomerID){\r\n\t\r\n\t$PaymentAmount = array();\r\n\t$sql = '\r\n\t\tSELECT SUM(`Amount`) AS CurrencyAmount, CurrencyISO3 FROM ?#AFFILIATE_PAYMENTS_TABLE\r\n\t\tWHERE CustomerID=? GROUP BY `CurrencyISO3`\r\n\t';\r\n\t$result = db_phquery($sql, $_CustomerID);\r\n\twhile ($_row = db_fetch_row($result)){\r\n\t\t\r\n\t\t$PaymentAmount[$_row['CurrencyISO3']] = sprintf(\"%.2f\", $_row['CurrencyAmount']);\r\n\t}\r\n\treturn $PaymentAmount;\r\n}", "title": "" }, { "docid": "a69cf2b46f642e9fc42a6c8d8d8ab761", "score": "0.5470837", "text": "public function getPurchasePaidAmount($month) {\n $outlet_id = $this->session->userdata('outlet_id');\n $ppaid = $this->db->query(\"SELECT IFNULL(SUM(p.paid),0) as ppaid\n FROM tbl_purchase p \n WHERE p.outlet_id=$outlet_id AND p.del_status = 'Live'\n AND p.date LIKE '$month%' \")->row('ppaid');\n return $ppaid;\n }", "title": "" }, { "docid": "9442999f9a1015757edabfe299378bb6", "score": "0.54630864", "text": "function getMoneyDetails($membership_id){\n\t\t\t//checking for member validiation\n\t\t\t$member_valid = $this->getInvalidConditions($membership_id);\n\t\t\tif($member_valid[1] == 0)\n\t\t\t{\n\t\t\t\t/* For My Wallet Money */\n\t\t\t\t\n\t\t\t\t//getting all transaction of a member\n\t\t\t\t$transaction = $this->manage_content->\n\t\t\t\tgetValue_twoCoditions_descending(\"money_transfer_log\",\"*\",\"membership_id\",$membership_id,\"frozen_money\",0);\n\t\t\t\t\n\t\t\t\t//initialize a variable for total amount calculation\n\t\t\t\t$total_amount = 0;\n\t\t\t\t$withdraw_amount = 0;\n\t\t\t\t$withdraw_requested_amount = 0;\n\t\t\t\t$purchase_by_account = 0;\n\t\t\t\t$net_amount = 0;\n\t\t\t\t$add_money = 0;\n\t\t\t\t$my_wallet_amount = 0;\n\t\t\t\tif(count($transaction[0]) > 0)\n\t\t\t\t{ \n\t\t\t\t\tforeach($transaction as $transactions){\n\t\t\t\t\t\t//checking for only debited amount\n\t\t\t\t\t\tif(!empty($transactions['debit']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// total amount calculation\n\t\t\t\t\t\t\t$total_amount = $total_amount + $transactions['debit'];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//getting the withdrawal amount from database\n\t\t\t\t\t$withdraws = $this->manage_content->getValue_twoCoditions(\"withdraw_log\",\"*\",\"membership_id\",$membership_id,\"frozen_money\",0);\n\t\t\t\t\t//getting the amount withdrawal to that member\n\t\t\t\t\tif(!empty($withdraws[0]))\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach($withdraws as $withdrawal)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(substr($withdrawal['withdraw_order_id'],0,8) == 'withdraw')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//checking for status of money transfer\n\t\t\t\t\t\t\t\tif($withdrawal['status'] == 1)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$withdraw_amount = $withdraw_amount + $withdrawal['withdraw_amount'];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//checking for requested amount\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$withdraw_requested_amount = $withdraw_requested_amount + $withdrawal['withdraw_amount'];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$purchase_by_account = $purchase_by_account + $withdrawal['withdraw_amount'];\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\t//calculating add money to ewallet\n\t\t\t\t$add_money_details = $this->manage_content->getValue_twoCoditions_descending(\"addmoney_info\",\"*\",\"membership_id\",$membership_id,\"status\",1);\n\t\t\t\tif(!empty($add_money_details[0]))\n\t\t\t\t{\n\t\t\t\t\tforeach($add_money_details as $add_money_detail)\n\t\t\t\t\t{\n\t\t\t\t\t\t$add_money = $add_money + $add_money_detail['amount'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((($total_amount + $add_money) - \n\t\t\t\t($withdraw_requested_amount + $purchase_by_account + $withdraw_amount)) != 0)\n\t\t\t\t{\n\t\t\t\t\t$my_wallet_amount = (($total_amount + $add_money) - ($withdraw_requested_amount + $purchase_by_account + $withdraw_amount));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$my_wallet_amount = (int)(($total_amount + $add_money) - ($withdraw_requested_amount + $purchase_by_account + $withdraw_amount));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* For Potential Money */\n\t\t\t\t\n\t\t\t\t//getting all transaction of a member\n\t\t\t\t$transaction_po = $this->manage_content->getValue_twoCoditions(\"money_transfer_log\",\"*\",\"membership_id\",\"potentialMoney\",\"notes\",$membership_id); \n\t\t\t\t\n\t\t\t\t//initialize a variable for total amount calculation\n\t\t\t\t$total_po_amount = 0;\n\t\t\t\t$potential_money = 0;\n\t\t\t\tif(count($transaction_po[0]) > 0)\n\t\t\t\t{\n\t\t\t\t\tforeach($transaction_po as $transactions_po){\n\t\t\t\t\t\t//checking for only debited amount\n\t\t\t\t\t\tif(!empty($transactions_po['debit']))\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t// total amount calculation\n\t\t\t\t\t\t\t$total_po_amount = $total_po_amount + $transactions_po['debit'];\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//checking from invalid potential money table\n\t\t\t\t$invalid_potentials = $this->manage_content->getValue_where(\"invalid_potential_money\",\"*\",\"membership_id\",$membership_id);\n\t\t\t\tif(!empty($invalid_potentials[0]))\n\t\t\t\t{\n\t\t\t\t\tforeach($invalid_potentials as $invalid_potential)\n\t\t\t\t\t{\n\t\t\t\t\t\t// total amount calculation\n\t\t\t\t\t\t$total_po_amount = $total_po_amount + $invalid_potential['amount'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($total_po_amount != 0)\n\t\t\t\t{\n\t\t\t\t\t$potential_money = $total_po_amount;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$potential_money = (int)$total_po_amount;\n\t\t\t\t}\n\t\t\t\treturn array($my_wallet_amount,$potential_money);\n\t\t\t\t//echo '€ '.$my_wallet_amount.'/ € '.$potential_money;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if($member_valid[1] == 1)\n\t\t\t{\n\t\t\t\t/* For My Wallet Money */\n\t\t\t\t\n\t\t\t\t//getting all transaction of a member\n\t\t\t\t$transaction = $this->manage_content->\n\t\t\t\tgetValue_twoCoditions_descending(\"money_transfer_log\",\"*\",\"membership_id\",$membership_id,\"frozen_money\",0);\n\t\t\t\t\n\t\t\t\t//initialize a variable for total amount calculation\n\t\t\t\t$total_amount = 0;\n\t\t\t\t$withdraw_amount = 0;\n\t\t\t\t$withdraw_requested_amount = 0;\n\t\t\t\t$purchase_by_account = 0;\n\t\t\t\t$net_amount = 0;\n\t\t\t\t$add_money = 0;\n\t\t\t\t$my_wallet_amount = 0;\n\t\t\t\tif(count($transaction[0]) > 0)\n\t\t\t\t{ \n\t\t\t\t\tforeach($transaction as $transactions){\n\t\t\t\t\t\t//checking for only debited amount\n\t\t\t\t\t\tif(!empty($transactions['debit']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// total amount calculation\n\t\t\t\t\t\t\t$total_amount = $total_amount + $transactions['debit'];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//getting the withdrawal amount from database\n\t\t\t\t\t$withdraws = $this->manage_content->getValue_twoCoditions(\"withdraw_log\",\"*\",\"membership_id\",$membership_id,\"frozen_money\",0);\n\t\t\t\t\t//getting the amount withdrawal to that member\n\t\t\t\t\tif(!empty($withdraws[0]))\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach($withdraws as $withdrawal)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(substr($withdrawal['withdraw_order_id'],0,8) == 'withdraw')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//checking for status of money transfer\n\t\t\t\t\t\t\t\tif($withdrawal['status'] == 1)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$withdraw_amount = $withdraw_amount + $withdrawal['withdraw_amount'];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//checking for requested amount\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$withdraw_requested_amount = $withdraw_requested_amount + $withdrawal['withdraw_amount'];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$purchase_by_account = $purchase_by_account + $withdrawal['withdraw_amount'];\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\t//calculating add money to ewallet\n\t\t\t\t$add_money_details = $this->manage_content->getValue_twoCoditions_descending(\"addmoney_info\",\"*\",\"membership_id\",$membership_id,\"status\",1);\n\t\t\t\tif(!empty($add_money_details[0]))\n\t\t\t\t{\n\t\t\t\t\tforeach($add_money_details as $add_money_detail)\n\t\t\t\t\t{\n\t\t\t\t\t\t$add_money = $add_money + $add_money_detail['amount'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((($total_amount + $add_money) - \n\t\t\t\t($withdraw_requested_amount + $purchase_by_account + $withdraw_amount)) != 0)\n\t\t\t\t{\n\t\t\t\t\t$my_wallet_amount = (($total_amount + $add_money) - ($withdraw_requested_amount + $purchase_by_account + $withdraw_amount));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$my_wallet_amount = (int)(($total_amount + $add_money) - ($withdraw_requested_amount + $purchase_by_account + $withdraw_amount));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/* Ewallet frozen money */\n\t\t\t\t//getting all transaction of a member\n\t\t\t\t$transaction = $this->manage_content->\n\t\t\t\tgetValue_twoCoditions_descending(\"money_transfer_log\",\"*\",\"membership_id\",$membership_id,\"frozen_money\",1);\n\t\t\t\t\n\t\t\t\t//initialize a variable for total amount calculation\n\t\t\t\t$vip_total_amount = 0;\n\t\t\t\t$vip_withdraw_amount = 0;\n\t\t\t\t$vip_withdraw_requested_amount = 0;\n\t\t\t\t$vip_total_frozen_money = 0;\n\t\t\t\tif(count($transaction[0]) > 0)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tforeach($transaction as $transactions){\n\t\t\t\t\t\t//checking for only debited amount\n\t\t\t\t\t\tif(!empty($transactions['debit']))\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t// total amount calculation\n\t\t\t\t\t\t\t$vip_total_amount = $vip_total_amount + $transactions['debit'];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//getting the withdrawal amount from database\n\t\t\t\t\t$withdraws = $this->manage_content->getValue_twoCoditions(\"withdraw_log\",\"*\",\"membership_id\",$membership_id,\"frozen_money\",1);\n\t\t\t\t\t//getting the amount withdrawal to that member\n\t\t\t\t\tif(!empty($withdraws[0]))\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach($withdraws as $withdrawal)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//checking for status of money transfer\n\t\t\t\t\t\t\tif($withdrawal['status'] == 1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$vip_withdraw_amount = $vip_withdraw_amount + $withdrawal['withdraw_amount'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//checking for requested amount\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$vip_withdraw_requested_amount = $vip_withdraw_requested_amount + $withdrawal['withdraw_amount'];\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\t\n\t\t\t\tif(($vip_total_amount - ($vip_withdraw_requested_amount + $vip_withdraw_amount)) != 0)\n\t\t\t\t{\n\t\t\t\t\t$vip_total_frozen_money = ($vip_total_amount - ($vip_withdraw_requested_amount + $vip_withdraw_amount));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$vip_total_frozen_money = (int)($vip_total_amount - ($vip_withdraw_requested_amount + $vip_withdraw_amount));\n\t\t\t\t}\n\t\t\t\treturn array($my_wallet_amount,$vip_total_frozen_money);\n\t\t\t\t//echo '€ '.$my_wallet_amount.'/ € '.$total_frozen_money;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "55ef636e1738582a66b36b7e25b12b53", "score": "0.5452776", "text": "public function detailPendingPayment()\n {\n $client = $this->_prepareHttpClient();\n $client\n ->setUri('https://www.2checkout.com/api/acct/detail_pending_payment')\n ->setMethod(Zend_Http_Client::GET)\n ;\n\n $response = $client->request();\n $responseData = $this->_processHttpResponse($response);\n\n if( is_array($responseData) ) {\n return $responseData['payment'];\n } else {\n return $responseData;\n }\n }", "title": "" }, { "docid": "e798bf8f5abbca07e3508a47ebecf08b", "score": "0.54373544", "text": "public function get_amount() {\n\t\treturn $this->amount;\n\t}", "title": "" }, { "docid": "50786aee0b34ecacf667a34a18a7f926", "score": "0.5432534", "text": "public function getRefundedAmount()\n {\n return $this->_getAmount(self::CARD_REFUNDED_AMOUNT_KEY);\n }", "title": "" }, { "docid": "476d731b3ad51b2502484016631c41dc", "score": "0.54301476", "text": "function depositpaypal(Request $request){\n $sendercurrency = \"USD\";\n $recievercurrency = $request->session()->get('currency');\n $apikey = 'cc2ded1dc883821ccfcb';\n $query = \"{$sendercurrency}_{$recievercurrency}\";\n $json = file_get_contents(\"http://free.currencyconverterapi.com/api/v5/convert?q={$query}&compact=y&apiKey={$apikey}\");\n $obj = json_decode($json, true);\n $val = $obj[\"$query\"];\n $total = $val['val'] * $request->amount;\n\n\n $user = User::where('email', $request->session()->get('email'))->first();\n $user->balance = $user->balance + $total;\n $user->save();\n\n $characters = '123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n $string = substr(str_shuffle($characters), 0, 12);\n\n $transaction = new Transaction();\n $transaction->sender = $request->session()->get('email');\n $transaction->sendercountry = $request->session()->get('country');\n $transaction->sendercurrency = $request->session()->get('currency');\n $transaction->amountsend = $total;\n $transaction->recievercurrency = \"USD\";\n $transaction->amountrecieved = $request->amount;\n $transaction->id = $string;\n $transaction->sendtype = \"deposit\";\n $transaction->sendertype = $request->session()->get('type');\n $transaction->save();\n\n $request->session()->put('balance', $user->balance);\n MailController::depositmail($request->session()->get('email'), $transaction->id, $request->session()->get('currency'), $total);\n\n return response()->json(['success','Amount Deposited Successfully!']);\n }", "title": "" }, { "docid": "ca095c4e50bfb0c6f3e82f73bc54822a", "score": "0.5428245", "text": "function getNetAmount($membership_id,$total_price){\n\t\t\t//checking for invalid member or not\n\t\t\t$member_validity = $this->manage_content->getValue_where(\"member_table\",\"*\",\"membership_id\",$membership_id);\n\t\t\t//getting all transaction of a member\n\t\t\t$transaction = $this->manage_content->\n\t\t\tgetValue_twoCoditions(\"money_transfer_log\",\"*\",\"membership_id\",$membership_id,\"frozen_money\",0);\n\t\t\t//initialize a variable for total amount calculation\n\t\t\t$total_amount = 0;\n\t\t\t$withdraw_amount = 0;\n\t\t\t$withdraw_requested_amount = 0;\n\t\t\t$purchase_by_account = 0;\n\t\t\t$net_amount = 0;\n\t\t\t$add_money = 0;\n\t\t\tif(count($transaction[0]) > 0)\n\t\t\t{ \n\t\t\t\tforeach($transaction as $transactions){\n\t\t\t\t\t//checking for only debited amount\n\t\t\t\t\tif(!empty($transactions['debit']))\n\t\t\t\t\t{\t\t\n\t\t\t\t\t\t// total amount calculation\n\t\t\t\t\t\t$total_amount = $total_amount + $transactions['debit'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//getting the withdrawal amount from database\n\t\t\t\t$withdraws = $this->manage_content->getValue_twoCoditions(\"withdraw_log\",\"*\",\"membership_id\",$membership_id,\"frozen_money\",0);\n\t\t\t\t//getting the amount withdrawal to that member\n\t\t\t\tif(!empty($withdraws[0]))\n\t\t\t\t{\n\t\t\t\t\tforeach($withdraws as $withdrawal)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(substr($withdrawal['withdraw_order_id'],0,8) == 'withdraw')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//checking for status of money transfer\n\t\t\t\t\t\t\tif($withdrawal['status'] == 1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$withdraw_amount = $withdraw_amount + $withdrawal['withdraw_amount'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//checking for requested amount\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$withdraw_requested_amount = $withdraw_requested_amount + $withdrawal['withdraw_amount'];\n\t\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$purchase_by_account = $purchase_by_account + $withdrawal['withdraw_amount'];\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//calculating add money to ewallet\n\t\t\t$add_money_details = $this->manage_content->getValue_twoCoditions_descending(\"addmoney_info\",\"*\",\"membership_id\",$membership_id,\"status\",1);\n\t\t\tif(!empty($add_money_details[0]))\n\t\t\t{\n\t\t\t\tforeach($add_money_details as $add_money_detail)\n\t\t\t\t{\n\t\t\t\t\t$add_money = $add_money + $add_money_detail['amount'];\n\t\t\t\t}\n\t\t\t}\n\t\t\t//checking for net amount greater than total price or not\n\t\t\t$wallet_balance = (($total_amount + $add_money) - ($withdraw_requested_amount + $purchase_by_account + $withdraw_amount));\n\t\t\tif($wallet_balance > $total_price)\n\t\t\t{\n\t\t\t\treturn $wallet_balance;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo 'You have not Sufficient balance!!';\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a5835ed7cb8d7062c8e6a69a46c1c526", "score": "0.5423984", "text": "public function getApprovedAmount()\n {\n $paymentAmountInfo = $this->getPaymentAmountInfo();\n return array_key_exists('approvedAmount', $paymentAmountInfo) ? $paymentAmountInfo['approvedAmount'] : null;\n }", "title": "" }, { "docid": "4cd331157d8b6b1c1fef65029166930d", "score": "0.54215235", "text": "public function getReminingPayment()\n\t{\n\t\t//database selection\n\t\t$database = \"\";\n\t\t$constantDatabase = new ConstantClass();\n\t\t$databaseName = $constantDatabase->constantDatabase();\n\t\t$finantialyearData = $constantDatabase->constantAccountingDate();\n\t\t$journalDocumentResult = array();\n\t\t//get purchase document\n\t\tDB::beginTransaction();\n\t\t$journalDocumentResult = DB::connection($databaseName)->select(\"select \n\t\tsum(j.amount) as amount,\n\t\tj.ledger_id,\n\t\tj.amount_type\n\t\tfrom journal_dtl as j \n\t\tINNER JOIN ledger_mst as l ON l.ledger_id=j.ledger_id\n\t\twhere (j.entry_date BETWEEN '\".$finantialyearData['fromDate'].\"' AND '\".$finantialyearData['toDate'].\"') and \n\t\tj.deleted_at='0000-00-00 00:00:00' and \n\t\tl.ledger_group_id=32 \n\t\tGROUP by ledger_id,amount_type\n\t\tORDER by j.ledger_id\");\n\t\tDB::commit();\n\t\treturn json_encode($journalDocumentResult);\n\t}", "title": "" }, { "docid": "cbbdd84822af739807b72e816f69d6b2", "score": "0.5417444", "text": "public function doPayment();", "title": "" }, { "docid": "07bdceeaa0370d81f783af4bb669bf04", "score": "0.5409838", "text": "function getPnagTotal() {\n\t\t$pnagTotal = -1;\n\t\tif(isset($this->response[0]) && isset($this->response[0]['amount'])) {\n\t\t\treturn $this->response[0]['amount'];\n\t\t} else {\n\t\t\treturn -1;\n\t\t}\n\t}", "title": "" }, { "docid": "c45ef6e2d7e9f98414cd8fc91f9c15cf", "score": "0.5401269", "text": "public function amount()\n {\n if ($this->currency === 'KWD')\n return Cashier::formatAmount($this->rawAmount(), $this->charge->currency, 1000);\n\n return Cashier::formatAmount($this->rawAmount(), $this->charge->currency);\n }", "title": "" }, { "docid": "5cce6d3d6b30f9e3dd5cb9f2084b8521", "score": "0.53995574", "text": "public function getDatePayment();", "title": "" }, { "docid": "d8b10d1a83360843dbb318bcbf0b4577", "score": "0.5399209", "text": "public function getPaymentAmountInfo()\n {\n return array_key_exists('paymentAmountInfo', $this->data) ? $this->data['paymentAmountInfo'] : [];\n }", "title": "" }, { "docid": "bbe75c2e3594798d2e13ba824f19b578", "score": "0.53934693", "text": "public function payumoneyPaymentSuccess()\r\n {\r\n actionSessionCheck();\r\n $sessionValue = session('transInfo');\r\n $uid = auth()->user()->id;\r\n $wallets = Wallet::where(['currency_id' => $sessionValue['currency_id'], 'user_id' => $uid])->first();\r\n $currencyId = $wallets->currency_id;\r\n $currency = Currency::find($currencyId);\r\n $amount = Session::get('amount');\r\n\r\n $chkWallet = Wallet::where(['user_id' => $uid, 'currency_id' => $currency->id])->first();\r\n\r\n if (empty($chkWallet))\r\n {\r\n $wallet = new Wallet();\r\n $wallet->user_id = $uid;\r\n $wallet->currency_id = $currency->id;\r\n $wallet->balance = 0;\r\n $wallet->is_default = 'No';\r\n $wallet->save();\r\n }\r\n\r\n if ($_POST['status'] == 'success')\r\n {\r\n $feeInfo = FeesLimit::where(['transaction_type_id' => Deposit, 'currency_id' => $wallets->currency_id])->first();\r\n\r\n $uuid = unique_code();\r\n $deposits = new Deposit();\r\n $deposits->uuid = $uuid;\r\n $deposits->charge_percentage = @$feeInfo->charge_percentage ? (($sessionValue['amount']) * (@$feeInfo->charge_percentage / 100)) : 0;\r\n $deposits->charge_fixed = @$feeInfo->charge_fixed ? @$feeInfo->charge_fixed : 0;\r\n\r\n $p_calc = (($sessionValue['amount']) * (@$feeInfo->charge_percentage) / 100);\r\n $deposits->amount = $present_amount = ($amount - ($p_calc + (@$feeInfo->charge_fixed)));\r\n $deposits->status = 'Success';\r\n $deposits->user_id = Auth::user()->id;\r\n $deposits->currency_id = $currency->id;\r\n $deposits->payment_method_id = Session::get('payment_method_id');\r\n $deposits->save();\r\n\r\n $total_fees = (($sessionValue['amount']) * (@$feeInfo->charge_percentage / 100) + (@$feeInfo->charge_fixed));\r\n\r\n $subtotal = ($amount - $total_fees);\r\n\r\n $transaction = new Transaction();\r\n $transaction->user_id = Auth::user()->id;\r\n $transaction->currency_id = $currency->id;\r\n $transaction->payment_method_id = Session::get('payment_method_id');\r\n $transaction->transaction_reference_id = $deposits->id;\r\n $transaction->transaction_type_id = Deposit;\r\n $transaction->uuid = $uuid;\r\n $transaction->subtotal = $present_amount;\r\n\r\n $transaction->percentage = @$feeInfo->charge_percentage ? @$feeInfo->charge_percentage : 0;\r\n\r\n $transaction->charge_percentage = $deposits->charge_percentage;\r\n $transaction->charge_fixed = $deposits->charge_fixed;\r\n\r\n $transaction->total = $sessionValue['amount'] + $total_fees;\r\n $transaction->status = 'Success';\r\n $transaction->save();\r\n\r\n $wallet = Wallet::where(['user_id' => Auth::user()->id, 'currency_id' => $currency->id])\r\n ->first();\r\n\r\n $wallet->balance = ($wallet->balance + $present_amount);\r\n $wallet->save();\r\n\r\n $data['transaction'] = $transaction;\r\n clearActionSession();\r\n return view('user_dashboard.deposit.success', $data);\r\n }\r\n }", "title": "" }, { "docid": "9d29956e924cef722268f60aafc1896f", "score": "0.53934515", "text": "public function dd_approvals()\n {\n\n $payment_id=@cmm_decode($this->input->post('encoded_id',TRUE));\n if($payment_id==''){\n redirect(SITE_URL);\n exit;\n } \n\n $val = $this->input->post('submit',TRUE);\n $candf_data = $this->Common_model->get_data('c_and_f_payment',array('payment_id'=>$payment_id)); \n $plant_id = $candf_data[0]['plant_id'];\n $amount = $candf_data[0]['amount']; \n $outstanding_amount = $this->Common_model->get_value('c_and_f',array('plant_id'=>$plant_id),'outstanding_amount');\n \n $this->db->trans_begin();\n if($val==1)\n {\n $status = 2;\n } \n else if($val==2)\n {\n $sum = $outstanding_amount-$amount;\n $this->Common_model->update_data('c_and_f',array('outstanding_amount'=>$sum),array('plant_id'=>$plant_id));\n $status = 3; \n }\n $date = date('Y-m-d',strtotime($this->input->post('payment_date',TRUE)));\n \n $insert_data = array(\n 'pay_mode_id' => $this->input->post('pay_mode',TRUE),\n 'plant_id' => $this->input->post('plant_id',TRUE),\n 'bank_id' => $this->input->post('bank',TRUE),\n 'dd_number' => $this->input->post('dd_number',TRUE),\n 'payment_date' => $date,\n 'status' => $status,\n 'verified_by' => $this->session->userdata('user_id'),\n 'verified_time'=> date('Y-m-d H:i:s'),\n 'remarks2' => $this->input->post('remarks2'));\n $this->Common_model->update_data('c_and_f_payment',$insert_data,array('payment_id'=>$payment_id));\n\n \n if ($this->db->trans_status()===FALSE)\n {\n $this->db->trans_rollback();\n $this->session->set_flashdata('response','<div class=\"alert alert-danger alert-dismissable\">\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\"></button>\n <strong>Error!</strong> Something went wrong. Please check. </div>'); \n }\n else\n {\n $this->db->trans_commit();\n $this->session->set_flashdata('response','<div class=\"alert alert-success alert-dismissable\">\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\"></button>\n <strong>Success!</strong> DD Verification has been completed succesfully..! </div>');\n }\n redirect(SITE_URL.'c_and_f_payments'); \n }", "title": "" }, { "docid": "c892bb23773ebbeb06d5324e38e3841c", "score": "0.53932047", "text": "public function actiongettheapplicabledeliveryamount(){\n \n $model = new PlatformSettings;\n \n $member_id = Yii::app()->user->id;\n \n \n //get the open order of this member\n \n $order_id = $this->getTheOpenOrderInitiatedByMember($member_id);\n \n //confirm if the order contains only exclusive transactions like hampers and quoted transactions\n \n $is_exclusive = $this->isOrderWithOnlyExclusiveProducts($order_id);\n //get the city of delivery of this order\n //$city_of_delivery = $this->getThisOrderCityOfDelivery($order_id);\n $city_of_delivery = $_REQUEST['city_id'];\n \n $payment_method = $_REQUEST['payment_method'];\n \n $delivery_type = $_REQUEST['delivery_type'];\n if($city_of_delivery != 0){\n //get the top priority delivery charges for this order\n $top_priority_delivery_charge = $this->getTheCostOfOrderDeliveryToThisCityForTopPriority($order_id,$city_of_delivery);\n \n //get the priority delivery charges for this order\n $priority_delivery_charge = $this->getTheCostOfOrderDeliveryToThisCityForPriority($order_id,$city_of_delivery);\n \n //get the standard delivery charges for this order\n $standard_delivery_charge = $this->getTheCostOfOrderDeliveryToThisCityForStandard($order_id,$city_of_delivery);\n \n \n //get the delivery cost of products in the exclusive delivery cost list\n $delivery_cost_for_exclusive_products = $this->getTheCostOfDeliveryForExclusiveProductsInAnOrder($order_id);\n \n //get the escrow charges of an order\n $escrow_charges = $this->getTheEscrowChargesOfThisOrder($order_id);\n \n //get the cost of delivery to this city on payment on delivery service\n $payable_on_delivery_cost_of_service = $this->getTheOrderDeliveryCostToThisCityOnPaymentOnDeliveryService($order_id,$city_of_delivery,$payment_method,$delivery_type);\n \n //get the cost of delivery to this city on payment from wallet or online payment service\n $delivery_cost_on_wallet_or_online_payment = $this->getTheOrderDeliveryCostToThisCityOnPaymentByWalletOrOnlineService($order_id,$city_of_delivery,$payment_method,$delivery_type);\n \n \n \n header('Content-Type: application/json');\n echo CJSON::encode(array(\n \"success\" => mysql_errno() == 0,\n \"top_priority\" =>$top_priority_delivery_charge,\n \"priority\"=>$priority_delivery_charge,\n \"standard\"=>$standard_delivery_charge,\n \"exclusives\"=>$delivery_cost_for_exclusive_products,\n \"escrow\"=>$escrow_charges,\n \"is_exclusive_only\"=>$is_exclusive,\n \"payable_on_delivery_cost_of_service\"=>$payable_on_delivery_cost_of_service,\n \"delivery_cost_on_wallet_or_online_payment\"=>$delivery_cost_on_wallet_or_online_payment,\n \n ));\n \n \n }\n \n }", "title": "" }, { "docid": "9247c550aec54c6f89ad329049830cc4", "score": "0.5393051", "text": "public function getSupplierPaidAmount($month) {\n $outlet_id = $this->session->userdata('outlet_id');\n $partypaid = $this->db->query(\"SELECT IFNULL(SUM(p.amount),0) as partypaid\n FROM tbl_supplier_payments p \n WHERE p.outlet_id=$outlet_id AND p.del_status = 'Live'\n AND p.date LIKE '$month%' \")->row('partypaid');\n return $partypaid;\n }", "title": "" }, { "docid": "63ac213dba64b93ccef3e8662495cb8f", "score": "0.53897405", "text": "function CWorderPaymentTotal($order_id=0) {\n\t$paymentQuery = '';\n\t$paymentTotalsQuery = '';\n\t$returnTotal = 0;\n\t$paymentQuery = CWorderPayments($order_id);\n\tfor ($i = 0; $i < $paymentQuery[\"totalRows\"]; $i++) {\n\t\tif (strtolower($paymentQuery[\"payment_status\"][$i]) == \"approved\" && is_numeric($paymentQuery[\"payment_amount\"][$i])) {\n\t\t\t$returnTotal += $paymentQuery[\"payment_amount\"][$i];\n\t\t}\n\t}\n\treturn $returnTotal;\n}", "title": "" }, { "docid": "f4873c91d72ff3e08207844b13c06666", "score": "0.5388681", "text": "public function getCustomPaymentsTotal() {\n $total = 0;\n foreach($this->customPaymentsCost as $key => $cost) {\n $total += $cost;\n }\n \n return $total;\n }", "title": "" }, { "docid": "b4e34639ec4e54afea194967f604f35d", "score": "0.538699", "text": "public function get_payment_amount($type)\n\t{\n\t\t$total = 0;\n\t\t\n\t\tforeach($this->get_payments_by_type($type) as $payment)\n\t\t{\n\t\t\t$total+=$payment->payment_amount;\n\t\t}\n\t\t\n\t\treturn $total;\n\t}", "title": "" }, { "docid": "0533029d1381f974f89636eb715d5daa", "score": "0.5384103", "text": "Public Function AdwordsAPIPaypalReturn()\n\t{\n\t\tif(isset($_GET['PAID']))\n\t\t{\n\t\t\t$APIUse = new Adwords_API_Usage();\n\t\t\t$APIUse->AddCredit($this->User->id, $_GET['AMOUNT']);\n\t\t\t$goto = '/BevoMedia/User/AdwordsAPIUsage.html';\n\t\t\t$goto = $this->PageHelper->URLEncode($goto);\n\t\t\theader('Location: /BevoMedia/Index/CloseShadowbox.html?goto=' . $goto);\n\t\t\tdie;\n\t\t}\n\t}", "title": "" }, { "docid": "45412519226e5a05c694b2d6f0cbd201", "score": "0.53805214", "text": "public function totalAmount();", "title": "" }, { "docid": "a2f8a0eb23305f21fa4eca5205fcb4f4", "score": "0.53785914", "text": "public function onCharge($order)\n {\n $this->statusCode = 'pending';\n\n // Begin paypal\n try {\n if ($order->total <= 0) {\n \n $this->statusCode = 'completed';\n\n $this->detail = 'Order total is 0; no PayPal transaction required.';\n\n $this->transactionId = uniqid();\n\n return true;\n }\n\n $this->setContext();\n\n $payer = new Payer();\n \n $payer->setPaymentMethod('paypal');\n\n $list = new ItemList();\n \n $list->setItems($this->toPayPalItems($order));\n\n $details = new Details();\n \n $details->setShipping($order->totalShipping)\n ->setTax($order->totalTax)\n ->setSubtotal($order->totalPrice);\n\n $amount = new Amount();\n /*\"shipping\" => \"10\"\n \"tax\" => \"3.84\"\n \"subtotal\" => \"19.20\"*/\n\n /*\"shipping\" => \"5\"\n \"tax\" => \"1.92\"\n \"subtotal\" => \"9.60\"*/\n//dd($details);\n $amount->setCurrency(Config::get('shop.currency'))\n ->setTotal($order->total)\n ->setDetails($details);\n\n $transaction = new Transaction();\n\n $transaction->setAmount($amount)\n ->setItemList($list)\n ->setDescription(sprintf(\n '%s payment, Order #%d',\n Config::get('shop.name'),\n $order->id\n ))\n ->setInvoiceNumber($order->id);\n\n $redirectUrls = new RedirectUrls();\n \n $redirectUrls->setReturnUrl($this->callbackSuccess)\n ->setCancelUrl($this->callbackFail);\n\n $payment = new Payment();\n\n $payment->setIntent('sale')\n ->setPayer($payer)\n ->setRedirectUrls($redirectUrls)\n ->setTransactions([$transaction]);\n\n //$request = clone $payment;\n\n $payment->create($this->apiContext);\n\n $this->approvalUrl = $payment->getApprovalLink();\n\n $this->detail = sprintf('Pending approval: %s', $this->approvalUrl);\n\n return true;\n\n } catch (PayPalConnectionException $e) {\n\n $response = json_decode($e->getData());\n\n throw new GatewayException(\n sprintf(\n '%s: %s',\n $response->name,\n isset($response->message) ? $response->message : 'Paypal payment Failed.'\n ),\n 1001,\n $e\n );\n\n } catch (\\Exception $e) {\n\n throw new GatewayException(\n $e->getMessage(),\n 1000,\n $e\n );\n\n }\n\n return false;\n }", "title": "" }, { "docid": "c16da9e85195aa822794d886b6718a7b", "score": "0.5376557", "text": "function getPaidPercentage($order_id, $product, $connid)\r\n\t{\r\n\t\tinclude_once(\"../order_common/lib/order_common_functions.php\");\r\n\r\n\t\t$total_percentage = 0;\r\n\t\t$current_date = date(\"Y-m-d\");\r\n\t\t$storeKeyInstallment = \"\";\r\n\t\t$arrInstallment = getInstallmentDataAvailable(\"*\", \"installment_master\", \"order_id = '$order_id' AND product = '$product'\", \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t \" ORDER BY installment_no\");\r\n\t\tif (isset($arrInstallment) && count($arrInstallment) > 0) {\r\n\t\t\tforeach ($arrInstallment as $keyInstallment => $valueInstallment) {\r\n\t\t\t\tif (strtotime($this->daactivationdate) >= strtotime($valueInstallment[\"installment_date\"])) {\r\n\t\t\t\t\t$storeKeyInstallment = $keyInstallment;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$total_percentage = $arrInstallment[$storeKeyInstallment][\"installment_percentage\"];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($total_percentage == 0) {\r\n\t\t\tif ($storeKeyInstallment != \"\") {\r\n\t\t\t\t$total_percentage = $arrInstallment[$storeKeyInstallment][\"installment_percentage\"];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $total_percentage;\r\n\t}", "title": "" }, { "docid": "333a4906836a6bd20497122c2116012d", "score": "0.5374455", "text": "public function total_receipt_cost(){\n return $this->total_receipt_cost;\n }", "title": "" }, { "docid": "9fdd85316277c9f54a5a070c4f6ed68a", "score": "0.5369932", "text": "public function getTransactionAmount()\n {\n return $this->_fields['TransactionAmount']['FieldValue'];\n }", "title": "" }, { "docid": "186fb20f392693492ccb9f3895e01ff9", "score": "0.5365466", "text": "public function getAmount(): float\n {\n return $this->amount;\n }", "title": "" }, { "docid": "18f04baf25f8e6257b12e5da75f5a732", "score": "0.5359628", "text": "function get_final_purchase_amount ($buyer_node, $product, $seller_node, $final_cost_ppc){\n\t\t$affordable_amount = (int) ($buyer_node ['money'] / $final_cost_ppc);\n\n\t\tif ($affordable_amount > $product [1])\n\t\t\t$affordable_amount = $product [1];\n\n\t\tif ($affordable_amount <= $seller_node ['quantity'])\n\t\t\treturn $affordable_amount;\n\n\t\treturn $seller_node ['quantity'];\n\t}", "title": "" }, { "docid": "feffd1e5bd77c139f61522033ba756d3", "score": "0.53592616", "text": "public function paymentCallback()\n {\n $user = Auth::user();\n $transaction = PaytmWallet::with('receive');\n $response = $transaction->response();\n // print_r($response['BANKTXNID']);\n $pay = Payment::where('orderid',$transaction->getOrderId())->first();\n $pay->txnid = $transaction->getTransactionId();\n $pay->banktxnid = $response['BANKTXNID'];\n $pay->status = $response['STATUS'];\n $pay->txndate = $response['TXNDATE'];\n $pay->paymentmode = $response['PAYMENTMODE'];\n $pay->save();\n\n // if($transaction->isSuccessful()){\n\n // }else if($transaction->isFailed()){\n // //Transaction Failed\n // }else if($transaction->isOpen()){\n // //Transaction Open/Processing\n // }\n echo \"<br>\" . $transaction->getResponseMessage(); //Get Response Message If Available\n //get important parameters via public methods\n echo \"<br>\". $transaction->getOrderId(); // Get order id\n echo \"<br>\". $transaction->getTransactionId(); // Get transaction id\n\n\n }", "title": "" }, { "docid": "c9c2cdb23c65b30c3a3320b72c88d520", "score": "0.5359228", "text": "public static function paypal_transaction() {\n\t\t\t$id = $_GET['id'];\n\t\t\tif ( (FALSE === get_post_status($id)) && (get_post_type($id)!='super_paypal_txn') ) {\n\t\t\t \t// The post does not exist\n\t\t\t\techo 'This transaction does not exist.';\n\t\t\t} else {\n\t\t\t \t// The post exists\n\t\t $date = get_the_date(false,$id);\n\t\t $time = get_the_time(false,$id);\n\t\t\t\t$txn_data = get_post_meta( $id, '_super_txn_data', true );\n\t\t\t\t$custom = explode( '|', $txn_data['custom'] );\n\t\t\t\t?>\n\t\t <script>\n\t\t jQuery('.toplevel_page_super_forms').removeClass('wp-not-current-submenu').addClass('wp-menu-open wp-has-current-submenu');\n\t\t jQuery('.toplevel_page_super_forms').find('a[href$=\"super_paypal_txn\"]').parents('li:eq(0)').addClass('current');\n\t\t </script>\n\t\t <div class=\"wrap\">\n\t\t <div id=\"poststuff\">\n\t\t <div id=\"post-body\" class=\"metabox-holder columns-2\">\n\t\t <div id=\"postbox-container-1\" class=\"postbox-container\">\n\t\t <div id=\"side-sortables\" class=\"meta-box-sortables ui-sortable\">\n\t\t <div id=\"submitdiv\" class=\"postbox \">\n\t\t <div class=\"handlediv\" title=\"\">\n\t\t <br>\n\t\t </div>\n\t\t <h3 class=\"hndle ui-sortable-handle\">\n\t\t <span><?php echo esc_html__('Transaction Details', 'super-forms' ); ?>:</span>\n\t\t </h3>\n\t\t <div class=\"inside\">\n\t\t <div class=\"submitbox\" id=\"submitpost\">\n\t\t <div id=\"minor-publishing\">\n\t\t <div class=\"misc-pub-section\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$currency_code = self::get_currency_code($txn_data);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$mc_gross = number_format_i18n($txn_data['mc_gross'], 2) . ' ' . $currency_code;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t <span><?php echo esc_html__( 'Gross amount', 'super-forms' ) . ':'; ?> <strong><?php echo $mc_gross; ?></strong></span>\n\t\t </div>\n\t\t <div class=\"misc-pub-section\">\n\t\t <span><?php echo esc_html__( 'Transaction ID', 'super-forms' ) . ':'; ?> <strong><?php echo get_the_title($id); ?></strong></span>\n\t\t </div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"misc-pub-section\">\n\t\t <span><?php echo esc_html__( 'Payment status', 'super-forms' ) . ':'; ?> <strong><?php echo $txn_data['payment_status']; ?></strong></span>\n\t\t </div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"misc-pub-section\">\n\t\t <span><?php echo esc_html__( 'Payer E-mail', 'super-forms' ) . ':'; ?> <strong><?php echo $txn_data['payer_email']; ?></strong></span>\n\t\t </div>\n\t\t <div class=\"misc-pub-section\">\n\t\t <span><?php echo esc_html__( 'Payment type', 'super-forms' ) . ':'; ?> <strong><?php echo $txn_data['payment_type']; ?></strong></span>\n\t\t </div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"misc-pub-section\">\n\t\t <span><?php echo esc_html__('Submitted', 'super-forms' ) . ':'; ?> <strong><?php echo $date.' @ '.$time; ?></strong></span>\n\t\t </div>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\tif( (isset($custom[3])) && ($custom[3]!=0) ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$user_info = get_userdata($custom[3]);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\techo '<div class=\"misc-pub-section\">';\n\t\t \techo '<span>' . esc_html__( 'Submitted by user', 'super-forms' ) . ': <a href=\"' . esc_url(get_edit_user_link($user_info->ID)) . '\"><strong>' . $user_info->display_name . '</strong></a></span>';\n\t\t \techo '</div>';\n\t\t \t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tif( (isset($custom[2])) && ($custom[2]!=0) ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\techo '<div class=\"misc-pub-section\">';\n\t\t \techo '<span>' . esc_html__( 'Contact Entry', 'super-forms' ) . ': <a href=\"' . esc_url('admin.php?page=super_contact_entry&id=' . $custom[2]) . '\"><strong>' . get_the_title($custom[2]) . '</strong></a></span>';\n\t\t \techo '</div>';\n\t\t \t}\n\t\t \t\n\t\t\t\t\t\t\t\t\t\t\t\t\t// Get subscription\n\t\t\t\t\t\t\t\t\t\t\t\t\t$sub_id = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tif( isset($txn_data['subscr_id']) ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$sub_id = sanitize_text_field( $txn_data['subscr_id'] );\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tif( isset($txn_data['recurring_payment_id']) ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$sub_id = sanitize_text_field( $txn_data['recurring_payment_id'] );\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tglobal $wpdb;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$post_id = $wpdb->get_var(\"SELECT post_id FROM $wpdb->postmeta AS meta INNER JOIN $wpdb->posts AS post ON post.id = meta.post_id WHERE post.post_type = 'super_paypal_sub' AND meta_key = '_super_sub_id' AND meta_value = '$sub_id'\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(absint($post_id)!=0){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\techo '<div class=\"misc-pub-section\">';\n\t \t\techo '<span>' . esc_html__( 'Based on subscription', 'super-forms' ) . ': <a href=\"' . esc_url('admin.php?page=super_paypal_sub&id=' . $post_id) . '\"><strong>' . $sub_id . '</strong></a></span>';\n\t \t\techo '</div>';\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t \t}\n\n\t\t \t// Check if there was a post created \n\t\t \tif( (isset($custom[4])) && ($custom[4]!=0) ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$post_id = absint($custom[4]);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$edit_link = get_edit_post_link($post_id);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"misc-pub-section\">\n\t\t \t<?php echo '<span>' . esc_html__('Created Post', 'super-forms' ) . ':'; ?> <?php echo '<a href=\"' . esc_url($edit_link) . '\"><strong>' . get_the_title( $post_id ) . '</strong></a></span>'; ?>\n\t\t \t</div>\n\t\t \t\t<?php\n\t\t \t}\n\n\t\t \t// Check if there was a user created \n\t\t \tif( !empty($custom[5]) ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$user_id = absint($custom[5]);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$edit_link = get_edit_user_link($user_id);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$user_info = get_userdata( $user_id );\n\t\t \t\tif( $user_info ) { // @since 1.0.1 - check if user exists\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"misc-pub-section\">\n\t\t\t \t<?php echo '<span>' . esc_html__('Created User', 'super-forms' ) . ':'; ?> <?php echo '<a href=\"' . esc_url($edit_link) . '\"><strong>' . $user_info->user_login . '</strong></a></span>'; ?>\n\t\t\t \t</div>\n\t\t\t \t\t<?php\n\t\t \t\t}\n\t\t \t}\n\t\t \t?>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"misc-pub-section\">\n\t\t <?php echo '<span>' . esc_html__('Based on Form', 'super-forms' ) . ':'; ?> <?php echo '<a href=\"' . esc_url('admin.php?page=super_create_form&id=' . $custom[0]) . '\"><strong>' . get_the_title( $custom[0] ) . '</strong></a></span>'; ?>\n\t\t </div>\n\n\t\t <div class=\"clear\"></div>\n\t\t </div>\n\n\t\t <div id=\"major-publishing-actions\">\n\t\t <div id=\"delete-action\">\n\t\t <a class=\"submitdelete super-delete-contact-entry\" data-contact-entry=\"<?php echo absint($id); ?>\" href=\"#\"><?php echo esc_html__('Move to Trash', 'super-forms' ); ?></a>\n\t\t </div>\n\t\t <div id=\"publishing-action\">\n\t\t <span class=\"spinner\"></span>\n\t\t <input name=\"print\" type=\"submit\" class=\"super-print-contact-entry button button-large\" value=\"<?php echo esc_html__('Print', 'super-forms' ); ?>\">\n\t\t </div>\n\t\t <div class=\"clear\"></div>\n\t\t </div>\n\t\t </div>\n\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\t\t \n\t\t <div id=\"postbox-container-2\" class=\"postbox-container\">\n\t\t <?php\n\n\t\t\t\t\t\t\t\t// Get currency code e.g: EUR\n\t\t\t\t\t\t\t\t$currency_code = self::get_currency_code($txn_data);\n\t\t\t\t\t\t\t\t$mc_gross = number_format_i18n($txn_data['mc_gross'], 2) . ' ' . $currency_code;\n\n\t\t if( $txn_data['txn_type']!='subscr_payment' ) {\n\t\t \t?>\n\t\t\t <div id=\"normal-sortables\" class=\"meta-box-sortables ui-sortable\">\n\t\t\t <div id=\"super-contact-entry-data\" class=\"postbox \">\n\t\t\t <div class=\"handlediv\" title=\"\">\n\t\t\t <br>\n\t\t\t </div>\n\t\t\t <h3 class=\"hndle ui-sortable-handle\">\n\t\t\t <span><?php echo esc_html__('Order details', 'super-forms' ); ?>:</span>\n\t\t\t </h3>\n\t\t\t <div class=\"inside\">\n\t\t\t <?php\n\t\t\t echo '<table style=\"width:100%\">';\n\t\t\t \techo '<tr><th align=\"left\">' . esc_html__( 'Item name', 'super-forms' ) . '</th><th align=\"right\">' . esc_html__( 'Quantity', 'super-forms' ) . '</th><th align=\"right\">' . esc_html__( 'Price', 'super-forms' ) . '</th><th align=\"right\">' . esc_html__( 'Subtotal', 'super-forms' ) . '</th></tr>';\n\t\t if(isset($txn_data['item_name'])){\n\t\t echo '<tr>';\n\t\t echo '<td align=\"left\">' . $txn_data['item_name'] . '</td>';\n\t\t echo '<td align=\"right\">1</td>';\n\t\t echo '<td align=\"right\">' . number_format_i18n($txn_data['mc_gross'], 2) . ' ' . $currency_code . '</td>';\n\t\t echo '<td align=\"right\">' . number_format_i18n($txn_data['mc_gross'], 2) . ' ' . $currency_code . '</td>';\n\t\t echo '</tr>';\n\t\t }else{\n\t\t \t$i = 1;\n\t\t\t while( isset($txn_data['item_name' . $i])) {\n\t\t\t echo '<tr>';\n\t\t\t echo '<td align=\"left\">' . $txn_data['item_name' . $i] . '</td>';\n\t\t\t echo '<td align=\"right\">' . $txn_data['quantity' . $i] . '</td>';\n\t\t\t echo '<td align=\"right\">' . number_format_i18n(($txn_data['mc_gross_' . $i]/$txn_data['quantity' . $i]), 2) . ' ' . $currency_code . '</td>';\n\t\t\t echo '<td align=\"right\">' . number_format_i18n($txn_data['mc_gross_' . $i], 2) . ' ' . $currency_code . '</td>';\n\t\t\t echo '</tr>';\n\t\t\t $i++;\n\t\t\t }\n\t\t\t }\n\t\t\t \techo '<tr><th colspan=\"3\" align=\"right\">' . esc_html__( 'Purchase total', 'super-forms' ) . '</th><td align=\"right\">' . $mc_gross . '</td></tr>';\n\t\t\t echo '</table>';\n\t\t\t ?>\n\t\t\t </div>\n\t\t\t </div>\n\t\t\t </div>\n\t\t\t <?php\n\t\t\t }\n\t\t\t ?>\n\n\t\t <div id=\"normal-sortables\" class=\"meta-box-sortables ui-sortable\">\n\t\t <div id=\"super-contact-entry-data\" class=\"postbox \">\n\t\t <div class=\"handlediv\" title=\"\">\n\t\t <br>\n\t\t </div>\n\t\t <h3 class=\"hndle ui-sortable-handle\">\n\t\t <span><?php echo esc_html__('Payment details', 'super-forms' ); ?>:</span>\n\t\t </h3>\n\t\t <div class=\"inside\">\n\t\t <?php\n\t\t\t\t\t\t\t\t\t\t\tif( !empty($txn_data['address_country_code']) && $txn_data['address_country_code']=='US' ) {\n\t\t\t\t\t\t\t\t\t\t\t\t$located = 'inside';\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t$located = 'outside';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif( !empty($txn_data['payer_status']) && $txn_data['payer_status']=='verified' ) {\n\t\t\t\t\t\t\t\t\t\t\t\t$verified = '';\n\t\t\t\t\t\t\t\t\t\t\t\t$color = 'green';\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t$verified = 'NOT ';\n\t\t\t\t\t\t\t\t\t\t\t\t$color = 'red';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t$verified_text = $txn_data['first_name'] . ' ' . $txn_data['last_name'] . '<br />';\n\t\t\t\t\t\t\t\t\t\t\t$verified_text .= sprintf( esc_html__( 'The sender of this payment has %1$sverified their account and is located %2$s the US.', 'super-forms' ), '<strong style=\"color:' . $color . ';\">' . $verified, $located ) . '</strong><br />';\n\t\t\t\t\t\t\t\t\t\t\t$verified_text .= $txn_data['payer_email'];\n\t\t\t\t\t\t\t\t\t\t\tif( $txn_data['txn_type']=='subscr_payment' ) {\n\t\t\t echo '<table>';\n\t\t\t echo '<tr><th align=\"left\">' . esc_html__( 'Gross amount', 'super-forms' ) . '</th><td align=\"right\">' . $mc_gross . '</td></tr>';\n\t\t\t if(empty($txn_data['mc_fee'])) $txn_data['mc_fee'] = 0;\n\t\t\t echo '<tr><th align=\"left\">' . esc_html__( 'PayPal fee', 'super-forms' ) . '</th><td align=\"right\">' . number_format_i18n($txn_data['mc_fee'], 2) . ' ' . $currency_code . '</td></tr>';\n\t\t\t echo '<tr><th align=\"left\">' . esc_html__( 'Net amount', 'super-forms' ) . '</th><td align=\"right\">' . number_format_i18n(($txn_data['mc_gross']-$txn_data['mc_fee']), 2) . ' ' . $currency_code . '</td></tr>';\n\t\t\t echo '</table>';\n\t\t\t echo '<table>';\n\t\t\t echo '<tr><th align=\"left\">' . esc_html__( 'Recurring Payment ID', 'super-forms' ) . '</th><td align=\"left\">' . $txn_data['subscr_id'] . '</td></tr>';\n\t\t\t echo '<tr><th align=\"left\">' . esc_html__( 'Reason', 'super-forms' ) . '</th><td align=\"left\">' . esc_html__( 'Recurring', 'super-forms' ) . '</td></tr>';\n\t\t\t\t\t\t\t\t\t\t\t\techo '<tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\techo '<th align=\"left\" valign=\"top\">' . esc_html__( 'Paid by', 'super-forms' ) . '</th>';\n\t\t\t\t\t\t\t\t\t\t\t\t\techo '<td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\techo $verified_text;\n\t\t\t\t\t\t\t\t\t\t\t\t\techo '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\techo '</tr>';\n\t\t\t echo '<tr><th align=\"left\">' . esc_html__( 'Memo', 'super-forms' ) . '</th><td align=\"left\">' . $txn_data['item_name'] . '</td></tr>';\n\t\t\t echo '</table>';\n\t\t }else{\n\t\t\t echo '<table>';\n\t\t\t echo '<tr><th align=\"right\">' . esc_html__( 'Purchase total', 'super-forms' ) . '</th><td align=\"right\">' . $mc_gross . '</td></tr>';\n\t\t\t echo '<tr><th align=\"right\">' . esc_html__( 'Sales tax', 'super-forms' ) . '</th><td align=\"right\">' . (isset($txn_data['tax']) ? number_format_i18n($txn_data['tax'], 2) : number_format_i18n(0, 2)) . ' ' . $currency_code . '</td></tr>';\n\t\t\t\t\t\t\t\t\t\t\t\techo '<tr><th align=\"right\">' . esc_html__( 'Shipping amount', 'super-forms' ) . '</th><td align=\"right\">' . (isset($txn_data['mc_shipping']) ? number_format_i18n($txn_data['mc_shipping'], 2) : number_format_i18n(0, 2)) . ' ' . $currency_code . '</td></tr>';\n\t\t\t echo '<tr><th align=\"right\">' . esc_html__( 'Handling amount', 'super-forms' ) . '</th><td align=\"right\">' . (isset($txn_data['mc_handling']) ? number_format_i18n($txn_data['mc_handling'], 2) : number_format_i18n(0, 2)) . ' ' . $currency_code . '</td></tr>';\n\t\t\t echo '<tr><th align=\"right\">' . esc_html__( 'Insurance', 'super-forms' ) . '</th><td align=\"right\">' . (isset($txn_data['insurance_amount']) ? number_format_i18n($txn_data['insurance_amount'], 2) : number_format_i18n(0, 2)) . ' ' . $currency_code . '</td></tr>'; \n\t\t\t echo '<tr><th align=\"right\">' . esc_html__( 'Gross amount', 'super-forms' ) . '</th><td align=\"right\">' . $mc_gross . '</td></tr>';\n\t\t\t echo '<tr><th align=\"right\">' . esc_html__( 'PayPal fee', 'super-forms' ) . '</th><td align=\"right\">' . number_format_i18n($txn_data['mc_fee'], 2) . ' ' . $currency_code . '</td></tr>';\n\t\t\t echo '<tr><th align=\"right\">' . esc_html__( 'Net amount', 'super-forms' ) . '</th><td align=\"right\">' . number_format_i18n(($txn_data['mc_gross']-$txn_data['mc_fee']), 2) . ' ' . $currency_code . '</td></tr>';\n\t\t\t if( (isset($txn_data['invoice'])) && ($txn_data['invoice']!='') ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\techo '<tr><th>' . esc_html__( 'Invoice ID', 'super-forms' ) . '</th><td>' . $txn_data['invoice'] . '</td></tr>';\n\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\techo '</table>';\n\t\t\t echo '<table>';\n\t\t\t\t\t\t\t\t\t\t\t\techo '<tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\techo '<th valign=\"top\">' . esc_html__( 'Paid by', 'super-forms' ) . '</th>';\n\t\t\t\t\t\t\t\t\t\t\t\t\techo '<td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\techo $verified_text;\n\t\t\t\t\t\t\t\t\t\t\t\t\techo '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\techo '</tr>';\n\t\t\t\t\t\t\t\t\t\t\t\techo '</table>';\n\t\t }\n\t\t ?>\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\n\t\t <div id=\"normal-sortables\" class=\"meta-box-sortables ui-sortable\">\n\t\t <div id=\"super-contact-entry-data\" class=\"postbox \">\n\t\t <div class=\"handlediv\" title=\"\">\n\t\t <br>\n\t\t </div>\n\t\t <h3 class=\"hndle ui-sortable-handle\">\n\t\t <span><?php echo esc_html__('Address', 'super-forms' ); ?>:</span>\n\t\t </h3>\n\t\t <div class=\"inside\">\n\t\t <?php\n\t\t echo '<table>';\n\t\t if(!empty($txn_data['address_name'])) echo '<tr><th align=\"left\">' . esc_html__( 'Name', 'super-forms' ) . '</th><td align=\"left\">' . $txn_data['address_name'] . '</td></tr>';\n\t\t if(!empty($txn_data['address_street'])) echo '<tr><th align=\"left\">' . esc_html__( 'Street', 'super-forms' ) . '</th><td align=\"left\">' . $txn_data['address_street'] . '</td></tr>';\n\t\t if(!empty($txn_data['address_zip'])) echo '<tr><th align=\"left\">' . esc_html__( 'Zipcode', 'super-forms' ) . '</th><td align=\"left\">' . $txn_data['address_zip'] . '</td></tr>';\n\t\t if(!empty($txn_data['address_city'])) echo '<tr><th align=\"left\">' . esc_html__( 'City', 'super-forms' ) . '</th><td align=\"left\">' . $txn_data['address_city'] . '</td></tr>';\n\t\t if(!empty($txn_data['address_state'])) echo '<tr><th align=\"left\">' . esc_html__( 'State', 'super-forms' ) . '</th><td align=\"left\">' . $txn_data['address_state'] . '</td></tr>';\n\t\t if(!empty($txn_data['address_country'])) echo '<tr><th align=\"left\">' . esc_html__( 'Country', 'super-forms' ) . '</th><td align=\"left\">' . $txn_data['address_country'] . ' (' . $txn_data['address_country_code'] . ')</td></tr>';\n\t\t if(!empty($txn_data['address_status'])) echo '<tr><th align=\"left\">' . esc_html__( 'Address status', 'super-forms' ) . '</th><td align=\"left\">' . $txn_data['address_status'] . '</td></tr>';\n\t\t echo '</table>';\n\t\t ?>\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\n\t\t <div id=\"normal-sortables\" class=\"meta-box-sortables ui-sortable\">\n\t\t <div id=\"super-contact-entry-data\" class=\"postbox \">\n\t\t <div class=\"handlediv\" title=\"\">\n\t\t <br>\n\t\t </div>\n\t\t <h3 class=\"hndle ui-sortable-handle\">\n\t\t <span><?php echo esc_html__('Raw Transaction Data', 'super-forms' ); ?>:</span>\n\t\t </h3>\n\t\t <div class=\"inside\">\n\t\t <?php\n\t\t echo '<table>';\n\t foreach( $txn_data as $k => $v ) {\n\t echo '<tr><th align=\"right\">' . $k . '</th><td>' . $v . '</td></tr>';\n\t }\n\t\t echo apply_filters( 'super_after_paypal_txn_data_filter', '', array( 'paypal_txn_id'=>$_GET['id'], 'txn_data'=>$txn_data ) );\n\t\t echo '</table>';\n\t\t ?>\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\n\t\t <div id=\"advanced-sortables\" class=\"meta-box-sortables ui-sortable\"></div>\n\n\n\n\t\t </div>\n\t\t </div>\n\t\t <!-- /post-body -->\n\t\t <br class=\"clear\">\n\t\t </div>\n\t\t <?php\n\t\t }\n\t }", "title": "" }, { "docid": "93076f88171218d9ae0e3071081cabad", "score": "0.5356396", "text": "function cf_order_valid_amount($params)\n\t{\n\t\t/* Insert: (grand_total - plan_total) < new_amount => error */\n\t\t/* Update: (grand_total - sum(plan_amount except current id)) < new_amount => error */\n\t\t$params = is_array($params) ? (object) $params : $params;\n\t\tif (! isset($params->order_id) && !$params->order_id)\n\t\t\treturn false;\n\t\t\n\t\t$id = isset($params->id) && $params->id ? 'and t2.id <> '.$params->id : '';\n\t\t$order_id = $params->order_id;\n\t\tif (isset($params->is_plan) && $params->is_plan) {\n\t\t\t// $str = \"SELECT grand_total,\n\t\t\t\t// (\n\t\t\t\t\t// select coalesce(sum(amount),0) from cf_order_plan t2 where t2.is_active = '1' and t2.is_deleted = '0' and t2.order_id = t1.id $id\n\t\t\t\t// ) as plan_total \n\t\t\t\t// from cf_order t1 where t1.id = $order_id\";\n\t\t\t$str = \"SELECT (grand_total - (select coalesce(sum(amount),0) from cf_order_plan t2 where t2.is_active = '1' and t2.is_deleted = '0' and t2.order_id = t1.id $id)) as amount \n\t\t\t\tfrom cf_order t1 where t1.id = $order_id\";\n\t\t}\n\t\t$row = $this->db->query($str)->row();\n\t\t// if ($row->grand_total - $row->plan_total - $params->amount < 0) {\n\t\tif ($row->amount - $params->amount < 0) {\n\t\t\t// $this->session->set_flashdata('message', $row->grand_total - $row->plan_total);\n\t\t\t$this->session->set_flashdata('message', $row->amount);\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t\t// if ($row->grand_total - $row->plan_total < $params->amount)\n\t}", "title": "" }, { "docid": "5471a5588677a212f55ecf611ed51172", "score": "0.53448933", "text": "public function get_deposit_address ($currency);", "title": "" }, { "docid": "32baea3bc79e8cac5c5c7b01ad368ed6", "score": "0.53447634", "text": "public function getAmountPlanned()\n {\n return $this->amountPlanned instanceof MoneyBuilder ? $this->amountPlanned->build() : $this->amountPlanned;\n }", "title": "" }, { "docid": "6458610359ef3f674454794e2e772d27", "score": "0.5343947", "text": "public static function resolveImePayAmount($transaction, $orders)\n {\n $orderFinalPrice = (static::getTotalPrice($orders) +\n static::getGatewayServiceCharge((optional($transaction)->service_charge ?? 0)));\n return static::getPrice($orderFinalPrice - $transaction->voucher_discount);\n }", "title": "" }, { "docid": "7c445bcc23a084d4f0343f73bb9e0c0b", "score": "0.53424466", "text": "function getTransactionAccountBalance($dbc,$pos_account_id)\n{\n\t//the DEBITS come from the payment_journal looked up to the invoice where the invoice is associated with the account id\n\t//the balance is from the balance_journal\n\t\n$sql=\"\t\n\n\tSELECT COALESCE(\n\t(SELECT COALESCE(SUM(payment_amount),0) FROM pos_payments_journal WHERE pos_account_id = $pos_account_id)\n\t\n\t- (SELECT COALESCE(SUM(payment_amount),0) FROM pos_payments_journal\n\tLEFT JOIN pos_invoice_to_payment\n\tON pos_payments_journal.pos_payments_journal_id = pos_invoice_to_payment.pos_payments_journal_id\n\tLEFT JOIN pos_purchases_journal\n\tON pos_purchases_journal.pos_purchases_journal_id = pos_invoice_to_payment.pos_journal_id\n\tWHERE pos_invoice_to_payment.source_journal = 'PURCHASES JOURNAL' AND pos_purchases_journal.pos_account_id = $pos_account_id) \n\t\n\t- (SELECT COALESCE(SUM(payment_amount),0) FROM pos_payments_journal\n\tLEFT JOIN pos_invoice_to_payment\n\tON pos_payments_journal.pos_payments_journal_id = pos_invoice_to_payment.pos_payments_journal_id\n\tLEFT JOIN pos_general_journal\n\tON pos_general_journal.pos_general_journal_id = pos_invoice_to_payment.pos_journal_id\n\tWHERE pos_invoice_to_payment.source_journal = 'GENERAL JOURNAL' AND pos_general_journal.pos_account_id = $pos_account_id)\n\t\n\t+ (SELECT COALESCE(balance_amount,0) FROM pos_account_balances WHERE pos_account_id = $pos_account_id ORDER BY balance_date DESC LIMIT 1) ,0)\n\t\n\tAS account_balance\n\t\n\t\";\n\n\treturn getTransactionSingleValueSQL($dbc,$sql);\n\t\n}", "title": "" }, { "docid": "d434aac3c22b3fc94792e52175dbb235", "score": "0.5341186", "text": "public function getDutiableAmount();", "title": "" }, { "docid": "5eee70a7c75e5cda0aebba296fd175bb", "score": "0.53404766", "text": "public function getAmount()\n {\n $user = Shopware()->Session()->sOrderVariables['sUserData'];\n $basket = Shopware()->Session()->sOrderVariables['sBasket'];\n if (!empty($user['additional']['charge_vat'])) {\n return empty($basket['AmountWithTaxNumeric']) ? $basket['AmountNumeric'] : $basket['AmountWithTaxNumeric'];\n } else {\n return $basket['AmountNetNumeric'];\n }\n }", "title": "" }, { "docid": "64221f2788b1e458e6b23dc9c4dbb8c3", "score": "0.53403157", "text": "public function getBaseAmount();", "title": "" }, { "docid": "ab024355f51b9b4ade777e7417e53d9e", "score": "0.5340271", "text": "public function getAmount()\r\n {\r\n return $this->amount;\r\n }", "title": "" }, { "docid": "109f512fea764433a21f5ee87d693bf0", "score": "0.53288364", "text": "public function getAmount() {\n\t\t\n \t\treturn $this->amount;\n \t}", "title": "" }, { "docid": "f7419f62b3c50ecbc61a095684fdbd5e", "score": "0.53270715", "text": "public function cxp_usd(){\n\t\ttry {\n\t\t\t//CONEXION A LA BASE DE DATOS\n\t\t\t$conexion = new PDO('mysql:host='.$this->datosConexionBD[0].';\n\t\t\t\tdbname='.$this->datosConexionBD[3], $this->datosConexionBD[1], $this->datosConexionBD[2]);\n\t\t\t$conexion -> exec(\"set names utf8\");\n\t\t\treturn $resultados = $conexion->query(\"SELECT SUM(importeCuentaP) as Total FROM cuentaspagar WHERE statusCuentaP = 1 AND monedaCuentaP = 1\");\n\t\t}\n\t\tcatch(PDOException $e){\n\t\t\treturn \"Error: \" . $e->getMessage();\n\t\t}\n\t}", "title": "" }, { "docid": "350b590279de8debe0eac09ff6582d4c", "score": "0.5324112", "text": "public function getAmount()\n {\n return $this->plg_amount;\n }", "title": "" }, { "docid": "9127be63607b3eebb2ff4c1b797f3622", "score": "0.53155744", "text": "function recurrent_sum_of_deductions_per_investment($investment_id){\n global $dbc;\n $investment_id = secure_database($investment_id);\n \n $check_row_exists_by_one_param = check_row_exists_by_one_param('recurrent_investments_tbl','investment_id',$investment_id);\n if($check_row_exists_by_one_param){\n $sql = \"SELECT sum(unit_price_today) as `unit_price_today` FROM `recurrent_investments_tbl` WHERE `investment_id`='$investment_id'\";\n $query = mysqli_query($dbc, $sql);\n $num = mysqli_num_rows($query);\n if($num > 0){\n $row = mysqli_fetch_array($query);\n $unit_price_today = $row['unit_price_today'];\n return json_encode([\"status\"=>\"1\", \"msg\"=>$unit_price_today]);\n }\n else{\n return json_encode([\"status\"=>\"0\", \"msg\"=>0]);\n }\n }else{\n return json_encode([\"status\"=>\"0\", \"msg\"=>0]);\n }\n \n \n}", "title": "" }, { "docid": "e8b0d9e721236d2d1c87be32c3ab1b80", "score": "0.5305415", "text": "private function _paypal() {\n\t\t\n\t\t//$checkoutURL = 'https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token=';\n\t\t$checkoutURL = 'https://www.paypal.com/cgibin/webscr?cmd=_express-checkout&token=';\n\t\t\n\t\t$paypalString = $this->_ppSetExpressString($this->scriptToPay);\n\t\t\t\n\t\t$this->load->library('paypal');\n\t\t$results = $this->paypal->hashCall($paypalString);\n\t\t\n\t\t$responseArray = $results['response'];\t\n\t\t\t\t\n\t\t$ack = strtoupper($responseArray[\"ACK\"]);\n\t\t\n\t\t//debug print_r($responseArray);\n\t\t\n\t\tif($ack==\"SUCCESS\") {\n\t\t\t\n\t\t\t// weird solution as currently paypal getdetails isn't returning the transaction properly\n\t\t\t$this->session->set_userdata($responseArray['TOKEN'],array('token'=>$this->_getCartTotal()));\n\t\t\t\n\t\t\t$token = $responseArray['TOKEN'];\n\t\t\t\n\t\t\t// send to PayPal to confirm transaction. Variable useraction is set to commit, so they don't have to\n\t\t\t// reconfirm purchase on EB site.\n\t\t\theader('Location: '.$checkoutURL.$token.'&useraction=commit');\n\t\t\t\n\t\t} else {\n\t\t\t$viewData['errors']['declined'] = 'There was a problem with your card details. Please check to confirm your details were correct';\n\t\t}\n\t}", "title": "" } ]
8081919c52f1ef126a7fec083a8b4afa
Test case for tagsIdDelete Delete a tag..
[ { "docid": "7a16546982ef612f292c36520793430c", "score": "0.8814474", "text": "public function testTagsIdDelete()\n {\n }", "title": "" } ]
[ { "docid": "58ca52d9cf4852b3b8dcac63f36fba95", "score": "0.82042146", "text": "public function testDeleteAisleTag()\n {\n }", "title": "" }, { "docid": "33f215b59f784cd36b757d461cda1238", "score": "0.7882268", "text": "public function test_ShouldDeleteTag($id)\n {\n $response = $this->deleteTag($id);\n $response->assertStatus(200)\n ->assertJson([\n 'status' => 'success',\n 'http_status_code' => 200\n ])\n ->assertJsonStructure([\n 'status',\n 'http_status_code',\n ]);\n $obj = json_decode( $response->content() );\n\n // Assert Wh Tag\n $this->assertDatabaseHas('wh_tag_pos', [\n 'id' => $id,\n 'flag_delete' => true\n ]);\n }", "title": "" }, { "docid": "899c3123a5ab1d7aec98f54e834015aa", "score": "0.7398274", "text": "public function testDeleteSubstitutionTag()\n {\n }", "title": "" }, { "docid": "98e93f5d96a5e8e4ae2e47249c7cb657", "score": "0.7354607", "text": "function deleteTag(){\r\n\t}", "title": "" }, { "docid": "68cd94f71200e32319f6a1d010d5c457", "score": "0.72792345", "text": "public function delete($postID, $tagID):array;", "title": "" }, { "docid": "4e1132215a66d1900aeb118d9d0593fe", "score": "0.7135166", "text": "public function testDeleteWarehouseDocumentTag()\n {\n }", "title": "" }, { "docid": "9695ef289d72ede21977c873e25d65b6", "score": "0.7126762", "text": "public function testDeleteReplenishmentPlanTag()\n {\n }", "title": "" }, { "docid": "ead069b465fe608fb79e1cb76f266ef4", "score": "0.70816535", "text": "public function tagpost_delete($tagid)\r\n\t{\r\n\t\t$dbobj=new ta_dboperations();\r\n\t\t\r\n\t\treturn $dbobj->dbdelete(\"DELETE FROM \".tbl_tags_post::tblname.\" WHERE \".tbl_tags_post::col_tagid.\"='$tagid'\", tbl_tags_post::dbname);\r\n\t}", "title": "" }, { "docid": "98f864aab3bbd27e030ffb3e68bdc69a", "score": "0.70771515", "text": "public function testDeleteInvalidTag() {\n\t\t//create a tag and try to delete it without actually inserting it\n\t\t$tag = new Tag(null, $this->VALID_TAGNAME);\n\t\t$tag->delete($this->getPDO());\n\t}", "title": "" }, { "docid": "66409c49953845676fab0fc44f4ba8ae", "score": "0.70300025", "text": "public function test_deleteFulfillmentPlanTag() {\n\n }", "title": "" }, { "docid": "d5b762b0a2e17585a8c31e14fa6d83c8", "score": "0.70293325", "text": "public function testDeleteValidTag() {\n\t\t//count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"tag\");\n\n\t\t//create a new tag and insert it into mySQL\n\t\t$tag = new Tag(null, $this->VALID_TAGNAME);\n\t\t$tag->insert($this->getPDO());\n\n\t\t//delete the tag from mySQL\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"tag\"));\n\t\t$tag->delete($this->getPDO());\n\n\t\t//grab the data from mySQL and enforce the tag does not exist\n\t\t$pdoTag = Tag::getTagByTagId($this->getPDO(), $tag->getTagId());\n\t\t$this->assertNull($pdoTag);\n\t\t$this->assertEquals($numRows, $this->getConnection()->getRowCount(\"tag\"));\n\t}", "title": "" }, { "docid": "9d362b1443cf66f43319df42cdef5dff", "score": "0.6988389", "text": "public function delete($tag_id) {\n $this->setData('seo_title', 'Izbrišite unos!');\n \n \n \n if ($_POST){\n \n $confirmed = filter_input(INPUT_POST, 'confirmed', FILTER_SANITIZE_NUMBER_INT);\n \n if ($confirmed == 1){\n $res = TagModel::delete($tag_id);\n if ($res){\n Misc::redirect('tag');\n } else {\n $this->setData('message', 'Došlo je do greške prilikom brisanja unosa.');\n }\n }\n }\n \n $tag = TagModel::getById($tag_id);\n $this->setData('tags', $tag);\n }", "title": "" }, { "docid": "57759a887437004125ca9dad2e977629", "score": "0.6987259", "text": "public function deleteTag($parentId, $tagId);", "title": "" }, { "docid": "8e71e79e5f50563eea224b1686e1c2af", "score": "0.69383985", "text": "public function deleteTag()\n {\n $tag_model = new Tag();\n $tag_model->deleteTags($this->id);\n }", "title": "" }, { "docid": "a4cfff36fb5898d4e68b15d8cd058902", "score": "0.6869639", "text": "function removePersonneToTag($idTag,$id){\r\n\t\t$this->dao->removePersonneToTag($idTag,$id);\r\n\t\techo \"{\\\"message\\\":\\\"ok\\\"}\";\r\n\t}", "title": "" }, { "docid": "f43a6b777a017079f1ff7c5b7b87600c", "score": "0.6847362", "text": "public function testDeleteItemReceiptActivityTag()\n {\n }", "title": "" }, { "docid": "fa2b02bee67c32d60b97d7ee45f8a09b", "score": "0.68467164", "text": "public function testDeleteWarehouseDocumentTypeTag()\n {\n }", "title": "" }, { "docid": "f74f42c10582eed9c1106c61fb323425", "score": "0.68465656", "text": "public function test_deleteOrderLineTag() {\n\n }", "title": "" }, { "docid": "d05dc194a9919e9659825cef41a9a6f3", "score": "0.6843329", "text": "public function test_deleteWorkActivityTag() {\n\n }", "title": "" }, { "docid": "3a029d94f8e3660578c9ca1c22e2df7b", "score": "0.6769273", "text": "abstract public function delete( $id );", "title": "" }, { "docid": "b2f68f9a4575af632bf4e40eb9efc30f", "score": "0.67579687", "text": "function removeMotCleToTag($idTag,$id){\r\n\t\t$this->dao->removeMotCleToTag($idTag,$id);\r\n\t\techo \"{\\\"message\\\":\\\"ok\\\"}\";\r\n\t}", "title": "" }, { "docid": "87f5d7afc44140a05a0e0f963af7d423", "score": "0.67504334", "text": "public function action_delete_tag($tag_id = null)\n {\n // check if has admin access\n if (Auth::has_access('admin.delete_tag'))\n {\n // user has access to admin panel, check if no id given redirect to panel\n is_null($tag_id) and Response::redirect('admin/tag');\n\n // get needed tag\n $query = Model_Orm_Tag::query()->where('tag_id', $tag_id);\n $tag_obj = $query->get_one();\n\n if ( ! empty($tag_obj))\n {\n // delete its relations to event\n $query = Model_Orm_HasTag::query()->where('tag_id', $tag_obj->tag_id);\n $tag_relation_obj = $query->get();\n\n foreach ($tag_relation_obj as $tag)\n {\n DB::delete('has_tag')\n ->where('tag_id', '=', $tag->tag_id)\n ->and_where_open()\n ->where('event_id', $tag->event_id)\n ->and_where_close()\n ->execute();\n }\n $tag_obj->delete();\n }\n else\n {\n // comment no longer exists\n $error[] = 'Šī birka vairs neeksistē!';\n Session::set_flash('errors', $error);\n Response::redirect('admin/tag');\n }\n\n Session::set_flash('success', 'Birka izdzēsta un autora status pazemināts!');\n Response::redirect('admin/tag');\n }\n else\n {\n // doesn't have admin access, redirect away\n Response::redirect('/');\n }\n }", "title": "" }, { "docid": "47660575672b831a48e3bcf66835a692", "score": "0.67353296", "text": "public function delete(Tag $id) {\n $id->delete();\n Session::flash('success' , 'u deleted this Tag');\n return redirect()->back();\n }", "title": "" }, { "docid": "b44aef21c0054997e3097b57bb2104ba", "score": "0.6722052", "text": "public function testTagsIdPut()\n {\n }", "title": "" }, { "docid": "cd2a9b0f769aa2f0a485aa39f7953069", "score": "0.6706216", "text": "public function delete_tag($id = NULL, $action = NULL) {\n $this->load->model('item_tag_model');\n if (is_null($action)) {\n $output = get_object_vars($this->item_tag_model->get($id));\n $output[\"tags\"] = $this->item_tag_model->get_all();\n $this->display_view(\"admin/tags/delete\", $output);\n } else {\n $this->item_tag_model->delete($id);\n redirect(\"/admin/view_tags/\");\n }\n }", "title": "" }, { "docid": "941923dc828b54527d5bfa6bb41f42d4", "score": "0.67021793", "text": "function delete($id)\n {\n }", "title": "" }, { "docid": "941923dc828b54527d5bfa6bb41f42d4", "score": "0.67021793", "text": "function delete($id)\n {\n }", "title": "" }, { "docid": "941923dc828b54527d5bfa6bb41f42d4", "score": "0.67021793", "text": "function delete($id)\n {\n }", "title": "" }, { "docid": "2c702adf66372c4874e698b41f1e5f52", "score": "0.6691714", "text": "function deleteTag( $tagsVenueId, $tagId ) {\r\n\r\n // debug( $tagsVenueId, $tagId );\r\n $result = $this->findById($tagsVenueId);\r\n\r\n $this->del( $result['TagsVenue']['id'], false);\r\n\r\n // now check if the tag is used by other venues, delete if not\r\n $count = $this->find('count', array('conditions' => \r\n array( 'tag_id' => $tagId ) ) );\r\n if ($count < 1 ) {\r\n $this->Tag->del($tagId, false);\r\n }\r\n \r\n }", "title": "" }, { "docid": "ce251f52d9c52260d6067cc959610d44", "score": "0.6689153", "text": "public function deleteTagGroup($id){\n /*if(empty($tagGroupInfo)){\n http_response_code(404);\n echo \"{'error': 'Group not found!'}\";\n return;\n }*/\n if($this->model->deleteTagGroup($id)){\n http_response_code(200);\n echo json_encode($id, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);\n }else{\n http_response_code(404);\n echo \"{'error': 'Delete operation failed!'}\";\n return;\n }\n }", "title": "" }, { "docid": "61a4a883a2b379f18087c5d66e5cc794", "score": "0.6681437", "text": "public function testTagsIdGet()\n {\n }", "title": "" }, { "docid": "9325f269ddd0e5f32365d1de93024623", "score": "0.66779906", "text": "function delete($id)\n {\n\n }", "title": "" }, { "docid": "109c33ffef1cbefa75073361a53c6c5e", "score": "0.66613203", "text": "public function delete($id)\n {\n # code...\n }", "title": "" }, { "docid": "c60abae69c3aa41e79ea36dc5f81866a", "score": "0.6660279", "text": "function delete($id);", "title": "" }, { "docid": "bc94dc294602f48583ff3ddf0fd08adb", "score": "0.66571784", "text": "private function deleteTag($id) {\n return $this->json('DELETE', \"api/wh_tag_pos/$id\");\n }", "title": "" }, { "docid": "236f3c99a6447b0f0af67c6df2d33949", "score": "0.66542125", "text": "function delete_tags($id_bkm)\n{\n\t$conn=db_connect();\n\t\n\t$del_tag=mysql_query(\"DELETE FROM tags where bkmark_id='$id_bkm'\");\n\t\n\tmysql_close();\n\t\n\tif(!$del_tag)\n\t{\n\t\t\tthrow new Exception('Δεν έγινε η διαγραφή των ετικετών.Παρακαλώ δοκιμάστε αργότερα.');\n\t}\n\t\n}", "title": "" }, { "docid": "72c329c83a6185ec314e717a41f438ab", "score": "0.66485786", "text": "abstract protected function doDelete($id);", "title": "" }, { "docid": "26fbb76b0a88009cc306da689be01f49", "score": "0.6640382", "text": "abstract protected function doDelete($aId);", "title": "" }, { "docid": "69fd2aa30d8bf88490a63848ba3a3a7e", "score": "0.66298693", "text": "public function testDelete()\n {\n /**\n * create an id by post a new item\n */\n $responseText = $this->makeRequestWithSampleDataResponse('POST', $this->_bundle);\n\n $responseAsObject = \\GuzzleHttp\\json_decode($responseText);\n\n $id = $responseAsObject->content->return->id;\n\n /**\n * delete the last created id\n */\n\n $path = $this->_base_uri . '/' . $this->_bundle .'/' . $id;\n\n $response = $this->_client->request(\"DELETE\", $path);\n\n $responseText = (string)$response->getBody();\n\n $responseAsObject = \\GuzzleHttp\\json_decode($responseText);\n\n $this->assertEquals(200, $responseAsObject->status);\n\n $this->assertEquals('success', $responseAsObject->content->message);\n }", "title": "" }, { "docid": "d5f860070d20087d1a0e1a62a7b76ef3", "score": "0.6607254", "text": "public function delete($id){}", "title": "" }, { "docid": "21abd2778c3ee33008f60728a5c96375", "score": "0.65783775", "text": "public function delete($id) {}", "title": "" }, { "docid": "12e549129f9f6dc8cb756f1ddff5b6cc", "score": "0.65737045", "text": "function removeMotoToTag($idTag,$id){\r\n\t\t$this->dao->removeMotoToTag($idTag,$id);\r\n\t\techo \"{\\\"message\\\":\\\"ok\\\"}\";\r\n\t}", "title": "" }, { "docid": "f58d96ef8ac7769be075cfe88e04421f", "score": "0.6571019", "text": "public function delete($id){\r\n\t\t$sql = 'DELETE FROM word_tags WHERE id = ?';\r\n\t\t$sqlQuery = new SqlQuery2($sql);\r\n\t\t$sqlQuery->setNumber($id);\r\n\t\treturn $this->executeUpdate($sqlQuery);\r\n\t}", "title": "" }, { "docid": "bbc0442d510d84c39ba42d2d16c6c40f", "score": "0.655574", "text": "public function delete($id) {\n //\n }", "title": "" }, { "docid": "4d9c7b92305a30e2d5a7ab4ff2bddec9", "score": "0.6535833", "text": "public function delete( $id ){\n\n }", "title": "" }, { "docid": "4d9c7b92305a30e2d5a7ab4ff2bddec9", "score": "0.6535833", "text": "public function delete( $id ){\n\n }", "title": "" }, { "docid": "9add4e72da5ba8678ef7d0fe8b4d37e0", "score": "0.65325624", "text": "public function testDeleteInvoiceWorksheetTag()\n {\n }", "title": "" }, { "docid": "15d992897e104c8cdb57ec39d38d3897", "score": "0.6530174", "text": "function removeLieuToTag($idTag,$id){\r\n\t\t$this->dao->removeLieuToTag($idTag,$id);\r\n\t\techo \"{\\\"message\\\":\\\"ok\\\"}\";\r\n\t}", "title": "" }, { "docid": "e0094a8a56fd68406eb34ac6fce61534", "score": "0.6526789", "text": "public function deletedWithId($id);", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.65125793", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "fb048e9b9fdcdc5d5c82e1463c25c81d", "score": "0.65094507", "text": "public function destroy($id)\n {\n $idTag=Tag::findOrFail($id);\n $this->authorize('delete',$idTag);\n\n Tag::findOrFail($id)->delete();\n\n return 204;\n }", "title": "" }, { "docid": "fa8d0b450dd34cea2f525f80b6485c05", "score": "0.64925903", "text": "public function destroy($tag_id)\n {\n \t$tag = Tag::find($tag_id);\n \ttry{\n \t\tif ($tag != null){\n \t\t\tKnock::deleteTag($tag_id);\n \t\t\treturn redirect('/knock/tags')->with('flash_message', 'Tag '.$tag->name . ' has been deleted');\n \t\t}\n \t}catch(KnockCascadeDeleteAttemptException $e){\n \t\treturn redirect('/knock/tags/'.$tag_id)->with('flash_message', $e->getMessage());\n \t}\n }", "title": "" }, { "docid": "48fb373ceeaa17a868800e3dba598c3d", "score": "0.64896345", "text": "public function delete($id)\n {\n\n }", "title": "" }, { "docid": "181cd77f39b9ec9c227b62947064dedb", "score": "0.6458336", "text": "public function delete(string $id): void;", "title": "" }, { "docid": "181cd77f39b9ec9c227b62947064dedb", "score": "0.6458336", "text": "public function delete(string $id): void;", "title": "" }, { "docid": "181cd77f39b9ec9c227b62947064dedb", "score": "0.6458336", "text": "public function delete(string $id): void;", "title": "" }, { "docid": "bb8a7c6352052d8928022d036b299a81", "score": "0.6453322", "text": "public function delete(string $id)\n {\n }", "title": "" }, { "docid": "0603f85d31bbf00d8fb988e00611819f", "score": "0.64418316", "text": "public function deleteById($id) {}", "title": "" }, { "docid": "300875780be30c354e2da9c49da3cb6b", "score": "0.64358217", "text": "public function testDeleteStageUsingDelete()\n {\n }", "title": "" }, { "docid": "2206478880efdd4fec039f9735613294", "score": "0.643545", "text": "public function destroy($id)\n {\n \n if (Tag::findOrFail($id)) {\n $tag = Tag::findOrFail($id);\n $tag->delete();\n session()->flash('success', 'mise à jours avec effectué avec succes!');\n deleteLog(Tag::class,$id);\n return redirect('tag');\n }\n\n session()->flash('error', 'Echec suppression , l\\'arcticle n\\'existe pas !');\n deleteFailureLog(Tag::class,$id);\n return redirect('tag');\n }", "title": "" }, { "docid": "e567d15d888a93bc2139a25167724a3a", "score": "0.64288867", "text": "public function delete() { if (is_null($this->id))\n trigger_error(\"CompoundContributor::delete(): Attempt to delete CompoundContributor 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_contributor WHERE id = :id LIMIT 1\");\n $st->bindValue(\":id\", $this->id, PDO::PARAM_INT);\n $st->execute();\n $conn = null;\n }", "title": "" }, { "docid": "ffda9811506ba3aa81f99ed875c7d2fa", "score": "0.64208156", "text": "public function testDeletePet()\n {\n $client = static::createClient();\n\n $path = '/pet/{petId}';\n $pattern = '{petId}';\n $data = $this->genTestData('\\d+');\n $path = str_replace($pattern, $data, $path);\n\n $crawler = $client->request('DELETE', $path);\n }", "title": "" }, { "docid": "b8af41e49e14dc6268af31981fb90e59", "score": "0.64200777", "text": "public function destroy($id)\n {\n //\n\t $destag = Tag::where('id', $id)->delete();\n }", "title": "" }, { "docid": "3c4aac2b1723dff84f83ec9ef73b1ce6", "score": "0.6418639", "text": "public function testDeleteTest()\n {\n\n $service = new ServiceContents();\n\n $this->assertTrue($service->Delete(1));\n }", "title": "" }, { "docid": "39057421509ad7eaa418ae66bd71115a", "score": "0.64185995", "text": "public function testDeleteTemplate()\n {\n\n }", "title": "" }, { "docid": "ae42188f46de85f9ada2e3daa354bfac", "score": "0.6413003", "text": "public function delete($id){\n }", "title": "" }, { "docid": "428a470b08353017453ab6e5efb4aa88", "score": "0.6403255", "text": "public function testDeleteContent()\n {\n\n }", "title": "" }, { "docid": "4d5be6ba6e360ce3a6c628c3403cb307", "score": "0.6402242", "text": "public function deleteTag($itemId, $tag){\n\t\t\n\t\t// Get tag\n\t\t$metaModel = $this->getModel('meta');\n\t\t$tag = $metaModel->getTagByName($tag);\n\t\t\n\t\t// Remove from item\n\t\t$query = 'DELETE FROM articleTags\n\t\t\tWHERE articleId = '.(int)$itemId.'\n\t\t\t\tAND tagId = '.(int) $tag['tagId'];\n\t\t$this->_db->setQuery($query);\n\t\t$update['removed'] = (bool) $this->_db->query();\n\t\t\n\t\t// Decrement tag count\n\t\t$update['decremented'] = $metaModel->decrementTagCount($tag['tagName']);\n\t\t\n\t\t// Return\n\t\treturn !in_array(false, $update);\n\t\t\n\t}", "title": "" }, { "docid": "06fc5c5bfbff3e09505af47c9e9b2bda", "score": "0.6401674", "text": "static function delete($id)\n {\n }", "title": "" }, { "docid": "486c9e602b54ef9995ed52748df4d1fb", "score": "0.6398343", "text": "public function Delete($id)\n {\n }", "title": "" }, { "docid": "671cc6af21326fcc2c0707f95925ff4b", "score": "0.639817", "text": "public function deleteById($testId)\n {\n //your code\n }", "title": "" }, { "docid": "01acfabf442bc28f41da3699a5e82cf7", "score": "0.6394189", "text": "function untag_object($webit_id, $tag_id) {\n\n\t $sql = \" delete from dfm_webit_tags where webit_id = $webit_id and tag_id = $tag_id \";\n\t $result = $this->_con->query($sql);\n \t $ret = true;\n \t if ($result == false) {\n error_log($sql);\n\t error_log(\"delete error\" . $this->_con->error);\n\t \t$ret = false;\n\t } \n\n\t return $ret;\n }", "title": "" }, { "docid": "2df0f3c589e90938d39e44d6472e7ffa", "score": "0.6385825", "text": "public function tagDestory($id)\n {\n\n $data = Tag::find($id);\n $data -> delete();\n \n }", "title": "" }, { "docid": "03899d1080bf2a5698b1f27ece5441aa", "score": "0.63829684", "text": "public function test_delete_item() {}", "title": "" }, { "docid": "998aefa84ea69e97636a4a6d84814457", "score": "0.6381716", "text": "public function delete($id)\n\t {\n\t //\n\t }", "title": "" }, { "docid": "341399720e8f58911814c0a4417c9878", "score": "0.6377848", "text": "public function deleteTag($parentId, $tagId) {\n $db = $this->getConnection();\n $db->query(\"DELETE FROM tags WHERE notes_id = $parentId and id = $tagId;\");\n return true;\n }", "title": "" }, { "docid": "77ae1605cfcc46e9c41ac30712745f3d", "score": "0.63762397", "text": "public function DeleteTag($tag) {\n return $this->sendRequest('template/deletetag', array(\n 'tag' => $tag));\n }", "title": "" }, { "docid": "6b0284cad92f5a777458cb99c09d9f32", "score": "0.637523", "text": "public function delete($tid);", "title": "" }, { "docid": "193e686cc3fc5a3729bc5a592679aa08", "score": "0.6371429", "text": "public function actionDelete($id)\n\t{\n\t\tif(Yii::app()->request->isPostRequest)\n\t\t{\n //delete tagItem\n IeltseyeTagitem::model()->deleteAll('idtype=:idtype AND itemid=:itemid', array(':idtype'=>'cardid', ':itemid'=>$id));\n\t\t\t// we only allow deletion via POST request\n\t\t\t$this->loadModel($id)->delete();\n\n\t\t\t// if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser\n\t\t\tif(!isset($_GET['ajax']))\n\t\t\t\t$this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));\n\t\t}\n\t\telse\n\t\t\tthrow new CHttpException(400,'Invalid request. Please do not repeat this request again.');\n\t}", "title": "" }, { "docid": "d5835159ac6a82dc09575a170ff4198c", "score": "0.6368145", "text": "public function testDeleteManageScheduledPlansTag()\n {\n }", "title": "" }, { "docid": "6aa04e816f0451e3481224614e8e89c5", "score": "0.63472927", "text": "public function delete(string $id);", "title": "" }, { "docid": "6aa04e816f0451e3481224614e8e89c5", "score": "0.63472927", "text": "public function delete(string $id);", "title": "" }, { "docid": "9bc2b6b1fe2b253a0f99690f50c39368", "score": "0.633786", "text": "public static function delete($id)\n\t{\n\t}", "title": "" } ]
7f9970929e50b69c871d841e47921aa8
Get Default http headers for http connection to PostNL
[ { "docid": "fbe29556ce9925c4b5d6c1a153947cbc", "score": "0.6498997", "text": "private function getHttpHeaders(): array\n {\n return [\n 'User-Agent' => 'Avido/PostNL-Cif-Rest-Api-Client-' . self::LIBVERSION,\n 'apikey' => $this->apiKey\n ];\n }", "title": "" } ]
[ { "docid": "4b588ec10af6d2bac5b26d0c34485f60", "score": "0.7142721", "text": "function http_get_request_headers()\n {\n }", "title": "" }, { "docid": "d53d1f73cecba77fed40e1669ffa787f", "score": "0.7073712", "text": "function http_get_request_headers()\n{\n}", "title": "" }, { "docid": "1601740b7934ffb428723152371ad727", "score": "0.70332897", "text": "function s_addDefaultHeaders() {\r\n\t\t$this->s_addHeader('Host', '');\r\n\t\t$this->s_addHeader('User-Agent', 'PHP/' . PHP_VERSION . ' (' . PHP_OS . ') extension pp_lib:tx_pplib_http for TYPO3 CMS');\r\n\t\t$this->s_addHeader('Accept', 'text/html;q=0.9,text/*;q=0.8,image/*:q=0.7,*/*;q=0.1');\r\n\t\t$this->s_addHeader('Accept-Language', 'en-us, en;q=0.50');\r\n\t\t$this->s_addHeader('Accept-Charset', 'UTF-8');\r\n\t\t$this->s_addHeader('Connection', 'keep-alive');\r\n\t\t$this->s_addHeader('Keep-Alive', '300');\r\n\t\t$this->s_addHeader('Pragma', 'no-cache');\r\n\t\t$this->s_addHeader('Cache-Control', 'no-cache');\r\n\t\tif (function_exists('gzinflate')) {\r\n\t\t\tif (false && function_exists('crc32')) {\r\n\t\t\t\t$this->s_addHeader('Accept-Encoding','gzip,deflate');\r\n\t\t\t} else {\r\n\t\t\t\t$this->s_addHeader('Accept-Encoding', 'deflate');\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "346c13c34ad72829a52ccef00bc6f15e", "score": "0.67827", "text": "public function getDefaultHeaders(): array;", "title": "" }, { "docid": "bc9c6d16e6e7850d161990636c301706", "score": "0.67559713", "text": "protected function defaultHeaders()\n {\n return [\n 'User-Agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36',\n 'Accept-Language' => 'en-US,en;q=0.8,sr;q=0.6,pt;q=0.4',\n ];\n }", "title": "" }, { "docid": "7a4a4d9e5c77ea6ba75e88d4536c90e4", "score": "0.67523336", "text": "function getHeaders()\n {\n $ret = array();\n foreach ($_SERVER as $key => $value) if (strpos($key, 'HTTP_') === 0) {\n $ret[str_replace('HTTP_', '', $key)] = $value;\n }\n return ($ret);\n }", "title": "" }, { "docid": "ce0f2d0c668dbd2e54ff216700dda772", "score": "0.67115515", "text": "private function getDefaultHttpHeaders() : array\n {\n return [\n 'User-Agent' => $this->driver->getUserAgent(),\n ];\n }", "title": "" }, { "docid": "0a2fd6b482abf0eb0a8a2bce57367e90", "score": "0.6642852", "text": "function getallheaders()\n {\n $headers = array();\n foreach ($_SERVER as $k => $v) {\n if (substr($k, 0, 5) == 'HTTP_') {\n $name = strtolower(substr($k, 5));\n $name = implode('-', array_map('ucfirst', explode('_', $name)));\n $headers[$name] = $v;\n }\n }\n return $headers;\n }", "title": "" }, { "docid": "38195f0286dc586cc456f5071f837a93", "score": "0.6602778", "text": "function getallheaders()\n {\n $headers = [];\n foreach ($_SERVER as $name => $value) {\n if (substr($name, 0, 5) == 'HTTP_') {\n $name = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))));\n $headers[$name] = $value;\n } elseif ($name == 'CONTENT_TYPE') {\n $headers['Content-Type'] = $value;\n } elseif ($name == 'CONTENT_LENGTH') {\n $headers['Content-Length'] = $value;\n }\n }\n\n return $headers;\n }", "title": "" }, { "docid": "4532aadd4ab94ff52042b749fa924f2e", "score": "0.6568422", "text": "public function getDefaultHeaders()\n {\n return $this->defaultHeaders;\n }", "title": "" }, { "docid": "8d0a9b034520486063e5e7efd9960c38", "score": "0.6502838", "text": "private function getRequestHeaders()\n {\n $headers = [];\n // If getallheaders() is available, use that\n if (function_exists('getallheaders')) {\n $headers = getallheaders();\n // getallheaders() can return false if something went wrong\n if ($headers !== false) {\n return $headers;\n }\n }\n // Method getallheaders() not available or went wrong: manually extract 'm\n foreach ($_SERVER as $name => $value) {\n if ((substr($name, 0, 5) == 'HTTP_') || ($name == 'CONTENT_TYPE') || ($name == 'CONTENT_LENGTH')) {\n $headers[str_replace(array(' ', 'Http'), array('-', 'HTTP'), ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;\n }\n }\n return $headers;\n }", "title": "" }, { "docid": "18e709eb6521229b0c9303f2d8766c6e", "score": "0.6494032", "text": "protected function getDefaultHeaders()\n {\n return [\n 'Accept' => 'application/json',\n 'Accept-Encoding' => 'gzip',\n ];\n }", "title": "" }, { "docid": "7cc45fd0654da276a89e2ee55b6b786a", "score": "0.6459228", "text": "protected function getRequestHeaders() {\r\n $headers = array();\r\n \r\n foreach ($_SERVER as $header => $value) {\r\n if (strpos($header, 'HTTP_') === 0) {\r\n $header = strtolower(substr($header, 5));\r\n $headers[$header] = $value;\r\n }\r\n }\r\n\r\n return $headers;\r\n }", "title": "" }, { "docid": "01e9f086806cdd1d782ec914d5fe5489", "score": "0.64482343", "text": "public function testDefaultHeaders()\n {\n $request = new Request();\n $this->assertEquals('CakePHP', $request->getHeaderLine('User-Agent'));\n $this->assertEquals('close', $request->getHeaderLine('Connection'));\n }", "title": "" }, { "docid": "7248d680d127f2005a0ad94b498d373b", "score": "0.64394003", "text": "function getHeaders();", "title": "" }, { "docid": "7248d680d127f2005a0ad94b498d373b", "score": "0.64394003", "text": "function getHeaders();", "title": "" }, { "docid": "bae79e1295703f14c39ef3c99e66b5fc", "score": "0.6429189", "text": "function fetch_headers()\n {\n if (!is_callable('getallheaders')) \n {\n $headers = array();\n foreach ($_SERVER as $h => $v) \n {\n if (strpos($h, 'HTTP_') === 0) \n {\n $headers[$this->fix_case($h)] = $v;\n }\n }\n } \n else \n {\n $headers = getallheaders();\n }\n return $headers;\n }", "title": "" }, { "docid": "70031faad39377aba79f6c3d41f9d6bc", "score": "0.64119995", "text": "function get_headers()\n {\n $headers = array();\n\n $copy_server = array(\n 'CONTENT_TYPE' => 'Content-Type',\n 'CONTENT_LENGTH' => 'Content-Length',\n 'CONTENT_MD5' => 'Content-Md5',\n );\n\n foreach ($_SERVER as $key => $value) {\n if (substr($key, 0, 5) === 'HTTP_') {\n $key = substr($key, 5);\n if (!isset($copy_server[$key]) || !isset($_SERVER[$key])) {\n $key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key))));\n $headers[$key] = $value;\n }\n } elseif (isset($copy_server[$key])) {\n $headers[$copy_server[$key]] = $value;\n }\n }\n\n if (!isset($headers['Authorization'])) {\n if (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) {\n $headers['Authorization'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION'];\n } elseif (isset($_SERVER['PHP_AUTH_USER'])) {\n $basic_pass = isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : '';\n $headers['Authorization'] = 'Basic ' . base64_encode($_SERVER['PHP_AUTH_USER'] . ':' . $basic_pass);\n } elseif (isset($_SERVER['PHP_AUTH_DIGEST'])) {\n $headers['Authorization'] = $_SERVER['PHP_AUTH_DIGEST'];\n }\n }\n\n return $headers;\n }", "title": "" }, { "docid": "4bc5c4b7a30836771fe8982c46487582", "score": "0.6409644", "text": "public function __getLastRequestHeaders() {\r\n\t\treturn implode(\"n\", $this->__last_request_headers).\"n\";\r\n\t}", "title": "" }, { "docid": "19a0b0ac4010ca06f589b68f6e279b04", "score": "0.6383122", "text": "public function getRequestHeaders() {\n\t\t\t\n\t\tif (! isset($this->headers)) {\n\t\t\t\t\n\t\t\tif (function_exists('apache_request_headers')) {\n\t\t\t\t$_headers = apache_request_headers();\n\t\t\t} else {\n\t\t\t\t$_headers = array();\n\t\t\t\t$misfits = array('CONTENT_TYPE', 'CONTENT_LENGTH', 'CONTENT_MD5', 'AUTH_TYPE', 'PHP_AUTH_USER', 'PHP_AUTH_PW', 'PHP_AUTH_DIGEST');\n\t\t\t\tforeach ( $_SERVER as $key => $value ) {\n\t\t\t\t\tif (0 === strpos($key, 'HTTP_')) {\n\t\t\t\t\t\t$_headers[$key] = $value;\n\t\t\t\t\t} else if (in_array($key, $misfits, true)) {\n\t\t\t\t\t\t$_headers[$key] = $value;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$this->headers = array();\n\t\t\tforeach ( $_headers as $key => $value ) {\n\t\t\t\t$key = str_replace(array('http_', '_'), array('', '-'), strtolower($key));\n\t\t\t\t$this->headers[$key] = $value;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this->headers;\n\t}", "title": "" }, { "docid": "8ed49064f903259621e7e729e9064399", "score": "0.6369865", "text": "public function getClientHeaders()\n {\n\t$headers = array();\n\t\n\tforeach ($_SERVER as $key => $val){\n\t \n\t if (substr($key, 0, 5) == 'HTTP_'){\n\t\t\n\t\t$key = str_replace('_', ' ', substr($key, 5));\n\t\t$key = str_replace(' ', '-', ucwords(strtolower($key)));\n\t\t\n\t\t$headers[$key] = $val;\n\t }\n\t}\n\t\n\treturn $headers;\n }", "title": "" }, { "docid": "288b717e5848dcde9f050cfcdd4545bf", "score": "0.6369281", "text": "private function getHttpHeaders() {\n $httpHeaders = array();\n foreach($_SERVER as $key => $val) {\n if(preg_match('/^HTTP_X_/', $key)) $httpHeaders[preg_replace('/HTTP_X_/', '', $key)] = $val;\n }\n return $httpHeaders;\n }", "title": "" }, { "docid": "b742589c9cbefdd87816c3bc7408d488", "score": "0.63531727", "text": "public function __getLastRequestHeaders();", "title": "" }, { "docid": "f258c34ee397597aef4f0a4c364bffad", "score": "0.63490397", "text": "function my2_getallheaders()\r\n{\r\n\t$headers = array();\r\n\t$copy_server = array(\r\n\t\t'CONTENT_TYPE' => 'Content-Type',\r\n\t\t'CONTENT_LENGTH' => 'Content-Length',\r\n\t\t'CONTENT_MD5' => 'Content-Md5',\r\n\t);\r\n\tforeach ($_SERVER as $key => $value) {\r\n\t\tif (substr($key, 0, 5) === 'HTTP_') {\r\n\t\t\t$key = substr($key, 5);\r\n\t\t\tif (!isset($copy_server[$key]) || !isset($_SERVER[$key])) {\r\n\t\t\t\t$key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key))));\r\n\t\t\t\t$headers[$key] = $value;\r\n\t\t\t}\r\n\t\t} elseif (isset($copy_server[$key])) {\r\n\t\t\t$headers[$copy_server[$key]] = $value;\r\n\t\t}\r\n\t}\r\n\tif (!isset($headers['Authorization'])) {\r\n\t\tif (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) {\r\n\t\t\t$headers['Authorization'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION'];\r\n\t\t} elseif (isset($_SERVER['PHP_AUTH_USER'])) {\r\n\t\t\t$basic_pass = isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : '';\r\n\t\t\t$headers['Authorization'] = 'Basic ' . base64_encode($_SERVER['PHP_AUTH_USER'] . ':' . $basic_pass);\r\n\t\t} elseif (isset($_SERVER['PHP_AUTH_DIGEST'])) {\r\n\t\t\t$headers['Authorization'] = $_SERVER['PHP_AUTH_DIGEST'];\r\n\t\t}\r\n\t}\r\n\treturn $headers;\r\n}", "title": "" }, { "docid": "751e7e3f6f6414ea8211cad4f4438c21", "score": "0.6337896", "text": "function vibe_getallheaders() \n{ \n \t$headers = array (); \n \tif (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION']) && !isset($_SERVER['HTTP_AUTHORIZATION'])) {\n\t\t$_SERVER['HTTP_AUTHORIZATION'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION'];\n\t}\n \tforeach ($_SERVER as $name => $value) \n \t{ \n if (substr($name, 0, 5) == 'HTTP_') \n { \n $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value; \n } \n \t} \n return $headers; \n}", "title": "" }, { "docid": "08e281661a465d7eb9d008569c79ca69", "score": "0.63339674", "text": "function headers()\n{\n $serverKeys = array_keys($_SERVER);\n $httpHeaders = array_filter($serverKeys, function ($key) {\n return substr($key, 0, 5) == 'HTTP_';\n });\n\n $values = array_map(function ($header) {\n return $_SERVER[$header];\n }, $httpHeaders);\n\n $headers = array_map(function ($header) {\n return str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($header, 5)))));\n }, $httpHeaders);\n\n return array_combine($headers, $values);\n}", "title": "" }, { "docid": "70229666ea16f43e7771a671175b1ca9", "score": "0.6333473", "text": "public function getHttpHeaders()\n {\n return array('Content-Type: application/json');\n }", "title": "" }, { "docid": "231ea99c7063ca3deae1a27c9272d00f", "score": "0.63186204", "text": "public function getHeaderData()\n\t{\n\t\t$headers = array();\n\t\tforeach ($_SERVER as $name => $value) {\n\t\t\tif (substr($name, 0, 5) == 'HTTP_') {\n\t\t\t\t$headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;\n\t\t\t}\n\t\t}\n\t\treturn $headers;\n\t}", "title": "" }, { "docid": "6c3aa8d1530c71c95323c488d215d60e", "score": "0.6312297", "text": "protected function get_gateway_headers( ){\n\t\treturn \"\";\t\n\t}", "title": "" }, { "docid": "2e164086557552bad6dc4c46f04a55fc", "score": "0.62802446", "text": "private function getHttpHeaders()\n {\n $ret = array();\n foreach ($this->httpConfig->getHeaders() as $k => $v) {\n $ret[] = \"$k: $v\";\n }\n return $ret;\n }", "title": "" }, { "docid": "73aaeb86de3234b45072d2f8b1e85329", "score": "0.62296027", "text": "public function getRequestHeaders()\n {\n $headers = array();\n\n foreach ($this->data->getAll() as $key => $value) {\n if ('HTTP_' === substr($key, 0, 5)) {\n $headers[substr($key, 5)] = $value;\n }\n }\n\n return $headers;\n }", "title": "" }, { "docid": "d897e14fc4e3a581a0f0fa1c81a3b44d", "score": "0.6218164", "text": "public function testDefaultHeaders(): void\n {\n $request = new Request();\n $this->assertSame('CakePHP', $request->getHeaderLine('User-Agent'));\n $this->assertSame('close', $request->getHeaderLine('Connection'));\n }", "title": "" }, { "docid": "f878adb5fbbe59191df0e71e04069961", "score": "0.6212415", "text": "public static function headers($name=null){\n $headers = [];\n if( function_exists('\\getallheaders') ){\n $headers = \\getallheaders();\n }\n else if(function_exists('\\apache_request_headers')){\n $headers = \\apache_request_headers();\n }\n else{\n \n foreach ($_SERVER as $name => $value) { \n if (substr($name, 0, 5) == 'HTTP_') { \n $name = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5))))); \n $headers[$name] = $value; \n } \n else if ($name == \"CONTENT_TYPE\") { \n $headers[\"Content-Type\"] = $value; \n } \n else if ($name == \"CONTENT_LENGTH\") { \n $headers[\"Content-Length\"] = $value; \n } \n } \n }\n\n if( $name === null ){\n return $headers;\n }\n\n if( isset($headers[$name]) ){\n return $headers[$name];\n }\n \n return null;\n }", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.61912614", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.61912614", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.61912614", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.61912614", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.61912614", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.61912614", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.61912614", "text": "public function getHeaders();", "title": "" }, { "docid": "dde5da5f4d7ae09e2d9c5eb726e298ba", "score": "0.6187535", "text": "function ddtrace_config_http_headers()\n{\n return array_map(\n function ($header) {\n return \\strtolower($header);\n },\n \\_ddtrace_config_indexed_array(\\ddtrace_config_read_env_or_ini('DD_TRACE_HEADER_TAGS'), [])\n );\n}", "title": "" }, { "docid": "17ef42bb286526ae453ed00629681015", "score": "0.6185846", "text": "private function headers(){\n $header = \"Content-Type: application/json\\r\\n\".\n \"Authorization: Basic {$this->TOKEN}\\r\\n\";\n return $header;\n }", "title": "" }, { "docid": "b636879d55f7e7e7945a8e9e0bcdc2c8", "score": "0.61791354", "text": "protected function getHeaders()\n {\n if (function_exists('getallheaders')) {\n return getallheaders();\n }\n $arr_headers = [];\n foreach ($_SERVER as $str_key => $str_value) {\n if (strpos($str_key, 'HTTP_') === 0) {\n $arr_headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($str_key, 5)))))] = $str_value;\n }\n }\n return $arr_headers;\n }", "title": "" }, { "docid": "99586eaf45e0fb6b2087162c01ef9d45", "score": "0.61446965", "text": "public static function headers()\n\t{\n\t\treturn array(\n\t\t\t'X-COMPANY' => '0',\n\t\t\t'X-USER' => 'test',\n\t\t\t'X-PASSWORD' => 'test'\n\t\t);\n\t}", "title": "" }, { "docid": "482eeb392050704964e34881dde4a81a", "score": "0.61183727", "text": "public function getHeaders()\n {\n if (is_null($this->headers)) {\n $this->headers = [];\n foreach ($_SERVER as $name => $value) {\n if (strpos($name, 'HTTP_') === 0) {\n $name = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))));\n $this->headers[$name] = $value;\n }\n }\n }\n return $this->headers;\n }", "title": "" }, { "docid": "2db8b507a88eb181fea0c0dabc3fe246", "score": "0.6115829", "text": "public function getResponseHeaders ();", "title": "" }, { "docid": "7699e747fe8501c6b4ad53c912d5cfe5", "score": "0.6083065", "text": "private function get_apache_nginx_headers()\n {\n $headers=[];\n\n foreach ($_SERVER as $name => $value) {\n if (substr($name, 0, 5)=='HTTP_') {\n $name=substr($name, 5);\n $name=str_replace('_', ' ', $name);\n $name=ucwords($name);\n $name=str_replace(' ', '-', $name);\n $name=strtoupper($name);\n $headers[$name] = $value;\n } elseif (strpos($name, 'X-YC-') !== false) {\n $name=strtoupper($name);\n $headers[$name] = $value;\n }\n }\n\n\n return $headers;\n }", "title": "" }, { "docid": "2b20c996df180e09733f4ec5c235b2c1", "score": "0.60677326", "text": "protected function getRequestHeaders()\n\t{\n\t\t$headers = [];\n\n\t\tforeach ($_SERVER as $key => $value) {\n\t\t\tif (substr($key, 0, 5) !== 'HTTP_') continue;\n\n\t\t\t$header = substr($key, 5);\n\t\t\t$header = str_replace('_', ' ', $header);\n\t\t\t$header = ucwords(strtolower($header));\n\t\t\t$header = str_replace(' ', '-', $header);\n\n\t\t\t$value = $this->slim->request()->headers($header, $value);\n\n\t\t\tif (! isset($headers[$header])) {\n\t\t\t\t$headers[$header] = [ $value ];\n\t\t\t} else {\n\t\t\t\t$headers[$header][] = $value;\n\t\t\t}\n\t\t}\n\n\t\tksort($headers);\n\n\t\treturn $headers;\n\t}", "title": "" }, { "docid": "5e20f1bf1f6057f7bff0d0df7ccb16a2", "score": "0.60662466", "text": "private function getHeaders()\n {\n return [\n 'HTTP_X_AUTH_TOKEN' => \"TkpJe8qr9hjbqPwCHi0n\",\n 'CONTENT_TYPE' => 'application/json',\n ];\n }", "title": "" }, { "docid": "bab4ec30848120b1003dc9fc35fedfef", "score": "0.6057687", "text": "public function getHttpHeaders()\n {\n return $this->httpHeaders;\n }", "title": "" }, { "docid": "752b5013ccd43e70cb65cd46d17d563c", "score": "0.6052187", "text": "private function getHeaders()\n {\n\n $headersep = (!isset( $this->uself ) || ($this->uself == 0)) ? \"\\r\\n\" : \"\\n\" ;\n $headers = 'MIME-Version: 1.0' . $headersep;\n $headers .= $this->getDocType() . $headersep;\n $headers .= 'From: '.$this->from . $headersep;\n\n if ( $this->replyTo ) $headers .= 'Reply-To: '.$this->replyTo . $headersep;\n\n return $headers;\n }", "title": "" }, { "docid": "04dc69aee8ff1d08898cfa97bcd0457d", "score": "0.6051449", "text": "public function getHttpHeaders() {\r\n\t\treturn $this->getAll('http_headers');\r\n\t}", "title": "" }, { "docid": "517439460851a0196d49a2d726c72253", "score": "0.60384387", "text": "public function getResponseHeaders();", "title": "" }, { "docid": "517439460851a0196d49a2d726c72253", "score": "0.60384387", "text": "public function getResponseHeaders();", "title": "" }, { "docid": "54874369fc28d58b0694d548ce5e3759", "score": "0.6033723", "text": "public static function getRequestHeaders() {\n\t\tif (function_exists('apache_request_headers')) {\n\t\t\t// We need this to get the actual Authorization:\n\t\t\t// header because apache tends to tell us it doesn't exist.\n\t\t\treturn apache_request_headers();\n\t\t}\n\n\t\t// If we're not using apache, we just have to hope that _SERVER actually\n\t\t// contains what we need.\n\t\t$headers = array();\n\n\t\tforeach ($_SERVER as $key => $value) {\n\t\t\tif (substr($key, 0, 5) == 'HTTP_') {\n\t\t\t\t// this is chaos, basically it is just there to capitalize the first\n\t\t\t\t// letter of every word that is not an initial HTTP and strip HTTP\n\t\t\t\t// code from przemek\n\t\t\t\t$key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($key, 5)))));\n\t\t\t\t$headers[$key] = $value;\n\t\t\t}\n\t\t}\n\t\treturn $headers;\n\t}", "title": "" }, { "docid": "dd516892e81be376c6d1179f828be1cf", "score": "0.6032382", "text": "private function parseHeaders() {\n $headers = array();\n $specials = array(\n 'CONTENT_TYPE',\n 'CONTENT_MD5',\n 'CONTENT_LENGTH',\n 'PHP_AUTH_USER',\n 'PHP_AUTH_PW',\n 'PHP_AUTH_DIGEST',\n 'AUTH_TYPE'\n );\n\n foreach ($_SERVER as $key => $value) {\n if ((strpos($key, 'HTTP_') === 0) || in_array($key, $specials)) {\n $key = str_replace(' ', '-', ucwords(strtolower(str_replace(array('_', '-'), ' ', substr($key, 5)))));\n\n $headers[$key] = $value;\n }\n }\n\n return $headers;\n }", "title": "" }, { "docid": "ed827d390651054db0f5b959760b9e3b", "score": "0.6032027", "text": "function TznHeaders() {\n\t}", "title": "" }, { "docid": "4ef86eb9f7b3e277f2d77b5019dfbe97", "score": "0.60211277", "text": "static function getRequestHeaders() : array {\n $headers = [];\n $headerPrefix = 'http_';\n $prefixLength = mb_strlen($headerPrefix);\n $serverData = self::getServerData();\n\n if(\n function_exists('apache_request_headers') &&\n $serverData->type === 'apache'\n ){\n // Apache WebServer\n $headers = apache_request_headers();\n }else{\n // Other WebServer, e.g. Nginx\n // Unfortunately this \"fallback\" does not work for me (Apache)\n // Therefore we can´t use this for all servers\n // https://github.com/exodus4d/pathfinder/issues/58\n foreach($_SERVER as $name => $value){\n $name = mb_strtolower($name);\n if(mb_substr($name, 0, $prefixLength) == $headerPrefix){\n $headers[mb_convert_case(str_replace('_', '-', mb_substr($name, $prefixLength)), MB_CASE_TITLE)] = $value;\n }\n }\n }\n\n return $headers;\n }", "title": "" }, { "docid": "c34649c172f86ff43ee9e8a11f0a8af5", "score": "0.6001128", "text": "public static function getHeaders()\n\t{\n\t\tif (function_exists('apache_request_headers')) {\n\t\t\t// we need this to get the actual Authorization: header\n\t\t\t// because apache tends to tell us it doesn't exist\n\t\t\t$headers = apache_request_headers();\n\n\t\t\t// sanitize the output of apache_request_headers because\n\t\t\t// we always want the keys to be Cased-Like-This and arh()\n\t\t\t// returns the headers in the same case as they are in the\n\t\t\t// request\n\t\t\t$out = array();\n\t\t\tforeach ($headers AS $key => $value) {\n\t\t\t\t$key = str_replace(\n\t\t\t\t\t\" \",\n\t\t\t\t\t\"-\",\n\t\t\t\t\tucwords(strtolower(str_replace(\"-\", \" \", $key)))\n\t\t\t\t);\n\t\t\t\t$out[$key] = $value;\n\t\t\t}\n\t\t} else {\n\t\t\t// otherwise we don't have apache and are just going to have to hope\n\t\t\t// that $_SERVER actually contains what we need\n\t\t\t$out = array();\n\t\t\tforeach ($_SERVER as $key => $value) {\n\t\t\t\tif ($key == 'CONTENT_TYPE'){\n\t\t\t\t\t$key = str_replace(\n\t\t\t\t\t\t\" \",\n\t\t\t\t\t\t\"-\",\n\t\t\t\t\t\tucwords(strtolower(str_replace(\"_\", \" \", $key)))\n\t\t\t\t\t);\n\t\t\t\t\t$out[$key] = $value;\n\t\t\t\t} else if (substr($key, 0, 5) == \"HTTP_\") {\n\t\t\t\t\t// this is chaos, basically it is just there to capitalize the first\n\t\t\t\t\t// letter of every word that is not an initial HTTP and strip HTTP\n\t\t\t\t\t// code from przemek\n\t\t\t\t\t$key = str_replace(\n\t\t\t\t\t\t\" \",\n\t\t\t\t\t\t\"-\",\n\t\t\t\t\t\tucwords(strtolower(str_replace(\"_\", \" \", substr($key, 5))))\n\t\t\t\t\t);\n\t\t\t\t\t$out[$key] = $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $out;\n\t}", "title": "" }, { "docid": "67359abce0ebf564fcae48831795a5cb", "score": "0.5976334", "text": "public function getHeaders() {\n $this->_body = curl_exec($this->_url);\n return $this->_headers;\n }", "title": "" }, { "docid": "3b73d4894afff31da3dba5ad6a276539", "score": "0.5932898", "text": "public function getHeaders()\n {\n }", "title": "" }, { "docid": "83eb5e837a219180f80c94296cb171fa", "score": "0.5932479", "text": "public function getHeaders()\n {\n $h = array();\n if (!empty($this->timeout))\n $h['Refresh'] = $this->timeout . '; url=' . $this->url;\n else\n $h['Location'] = (string)$this->url;\n return $h;\n }", "title": "" }, { "docid": "d9b3d52695916c78ca16115994c2c110", "score": "0.59320796", "text": "function BasicHeader($type) {\n\t\t$crlf = \"\\r\\n\";\n\t\t//If has get params, add them\n\t\treturn $type . ' ' . $this->_uri . ($this->_params == '' ? '' : '?'.$this->_params) . ' HTTP/1.0' . $crlf\n\t\t\t. 'Host: ' . $this->_host . $crlf;\n\t}", "title": "" }, { "docid": "e72f47ef7992352fa14a050936087f0a", "score": "0.59213", "text": "function server_info($data){\nif(!function_exists('getallheaders'))\n{\n function getallheaders() \n {\n foreach($_SERVER as $name => $value)\n {\n if(substr($name, 0, 5) == 'HTTP_')\n {\n $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;\n }\n }\n return $headers;\n}\n}\n$count=0;\n\nforeach (getallheaders() as $name => $value) \n{\n if(preg_match(\"/^(Accept|Accept-Encoding|Accept-Language|Cookie|Referer)/i\", trim($name)))\n {\n $header1[$count]=array($name => $value);\n $count++;\n }\n $header1[$count]=array($name => $value);\n // array_push($data, $header1);\n}\n\narray_push($data, $header1);\nreturn $data;\n\n}", "title": "" }, { "docid": "422b0ec7a3eca74a59ecbbcb2e87ff12", "score": "0.59035355", "text": "private function _headers()\n {\n return array\n (\n \"Authorization: GoogleLogin auth=\" . $this->auth,\n \"GData-Version: 3.0\",\n );\n }", "title": "" }, { "docid": "277dd5e40d1c62ad1ca58d15c78648ba", "score": "0.5895604", "text": "public static function get_all_headers()\n {\n $retarr = array();\n $headers = array();\n\n if (function_exists('apache_request_headers')) {\n $headers = apache_request_headers();\n ksort($headers);\n return $headers;\n } else {\n $headers = array_merge($_ENV, $_SERVER);\n\n foreach ($headers as $key => $val) {\n //we need this header\n if (strpos(strtolower($key), 'content-type') !== FALSE)\n continue;\n if (strtoupper(substr($key, 0, 5)) != \"HTTP_\")\n unset($headers[$key]);\n }\n }\n\n //Normalize this array to Cased-Like-This structure.\n foreach ($headers AS $key => $value) {\n $key = preg_replace('/^HTTP_/i', '', $key);\n $key = str_replace(\n \" \",\n \"-\",\n ucwords(strtolower(str_replace(array(\"-\", \"_\"), \" \", $key)))\n );\n $retarr[$key] = $value;\n }\n ksort($retarr);\n\n return $retarr;\n }", "title": "" }, { "docid": "082b803c9b137d8336fce203cf15bf72", "score": "0.58930564", "text": "function getHeaders()\n{\n\t $headers = $GLOBALS['server']->requestHeaders;\n\n\tif (!empty($headers)) {\n\t\treturn 'The headers are present: '.$headers;\n\t} else {\n\t\treturn 'The header is NOT present!';\n\t}\n}", "title": "" }, { "docid": "8ff3df53616864b8637d6dd72ee24948", "score": "0.5887855", "text": "public static function defaultHeaders($headers = NULL){\n if (is_array($headers)){\n static::$_DEFAULT_HEADERS = $headers;\n }\n return static::$_DEFAULT_HEADERS;\n }", "title": "" }, { "docid": "84181f0f19f2efef8d297e85086b8939", "score": "0.585687", "text": "public function getHeaders()\n {\n // Define a headers array\n $headers = array();\n foreach ($this->server as $key => $value) {\n // Does our server attribute have our header prefix?\n if (self::hasPrefix($key, self::$http_header_prefix)) {\n // Add our server attribute to our header array\n $headers[substr($key, strlen(self::$http_header_prefix))] = $value;\n } elseif (in_array($key, self::$http_nonprefixed_headers)) {\n // Add our server attribute to our header array\n $headers[$key] = $value;\n }\n }\n return $headers;\n }", "title": "" }, { "docid": "8bb907437a46413234ce3b810fda0a57", "score": "0.58363914", "text": "function fn_storefront_rest_api_get_request_headers()\n{\n $result = array();\n\n if (function_exists('getallheaders')) {\n $headers = getallheaders();\n\n foreach ($headers as $name => $value) {\n $result[$name] = $value;\n }\n } else {\n foreach ($_SERVER as $name => $value) {\n if (strncmp($name, 'HTTP_', 5) === 0) {\n $name = strtolower(str_replace('_', '-', substr($name, 5)));\n $result[$name] = $value;\n }\n }\n }\n\n foreach ($result as $name => $value) {\n $valid_name = str_replace(' ', '-', ucwords(str_replace('-', ' ', $name)));\n unset($result[$name]);\n $result[$valid_name] = $value;\n }\n\n return $result;\n}", "title": "" }, { "docid": "986c9b1d9b36996cf32cbe70325e3bf0", "score": "0.5830567", "text": "function httpGetLastResponseHeaders() {\n if ($this->lastResponse) {\n return $this->HttpGetHeaders($this->lastResponse->headers);\n }\n\n return array();\n }", "title": "" }, { "docid": "cb71238aa63f582ea898d5ea81142640", "score": "0.58300436", "text": "function _get_response_headers() {\n\t\t$headers_kv = array();\n\t\t$headers_plain = array();\n\n\t\tif ( function_exists( 'headers_list' ) ) {\n\t\t\t$headers_list = headers_list();\n\t\t\tif ( $headers_list ) {\n\t\t\t\tforeach ( $headers_list as $header ) {\n\t\t\t\t\t$pos = strpos( $header, ':' );\n\t\t\t\t\tif ( $pos ) {\n\t\t\t\t\t\t$header_name = substr( $header, 0, $pos );\n\t\t\t\t\t\t$header_value = substr( $header, $pos + 1 );\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$header_name = $header;\n\t\t\t\t\t\t$header_value = '';\n\t\t\t\t\t}\n\t\t\t\t\t$headers_kv[$header_name] = $header_value;\n\t\t\t\t\t$headers_plain[] = array(\n\t\t\t\t\t\t'name' => $header_name,\n\t\t\t\t\t\t'value' => $header_value\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn array(\n\t\t\t'kv' => $headers_kv,\n\t\t\t'plain' => $headers_plain\n\t\t);\n\t}", "title": "" }, { "docid": "ce36f73b755d7059dc969a5bbb65ea0d", "score": "0.58297485", "text": "public function headers($key = null, $default = null, $nullIfEmpty = false) {\n if ($this->headers === null) {\n $result = array(); \n\n foreach ($this->serverVariables as $k => $v)\n {\n if (substr($k, 0, 5) == 'HTTP_') \n {\n $headerName = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($k, 5)))));\n $result[$headerName] = $v;\n }\n }\n\n $this->headers = $result;\n }\n\n return InternalHelper::getSingleKeyOrAll($this->headers, $key, $default, $nullIfEmpty);\n }", "title": "" }, { "docid": "73991b2e7cf746fe49b4dfadeb109085", "score": "0.58282936", "text": "private function _provideHeaders()\n {\n return getallheaders();\n }", "title": "" }, { "docid": "f930dcdb9553a3601a82037021b69a70", "score": "0.582785", "text": "protected function getHeaders()\n {\n $headers = [\n 'Accept' => 'application/json'\n ];\n\n return $headers;\n }", "title": "" }, { "docid": "b8576c8a2756373761f50576b4ac57a6", "score": "0.5826536", "text": "public function getHeaders()\n {\n $header = array();\n if(!empty($this->headers))\n $header['headers'] = $this->headers;\n\n if(!empty($this->query))\n $header['query'] = $this->query;\n\n if(!empty($this->form_params))\n $header['form_params'] = $this->form_params;\n\n if(!empty($this->multipart))\n $header['multipart'] = $this->multipart;\n\n return $header;\n }", "title": "" }, { "docid": "76a3af09c6f32fbb8a2bc19c6fb277ae", "score": "0.5825762", "text": "public function getHeaders() {\n\n\t\treturn $this->httpHeaders;\n\n\t}", "title": "" }, { "docid": "5475a83c3c3bca7252a27da853815c28", "score": "0.58162373", "text": "public function getSPECIAL_HEADERS() {\n return $this->SPECIAL_HEADERS = array('CONTENT_TYPE', 'CONTENT_LENGTH', 'PHP_AUTH_DIGEST', 'PHP_AUTH_USER', 'PHP_AUTH_PW', 'AUTH_TYPE');\n }", "title": "" }, { "docid": "bb890881521f30ee7ec7e6414a67fb3d", "score": "0.58076525", "text": "function get_headers()\n{\n return FileGetContents::getLastResponseHeaders();\n}", "title": "" }, { "docid": "b17a0a74afff76955481c7b0373debe8", "score": "0.578464", "text": "protected function getHttpHeaders()\n {\n $headers = array();\n if (!is_null($this->_maxage)) {\n $headers['Cache-Control'] = 'max-age=' . $this->_maxage;\n }\n if ($this->_gzipped) {\n $headers['Content-Encoding'] = 'gzip';\n }\n\n return $headers;\n }", "title": "" }, { "docid": "285205d05d166a9875b44472908adc18", "score": "0.5775037", "text": "function getHeaders() {\n\t\tif (count($_FILES) == 0) {\n\t\t\treturn array(\n\t\t\t\t'http' => array(\n\t\t\t\t\t'Content-Type' => 'application/json',\n\t\t\t\t)\n\t\t\t);\n\t\t} else {\n\t\t\t// Als er bestanden ge-upload zijn, gaat het *niet* om een XMLHttpRequest, maar waarschijnlijk om een upload naar een hidden iframe via javascript.\n\t\t\t// Een \"application/json\" header zal dan een ongewenste download veroorzaken.\n\t\t\t// (Of als de JSONView extensie is geinstalleerd, wordt de json versmurft als html)\n\t\t\treturn array(\n\t\t\t\t'http' => array(\n\t\t\t\t\t'Content-Type' => 'plain/text',\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "6e724542fe9b813631860426078c2a25", "score": "0.57675827", "text": "public function headers(): Headers;", "title": "" }, { "docid": "6e724542fe9b813631860426078c2a25", "score": "0.57675827", "text": "public function headers(): Headers;", "title": "" }, { "docid": "4e624d01293cfb0eb86ae5f115014250", "score": "0.57546747", "text": "public function getHeaders(): array\n {\n return [\n 'Content-Type' => 'application/json',\n ];\n }", "title": "" }, { "docid": "d474ba2df990267ffb685c9ece7141f3", "score": "0.57490027", "text": "public static function getAllHeaders() {\n\t\t$ret = array();\n\t\t$headers = array();\n\n\t\tif(function_exists('apache_request_headers')) {\n\t\t\t$headers = apache_request_headers();\n\t\t} else {\n\t\t\t$headers = array_merge($_ENV, $_SERVER);\n\n\t\t\tforeach($headers as $key => $val) {\n\t\t\t\t// We need this header\n\t\t\t\tif(strpos(strtolower($key), 'content-type') !== FALSE) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif(strtoupper(substr($key, 0, 5)) != 'HTTP_') {\n\t\t\t\t\tunset($headers[$key]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Normalize this array to Cased-Like-This structure.\n\t\tforeach($headers as $key => $value) {\n\t\t\t$key = preg_replace('/^HTTP_/i', '', $key);\n\t\t\t$key = str_replace(' ', '-', ucwords(strtolower(str_replace(array(\n\t\t\t\t'-', '_'\n\t\t\t), ' ', $key))));\n\n\t\t\t$ret[$key] = $value;\n\t\t}\n\n\t\tksort($ret);\n\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "52092518a26c4a4eb1dfbb4839bc4f3a", "score": "0.5742753", "text": "public function headers() {\n\n\t}", "title": "" }, { "docid": "0d2850d5acfecad709cf106c5840ef37", "score": "0.57403123", "text": "public function getHttpHeaders()\n {\n $headers = [];\n switch ($this->httpStatusCode) {\n case 401:\n $headers[] = 'HTTP/1.1 401 Unauthorized';\n break;\n case 500:\n $headers[] = 'HTTP/1.1 500 Internal Server Error';\n break;\n case 501:\n $headers[] = 'HTTP/1.1 501 Not Implemented';\n break;\n case 400:\n default:\n $headers[] = 'HTTP/1.1 400 Bad Request';\n break;\n }\n\n // Add \"WWW-Authenticate\" header\n //\n // RFC 6749, section 5.2.:\n // \"If the client attempted to authenticate via the 'Authorization'\n // request header field, the authorization server MUST\n // respond with an HTTP 401 (Unauthorized) status code and\n // include the \"WWW-Authenticate\" response header field\n // matching the authentication scheme used by the client.\n // @codeCoverageIgnoreStart\n if ($this->errorType === 'invalid_client') {\n $authScheme = null;\n $request = new Request();\n if ($request->getUser() !== null) {\n $authScheme = 'Basic';\n } else {\n $authHeader = $request->headers->get('Authorization');\n if ($authHeader !== null) {\n if (strpos($authHeader, 'Bearer') === 0) {\n $authScheme = 'Bearer';\n } elseif (strpos($authHeader, 'Basic') === 0) {\n $authScheme = 'Basic';\n }\n }\n }\n if ($authScheme !== null) {\n $headers[] = 'WWW-Authenticate: '.$authScheme.' realm=\"\"';\n }\n }\n // @codeCoverageIgnoreEnd\n return $headers;\n }", "title": "" }, { "docid": "930cfd58ed11cf36201f2b20d9b503b1", "score": "0.5729244", "text": "#[\\ReturnTypeWillChange]\n public function __getLastRequestHeaders()\n {\n return implode('n', $this->__last_request_headers).\"\\n\";\n }", "title": "" }, { "docid": "be55e96161f654b7793eeff12ab26c0c", "score": "0.5714217", "text": "function response_headers() {\n // $http_response_header is created in the local scope so exists within the function only.\n file_get_contents(\"http://answers.com\");\n var_dump($http_response_header);\n}", "title": "" }, { "docid": "ec56d8c27de108e0a5450bc0965aff28", "score": "0.57127464", "text": "public function headers()\n {\n return ['CONTENT_TYPE' => 'application/json'];\n }", "title": "" }, { "docid": "41f6dc571a2fb401c36bdadb69e5e9ec", "score": "0.57043236", "text": "protected function set_request_headers() {\n $headers = array();\n foreach ($this->headers as $key => $value) {\n $headers[] = $key.': '.$value;\n }\n curl_setopt($this->request, CURLOPT_HTTPHEADER, $headers);\n }", "title": "" }, { "docid": "081c211d1b0758125832228bcf5e2176", "score": "0.570064", "text": "public function __getLastResponseHeaders();", "title": "" }, { "docid": "de7d50db9a964fa4cd057a7d7654bd65", "score": "0.5699848", "text": "public function send_headers(){}", "title": "" }, { "docid": "2d59ce55457efbe4b2209f9d9f552db5", "score": "0.56855714", "text": "public static function headers()\n\t{\n\t\treturn static::$headers;\n\t}", "title": "" }, { "docid": "b38aafd04cc74ae33e58b71fb2f4b76c", "score": "0.56810635", "text": "private function _detectHeaders()\n {\n if (is_array($headers = $this->_getallheaders())) {\n $header = new RequestHeader();\n\n foreach ($headers as $key => $value) {\n $header->setField($key, $value);\n }\n\n $this->_request->setHeader($header);\n }\n }", "title": "" }, { "docid": "18c9c4682a9092bbf373e7fb94b706cf", "score": "0.56730306", "text": "public static function initHeaders()\n {\n if (isset($_SERVER['HTTP_USER_AGENT'])) {\n header(sprintf('Content-Type: text/html; charset=%s', self::$charset));\n }\n }", "title": "" }, { "docid": "f27756ae070eb64761145adc4538570d", "score": "0.5669076", "text": "public function getRequestHeaders() {\n \t$key = $this->where('code', 'handshake_token')->first();\n\n \t$headers = array(\n \t\t'X-Requested-With'\t=>\t'XMLHttpRequest',\n\t\t\t'X-Api-Key'\t\t\t=>\t$key->value\n \t);\n\n \treturn $headers;\n }", "title": "" }, { "docid": "8a92e9ab73ed9488b6bdd68ac39727d3", "score": "0.56653786", "text": "public function send_headers()\r\r\n\t{\r\r\n\t\tif (!empty($this->headers))\r\r\n\t\t{\t\t\t\r\r\n\t\t\tforeach ($this->headers as $key=>$value)\r\r\n\t\t\t{\r\r\n\t\t\t\tif (empty($value))\r\r\n\t\t\t\t{\r\r\n\t\t\t\t\theader($key);\r\r\n\t\t\t\t}\r\r\n\t\t\t\telse\r\r\n\t\t\t\t{\r\r\n\t\t\t\t\theader(sprintf(CPF_HTTP_HEADER_FORMAT, $key, $value)); \r\r\n\t\t\t\t}\r\r\n\t\t\t}\r\r\n\t\t}\r\r\n\t}", "title": "" }, { "docid": "ef531f9fee439ae4a44f3d88eeadebff", "score": "0.5656545", "text": "public function getHeaders(): array;", "title": "" }, { "docid": "ef531f9fee439ae4a44f3d88eeadebff", "score": "0.5656545", "text": "public function getHeaders(): array;", "title": "" } ]
1f9f7c4ae7916259d1d1486524dfa30d
Checks if a category is a subcategory of a list of categories given
[ { "docid": "307053625d08d813d6c0070abf3c1b34", "score": "0.5250325", "text": "private function getParentIdInCategoriesArray($categoryId, $categories)\n {\n foreach ($categories as $category) {\n if ($category->id === $categoryId) {\n return true;\n }\n }\n\n return false;\n }", "title": "" } ]
[ { "docid": "8a2446dd81a2d05fc168bf0700f65aa4", "score": "0.7342738", "text": "public function isSubcategory()\n {\n return $this->container['type'] == T::TERM_CATEGORY;\n }", "title": "" }, { "docid": "71c9fdc7e5620e26707fd4795c8d64fb", "score": "0.71653855", "text": "function osc_has_subcategories() {\n $category = View::newInstance()->_current('categories');\n if ( $category == '' ) return -1;\n if ( !isset($category['categories']) ) return false;\n\n if ( !View::newInstance()->_exists('subcategories') ) {\n View::newInstance()->_exportVariableToView('subcategories', $category['categories']);\n }\n $ret = View::newInstance()->_next('subcategories');\n //we have to delete for next iteration\n if (!$ret) View::newInstance()->_erase('subcategories');\n return $ret;\n }", "title": "" }, { "docid": "755a0ea9a40057d828a334cb4030bdfd", "score": "0.7112743", "text": "function tep_has_category_subcategories($category_id)\n{\n $child_category_query = tep_db_query(\"select count(*) as count from \" . TABLE_CATEGORIES . \" where parent_id = '\" . (int) $category_id . \"'\");\n $child_category = tep_db_fetch_array($child_category_query);\n\n if($child_category['count'] > 0)\n {\n return true;\n }\n else\n {\n return false;\n }\n}", "title": "" }, { "docid": "d62fdcd5fe1e903a66c99f055761f5d1", "score": "0.6939683", "text": "function instanceof_category($entity, $subtypes = null) {\n\tif (!is_array($subtypes)) {\n\t\t$subtypes = get_category_subtypes();\n\t}\n\treturn elgg_instanceof($entity, 'object') && in_array($entity->getSubtype(), $subtypes);\n}", "title": "" }, { "docid": "71fd8b32f95802d5a4c4a59f4743b43c", "score": "0.68002945", "text": "public function hasCategoryChildren(){\n\t\t$childClassName = $this->_childClass;\n\t\t$childClass = new $childClassName();\n\n\t\t# Determine if children are also Categories\n\t\treturn is_subclass_of($childClass, 'Category');\n\t}", "title": "" }, { "docid": "0dca105291d97e5564b0d0a32c304675", "score": "0.65380687", "text": "function isCatASubcatOfLevel($id_cat, $item)\n {\n if($id_cat==$item) return true;\n $a_tree = $this->getAdminMenuTreeItem($item);\n// echo '<br>$id_cat='.$id_cat;\n// var_dump($a_tree);\n if( !$a_tree ) return false;\n $keys = array_keys($a_tree);\n $rows = count($keys);\n if(array_key_exists($id_cat, $a_tree)){\n return true;\n }\n for ($i=0;$i<$rows;$i++) {\n $id = $keys[$i];\n //echo '<br />$id='.$id;\n if( $this->getAdminMenuTreeItem($id) AND is_array($this->getAdminMenuTreeItem($id)) ) {\n $res = $this->isCatASubcatOfLevel($id_cat, $id);\n if($res) return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "b31c3208615a81b00e67fef7197b36cc", "score": "0.629424", "text": "function is_select_subcategory_items(){\n\t\tif($this->CI->config->item('subcategory_of_items')){\n\t\t\t$items = $this->get_cart();\n\t\t\tforeach ($items as $item )\n\t\t\t{\n\t\t\t\tif (isset($item['item_id']))\n\t\t\t\t{\n\t\t\t\t\tif ( $item['has_subcategory']==1) {\n\t\t\t\t\t\tif($item['custom1_subcategory']==\"\" || $item['custom1_subcategory']==null || $item['custom2_subcategory']==\"\" ||\n\t\t\t\t\t\t $item['custom2_subcategory']==null){\n\t\t\t\t\t\t\t return false;\n\t\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "title": "" }, { "docid": "6fc2e27df8ec002cbf0c2cafb191f6d1", "score": "0.6211457", "text": "public function isSubcategoryMode()\n {\n return $this->getCurrentCategory()->getDisplayMode() == DEG_SubcategoryView_Model_Category_Attribute_Source_Mode::DM_SUBCATEGORY;\n }", "title": "" }, { "docid": "a94a5e0dfab8c93979edcebaec0c3776", "score": "0.61165303", "text": "function isAncestor($other_cat)\n {\n $category = OOCategory :: _getCategoryObject($other_cat);\n return in_array($this->_id, explode('|', $category->getPath()));\n }", "title": "" }, { "docid": "b8b03ea8b2271e6fbb7d278e989c5506", "score": "0.6001657", "text": "function osc_count_subcategories2() {\n $category = View::newInstance()->_current('categories');\n if ( $category == '' ) return -1;\n if ( !isset($category['categories']) ) return 0;\n if ( !is_array($category['categories']) ) return 0;\n return count($category['categories']);\n }", "title": "" }, { "docid": "3b8aed2e138903376c4611e4e71d8c0f", "score": "0.5992413", "text": "function osc_count_subcategories() {\n $category = View::newInstance()->_current('categories');\n if ( $category == '' ) return -1;\n if ( !isset($category['categories']) ) return 0;\n if ( !is_array($category['categories']) ) return 0;\n if ( count($category['categories']) == 0 ) return 0;\n if ( !View::newInstance()->_exists('subcategories') ) {\n View::newInstance()->_exportVariableToView('subcategories', $category['categories']);\n }\n return osc_priv_count_subcategories();\n }", "title": "" }, { "docid": "8157119d8e3ea1aecd7a63268279e87a", "score": "0.58846664", "text": "function inCategories( $ids, $type='all') {\n\n\t\t$cats = $this->categoryIds( $type );\n\t\tif ( $cats == null ) return false;\n\t\t$ids = $this->convertToArray( $ids );\n\n\t\tforeach ( $ids as $id ) {\n\t\t\tif ( in_array( $id, $cats ) ) return true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d3fabebdab2292d88408822f04ae53c1", "score": "0.58807755", "text": "public abstract function isSubMenu();", "title": "" }, { "docid": "704c80a9dac539fa94cdb6eb16d094ec", "score": "0.5875028", "text": "static public function getSubCategories($catlist, $addWhere = '', $cc = 0)\n {\n $sCatArr = array();\n $res = Database::getInstance()->exec_SELECTquery(\n 'uid',\n 'tt_news_cat',\n 'tt_news_cat.parent_category IN (' . $catlist . ') AND deleted=0 ' . $addWhere);\n\n while ($row = Database::getInstance()->sql_fetch_assoc($res)) {\n $cc++;\n if ($cc > 10000) {\n /** @var TimeTracker $timeTracker */\n $timeTracker = GeneralUtility::makeInstance(TimeTracker::class);\n $timeTracker->setTSlogMessage('tt_news: one or more recursive categories where found');\n\n return implode(',', $sCatArr);\n }\n $subcats = self::getSubCategories($row['uid'], $addWhere, $cc);\n $subcats = $subcats ? ',' . $subcats : '';\n $sCatArr[] = $row['uid'] . $subcats;\n }\n\n return implode(',', $sCatArr);\n }", "title": "" }, { "docid": "7f754e456fb98f142da9f171eb10d2cc", "score": "0.5812558", "text": "public static function hasSubCategory($parent_id = 0) {\n\n return self::fetchByParentId($parent_id)->count();\n }", "title": "" }, { "docid": "ae4b3b0a440a5ee86df875fd58f5a54f", "score": "0.5803636", "text": "function showSubUnderSubCategory()\n\t{\n\t\tinclude(\"classes/Core/Category/CShowSubCategory.php\");\n\t\tinclude(\"classes/Model/MSiteStatistics.php\");\n\t\tinclude(\"classes/Display/DShowSubCategory.php\");\n\t\tinclude('classes/Core/CRoleChecking.php');\n\t\t\n\t\t$chkuser=Core_CRoleChecking::checkRoles();\n\t\tif($chkuser)\n\t\t{\n\t\t\t$output=Model_MSiteStatistics::siteStatistics();\n\t\t\t$subcat= new Core_Category_CShowSubCategory();\n\t\t\t\n\t\t\t$output['showmaincat']=$subcat->showMainCategory();\n\t\t\t$output['showsubcatunder']=$subcat->showSubUnderSubCategory();\n\t\t\tBin_Template::createTemplate('showsubundersubcategory.html',$output);\n\t\t}\n\t\telse\n\t\t{\n\t\t \t$output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail';\n\t\t\tBin_Template::createTemplate('Errors.html',$output);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "195414f58ee854be181c46d33d55ec4b", "score": "0.57863766", "text": "public function hasCategoryList(){\n\t\treturn false;\n\t}", "title": "" }, { "docid": "33f960062df61aae712763a75ad08853", "score": "0.5771671", "text": "function category_exists( $cat_id ) {\n\t\t \t return is_category( $cat_id );\n\t\t }", "title": "" }, { "docid": "445d64f5747fdd6cb3b38b1fb93273c0", "score": "0.57375467", "text": "private function has_subterm($term, $book_subterms) {\n $result = False;\n\n foreach($book_subterms as $attrs) {\n\n if (strcasecmp(htmlentities($attrs['term_name']), $term) === 0) {\n $result = True;\n break;\n }\n\n if ($result) { break; }\n }\n\n return $result;\n }", "title": "" }, { "docid": "606cfa2fba6aa751f7219769af84f387", "score": "0.5712785", "text": "public function subcategory($root_category, $subcategory)\n {\n $category_from_db = $this->category->find(['categories.categories.parent_category_id' => $root_category . '-' . $subcategory]);\n\n if (count($category_from_db) == 0) {\n return view(404);\n }\n\n foreach ($category_from_db as $document) {\n $sub_cats = $document['categories'];\n\n\n }\n\n foreach ($sub_cats as $sc){\n foreach ($sc['categories'] as $s)\n if($s['parent_category_id'] == $root_category.'-'.$subcategory){\n $category_selected[] = $s;\n }\n if($sc['name'] == ucfirst($subcategory)){\n $parent_category_data = $sc;\n }\n }\n\n return view('subcategories', compact('parent_category_data','category_selected', 'category_from_db', 'root_category', 'subcategory'));\n }", "title": "" }, { "docid": "c05ab2553cf0890763b7ddc3576ed539", "score": "0.5709541", "text": "function get_subcat_ids($ids)\n{\n $query = '\nSELECT DISTINCT(id)\n FROM '.CATEGORIES_TABLE.'\n WHERE ';\n foreach ($ids as $num => $category_id)\n {\n is_numeric($category_id)\n or trigger_error(\n 'get_subcat_ids expecting numeric, not '.gettype($category_id),\n E_USER_WARNING\n );\n if ($num > 0)\n {\n $query.= '\n OR ';\n }\n $query.= 'uppercats '.DB_REGEX_OPERATOR.' \\'(^|,)'.$category_id.'(,|$)\\'';\n }\n $query.= '\n;';\n return query2array($query, null, 'id');\n}", "title": "" }, { "docid": "0ceedd88a91d7fdc6c51ae23bf39d7c5", "score": "0.57049793", "text": "function get_subcategories($catid) {\n $conn = db_connect();\n \n $stmt = $conn->prepare(\"select catid, catname from categories where subcatid = ?\");\n $stmt->bind_param(\"i\", $catid);\n $stmt->execute();\n $result = $stmt->get_result();\n \n if (!$result) \n {\n return false;\n }\n \n $num_cats = @$result->num_rows;\n if ($num_cats == 0) \n {\n return false;\n }\n \n $result = db_result_to_array($result);\n return $result;\n}", "title": "" }, { "docid": "ea1ab8fec6fcca811a918cad2fdf18e3", "score": "0.5671989", "text": "function displaySubCategory()\n\t{\n\t\t\n\t\t\n\t\tif($_GET['id']!='')\n\t\t{\t\t\n\t\t\t$sql = \"SELECT category_id,category_name FROM category_table where category_parent_id=\". $_GET['id'] ;\n\t\t\t$query = new Bin_Query();\n\t\t\tif($query->executeQuery($sql))\n\t\t\t\treturn $this->data['showsubcat'] = Display_DFeaturedItems::listSubCategory($query->records);\n\t\t\telse\n\t\t\t{\n\t\t\treturn \"No Subcategories Found\";\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn Display_DFeaturedItems::listSubCategory('');\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "b3a193bc573ae8fe4e6dffe9fb7cec6b", "score": "0.56688046", "text": "public function testCategoryHasManySubCategoryRelationship()\n {\n $model = new Category();\n \n $relation = $model->subCategories();\n\n $this->assertInstanceOf(HasMany::class, $relation);\n\n $this->assertEquals('parent_id', $relation->getForeignKeyName());\n\n $this->assertEquals('categories.id', $relation->getQualifiedParentKeyName());\n }", "title": "" }, { "docid": "19ae19d59a5c579db1050422702c9d34", "score": "0.5663178", "text": "function is_rhizome_cat()\n{\n global $post;\n $is_rhizome_cat = false;\n if (wpsc_category_id() == 78 ||\n wpsc_category_id() == 155 ||\n wpsc_category_id() == 156 ||\n wpsc_category_id() == 157 ||\n wpsc_category_id() == 174\n ) {\n $is_rhizome_cat = true;\n }\n\n return $is_rhizome_cat;\n}", "title": "" }, { "docid": "3992f9569672a038df936c39491d6bca", "score": "0.5662699", "text": "public static function categories($data)\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7360038655d5b42488b3a0260352b562", "score": "0.565461", "text": "public function checkAvailableCategories(): bool;", "title": "" }, { "docid": "b061f09c91b5a7f0f205cacf7832f092", "score": "0.5653251", "text": "function getSubCategories($category) // = )\n\n {\n $params = new FauxRequest(array(\n 'cmtitle' => $category,\n 'action' => 'query',\n 'list' => 'categorymembers',\n 'cmprop' => 'title',\n //'cmsort' => 'timestamp',\n ));\n $api = new ApiMain($params);\n $api->execute();\n $data = $api->getResultData();\n $result = array();\n foreach($data['query']['categorymembers'] as $subcat)\n {\n $result[] = $subcat['title'];\n }\n return $result;\n }", "title": "" }, { "docid": "cf842e68c75f4ff59527bb091b3f832a", "score": "0.5647613", "text": "public function test_givenTwoUsers_whenCreateSubcategoryForCategoryBelongToOtherUser_thenFailure()\n {\n $client = self::createClient();\n $user1 = $this->createUserAndLogin($client, 'test1@example.com', 'qwerty123');\n $user2 = $this->createUser('test2@example.com', 'qwerty123');\n\n $category1 = (new Category())\n ->setName('example1')\n ->setUserAccount($user1);\n $category2 = (new Category())\n ->setName('example2')\n ->setUserAccount($user2);\n $em = $this->getEntityManager();\n $em->persist($category1);\n $em->persist($category2);\n $em->flush();\n\n $client->request('POST', self::SUBCATEGORY_API, [\n 'json' => [\n 'name' => 'example',\n 'color' => '#ffffff',\n 'category' => self::CATEGORY_API . '/' . 2\n ]\n ]);\n\n $this->assertResponseStatusCodeSame(400);\n }", "title": "" }, { "docid": "30fd61fabbcf36b9e2e95c83d1fd9220", "score": "0.56414616", "text": "public function containsCategory($categoryId)\n\t{\n\t\treturn in_array($categoryId, $this->_categories);\n\t}", "title": "" }, { "docid": "386eaaff83f55140dbb5a8fc072f74b2", "score": "0.56395155", "text": "function searchSubCategory()\n\t{\n\t\tinclude(\"classes/Core/Category/CShowSubCategory.php\");\n\t\tinclude(\"classes/Model/MSiteStatistics.php\");\n\t\tinclude(\"classes/Display/DShowSubCategory.php\");\n\t\tinclude('classes/Core/CRoleChecking.php');\n\t\t\n\t\t$output=Model_MSiteStatistics::siteStatistics();\n\t\t$chkuser=Core_CRoleChecking::checkRoles();\n\t\tif($chkuser)\n\t\t{\n\t\t\t$default = new Core_Category_CShowSubCategory();\n\t\t\t$output['showmaincat']=$default->showMainCategory();\n\t\t\t\n\t\t\t\n\t\t\t$output['search']=$default->searchSubCategory();\n\t\t\tBin_Template::createTemplate('showsubcategory.html',$output);\n\t\t}\n\t\telse\n\t\t{\n\t\t \t$output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail';\n\t\t\tBin_Template::createTemplate('Errors.html',$output);\n\t\t}\n\t}", "title": "" }, { "docid": "f5cea6dea086a30f9de967b1f41c9208", "score": "0.56121814", "text": "function isParent($other_cat)\n {\n return $this->getId() == $other_cat->getParentId() &&\n $this->getClang() == $other_cat->getClang();\n }", "title": "" }, { "docid": "6e2fe250f57120364bba7c95241b2bd5", "score": "0.5595817", "text": "function inCategoryNames( $names, $type='all') {\n\n\t\t$cats = $this->categoryNames( $type );\n\t\tif ( $cats == null ) return false;\n\t\t$names = $this->convertToArray( $names );\n\n\t\tforeach ( $names as $name ) {\n\t\t\tif ( in_array( $name, $cats ) ) return true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2aa5f89d1ca4dee5e9bff656e578f08e", "score": "0.5551043", "text": "protected function itemAllowedInCats($data = array())\n\t{\n\t\t// Initialise variables.\n\t\t$user\t\t= JFactory::getUser();\n\n\t\t$cats = isset($data['cid']) ? $data['cid'] : array();\n\t\tif ( !empty($data['catid']) && !in_array($data['catid'], $cats) )\n\t\t{\n\t\t\t$cats[] = $data['catid'];\n\t\t}\n\n\t\t$allow = null;\n\t\tif (count($cats))\n\t\t{\n\t\t\t$allow = true;\n\t\t\tforeach ($cats as $currcatid)\n\t\t\t{\n\t\t\t\t// If the category has been passed in the data or URL check it.\n\t\t\t\t$cat_allowed = $user->authorise('core.create', 'com_content.category.' . $currcatid);\n\t\t\t\tif (!$cat_allowed)\n\t\t\t\t{\n\t\t\t\t\tJFactory::getApplication()->enqueueMessage(\"No access to add item to category with id \" . $currcatid, 'warning');\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t$allow &= $cat_allowed;\n\t\t\t}\n\t\t}\n\n\t\tif ($allow === null)\n\t\t{\n\t\t\t// no categories specified, revert to the component permissions.\n\t\t\t$allow\t= $user->authorise('core.create', 'com_flexicontent');\n\t\t}\n\n\t\treturn $allow;\n\t}", "title": "" }, { "docid": "da7e55fa77ed6cf8e9479fb963dff132", "score": "0.5542129", "text": "function showSubCategory()\n\t{\n\t\tinclude(\"classes/Core/Category/CShowSubCategory.php\");\n\t\tinclude(\"classes/Model/MSiteStatistics.php\");\n\t\tinclude(\"classes/Display/DShowSubCategory.php\");\n\t\tinclude('classes/Core/CRoleChecking.php');\n\t\t\n\t\t$chkuser=Core_CRoleChecking::checkRoles();\n\t\tif($chkuser)\n\t\t{\n\t\t\t$output=Model_MSiteStatistics::siteStatistics();\n\t\t\t$subcat= new Core_Category_CShowSubCategory();\n\t\t\t\n\t\t\t$output['showmaincat']=$subcat->showMainCategory();\n\t\t\t$output['showsubcat']=$subcat->showSubCategory();\n\t\t\tBin_Template::createTemplate('showsubcategory.html',$output);\n\t\t}\n\t\telse\n\t\t{\n\t\t \t$output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail';\n\t\t\tBin_Template::createTemplate('Errors.html',$output);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "ed5594abef3a4f5e5be5f293ef6e6e63", "score": "0.55369973", "text": "public static function categories_exist()\n\t\t{\n\t\t\treturn Db_DbHelper::scalar('select count(*) from shop_categories') > 0;\n\t\t}", "title": "" }, { "docid": "2f711b50a61aa3fc73f0fbea13e67481", "score": "0.5525398", "text": "function list_subcategories($data, $li = '<li>'){\n\t$output = '';\n\t$slug = '';\n\t\n\t\n\tif(!empty($data['topcats']) && empty($data['subcats'])) {\n\t\t//var_dump($data);\n\t\t//$output = 'topcats_exists';\n\t\t$top_size = count($data['topcats']);\n\t\t$path = CACHE_DIR.'/categories/'.$data['topcats'][$top_size-2]['ID'].'.cache.php';\n\t\t\n\t\t$data = unserialize(file_get_contents($path));\n\t}\n\tif(!empty($data['topcats'])){\n\t\t$data['topcats'] = array_reverse($data['topcats']);\n\t}\n\t\n\tif(!empty($data['subcats'])){\n\t\tforeach($data['subcats'] as $row){\n\t\t\tif(!empty($data['topcats'])){\n\t\t\t\t$slug = '';\n\t\t\t\tforeach($data['topcats'] as $top_value){\n\t\t\t\t\t$slug .= $top_value['slug'].'/'; \n\t\t\t\t\t\n\t\t\t\t} \n\t\t\t} else {\n\t\t\t\t$slug = $data['current']['slug'].'/';\n\t\t\t}\n\t\t\t\n\t\t\t$output .= $li.'<a href=\"'.SITE_URL.'/cat/'.$row['ID'].'/'.$slug.$row['slug'].'\">'.$row['title'].'</a></li>';\n\t\t}\n\t} else {\n\t\t$output = false;\n\t}\t\n\treturn $output;\n}", "title": "" }, { "docid": "21da9f23085e24af164a472fbf29bf17", "score": "0.55105925", "text": "function postIsInThisCat($postID, $catID) {\n\t$isInCat = false;\n\t$post_categories = wp_get_post_categories($postID);\n\tforeach($post_categories as $c) {\n\t\t$isInCat = ($c == $catID) ? true: false;\n\t}\n\treturn ($isInCat) ? true: false;\n}", "title": "" }, { "docid": "5e9032199af92656443db19aab0821f0", "score": "0.55052", "text": "public function hasCats($id)\n {\n $cats = false;\n $sql = 'SELECT id FROM '.Model::getTable('BlogCategory')\n .' WHERE blog_category_id = '.$id;\n $error = 'Could not check for existing child categories.';\n $result = $this->query($sql, $error);\n if ($result->rowCount() > 0) {\n $cats = true;\n }\n\n return $cats;\n }", "title": "" }, { "docid": "d69c5e5a497ce41bb235da524cba3af2", "score": "0.5497946", "text": "function displaySubUnderSubCategory()\n\t{\n \t\tinclude(\"classes/Core/Category/CShowSubCategory.php\");\n\t\tinclude(\"classes/Core/Settings/CCategoryManagement.php\");\n\t\tinclude(\"classes/Model/MSiteStatistics.php\");\n\t\tinclude(\"classes/Display/DShowSubCategory.php\");\n\t\tinclude_once('classes/Display/DCategoryManagement.php');\n\t\t\tinclude('classes/Core/CRoleChecking.php');\n\t\t\n\t\t$chkuser=Core_CRoleChecking::checkRoles();\n\t\tif($chkuser)\n\t\t{\t\n\t\t\t$default = new Core_Category_CShowSubCategory();\n\t\t\t$content= new Core_Settings_CCategoryManagement();\n\t\n\t\t\t\n\t\t\t$output=Model_MSiteStatistics::siteStatistics();\n\t\t\t$output['editsubundercat']=$default->displaySubUnderSubCategory();\n\t\t\t$output['attrib']=$content->getAttributes();\n\t\t\t$output['content']=$content->showContent();\n\t\t\t\n\t\t\tBin_Template::createTemplate('editsubundercategory.html',$output);\n\t\t}\n\t\telse\n\t\t{\n\t\t \t$output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail';\n\t\t\tBin_Template::createTemplate('Errors.html',$output);\n\t\t}\n\t\t\t\t\t\n\t}", "title": "" }, { "docid": "1e420bf312a441fb099f2cecd99e2fd9", "score": "0.5494865", "text": "function get_category_subtypes() {\n\treturn hypeCategories()->config->getCategorySubtypes();\n}", "title": "" }, { "docid": "4f86c3b396c86883e7f7b2122a0d76fe", "score": "0.54899424", "text": "public function test_is_cat() {\n\t\t// Generate Category & Post for Test\n\t\t$cat_id = $this->factory->category->create( array( 'name' => 'cat' ) );\n\t\t$post_id = $this->factory->post->create( array( 'post_title' => 'is-cat-post', 'post_status' => 'publish', 'post_date' => '2016-04-01 00:00:00', 'post_type' => 'post' ) );\n\t\twp_set_object_terms( $post_id, array( $cat_id ), 'category' );\n\n\t\t// Generate Overlay and pass a $conditional_override\n\t\t$overlay_id = $this->create_overlay( false, array(\n\t\t\t'post_title' => 'Is Category',\n\t\t\t'conditionals' => array(\n\t\t\t\tarray( 'condition_select' => 'is_category', 'condition_argument_category' => $cat_id )\n\t\t\t)\n\t\t) );\n\n\t\t$this->go_to( get_term_link( $cat_id, 'category' ) );\n\t\t$footer = $this->get_wp_footer();\n\t\t// check for overlay\n\t\t$this->assertContains( '<div class=\"fm-overlay-wrapper\">', $footer );\n\t\t// check for condition\n\t\t$this->assertContains( 'fm-overlay-is_category', $footer );\n\t}", "title": "" }, { "docid": "619e816bf812e00cc164efe8d0329a74", "score": "0.54737157", "text": "public function GetSubCats()\n\t{\t$this->subcats = array();\n\t\tif ($this->id)\n\t\t{\t$sql = 'SELECT * FROM libcats WHERE parentid=' . $this->id . ' ORDER BY lcorder';\n\t\t\tif ($result = $this->db->Query($sql))\n\t\t\t{\twhile ($row = $this->db->FetchArray($result))\n\t\t\t\t{\t$this->subcats[$row['lcid']] = $row;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d370505dcaff7cce314a64a0074334dd", "score": "0.5473424", "text": "public function isInRootCategoryList()\n {\n // TODO there are bugs in resource models' methods, store_id set to model o/andr to resource model are ignored\n return $this->getResource()->isInRootCategoryList($this);\n }", "title": "" }, { "docid": "3ae8b1806b7aed9810b788723d58681e", "score": "0.54621685", "text": "public function isMulticategories()\n {\n return $this->multicategories;\n }", "title": "" }, { "docid": "221b496715b6b82ea8492ca6ebbe7b41", "score": "0.54478055", "text": "function check($cat, $subcat, $json) {\n foreach ($json as $key => $values) {\n if (is_array($values)) {\n $s = serialize($key);\n $data = explode(\"\\\"\", $s);\n if ($cat === $data[1]) {\n foreach ($values as $keys => $subs) {\n if ($json[$key][$keys] === $subcat) {\n return 1;\n ;\n }\n }\n }\n }\n }\n}", "title": "" }, { "docid": "71fc0a93cac130c4fdb991d710eaf010", "score": "0.54131764", "text": "public function checkCategory()\n {\n if (!empty($this->video_id)) {\n $collection = Mage::getModel('video/categories')->getCollection()->addFieldToFilter('video_id', $this->video_id)->join('video_categories_info', '`main_table`.`video_category_id` = `video_categories_info`.`id`');\n //$cat_name = array();\n if ($collection->getSize() == 1) {\n $temp_cat = $collection->getData();\n $cat_name = $temp_cat[0]['name'];\n $this->video_category = $cat_name;\n }\n elseif ($collection->getSize() > 1) {\n $temp_cat = $collection->getData();\n foreach ($temp_cat as $cat) {\n $cat_name[] = $cat['name'];\n }\n $this->video_category = $cat_name;\n $this->multicategories = true;\n }\n }\n return $this;\n }", "title": "" }, { "docid": "74e4eb689e0d3822805dc5b392cda801", "score": "0.5397219", "text": "public function is_subtype( $sub_type ) {\n\t\treturn $this->sub_type === $sub_type;\n\t}", "title": "" }, { "docid": "33dfad9c31f19174c3e54de49582590a", "score": "0.53655994", "text": "public function subcategory(){\n $subcategory = CourseSubCategory::find($this->course_sub_category_id);\n if(is_object($subcategory)){\n return $subcategory->name;\n } else {\n return '';\n }\n }", "title": "" }, { "docid": "feae5b41f03e15528a88d74b004773f9", "score": "0.5359796", "text": "public static function listIsSuperselector(array $list1, array $list2): bool\n {\n foreach ($list2 as $complex1) {\n foreach ($list1 as $complex2) {\n if ($complex2->isSuperselector($complex1)) {\n continue 2;\n }\n }\n\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "fba7564a2a229e4431f138c7d00a7f43", "score": "0.53540426", "text": "function getSubCategory($category)\n\t\t{\n\t\t\t/* Initially we set sub categories are same */\n\t\t\techo '<option value=\"Sub Category 1\">Sub Category 1</option>\n\t\t\t\t\t<option value=\"Sub Category 2\">Sub Category 2</option>\n\t\t\t\t\t<option value=\"Sub Category 3\">Sub Category 3</option>\n\t\t\t\t\t<option value=\"Sub Category 4\">Sub Category 4</option>\n\t\t\t\t\t<option value=\"Sub Category 5\">Sub Category 5</option>';\n\t\t}", "title": "" }, { "docid": "8467636cc2a47eda994e127d411220e6", "score": "0.5350549", "text": "function addSubCategory($data)\n\t\t{\n\t\t\t\n\t\t\t//set column name\n\t\t\t$column_name = array('name','skills','categoryId');\n\t\t\t$column_value = array($data['name'],$this->_convertArrayToString($data['category_skills']),$data['category']);\n\t\t\t//insert the values\n\t\t\t$insert = $this->manageContent->insertValue('subcategory',$column_name,$column_value);\n\t\t\treturn $insert;\n\t\t}", "title": "" }, { "docid": "07a6d88b4e19d342e1e143e831af56b2", "score": "0.534751", "text": "private function isCategory($itemMenu)\n {\n return is_array($itemMenu) && !isset($itemMenu[\"_entity_name\"]);\n }", "title": "" }, { "docid": "0976c1b0c03fdf99021df40a1cd07fb1", "score": "0.5344302", "text": "function check_category_access ( $user_login, $category_array = array() )\n{\n\tif ( sizeof ($category_array) > 0 )\n\t{\n\t\t$file = file (FNEWS_ROOT_PATH . 'categories.php');\n\t\tarray_shift ($file);\n\n\t\tforeach ( $file as $category )\n\t\t{\n\t\t\t$category = get_line_data ('categories', $category);\n\n\t\t\tif ( $category['category_id'] == 1 )\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ( in_array ($category['category_id'], $category_array) )\n\t\t\t{\n\t\t\t\t$cusers = explode (',', $category['users']);\n\t\t\t\tif ( !in_array ($user_login, $cusers) )\n\t\t\t\t{\n\t\t\t\t\treturn $category['name'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn NULL;\n}", "title": "" }, { "docid": "9dc804288551ddbf47ffa16766466754", "score": "0.53160006", "text": "function updateSubCatgegory($userData)\n\t\t{\n\t\t\tif(!empty($userData['name']))\n\t\t\t{\n\t\t\t\t$update = $this->manageContent->updateValueWhere('subcategory','name', $userData['name'], 'subCategoryId', $userData['id'] );\n\t\t\t}\n\t\t\tif(!empty($userData['category']))\n\t\t\t{\n\t\t\t\t$update = $this->manageContent->updateValueWhere('subcategory','categoryId', $userData['category'], 'subCategoryId', $userData['id'] );\n\t\t\t}\n\t\t\tif(isset($userData['category_skills']) && !empty($userData['category_skills']))\n\t\t\t{\n\t\t\t\t$cat_skill = $this->_convertArrayToString($userData['category_skills']);\n\t\t\t\t$update_skiil = $this->manageContent->updateValueWhere('subcategory','skills', $cat_skill, 'subCategoryId', $userData['id'] );\n\t\t\t}\t\n\t\t}", "title": "" }, { "docid": "39e6bbe674634b8bb2eabd7adbd7b8fd", "score": "0.5303395", "text": "function is_hop_cat()\n{\n global $post;\n $is_hop_cat = false;\n if (wpsc_category_id() == 77 ||\n wpsc_category_id() == 172 ||\n wpsc_category_id() == 139 ||\n wpsc_category_id() == 137 ||\n wpsc_category_id() == 138\n ) {\n $is_hop_cat = true;\n }\n\n return $is_hop_cat;\n}", "title": "" }, { "docid": "0313371ea65d07b59074b7a5d876dcf9", "score": "0.52906275", "text": "function has_child_albums($category_id) {\n global $db;\n\n $sql = \"SELECT * FROM albums \";\n $sql .= \"WHERE category_id='\" . db_escape($db, $category_id) . \"'\";\n\n $album_set = mysqli_query($db, $sql);\n $album_count = mysqli_num_rows($album_set);\n\n return $album_count !== 0;\n}", "title": "" }, { "docid": "56250d3862b77729ad39def6f08d11a3", "score": "0.52882844", "text": "public function hasSubGroup(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "18644d0a84edb8a658f36278c294d957", "score": "0.5285603", "text": "function displaySubCategory()\n\t{\n \t\tinclude(\"classes/Core/Category/CShowSubCategory.php\");\n\t\tinclude(\"classes/Core/Settings/CCategoryManagement.php\");\n\t\tinclude(\"classes/Model/MSiteStatistics.php\");\n\t\tinclude(\"classes/Display/DShowSubCategory.php\");\n\t\tinclude_once('classes/Display/DCategoryManagement.php');\n\t\t\tinclude('classes/Core/CRoleChecking.php');\n\t\t\n\t\t$chkuser=Core_CRoleChecking::checkRoles();\n\t\tif($chkuser)\n\t\t{\t\n\t\t\t$default = new Core_Category_CShowSubCategory();\n\t\t\t$content= new Core_Settings_CCategoryManagement();\n\t\n\t\t\t\n\t\t\t$output=Model_MSiteStatistics::siteStatistics();\n\t\t\t$output['editsubcat']=$default->displaySubCategory();\n\t\t\t$output['attrib']=$content->getAttributes();\n\t\t\t$output['content']=$content->showContent();\n\t\t\t\n\t\t\tBin_Template::createTemplate('editsubcategory.html',$output);\n\t\t}\n\t\telse\n\t\t{\n\t\t \t$output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail';\n\t\t\tBin_Template::createTemplate('Errors.html',$output);\n\t\t}\n\t\t\t\t\t\n\t}", "title": "" }, { "docid": "26020993dfafa2482cd1d150c116db0e", "score": "0.52851933", "text": "function _ifCategory($name = '', $value='') {\n global $blog, $catid;\n\n // when no parameter is defined, just check if a category is selected\n if (($name != 'catname' && $name != 'catid') || ($value == ''))\n return $blog->isValidCategory($catid);\n\n // check category name\n if ($name == 'catname') {\n $value = $blog->getCategoryIdFromName($value);\n if ($value == $catid)\n return $blog->isValidCategory($catid);\n }\n\n // check category id\n if (($name == 'catid') && ($value == $catid))\n return $blog->isValidCategory($catid);\n\n return false;\n }", "title": "" }, { "docid": "26020993dfafa2482cd1d150c116db0e", "score": "0.52851933", "text": "function _ifCategory($name = '', $value='') {\n global $blog, $catid;\n\n // when no parameter is defined, just check if a category is selected\n if (($name != 'catname' && $name != 'catid') || ($value == ''))\n return $blog->isValidCategory($catid);\n\n // check category name\n if ($name == 'catname') {\n $value = $blog->getCategoryIdFromName($value);\n if ($value == $catid)\n return $blog->isValidCategory($catid);\n }\n\n // check category id\n if (($name == 'catid') && ($value == $catid))\n return $blog->isValidCategory($catid);\n\n return false;\n }", "title": "" }, { "docid": "f4ebc67f57cc6edf656b0d133ee16046", "score": "0.52839744", "text": "public function canHaveCategory($category)\n {\n $category = Category::findByIdentifierOrFail($category);\n return $category->group->hasModel(static::class);\n }", "title": "" }, { "docid": "e9dcc6929236e71da2e7474fc390a4a4", "score": "0.5283259", "text": "function retrieveSubCategories($categoryArray){\n\t\t$subCategoryArray = array();\n\t\t$ci =& get_instance();\n\t\t$ci->load->model('site/home_model');\n\t\t\t\n\t\tforeach($categoryArray as $key=>$categories){\n\t\t\tforeach($categories as $key=>$category){\n\t\t\t\t$subCategories = $ci->home_model->getSubCategoryForCategory($key);\n\t\t\t\t$subCategoryArray[$category['name']] = array();\n\t\t\t\tfor($j=0; $j<count($subCategories); $j++){\n\t\t\t\t\t$subCategoryArray[$category['name']][$subCategories[$j]['id']] = \n\t\t\t\t\t\t\tarray(\"name\" => sliceString($subCategories[$j]['name'], 25),\n\t\t\t\t\t\t\t\t \"condition\" => $subCategories[$j]['condition'] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $subCategoryArray;\n\t}", "title": "" }, { "docid": "e80e719f29f389b0b2a7c56f5c0697c2", "score": "0.52718484", "text": "function getAllSub_categorys($category_id, $per_p, $off_set)\n\t{\n\t\t$this->db->where('category_id',$category_id);\n\t\t$this->db->order_by('sub_category_id', 'DESC');\n\t\tif( $per_p == 0 AND $off_set == 0 )\n\t\t{\n\t\t\t$query = $this->db->get('sub_category');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->db->limit($per_p, $off_set);\n\t\t\t$query = $this->db->get('sub_category');\n\t\t}\n\t\t\n\t\tif ($query->num_rows() > 0) \n\t\t{\n\t\t\treturn $query->result();\n\t\t} \n\t\telse\n\t\t{\n\t\t\treturn FALSE;\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "df301eabc8f2b238352256918c276de2", "score": "0.52705914", "text": "public static function hasChildren($category_id)\n {\n //TODO: cache stuff if possible\n //check input\n $category_id = intval($category_id);\n if ($category_id == 0) {\n return false;\n }\n $db = DataAccess::getInstance();\n $sql = \"SELECT COUNT(*) FROM \" . geoTables::categories_table . \" WHERE `parent_id` = ?\";\n $count = (int)$db->GetOne($sql, array($category_id));\n return ($count > 0);\n }", "title": "" }, { "docid": "7bb32d7f27fc7872a42a64655505f6cb", "score": "0.52684563", "text": "function select_subcategories($parent = NULL) {\n\t\t\tif ($parent) {\n\t\t\t\t$stmt = $this->prepare(\"SELECT * FROM category WHERE parent=:parent\");\n\t\t\t\t$stmt->bindValue(':parent', $parent, SQLITE3_INTEGER);\n\t\t\t\t$result = $stmt->execute();\n\t\t\t} else\n\t\t\t\t$result = $this->query(\"SELECT * FROM category WHERE parent is not NULL\");\n\t\t\t\n\t\t\treturn $result;\n\t\t}", "title": "" }, { "docid": "e7e0f8974fe1bd76061f5443ff45cbc8", "score": "0.52631855", "text": "protected function _isActiveMenuCategory($category)\n {\n $catalogLayer = Mage::getSingleton('catalog/layer');\n if (!$catalogLayer) {\n return false;\n }\n\n $currentCategory = $catalogLayer->getCurrentCategory();\n if (!$currentCategory) {\n return false;\n }\n\n $categoryPathIds = explode(',', $currentCategory->getPathInStore());\n return in_array($category->getId(), $categoryPathIds);\n }", "title": "" }, { "docid": "37e23a863364c101b7868665cee98460", "score": "0.5248667", "text": "function osc_priv_count_subcategories() {\n return View::newInstance()->_count('subcategories');\n }", "title": "" }, { "docid": "7f6053ac35bda8bb3fa835369074a548", "score": "0.52470744", "text": "function get_subcategories($container_guid = null, $params = array()) {\n\tif (is_null($container_guid)) {\n\t\t$container_guid = elgg_get_site_entity()->guid;\n\t}\n\n\t$batch = hypeCategories()->categories->getSubcategories($container_guid, $params);\n\n\tif ($batch instanceof ElggBatch || is_array($batch)) {\n\t\t$categories = array();\n\t\tforeach ($batch as $b) {\n\t\t\t$categories[] = $b;\n\t\t}\n\t\treturn $categories;\n\t}\n\n\treturn $batch;\n}", "title": "" }, { "docid": "19b5a6e0548b186c28e744d2d614efda", "score": "0.52259856", "text": "static function getCategories() {\n\t\trequire_once(\"query.php\");\n\t\t$db = new DBManager();\n\t\tif(!$db->connect_errno()) {\n\t\t\trequire_once(\"strings/strings.php\");\n\t\t\tdefine_tables(); defineSubCategoryColumns();\n\t\t\tdefineCategoryColumns();\n\t\t\t\n\t\t\t$s = \"SELECT * from \" . TABLE_CATEGORY . \" WHERE \" . CATEGORY_NAME . \" NOT IN (SELECT DISTINCT \" . SUB_CATEGORY_CATEGORY . \" FROM \" . TABLE_SUB_CATEGORY . \")\";\n\t\t\t$r = $db->execute($s);\n\t\t\t\n\t\t\t$cat = array();\n\t\t\tif($db->num_rows() > 0) {\n\t\t\t\twhile($row = $db->fetch_result())\n\t\t\t\t\t$cat[] = new Category($row[CATEGORY_NAME]);\n\t\t\t}\n\t\t\treturn $cat;\n\t\t} else $db->display_connect_error(\"CategoryManager::getCategories()\");\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4ba67ae97528370f2141a04aa9ae2662", "score": "0.52257437", "text": "final public function hasCategory() {\n $this->_category = ModSync\\Element\\Category\\CategoryAbstract::toObject($this->_category);\n if ($this->_category) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "10fad925cfebd0f324bd2b007a63dadb", "score": "0.52121186", "text": "public function isCategory($categoryID)\n\t{\n\t\t$categoryMaps=$this->categoryMap;\n\t\tif($categoryMaps)\n\t\t{\n\t\t\tforeach ($categoryMaps as $categoryMap)\n\t\t\t{\n\t\t\t\tif($categoryMap->category_id==$category_id)\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\t\n\t\treturn false;\t\t\n\t\n\t}", "title": "" }, { "docid": "f82511c8589a2b83134bd78de3c71fa4", "score": "0.52067685", "text": "function category_exists($db) {\r\n\t\t$catId = $db -> quote(htmlspecialchars($_POST['categoryId']));\r\n\t\t$catDb = $db -> select(\"SELECT `id` FROM `categories` WHERE `id`=\".$catId.\"\");\r\n\t\tif(count($catDb) == 0) return false;\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "4e4aec7219234ddf1005f40c11b2eeb6", "score": "0.5205297", "text": "function getTotalSub_categorys()\n\t{\t\n\n\t\t$query = $this->db->get('sub_category');\n\t\treturn $query->num_rows();\n\t}", "title": "" }, { "docid": "388cbb5d9e433679685f53190086fcf8", "score": "0.5205143", "text": "function _ifItemCategory($name = '', $value='') {\n global $catid, $manager;\n \n $b =& $manager->getBlog(getBlogIDFromItemID($this->currentItem->itemid));\n\n // when no parameter is defined, just check if a category is selected\n if (($name != 'catname' && $name != 'catid') || ($value == ''))\n return $b->isValidCategory($catid);\n \n $icatid = $this->currentItem->catid;\n //$icategory = $this->currentItem->category;\n\n // check category name\n if ($name == 'catname') {\n $value = $b->getCategoryIdFromName($value);\n if ($value == $icatid)\n return $b->isValidCategory($icatid);\n }\n\n // check category id\n if (($name == 'catid') && ($value == $icatid))\n return $b->isValidCategory($icatid);\n\n return false;\n }", "title": "" }, { "docid": "590881b83fd4dac9626579e08a4c0c66", "score": "0.52035946", "text": "public function hasCategoryValues($values)\n {\n $tagValues = $this->getCategoryValues(true);\n foreach ($this->filterCategoryValues($values) as $value) {\n if (!in_array($value, $tagValues)) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "6d8d24859c47998ba6a00a0ca323911a", "score": "0.5202149", "text": "function isDeploymentInCategoryArray($category_descriptor_arrays) {\n if (is_array($category_descriptor_arrays)===false) {\n echo \"NOT AN ARRAY<br/>\";\n return false;\n }\n if (empty($category_descriptor_arrays)) {\n return false;\n }\n foreach ($category_descriptor_arrays as $category => $descriptor_arrays) {\n foreach ($descriptor_arrays as $descriptor_array) {\n if (is_object($descriptor_array)===false) {\n echo \"NOT AN OBJECT<br/>\";\n next($descriptor_arrays);\n }\n if (property_exists($descriptor_array, 'INSTANCE_KEY')) {\n return true;\n }\n }\n }\n return false;\n}", "title": "" }, { "docid": "d049db1074cb212af1cffbe179d35df9", "score": "0.52017576", "text": "private function validate_delete_child_cat(Videocat $cat) {\n if ($cat->video()->count() > 0) {\n return 0;\n }\n if ($cat->where('parent', $cat->id)->count() > 0) {\n foreach ($cat->where('parent', $cat->id)->get() as $key=>$value) {\n if ($this->validate_delete_child_cat($value) == 0) {\n return 0;\n }\n }\n }\n return 1;\n }", "title": "" }, { "docid": "9a0bcd961a3018f576e124ea253c25e2", "score": "0.5195829", "text": "function tep_has_topic_subtopics($topic_id) {\n $child_topic_query = tep_db_query(\"SELECT COUNT(*) as count from \" . TABLE_TOPICS . \" where parent_id = '\" . (int)$topic_id . \"'\");\n $child_topic = tep_db_fetch_array($child_topic_query);\n\n if ($child_topic['count'] > 0) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "0f788176ef15be754d67b98eb7e1671f", "score": "0.5193261", "text": "function getSubCategories($ID, $hierarchy=0)\n{\n\t$getSubCategories = getInfo(\"category\", \"parent\", $ID);\n\t\n\tif (!empty($getSubCategories))\n\t{\t\n\t \t$hierarchy = $hierarchy + 1;\n\t\t\n\t\tforeach ($getSubCategories AS $row)\n\t\t{\n\t\t\t?>\n\t\t\t<tr valign=\"top\">\n\t\t\t\t<td><? for ($i=0; $i<$hierarchy; $i++) {echo \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\";} echo ' - '.stripslashes($row['name']); ?></td>\t\n\t\t\t\t<td class=\"textCenter width100\"><a href=\"<? echo $thisPage; ?>?_action=addSubCat&_id=<? echo $row['id'] ?>\">[Add Sub Category]</a></td>\n\t\t\t\t<td class=\"textCenter width80\"><a href=\"<? echo $thisPage; ?>?_action=editCat&_id=<? echo $row['id'] ?>\">[EDIT]</a></td>\n\t\t\t\t<td class=\"textCenter width80\"><a href=\"<? echo $thisPage; ?>?_action=deleteCat&_id=<? echo $row['id'] ?>\" class=\"delete\">[DELETE]</a></td>\n\t\t\t</tr>\n\t\t\t<?\n\t\t\tgetSubCategories($row['id'], $hierarchy);\n\t\t}\t\n\t}\n}", "title": "" }, { "docid": "c26ffd6961476d36c9d1dca279ed6937", "score": "0.5190438", "text": "function getSub_categoryBySub_categoryPicture($picture)\n {\n $this->db->where('picture',$picture);\n $query = $this->db->get('sub_category');\n if ($query->num_rows() > 0)\n {\n return TRUE;\n }\n else\n {\n return FALSE;\n }\n }", "title": "" }, { "docid": "422ea6d700cf0ac6af611666cb92a806", "score": "0.5185799", "text": "function has_children($cat_id, $taxonomy) {\n $children = get_terms(\n $taxonomy,\n array( 'parent' => $cat_id, 'hide_empty' => false )\n );\n if ($children){\n return true;\n }\n return false;\n}", "title": "" }, { "docid": "7965521b61174d7bdfc0ffb243be8d7d", "score": "0.5184685", "text": "function getSub_categoryBySub_categoryId($sub_category_id)\n\t{\n\t\t$this->db->where('sub_category_id',$sub_category_id);\n\t\t$query = $this->db->get('sub_category');\n\t\tif ($query->num_rows() > 0)\n\t\t{\n\t\t\treturn $query->row_array();\n\t\t} \n\t\telse\n\t\t{\n\t\t\treturn FALSE;\t\t\n\t\t}\t\t\t\n\t}", "title": "" }, { "docid": "912ec1eb6a5492c13e33e50ffaa7da65", "score": "0.5181724", "text": "static /*public*/ function isValid($category)\n {\n return is_object($category) && is_a($category, 'oocategory');\n }", "title": "" }, { "docid": "c7d085640ec5b1f84c91e333de5e4d4a", "score": "0.51792514", "text": "function getVisitSub_categorys($category_id, $per_p, $off_set)\n\t{\n\t\t$this->db->where('category_id',$category_id);\n\t\t$this->db->order_by('visit', 'DESC');\n\t\t$this->db->limit(5);\n\t\tif( $per_p == 0 AND $off_set == 0 )\n\t\t{\n\t\t\t$query = $this->db->get('sub_category');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->db->limit($per_p, $off_set);\n\t\t\t$query = $this->db->get('sub_category');\n\t\t}\n\t\t\n\t\tif ($query->num_rows() > 0) \n\t\t{\n\t\t\treturn $query->result();\n\t\t} \n\t\telse\n\t\t{\n\t\t\treturn FALSE;\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "324e910fcd9d7ccc2ff511465e507918", "score": "0.51791793", "text": "function editSubUnderSubCategory()\n\t{\n\t\tinclude(\"classes/Core/Category/CShowSubCategory.php\");\n\t\tinclude(\"classes/Display/DShowSubCategory.php\");\n\t\tinclude(\"classes/Model/MSiteStatistics.php\");\n\t\tinclude('classes/Core/CRoleChecking.php');\n\n\t\t$chkuser=Core_CRoleChecking::checkRoles();\n\t\tif($chkuser)\n\t\t{\n\t\t\t$default = new Core_Category_CShowSubCategory();\n\t\t\t$subcat= new Core_Category_CShowSubCategory();\n\t\t\t\n\t\t\t$output=Model_MSiteStatistics::siteStatistics();\n\t\t\t\n\t\t\t\n\t\t\t$output['showmaincat']=$subcat->showMainCategory();\n\t\t\t$output['updatemaincat']=$default->editSubUnderSubCategory();\n\t\t\t$output['showsubcatunder']=$subcat->showSubUnderSubCategory();\n\t\t\tBin_Template::createTemplate('showsubundersubcategory.html',$output);\n\t\t}\n\t\telse\n\t\t{\n\t\t \t$output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail';\n\t\t\tBin_Template::createTemplate('Errors.html',$output);\n\t\t}\n\n\t}", "title": "" }, { "docid": "ce521a17daf73d0e516cbd9f519e4363", "score": "0.51581216", "text": "function isSubLevels($id)\n {\n if( !$this->getAdminMenuTreeItem($id) ) return false;\n $count = count($this->getAdminMenuTreeItem($id));\n return $count;\n }", "title": "" }, { "docid": "e07b3cd92eed50013edcdb1a7ce39a87", "score": "0.5155918", "text": "function _ifItemCategory($name = '', $value='') {\n global $catid, $manager;\n\n $b =& $manager->getBlog(getBlogIDFromItemID($this->currentComment['itemid']));\n $citem =& $manager->getItem($this->currentComment['itemid'],1,1);\n $icatid = $citem['catid'];\n\n // when no parameter is defined, just check if a category is selected\n if (($name != 'catname' && $name != 'catid') || ($value == ''))\n return $b->isValidCategory($icatid);\n\n // check category name\n if ($name == 'catname') {\n $value = $b->getCategoryIdFromName($value);\n if ($value == $icatid)\n return $b->isValidCategory($icatid);\n }\n\n // check category id\n if (($name == 'catid') && ($value == $icatid))\n return $b->isValidCategory($icatid);\n\n return false;\n }", "title": "" }, { "docid": "96fd4b719cbec7745f8402576ff750d6", "score": "0.5149929", "text": "public function GetSubcategoryByCategoryAction( ){\n\n $response = array(\n 'code' => 0,\n 'message' => 0,\n 'data' => 0\n );\n\n $categoryID = $this->request->getGetValue('categoryID');\n $limit = $this->request->getGetValue('limit');\n $offset = $this->request->getGetValue('offset');\n\n if(empty($limit) || $limit < 1){\n $limit = 10;\n }//if\n\n if(empty($offset) || $offset < 1 ){\n $offset = 0;\n }//if\n\n $products = Category::GetCategoryAndProducts($categoryID, $limit , $offset);\n\n $category = Category::getCategoryById($categoryID);\n\n $response['code'] = 200;\n $response['data'] = array(\n 'products' => $products,\n 'category' => $category,\n );\n\n $this->json( $response );\n\n }", "title": "" }, { "docid": "209356918bd5fba963936fcce083b016", "score": "0.5137682", "text": "public function get_subcategories($expand=array()) {\n return $this->get(sprintf(\"/subcategories/\"), $expand=$expand);\n}", "title": "" }, { "docid": "7d7ba934438a269aec298db84da8d83d", "score": "0.5133091", "text": "public function hasCategory(Simupoll $simupoll)\n {\n $category = $this->om->getRepository('CPASimUSanteSimupollBundle:Category')\n ->findBySimupoll($simupoll);\n\n return ($category !== array()) ? true : false;\n }", "title": "" }, { "docid": "23fbf2b3db36a34b2777abf335eb571b", "score": "0.5127053", "text": "public function checkSectionCategory(&$row, $include, $sections=array(), $catids=array(), $contentids=array()) {\r\n\t\t/* doc id excluded ? */\r\n\t\tif (in_array((($row->id == 0) ? -1 : $row->id), $contentids))\r\n\t\t\treturn false;\r\n\r\n\t\t/* category included or excluded ? */\r\n\t\t$result = in_array((($row->catid == 0) ? -1 : $row->catid), $catids);\r\n\t\tif (($include && !$result) || (!$include && $result))\r\n\t\t\treturn false; /* include and not found OR exclude and found */\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "1a170abf07eb40d73dc42caaac603f93", "score": "0.5126558", "text": "public function subcategories($category) {\n $subcategories = Subcategory::where('category_id', '=', $category)->paginate(12);\n return view('quizzes_subcategories')->with([\n 'subcategories'=>$subcategories,\n 'categoryId'=>$category\n ]);\n }", "title": "" }, { "docid": "add01d53f3de230cbf85a5bb2c8721f2", "score": "0.51232606", "text": "function _addCategories($id, &$list, $type = 'children')\n\t{\n\t\t// Initialize variables\n\t\t$return = true;\n\t\t\n\t\tif ($type == 'children') {\n\t\t\t$get = 'id';\n\t\t\t$source = 'parent_id';\n\t\t} else {\n\t\t\t$get = 'parent_id';\n\t\t\t$source = 'id';\n\t\t}\n\n\t\t// Get all rows with parent of $id\n\t\t$query = 'SELECT '.$get\n\t\t\t\t. ' FROM #__categories as c'\n\t\t\t\t. ' WHERE'.(!FLEXI_J16GE ? ' c.section = '.FLEXI_SECTION : ' c.extension=\"'.FLEXI_CAT_EXTENSION.'\" ')\n\t\t\t\t. ' AND '.$source.' = '.(int) $id;\n\t\t$this->_db->setQuery( $query );\n\t\t$rows = $this->_db->loadObjectList();\n\n\t\t// Make sure there aren't any errors\n\t\tif ($this->_db->getErrorNum()) {\n\t\t\t$this->setError($this->_db->getErrorMsg());\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Recursively iterate through all children\n\t\tforeach ($rows as $row)\n\t\t{\n\t\t\t$found = false;\n\t\t\tforeach ($list as $idx)\n\t\t\t{\n\t\t\t\tif ($idx == $row->$get) {\n\t\t\t\t\t$found = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!$found) {\n\t\t\t\t$list[] = $row->$get;\n\t\t\t}\n\t\t\t$return = $this->_addCategories($row->$get, $list, $type);\n\t\t}\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "1ca0598bcd749bbc534c92b28649074a", "score": "0.5117271", "text": "function getProjectSubCategory($userData)\n\t\t{\n\t\t\t//get sub category from database\n\t\t\techo '<li class=\"pro_cat\"><a>'.$userData['category'].'</a></li>\n\t\t\t\t\t<ul class=\"profile_overview profile_1st_child_nav\">\n\t\t\t\t\t\t<li><i class=\"glyphicon glyphicon-chevron-right profile_ovr_icon\"></i><a>Sub Category 1</a></li>\n\t\t\t\t\t\t<li><i class=\"glyphicon glyphicon-chevron-right profile_ovr_icon\"></i><a>Sub Category 2</a></li>\n\t\t\t\t\t\t<li><i class=\"glyphicon glyphicon-chevron-right profile_ovr_icon\"></i><a>Sub Category 3</a></li>\n\t\t\t\t\t\t<li><i class=\"glyphicon glyphicon-chevron-right profile_ovr_icon\"></i><a>Sub Category 4</a></li>\n\t\t\t\t\t\t<li><i class=\"glyphicon glyphicon-chevron-right profile_ovr_icon\"></i><a>Sub Category 5</a></li>\n\t\t\t\t\t</ul>';\n\t\t}", "title": "" }, { "docid": "5745fc3649f68ca9656e5ca784bf5b8d", "score": "0.5115521", "text": "public function subsetOf(Set|NonEmptySet $superset): bool;", "title": "" }, { "docid": "4a664a1e9c2c0c9554b3fbe27e75afd2", "score": "0.51147026", "text": "function category_has_open_courses($category)\r\n{\r\n\tglobal $setting_show_also_closed_courses;\r\n\t\r\n\t$user_identified = (api_get_user_id()>0 && !api_is_anonymous());\r\n\t$main_course_table = Database :: get_main_table(TABLE_MAIN_COURSE);\r\n\t$sql_query = \"SELECT * FROM $main_course_table WHERE category_code='$category'\";\r\n\t$sql_result = api_sql_query($sql_query, __FILE__, __LINE__);\r\n\twhile ($course = mysql_fetch_array($sql_result))\r\n\t{\r\n\t\tif ($setting_show_also_closed_courses == false)\r\n\t\t{\r\n\t\t\tif((api_get_user_id()>0 \r\n\t\t\t\tand $course['visibility'] == COURSE_VISIBILITY_OPEN_PLATFORM)\r\n\t\t\t\tor ($course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD))\r\n\t\t\t{\r\n\t\t\t\treturn true; //at least one open course\r\n\t\t\t}\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\tif(isset($course['visibility']))\r\n\t\t\t{\r\n\t\t\t\treturn true; //at least one course (does not matter weither it's open or not because $setting_show_also_closed_courses = true\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t}\r\n\treturn false;\r\n}", "title": "" }, { "docid": "58fce0c87ceb09296f4369f844e8d80c", "score": "0.51123106", "text": "public function test_if_product_has_category_with_parent_category_and_breadcrumb()\n {\n $this->product->setCategory([\n [\n \"id\" => 75,\n \"name\" => \"Men footwear\",\n \"parent\" => false,\n \"breadcrumb\" => []\n ],\n [\n \"id\" => 22,\n \"name\" => \"Sport sneakers\",\n \"parent\" => 21,\n \"breadcrumb\" => [\n [\"id\" => 21, \"name\" => \"Sneakers\", \"parent\" => 20],\n [\"id\" => 20, \"name\" => \"Shoes\", \"parent\" => false]\n ]\n ]\n ]);\n\n $this->assertEquals($this->product->getCategory(), [\n [\n \"id\" => 75,\n \"name\" => \"Men footwear\",\n \"parent\" => false,\n \"breadcrumb\" => []\n ],\n [\n \"id\" => 22,\n \"name\" => \"Sport sneakers\",\n \"parent\" => 21,\n \"breadcrumb\" => [\n [\"id\" => 21, \"name\" => \"Sneakers\", \"parent\" => 20],\n [\"id\" => 20, \"name\" => \"Shoes\", \"parent\" => false]\n ]\n ]\n ]);\n }", "title": "" }, { "docid": "a7f147e4ca8a3ecb5810c99f57d63080", "score": "0.5106507", "text": "function isInCategoryMount($id,$exitOnError=0){\r\n\t\t\r\n\t\tif($GLOBALS['BE_USER']->isAdmin()) return 1;\r\n\t\t\r\n\t\t$mounts = tx_categories_perms::getCategoryMounts();\r\n\r\n\t\t$id = intval($id);\r\n\r\n\t\t$ok = FALSE;\r\n\t\t\r\n\t\twhile($uid > 0){\r\n\t\t\t$res = $GLOBALS['TYPO3_DB']->execSELECTquery(\r\n\t\t\t\t\t'tx_categories.*',\r\n\t\t\t\t\t'tx_categories INNER JOIN tx_categories_mm mm ON mm.localtable=\"tx_categories\" uid_foreign=tx_categories.uid AND uid_local='.$uid,\r\n\t\t\t\t\t'1=1 '.t3lib_BEfunc::deleteClause('tx_categories')\r\n\t\t\t\t);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3d5d3c2e2871d672f00cb0a7a7dca630", "score": "0.5104133", "text": "function CategoryExists ($cat_name, $module_id)\r\n{\r\n\tglobal $db;\r\n\t$query = \"SELECT id_cat FROM cabinete_categories\r\n\t\t\t\t\t\tWHERE cat_name = '\".addslashes($cat_name).\"'\r\n\t\t\t\t\t\tAND parent_module = '\".$module_id.\"'\";\r\n\t$db->query($query);\r\n\tif ($db->num_rows() != '0')\r\n\t{\r\n\t\treturn true;\r\n\t}\r\n\telse \r\n\t{\r\n\t\treturn false;\r\n\t}\r\n}", "title": "" } ]
0209784bcf3cf4ed75b45e06c9a6491c
Register a new PATCH route with the router.
[ { "docid": "814f2a7916a47e9a02c5479e47af746f", "score": "0.59020567", "text": "public function patch($uri, $action = null)\n {\n return $this->addRoute('PATCH', $uri, $action);\n }", "title": "" } ]
[ { "docid": "3af227c9d71ecd47b0cb440d737e77b3", "score": "0.6612847", "text": "public function patch($path = '/', $callback = null) {\n\t\t$this->addRoute('patch', $path, $callback);\n\t}", "title": "" }, { "docid": "af9f2452275272fbbf49021ed94e2dfc", "score": "0.65290153", "text": "public function patch(string $uri, callable|array|null $action = null): Route\n {\n return $this->addRoute('PATCH', $uri, $action);\n }", "title": "" }, { "docid": "f865d996a02790dd188d294698c7c446", "score": "0.6433758", "text": "public function addPatch($uri, $handler, $name = null)\n {\n $this->addRoute(\"PATCH\", $uri, $handler, $name);\n }", "title": "" }, { "docid": "3f6035c5c2a5835cc1fec8c770d8a56f", "score": "0.6260859", "text": "private function registerPreflightPatch()\n {\n $request = $this->app->make('request');\n if ($request->isMethod('OPTIONS')) {\n $this->app->options($request->path(), function () {\n return response('OK', 200);\n });\n }\n }", "title": "" }, { "docid": "58e92ea73e73b5bc494de0701eece52c", "score": "0.62267035", "text": "public function addPatch($pattern, $paths = null);", "title": "" }, { "docid": "a12155c5b28d7f726db00d8f027e55a1", "score": "0.6213268", "text": "public function patch($path, $controller, $name = '')\n {\n $this->addRoute(['PATCH'], $path, $controller, $name);\n }", "title": "" }, { "docid": "154802545009d697d456dc9bc80362b4", "score": "0.619816", "text": "public static function patch( string $uri, $callback ) : Route {\n\t\treturn static::instance()->patch( $uri, $callback );\n\t}", "title": "" }, { "docid": "e9e3affe05714552a4acd2cbd4ffc56c", "score": "0.6160127", "text": "public function patch($path, $callable)\n {\n $this->make('route')->addRoute('PATCH', $path, $callable);\n }", "title": "" }, { "docid": "7d6fe61665b3d492414da7104b0173eb", "score": "0.60479283", "text": "public function register_routes() {\n\t\tregister_rest_route( $this->namespace, '/' . $this->rest_base . '/(?P<id>\\d+)', array(\n\t\t\t'methods' => \\WP_REST_Server::EDITABLE,\n\t\t\t'callback' => array( $this, 'update_item' ),\n\t\t\t'args' => $this->get_endpoint_args_for_item_schema( \\WP_REST_Server::EDITABLE ),\n\t\t\t'permission_callback' => function( $request ) {\n\t\t\t\treturn current_user_can( 'manage_creatives' );\n\t\t\t},\n\t\t) );\n\t}", "title": "" }, { "docid": "bb4b05953e98e3b4f1f88cc2fe0d35fb", "score": "0.60344607", "text": "public function patch(string $path, callable $handler): HttpRouteHandler\n {\n }", "title": "" }, { "docid": "823d9bfe58df726b75a3fe1690f8150a", "score": "0.60212326", "text": "public function patch(string $path, $handler, array $pathParams = [], array $opts = []): Route\n {\n return $this->add('PATCH', $path, $handler, $pathParams, $opts);\n }", "title": "" }, { "docid": "f2a12e01f4c75770711c839ec6c187d7", "score": "0.5991357", "text": "public function patch($uri, array $options = []);", "title": "" }, { "docid": "4346c70d82cf55561b8cdfde29fb87eb", "score": "0.59317374", "text": "public function patch(string $path, $handler): Route\n {\n return $this->addRoute($this->stack, ['PATCH'], $path, $handler);\n }", "title": "" }, { "docid": "be7c62ac2a63514969cae20fdb33a0eb", "score": "0.5893325", "text": "public static function patch(string $route, $callback)\n {\n $route = new self($route, $callback);\n Router::registerRoute('PATCH', $route);\n return $route;\n }", "title": "" }, { "docid": "36b0c562bc22cbb1b4e0e7cf170fe98f", "score": "0.58383846", "text": "public function patch($route, $handler)\n {\n $this->addRoute('PATCH', $route, $handler);\n }", "title": "" }, { "docid": "8409712790895cdbb9895775c2b2ea59", "score": "0.5815043", "text": "public function patch(string $uri, $action);", "title": "" }, { "docid": "c24f7d09779f36b27e248db3a249a2ed", "score": "0.5775152", "text": "public function patch(string $route, string $controller): RouterInterface\n {\n $this->add(\"patch\",$route,$controller);\n return $this;\n }", "title": "" }, { "docid": "90148ecbe9a08bba90cd8ef68b5682c3", "score": "0.57737774", "text": "static function PATCH(array $modules, callable $hook) {\n\t\treturn new APIEndpoint($modules, APIEndpoint::M_PATCH, $hook);\n\t}", "title": "" }, { "docid": "f56027eb9bcd603a4afa71cdf2d687b2", "score": "0.57571954", "text": "public function testPatch(): void\n {\n $server = ['CONTENT_TYPE' => 'application/x-www-form-urlencoded'];\n\n $this->willBeCalled('PATCH', $server);\n\n $this->patch(self::URI);\n }", "title": "" }, { "docid": "5acfd143a7a75a1232e282ff445edaec", "score": "0.5734641", "text": "public function setPatch($var)\n {\n GPBUtil::checkInt32($var);\n $this->patch = $var;\n $this->has_patch = true;\n\n return $this;\n }", "title": "" }, { "docid": "b9378b919c551663f2f0575fceb07287", "score": "0.57250965", "text": "public function patch($uri, $action)\n\t{\n\t\treturn $this->addRoute(['PATCH'], $uri, $action);\n\t}", "title": "" }, { "docid": "15ad91aaffffbe1bfecf8e11c99fa61c", "score": "0.5615678", "text": "public function register_routes() {\n\t\tregister_rest_route( $this->namespace, '/' . $this->rest_base, array(\n\t\t\t'methods' => \\WP_REST_Server::EDITABLE,\n\t\t\t'args' => $this->get_endpoint_args_for_item_schema( \\WP_REST_Server::EDITABLE ),\n\t\t\t'callback' => array( $this, 'create_item' ),\n\t\t\t'permission_callback' => function( $request ) {\n\t\t\t\treturn current_user_can( 'manage_referrals' );\n\t\t\t},\n\t\t) );\n\t}", "title": "" }, { "docid": "3129fd0d74d9de3c097cfde30d982c97", "score": "0.5609011", "text": "public function patch($route, $callback = null) {\n\t\t$this->router->patch($route, $callback, [ $this ]) && exit;\n\t}", "title": "" }, { "docid": "4339b8c9908218ee27d548f35c98d00b", "score": "0.5596134", "text": "public function testJsonApiPatch(): void\n {\n $json = '{}';\n $server = ['CONTENT_TYPE' => 'application/vnd.api+json'];\n\n $this->willBeCalled('PATCH', $server, $json);\n\n $this->patchJsonApi(self::URI, $json);\n }", "title": "" }, { "docid": "79cb92d36c6667ac6daaedfffb58a2f1", "score": "0.55822337", "text": "public function defaultPatchMethodTest(\\FunctionalTester $I)\n {\n //Init\n $this->_curl->reset();\n\n $I->expectARequestToRemoteServiceWithAResponse(\n\n Phiremock::on(\n A::postRequest()->andUrl(Is::equalTo('/test/head'))\n ->andHeader('X-HTTP-Method-Override', Is::equalTo('PATCH'))\n )->then(\n Respond::withStatusCode(200)\n )\n );\n\n $this->_curl->patch($this->_endPoint . '/test/head');\n $I->assertEquals($this->_curl->responseCode, 200);\n }", "title": "" }, { "docid": "ad33844dd911f8d7fe054ab7910911cd", "score": "0.5576946", "text": "public function register(): void\n {\n register_rest_route(\n 'nozier/v1',\n '/plugins/update',\n [\n [\n 'methods' => \\WP_REST_Server::EDITABLE,\n 'callback' => [ $this, 'update'],\n 'permission_callback' => ['Nozier\\Wordpress\\Routes', 'verify'],\n ],\n ]\n );\n }", "title": "" }, { "docid": "f92b3c6c216fb5545e9a88fc96462893", "score": "0.55681956", "text": "public function registerRestRoute(): void\n\t{\n\t\tregister_rest_route(\n\t\t\tself::NAMESPACE_NAME . self::VERSION,\n\t\t\t$this->getCallbackRoute(),\n\t\t\t$this->getCallbackArguments(),\n\t\t\t$this->overrideRoute()\n\t\t);\n\t}", "title": "" }, { "docid": "0ce83b2b0f97842445adf1808728d571", "score": "0.5563762", "text": "public function patch($uri, $action)\n {\n return $this->addRoute(['PATCH'], $uri, $action);\n }", "title": "" }, { "docid": "e5ef0f1e362bb327f4f42e6be7377556", "score": "0.554871", "text": "public static function patch(string $uri, string $arg)\n {\n return static::add(new self('patch', $uri, $arg));\n }", "title": "" }, { "docid": "b79f04b2b5a22057a69a17875f93f696", "score": "0.55474806", "text": "public function patch($uri, $controller, $action)\n {\n $this->addRoute('PATCH', $uri, $controller, $action);\n }", "title": "" }, { "docid": "bd6c14a7f81bd1696a919f092675f4af", "score": "0.55134004", "text": "#[@test]\n public function doPatch() {\n $this->assertHandlerForMethodTriggered('PATCH');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.5509566", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.5509566", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.5509566", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.5509566", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.5509566", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.5509566", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.5509566", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.5509566", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.5509566", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "2c8c7e78cd7f8bb4eeea27b8618acb08", "score": "0.55068415", "text": "public function patch()\n {\n return $this->request('PATCH');\n }", "title": "" }, { "docid": "691e17c2b8e29fe17eb4767817a0cf03", "score": "0.5505559", "text": "public function patch($id)\n {\n }", "title": "" }, { "docid": "7d2d4203dfd5f188918e5d8b557ecfe5", "score": "0.54847056", "text": "public static function patch($url, $method)\n {\n if (!isset($method)) {\n throw new \\Exception('Patch request requires a method to execute');\n }\n\n self::checkRoutes($url, 'PATCH');\n self::$routes[] = array('path' => $url, 'method' => $method, 'request' => 'PATCH');\n }", "title": "" }, { "docid": "e017972dac73ff0291337c65480f6b0c", "score": "0.54492754", "text": "public function register_routes() {\n\t\tregister_rest_route(\n\t\t\t$this->namespace, '/orders/modified', [\n\t\t\t\t[\n\t\t\t\t\t'methods' => \\WP_REST_Server::READABLE,\n\t\t\t\t\t'callback' => [ $this, 'get_items' ],\n\t\t\t\t\t'permission_callback' => [ $this, 'get_items_permissions_check' ],\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t}", "title": "" }, { "docid": "b1f6e8f127ee55fa5beca144c97fcc43", "score": "0.54472053", "text": "public function setPatchFlag($patch = true)\n {\n $this->createPatch = $patch;\n }", "title": "" }, { "docid": "2d39afca915c93c0680cdbf1fadedcb1", "score": "0.5435271", "text": "function patch($uri, $action)\n {\n return royalcms('router')->patch($uri, $action);\n }", "title": "" }, { "docid": "1fcba17fb97a69161c411d837bd432ba", "score": "0.54075897", "text": "public function isPatch();", "title": "" }, { "docid": "936a8192a3c7aa0c795194515d9d1975", "score": "0.53851074", "text": "public function patch($uri, $controller, $filters=null) {\n if (is_array($uri)) {\n $name = $uri[1];\n $uri = $uri[0];\n $this->register_route($uri, $name, $controller, $filters, 'PATCH');\n }\n\n if ($this->http_method() === 'PATCH') {\n $this->matched_route_selector($uri, $controller, $filters);\n }\n }", "title": "" }, { "docid": "894fd7a2d6c16c8352b6b7088237380f", "score": "0.5382156", "text": "public function addRoute(array $spec = []);", "title": "" }, { "docid": "b477eb5b72675169d1795e939837ea4e", "score": "0.5369229", "text": "public function patch($uri, $action = null)\n {\n return $this->addRule('PATCH', $uri, $action);\n }", "title": "" }, { "docid": "7a133397263b77fb179c7ca961f06a1a", "score": "0.53614646", "text": "protected static function registerRoutes()\n {\n parent::routes(function ($router) {\n /* @var \\Illuminate\\Routing\\Router $router */\n $router->get('api-tester', 'OpenAdmin\\Admin\\ApiTester\\ApiTesterController@index')->name('api-tester-index');\n $router->post('api-tester/handle', 'OpenAdmin\\Admin\\ApiTester\\ApiTesterController@handle')->name('api-tester-handle');\n });\n }", "title": "" }, { "docid": "61f8eea630837f65eb590f61967cc01d", "score": "0.5352231", "text": "public static function isPatch()\n {\n return (self::getMethod() === 'PATCH' ? true : false);\n }", "title": "" }, { "docid": "7893245c0dbee2da007dfb04393124fb", "score": "0.534855", "text": "public static function rest_api_init() {\n register_rest_route('streamers/v1', '/team/update/(?P<id>[\\d]+)', [\n 'methods' => 'POST',\n 'callback' => [__CLASS__, 'update_team'],\n 'args' => [\n\t\t\t\t'id' => [\n\t\t\t\t\t'required' => true,\n\t\t\t\t\t'validate_callback' => function($param, $request, $key) {\n\t\t\t\t\t\treturn is_numeric( $param );\n\t\t\t\t\t},\n\t\t\t\t]\n ],\n 'permission_callback' => function ( WP_REST_Request $request ) {\n return current_user_can('read');\n },\n ]);\n }", "title": "" }, { "docid": "f34af793810557fb9d72c8e6c2ede4d7", "score": "0.5319593", "text": "public function patch() {\n\n // You must to implement the logic of your REST Resource here.\n // Use current user after pass authentication to validate access.\n\n /*\n if(!$this->currentUser->hasPermission($permission)) {\n throw new AccessDeniedHttpException();\n }\n */\n\n // Throw an exception if it is required.\n // throw new HttpException(t('Throw an exception if it is required.'));\n return new ResourceResponse(\"Implement REST State PATCH!\");\n }", "title": "" }, { "docid": "fdbeca991e85fe24d5466ddebc4e4d1e", "score": "0.5318998", "text": "public function patch($url, array $data = array(), array $extra = array());", "title": "" }, { "docid": "640940e30a9ea969d4548fe80f56cc1d", "score": "0.53136414", "text": "public function register_api_routes() {\n\n\t\t$name = $this->domain;\n\t\t$version = $this->version;\n\n\t\tregister_rest_route(\n\t\t\t$name . '/' . $version,\n\t\t\t'/insert-gallery',\n\t\t\tarray(\n\t\t\t\t'methods' => 'POST',\n\t\t\t\t'callback' => array( $this, 'maybe_insert_gallery' ),\n\t\t\t\t'permission_callback' => '__return_true',\n\t\t\t)\n\t\t);\n\n\t\tregister_rest_route(\n\t\t\t$name . '/' . $version,\n\t\t\t'/insert-album',\n\t\t\tarray(\n\t\t\t\t'methods' => 'POST',\n\t\t\t\t'callback' => array( $this, 'maybe_insert_album' ),\n\t\t\t\t'permission_callback' => '__return_true',\n\t\t\t)\n\t\t);\n\n\t\tregister_rest_route(\n\t\t\t$name . '/' . $version,\n\t\t\t'/insert-image',\n\t\t\tarray(\n\t\t\t\t'methods' => 'POST',\n\t\t\t\t'callback' => array( $this, 'insert_image' ),\n\t\t\t\t'permission_callback' => '__return_true',\n\t\t\t)\n\t\t);\n\n\t\tregister_rest_route(\n\t\t\t$name . '/' . $version,\n\t\t\t'/crop-images',\n\t\t\tarray(\n\t\t\t\t'methods' => 'POST',\n\t\t\t\t'callback' => array( $this, 'crop_images' ),\n\t\t\t\t'permission_callback' => '__return_true',\n\t\t\t)\n\t\t);\n\n\t\tregister_rest_route(\n\t\t\t$name . '/' . $version,\n\t\t\t'/resize-image',\n\t\t\tarray(\n\t\t\t\t'methods' => 'POST',\n\t\t\t\t'callback' => array( $this, 'resize' ),\n\t\t\t\t'permission_callback' => '__return_true',\n\t\t\t)\n\t\t);\n\n\t\tdo_action( 'envira_gallery_routes', $name, $version );\n\n\t}", "title": "" }, { "docid": "126cf68cf379afc8fb40d7dd79351de6", "score": "0.531022", "text": "public function add_rest_api_routes() {\n\t\t//Product endpoint\n\t\tregister_rest_route( 'clerk', '/product', [\n\t\t\t'methods' => 'GET',\n\t\t\t'callback' => [ $this, 'product_endpoint_callback' ],\n\t\t] );\n\n\t\t//Category endpoint\n\t\tregister_rest_route( 'clerk', '/category', [\n\t\t\t'methods' => 'GET',\n\t\t\t'callback' => [ $this, 'category_endpoint_callback' ],\n\t\t] );\n\n\t\t//Order endpoint\n\t\tregister_rest_route( 'clerk', '/order', [\n\t\t\t'methods' => 'GET',\n\t\t\t'callback' => [ $this, 'order_endpoint_callback' ],\n\t\t] );\n\n\t\t//Customer endpoint\n\t\tregister_rest_route( 'clerk', '/customer', [\n\t\t\t'methods' => 'GET',\n\t\t\t'callback' => [ $this, 'customer_endpoint_callback' ],\n\t\t] );\n\n\t\t//Version endpoint\n\t\tregister_rest_route( 'clerk', '/version', [\n\t\t\t'methods' => 'GET',\n\t\t\t'callback' => [ $this, 'version_endpoint_callback' ],\n\t\t] );\n\t}", "title": "" }, { "docid": "01098a561889e44c3230e226c3cbec04", "score": "0.53079754", "text": "public function patch($url, array $data = []);", "title": "" }, { "docid": "28717ee17adc666e8c1f12226994096d", "score": "0.5268673", "text": "public function register_routes() {\n $version = '1';\n $namespace = 'mrt/v' . $version;\n $base = 'route';\n\n register_rest_route('mrt/v1', self::base('get_states'), array(\n 'methods' => WP_REST_Server::READABLE,\n 'callback' => array($this, 'get_states'),\n 'args' => array(\n ),\n ));\n \n register_rest_route('mrt/v1', self::base('get_lstates'), array(\n 'methods' => WP_REST_Server::READABLE,\n 'callback' => array($this, 'get_lstates'),\n 'args' => array(\n ),\n ));\n\n register_rest_route('mrt/v1', self::base('set_agency_status_approve'), array(\n 'methods' => WP_REST_Server::READABLE,\n 'callback' => array($this, 'set_agency_status_approve'),\n 'args' => array(\n ),\n ));\n\n \n register_rest_route($namespace, self::base('get_user_token'), [\n 'methods' => WP_REST_Server::READABLE,\n 'callback' => [$this, 'get_user_token'],\n ]);\n \n register_rest_route($namespace, self::base('transform_img'), [\n 'methods' => WP_REST_Server::CREATABLE,\n 'callback' => [$this, 'transform_img'],\n ]);\n }", "title": "" }, { "docid": "704370d6399d66800682389bc881a12e", "score": "0.52591455", "text": "public function isPatch()\n {\n return ($this->getMethod() === 'PATCH' ? true : false);\n }", "title": "" }, { "docid": "86dd6a00c9cd6a63344b4d3abbd6134a", "score": "0.5254233", "text": "public function patch($data)\n {\n }", "title": "" }, { "docid": "41c39c0332e63c69844b73053e2843e3", "score": "0.5246471", "text": "function hideous_tuna_rest_form_add() {\n\t$route = hideous_tuna_rest_route();\n\n\tregister_rest_route(\n\t\t$route,\n\t\t'/forms',\n\t\tarray(\n\t\t\t'methods' => WP_REST_Server::CREATABLE,\n\t\t\t'callback' => 'hideous_tuna_rest_form_update_cb',\n\t\t\t'permission_callback' => function() {\n\t\t\t\treturn current_user_can( 'edit_posts' );\n\t\t\t},\n\t\t)\n\t);\n}", "title": "" }, { "docid": "21d7edc845c8d19826f4e30f661e63de", "score": "0.5244948", "text": "public function patch(string $route, $action, bool $auth = false, $level = null)\n {\n $this->register('patch', $route, $action, $auth, $level);\n return $this;\n }", "title": "" }, { "docid": "08157bf1808b513588159344397c09aa", "score": "0.52223146", "text": "function register_rest_route($namespace, $route, $args = [], $override = false)\n{\n global $register_rest_route;\n $register_rest_route = $register_rest_route ?? [];\n $register_rest_route[] = [$namespace, $route, $args, $override];\n}", "title": "" }, { "docid": "defdc06bf9fdd40499d42ef0cfd06caf", "score": "0.5219743", "text": "public function registerCpRoutes()\n {\n return array(\n 'gtpoll/edit/(?P<pollId>\\d+)' => 'gtpoll/edit',\n );\n }", "title": "" }, { "docid": "31c00d169865c56ea736fb7a3c2ce3a6", "score": "0.5187794", "text": "public function register_routes() {\n\n\t\tif ( method_exists( $this, 'get' ) ) {\n\t\t\tregister_rest_route(\n\t\t\t\t$this->namespace,\n\t\t\t\t'/' . $this->rest_base,\n\t\t\t\t[\n\t\t\t\t\t[\n\t\t\t\t\t\t'methods' => 'GET',\n\t\t\t\t\t\t'callback' => [ $this, 'get_internal' ],\n\t\t\t\t\t\t'permission_callback' => [ $this, 'check_permission' ],\n\t\t\t\t\t],\n\t\t\t\t]\n\t\t\t);\n\t\t}\n\n\t\tif ( method_exists( $this, 'post' ) ) {\n\t\t\tregister_rest_route(\n\t\t\t\t$this->namespace,\n\t\t\t\t'/' . $this->rest_base,\n\t\t\t\t[\n\t\t\t\t\t[\n\t\t\t\t\t\t'methods' => 'POST',\n\t\t\t\t\t\t'callback' => [ $this, 'post_internal' ],\n\t\t\t\t\t\t'permission_callback' => [ $this, 'check_permission' ],\n\t\t\t\t\t],\n\t\t\t\t]\n\t\t\t);\n\t\t}\n\n\t\tif ( method_exists( $this, 'delete' ) ) {\n\t\t\tregister_rest_route(\n\t\t\t\t$this->namespace,\n\t\t\t\t'/' . $this->rest_base,\n\t\t\t\t[\n\t\t\t\t\t[\n\t\t\t\t\t\t'methods' => 'DELETE',\n\t\t\t\t\t\t'callback' => [ $this, 'delete_internal' ],\n\t\t\t\t\t\t'permission_callback' => [ $this, 'check_permission' ],\n\t\t\t\t\t],\n\t\t\t\t]\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "ba7db1f8481ce1ab32f47b9d9c31bf21", "score": "0.518269", "text": "protected function registerLaravelRoute()\n {\n $app = $this->app;\n $prefix = $app['config']->get('fluxbb.route_prefix', '');\n\n $app['router']->any($prefix.'/{uri}', ['as' => 'fluxbb', 'uses' => function ($uri) use ($app) {\n $method = $app['request']->method();\n $parameters = $app['request']->input();\n\n $request = $app['fluxbb.web.router']->getRequest($method, $uri, $parameters);\n $response = $app['fluxbb.server']->dispatch($request);\n\n return $app['fluxbb.web.renderer']->render($request, $response);\n }])->where('uri', '.*');\n }", "title": "" }, { "docid": "47d05ae6ef9bd5e22f3cfc687dbeb596", "score": "0.51727426", "text": "public function updateEndpoint()\n {\n $stack = $this->getMiddleware(Controller\\UpdateActionController::class);\n $this->app->route(\"/{$this->name}/{id}\", $stack, ['PUT','POST'], \"{$this->name}.update\");\n return $this;\n }", "title": "" }, { "docid": "51236290a1816bb6fe6d426de4cf03c6", "score": "0.5159943", "text": "public function test_PATCH_is_disabled()\n {\n $iri = $this->findIriBy(Mechanic::class, ['name'=>'Bob']);\n $this->client->request('PATCH', $iri, ['json' => [], 'headers' => [\n 'content-type'=> 'application/merge-patch+json'\n ]]);\n $this->assertResponseStatusCodeSame(405);\n }", "title": "" }, { "docid": "0a4e7431fedb2b884d334219f6ab1f49", "score": "0.5159466", "text": "public function register_routes() {\n\n\t\t$namespace = $this->namespace;\n\n\t\t$base = $this->rest_base;\n\n\t\tregister_rest_route( $namespace, '/' . $base, array(\n\t\t\tarray(\n\t\t\t\t'methods' => WP_REST_Server::READABLE,\n\t\t\t\t'callback' => array( $this, 'get_items' ),\n\t\t\t\t'permission_callback' => array( $this, 'get_items_permissions_check' ),\n\t\t\t\t'args' => array(),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'methods' => WP_REST_Server::CREATABLE,\n\t\t\t\t'callback' => array( $this, 'create_item' ),\n\t\t\t\t'permission_callback' => array( $this, 'create_item_permissions_check' ),\n\t\t\t\t'args' => $this->get_endpoint_args_for_item_schema( true ),\n\t\t\t),\n\t\t) );\n\t\tregister_rest_route( $namespace, '/' . $base . '/(?P<id>[\\d]+)', array(\n\t\t\tarray(\n\t\t\t\t'methods' => WP_REST_Server::READABLE,\n\t\t\t\t'callback' => array( $this, 'get_item' ),\n\t\t\t\t'permission_callback' => array( $this, 'get_item_permissions_check' ),\n\t\t\t\t'args' => array(\n\t\t\t\t\t'context' => array(\n\t\t\t\t\t\t'default' => 'view',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'methods' => 'PUT',\n\t\t\t\t'callback' => array( $this, 'update_item' ),\n\t\t\t\t'permission_callback' => array( $this, 'update_item_permissions_check' ),\n\t\t\t\t'args' => $this->get_endpoint_args_for_item_schema( false ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'methods' => WP_REST_Server::DELETABLE,\n\t\t\t\t'callback' => array( $this, 'delete_item' ),\n\t\t\t\t'permission_callback' => array( $this, 'delete_item_permissions_check' ),\n\t\t\t\t'args' => array(\n\t\t\t\t\t'force' => array(\n\t\t\t\t\t\t'default' => false,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t) );\n\n\t\tregister_rest_route( $namespace, '/' . $base . '/schema', array(\n\t\t\t'methods' => WP_REST_Server::READABLE,\n\t\t\t'callback' => array( $this, 'get_public_item_schema' ),\n\t\t) );\n\t}", "title": "" }, { "docid": "72882326bfeac44d6256984e562b0e94", "score": "0.5156642", "text": "public function register_rest_routes() {\n\t\tregister_rest_route('accordion-blocks/v1', '/defaults', array(\n\t\t\t'methods' => WP_REST_Server::READABLE,\n\t\t\t'callback' => array($this, 'api_get_defaults'),\n\t\t));\n\n\t\tregister_rest_route('accordion-blocks/v1', '/defaults', array(\n\t\t\t'methods' => WP_REST_Server::EDITABLE,\n\t\t\t'callback' => array($this, 'api_set_defaults'),\n\t\t\t'permission_callback' => array($this, 'check_permissions'),\n\t\t));\n\t}", "title": "" }, { "docid": "df8e842e0145e1a6cdcf58ae6d049909", "score": "0.5150786", "text": "public function patch($id, $method, $args=array())\n {\n \t$this->queue_operation('PATCH', $id, $method, $args);\n }", "title": "" }, { "docid": "035119407a94e7d0f4c7f1dd0f60d204", "score": "0.51491827", "text": "public function PATCH($url = null)\n {\n $this->url_destination = $url;\n $this->selected_http_method = \"PATCH\";\n $this->http = true;\n\n return $this;\n }", "title": "" }, { "docid": "685bdf2fe527d128da0cb4a08d9ce773", "score": "0.5148182", "text": "public function register_routes() {\r\n\t\t$this->rest_manager->register_generate_route();\r\n\t\t$this->rest_manager->register_delete_route();\r\n\t}", "title": "" }, { "docid": "322e50578e3f020f12c8bbccd173f611", "score": "0.51174796", "text": "public function patch($uri=null, $query=array(), $request=array()) {\n return parent::patch($this->buildurl($uri),\n $query,\n Hash::merge($this->_requestOptions, $request));\n }", "title": "" }, { "docid": "9b369c48243069e3e43115b9d695cb4f", "score": "0.5109706", "text": "public function hook_rest_server(){\n add_action( 'rest_api_init', array( $this, 'register_routes' ) );\n }", "title": "" }, { "docid": "34a11962574ed9e5dfebee34554d718b", "score": "0.51009274", "text": "public function patch($uri, $action)\n\t{\n\t\t$this->addRoute('PATCH', $uri, $action);\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "50486a04b2a0190c494c4db0e589db3e", "score": "0.51001537", "text": "public function patch(string $url, array $payload);", "title": "" }, { "docid": "6a32ae3dcb8a0481ec154a2835208500", "score": "0.5097614", "text": "public static function patch($encode = true) {\n return self::_curl('patch', $encode); \n }", "title": "" }, { "docid": "c1223e68bb34390459c29bd9a392ee6e", "score": "0.50965554", "text": "function code_example_plugin_register_rest_routes() {\n\t$controller = new Code_Example_Plugin_REST_Controller();\n\t$controller->register_routes();\n}", "title": "" }, { "docid": "ef6c6768666a3f0a2df645cfe4f775f7", "score": "0.507777", "text": "public function registerRoutes() {\n parent::registerRoutes();\n }", "title": "" }, { "docid": "e2f5e5af9facab109a1ac40fd24f9169", "score": "0.50607395", "text": "public function register_routes() {\n register_rest_route( $this->namespace, '/(?P<name>[\\w]+)', [\n [\n\t\t\t\t'methods' => [\n WP_REST_Server::CREATABLE,\n WP_REST_Server::DELETABLE,\n WP_REST_Server::EDITABLE,\n WP_REST_Server::READABLE,\n ],\n\t\t\t\t'callback' => [$this, 'call_function']\n ]\n ] );\n }", "title": "" }, { "docid": "e297d6a69a45d288f2948dc66abf927c", "score": "0.50588465", "text": "protected function registerRouteMiddleware()\n {\n\n }", "title": "" }, { "docid": "69a203ba4166224e626380131b68687d", "score": "0.5047492", "text": "public function register_routes() {\n\t\t// Lists all templates.\n\t\tregister_rest_route(\n\t\t\t$this->namespace,\n\t\t\t'/' . $this->rest_base,\n\t\t\tarray(\n\t\t\t\tarray(\n\t\t\t\t\t'methods' => WP_REST_Server::READABLE,\n\t\t\t\t\t'callback' => array( $this, 'get_items' ),\n\t\t\t\t\t'permission_callback' => array( $this, 'get_items_permissions_check' ),\n\t\t\t\t\t'args' => $this->get_collection_params(),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'methods' => WP_REST_Server::CREATABLE,\n\t\t\t\t\t'callback' => array( $this, 'create_item' ),\n\t\t\t\t\t'permission_callback' => array( $this, 'create_item_permissions_check' ),\n\t\t\t\t\t'args' => $this->get_endpoint_args_for_item_schema( WP_REST_Server::CREATABLE ),\n\t\t\t\t),\n\t\t\t\t'schema' => array( $this, 'get_public_item_schema' ),\n\t\t\t)\n\t\t);\n\n\t\t// Lists/updates a single template based on the given id.\n\t\tregister_rest_route(\n\t\t\t$this->namespace,\n\t\t\t'/' . $this->rest_base . '/(?P<id>[\\/\\w-]+)',\n\t\t\tarray(\n\t\t\t\tarray(\n\t\t\t\t\t'methods' => WP_REST_Server::READABLE,\n\t\t\t\t\t'callback' => array( $this, 'get_item' ),\n\t\t\t\t\t'permission_callback' => array( $this, 'get_item_permissions_check' ),\n\t\t\t\t\t'args' => array(\n\t\t\t\t\t\t'id' => array(\n\t\t\t\t\t\t\t'description' => __( 'The id of a template' ),\n\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'methods' => WP_REST_Server::EDITABLE,\n\t\t\t\t\t'callback' => array( $this, 'update_item' ),\n\t\t\t\t\t'permission_callback' => array( $this, 'update_item_permissions_check' ),\n\t\t\t\t\t'args' => $this->get_endpoint_args_for_item_schema( WP_REST_Server::EDITABLE ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'methods' => WP_REST_Server::DELETABLE,\n\t\t\t\t\t'callback' => array( $this, 'delete_item' ),\n\t\t\t\t\t'permission_callback' => array( $this, 'delete_item_permissions_check' ),\n\t\t\t\t\t'args' => array(\n\t\t\t\t\t\t'force' => array(\n\t\t\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t\t\t'default' => false,\n\t\t\t\t\t\t\t'description' => __( 'Whether to bypass Trash and force deletion.' ),\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'schema' => array( $this, 'get_public_item_schema' ),\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "f0d800e96d29a1233b791902d2510079", "score": "0.5041035", "text": "public function wphf_register_rest_routes() {\n\t\t$this->rest_api_controller = new WPHF_REST_Controller();\n\t\t$this->rest_api_controller->register_routes();\n\t}", "title": "" }, { "docid": "5c1313761429ba7bc46cd1925bc01b7b", "score": "0.50367785", "text": "public function registerRoutes()\n {\n $this->app['router']->group(['before' => 'oauth'], function () {\n // Get product problems.\n $this->app['router']->get('problem_types', 'Paxifi\\Store\\Controller\\ProductController@problems');\n\n // Report Problem\n $this->app['router']->post('problems', 'Paxifi\\Store\\Controller\\ProductController@problem');\n });\n }", "title": "" }, { "docid": "861c4bde5b6e83ce1fdcf105a1d05815", "score": "0.5030541", "text": "public function patch($id, $data);", "title": "" }, { "docid": "fbcd29b837a578afb8ff8452bfcb28eb", "score": "0.5023903", "text": "public function patch($method, $args = array(), $timeout = self::TIMEOUT)\n {\n return $this->makeRequest('patch', $method, $args, $timeout);\n }", "title": "" }, { "docid": "7fd87c79e404ec207ea5992e0de0831e", "score": "0.50100696", "text": "function routes() {\n\t\t\t$route_namespace = $this->api_route . '/' . $this->api_version;\n\n\t\t\tregister_rest_route(\n\t\t\t\t$route_namespace, '/videos/find-tags', array(\n\t\t\t\t\t'methods' => 'GET',\n\t\t\t\t\t'callback' => array( $this->api, 'find_legacy_embeds' ),\n\t\t\t\t\t'permission_callback' => function () {\n\t\t\t\t\t\treturn current_user_can( 'manage_options' );\n\t\t\t\t\t},\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tregister_rest_route(\n\t\t\t\t$route_namespace, '/videos/replace-tags', array(\n\t\t\t\t\t'methods' => 'POST',\n\t\t\t\t\t'callback' => array( $this->api, 'replace_legacy_embed' ),\n\t\t\t\t\t'permission_callback' => function () {\n\t\t\t\t\t\treturn current_user_can( 'manage_options' );\n\t\t\t\t\t},\n\t\t\t\t)\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "3a9e3cebddfc60160b5591eeba941d0b", "score": "0.5008875", "text": "public function patch($uri, $method)\n\t{\n\t\t$this->routeHelper->patch($this->name . '/{' . $this->name . '}/' . $uri, $this->controller, $method);\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "04ae8f5d1f952b4a9f95132632136dbd", "score": "0.5006341", "text": "public abstract function patch($id, $data);", "title": "" }, { "docid": "8fbd47613b592585664f393c5bd3ba84", "score": "0.49970987", "text": "public static function rest_api_init() {\n foreach ( static::$rest_routes as $route ) {\n $route = \\apply_filters( 'redipress/rest/route', $route );\n \\register_rest_route( $route->namespace, $route->path, $route->args );\n }\n }", "title": "" }, { "docid": "413544bf24bed371c3bf19024a1506b5", "score": "0.4996737", "text": "public function configureRoutes(RouterInterface $router, RestRequestInterface $request);", "title": "" }, { "docid": "fa955574f11610bb45b47eef3bd47bd4", "score": "0.49960223", "text": "function register_routes() {\n $version = '2';\n $namespace = 'edible_urban/v' . $version;\n $base = EDIBLE_POST_TYPE;\n register_rest_route( $namespace, '/' . $base, array(\n array(\n 'methods' => WP_REST_Server::CREATABLE,\n 'callback' => array($this,'create_item'),\n 'permission_callback' => array($this,'create_item_permissions_check'),\n ),\n ) );\n }", "title": "" }, { "docid": "c6ae884606ce64f1478a571447918602", "score": "0.49919266", "text": "public function register_rest_routes()\n {\n register_rest_route( 'livetime/v1', '/bankid/sign', array(\n 'methods' => 'POST',\n 'callback' => array( $this->controller, 'bankid_sign' )\n ) );\n\n register_rest_route( 'livetime/v1', '/bankid/collect', array(\n 'methods' => 'GET',\n 'callback' => array ( $this->controller, 'bankid_collect' )\n ) );\n\n register_rest_route( 'livetime/v1', '/envato/suggest', array(\n 'methods' => 'GET',\n 'callback' => array( $this->controller, 'get_envato_suggest' )\n ) );\n\n register_rest_route( 'livetime/v1', '/envato/change', array(\n 'methods' => 'POST',\n 'callback' => array( $this->controller, 'set_project_theme' )\n ) );\n\n register_rest_route( 'livetime/v1', '/project/sign', array(\n 'methods' => 'POST',\n 'callback' => array( $this->controller, 'project_sign' )\n ) );\n }", "title": "" }, { "docid": "51e5f11f0cac6da08d499c3dd21c0c62", "score": "0.4991558", "text": "public function addRoutes(RegisterApiRoutes $event)\n {\n $event->get('/notify/test/{connector}', 'notify.test', 'moay\\FlarumNotify\\Api\\ConnectorTest');\n }", "title": "" }, { "docid": "add82fce8b71818b9a60e3d998ed79c4", "score": "0.49903685", "text": "public function register_route();", "title": "" }, { "docid": "c139d81b4ce359e9648f4c7e4f33a6fd", "score": "0.49755892", "text": "protected static function registerRoutes()\n {\n parent::routes(\n function ($router) {\n /* @var \\Illuminate\\Routing\\Router $router */\n $router->resource(\n config('admin.extensions.area.name', 'area'),\n config('admin.extensions.area.controller', 'SMG\\Area\\AreaController')\n );\n }\n );\n\n $api = app('Dingo\\Api\\Routing\\Router');\n\n $api->version(\n 'v1',\n array_merge(\n [\n 'prefix' => 'api/package',\n ],\n config('api.defaultSetting', [])\n ),\n function ($api) {\n $api->get('/areas', '\\SMG\\Area\\ApiController@index')->name('api.package.area.home');\n $api->get('/areas/all', '\\SMG\\Area\\ApiController@all')->name('api.package.area.all');\n }\n );\n }", "title": "" }, { "docid": "d5941f00cec40fc356b186702c83f107", "score": "0.495407", "text": "public function patch(String $route, Array $arguments) {\n $method = 'PATCH';\n $routeArray = $this->addToArray($route, $method, $arguments);\n\n return $routeArray;\n }", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "3eb45ab88b036041326f5766464a62b1", "score": "0.0", "text": "public function store(Request $request , Contract $contract )\n {\n // TODO: Generate Receipt\n\n $this->validate($request , [\n 'amount' => 'required|numeric|min:1|max:'.$contract->balance,\n 'type' => 'required|string|in:cash,eco-cash',\n 'reference' => 'required_if:type,==,eco-cash',\n ]);\n\n // TODO : Add Money to user\n\n // TODO : Initiate transaction\n\n // TODO : Debit and Credit Accounts\n\n /** @noinspection PhpUndefinedFieldInspection */\n\n $contract->update([\n 'balance' => $contract->balance - $request->amount\n ]);\n\n return back()->with('message','Payment Was Successful');\n\n }", "title": "" } ]
[ { "docid": "d2d5025c41b1d2624f860d8ceab9e2ab", "score": "0.7168782", "text": "public function store()\n {\n // Use the parent API to save the resource\n $object = $this->api()->store();\n\n // Redirect back with message\n return $this->redirect('created', ['id' => $object->id])\n ->with('message', $this->message('created') );\n }", "title": "" }, { "docid": "d98a4fb282f0c755f010ee2f5ed4571d", "score": "0.7077314", "text": "protected function save()\n {\n $this->em->persist($this->resource);\n $this->em->flush();\n }", "title": "" }, { "docid": "57d765bdde5c5951746b777b6533d048", "score": "0.69856346", "text": "public function store(StoreResource $request)\n {\n $input = $request->all();\n \n $resource = new Resource;\n $resource->fill($input);\n \n $resource->save();\n\n // redirect\n Session::flash('message', 'Successfully saved resource!');\n \n return redirect('resources');\n }", "title": "" }, { "docid": "d952c501b2ff80d2bf8bb35cd4b5c7f7", "score": "0.6660094", "text": "public function store(StoreResource $request)\n {\n $data = request(['title', 'type', 'description', 'link', 'markdown', 'code']);\n \n $user = JWTAuth::parseToken()->authenticate();\n \n $resource = Resource::create([\n 'title' => $data['title'],\n 'type' => $data['type'],\n 'link' => $data['link'],\n 'code' => $data['code'],\n 'markdown' => $data['markdown'],\n 'user_id' => $user['id'],\n ]);\n \n return $resource;\n }", "title": "" }, { "docid": "0a2dcecef8071427bb4f3c22969d6817", "score": "0.6619958", "text": "public function store()\n {\n if (!$this->id) {\n $this->id = $this->insertObject();\n } else {\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "4e5acd860dcda74c61d836d96050b079", "score": "0.66155946", "text": "public function put(Storage $storage);", "title": "" }, { "docid": "de5fc2070d9e5322839836dc750f4b80", "score": "0.6569558", "text": "public function store(StoragesStoreRequest $request)\n {\n $by_id = Auth::user()->id;\n\n $new_storage = Storage::create([\n 'maker' => $request->maker,\n 'model_number' => $request->model_number,\n 'serial_number' => $request->serial_number,\n 'size' => $request->size,\n 'types' => $request->types,\n 'supported_os' => $request->supported_os,\n 'recovery_key' => $request->recovery_key,\n 'storage_password' => $request->storage_password,\n 'updated_by' => $by_id,\n 'created_by' => $by_id,\n ]);\n\n return redirect()->route('storages.show', $new_storage->id)->with('information', 'レコードを作成しました。');\n }", "title": "" }, { "docid": "3fbbbe537a186e3aba9885c042be89ee", "score": "0.6486008", "text": "public function create_storage();", "title": "" }, { "docid": "5bfca839729027de5944143fb0dca04f", "score": "0.64471614", "text": "public function store(Request $request)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'abstract' => 'required',\n 'content' => 'required',\n 'categories' => 'required|array',\n 'image' => 'required',\n ]);\n\n $resource = Resource::create([\n 'title' => $request->title,\n 'abstract' => $request->abstract,\n 'content' => $request->content,\n 'status' => $request->status,\n 'user_id' => auth()->user()->id,\n ]);\n $resource->categories()->sync($request->categories);\n\n $path = $request->image;\n $image = File::where('file_path', $path)->first();\n $resource->image()->sync($image->id);\n\n $request->session()->flash('flash.banner', 'Recurso creado exitosamente');\n\n return redirect()->route('resource.edit', $resource);\n }", "title": "" }, { "docid": "68f3fa80257f85b02954ae4ca8745d5f", "score": "0.6422112", "text": "public function store(Request $request)\n {\n $req = $request->all();\n if (Validator::make($req,\n [\n 'new_dir' => 'required',\n ])->fails()) return $this->failed(400000);\n if (Validator::make($req,\n [\n 'new_dir' => 'string',\n ])->fails()) return $this->failed(400001);\n\n $resource = new Resource();\n $resource->resource_name = $req['new_dir'];\n $resource->file = false;\n if ($req['current_path']) $resource->path = $req['current_path'];\n if (!$resource->save()) return $this->failed(500001);\n $request->user()->resource()->attach($resource->id);\n return response()->json($resource);\n }", "title": "" }, { "docid": "40718558d61a4c56dc5b2c2b6422e8cf", "score": "0.6419359", "text": "abstract public function createStorage();", "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": "634b03751c156f72e00ba740b789cf98", "score": "0.6369132", "text": "public function store()\n\t{\n\t\t//\n\n\n\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": "" } ]
7a60fb7d2bc31cd404c03d503e89dcfd
the messages providade by the messages.json file
[ { "docid": "193bbbd308cadc797d741ae3890d01f4", "score": "0.0", "text": "public function __construct($config = array()) //our construct method\n\t{\n\t\t$this->geo_ip = new GeoIP; //we create a new istance from the GeoIP class\n\t\n\t\t$this->langs = Load::get_languages($config['languages_path']);\n\t\t$this->messages = Load::get_messages($config['messages_path']);\n\t}", "title": "" } ]
[ { "docid": "2d09e8ef4e487e6596ff4b06c0e401d5", "score": "0.7334502", "text": "function loadMessagesJSON()\n\t{\n\t\tif($this->sender_id == null)\n\t\t{\n\t\t\t$this->error['error'] = \"Invalid User ID\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->sender_id = $this->json_details['sender_id'];\n\t\t}\n\t\t\n\t\tif($this->thread_id == null)\n\t\t{\n\t\t\t$this->error['error'] = \"Invalid Thread ID\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->thread_id = $this->json_details['thread_id'];\n\t\t}\n\t}", "title": "" }, { "docid": "ee24b2a3b61e9961b24067104edf5cda", "score": "0.72030157", "text": "public function getMessages();", "title": "" }, { "docid": "ee24b2a3b61e9961b24067104edf5cda", "score": "0.72030157", "text": "public function getMessages();", "title": "" }, { "docid": "ee24b2a3b61e9961b24067104edf5cda", "score": "0.72030157", "text": "public function getMessages();", "title": "" }, { "docid": "ee24b2a3b61e9961b24067104edf5cda", "score": "0.72030157", "text": "public function getMessages();", "title": "" }, { "docid": "ee24b2a3b61e9961b24067104edf5cda", "score": "0.72030157", "text": "public function getMessages();", "title": "" }, { "docid": "0db11a16006d7bc73ef7dac2d5d7d012", "score": "0.6825701", "text": "function _c4m_message_get_messages_as3() {\n return '\n {\n \"name\" : \"c4m_insert__node__discussion\",\n \"description\" : \"STREAM :: Discussion Insert/Update\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-node:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation | !date\\u003C\\/div\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-node:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation | !date\\u003C\\/div\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "1b18a81c7bc095231856ad70740a1a1a", "score": "0.6816232", "text": "public function messages();", "title": "" }, { "docid": "e52a33a0de7d9256ac6fa60db2073921", "score": "0.67780334", "text": "function _c4m_message_get_messages_as2() {\n return '\n {\n \"name\" : \"c4m_insert__node__article\",\n \"description\" : \"STREAM :: Article Insert/Update\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-node:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation | !date\\u003C\\/div\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-node:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation | !date\\u003C\\/div\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "f1a6b935420ea699d860b9d833210c84", "score": "0.67509365", "text": "protected function getMessages()\n {\n return [];\n }", "title": "" }, { "docid": "903c97189e296151c2a65eb65928d10f", "score": "0.67438084", "text": "public function getMessages(){\n \treturn $this->messages;\n }", "title": "" }, { "docid": "97bc8e16defa7b38407e70930117ed57", "score": "0.67273825", "text": "function _c4m_message_get_messages_as1() {\n return '\n {\n \"name\" : \"c4m_insert__comment\",\n \"description\" : \"STREAM :: Comment Insert/Update\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] commented on @node_type | !date\\u003C\\/div\\u003E\\r\\n\\r\\n\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-comment:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] commented on @node_type | !date\\u003C\\/div\\u003E\\n\\n\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-comment:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "4f2e8cba66685b9f190ea1e67c51f351", "score": "0.6721723", "text": "public function getMessages(): array\n {\n return $this->messages;\n }", "title": "" }, { "docid": "4cf3e5e2d91ca13e9075892acff1c16a", "score": "0.67009234", "text": "public function getMessages(): array;", "title": "" }, { "docid": "d57bc00bb4e253fe7210de91887b11b7", "score": "0.66899693", "text": "public function messages(){\n return [];\n }", "title": "" }, { "docid": "4ddf6ba4203c5b1ad630eef79e28e171", "score": "0.6662099", "text": "function _c4m_message_get_messages_as10() {\n return '\n {\n \"name\" : \"c4m_insert__node__wiki_page\",\n \"description\" : \"STREAM :: Wiki Page Insert/Update\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-node:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation | !date\\u003C\\/div\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-node:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation | !date\\u003C\\/div\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "a4ce39ab150d0a10082ec365bb02ddca", "score": "0.6660556", "text": "function get_messages(){ return $this->_messages; }", "title": "" }, { "docid": "680ea39d1120adeffb1c0afdc1ef9a62", "score": "0.6658889", "text": "public function messages()\n {\n return [\n \n ];\n }", "title": "" }, { "docid": "680ea39d1120adeffb1c0afdc1ef9a62", "score": "0.6658889", "text": "public function messages()\n {\n return [\n \n ];\n }", "title": "" }, { "docid": "680ea39d1120adeffb1c0afdc1ef9a62", "score": "0.6658889", "text": "public function messages()\n {\n return [\n \n ];\n }", "title": "" }, { "docid": "680ea39d1120adeffb1c0afdc1ef9a62", "score": "0.6658889", "text": "public function messages()\n {\n return [\n \n ];\n }", "title": "" }, { "docid": "1fc26a2023a8cedd63f4e0b40bda684f", "score": "0.665808", "text": "function _c4m_message_get_messages_mt51() {\n return '\n {\n \"name\" : \"c4m_notify_editors_group_content_updated\",\n \"description\" : \"SUBSCRIPTION :: MT51 :: Your Content Edited by Admin (to original author/editors)\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYour @content_type_name @content_node_title was updated\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E edited the following @content_type_name: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003ETake a look at the latest changes by accessing this @content_type_name\\u003Cbr \\/\\u003E\\r\\n\\u003Ca href=\\u0022!content_node_url\\u0022\\u003ERead more...\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EYou\\u0027re receiving this e-mail because you\\u0027re subscribed to the @content_type_name \\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E\\u0026nbsp;- if you no longer wish to receive notifications from this @content_type_name, please \\u003Ca href=\\u0022!unsubscribe_content_url\\u0022\\u003Eunsubscribe.\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E edited the following @content_type_name: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003ETake a look at the latest changes by accessing this @content_type_name\\u003Cbr \\/\\u003E\\n\\u003Ca href=\\u0022!content_node_url\\u0022\\u003ERead more...\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EYou\\u0027re receiving this e-mail because you\\u0027re subscribed to the @content_type_name \\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E\\u0026nbsp;- if you no longer wish to receive notifications from this @content_type_name, please \\u003Ca href=\\u0022!unsubscribe_content_url\\u0022\\u003Eunsubscribe.\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\n\"\n },\n {\n \"value\" : \"\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E, @content_type_name was updated by \\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E, @content_type_name was updated by \\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E\"\n }\n ]\n },\n \"message_header\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\r\\n \\r\\n\\u003Cp\\u003EDiscover the latest updates you\\u0027re subscribed to!\\u003C\\/p\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\n \\n\\u003Cp\\u003EDiscover the latest updates you\\u0027re subscribed to!\\u003C\\/p\\u003E\"\n }\n ]\n },\n \"message_footer\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYou are receiving these updates because you are subscribed to capacity4dev notification message(s) - to manage these, update your \\u003Ca href=\\u0022!user_settings_url\\u0022\\u003Enotification settings\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EYou are receiving these updates because you are subscribed to capacity4dev notification message(s) - to manage these, update your \\u003Ca href=\\u0022!user_settings_url\\u0022\\u003Enotification settings\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "2616408e1c9a62a5f123e55070e28fb9", "score": "0.66313994", "text": "public function messages()\n {\n\n return [];\n }", "title": "" }, { "docid": "b703412269bf7f844abcb62e0023e124", "score": "0.6611358", "text": "static function messages()\n {\n return [];\n }", "title": "" }, { "docid": "e4a271e29de2ff9929e49630ddc33a65", "score": "0.65929925", "text": "public function messages() {\n return [];\n }", "title": "" }, { "docid": "4046c9de703e7a764898356cdeb4e4c4", "score": "0.6577059", "text": "public function messages()\n {\n return [];\n }", "title": "" }, { "docid": "4046c9de703e7a764898356cdeb4e4c4", "score": "0.6577059", "text": "public function messages()\n {\n return [];\n }", "title": "" }, { "docid": "4046c9de703e7a764898356cdeb4e4c4", "score": "0.6577059", "text": "public function messages()\n {\n return [];\n }", "title": "" }, { "docid": "4046c9de703e7a764898356cdeb4e4c4", "score": "0.6577059", "text": "public function messages()\n {\n return [];\n }", "title": "" }, { "docid": "4046c9de703e7a764898356cdeb4e4c4", "score": "0.6577059", "text": "public function messages()\n {\n return [];\n }", "title": "" }, { "docid": "4046c9de703e7a764898356cdeb4e4c4", "score": "0.6577059", "text": "public function messages()\n {\n return [];\n }", "title": "" }, { "docid": "4046c9de703e7a764898356cdeb4e4c4", "score": "0.6577059", "text": "public function messages()\n {\n return [];\n }", "title": "" }, { "docid": "4046c9de703e7a764898356cdeb4e4c4", "score": "0.6577059", "text": "public function messages()\n {\n return [];\n }", "title": "" }, { "docid": "c90623be76f42a8ce0ad2e99c96b4862", "score": "0.65666187", "text": "function _c4m_message_get_messages_as4() {\n return '\n {\n \"name\" : \"c4m_insert__node__document\",\n \"description\" : \"STREAM :: Document Insert/Update\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"module\" : \"c4m_message\",\n \"arguments\" : null,\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-node:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation | !date\\u003C\\/div\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-node:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation | !date\\u003C\\/div\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "2e95c5186a1d643596aafbcd50efb260", "score": "0.65566146", "text": "public function messages()\n {\n return [\n //\n ];\n }", "title": "" }, { "docid": "2e95c5186a1d643596aafbcd50efb260", "score": "0.65566146", "text": "public function messages()\n {\n return [\n //\n ];\n }", "title": "" }, { "docid": "2e95c5186a1d643596aafbcd50efb260", "score": "0.65566146", "text": "public function messages()\n {\n return [\n //\n ];\n }", "title": "" }, { "docid": "2e95c5186a1d643596aafbcd50efb260", "score": "0.65566146", "text": "public function messages()\n {\n return [\n //\n ];\n }", "title": "" }, { "docid": "2e95c5186a1d643596aafbcd50efb260", "score": "0.65566146", "text": "public function messages()\n {\n return [\n //\n ];\n }", "title": "" }, { "docid": "2e95c5186a1d643596aafbcd50efb260", "score": "0.65566146", "text": "public function messages()\n {\n return [\n //\n ];\n }", "title": "" }, { "docid": "2e95c5186a1d643596aafbcd50efb260", "score": "0.65566146", "text": "public function messages()\n {\n return [\n //\n ];\n }", "title": "" }, { "docid": "2e95c5186a1d643596aafbcd50efb260", "score": "0.65566146", "text": "public function messages()\n {\n return [\n //\n ];\n }", "title": "" }, { "docid": "2e95c5186a1d643596aafbcd50efb260", "score": "0.65566146", "text": "public function messages()\n {\n return [\n //\n ];\n }", "title": "" }, { "docid": "905aae8319a63f88610e1dffe1a0ab27", "score": "0.6546", "text": "public function messages() {\n return [\n ];\n }", "title": "" }, { "docid": "c9091b644fd48f56b50f8343ed95b5f9", "score": "0.65459204", "text": "public function jsonSerialize() {\n return $this->messages;\n }", "title": "" }, { "docid": "6a44ae08260f20af33aeffb29f2068af", "score": "0.65220684", "text": "protected function messages()\n {\n return [];\n }", "title": "" }, { "docid": "0c2f58806cc9a63c64642bb867576f5d", "score": "0.6516264", "text": "function _c4m_message_get_messages_as8() {\n return '\n {\n \"name\" : \"c4m_insert__node__photoalbum\",\n \"description\" : \"STREAM :: Photo Album Insert/Update\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-node:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation | !date\\u003C\\/div\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-node:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation | !date\\u003C\\/div\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "9769cab00f2ed54bd65fb47eb033ba17", "score": "0.6492557", "text": "function _c4m_message_get_messages_mt46() {\n return '\n {\n \"name\" : \"c4m_group_content_updated\",\n \"description\" : \"SUBSCRIPTION :: MT46 :: Group Content Updated\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"module\" : \"c4m_message\",\n \"arguments\" : null,\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003E@content_type_name @content_node_title from @group_node_title got updated\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E updated the following @content_type_name: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cem\\u003E@node_teaser_body \\u003C\\/em\\u003E\\u003Cbr \\/\\u003E\\r\\n\\u003Ca href=\\u0022!content_node_url\\u0022\\u003ERead more...\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EYou\\u0027re receiving this e-mail because you\\u0027re subscribed to \\u003Ca href=\\u0022!group_dashboard_url\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E - if you no longer wish to receive notifications from this @group_node_type, please \\u003Ca href=\\u0022!unsubscribe_group_url\\u0022\\u003Eunsubscribe.\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E updated the following @content_type_name: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cem\\u003E@node_teaser_body \\u003C\\/em\\u003E\\u003Cbr \\/\\u003E\\n\\u003Ca href=\\u0022!content_node_url\\u0022\\u003ERead more...\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EYou\\u0027re receiving this e-mail because you\\u0027re subscribed to \\u003Ca href=\\u0022!group_dashboard_url\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E - if you no longer wish to receive notifications from this @group_node_type, please \\u003Ca href=\\u0022!unsubscribe_group_url\\u0022\\u003Eunsubscribe.\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\n\"\n },\n {\n \"value\" : \"\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E, @content_type_name updated by \\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E, @content_type_name updated by \\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E\"\n }\n ]\n },\n \"message_header\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\r\\n \\r\\n\\u003Cp\\u003EDiscover the latest updates you\\u0027re subscribed to!\\u003C\\/p\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\n \\n\\u003Cp\\u003EDiscover the latest updates you\\u0027re subscribed to!\\u003C\\/p\\u003E\"\n }\n ]\n },\n \"message_footer\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYou are receiving these updates because you are subscribed to capacity4dev notification message(s) - to manage these, update your \\u003Ca href=\\u0022!user_settings_url\\u0022\\u003Enotification settings\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EYou are receiving these updates because you are subscribed to capacity4dev notification message(s) - to manage these, update your \\u003Ca href=\\u0022!user_settings_url\\u0022\\u003Enotification settings\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "c4a277eb7d6803e3096b38b39f0f2d6e", "score": "0.64921355", "text": "public function messages()\n {\n return [\n ];\n }", "title": "" }, { "docid": "c4a277eb7d6803e3096b38b39f0f2d6e", "score": "0.64921355", "text": "public function messages()\n {\n return [\n ];\n }", "title": "" }, { "docid": "b4c0cf748be1f2c2c33294e2ea282105", "score": "0.6491407", "text": "function _c4m_message_get_messages_mt54() {\n return '\n {\n \"name\" : \"c4m_notify_subscribe_content_of_interest\",\n \"description\" : \"SUBSCRIPTION :: MT54 :: Content Published about Term of Interest\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003ENew @content_type_name about @term_name\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003ENew @content_type_name about @term_name\\u003C\\/p\\u003E\\n\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E @event_action the following @content_type_name: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cem\\u003E@node_teaser_body \\u003C\\/em\\u003E\\u003Cbr \\/\\u003E\\r\\n\\u003Ca href=\\u0022!content_node_url\\u0022\\u003ERead more...\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EYou\\u0027re receiving this e-mail because you\\u0027re subscribed to \\u003Cstrong\\u003E@term_name\\u003C\\/strong\\u003E - if you no longer wish to receive notifications related to this topic, please \\u003Ca href=\\u0022!unsubscribe_term_url\\u0022\\u003Eunsubscribe.\\u003C\\/a\\u003E\\u003C\\/p\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E @event_action the following @content_type_name: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cem\\u003E@node_teaser_body \\u003C\\/em\\u003E\\u003Cbr \\/\\u003E\\n\\u003Ca href=\\u0022!content_node_url\\u0022\\u003ERead more...\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EYou\\u0027re receiving this e-mail because you\\u0027re subscribed to \\u003Cstrong\\u003E@term_name\\u003C\\/strong\\u003E - if you no longer wish to receive notifications related to this topic, please \\u003Ca href=\\u0022!unsubscribe_term_url\\u0022\\u003Eunsubscribe.\\u003C\\/a\\u003E\\u003C\\/p\\u003E\"\n },\n {\n \"value\" : \"\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E, @content_type_name @event_action by \\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E, @content_type_name @event_action by \\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E\"\n }\n ]\n },\n \"message_header\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\r\\n \\r\\n\\u003Cp\\u003EDiscover the latest updates you\\u0027re subscribed to!\\u003C\\/p\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\n \\n\\u003Cp\\u003EDiscover the latest updates you\\u0027re subscribed to!\\u003C\\/p\\u003E\"\n }\n ]\n },\n \"message_footer\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYou are receiving these updates because you are subscribed to capacity4dev notification message(s) - to manage these, update your \\u003Ca href=\\u0022!user_settings_url\\u0022\\u003Enotification settings\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EYou are receiving these updates because you are subscribed to capacity4dev notification message(s) - to manage these, update your \\u003Ca href=\\u0022!user_settings_url\\u0022\\u003Enotification settings\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "20c67c810fbd5e75827951cbe75b5381", "score": "0.64900404", "text": "public function messages()\n\t{\n\t\treturn [];\n\t}", "title": "" }, { "docid": "1aa95de786f27d0916dfcc6a39249166", "score": "0.6480757", "text": "function _c4m_message_get_messages_as7() {\n return '\n {\n \"name\" : \"c4m_insert__node__photo\",\n \"description\" : \"STREAM :: Photo Insert/Update\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-node:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation @photoalbum | !date\\u003C\\/div\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-node:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation @photoalbum | !date\\u003C\\/div\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "da1649249f5cc6d4e36db5a3c1bb0cb2", "score": "0.64743537", "text": "protected function messages () {\n return [];\n }", "title": "" }, { "docid": "061a4be9b0c43b70632745a01d00c01a", "score": "0.64626765", "text": "public function messages(): array\n {\n return [\n //\n ];\n }", "title": "" }, { "docid": "f9dccfcf3e98b581ea68085c3478a682", "score": "0.6460355", "text": "public function messages() :array\n {\n return [\n //\n ];\n }", "title": "" }, { "docid": "e5767abb5bf2937c0cd833e9f99afcd3", "score": "0.6459661", "text": "function _c4m_message_get_messages_mt29() {\n return '\n {\n \"name\" : \"c4m_group_unpublished\",\n \"description\" : \"NOTIFY :: MT29 :: Group Unpublished\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYour @group_node_type\\u0026nbsp;@group_node_title\\u0026nbsp;is no longer published\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u0026nbsp;\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u0026nbsp;\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @group_admin_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\r\\n\\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E\\u0026nbsp;reverted back to Draft status.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E@event_user_full_name\\u0026nbsp;updated the status of this @group_node_type from @group_former_status to Draft.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EYou can consult \\u003Ca href=\\u0022!help_section_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Ethis help section\\u003C\\/a\\u003E to find out more about @group_node_type statuses and what they imply.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\r\\nThe capacity4dev team\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @group_admin_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\n\\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E\\u0026nbsp;reverted back to Draft status.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E@event_user_full_name\\u0026nbsp;updated the status of this @group_node_type from @group_former_status to Draft.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EYou can consult \\u003Ca href=\\u0022!help_section_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Ethis help section\\u003C\\/a\\u003E to find out more about @group_node_type statuses and what they imply.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\nThe capacity4dev team\\u003C\\/p\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "bfdc80cc32fdd019c282350502dee8a0", "score": "0.6458993", "text": "function _c4m_message_get_messages_mt25() {\n return '\n {\n \"name\" : \"c4m_new_content_published\",\n \"description\" : \"SUBSCRIPTION :: MT25 :: New Group Content Published\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003ENew @content_type_name from @group_node_title\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E @event_action\\u0026nbsp;the following @content_type_name: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cem\\u003E@node_teaser_body \\u003C\\/em\\u003E\\u003Cbr \\/\\u003E\\r\\n\\u003Ca href=\\u0022!content_node_url\\u0022\\u003ERead more...\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EYou\\u0027re receiving this e-mail because you\\u0027re subscribed to \\u003Ca href=\\u0022!group_dashboard_url\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E\\u0026nbsp;- if you no longer wish to receive notifications from this @group_node_type, please \\u003Ca href=\\u0022!unsubscribe_group_url\\u0022\\u003Eunsubscribe.\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E @event_action\\u0026nbsp;the following @content_type_name: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cem\\u003E@node_teaser_body \\u003C\\/em\\u003E\\u003Cbr \\/\\u003E\\n\\u003Ca href=\\u0022!content_node_url\\u0022\\u003ERead more...\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EYou\\u0027re receiving this e-mail because you\\u0027re subscribed to \\u003Ca href=\\u0022!group_dashboard_url\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E\\u0026nbsp;- if you no longer wish to receive notifications from this @group_node_type, please \\u003Ca href=\\u0022!unsubscribe_group_url\\u0022\\u003Eunsubscribe.\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\n\"\n },\n {\n \"value\" : \"\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E, @content_type_name @event_action by \\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E, @content_type_name @event_action by \\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E\"\n }\n ]\n },\n \"message_header\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\r\\n \\r\\n\\u003Cp\\u003EDiscover the latest updates you\\u0027re subscribed to!\\u003C\\/p\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\n \\n\\u003Cp\\u003EDiscover the latest updates you\\u0027re subscribed to!\\u003C\\/p\\u003E\"\n }\n ]\n },\n \"message_footer\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYou are receiving these updates because you are subscribed to capacity4dev notification message(s) - to manage these, update your \\u003Ca href=\\u0022!user_settings_url\\u0022\\u003Enotification settings\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EYou are receiving these updates because you are subscribed to capacity4dev notification message(s) - to manage these, update your \\u003Ca href=\\u0022!user_settings_url\\u0022\\u003Enotification settings\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "f97b1031f93d77d51424ef867ac7f346", "score": "0.6452748", "text": "function _c4m_message_get_messages_mt55() {\n return '\n {\n \"name\" : \"c4m_content_updated\",\n \"description\" : \"SUBSCRIPTION :: MT55 :: Content Updated\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"module\" : \"c4m_message\",\n \"arguments\" : null,\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003E@content_type_name @content_node_title got updated\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"filtered_html\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E updated the following @content_type_name: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cem\\u003E@node_teaser_body \\u003C\\/em\\u003E\\u003Cbr \\/\\u003E\\r\\n\\u003Ca href=\\u0022!content_node_url\\u0022\\u003ERead more...\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EYou\\u0027re receiving this e-mail because you\\u0027re subscribed to \\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E - if you no longer wish to receive notifications from this @content_type_name, please \\u003Ca href=\\u0022!unsubscribe_url\\u0022\\u003Eunsubscribe.\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E updated the following @content_type_name: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cem\\u003E@node_teaser_body \\u003C\\/em\\u003E\\u003Cbr \\/\\u003E\\n\\u003Ca href=\\u0022!content_node_url\\u0022\\u003ERead more...\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EYou\\u0027re receiving this e-mail because you\\u0027re subscribed to \\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E - if you no longer wish to receive notifications from this @content_type_name, please \\u003Ca href=\\u0022!unsubscribe_url\\u0022\\u003Eunsubscribe.\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "cf2c9c6cad852b04b2a96c89860468f9", "score": "0.643984", "text": "function _c4m_message_get_messages_as6() {\n return '\n {\n \"name\" : \"c4m_insert__node__news\",\n \"description\" : \"STREAM :: News Insert/Update\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-node:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation | !date\\u003C\\/div\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-node:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation | !date\\u003C\\/div\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "41f995f064be66b13904ee15581cc75b", "score": "0.6435561", "text": "function _c4m_message_get_messages_mt28() {\n return '\n {\n \"name\" : \"c4m_group_published\",\n \"description\" : \"NOTIFY :: MT28 :: Group Published\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYour @group_node_type\\u0026nbsp;@group_node_title\\u0026nbsp;is published\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u0026nbsp;\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u0026nbsp;\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @group_admin_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\r\\nCongratulations!\\u0026nbsp;\\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E is now published.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E@event_user_full_name updated the status of this @group_node_type from Draft to Published.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EYou can consult \\u003Ca href=\\u0022!help_section_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Ethis help section\\u003C\\/a\\u003E to find out more about @group_node_type statuses and what they imply.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\r\\nThe capacity4dev team\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @group_admin_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\nCongratulations!\\u0026nbsp;\\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E is now published.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E@event_user_full_name updated the status of this @group_node_type from Draft to Published.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EYou can consult \\u003Ca href=\\u0022!help_section_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Ethis help section\\u003C\\/a\\u003E to find out more about @group_node_type statuses and what they imply.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\nThe capacity4dev team\\u003C\\/p\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "045cb93ed98147750ad3925bc425ea8a", "score": "0.64246005", "text": "function _c4m_message_get_messages_as9() {\n return '\n {\n \"name\" : \"c4m_insert__node__share\",\n \"description\" : \"STREAM :: Share Insert/Update\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation \\u003Cspan class=\\u0022share__group-info\\u0022\\u003Eto the !group\\u003C\\/span\\u003E\\u003C\\/div\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation \\u003Cspan class=\\u0022share__group-info\\u0022\\u003Eto the !group\\u003C\\/span\\u003E\\u003C\\/div\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "abad41a6e6190e8699f6adafe6c6e6f6", "score": "0.64227086", "text": "function _c4m_message_get_messages_mt13() {\n return '\n {\n \"name\" : \"c4m_welcome_to_group\",\n \"description\" : \"NOTIFY :: MT13 :: Welcome User to Group\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EWelcome to @group_node_title\\u0026nbsp;\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @member_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\r\\nThank you for joining \\u003Cstrong\\u003E\\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E at [site:name].\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E@group_welcome_message\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\r\\n\\u003Ca href=\\u0022!go_public_profile_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@go_full_name\\u003C\\/a\\u003E,\\u003Cbr \\/\\u003E\\r\\n@group_node_type Administrator - @group_node_title\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @member_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\nThank you for joining \\u003Cstrong\\u003E\\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E at [site:name].\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E@group_welcome_message\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\n\\u003Ca href=\\u0022!go_public_profile_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@go_full_name\\u003C\\/a\\u003E,\\u003Cbr \\/\\u003E\\n@group_node_type Administrator - @group_node_title\\u003C\\/p\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "a00f8c457498f1c0b720c98edc6efa0a", "score": "0.6415559", "text": "function _c4m_message_get_messages_mt22() {\n return '\n {\n \"name\" : \"c4m_notify_subscribers_new_comment\",\n \"description\" : \"SUBSCRIPTION :: MT22 :: New Comment (reply) after Comment\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYou received a reply to your comment\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E added a new comment on the following @comment_content_type: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!comment_content_url\\u0022\\u003E@comment_content_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cem\\u003E@comment_teaser_body \\u003C\\/em\\u003E\\u003Cbr \\/\\u003E\\r\\n\\u003Ca href=\\u0022!comment_url\\u0022\\u003ERead more...\\u003C\\/a\\u003E or directly \\u003Ca href=\\u0022!comment_reply_url\\u0022\\u003Ereply to this comment\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EYou\\u0027re receiving this e-mail because a new comment was made - if you no longer wish to receive notifications of comments on this content, please \\u003Ca href=\\u0022!unsubscribe_content_comments_url\\u0022\\u003Eunsubscribe\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E added a new comment on the following @comment_content_type: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!comment_content_url\\u0022\\u003E@comment_content_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cem\\u003E@comment_teaser_body \\u003C\\/em\\u003E\\u003Cbr \\/\\u003E\\n\\u003Ca href=\\u0022!comment_url\\u0022\\u003ERead more...\\u003C\\/a\\u003E or directly \\u003Ca href=\\u0022!comment_reply_url\\u0022\\u003Ereply to this comment\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EYou\\u0027re receiving this e-mail because a new comment was made - if you no longer wish to receive notifications of comments on this content, please \\u003Ca href=\\u0022!unsubscribe_content_comments_url\\u0022\\u003Eunsubscribe\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\\n\"\n },\n {\n \"value\" : \" \\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E replied to your comment on the following @comment_content_type: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!comment_content_url\\u0022\\u003E@comment_content_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \" \\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E replied to your comment on the following @comment_content_type: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!comment_content_url\\u0022\\u003E@comment_content_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E\"\n }\n ]\n },\n \"message_header\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\r\\n \\r\\n\\u003Cp\\u003EDiscover the latest updates you\\u0027re subscribed to!\\u003C\\/p\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\n \\n\\u003Cp\\u003EDiscover the latest updates you\\u0027re subscribed to!\\u003C\\/p\\u003E\"\n }\n ]\n },\n \"message_footer\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYou are receiving these updates because you are subscribed to capacity4dev notification message(s) - to manage these, update your \\u003Ca href=\\u0022!user_settings_url\\u0022\\u003Enotification settings\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EYou are receiving these updates because you are subscribed to capacity4dev notification message(s) - to manage these, update your \\u003Ca href=\\u0022!user_settings_url\\u0022\\u003Enotification settings\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "307c026e80621d3bcdacf846997c42a3", "score": "0.6414079", "text": "function _c4m_message_get_messages_mt31() {\n return '\n {\n \"name\" : \"c4m_group_republished\",\n \"description\" : \"NOTIFY :: MT31 :: Group Re-published\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"module\" : \"c4m_message\",\n \"arguments\" : null,\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYour @group_node_type\\u0026nbsp;@group_node_title\\u0026nbsp;is published once again\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u0026nbsp;\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u0026nbsp;\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @group_admin_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\r\\n\\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E was published once again.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E@event_user_full_name\\u0026nbsp;updated the status of this @group_node_type from @group_former_status to Published.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EYou can consult \\u003Ca href=\\u0022!help_section_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Ethis help section\\u003C\\/a\\u003E to find out more about @group_node_type statuses and what they imply.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\r\\nThe capacity4dev team\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @group_admin_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\n\\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E was published once again.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E@event_user_full_name\\u0026nbsp;updated the status of this @group_node_type from @group_former_status to Published.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EYou can consult \\u003Ca href=\\u0022!help_section_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Ethis help section\\u003C\\/a\\u003E to find out more about @group_node_type statuses and what they imply.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\nThe capacity4dev team\\u003C\\/p\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "3ffc605bd02545bc654fa2bb62dae4f4", "score": "0.6413316", "text": "function _c4m_message_get_messages_as5() {\n return '\n {\n \"name\" : \"c4m_insert__node__event\",\n \"description\" : \"STREAM :: Event Insert/Update\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-node:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation | !date\\u003C\\/div\\u003E\\r\\n\\r\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Ch2\\u003E\\u003Ca href=\\u0022[message:field-node:url]\\u0022\\u003E[message:field-node:title]\\u003C\\/a\\u003E\\u003C\\/h2\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--operator\\u0022\\u003E!icon [message:user:url-with-name] @operation | !date\\u003C\\/div\\u003E\\n\\n\\u003Cdiv class=\\u0022activity-stream--content\\u0022\\u003E!content\\u003C\\/div\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "2438e4f9adf3ac3af5bd326a9648c583", "score": "0.6411245", "text": "function _c4m_message_get_messages_mt32() {\n return '\n {\n \"name\" : \"c4m_group_soft_deleted\",\n \"description\" : \"NOTIFY :: MT32 :: Group Soft-Deleted\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EThe @group_node_type\\u0026nbsp;@group_node_title was\\u0026nbsp;deleted\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u0026nbsp;\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u0026nbsp;\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear administrator,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\r\\n\\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E has been deleted.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E@event_user_full_name updated the status of this @group_node_type from @group_former_status to Deleted.\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear administrator,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\n\\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E has been deleted.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E@event_user_full_name updated the status of this @group_node_type from @group_former_status to Deleted.\\u003C\\/p\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "874368454cd6eb852753b835199de8d8", "score": "0.6398442", "text": "function _c4m_message_get_messages_mt53() {\n return '\n {\n \"name\" : \"c4m_new_content_share_published\",\n \"description\" : \"SUBSCRIPTION :: MT53 :: Group Content Shared\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003ENew @content_type_name was shared to @group_node_title\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E @event_action the following @content_type_name from \\u003Ca href=\\u0022!original_group_dashboard_url\\u0022\\u003E@original_group_node_title\\u003C\\/a\\u003E: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cem\\u003E@node_teaser_body\\u003C\\/em\\u003E\\u003Cbr \\/\\u003E\\r\\n\\u003Ca href=\\u0022!content_node_url\\u0022\\u003ERead more...\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EYou\\u0027re receiving this e-mail because you\\u0027re subscribed to \\u003Ca href=\\u0022!group_dashboard_url\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E - if you no longer wish to receive notifications from this @group_node_type, please \\u003Ca href=\\u0022!unsubscribe_group_url\\u0022\\u003Eunsubscribe.\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E @event_action the following @content_type_name from \\u003Ca href=\\u0022!original_group_dashboard_url\\u0022\\u003E@original_group_node_title\\u003C\\/a\\u003E: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cem\\u003E@node_teaser_body\\u003C\\/em\\u003E\\u003Cbr \\/\\u003E\\n\\u003Ca href=\\u0022!content_node_url\\u0022\\u003ERead more...\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EYou\\u0027re receiving this e-mail because you\\u0027re subscribed to \\u003Ca href=\\u0022!group_dashboard_url\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E - if you no longer wish to receive notifications from this @group_node_type, please \\u003Ca href=\\u0022!unsubscribe_group_url\\u0022\\u003Eunsubscribe.\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\n\"\n },\n {\n \"value\" : \"\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E, @content_type_name was shared to \\u003Ca href=\\u0022!group_dashboard_url\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E by \\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E, @content_type_name was shared to \\u003Ca href=\\u0022!group_dashboard_url\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E by \\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E\"\n }\n ]\n },\n \"message_header\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\r\\n \\r\\n\\u003Cp\\u003EDiscover the latest updates you\\u0027re subscribed to!\\u003C\\/p\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\n \\n\\u003Cp\\u003EDiscover the latest updates you\\u0027re subscribed to!\\u003C\\/p\\u003E\"\n }\n ]\n },\n \"message_footer\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYou are receiving these updates because you are subscribed to capacity4dev notification message(s) - to manage these, update your \\u003Ca href=\\u0022!user_settings_url\\u0022\\u003Enotification settings\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EYou are receiving these updates because you are subscribed to capacity4dev notification message(s) - to manage these, update your \\u003Ca href=\\u0022!user_settings_url\\u0022\\u003Enotification settings\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "b87fa344d86b4abcf1acaebcb91433f6", "score": "0.6394808", "text": "public function getMessages(): array\n {\n return $this->messages;\n }", "title": "" }, { "docid": "b87fa344d86b4abcf1acaebcb91433f6", "score": "0.6394808", "text": "public function getMessages(): array\n {\n return $this->messages;\n }", "title": "" }, { "docid": "b87fa344d86b4abcf1acaebcb91433f6", "score": "0.6394808", "text": "public function getMessages(): array\n {\n return $this->messages;\n }", "title": "" }, { "docid": "d9d6a6d49d6eb518efa84ffc9004b555", "score": "0.6383747", "text": "function _c4m_message_get_messages_mt36() {\n return '\n {\n \"name\" : \"c4m_group_admin_demoted\",\n \"description\" : \"NOTIFY :: MT36 :: Group Admin Demoted\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYou are no longer administrator for @group_node_type: @group_node_title\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E \\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E \\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @member_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EYour administration rights for the @group_node_type \\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E have been removed.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EIf you have any questions about your new role within this @group_node_type, please feel free to \\u003Ca href=\\u0022!event_user_message_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Econtact me\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E@event_user_full_name\\u003Cbr \\/\\u003E\\r\\n@group_node_type Administrator, @group_node_title\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @member_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EYour administration rights for the @group_node_type \\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E have been removed.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EIf you have any questions about your new role within this @group_node_type, please feel free to \\u003Ca href=\\u0022!event_user_message_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Econtact me\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E@event_user_full_name\\u003Cbr \\/\\u003E\\n@group_node_type Administrator, @group_node_title\\u003C\\/p\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "ada39de4fff8d098a3c02ba39b8815d9", "score": "0.638208", "text": "public function message()\n {\n if($msg = $this->get('msg')) {\n echo json_encode(['t' => Lang::T($msg)]);\n }\n }", "title": "" }, { "docid": "844aeddf5a5ab8893b9cdec0558be5be", "score": "0.6374724", "text": "function _c4m_message_get_messages_mt14() {\n return '\n {\n \"name\" : \"c4m_new_member_joined\",\n \"description\" : \"NOTIFY :: MT14 :: New Member Joined\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"module\" : \"c4m_message\",\n \"arguments\" : null,\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EA new member joined @group_node_title \\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @group_admin_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\r\\nA new member joined \\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E at [site:name].\\u003Cbr \\/\\u003E\\r\\nPlease find their details below:\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cstrong\\u003E@new_member_full_name\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E@new_member_organisation, @new_member_organisation_type\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EBased in @new_member_country\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EExpertise: @new_member_expertise\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EAbout: @new_member_about_me\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EView this member\\u0027s \\u003Ca href=\\u0022!new_member_public_profile_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Eprofile\\u003C\\/a\\u003E at [site:name].\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @group_admin_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\nA new member joined \\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E at [site:name].\\u003Cbr \\/\\u003E\\nPlease find their details below:\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cstrong\\u003E@new_member_full_name\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E@new_member_organisation, @new_member_organisation_type\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EBased in @new_member_country\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EExpertise: @new_member_expertise\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EAbout: @new_member_about_me\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EView this member\\u0027s \\u003Ca href=\\u0022!new_member_public_profile_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Eprofile\\u003C\\/a\\u003E at [site:name].\\u003C\\/p\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "82a589c3dd69933391054ec1ffe4d006", "score": "0.6361182", "text": "function _c4m_message_get_messages_mt30() {\n return '\n {\n \"name\" : \"c4m_group_archived\",\n \"description\" : \"NOTIFY :: MT30 :: Group Archived\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYour @group_node_type @group_node_title is archived\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E \\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E \\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @group_admin_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\r\\n\\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E is now archived.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E@event_user_full_name updated the status of this @group_node_type from @group_former_status to Archived.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EYou can consult \\u003Ca href=\\u0022!help_section_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Ethis help section\\u003C\\/a\\u003E to find out more about @group_node_type statuses and what they imply.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\r\\nThe capacity4dev team\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @group_admin_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\n\\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E is now archived.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E@event_user_full_name updated the status of this @group_node_type from @group_former_status to Archived.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EYou can consult \\u003Ca href=\\u0022!help_section_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Ethis help section\\u003C\\/a\\u003E to find out more about @group_node_type statuses and what they imply.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\nThe capacity4dev team\\u003C\\/p\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "4e8893425c5bedc73fff5a13151ae58a", "score": "0.63506144", "text": "function _c4m_message_get_messages_mt23() {\n return '\n {\n \"name\" : \"c4m_notify_content_recommendation\",\n \"description\" : \"SUBSCRIPTION :: MT23 :: New Recommendation on Content\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYour @content_type_name\\u0026nbsp;was recommended\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E recommended your @content_type_name: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cem\\u003E@node_teaser_body \\u003C\\/em\\u003E\\u003Cbr \\/\\u003E\\r\\n\\u003Ca href=\\u0022!content_node_url\\u0022\\u003ERead more...\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003ETotal recommendations: @content_recommend_count\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EYou\\u0027re receiving this e-mail because another member recommended your post - if you no longer wish to receive notifications when your content is recommended, please \\u003Ca href=\\u0022!user_unsubscribe_recommend_url\\u0022\\u003Eunsubscribe.\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E recommended your @content_type_name: \\u003Cstrong\\u003E\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cem\\u003E@node_teaser_body \\u003C\\/em\\u003E\\u003Cbr \\/\\u003E\\n\\u003Ca href=\\u0022!content_node_url\\u0022\\u003ERead more...\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003ETotal recommendations: @content_recommend_count\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EYou\\u0027re receiving this e-mail because another member recommended your post - if you no longer wish to receive notifications when your content is recommended, please \\u003Ca href=\\u0022!user_unsubscribe_recommend_url\\u0022\\u003Eunsubscribe.\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\n\"\n },\n {\n \"value\" : \"\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E, @content_type_name recommended by \\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Ca href=\\u0022!content_node_url\\u0022\\u003E@content_node_title\\u003C\\/a\\u003E, @content_type_name recommended by \\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E\"\n }\n ]\n },\n \"message_header\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\r\\n \\r\\n\\u003Cp\\u003EDiscover the latest updates you\\u0027re subscribed to!\\u003C\\/p\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @user_full_name,\\u003C\\/p\\u003E\\n \\n\\u003Cp\\u003EDiscover the latest updates you\\u0027re subscribed to!\\u003C\\/p\\u003E\"\n }\n ]\n },\n \"message_footer\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYou are receiving these updates because you are subscribed to capacity4dev notification message(s) - to manage these, update your \\u003Ca href=\\u0022!user_settings_url\\u0022\\u003Enotification settings\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EYou are receiving these updates because you are subscribed to capacity4dev notification message(s) - to manage these, update your \\u003Ca href=\\u0022!user_settings_url\\u0022\\u003Enotification settings\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "bda072ab7c3c5a7c5a933d2049a83a59", "score": "0.63062006", "text": "public function getMessagesList()\n {\n $list = array();\n $data = parent::getAll(Cible_Controller_Action::getDefaultEditLanguage());\n\n foreach ($data as $message)\n $list[$message[$this->_dataId]] = $message['MAI_Title'];\n\n return $list;\n }", "title": "" }, { "docid": "8e5dc47483dec3526a0d1470be2f174b", "score": "0.62979347", "text": "public function getMessages()\n {\n return $this->messages;\n }", "title": "" }, { "docid": "8e5dc47483dec3526a0d1470be2f174b", "score": "0.62979347", "text": "public function getMessages()\n {\n return $this->messages;\n }", "title": "" }, { "docid": "8e5dc47483dec3526a0d1470be2f174b", "score": "0.62979347", "text": "public function getMessages()\n {\n return $this->messages;\n }", "title": "" }, { "docid": "8e5dc47483dec3526a0d1470be2f174b", "score": "0.62979347", "text": "public function getMessages()\n {\n return $this->messages;\n }", "title": "" }, { "docid": "8e5dc47483dec3526a0d1470be2f174b", "score": "0.62979347", "text": "public function getMessages()\n {\n return $this->messages;\n }", "title": "" }, { "docid": "8e5dc47483dec3526a0d1470be2f174b", "score": "0.62979347", "text": "public function getMessages()\n {\n return $this->messages;\n }", "title": "" }, { "docid": "8e5dc47483dec3526a0d1470be2f174b", "score": "0.62979347", "text": "public function getMessages()\n {\n return $this->messages;\n }", "title": "" }, { "docid": "8e5dc47483dec3526a0d1470be2f174b", "score": "0.62979347", "text": "public function getMessages()\n {\n return $this->messages;\n }", "title": "" }, { "docid": "8d6b85b385fd5c6b2ecb13995f593217", "score": "0.6290114", "text": "public function getMessages()\n {\n return $this->Messages;\n }", "title": "" }, { "docid": "ca073b20dccc2e3a130aabeb9a91aa82", "score": "0.62773186", "text": "function _c4m_message_get_messages_mt35() {\n return '\n {\n \"name\" : \"c4m_notify_promoted_member\",\n \"description\" : \"NOTIFY :: MT35 :: Group Admin Promoted\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYou are now administrator for\\u0026nbsp;@group_node_type: @group_node_title\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u0026nbsp;\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u0026nbsp;\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @member_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EYou are now an administrator for the @group_node_type \\u003Ca href=\\u0022!group_dashboard_url\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EDiscover new functionalities and find out how you can administer this @group_node_type by consulting the following \\u003Ca href=\\u0022!help_section_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Ehelp section\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003Eif you have any questions about your role as administrator, please feel free to \\u003Ca href=\\u0022!event_user_message_url\\u0022\\u003Econtact me\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E@event_user_full_name\\u003Cbr \\/\\u003E\\r\\n@group_node_type Administrator, @group_node_title\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @member_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EYou are now an administrator for the @group_node_type \\u003Ca href=\\u0022!group_dashboard_url\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EDiscover new functionalities and find out how you can administer this @group_node_type by consulting the following \\u003Ca href=\\u0022!help_section_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Ehelp section\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003Eif you have any questions about your role as administrator, please feel free to \\u003Ca href=\\u0022!event_user_message_url\\u0022\\u003Econtact me\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E@event_user_full_name\\u003Cbr \\/\\u003E\\n@group_node_type Administrator, @group_node_title\\u003C\\/p\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "33a65a214ac06083104b1fc9afb97d01", "score": "0.62672836", "text": "public function getMessages() {\n return $this->messages;\n }", "title": "" }, { "docid": "c2e8861d6159e7fad71f23053be8b03a", "score": "0.62572765", "text": "function _c4m_message_get_messages_mt10() {\n return '\n {\n \"name\" : \"c4m_group_request_submitted\",\n \"description\" : \"NOTIFY :: MT10 :: Group Request Submitted\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003ENew @group_node_type\\u0026nbsp;request\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u0026nbsp;\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u0026nbsp;\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear Administrator,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\r\\n\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E requested a new @group_node_type: \\u003Ca href=\\u0022!group_dashboard_url\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\r\\n\\u003Cstrong\\u003EReason\\u003C\\/strong\\u003E: \\u003Cem\\u003E@message_to_site_admins\\u003C\\/em\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003ETo edit the status of this @group_node_type: \\u003Ca href=\\u0022!pending_groups_overview\\u0022\\u003Emanage pending @group_node_type\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear Administrator,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\n\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E requested a new @group_node_type: \\u003Ca href=\\u0022!group_dashboard_url\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\n\\u003Cstrong\\u003EReason\\u003C\\/strong\\u003E: \\u003Cem\\u003E@message_to_site_admins\\u003C\\/em\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003ETo edit the status of this @group_node_type: \\u003Ca href=\\u0022!pending_groups_overview\\u0022\\u003Emanage pending @group_node_type\\u003C\\/a\\u003E.\\u003C\\/p\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "b569a43ce91f4b91ad13043b52c99f6e", "score": "0.62473935", "text": "public function get_messages() {\n $messages = $this->M_Message->get_all_message();\n $res = array();\n for ($i = 0; $i < sizeof($messages); $i++) {\n $index = $i +1;\n $res[\"Message$index\"] = $messages[$i];\n }\n \n return $res;\n \n\t\t}", "title": "" }, { "docid": "2a4cd895ace8c589a6aaf9f45854c779", "score": "0.62367606", "text": "function _c4m_message_get_messages_mt40() {\n return '\n {\n \"name\" : \"c4m_notify_admins_membership_approved\",\n \"description\" : \"NOTIFY :: MT40 :: Group Membership Approved (to group admins)\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003E@group_node_title:\\u0026nbsp;a new member was accepted\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @group_admin_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E just approved the following user\\u0027s membership request to join our @group_node_type \\u003Cstrong\\u003E\\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E at [site:name]:\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cstrong\\u003E@related_user_full_name\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E@related_user_organisation, (@related_user_organisation_type)\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EBased in @related_user_country\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EExpertise: @related_user_expertise\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EView this member\\u0027s \\u003Ca href=\\u0022!related_user_public_profile_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Eprofile\\u003C\\/a\\u003E at [site:name].\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @group_admin_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!event_user_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@event_user_full_name\\u003C\\/a\\u003E just approved the following user\\u0027s membership request to join our @group_node_type \\u003Cstrong\\u003E\\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E\\u003C\\/strong\\u003E at [site:name]:\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cstrong\\u003E@related_user_full_name\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E@related_user_organisation, (@related_user_organisation_type)\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EBased in @related_user_country\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EExpertise: @related_user_expertise\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EView this member\\u0027s \\u003Ca href=\\u0022!related_user_public_profile_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Eprofile\\u003C\\/a\\u003E at [site:name].\\u003C\\/p\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" }, { "docid": "1d0ece14afdfd0109e52a94d719444a5", "score": "0.62018615", "text": "function _c4m_message_get_messages_mt34() {\n return '\n {\n \"name\" : \"c4m_group_access_change\",\n \"description\" : \"NOTIFY :: MT34 :: Group Access Change\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EYour @group_node_type @group_node_title has new permissions!\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E \\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @group_admin_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E@event_user_full_name updated the permissions of this @group_node_type to @group_permissions.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EYou can consult \\u003Ca href=\\u0022!help_section_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Ethis help section\\u003C\\/a\\u003E to find out more about Group permissions and what they imply.\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\r\\nThe capacity4dev team\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @group_admin_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E@event_user_full_name updated the permissions of this @group_node_type to @group_permissions.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EYou can consult \\u003Ca href=\\u0022!help_section_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Ethis help section\\u003C\\/a\\u003E to find out more about Group permissions and what they imply.\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\nThe capacity4dev team\\u003C\\/p\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n';\n}", "title": "" }, { "docid": "c98093c52e95c59f2e9d9ce9a8a1ae80", "score": "0.61953604", "text": "public function getMessages () {\n return $this->_messages;\n }", "title": "" }, { "docid": "2eeb04c9f252ebd0a151870e555c2848", "score": "0.61933637", "text": "public function actionMessages(){\n\t\tif( !Yii::app()->user->isGuest && Yii::app()->user->knights_name == $_GET['sir']){\n\t\t\t//Load all messages\n\t\t\t/*\n\t\t\t$sql = \"SELECT knights.name as name, knights.avatars_id as avatars_id, messages_last_one_by_user.text as text, messages_last_one_by_user.date as date\n\t\t\tFROM messages_last_one_by_user\n\t\t\tINNER JOIN users ON users.id = messages_last_one_by_user.with_user\n\t\t\tINNER JOIN knights ON knights.users_id = users.id\n\t\t\tWHERE messages_last_one_by_user.users_id = :user_id\";\n\t\t\t$command = Yii::app()->db->createCommand( $sql );\n\t\t\t$command->bindValue( ':user_id', Yii::app()->user->users_id, PDO::PARAM_INT );\n\t\t\t$result = $command->queryAll();\n\t\t\t*/\n\n\t\t\t$this->render('messages', array( 'messages'=>Messages::getMessageLastByUser(Yii::app()->user->users_id)) );\n\t\t}else{\n\t\t\t$this->redirect( '/site/forbidden' );\n\t\t}\n\t}", "title": "" }, { "docid": "b4d1dcc0297bb1dd3841d63c58390c3f", "score": "0.61831856", "text": "public function listMessages() {\n\t\treturn $GLOBALS['whip_messages'];\n\t}", "title": "" }, { "docid": "9cde9a136842024bfebd197dcfeadddf", "score": "0.61822885", "text": "public function messages() {\n return $this->messages;\n }", "title": "" }, { "docid": "2b30ed0ebee3eeb70052f6fb8a8ab3f1", "score": "0.6176313", "text": "public function getMessages() {\r\n return $this->_messages;\r\n }", "title": "" }, { "docid": "fbc9b7b2775195e1939561a3702b1586", "score": "0.61758167", "text": "public function newMessages()\n {\n $result = [];\n $id = Auth::guard('user')->user()->id;\n\n DB::beginTransaction();\n try{\n $messages = Message::where('iddestinatario', '=', $id)->whereNull('visualizado_em')->get();\n\n foreach($messages as $message){\n $result[$message->idemitente]['conteudo'][] = $message->conteudo;\n }\n\n $rows = $this->message->all()->where('iddestinatario', '=', $id);\n\n foreach($rows as $row){\n $row->update(['visualizado_em' => date('Y-m-d H:i:s')]);\n }\n\n DB::commit();\n return ['status' => '00', 'message' => $result];\n }catch(\\Exception $e){\n DB::rollback();\n return ['status' => '01', 'message' => $e->getMessage()];\n }\n }", "title": "" }, { "docid": "f4ddd1614a2e8ee516b8c9ee08152c55", "score": "0.6169703", "text": "public function messages()\n\t{\n\t\treturn $this->messages->get();\n\t}", "title": "" }, { "docid": "90f8fa7793e361dc818237efdc061ee0", "score": "0.61678076", "text": "public static function messages(): array\n {\n }", "title": "" }, { "docid": "11fc26a225165ddd652acb77506a096a", "score": "0.61611205", "text": "function _c4m_message_get_messages_mt15() {\n return '\n {\n \"name\" : \"c4m_new_membership_request\",\n \"description\" : \"NOTIFY :: MT15 :: New Membership request\",\n \"argument_keys\" : [],\n \"argument\" : [],\n \"category\" : \"message_type\",\n \"data\" : {\n \"token options\" : { \"clear\" : 0 },\n \"purge\" : { \"override\" : 0, \"enabled\" : 0, \"quota\" : \"\", \"days\" : \"\" }\n },\n \"language\" : \"\",\n \"arguments\" : null,\n \"module\" : \"c4m_message\",\n \"message_text\" : { \"und\" : [\n {\n \"value\" : \"\\u003Cp\\u003EA new member requested to join @group_node_title\\u0026nbsp;\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\"\n },\n {\n \"value\" : \"\\u003Cp\\u003EDear @group_admin_full_name,\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\r\\nA new member requested to join \\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E at [site:name].\\u003Cbr \\/\\u003E\\r\\n\\u003Ca href=\\u0022!group_pending_member_url\\u0022 rel=\\u0022nofollow\\u0022\\u003EManage this request\\u003C\\/a\\u003E\\u003Cbr \\/\\u003E\\r\\nPlease find their details below:\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Cstrong\\u003E@new_member_full_name\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E@new_member_organisation, @new_member_organisation_type\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EBased in @new_member_country\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EExpertise: @new_member_expertise\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EAbout: @new_member_about_me\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EMessage from this member:\\u003Cbr \\/\\u003E\\r\\n\\u003Cem\\u003E@new_member_request_message\\u003C\\/em\\u003E\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003EView this member\\u0027s \\u003Ca href=\\u0022!new_member_public_profile_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Eprofile\\u003C\\/a\\u003E at [site:name].\\u003C\\/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!membership_approve_url\\u0022\\u003EApprove\\u003C\\/a\\u003E - \\u003Ca href=\\u0022!membership_reject_url\\u0022\\u003EReject\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\r\\n\",\n \"format\" : \"mail\",\n \"safe_value\" : \"\\u003Cp\\u003EDear @group_admin_full_name,\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cbr \\/\\u003E\\nA new member requested to join \\u003Ca href=\\u0022!group_dashboard_url\\u0022 rel=\\u0022nofollow\\u0022\\u003E@group_node_title\\u003C\\/a\\u003E at [site:name].\\u003Cbr \\/\\u003E\\n\\u003Ca href=\\u0022!group_pending_member_url\\u0022 rel=\\u0022nofollow\\u0022\\u003EManage this request\\u003C\\/a\\u003E\\u003Cbr \\/\\u003E\\nPlease find their details below:\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Cstrong\\u003E@new_member_full_name\\u003C\\/strong\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E@new_member_organisation, @new_member_organisation_type\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EBased in @new_member_country\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EExpertise: @new_member_expertise\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EAbout: @new_member_about_me\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EMessage from this member:\\u003Cbr \\/\\u003E\\n\\u003Cem\\u003E@new_member_request_message\\u003C\\/em\\u003E\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003EView this member\\u0027s \\u003Ca href=\\u0022!new_member_public_profile_url\\u0022 rel=\\u0022nofollow\\u0022\\u003Eprofile\\u003C\\/a\\u003E at [site:name].\\u003C\\/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Ca href=\\u0022!membership_approve_url\\u0022\\u003EApprove\\u003C\\/a\\u003E - \\u003Ca href=\\u0022!membership_reject_url\\u0022\\u003EReject\\u003C\\/a\\u003E\\u003C\\/p\\u003E\\n\"\n }\n ]\n },\n \"entity_type\" : \"message_type\",\n \"rdf_mapping\" : []\n}\n ';\n}", "title": "" } ]
b599f42b5d7ccf42c8d05ebfcf144b83
/ REMOVE_WP_TINYMCE Remove default WordPress TinyMce globally on each template except tpltinymce.php
[ { "docid": "8a5791b2d7ae54f81b3b5e567591ef30", "score": "0.80877966", "text": "function wptd_hide_tinymce() {\n $template_file = basename(get_page_template());\n\n if ($template_file != 'tpl-tinymce.php') {\n remove_post_type_support('post', 'editor');\n remove_post_type_support('page', 'editor');\n }\n}", "title": "" } ]
[ { "docid": "fc5afd871d4837ab6f803165f1a2ded6", "score": "0.71541667", "text": "public static function force_uncompressed_tinymce() {\n\t\t$has_custom_theme = false;\n\t\tforeach ( self::$mce_settings as $init ) {\n\t\t\tif ( ! empty( $init['theme_url'] ) ) {\n\t\t\t\t$has_custom_theme = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif ( ! $has_custom_theme ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$wp_scripts = wp_scripts();\n\n\t\t$wp_scripts->remove( 'wp-tinymce' );\n\t\twp_register_tinymce_scripts( $wp_scripts, true );\n\t}", "title": "" }, { "docid": "5065f54b3c02f90aa6671834b2196689", "score": "0.6579416", "text": "public function ctl_add_tinymce() {\n global $typenow;\n if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') ) {\n return;\n }\n \n if(get_cpt()==\"cool_timeline\"){\n return ;\n }\n if ( get_user_option('rich_editing') == 'true' ) {\n add_filter('mce_external_plugins', array($this, 'ctl_add_tinymce_plugin'));\n add_filter('mce_buttons', array($this, 'ctl_add_tinymce_button'));\n } \n\n }", "title": "" }, { "docid": "07de0e6e46d98914b93e4c525facb6e9", "score": "0.6481599", "text": "function mh_remove_markdown()\n{\n if ( !is_admin()) {\n wp_deregister_style('wp-markdown-prettify');\n wp_deregister_style('wp-markdown-editor');\n\n wp_deregister_script('md_convert');\n wp_deregister_script('md_sanit');\n wp_deregister_script('md_edit');\n wp_deregister_script('wp-markdown-prettify');\n wp_deregister_script('wp-markdown-editor');\n }\n}", "title": "" }, { "docid": "11a82471f9658e2f75fd9d1087a011cc", "score": "0.6446023", "text": "function tg_remove_theme_mods() {\n\tremove_theme_mods();\n}", "title": "" }, { "docid": "48417ca3a0af33e89a20449eee6e7051", "score": "0.6344736", "text": "function disable_emojis_tinymce( $plugins ) {\nif ( is_array( $plugins ) ) {\nreturn array_diff( $plugins, array( 'wpemoji' ) );\n} else {\nreturn array();\n}\n}", "title": "" }, { "docid": "3a96f86bfd4ef22d2d3a2605048c9a11", "score": "0.6318282", "text": "function pw_force_default_editor() {\n\t\t\treturn 'tinymce';\n\t\t}", "title": "" }, { "docid": "9ef361dc02f9d8f66eea83d368144196", "score": "0.62560695", "text": "public function remove_editor_support() {\n\t\tforeach ( $this->post_types as $type ) {\n\t\t\tremove_post_type_support( $type, 'editor' );\n\t\t}\n\t}", "title": "" }, { "docid": "a68b211ec095909e03198d48342f394b", "score": "0.6218857", "text": "function f1_remove_default_post_metaboxes()\n{\n remove_meta_box('postcustom', 'post', 'normal'); // Custom Fields Metabox\n remove_meta_box('postexcerpt', 'post', 'normal'); // Excerpt Metabox\n remove_meta_box('commentstatusdiv', 'post', 'normal'); // Comments Metabox\n remove_meta_box('trackbacksdiv', 'post', 'normal'); // Talkback Metabox\n remove_meta_box('authordiv', 'post', 'normal'); // Author Metabox\n}", "title": "" }, { "docid": "b1173ea0e56fcdd1eca1878819719b3c", "score": "0.6173295", "text": "function disable_wp_oembed_admin() {\n\tadd_filter( 'tiny_mce_plugins', __NAMESPACE__ . '\\\\disable_tinymce_wp_embed' );\n}", "title": "" }, { "docid": "567dfb0b52f2314e883cdee460380d4a", "score": "0.6170714", "text": "public static function remove_em_the_content(){\n\t\tremove_filter('the_content', 'em_content');\n\t}", "title": "" }, { "docid": "cc06514871f8343068ebdaa79ef8a1b7", "score": "0.6133624", "text": "function remove_product_editor()\n{\n remove_post_type_support('product', 'editor');\n}", "title": "" }, { "docid": "749ad4ac35c14287785eb82820bca86b", "score": "0.61310583", "text": "function disable_emojis_tinymce( $plugins ) {\n if ( is_array( $plugins ) ) {\n return array_diff( $plugins, array( 'wpemoji' ) );\n } else {\n return array();\n }\n}", "title": "" }, { "docid": "148d7d77d4153851507aa52d3456555c", "score": "0.61254936", "text": "function clean_setup(){\n // Switches default core markup for search form, comment form, and comments\n // to output valid HTML5.\n add_theme_support('html5', array('search-form', 'comment-form', 'comment-list'));\n add_theme_support('post-thumbnails');\n}", "title": "" }, { "docid": "9ad70a62bbadb364c88755d7e16f2eda", "score": "0.60930645", "text": "function disable_emoji_admin() {\n\tremove_action( 'admin_print_styles', 'print_emoji_styles' );\n\tremove_action( 'admin_print_scripts', 'print_emoji_detection_script' );\n\tadd_filter( 'tiny_mce_plugins', __NAMESPACE__ . '\\\\disable_tinymce_emoji' );\n}", "title": "" }, { "docid": "1821c58f19dccd95681af4bcd21c91ae", "score": "0.6091146", "text": "function remove_templates_support()\n{\n $templates = array();\n\n\t/*\n *\n * Left empty : populate after examples library\n *\n */\n\n foreach($templates as $template){\n if ($template['page_file'] && $template['remove_support']) {\n $post_id = $_GET['post'] ? $_GET['post'] : $_POST['post_ID'];\n if ( isset($post_id) ) {\n $template_file = get_post_meta($post_id, '_wp_page_template', true);\n if ($template_file == $template['page_file']) {\n foreach ($template['remove_support'] as $support) {\n remove_post_type_support('page', $support);\n }\n }\n }\n }\n }\n\n}", "title": "" }, { "docid": "003a5753fa3cfa77e0edbba21e803aef", "score": "0.6089266", "text": "function _themename_disable_classic_editor()\n{\n if (! isset($_GET['post'])) {\n return;\n }\n\n if (_themename_disable_editor($_GET['post'])) {\n remove_post_type_support('page', 'editor');\n }\n}", "title": "" }, { "docid": "c338c9db0bc6e7ecb6c56681ecf5904d", "score": "0.6069324", "text": "function swp_fe_unregister_mce_view_embedUrl() {\n\tif ( ! apply_filters( 'swp_fe_remove_autoembed', true ) ) {\n\t\treturn;\n\t}\n\t?>\n\t<script>\n\t\t( function( window, wp, $, undefined ) {\n\t\t\tif ( typeof wp !== 'undefined' && wp.mce ) {\n\t\t\t\twp.mce.views.unregister( 'embedURL' );\n\t\t\t}\n\t\t} )( window, window.wp, window.jQuery );\n\t</script>\n\t<?php\n}", "title": "" }, { "docid": "abbb4463f7667e94549aee294faf6b95", "score": "0.60541654", "text": "function disable_wp_emojicons() {\n remove_action( 'admin_print_styles', 'print_emoji_styles' );\n remove_action( 'wp_head', 'print_emoji_detection_script', 7 );\n remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );\n remove_action( 'wp_print_styles', 'print_emoji_styles' );\n remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );\n remove_filter( 'the_content_feed', 'wp_staticize_emoji' );\n remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );\n\n remove_action( 'wp_head', 'print_emoji_detection_script', 7 );\n remove_action( 'wp_print_styles', 'print_emoji_styles' ); \n\n // filter to remove TinyMCE emojis\n add_filter( 'tiny_mce_plugins', 'disable_emojicons_tinymce' );\n}", "title": "" }, { "docid": "614235bb34cc473daf9bc67795a41cb3", "score": "0.6053044", "text": "function kaya_remove_metabox_panel(){ ?>\n\t<style type=\"text/css\">\n\t\t.restrict-metabox-panels, .nav-tab-wrapper .nav-tab.cpt_meta_box_restrict, .kta-users-note{\n\t\t\tdisplay: none;\n\t\t}\n\t</style>\n<?php }", "title": "" }, { "docid": "f0ac371cf151f3b453697178577c7a5d", "score": "0.60410327", "text": "function remove_product_editor() {\n\tremove_post_type_support( 'product', 'editor' );\n}", "title": "" }, { "docid": "531273a6057682a252457fc0b8b0c92a", "score": "0.6035619", "text": "function clean_wp(){\n add_filter('show_admin_bar', '__return_false');\n\n // Czyscimy header\n add_filter('the_generator', '__return_false');\n remove_action('wp_head', 'wp_generator');\n remove_action('wp_head', 'wlwmanifest_link');\n remove_action('wp_head', 'rsd_link');\n remove_action('wp_head', 'wp_shortlink_wp_head');\n remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10);\n\n // Wyrzucamy emoji\n remove_action('wp_head', 'print_emoji_detection_script', 7);\n remove_action('wp_print_styles', 'print_emoji_styles');\n remove_action('admin_print_styles', 'print_emoji_styles');\n remove_action('admin_print_scripts', 'print_emoji_detection_script');\n remove_filter('wp_mail', 'wp_staticize_emoji_for_email');\n remove_filter('the_content_feed', 'wp_staticize_emoji');\n remove_filter('comment_text_rss', 'wp_staticize_emoji');\n}", "title": "" }, { "docid": "b81a3d90016dc0eb3b517614b571c62e", "score": "0.60078627", "text": "function vm_remove_wp_clues () {\n\tremove_action( 'wp_print_styles', 'print_emoji_styles' );\n\tremove_action( 'wp_head', 'print_emoji_detection_script', 7 );\n\tremove_action( 'wp_head', 'wp_resource_hints', 2 );\n\tremove_action( 'wp_head', 'rest_output_link_wp_head' );\n\tremove_action( 'wp_head', 'rsd_link' );\n\tremove_action( 'wp_head', 'wlwmanifest_link' );\n\tadd_filter( 'the_generator', '__return_false' );\n}", "title": "" }, { "docid": "cdcdc32f50d81d07aa246caffe329ad2", "score": "0.59748507", "text": "function hide_editor() {\n if( isset($_GET['post']) || isset($_POST['post_ID']) ){\n $post_id = $_GET['post'] ? $_GET['post'] : $_POST['post_ID'] ;\n }\n if( !isset( $post_id ) ) return;\n $template_file = get_post_meta($post_id, '_wp_page_template', true);\n if($template_file == 'page-instructors.php'){\n remove_post_type_support('page', 'editor');\n }\n}", "title": "" }, { "docid": "7cef5b7b7304840f97b504ec620daf41", "score": "0.59609556", "text": "function mrseo_elated_remove_default_custom_fields() {\n\t\tforeach ( array( 'normal', 'advanced', 'side' ) as $context ) {\n\t\t\tforeach ( apply_filters('mrseo_elated_meta_box_post_types_remove', array( 'post', 'page')) as $postType ) {\n\t\t\t\tremove_meta_box( 'postcustom', $postType, $context );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5b7c31230713d5d6e9c0d81b928f2bf1", "score": "0.5956351", "text": "function dblimgs_add_mce_button() {\n global $typenow, $pagenow;\n\n if (empty($typenow) && !empty($_GET['post']) ) {\n $post = get_post( $_GET['post'] );\n $typenow = $post->post_type;\n }\n\n $curpage = $pagenow . 'post-new.php?post_type=' . $typenow;\n\n // check user permissions\n if ( !current_user_can( 'edit_posts' ) && !current_user_can( 'edit_pages' ) ) {\n return;\n }\n // check if WYSIWYG is enabled\n //if ( 'true' == get_user_option( 'rich_editing' ) ) {\n function mce_show_toolbar( $args ) {\n $args['wordpress_adv_hidden'] = false;\n return $args;\n }\n add_filter( 'tiny_mce_before_init', 'mce_show_toolbar' );\n add_filter( 'mce_external_plugins', 'dblimgs_add_tinymce_plugin' );\n add_filter( 'mce_buttons_2', 'dblimgs_register_mce_button' );\n //}\n}", "title": "" }, { "docid": "282c981cbf3c5ea71f6b1b1fd49df0e2", "score": "0.59558016", "text": "function disable_tinymce_wp_embed( $plugins ) {\n\treturn array_diff( $plugins, array( 'wpembed' ) );\n}", "title": "" }, { "docid": "3b59e471d4f19dbf519653d66a95c57c", "score": "0.594843", "text": "function hide_editor() {\n\t\tif ( isset ( $_GET['post'] ) )\n\t\t$post_id = $_GET['post'];\n\t\telse if ( isset ( $_POST['post_ID'] ) )\n\t\t$post_id = $_POST['post_ID'];\n\n\t\tif( !isset ( $post_id ) || empty ( $post_id ) )\n\t\t\t\treturn;\n\n\t\t// Get the name of the Page Template file.\n\t\t$template_file = get_post_meta($post_id, '_wp_page_template', true);\n\n\t\t$exclude_editor = array(\n\t\t\t// 'template-home.php'\n\t\t);\n\n\t\tif(in_array($template_file, $exclude_editor)){\n\t\t\tremove_post_type_support('page', 'editor');\n\t\t}\n\t}", "title": "" }, { "docid": "e56c1b40c91ace4a698a0f88a14967bd", "score": "0.5934591", "text": "function cf_tiny_mce( $teeny = false ) {\n\tglobal $concatenate_scripts, $compress_scripts, $tinymce_version;\n\n\tif ( ! user_can_richedit() )\n\t\treturn;\n\n\t$baseurl = includes_url('js/tinymce');\n\n\t$mce_locale = ( '' == get_locale() ) ? 'en' : strtolower( substr(get_locale(), 0, 2) ); // only ISO 639-1\n\n\t/*\n\tThe following filter allows localization scripts to change the languages displayed in the spellchecker's drop-down menu.\n\tBy default it uses Google's spellchecker API, but can be configured to use PSpell/ASpell if installed on the server.\n\tThe + sign marks the default language. More information:\n\thttp://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker\n\t*/\n\t$mce_spellchecker_languages = apply_filters('mce_spellchecker_languages', '+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv');\n\n\tif ( $teeny ) {\n\t\t$plugins = apply_filters( 'teeny_mce_plugins', array('safari', 'inlinepopups', 'media', 'autosave') );\n\t\t$ext_plugins = '';\n\t} else {\n\t\t$plugins = array( 'safari', 'inlinepopups', 'spellchecker', 'paste', 'tabfocus' );\n\n\t\t/*\n\t\tThe following filter takes an associative array of external plugins for TinyMCE in the form 'plugin_name' => 'url'.\n\t\tIt adds the plugin's name to TinyMCE's plugins init and the call to PluginManager to load the plugin.\n\t\tThe url should be absolute and should include the js file name to be loaded. Example:\n\t\tarray( 'myplugin' => 'http://my-site.com/wp-content/plugins/myfolder/mce_plugin.js' )\n\t\tIf the plugin uses a button, it should be added with one of the \"$mce_buttons\" filters.\n\t\t*/\n\t\t$mce_external_plugins = apply_filters('mce_external_plugins', array());\n\n\t\t$ext_plugins = '';\n\t\tif ( ! empty($mce_external_plugins) ) {\n\n\t\t\t/*\n\t\t\tThe following filter loads external language files for TinyMCE plugins.\n\t\t\tIt takes an associative array 'plugin_name' => 'path', where path is the\n\t\t\tinclude path to the file. The language file should follow the same format as\n\t\t\t/tinymce/langs/wp-langs.php and should define a variable $strings that\n\t\t\tholds all translated strings.\n\t\t\tWhen this filter is not used, the function will try to load {mce_locale}.js.\n\t\t\tIf that is not found, en.js will be tried next.\n\t\t\t*/\n\t\t\t$mce_external_languages = apply_filters('mce_external_languages', array());\n\n\t\t\t$loaded_langs = array();\n\t\t\t$strings = '';\n\n\t\t\tif ( ! empty($mce_external_languages) ) {\n\t\t\t\tforeach ( $mce_external_languages as $name => $path ) {\n\t\t\t\t\tif ( @is_file($path) && @is_readable($path) ) {\n\t\t\t\t\t\tinclude_once($path);\n\t\t\t\t\t\t$ext_plugins .= $strings . \"\\n\";\n\t\t\t\t\t\t$loaded_langs[] = $name;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tforeach ( $mce_external_plugins as $name => $url ) {\n\n\t\t\t\tif ( is_ssl() ) $url = str_replace('http://', 'https://', $url);\n\n\t\t\t\t$plugins[] = '-' . $name;\n\n\t\t\t\t$plugurl = dirname($url);\n\t\t\t\t$strings = $str1 = $str2 = '';\n\t\t\t\tif ( ! in_array($name, $loaded_langs) ) {\n\t\t\t\t\t$path = str_replace( WP_PLUGIN_URL, '', $plugurl );\n\t\t\t\t\t$path = WP_PLUGIN_DIR . $path . '/langs/';\n\n\t\t\t\t\tif ( function_exists('realpath') )\n\t\t\t\t\t\t$path = trailingslashit( realpath($path) );\n\n\t\t\t\t\tif ( @is_file($path . $mce_locale . '.js') )\n\t\t\t\t\t\t$strings .= @file_get_contents($path . $mce_locale . '.js') . \"\\n\";\n\n\t\t\t\t\tif ( @is_file($path . $mce_locale . '_dlg.js') )\n\t\t\t\t\t\t$strings .= @file_get_contents($path . $mce_locale . '_dlg.js') . \"\\n\";\n\n\t\t\t\t\tif ( 'en' != $mce_locale && empty($strings) ) {\n\t\t\t\t\t\tif ( @is_file($path . 'en.js') ) {\n\t\t\t\t\t\t\t$str1 = @file_get_contents($path . 'en.js');\n\t\t\t\t\t\t\t$strings .= preg_replace( '/([\\'\"])en\\./', '$1' . $mce_locale . '.', $str1, 1 ) . \"\\n\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( @is_file($path . 'en_dlg.js') ) {\n\t\t\t\t\t\t\t$str2 = @file_get_contents($path . 'en_dlg.js');\n\t\t\t\t\t\t\t$strings .= preg_replace( '/([\\'\"])en\\./', '$1' . $mce_locale . '.', $str2, 1 ) . \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( ! empty($strings) )\n\t\t\t\t\t\t$ext_plugins .= \"\\n\" . $strings . \"\\n\";\n\t\t\t\t}\n\n\t\t\t\t$ext_plugins .= 'tinyMCEPreInit.load_ext(\"' . $plugurl . '\", \"' . $mce_locale . '\");' . \"\\n\";\n\t\t\t\t$ext_plugins .= 'tinymce.PluginManager.load(\"' . $name . '\", \"' . $url . '\");' . \"\\n\";\n\t\t\t}\n\t\t}\n\t}\n\n\t$plugins = implode($plugins, ',');\n\n\tif ( $teeny ) {\n\t\t$mce_buttons = apply_filters( 'teeny_mce_buttons', array('bold, italic, underline, blockquote, separator, strikethrough, bullist, numlist,justifyleft, justifycenter, justifyright, undo, redo, link, unlink') );\n\t\t$mce_buttons = implode($mce_buttons, ',');\n\t\t$mce_buttons_2 = $mce_buttons_3 = $mce_buttons_4 = '';\n\t} else {\n\t\t$mce_buttons = apply_filters('mce_buttons', array('bold', 'italic', 'strikethrough', '|', 'bullist', 'numlist', 'blockquote', '|', 'justifyleft', 'justifycenter', 'justifyright', '|', 'link', 'unlink', '|', 'spellchecker', '|', 'code' ));\n\t\t$mce_buttons = implode($mce_buttons, ',');\n\n\t\t$mce_buttons_2 = apply_filters('mce_buttons_2', array('formatselect', 'underline', 'justifyfull', 'forecolor', '|', 'pastetext', 'pasteword', 'removeformat', '|', 'media', 'charmap', '|', 'outdent', 'indent', '|', 'undo', 'redo' ));\n\t\t$mce_buttons_2 = implode($mce_buttons_2, ',');\n\n\t\t$mce_buttons_3 = apply_filters('mce_buttons_3', array());\n\t\t$mce_buttons_3 = implode($mce_buttons_3, ',');\n\n\t\t$mce_buttons_4 = apply_filters('mce_buttons_4', array());\n\t\t$mce_buttons_4 = implode($mce_buttons_4, ',');\n\t}\n\t$no_captions = ( apply_filters( 'disable_captions', '' ) ) ? true : false;\n\n\t// TinyMCE init settings\n\t$initArray = array (\n\t\t'mode' => 'specific_textareas',\n\t\t'editor_selector' => 'cf_tiny_mce',\n\t\t'width' => '100%',\n\t\t'theme' => 'advanced',\n\t\t'skin' => 'wp_theme',\n\t\t'theme_advanced_buttons1' => \"$mce_buttons\",\n\t\t'theme_advanced_buttons2' => \"$mce_buttons_2\",\n\t\t'theme_advanced_buttons3' => \"$mce_buttons_3\",\n\t\t'theme_advanced_buttons4' => \"$mce_buttons_4\",\n\t\t'language' => \"$mce_locale\",\n\t\t'spellchecker_languages' => \"$mce_spellchecker_languages\",\n\t\t'theme_advanced_toolbar_location' => 'top',\n\t\t'theme_advanced_toolbar_align' => 'left',\n\t\t'theme_advanced_statusbar_location' => 'bottom',\n\t\t'theme_advanced_resizing' => true,\n\t\t'theme_advanced_resize_horizontal' => false,\n\t\t'dialog_type' => 'modal',\n\t\t'relative_urls' => false,\n\t\t'remove_script_host' => false,\n\t\t'convert_urls' => false,\n\t\t'apply_source_formatting' => false,\n\t\t'remove_linebreaks' => true,\n\t\t'gecko_spellcheck' => true,\n\t\t'entities' => '38,amp,60,lt,62,gt',\n\t\t'accessibility_focus' => true,\n\t\t'tabfocus_elements' => 'major-publishing-actions',\n\t\t'media_strict' => false,\n\t\t'save_callback' => '',\n\t\t'wpeditimage_disable_captions' => $no_captions,\n\t\t'plugins' => \"$plugins\"\n\t);\n\n\t$mce_css = trim(apply_filters('mce_css', ''), ' ,');\n\n\tif ( ! empty($mce_css) )\n\t\t$initArray['content_css'] = \"$mce_css\";\n\n\t// For people who really REALLY know what they're doing with TinyMCE\n\t// You can modify initArray to add, remove, change elements of the config before tinyMCE.init\n\t// Setting \"valid_elements\", \"invalid_elements\" and \"extended_valid_elements\" can be done through \"tiny_mce_before_init\".\n\t// Best is to use the default cleanup by not specifying valid_elements, as TinyMCE contains full set of XHTML 1.0.\n\tif ( $teeny ) {\n\t\t$initArray = apply_filters('teeny_mce_before_init', $initArray);\n\t} else {\n\t\t$initArray = apply_filters('tiny_mce_before_init', $initArray);\n\t}\n\n\tif ( empty($initArray['theme_advanced_buttons3']) && !empty($initArray['theme_advanced_buttons4']) ) {\n\t\t$initArray['theme_advanced_buttons3'] = $initArray['theme_advanced_buttons4'];\n\t\t$initArray['theme_advanced_buttons4'] = '';\n\t}\n\n\tif ( ! isset($concatenate_scripts) )\n\t\tscript_concat_settings();\n\n\t$language = $initArray['language'];\n\t$zip = $compress_scripts ? 1 : 0;\n\n\t/**\n\t * Deprecated\n\t *\n\t * The tiny_mce_version filter is not needed since external plugins are loaded directly by TinyMCE.\n\t * These plugins can be refreshed by appending query string to the URL passed to mce_external_plugins filter.\n\t * If the plugin has a popup dialog, a query string can be added to the button action that opens it (in the plugin's code).\n\t */\n\t$version = apply_filters('tiny_mce_version', '');\n\t$version = 'ver=' . $tinymce_version . $version;\n\n\tif ( 'en' != $language )\n\t\tinclude_once(ABSPATH . WPINC . '/js/tinymce/langs/wp-langs.php');\n\n\t$mce_options = '';\n\tforeach ( $initArray as $k => $v )\n\t $mce_options .= $k . ':\"' . $v . '\", ';\n\n\t$mce_options = rtrim( trim($mce_options), '\\n\\r,' ); ?>\n\n<script type=\"text/javascript\">\n/* <![CDATA[ */\ntinyMCEPreInit = {\n\tbase : \"<?php echo $baseurl; ?>\",\n\tsuffix : \"\",\n\tquery : \"<?php echo $version; ?>\",\n\tmceInit : {<?php echo $mce_options; ?>},\n\tload_ext : function(url,lang){var sl=tinymce.ScriptLoader;sl.markDone(url+'/langs/'+lang+'.js');sl.markDone(url+'/langs/'+lang+'_dlg.js');}\n};\n/* ]]> */\n</script>\n\n<?php\n\tif ( $concatenate_scripts )\n\t\techo \"<script type='text/javascript' src='$baseurl/wp-tinymce.php?c=$zip&amp;$version'></script>\\n\";\n\telse\n\t\techo \"<script type='text/javascript' src='$baseurl/tiny_mce.js?$version'></script>\\n\";\n\n\tif ( 'en' != $language && isset($lang) )\n\t\techo \"<script type='text/javascript'>\\n$lang\\n</script>\\n\";\n\telse\n\t\techo \"<script type='text/javascript' src='$baseurl/langs/wp-langs-en.js?$version'></script>\\n\";\n?>\n\n<script type=\"text/javascript\">\n/* <![CDATA[ */\n<?php if ( $ext_plugins ) echo \"$ext_plugins\\n\"; ?>\n<?php if ( $concatenate_scripts ) { ?>\ntinyMCEPreInit.go();\n<?php } else { ?>\n(function(){var t=tinyMCEPreInit,sl=tinymce.ScriptLoader,ln=t.mceInit.language,th=t.mceInit.theme,pl=t.mceInit.plugins;sl.markDone(t.base+'/langs/'+ln+'.js');sl.markDone(t.base+'/themes/'+th+'/langs/'+ln+'.js');sl.markDone(t.base+'/themes/'+th+'/langs/'+ln+'_dlg.js');tinymce.each(pl.split(','),function(n){if(n&&n.charAt(0)!='-'){sl.markDone(t.base+'/plugins/'+n+'/langs/'+ln+'.js');sl.markDone(t.base+'/plugins/'+n+'/langs/'+ln+'_dlg.js');}});})();\n<?php } ?>\ntinyMCE.init(tinyMCEPreInit.mceInit);\n/* ]]> */\n</script>\n<?php\n}", "title": "" }, { "docid": "16fffa0e73e5e60bd2529e43dae3811a", "score": "0.59192663", "text": "function remove_default_post_screen_metaboxes() \n\t{\n\t\tremove_meta_box('postcustom','post','normal'); // Custom Fields Metabox\n\t\t//remove_meta_box('slugdiv','post','normal'); // Slug Metabox\n\t\t//remove_meta_box('authordiv','post','normal'); // Author Metabox\n\t\t//remove_meta_box('postexcerpt','post','normal'); // Excerpt Metabox\n\t\tremove_meta_box('trackbacksdiv','post','normal'); // Talkback Metabox\n\t}", "title": "" }, { "docid": "d7758d07bcf01c9d7e52b30bd2c87147", "score": "0.5917171", "text": "function disable_emojis_tinymce( $plugins ) {\r\n if ( is_array( $plugins ) ) {\r\n return array_diff( $plugins, array( 'wpemoji' ) );\r\n } else {\r\n return array();\r\n }\r\n }", "title": "" }, { "docid": "7986cfec113a531967c9ade615a5cc9d", "score": "0.59015197", "text": "function fn_disable_live_editor_mode()\n{\n Registry::set('runtime.customization_mode.live_editor', false);\n}", "title": "" }, { "docid": "e8b8ac126547041f35601c2764461c62", "score": "0.58815837", "text": "function uw_reset_templates(){\n global $wpdb;\n \n if( is_multisite() ){\n $prefix = $wpdb->base_prefix . get_current_blog_id() . '_';\n } else {\n $prefix = $wpdb->prefix;\n }\n\n $results = $wpdb->get_results( \"DELETE FROM {$prefix}postmeta WHERE meta_key='_wp_page_template'\" );\n\n return $results;\n}", "title": "" }, { "docid": "aecb068fb04bcb98340132c7741913c5", "score": "0.58780956", "text": "function klippe_mikado_remove_default_custom_fields() {\n\t\tforeach ( array( 'normal', 'advanced', 'side' ) as $context ) {\n\t\t\tforeach ( apply_filters( 'klippe_mikado_meta_box_post_types_remove', array( 'post', 'page' ) ) as $postType ) {\n\t\t\t\tremove_meta_box( 'postcustom', $postType, $context );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1ee052fa64e1aec238d0b72e67f507de", "score": "0.5859004", "text": "function jp_remove_yoast_metabox() {\n\n\t$post_types = array( 'page', 'post' ); // add any custom post types here\n\n\tforeach( $post_types as $post_type ) {\n\t\tremove_meta_box( 'wpseo_meta', $post_type, 'normal' );\n\t}\n}", "title": "" }, { "docid": "6eedca3e04054fc1d30e2929977924c1", "score": "0.58539927", "text": "function roots_setup() {\n // Make theme available for translation\n load_theme_textdomain('roots', get_template_directory() . '/lang');\n\n // Register wp_nav_menu() menus (http://codex.wordpress.org/Function_Reference/register_nav_menus)\n register_nav_menus(array(\n 'primary_navigation' => __('Primary Navigation', 'roots'),\n ));\n\n // Add post thumbnails (http://codex.wordpress.org/Post_Thumbnails)\n add_theme_support('post-thumbnails');\n // set_post_thumbnail_size(150, 150, false);\n // add_image_size('category-thumb', 300, 9999); // 300px wide (and unlimited height)\n\n // Add post formats (http://codex.wordpress.org/Post_Formats)\n // add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat'));\n\n // Tell the TinyMCE editor to use a custom stylesheet\n add_editor_style('/assets/css/editor-style.css');\n \n // Define what post types to archieve \n add_filter('pre_get_posts', 'cbi_cpt');\n function cbi_cpt($query) {\n if((is_category() || is_home() || is_search() ) && $query->is_main_query()) {\n $post_type = get_query_var('post_type');\n if($post_type)\n $post_type = $post_type;\n else\n $post_type = array('case_study', 'opinion', 'event', \n 'news_item', 'video', 'audio', 'text_fact', \n 'graphic_fact', 'data_fact', 'overview', 'factsheet_fact');\n $query->set('post_type',$post_type);\n return $query;\n }\n }\n \n /*\n * remove user capabilities to add categories or tags\n */\n add_action( 'init', 'remove_editor_manage_categories' ); \n function remove_editor_manage_categories() {\n $roles = array('editor', 'author', 'contributor', 'subscriber');\n foreach($roles as $role) {\n $update_role = get_role( 'editor' );\n $update_role->remove_cap( 'manage_categories' );\n }\n }\n \n define(EXCERPT_COUNT, 100);\n}", "title": "" }, { "docid": "02f5a771a855afe5a2fcb40d3f400b67", "score": "0.58534485", "text": "function remove_page_template_select(){\n\tglobal $post;\n\n\tif(in_array($post->ID, array(get_option('mvnp-about-page-mapping'), get_option('mvnp-contact-page-mapping'), get_option('page_on_front')))){?>\n\t\t<script type=\"text/javascript\">\n\t\t\tvar elem = document.getElementById('page_template');\n\t\t\t\n\t\t\tif(elem){\n\t\t\t\tvar sib = elem.previousElementSibling;\n\n\t\t\t\telem = elem.parentNode.removeChild(elem);\n\t\t\t\tsib = sib.parentNode.removeChild(sib);\n\t\t\t}\n\t\t</script>\n\t<?php }\n}", "title": "" }, { "docid": "4f7f94a0071dfc4bb8a996e93d3192ab", "score": "0.58532363", "text": "function my_switch_tinymce_p_br( $settings ) {\n $settings['forced_root_block'] = false;\n return $settings;\n}", "title": "" }, { "docid": "e192bfe5ae645f5d08e673c5bb90267b", "score": "0.5851304", "text": "function remove_post_custom_fields_news() {\n\n if ( current_user_can('novinky') ) {\n \n remove_meta_box('et_settings_meta_box', 'post', 'side'); \n remove_meta_box('postcustom', 'post', 'normal');\n remove_meta_box('authordiv', 'post', 'normal'); \n remove_meta_box('slugdiv', 'post', 'normal');\n remove_meta_box('commentstatusdiv', 'post', 'normal');\n remove_meta_box('commentsdiv', 'post', 'normal');\n remove_meta_box('revisionsdiv', 'post', 'normal');\n remove_meta_box('trackbacksdiv', 'post', 'normal');\n \n }\n \n}", "title": "" }, { "docid": "ffba80d6bd39d2d9b993267abe436b73", "score": "0.58448124", "text": "function metroshare_remove_from_the_content() {\n\tglobal $metro_share;\n\tremove_filter( 'the_content', array( $metro_share, 'show_the_content' ) );\n}", "title": "" }, { "docid": "3f8f12078ee96a478b08ca6754a4157f", "score": "0.583885", "text": "function ungrynerd_disable_wp_emojicons() {\n remove_action('admin_print_styles', 'print_emoji_styles');\n remove_action('wp_head', 'print_emoji_detection_script', 7 );\n remove_action('admin_print_scripts', 'print_emoji_detection_script');\n remove_action('wp_print_styles', 'print_emoji_styles');\n remove_filter('wp_mail', 'wp_staticize_emoji_for_email');\n remove_filter('the_content_feed', 'wp_staticize_emoji');\n remove_filter('comment_text_rss', 'wp_staticize_emoji');\n\n // filter to remove TinyMCE emojis\n add_filter('tiny_mce_plugins', __NAMESPACE__ . '\\disable_emojicons_tinymce');\n}", "title": "" }, { "docid": "5977ffb6495f03b7073459c3a04a0d1e", "score": "0.5835188", "text": "function starter_theme_tinymce_buttons($buttons) {\n //Remove the text color selector\n $remove = 'forecolor';\n\n //Find the array key and then unset\n if ( ( $key = array_search($remove,$buttons) ) !== false )\n\t\tunset($buttons[$key]);\n\n return $buttons;\n }", "title": "" }, { "docid": "a0a776211652e2fe4e8851787688d916", "score": "0.5834359", "text": "function disable_wp_emojicons() {\n\tremove_action( 'admin_print_styles', 'print_emoji_styles' );\n\tremove_action( 'wp_head', 'print_emoji_detection_script', 7 );\n\tremove_action( 'admin_print_scripts', 'print_emoji_detection_script' );\n\tremove_action( 'wp_print_styles', 'print_emoji_styles' );\n\tremove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );\n\tremove_filter( 'the_content_feed', 'wp_staticize_emoji' );\n\tremove_filter( 'comment_text_rss', 'wp_staticize_emoji' );\n\n\t// filter to remove TinyMCE emojis\n\tadd_filter( 'tiny_mce_plugins', 'disable_emojicons_tinymce' );\n}", "title": "" }, { "docid": "7007f66deb530a1cde07475813dad30f", "score": "0.58336544", "text": "function rocket_disable_embeds_tiny_mce_plugin( $plugins ) {\r\n\t_deprecated_function( __FUNCTION__ . '()', '3.7' );\r\n\treturn array_diff( $plugins, [ 'wpembed' ] );\r\n}", "title": "" }, { "docid": "214763afb19726145c67a22f0a8b7c7f", "score": "0.5827137", "text": "function disable_emojis_tinymce( $plugins ) {\n\treturn array_diff( $plugins, array( 'wpemoji' ) );\n}", "title": "" }, { "docid": "6e8c05d5b522298e5e45ce08a19995af", "score": "0.58215314", "text": "function disable_emojis_tinymce( $plugins ) {\n if ( is_array( $plugins ) ) {\n return array_diff( $plugins, array( 'wpemoji' ) );\n } else {\n return array();\n }\n}", "title": "" }, { "docid": "964afbf0b0020c994d24f9fb61469d20", "score": "0.5821125", "text": "function optimize_mikado_remove_default_custom_fields() {\n\t\tforeach ( array( 'normal', 'advanced', 'side' ) as $context ) {\n\t\t\tforeach ( array( \"page\", \"post\", \"portfolio_page\", \"testimonials\", \"slides\", \"carousels\" ) as $postType ) {\n\t\t\t\tremove_meta_box( 'postcustom', $postType, $context );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ba537b0d92e7a9defb1ecf81ecafe07d", "score": "0.581858", "text": "function extlink_setup_tinymce_plugin() {\n // If not, don't register our TinyMCE plugin\n if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) {\n return;\n }\n\n // Check if the logged in WordPress User has the Visual Editor enabled\n // If not, don't register our TinyMCE plugin\n if ( get_user_option( 'rich_editing' ) !== 'true' ) {\n return;\n }\n\n // Setup some filters\n add_filter( 'mce_external_plugins', 'extlink_add_tinymce_plugin' );\n add_filter( 'mce_buttons', 'extlink_add_tinymce_toolbar_button' );\n}", "title": "" }, { "docid": "6cf989bd4dfa801048e72d7f6d5e87c5", "score": "0.58148825", "text": "function load_tinymce() {\n if ( (current_user_can('edit_posts') || current_user_can('edit_pages')) && get_user_option('rich_editing') == 'true') {\n \t\tadd_filter( 'mce_external_plugins', array(&$this, 'tinymce_add_plugin') );\n\t\t\tadd_filter( 'mce_buttons', array(&$this,'tinymce_register_button') );\n\t\t\tadd_filter( 'mce_external_languages', array(&$this,'tinymce_load_langs') );\n\t\t}\n\t}", "title": "" }, { "docid": "4566dbd99447d92322bb66a98b85057d", "score": "0.5811059", "text": "function remove_post_type_after_entry() {\n\tremove_action( 'genesis_after_entry', 'genesis_do_author_box_single', 8 );\n\tremove_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' );\n}", "title": "" }, { "docid": "d9daa8abf4d591278e5e79635b870d9b", "score": "0.5808383", "text": "function tt_remove_page_template_name_from_select_dropdown(){\n//do this only in WordPress admin\nif(is_admin()):\n //check which admin page we are in now.\n //do this only if typenow variable is page.\n\t\n\tglobal $typenow;\n\tglobal $pagenow;\n\tif( ($typenow == 'page') || ($pagenow == 'edit.php') ){\n\t $option = get_option('ka_activate_karma4');\n\t if($option == 'true'):\n\t \t//we enqueue jquery script.\n\t \t\twp_register_script( 'remove_page_template_select_option', TRUETHEMES_JS .'/admin-remove-page-template-select-option.js', array('jquery'),'1.0');\n\t \twp_enqueue_script( 'remove_page_template_select_option');\n\t endif;\n\t}\n\t\n\t//do this only if typenow variable is post.\n\tif( $typenow == 'post'){\n\t $option = get_option('ka_activate_karma4');\n\t if($option == 'true'):\n\t \t//we enqueue jquery script.\n\t \t\twp_register_script( 'hide_post_meta_box', TRUETHEMES_JS .'/admin-hide-post-meta-box.js', array('jquery'),'1.0');\n\t \twp_enqueue_script( 'hide_post_meta_box');\n\t endif;\n\t}\t\n\t\nendif;\n}", "title": "" }, { "docid": "27ce2c0fe1225273ec3e88583e97ef47", "score": "0.58079666", "text": "function disable_wp_emojicons() {\n remove_action( 'admin_print_styles', 'print_emoji_styles' );\n remove_action( 'wp_head', 'print_emoji_detection_script', 7 );\n remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );\n remove_action( 'wp_print_styles', 'print_emoji_styles' );\n remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );\n remove_filter( 'the_content_feed', 'wp_staticize_emoji' );\n remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );\n\n // filter to remove TinyMCE emojis\n add_filter( 'tiny_mce_plugins', 'disable_emojicons_tinymce' );\n}", "title": "" }, { "docid": "27ce2c0fe1225273ec3e88583e97ef47", "score": "0.58079666", "text": "function disable_wp_emojicons() {\n remove_action( 'admin_print_styles', 'print_emoji_styles' );\n remove_action( 'wp_head', 'print_emoji_detection_script', 7 );\n remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );\n remove_action( 'wp_print_styles', 'print_emoji_styles' );\n remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );\n remove_filter( 'the_content_feed', 'wp_staticize_emoji' );\n remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );\n\n // filter to remove TinyMCE emojis\n add_filter( 'tiny_mce_plugins', 'disable_emojicons_tinymce' );\n}", "title": "" }, { "docid": "27ce2c0fe1225273ec3e88583e97ef47", "score": "0.58079666", "text": "function disable_wp_emojicons() {\n remove_action( 'admin_print_styles', 'print_emoji_styles' );\n remove_action( 'wp_head', 'print_emoji_detection_script', 7 );\n remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );\n remove_action( 'wp_print_styles', 'print_emoji_styles' );\n remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );\n remove_filter( 'the_content_feed', 'wp_staticize_emoji' );\n remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );\n\n // filter to remove TinyMCE emojis\n add_filter( 'tiny_mce_plugins', 'disable_emojicons_tinymce' );\n}", "title": "" }, { "docid": "9051a415902ae356cc250acc6857f04e", "score": "0.58066213", "text": "function daisy_remove_storefront_standard_functionality() {\n\n set_theme_mod('storefront_styles', '');\n set_theme_mod('storefront_woocommerce_styles', '');\n\n }", "title": "" }, { "docid": "8f55fb8b9e3e469a3be9f9d95012f8b8", "score": "0.5805126", "text": "function disable_emojis_tinymce( $plugins ) {\r\n if ( is_array( $plugins ) ) {\r\n return array_diff( $plugins, array( 'wpemoji' ) );\r\n } else {\r\n return array();\r\n }\r\n}", "title": "" }, { "docid": "8102bb9d5e1a9d8359432331352bdcf2", "score": "0.5799375", "text": "public function genlite_remove_default_post_type_menu_bar() {\n\t\tglobal $wp_admin_bar;\n\t\t$wp_admin_bar->remove_node( 'new-post' );\n\t}", "title": "" }, { "docid": "678cb331891e749b05cc2d684a2ffdc9", "score": "0.5795985", "text": "function wpse_tiny_mce_remove_custom_colors( $plugins ) { \n\n foreach ( $plugins as $key => $plugin_name ) {\n if ( 'colorpicker' === $plugin_name ) {\n unset( $plugins[ $key ] );\n return $plugins; \n }\n }\n\n return $plugins; \n}", "title": "" }, { "docid": "9bf8ce106db192acaa8447265a7e652d", "score": "0.57956547", "text": "function libero_mikado_remove_default_custom_fields() {\n\t\tforeach ( array( 'normal', 'advanced', 'side' ) as $context ) {\n\t\t\tforeach ( array( \"page\", \"post\", \"portfolio_page\", \"testimonials\", \"slides\", \"carousels\" ) as $postType ) {\n\t\t\t\tremove_meta_box( 'postcustom', $postType, $context );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f3faa91bd36e255dcf4d90b4a239f8ad", "score": "0.57952344", "text": "function disable_emojis_tinymce($plugins)\n{\n if (is_array($plugins)) {\n return array_diff($plugins, array('wpemoji'));\n } else {\n return array();\n }\n}", "title": "" }, { "docid": "5830e6c76476782520bb02fda0b3aa2c", "score": "0.57949686", "text": "function disable_embeds_tiny_mce_plugin( $plugins ) {\n return array_diff( $plugins, array( 'wpembed' ) );\n}", "title": "" }, { "docid": "6958858b872f128d24c4d7f337401355", "score": "0.5787413", "text": "public function clearCKEditorTemplatess()\n {\n $this->collCKEditorTemplatess = null; // important to set this to NULL since that means it is uninitialized\n }", "title": "" }, { "docid": "d5daf7a576ed651b6d7b342aeee5bab0", "score": "0.57811636", "text": "function elodin_twentynineteen_remove_tags() {\n unregister_taxonomy_for_object_type('post_tag', 'post');\n}", "title": "" }, { "docid": "4cd9362bf59e009515d39fd128cd4ff8", "score": "0.576536", "text": "function f1_remove_default_page_metaboxes()\n{\n remove_meta_box('postcustom', 'page', 'normal'); // Custom Fields Metabox\n remove_meta_box('commentstatusdiv', 'page', 'normal'); // Discussion Metabox\n remove_meta_box('authordiv', 'page', 'normal'); // Author Metabox\n}", "title": "" }, { "docid": "42e7ac1e5368b61d204454e59f1f4686", "score": "0.5765306", "text": "function my_theme_add_editor_styles() {\n add_editor_style( 'tiny-mce.css' );\n}", "title": "" }, { "docid": "2a26295e76abb949385a4d01b0f5cd5e", "score": "0.576124", "text": "function remove_genesis_page_templates( $page_templates ) {\n\tunset( $page_templates['page_blog.php'] );\n\n\treturn $page_templates;\n}", "title": "" }, { "docid": "80c8979c43b696a149e08d577117b7cc", "score": "0.5758092", "text": "function dbsync_theme_subtractextras(){\n\t$file_to_delete = get_template_directory(). \"/dbsync_pagetemplate.\". strtolower(trim(get_current_theme())) .\".php\";\n\t$fh = fopen($file_to_delete, 'w') or die(\"can't open file\");\n\tfclose($fh);\n\tunlink($file_to_delete);\t\n}", "title": "" }, { "docid": "22c883100223f3552aa2bafd2586e1c1", "score": "0.575315", "text": "function disable_wysiwyg( $default ) {\n\t\tglobal $post;\n\t\tif ( \"bc_todo\" == get_post_type( $post ) )\n\t\t\treturn false;\n\t\treturn $default;\n\t}", "title": "" }, { "docid": "87ab42c96f46bf7eb010acf42963b22b", "score": "0.57499254", "text": "function disable_emojis_tinymce($plugins)\n{\n if (is_array($plugins)) {\n return array_diff($plugins, array('wpemoji'));\n } else {\n return array();\n }\n}", "title": "" }, { "docid": "ff7128b05d736efd3890f6d2075c5ba9", "score": "0.57479876", "text": "function disable_wp_emojicons() {\n\n // all actions related to emojis\n remove_action( 'admin_print_styles', 'print_emoji_styles' );\n remove_action( 'wp_head', 'print_emoji_detection_script', 7 );\n remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );\n remove_action( 'wp_print_styles', 'print_emoji_styles' );\n remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );\n remove_filter( 'the_content_feed', 'wp_staticize_emoji' );\n remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );\n\n // filter to remove TinyMCE emojis\n add_filter( 'tiny_mce_plugins', 'disable_emojicons_tinymce' );\n}", "title": "" }, { "docid": "36b6d7616551a539a6c67c1d729d72e8", "score": "0.57343537", "text": "function mytheme_tinymce_settings( $settings ) {\n $settings['block_formats'] = 'Heading 1=h1;Heading 2=h2; Normal text=p';\n $settings['toolbar1']='formatselect,bold,italic,|,bullist,numlist,link,|,undo,redo';\n $settings['toolbar2']='';\n $settings['toolbar3']='';\n $settings['toolbar4']='';\n return $settings;\n}", "title": "" }, { "docid": "cec8b5245c4699c448a116b6e5bc9f73", "score": "0.5728405", "text": "function wpeb_disable_wp_emoji_icons_tinymce(array $plugins): array\n {\n return array_diff($plugins, array('wpemoji'));\n }", "title": "" }, { "docid": "9e7ccc99e01a1c791612a1c3552875e1", "score": "0.5712673", "text": "function show_tinymce_toolbar( $in ) {\n\t$in['wordpress_adv_hidden'] = false;\n\treturn $in;\n}", "title": "" }, { "docid": "7227c818b5aff9cc422240c8e89fbc6a", "score": "0.57122433", "text": "public function genlite_remove_page_admin_items() {\n\t\tremove_post_type_support( 'page', 'comments' ); \n\t}", "title": "" }, { "docid": "dae73d1346a76b2c1401b864a7d02dcf", "score": "0.5709336", "text": "function removeDefaultCustomFields( $type, $context, $post ) {\n\t\t\tforeach ( array( 'normal', 'advanced', 'side' ) as $context ) {\n\t\t\t\tremove_meta_box( 'postcustom', 'post', $context );\n\t\t\t\tremove_meta_box( 'postcustom', 'post', $context );\n\t\t\t\t//Use the line below instead of the line above for WP versions older than 2.9.1\n\t\t\t\t//remove_meta_box( 'postcustomdiv', 'post', $context );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "bd5946f907a958561a37c39245c31b7d", "score": "0.56989175", "text": "function x_customizer_update_native_functionality( $wp_customize ) {\r\n $wp_customize->remove_panel( 'themes' );\r\n}", "title": "" }, { "docid": "121d5f6e2c8e2140d81dcd96fff5b9c0", "score": "0.56922406", "text": "function disable_wp_emojicons() {\n // all actions related to emojis\n remove_action( 'admin_print_styles', 'print_emoji_styles' );\n remove_action( 'wp_head', 'print_emoji_detection_script', 7 );\n remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );\n remove_action( 'wp_print_styles', 'print_emoji_styles' );\n remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );\n remove_filter( 'the_content_feed', 'wp_staticize_emoji' );\n remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );\n // filter to remove TinyMCE emojis\n add_filter( 'tiny_mce_plugins', 'disable_emojicons_tinymce' );\n}", "title": "" }, { "docid": "8dfbd4bf5e73132f098b838cf6d851f3", "score": "0.56892663", "text": "function hide_editor_from_homepage() {\n\n\tif ( is_homepage_template() ) {\n\t\tremove_meta_box( 'postexcerpt' , 'page' , 'normal' );\n\t\tremove_post_type_support('page', 'editor');\n\t}\n}", "title": "" }, { "docid": "0f4ea96577ca9b9276cc6b71d69f6285", "score": "0.56886953", "text": "function my_edit_toolbar($wp_toolbar) {\n\t$wp_toolbar->remove_node('wp-logo');\n\t$wp_toolbar->remove_node('customize');\n\t$wp_toolbar->remove_node('updates');\n\t$wp_toolbar->remove_node('comments');\n\t$wp_toolbar->remove_node('new-content');\n}", "title": "" }, { "docid": "5f22897d8e23a970adbcaf91715980b4", "score": "0.5684459", "text": "function gat_remove_scripts_meta_boxes() {\n\n\tremove_post_type_support( 'post', 'genesis-scripts' );\t\t\t\t\t\t\t// Posts\n\tremove_post_type_support( 'page', 'genesis-scripts' );\t\t\t\t\t\t\t// Pages\n\n}", "title": "" }, { "docid": "f6996aa0c4f8e8d04a74a5df28c280b9", "score": "0.5683647", "text": "public function genlite_unregister_tags() {\n\t\tunregister_taxonomy_for_object_type( 'post_tag', 'post' );\n\t}", "title": "" }, { "docid": "8a74848e9baeca62d67de1b4fdc37526", "score": "0.56795216", "text": "public function tinymce_loader() {\n\t\t\tadd_filter ( 'mce_external_plugins', array (__class__, 'essb_pp_tinymce_core' ) );\n\t\t\tadd_filter ( 'mce_buttons', array (__class__, 'essb_pp_tinymce_buttons' ) );\n\t\t}", "title": "" }, { "docid": "3d11037852ed78bb4483d41aad7802df", "score": "0.5677594", "text": "function remove_meta_boxes() {\n global $current_user;\n \n\t\t\t\t// Remove all Comments\n \tif ( ! cbstdsys_opts('m_comments') ) {\n remove_meta_box( 'commentstatusdiv' , 'post' , 'normal' );\n \tremove_meta_box( 'commentstatusdiv' , 'page' , 'normal' );\n \t// eingegangene Kommentare\n \tremove_meta_box( 'commentsdiv' , 'post' , 'normal' ); \n \tremove_meta_box( 'commentsdiv' , 'page' , 'normal' );\n \t// Trackbacks zulassen\n \tremove_meta_box( 'trackbacksdiv' , 'post' , 'normal' ); \n \tremove_meta_box( 'trackbacksdiv' , 'page' , 'normal' );\n \t}\n\n\t\t\t\t// Remove only Comments for Pages\n\t\t\t\tif( defined('CBSTDSYS_DISABLE_PAGE_COMMENTS') ) {\n \t\t\tremove_meta_box( 'commentstatusdiv' , 'page' , 'normal' );\n \tremove_meta_box( 'commentsdiv' , 'page' , 'normal' );\n \tremove_meta_box( 'trackbacksdiv' , 'page' , 'normal' );\n\t\t\t\t}\n\t\t\t\t\n \t// Titelform\n \t// div#slugdiv just hidden with css, to keep functionality\n \t\n \t// Versionierung\n \t#remove_meta_box( 'revisionsdiv' , 'post' , 'normal' ); \n \t#remove_meta_box( 'revisionsdiv' , 'page' , 'normal' );\n \t\n \t// Autor\n \t// moved to publishing metabox @since 0.1.4\n \tremove_meta_box( 'authordiv' , 'post' , 'normal' );\n \tremove_meta_box( 'authordiv' , 'page' , 'normal' );\n\n \tif ( !in_array($current_user->ID, cbstdsys_opts('a_admin_user_IDs') ) ) {\n \t// Custom Fields\n remove_meta_box( 'postcustom' , 'post' , 'normal' ); \n \tremove_meta_box( 'postcustom' , 'page' , 'normal' );\n \t// Parent Pages\n \tremove_meta_box( 'pageparentdiv' , 'page' , 'normal' );\n \t}\n \t\n // Artikelbild\n \tif ( ! current_theme_supports( 'post-thumbnails' ) ) { \t\n remove_meta_box( 'postimagediv' , 'post' , 'normal' ); \n \tremove_meta_box( 'postimagediv' , 'page' , 'normal' );\n \t}\n // post formats metabox only, if there is more than one post format\n $post_formats = get_theme_support( 'post-formats' );\n \tif ( ( current_theme_supports( 'post-formats' ) && count( $post_formats, COUNT_RECURSIVE ) <= 1 )\n\t\t\t\t\t\t\t|| ! current_theme_supports( 'post-formats' ) ) {\n \tremove_meta_box( 'formatdiv' , 'post' , 'normal' );\n \tremove_meta_box( 'formatdiv' , 'page' , 'normal' );\n \t}\n \t// Tags\n \tif ( ! cbstdsys_opts('m_tags') ) {\n \tremove_meta_box( 'tagsdiv-post_tag' , 'post' , 'side' ); \n \tremove_meta_box( 'tagsdiv-post_tag' , 'page' , 'side' );\n \t}\n \t// Categories\n \tif ( ! cbstdsys_opts('m_blog') ) {\n\t\t \tremove_meta_box( 'categorydiv' , 'post' , 'normal' );\n\t\t \tremove_meta_box( 'categorydiv' , 'page' , 'normal' );\n remove_meta_box( 'add-category', 'nav-menus', 'side');\n\t\t\t\t}\n \t\n \t// \"Einrichtung des mehrsprachigen Inhalts\"\n \tremove_meta_box( 'icl_div' , 'post' , 'advanced' );\n \tremove_meta_box( 'icl_div_config' , 'post' , 'normal' );\n\n\t\t\t\t// Anordnung im Theme - >> Design >> Menüs\n \tif ( !in_array($current_user->ID, cbstdsys_opts('a_admin_user_IDs') ) ) {\n \t\t\tremove_meta_box('nav-menu-theme-locations', 'nav-menus', 'side');\n \t}\n }", "title": "" }, { "docid": "72886f42f97b3df1a1f1f37bcb0b1401", "score": "0.5674996", "text": "function my_cleanup() {\nif ( !is_admin() ) {\nglobal $WP_Views;\nremove_action('wp_print_styles', array($WP_Views, 'add_render_css'));\nremove_action('wp_head', 'wpv_add_front_end_js');\nremove_action('wp_footer', 'wpcf_access_dependencies_render_js');\nwp_dequeue_style( 'views-pagination-style' );\nwp_dequeue_script( 'views-pagination-script' );\nwp_dequeue_script( 'wpv-date-front-end-script' );\nwp_dequeue_script( 'jquery-ui-datepicker' );\nwp_dequeue_script( 'jquery-ui-core' );\nwp_dequeue_style( 'jquery-ui-datepicker' );\n}\n}", "title": "" }, { "docid": "4cd6fe6ddb7f830366f56610fa55c1e0", "score": "0.5672568", "text": "function _s_wpml_disable_icl_metabox() {\n\t\tglobal $post;\n\t\tif ( isset( $post->post_type ) ) {\n\t\t\tremove_meta_box( 'icl_div_config', $post->post_type, 'normal' );\n\t\t}\n\t}", "title": "" }, { "docid": "a23e3544cddc407f73283b61906d55cf", "score": "0.56720406", "text": "function disable_emoji_feature() {\n\n\t// Prevent Emoji from loading on the front-end\n\tremove_action( 'wp_head', 'print_emoji_detection_script', 7 );\n\tremove_action( 'wp_print_styles', 'print_emoji_styles' );\n\n\t// Remove from admin area also\n\tremove_action( 'admin_print_scripts', 'print_emoji_detection_script' );\n\tremove_action( 'admin_print_styles', 'print_emoji_styles' );\n\n\t// Remove from RSS feeds also\n\tremove_filter( 'the_content_feed', 'wp_staticize_emoji');\n\tremove_filter( 'comment_text_rss', 'wp_staticize_emoji');\n\n\t// Remove from Embeds\n\tremove_filter( 'embed_head', 'print_emoji_detection_script' );\n\n\t// Remove from emails\n\tremove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );\n\n\t// Disable from TinyMCE editor. Currently disabled in block editor by default\n\tadd_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' );\n\n\tadd_filter( 'option_use_smilies', '__return_false' );\n\n}", "title": "" }, { "docid": "67b06ba5069afd38a0913677708c8b67", "score": "0.5668497", "text": "function dude_remove_styles() {\n if ( is_page_template( 'template-surveys-modern.php' ) || is_page_template( 'template-surveys-wpforms.php' ) ) {\n wp_dequeue_style( 'styles' );\n wp_enqueue_style( 'surveystyles', get_theme_file_uri( 'css/surveys.min.css' ), array(), filemtime( get_theme_file_path( 'css/surveys.min.css' ) ) );\n }\n\n if ( is_page_template( 'template-ama.php' ) ) {\n wp_dequeue_style( 'styles' );\n wp_enqueue_style( 'amastyles', get_theme_file_uri( 'css/ama.min.css' ), array(), filemtime( get_theme_file_path( 'css/ama.min.css' ) ) );\n add_filter( 'pre_option_rg_gforms_disable_css', '__return_true' );\n }\n\n if ( get_post_type() === 'merch' ) {\n wp_dequeue_style( 'styles' );\n wp_enqueue_style( 'surveystyles', get_theme_file_uri( 'css/store.min.css' ), array(), filemtime( get_theme_file_path( 'css/store.min.css' ) ) );\n }\n}", "title": "" }, { "docid": "6daad7b897af7d60212ee9e4e9afad5b", "score": "0.5667575", "text": "function disable_emojis_tinymce( $plugins ) {\n if ( is_array( $plugins ) ) {\n return array_diff( $plugins, array( 'wpemoji' ) );\n } else {\n return array();\n }\n }", "title": "" }, { "docid": "a673a8496c5bbfb210685cf57d911f65", "score": "0.5664128", "text": "function dt_syntext_remove_hooks() {\n register_api_field(\n 'ait-item',\n 'plaintext',\n array(\n 'get_callback' => 'dt_return_syntext_remove_content',\n )\n );\n}", "title": "" }, { "docid": "be3831a102bc434141507ca935725b4f", "score": "0.566046", "text": "public function setupTinymcePlugin()\n {\n if (! current_user_can('edit_posts') && ! current_user_can('edit_pages')) {\n return;\n }\n\n // Check if the logged in WordPress User has the Visual Editor enabled\n // If not, don't register our TinyMCE plugin\n if (get_user_option('rich_editing') !== 'true') {\n return;\n }\n\n $this->init();\n\n if (!$this->pluginSlug || !$this->pluginSlug) {\n return;\n }\n\n //Change button row placement if buttonRow is defined\n if (isset($this->buttonRow) && is_numeric($this->buttonRow) && $this->buttonRow > 1) {\n $this->buttonFilter .= '_' . $this->buttonRow;\n }\n\n //LocalizeData (if any)\n if (is_array($this->data) && !empty($this->data)) {\n add_action('admin_head', array($this, 'localizeScript'));\n }\n\n add_filter('mce_external_plugins', array($this, 'addTinyMcePlugin'));\n add_filter($this->buttonFilter, array($this, 'addTinymceToolbarButton' ));\n }", "title": "" }, { "docid": "a5bf6a4cbbd43d94737db54c4178221c", "score": "0.5660362", "text": "function rocket_disable_emoji_tinymce( $plugins ) {\r\n\t_deprecated_function( __FUNCTION__ . '()', '3.7' );\r\n\tif ( is_array( $plugins ) ) {\r\n\t\treturn array_diff( $plugins, [ 'wpemoji' ] );\r\n\t}\r\n\r\n\treturn [];\r\n}", "title": "" }, { "docid": "9950721d01d180ed2eea585f3517794d", "score": "0.56528586", "text": "function removeDefaultCustomFields( $type, $context, $post ) {\n\t\t\tforeach ( array( 'normal', 'advanced', 'side' ) as $context ) {\n\t\t\t\tremove_meta_box( 'postcustom', 'post', $context );\n\t\t\t\tremove_meta_box( 'postcustom', 'page', $context );\n\t\t\t\t//Use the line below instead of the line above for WP versions older than 2.9.1\n\t\t\t\t//remove_meta_box( 'pagecustomdiv', 'page', $context );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "5932ffd7c13b9628bfe560e3a83fdd49", "score": "0.5652641", "text": "function timeline_remove_style()\n{\n if (is_page('my-page')) {\n $theme = wp_get_theme();\n \n $parent_style = $theme->stylesheet . '-style'; \n \n wp_dequeue_style($parent_style);\n wp_deregister_style($parent_style);\n wp_deregister_style($parent_style . '-css');\n }\n}", "title": "" }, { "docid": "06f59901b204dab5ae3c164e581a4fef", "score": "0.56474054", "text": "function dg_remove_page_templates( $templates ) {\n\n unset( $templates['page-templates/blank.php'] );\n\n unset( $templates['page-templates/right-sidebarpage.php'] );\n\n unset( $templates['page-templates/both-sidebarspage.php'] );\n\n unset( $templates['page-templates/empty.php'] );\n\n unset( $templates['page-templates/fullwidthpage.php'] );\n\n unset( $templates['page-templates/left-sidebarpage.php'] );\n\n unset( $templates['page-templates/right-sidebarpage.php'] );\n\n return $templates;\n\n}", "title": "" }, { "docid": "e67d480eb106d181f13c0e674da323c2", "score": "0.56421316", "text": "function deactivate_gravity_forms_editor() {\n $role = get_role( 'editor' );\n $role->remove_cap( 'gravityforms_view_entries' );\n $role->remove_cap( 'gravityforms_edit_entries' );\n $role->remove_cap( 'gravityforms_delete_entries' );\n $role->remove_cap( 'gravityforms_export_entries' );\n $role->remove_cap( 'gravityforms_view_entry_notes' );\n $role->remove_cap( 'gravityforms_edit_entry_notes' );\n}", "title": "" }, { "docid": "4b91c1471c79202ae29c073d9539e669", "score": "0.5641324", "text": "function disable_wp_emojicons() {\r\n remove_action('admin_print_styles', 'print_emoji_styles');\r\n remove_action('wp_head', 'print_emoji_detection_script', 7 );\r\n remove_action('admin_print_scripts', 'print_emoji_detection_script');\r\n remove_action('wp_print_styles', 'print_emoji_styles');\r\n remove_filter('wp_mail', 'wp_staticize_emoji_for_email');\r\n remove_filter('the_content_feed', 'wp_staticize_emoji');\r\n remove_filter('comment_text_rss', 'wp_staticize_emoji');\r\n}", "title": "" }, { "docid": "801c06b5ea2f50855c3737192a606945", "score": "0.56349677", "text": "public function delete_theme_mods() {\n remove_theme_mod( 'wpex_inline_css_cache' );\n remove_theme_mod( 'wpex_load_google_fonts_cache' );\n }", "title": "" }, { "docid": "fc6aa73768bdbaffd9a3d6c91fd75a26", "score": "0.5632094", "text": "function wpeb_disable_wp_emoji_icons() {\n // Remove actions related to emojis\n remove_action('admin_print_styles', 'print_emoji_styles');\n remove_action('wp_head', 'print_emoji_detection_script', 7);\n remove_action('admin_print_scripts', 'print_emoji_detection_script');\n remove_action('wp_print_styles', 'print_emoji_styles');\n remove_filter('wp_mail', 'wp_staticize_emoji_for_email');\n remove_filter('the_content_feed', 'wp_staticize_emoji');\n remove_filter('comment_text_rss', 'wp_staticize_emoji');\n\n // Add filter to remove TinyMCE emojis\n add_filter('tiny_mce_plugins', 'wpeb_disable_wp_emoji_icons_tinymce');\n }", "title": "" }, { "docid": "0a2d3d9d0d8b6c3ec254b4bdc604c42e", "score": "0.56304544", "text": "function ecclesio_remove_scripts() {\n if (!is_admin()) {\n // CSS\n wp_dequeue_style('wpdm-font-awesome');\n wp_dequeue_style('wpdm-front');\n wp_dequeue_style('wpdm-bootstrap');\n wp_dequeue_style('bodhi-svgs-attachment');\n wp_dequeue_style('duplicate-post');\n // JS\n wp_dequeue_script( 'wpdm-bootstrap' );\n wp_dequeue_script( 'frontjs' );\n wp_dequeue_script( 'jquery-choosen' );\n }\n}", "title": "" }, { "docid": "6d2a3cf0a53990087ea32c837891c8c6", "score": "0.56303746", "text": "function nebuloshift_gutenberg_disable_custom_colors() {\n\tadd_theme_support( 'editor-color-palette' );\n\tadd_theme_support( 'disable-custom-colors' );\n}", "title": "" }, { "docid": "f3ae20932b1ec28f98e7bb51fe5c30ee", "score": "0.56097734", "text": "function my_add_tinymce_plugin( $plugin_array ) {\n $plugin_array['my_mce_button'] = get_template_directory_uri() .'/js/customshortcodes.js';\n return $plugin_array;\n}", "title": "" } ]
c3cd5b5399e835c3fdbc6309ee978f5b
Populate the event pulldown selection list then collect the response via server callback:
[ { "docid": "cf00b319bc258bb7ae4071da57c678ab", "score": "0.4684421", "text": "function event_list(&$state) {\n\tglobal $_DB;\n\n\t$state->records = array();\n\n\t$sql = \"SELECT * FROM \".$_DB->prefix.\"a30_event\n\t\t\tWHERE project_idref=\".$state->project_id.\"\n\t\t\tORDER BY name;\";\n\t$stmt = $_DB->query($sql);\n\twhile ($row = $stmt->fetchObject()) {\n\t\t$element = array();\n\t\tif ($row->name == \"*\") {\n\t\t\t$element[0] = \"N/A\";\n\t\t} else {\n\t\t\t$element[0] = substr($row->name.\": \".$row->description,0,25);\n\t\t}\n\t\t$element[1] = \"\";\n\t\tif (!is_null($row->inactive_asof)) {\n\t\t\t$inact = new DateTime($row->inactive_asof);\n\t\t\tif ($inact <= $state->from_date) continue;\n\t\t\tif ($state->to_date >= $inact)\n\t\t\t\t$element[1] = $row->inactive_asof;\n\t\t}\n\t\t$state->records[strval($row->event_id)] = $element;\n\t}\n\t$stmt->closeCursor();\n}", "title": "" } ]
[ { "docid": "affe1ac678aed5c5696138de4e568243", "score": "0.6343075", "text": "public function ajax_response() {\n\n\t\t\tTribe__Events__Query::init();\n\n\t\t\t$tribe_paged = ( ! empty( $_POST['tribe_paged'] ) ) ? intval( $_POST['tribe_paged'] ) : 1;\n\t\t\t$post_status = array( 'publish' );\n\t\t\tif ( is_user_logged_in() ) {\n\t\t\t\t$post_status[] = 'private';\n\t\t\t}\n\n\t\t\t$args = array(\n\t\t\t\t'eventDisplay' => 'list',\n\t\t\t\t'post_type' => Tribe__Events__Main::POSTTYPE,\n\t\t\t\t'post_status' => $post_status,\n\t\t\t\t'paged' => $tribe_paged,\n\t\t\t\t'featured' => tribe( 'tec.featured_events' )->featured_events_requested(),\n\t\t\t);\n\n\t\t\t// check & set display\n\t\t\tif ( isset( $_POST['tribe_event_display'] ) ) {\n\t\t\t\tif ( 'past' === $_POST['tribe_event_display'] ) {\n\t\t\t\t\t$args['eventDisplay'] = 'past';\n\t\t\t\t\t$args['order'] = 'DESC';\n\t\t\t\t} elseif ( 'all' === $_POST['tribe_event_display'] ) {\n\t\t\t\t\t$args['eventDisplay'] = 'all';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// check & set event category\n\t\t\tif ( isset( $_POST['tribe_event_category'] ) ) {\n\t\t\t\t$args[ Tribe__Events__Main::TAXONOMY ] = $_POST['tribe_event_category'];\n\t\t\t}\n\n\t\t\t$args = apply_filters( 'tribe_events_listview_ajax_get_event_args', $args, $_POST );\n\n\t\t\t$query = tribe_get_events( $args, true );\n\n\t\t\t// $hash is used to detect whether the primary arguments in the query have changed (i.e. due to a filter bar request)\n\t\t\t// if they have, we want to go back to page 1\n\t\t\t$hash = $query->query_vars;\n\n\t\t\t$hash['paged'] = null;\n\t\t\t$hash['start_date'] = null;\n\t\t\t$hash['end_date'] = null;\n\t\t\t$hash['search_orderby_title'] = null;\n\t\t\t$hash_str = md5( maybe_serialize( $hash ) );\n\n\t\t\tif ( ! empty( $_POST['hash'] ) && $hash_str !== $_POST['hash'] ) {\n\t\t\t\t$tribe_paged = 1;\n\t\t\t\t$args['paged'] = 1;\n\t\t\t\t$query = tribe_get_events( $args, true );\n\t\t\t}\n\n\n\t\t\t$response = array(\n\t\t\t\t'html' => '',\n\t\t\t\t'success' => true,\n\t\t\t\t'max_pages' => $query->max_num_pages,\n\t\t\t\t'hash' => $hash_str,\n\t\t\t\t'tribe_paged' => $tribe_paged,\n\t\t\t\t'total_count' => $query->found_posts,\n\t\t\t\t'view' => 'list',\n\t\t\t);\n\n\t\t\tglobal $post;\n\t\t\tglobal $paged;\n\t\t\tglobal $wp_query;\n\n\t\t\t$wp_query = $query;\n\n\t\t\tif ( ! empty( $query->posts ) ) {\n\t\t\t\t$post = $query->posts[0];\n\t\t\t}\n\n\t\t\t$paged = $tribe_paged;\n\n\t\t\tTribe__Events__Main::instance()->displaying = apply_filters( 'tribe_events_listview_ajax_event_display', 'list', $args );\n\n\t\t\tif ( ! empty( $_POST['tribe_event_display'] ) && 'past' === $_POST['tribe_event_display'] ) {\n\t\t\t\t$response['view'] = 'past';\n\t\t\t}\n\n\t\t\tob_start();\n\t\t\ttribe_get_view( 'list/content' );\n\t\t\t$response['html'] .= ob_get_clean();\n\n\t\t\tapply_filters( 'tribe_events_ajax_response', $response );\n\n\t\t\theader( 'Content-type: application/json' );\n\t\t\techo json_encode( $response );\n\n\t\t\tdie();\n\t\t}", "title": "" }, { "docid": "d57cc0e5582b2e88f0047b9d26b5ca0f", "score": "0.59699833", "text": "public function getEventsList($request, $response, $args){\n\t\t$id = $args['id']; // Event Group ID\n $validations = [\n v::intVal()->validate($id)\n ];\n\n if ($this->validate($validations) === false) {\n return $response->withStatus(400);\n }\n\t\t // Get all the events which are sold\n\t\t $mapped_eventGroups = Models\\Event::with('city')->\n\t\t\t\t\t\t\t\t\t\t where('eventgroup_id', '=', $id)->\n\t\t\t\t\t\t\t\t\t\t orderBy('title', 'ASC')->\n\t\t\t\t\t\t\t\t\t\t get();\n\t\t $result = '';\n\t\t foreach($mapped_eventGroups as $row){ \n\t\t\t $id = $row['id'];\n\t\t\t $title = trim(strip_tags(trim(clearString(htmlspecialchars_decode($row['title'])))));\n\t\t\t $city = $row['city']['name'];\n\t\t\t $date = hr_date($row['date']);\n\t\t\t $title = $title. ' ['.$city.'] ['.$date.']';\n\t\t\t $result .= '<option value=\"'.$id.'\">'.$title.'</option>';\n\t\t }\n\t\t$option = '<option value=\"\">'.$this->lang['dashboard_select_event_text'].'</option>';\n\t\t$option .= $result;\n\t\techo $option;\n\t\t\n\t}", "title": "" }, { "docid": "dbd29e1da26ead7fca56dd0518a8b7d1", "score": "0.59638405", "text": "public function populate_events() {\n\t\t$this->all_events = $this->get_events_json();\n\t\t//var_dump(get_the_title());\n\t\t//var_dump($this->all_events);\n\n\t}", "title": "" }, { "docid": "026bfd1b91943eeca3576c3dab2f4f32", "score": "0.5705856", "text": "public function ajax_front_end_create_events() {\n\t\t$options = array();\n\t\tif ( ! empty( $_POST['form_data'] ) ) {\n\t\t $form_data = explode( '&', str_replace( '+', ' ', urldecode( $_POST['form_data'] ) ) );\n\t\t foreach ( $form_data as $fd_key => $form_value ) {\n\t\t $value = explode('=', $form_value );\n\t\t if ( stripos( $value[0], 'event_' ) !== false || stripos( $value[0], 'venue_' ) !== false || stripos( $value[0], 'user_' ) !== false ) {\n\t\t\t if ( 'event_category' === $value[0] ) {\n\t\t\t\t $options[$value[0]][] = $value[1];\n\t\t\t } else {\n\t\t\t\t $options[$value[0]] = $value[1];\n }\n } else {\n $options[$value[0]][] = $value[1];\n }\n }\n\t\t}\n\n\t\tif ( ! empty( $_POST['event_description'] ) ) {\n\t\t\t$options['event_description'] = urldecode( $_POST['event_description'] );\n\t\t}\n\n\t\tif ( ! empty( $_POST['geo_location'] ) ) {\n\t\t\t$options['geo_location'] = urldecode( $_POST['geo_location'] );\n }\n\n\t\t// Geo location\n\t\tWST()->google()->setMapApiKey( 'AIzaSyDsDg91ttiKxcMGzz5l3dyEsN2984NsNbs' );\n\t\t$address = WST()->google()->urlencode_address( $options['venue_name'] . ' ' . $options['venue_location'] );\n\t\t$options['geo_location'] = WST()->google()->getCoordinates( $address );\n\t\t$options['existing'] = 0;\n\n // Create New Contributor\n\t\tif ( is_user_logged_in() ) {\n\t\t\t$options['post_author'] = get_current_user_id();\n\t\t\t$options['existing'] = 1;\n\t\t} elseif( 'existing' === $options['user_type'] ) {\n\t\t // get data of current user from DB\n\t\t\t$registered_user_id = email_exists( $options['user_email_registered'] );\n\t\t\tif ( $registered_user_id ) {\n\t\t\t\t$user = get_userdata( $registered_user_id );\n\t\t\t\tif ( wp_check_password( $options['user_password_registered'], $user->data->user_pass ) ) {\n\t\t\t\t\t$options['post_author'] = $registered_user_id;\n\t\t\t\t\t$options['existing'] = 1;\n\t\t\t\t} else {\n\t\t\t\t\twp_send_json( array( 'status' => false, 'content' => __( 'Password is Incorrect', 'wst' ) ) );\n }\n } else {\n\t\t\t\twp_send_json( array( 'status' => false, 'content' => __( 'Login or Password is Incorrect', 'wst' ) ) );\n }\n } else {\n\t\t $user_login = str_replace( ' ', '.', $options['user_name'] );\n\t\t $user_nicename = str_replace( ' ', '-', $options['user_name'] );\n\n\t\t $ext_name = explode(' ', $options['user_name'] );\n\t\t $first_name = $ext_name[0] ? $ext_name[0] : '';\n\t\t $last_name = $ext_name[01] ? $ext_name[1] : '';\n\n\t\t\t$userdata = array(\n\t\t\t\t'user_pass' => $options['user_password'],\n\t\t\t\t'user_login' => $user_login,\n\t\t\t\t'user_nicename' => $user_nicename,\n\t\t\t\t'user_url' => $options['user_web'],\n\t\t\t\t'user_email' => $options['user_email'],\n\t\t\t\t'display_name' => wp_strip_all_tags( $options['user_name'] ),\n\t\t\t\t'nickname' => $first_name . $last_name,\n\t\t\t\t'first_name' => $first_name,\n\t\t\t\t'last_name' => $last_name,\n\t\t\t\t'description' => '',\n\t\t\t\t'rich_editing' => 'true',\n\t\t\t\t'user_registered' => current_time('mysql'),\n\t\t\t\t'role' => 'contributor',\n\t\t\t\t'jabber' => '',\n\t\t\t\t'aim' => '',\n\t\t\t\t'yim' => '',\n\t\t\t);\n\n\t\t\t$options['post_author'] = wp_insert_user( $userdata );\n\t\t\tupdate_user_meta( $options['post_author'], 'billing_phone', $options['user_phone'] );\n\t\t\tupdate_user_meta( $options['post_author'], 'billing_company', $options['user_company'] );\n\t\t\tupdate_user_meta( $options['post_author'], 'billing_first_name', $first_name );\n\t\t\tupdate_user_meta( $options['post_author'], 'billing_last_name', $last_name );\n\t\t\tupdate_user_meta( $options['post_author'], 'billing_email', $options['user_email'] );\n\t\t\tupdate_user_meta( $options['post_author'], 'full_name', strtolower( $options['user_name'] ) );\n\t\t\tupdate_user_meta( $options['post_author'], 'show_admin_bar_front', true );\n }\n\n\t\t$max_price_index = array_search( max( $options['tt_price'] ), $options['tt_price'] );\n\t\t$options['max_price_index'] = $options['tt_price'][$max_price_index];\n\n\t\t// create event post\n\t\t$options['event_name'] = $this->create_tc_event_post($options);\n\t\twp_set_post_terms( $options['event_name'], $options['event_category'], 'event_category', true );\n\n\t\t// Add event id ro the list of contributor events\n\t\t$event_list = array();\n\t\tif ( $options['existing'] ) {\n\t\t\t$event_list = maybe_unserialize( get_user_meta( $options['post_author'], 'hs_contributor_event_list', true ) );\n }\n\t\t$event_list[] = $options['event_name'];\n\t\tupdate_user_meta( $options['post_author'], 'hs_contributor_event_list', $event_list );\n\n\t\t// Event Logo\n\t\t$options['event_image_id'] = '';\n\t\t$options['event_image_url'] = '';\n\t\tif ( ! empty( $_FILES ) ) {\n\t\t\t$event_image = $this->download_image( $_FILES, $options['event_name'] );\n\t\t\t$options['event_image_id'] = $event_image[0];\n\t\t\t$options['event_image_url'] = $event_image[1];\n\t\t\tupdate_post_meta( $options['event_name'], 'event_logo_file_url', $options['event_image_url'] );\n }\n\n\t\t// create woo event product\n\t\t$woo_event_product_id = $this->create_tc_event_wc_product( $options );\n\n\t\t// create ticket-type products and variation products of event\n $tickets_length = count( $options['tt_title'] );\n for ( $i = 0; $i < $tickets_length; $i++ ) {\n\n\t $tt_wc_product = $this->create_ticket_type_wc_product( $i, $options );\n\n // add category to woo ticket type | add biljettyp - id: 323\n $options['event_category'] = 323;\n wp_set_post_terms( $tt_wc_product, $options['event_category'], 'product_cat', true );\n\n\t // create variable products\n\t $this->create_tc_event_wc_variation_product( $woo_event_product_id, $i, $options );\n }\n\n $this->create_page_with_map_widget( $options, $woo_event_product_id );\n\n // Send notification to admin\n $this->send_mail_to_admin( $options, $woo_event_product_id );\n $this->send_mail_to_contributor( $options );\n\n\t\twp_send_json( array( 'status' => true ) );\n\t}", "title": "" }, { "docid": "79813ac1e3795be4deead333d1445837", "score": "0.56537616", "text": "public function emails_select(): void\n {\n $response = $this->check_request('Get selections');\n if (!$response) {\n //$created = input_request('created');\n $group = input_request('group');\n $exclude = \"true\" === input_request('exclude');\n $active = $this->get_flag(input_request('active'));\n $response = $this->get_response(false, 'Get selection');\n $response['select'] = $this->select_search(\n $group, $exclude, $active);\n }\n exit(json_encode($response));\n }", "title": "" }, { "docid": "3143654482293a131bf8178147bdacc6", "score": "0.56304705", "text": "private function getListEvents(){\r\n\r\n\t\t//echo 'masuk bray' . $this->get_request_method();\r\n\r\n\t\tif($this->get_request_method() != \"POST\"){\r\n\t\t\t$this->response('',406);\r\n\t\t}\r\n\r\n\r\n\t\t/*if (mysqli_query($this->conn, $sql)){\r\n if (mysqli_num_rows($sql) > 0){\r\n $result = array();\r\n while($rlt = mysqli_fetch_array($sql)){\r\n $result[] = $rlt;\r\n }\r\n $this->response($this->json($result), 200);\r\n }\r\n }*/\r\n\r\n\r\n\t\t$sql = \"select * from pes_event a, pes_event_type b where a.pes_event_type_id_pes_event_type = b.id_pes_event_type;\";\r\n\r\n\t\tif(!$result = $this->db->query($sql)){\r\n\t\t\tdie('There was an error running the query [' . $this->db->error . ']');\r\n\t\t}\r\n\r\n\t\t$result_json = array();\r\n\r\n\t\twhile($row = $result->fetch_assoc()){\r\n\t\t\t$result_json = $row;\r\n\t\t}\r\n\t\t$this->response($this->json($result_json), 200);\r\n\r\n\t\t// If invalid inputs \"Bad Request\" status message and reason\r\n\t\t$error = array('status' => \"Failed\", \"msg\" => mysqli_query($this->conn, $sql));\r\n\t\t$this->response($this->json($error), 400);\r\n\t}", "title": "" }, { "docid": "2b5e2129fe67d90825e3fc91e7578894", "score": "0.5571398", "text": "function GetSelectionData(){}", "title": "" }, { "docid": "d11f8c11a3f3a577dca9ec9d4149ceb4", "score": "0.5472099", "text": "function populate_events() {\n\t\t$this->events = get_posts( $this->query );\n\t\t$this->events = apply_filters( 'ep-calendar-events', $this->events );\n\t}", "title": "" }, { "docid": "d39abddf6ec5d25b6b8f6762160030f7", "score": "0.54338354", "text": "public function listAction() {\n\t\t$this->view->assignMultiple(array('success' => TRUE, 'message' => 'Events loaded', 'data' => $this->eventService->findAll()));\n\t}", "title": "" }, { "docid": "c10345f3ebcd8e2cc987d944f8110d60", "score": "0.543111", "text": "public function loadEvents()\n {\n // echo '<pre>';\n // $data = $this->DB\n // ->select([ 'id', 'blog_id', 'option_name', 'option_value', 'created_at', 'updated_at' ])\n // ->from( $this->tables->settings, 'settings' )\n // ->where( 'id', 'id', '=', true )\n // ->and()\n // ->dateRange( 'updated_at', '-7 day', 'now' )\n // ->orderBy( 'id' )\n // ->limit( 011 )\n // ->getResults();\n\n // echo $this->DB->last_query;\n // echo '<hr>';\n\n // print_r( $data );\n // exit;\n\n return $this->auditable_event_list;\n }", "title": "" }, { "docid": "d313e15d75f42ed55eb412c9833998b4", "score": "0.54116344", "text": "public function getEventCategoriesList($request, $response, $args){\n\t\t$id = $args['id']; // Event ID\n $validations = [\n v::intVal()->validate($id)\n ];\n\n if ($this->validate($validations) === false) {\n return $response->withStatus(400);\n }\n\t\t // Get all the events which are sold\n\t\t $mapped_eventCats = Models\\EventSeatCategories::\n\t\t\t\t\t\t\t\t\t\t where('event_id', '=', $id)->\n\t\t\t\t\t\t\t\t\t\t orderBy('seat_category', 'ASC')->\n\t\t\t\t\t\t\t\t\t\t get();\n\t\t $result = '';\n\t\t foreach($mapped_eventCats as $row){ \n\t\t\t $id = $row['id'];\n\t\t\t $title = trim($row['seat_category']);\n\t\t\t $result .= '<option value=\"'.$id.'\">'.$title.'</option>';\n\t\t }\n\t\t$option = '<option value=\"\">Select Category</option>';\n\t\t$option .= $result;\n\t\techo $option;\n\t\t\n\t}", "title": "" }, { "docid": "0a6c90939f12700767f14f0ad5a19919", "score": "0.53321487", "text": "public function ajax_response() {\n\t\t\tif ( isset( $_POST['eventDate'] ) && $_POST['eventDate'] ) {\n\n\t\t\t\tTribe__Events__Query::init();\n\n\t\t\t\t$post_status = array( 'publish' );\n\t\t\t\tif ( is_user_logged_in() ) {\n\t\t\t\t\t$post_status[] = 'private';\n\t\t\t\t}\n\n\t\t\t\t$args = array(\n\t\t\t\t\t'post_status' => $post_status,\n\t\t\t\t\t'eventDate' => $_POST['eventDate'],\n\t\t\t\t\t'eventDisplay' => 'day',\n\t\t\t\t\t'featured' => tribe( 'tec.featured_events' )->featured_events_requested(),\n\t\t\t\t);\n\n\t\t\t\tTribe__Events__Main::instance()->displaying = 'day';\n\n\t\t\t\tif ( isset( $_POST['tribe_event_category'] ) ) {\n\t\t\t\t\t$args[ Tribe__Events__Main::TAXONOMY ] = $_POST['tribe_event_category'];\n\t\t\t\t}\n\n\t\t\t\t$query = tribe_get_events( $args, true );\n\n\t\t\t\tglobal $post;\n\t\t\t\tglobal $wp_query;\n\n\t\t\t\t$wp_query = $query;\n\n\t\t\t\tadd_filter( 'tribe_is_day', '__return_true' ); // simplest way to declare that this is a day view\n\n\t\t\t\tob_start();\n\t\t\t\ttribe_get_view( 'day/content' );\n\n\t\t\t\t$response = array(\n\t\t\t\t\t'html' => ob_get_clean(),\n\t\t\t\t\t'success' => true,\n\t\t\t\t\t'total_count' => $query->found_posts,\n\t\t\t\t\t'view' => 'day',\n\t\t\t\t);\n\t\t\t\tapply_filters( 'tribe_events_ajax_response', $response );\n\n\t\t\t\theader( 'Content-type: application/json' );\n\t\t\t\techo json_encode( $response );\n\t\t\t\tdie();\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "91d6e960e382bfcdb6182190fe4ef774", "score": "0.5301012", "text": "function tp_auto_scroll_build_ddl_event($id, $ddl){\n $data = array();\n\n $data['eventName'] = 'Page Auto Load';\n $data['eventInstanceID'] = $id;\n $data['eventInfo'] = $ddl;\n\n return $data;\n}", "title": "" }, { "docid": "d6da7f294f95464f01cc53acfec25871", "score": "0.52463603", "text": "public function eventListing()\n\t{\n\t\t$classList = array('' => '-- Select --', 'Nursery' => 'Nursery', 'LKG' => 'LKG', 'UKG' => 'UKG');\n\t\tfor($i = 1; $i < 13; $i ++){\n\t\t\t$classList[$i] = 'STD - '.$this->integerToRoman($i);\n\t\t}\n\t\t$events = Event::paginate(15);\n\t\t$customFields['basic'] = array(\n\t\t\t'event_name'=>array('type' => 'text', 'label'=>'Event Name','mandatory'=>true),\n\t\t\t'admission_class'=>array('type' => 'select', 'label'=>'Choose Class', 'value' => $classList, 'mandatory'=>true, 'class' => 'admission_class'),\n \t);\n\t\treturn view('master.event-list', ['otherLinks' => array('link' => url('/').'/event', 'text' => 'Add Event'), 'pageTitle' => 'Event List', 'events' => $events, 'customFields' => $customFields, 'loopInit' => '1']);\n\t}", "title": "" }, { "docid": "82a100026ea647b2523d16291f13d71b", "score": "0.5226791", "text": "public static function registerEventsList(\\Elgg\\Hook $hook) {\n\t\n\t\t$route_params = [\n\t\t\t'list_type' => get_input('list_type'),\n\t\t\t'tag' => get_input('tag'),\n\t\t];\n\t\t$page_owner = elgg_get_page_owner_entity();\n\t\tif ($page_owner instanceof \\ElggGroup) {\n\t\t\t$route_params['guid'] = $page_owner->guid;\n\t\t}\n\t\t\n\t\t$selected = $hook->getParam('filter_value');\n\t\t\n\t\t$returnvalue = $hook->getValue();\n\t\t$returnvalue[] = \\ElggMenuItem::factory([\n\t\t\t'name' => 'live',\n\t\t\t'text' => elgg_echo('event_manager:list:navigation:live'),\n\t\t\t'href' => elgg_generate_url('collection:object:event:live', $route_params),\n\t\t\t'rel' => 'list',\n\t\t\t'selected' => $selected === 'live',\n\t\t\t'priority' => 100,\n\t\t]);\n\t\t$returnvalue[] = \\ElggMenuItem::factory([\n\t\t\t'name' => 'upcoming',\n\t\t\t'text' => elgg_echo('event_manager:list:navigation:upcoming'),\n\t\t\t'href' => elgg_generate_url('collection:object:event:upcoming', $route_params),\n\t\t\t'rel' => 'list',\n\t\t\t'selected' => $selected === 'upcoming',\n\t\t\t'priority' => 200,\n\t\t]);\n\t\t\n\t\t// user links (not in group context)\n\t\tif (!$page_owner instanceof \\ElggGroup && elgg_is_logged_in()) {\n\t\t\t$returnvalue[] = \\ElggMenuItem::factory([\n\t\t\t\t'name' => 'attending',\n\t\t\t\t'text' => elgg_echo('event_manager:menu:attending'),\n\t\t\t\t'href' => elgg_generate_url('collection:object:event:attending', [\n\t\t\t\t\t'username' => elgg_get_logged_in_user_entity()->username,\n\t\t\t\t\t'list_type' => get_input('list_type'),\n\t\t\t\t\t'tag' => get_input('tag'),\n\t\t\t\t]),\n\t\t\t\t'selected' => $selected === 'attending',\n\t\t\t\t'priority' => 300,\n\t\t\t]);\n\t\t\t$returnvalue[] = \\ElggMenuItem::factory([\n\t\t\t\t'name' => 'mine',\n\t\t\t\t'text' => elgg_echo('mine'),\n\t\t\t\t'href' => elgg_generate_url('collection:object:event:owner', [\n\t\t\t\t\t'username' => elgg_get_logged_in_user_entity()->username,\n\t\t\t\t\t'list_type' => get_input('list_type'),\n\t\t\t\t\t'tag' => get_input('tag'),\n\t\t\t\t]),\n\t\t\t\t'selected' => $selected === 'mine',\n\t\t\t\t'priority' => 400,\n\t\t\t]);\n\t\t}\n\t\t\n\t\treturn $returnvalue;\n\t}", "title": "" }, { "docid": "208ba5fa1932afe41c05d7116ad84dc5", "score": "0.5217025", "text": "public function getEventList();", "title": "" }, { "docid": "7277509ef9ac1d4095b6d726a3655d6a", "score": "0.51966584", "text": "function queueDropdown(){\n\t\t$series = grabSeries();\n\t\t$show = grabShow();\n\t\t$division = grabDivision();\n\t\t$skill = grabSkill();\n\t\t$status = grabArtist();\n\t\t$status = grabStatus();\n\t\t\n\t\t$conn = connect_magma();\n\t\t$conn2 = connect_joomla();\n\t\t\n\t\t// if ($seriesId > 0)\n\t\t// {\n\t\t// Series Dropdown\n\t\t// echo \"seriesId has a value and it is \" . $seriesId;\n\t\t// } else {\n\t\t$sql = \"SELECT * FROM divisionOptionsTable WHERE divisionCategoryId = 1 OR divisionCategoryId = 2 OR divisionCategoryId = 13 ORDER BY divisionName ASC\";\n\t\t$result = $conn->query($sql);\n\t\t\n\t\t$sql2 = \"SELECT * FROM skillOptionsTable ORDER BY skillOptionsId ASC\";\n\t\t$result2 = $conn->query($sql2);\n\t\t\n\t\t$sql3 = \"SELECT * FROM assignmentStatusOptionsTable ORDER BY assignmentStatus ASC\";\n\t\t$result3 = $conn->query($sql3);\n\t\t\n\t\t$sql4 = \"SELECT * FROM yoznp_users ORDER BY username ASC\";\n\t\t$result4 = $conn2->query($sql4);\n\t\t\n\t\t$sql5 = \"SELECT * FROM seriesTable ORDER BY seriesTitle ASC\";\n\t\t$result5 = $conn->query($sql5);\n\t\t\n\t\tif ($series == 'all'){\n\t\t\t$sql6 = \"SELECT * FROM showTable ORDER BY showTitle ASC\";\n\t\t} else {\n\t\t\t$sql6 = \"SELECT * FROM showTable WHERE seriesId = \" . $series . \" ORDER BY showTitle ASC\";\t\t\t\n\t\t}\n\t\t$result6 = $conn->query($sql6);\n\t\t\n\t\t// echo \"<form action='./magma?divisionName=1'>\";\n\t\t// echo \"<select name='divisionOptionsId' onchange='this.form.submit()';>\";\n\t\t\n\t\techo \"<table><tr>\";\n\t\techo \"<td><h5>Series</h5></td>\";\n\t\techo \"<td><h5>Show</h5></td>\";\n\t\techo \"<td></td><td></td></tr>\";\n\t\t\n\t\t\n\t\t// Series Select\n\t\techo \"<td><form action='./magma?viewSeriesId=1'><select name='viewSeriesId' onchange='this.form.submit()'>\";\n\t\techo \"<option value='all'>All</option>\";\n\t\twhile($row5 = $result5->fetch_assoc()) {\n\t\t\t$seriesId = $row5['seriesId'];\n\t\t\tif ($series == $seriesId){\n\t\t\t\techo \"<option selected='selected' value='\" . $seriesId . \"'>\";\n\t\t\t} else {\n\t\t\t\techo \"<option value='\" . $seriesId . \"'>\";\n\t\t\t}\n\t\t\techo $row5['seriesTitle'] . \"</option>\";\n\t\t}\n\t\techo \"</select>\";\n\t\t// Hidden Values\n\t\t\n\t\thiddenShow($show);\n\t\thiddenDivision($division);\n\t\thiddenSkill($skill);\n\t\thiddenArtist($artist);\n\t\thiddenStatus($status);\n\n\t\techo \"</form></td>\";\n\t\t\n\t\t// Show Select\n\t\techo \"<td><form action='./magma?viewShowId=1'><select name='viewShowId' onchange='this.form.submit()'>\";\n\t\techo \"<option value='all'>All</option>\";\n\t\twhile($row6 = $result6->fetch_assoc()) {\n\t\t\t$showId = $row6['showId'];\n\t\t\tif ($show == $showId){\n\t\t\t\techo \"<option selected='selected' value='\" . $showId . \"'>\";\n\t\t\t} else {\n\t\t\t\techo \"<option value='\" . $showId . \"'>\";\n\t\t\t}\n\t\t\techo $row6['showTitle'] . \"</option>\";\n\t\t}\n\t\techo \"</select>\";\n\t\t// Hidden Values\n\t\t\n\t\thiddenSeries($series);\n\t\t// hiddenShow($show);\n\t\thiddenDivision($division);\n\t\thiddenSkill($skill);\n\t\thiddenArtist($artist);\n\t\thiddenStatus($status);\n\n\t\techo \"</form></td>\";\n\t\t\n\t\t\n\t\techo \"</tr><tr>\";\n\t\t\n\t\techo \"<td><h5>Division</h5></td>\";\n\t\techo \"<td><h5>Skill</h5></td>\";\n\t\techo \"<td><h5>Artist</h5></td>\";\n\t\techo \"<td><h5>Status</h5></td></tr>\";\n\t\t\n\t\t// Division Select\n\t\techo \"<td><form action='./magma?viewDivisionOptionsId=1'><select name='viewDivisionOptionsId' onchange='this.form.submit()'>\";\n\t\t// \"<select style=width:110px name='easeOptionsId' onchange='this.form.submit()'>\";\n\t\techo \"<option value='all'>All</option>\";\n\t\twhile($row = $result->fetch_assoc()) {\n\t\t\t$divisionOptionsId = $row['divisionOptionsId'];\n\t\t\tif ($division == $divisionOptionsId){\n\t\t\t\techo \"<option selected='selected' value='\" . $divisionOptionsId . \"'>\";\n\t\t\t} else {\n\t\t\t\techo \"<option value='\" . $divisionOptionsId . \"'>\";\n\t\t\t}\n\t\t\techo $row['divisionName'] . \"</option>\";\n\t\t}\n\t\techo \"</select>\";\n\t\t// Hidden Values\n\t\thiddenSeries($series);\n\t\thiddenShow($show);\n\t\thiddenSkill($skill);\n\t\thiddenArtist($artist);\n\t\thiddenStatus($status);\n\n\t\techo \"</form></td>\";\n\t\t\n\t\t// Skill Select\n\t\techo \"<td><form action='./magma?viewSkillOptionsId=1'><select name='viewSkillOptionsId' onchange='this.form.submit()'>\";\n\t\techo \"<option value='all'>All</option>\";\n\t\twhile($row2 = $result2->fetch_assoc()) {\n\t\t\t$skillOptionsId = $row2['skillOptionsId'];\n\t\t\tif ($skill == $skillOptionsId){\n\t\t\t\techo \"<option selected='selected' value='\" . $skillOptionsId . \"'>\";\n\t\t\t} else {\n\t\t\t\techo \"<option value='\" . $skillOptionsId . \"'>\";\n\t\t\t}\n\t\t\techo $row2['skillOptions'] . \"</option>\";\n\t\t}\n\t\techo \"</select>\";\n\t\t\n\t\t// Hidden Values\n\t\thiddenSeries($series);\n\t\thiddenShow($show);\n\t\thiddenDivision($division);\n\t\thiddenArtist($artist);\n\t\thiddenStatus($status);\n\t\techo \"</form></td>\";\n\t\t\n\t\t\n\t\t// Artist Select\n\t\techo \"<td><form action='./magma?viewArtistId=1'><select name='viewArtistId' onchange='this.form.submit()'>\";\n\t\techo \"<option value='all'>All</option>\";\n\t\twhile($row4 = $result4->fetch_assoc()) {\n\t\t\t$artistId = $row4['id'];\n\t\t\tif ($artist == $artistId){\n\t\t\t\techo \"<option selected='selected' value='\" . $artistId . \"'>\";\n\t\t\t} else {\n\t\t\t\techo \"<option value='\" . $artistId . \"'>\";\n\t\t\t}\n\t\t\techo $row4['username'] . \"</option>\";\n\t\t}\n\t\t\n\t\techo \"</select>\";\n\t\t// Hidden Values\n\t\thiddenSeries($series);\n\t\thiddenShow($show);\n\t\thiddenDivision($division);\n\t\thiddenSkill($skill);\n\t\thiddenStatus($status);\n\t\techo \"</form></td>\";\n\t\t\n\t\t\n\t\t// AssignmentStatus Select\n\t\techo \"<td><form action='./magma?viewAssignmentStatusId=1'><select name='viewAssignmentStatusId' onchange='this.form.submit()'>\";\n\t\techo \"<option value='all'>All</option>\";\n\t\twhile($row3 = $result3->fetch_assoc()) {\n\t\t\t$assignmentStatusId = $row3['assignmentStatusId'];\n\t\t\tif ($assignmentStatusId == $status){\n\t\t\t\techo \"<option selected='selected' value='\" . $assignmentStatusId . \"'>\";\n\t\t\t} else {\n\t\t\t\techo \"<option value='\" . $assignmentStatusId . \"'>\";\n\t\t\t}\n\t\t\techo $row3['assignmentStatus'] . \"</option>\";\n\t\t}\n\t\techo \"</select>\";\n\t\t// Hidden Values\n\t\thiddenSeries($series);\n\t\thiddenShow($show);\n\t\thiddenDivision($division);\n\t\thiddenSkill($skill);\n\t\thiddenArtist($artist);\n\t\techo \"</form></td></tr></table>\";\n\t\t\n\t\techo \"<br>\";\n\n\t\tclose_magma();\n\t\tclose_joomla();\n\t}", "title": "" }, { "docid": "a9ec71c7f48c597bd4da21cf427c6154", "score": "0.51840204", "text": "function svc_getEventListAsOptions($past, $tourneys){\n\tglobal $db;\n\t$query = \"SELECT event_id, event_title FROM event_schedule\";\n\tif ($tourneys){\n\t\t$query .= \" WHERE event_type = 0\";\n\t} else {\n\t\t$query .= \" WHERE event_type <= 5\";\n\t}\n\n\tif (!$past){\n\t\t$query .= \" AND event_time >= NOW()\";\n\t}\n\n\t$rs = mysqli_query($db, $query);\n\n\twhile ($opt = mysqli_fetch_assoc($rs)){\n\t\techo \"<option value='\".$opt['event_id'].\"'>\".$opt['event_title'].\"</option>\";\n\t}\n}", "title": "" }, { "docid": "4a8b15e761f010fd45c21e9a6dee5b3c", "score": "0.5097091", "text": "public function eventslistDataAction()\n {\n $monitors = Modules_UptimeRobot_API::fetchUptimeMonitors($this->api_key);\n $list = new Modules_UptimeRobot_List_Events($this->view, $this->_request, $monitors);\n $this->_helper->json($list->fetchData());\n }", "title": "" }, { "docid": "50d700e1020e1bc51e7b92ca4b74bce8", "score": "0.5084398", "text": "private function handleSelectAllGenresRequest() {\r\n\t$genres = $this->model->selectAllGenres();\r\n\tif ($genres != null) {\r\n\t\t$this->sendJSONData($genres);\r\n\t}\r\n}", "title": "" }, { "docid": "a154754c4a63c2d8d6c9b5d00cd09d38", "score": "0.5084354", "text": "public function getEventList() {\n\t\treturn new Google_Calendar_EventList_output(json_decode($this->get('Response'), true));\n\t}", "title": "" }, { "docid": "a154754c4a63c2d8d6c9b5d00cd09d38", "score": "0.5084354", "text": "public function getEventList() {\n\t\treturn new Google_Calendar_EventList_output(json_decode($this->get('Response'), true));\n\t}", "title": "" }, { "docid": "dfd748644012b4bfea5047a71eccec8b", "score": "0.5066689", "text": "function wf_crm_get_events($reg_options, $context) {\n $ret = [];\n $format = wf_crm_aval($reg_options, 'title_display', 'title');\n $params = [\n 'is_template' => 0,\n 'is_active' => 1,\n ];\n $event_types = array_filter((array) $reg_options['event_type'], \"is_numeric\");\n if ($event_types) {\n $params['event_type_id'] = ['IN' => $event_types];\n }\n if (is_numeric(wf_crm_aval($reg_options, 'show_public_events'))) {\n $params['is_public'] = $reg_options['show_public_events'];\n }\n $params['options'] = ['sort' => 'start_date' . ($context == 'config_form' ? ' DESC' : '')];\n $values = wf_crm_apivalues('Event', 'get', $params);\n // 'now' means only current events, 1 means show all past events, other values are relative date strings\n $date_past = wf_crm_aval($reg_options, 'show_past_events', 'now');\n if ($date_past != '1') {\n $date_past = date('Y-m-d H:i:s', strtotime($date_past));\n foreach ($values as $key => $value) {\n if (isset($value['end_date']) && $value['end_date'] <= $date_past) {\n unset($values[$key]);\n }\n }\n }\n // 'now' means only past events, 1 means show all future events, other values are relative date strings\n $date_future = wf_crm_aval($reg_options, 'show_future_events', '1');\n if ($date_future != '1') {\n $date_future = date('Y-m-d H:i:s', strtotime($date_future));\n foreach ($values as $key => $value) {\n if (isset($value['end_date']) && $value['end_date'] >= $date_future) {\n unset($values[$key]);\n }\n }\n }\n foreach ($values as $value) {\n $ret[$value['id'] . '-' . $value['event_type_id']] = wf_crm_format_event($value, $format);\n }\n return $ret;\n}", "title": "" }, { "docid": "1529a387745d45fe16e61e12cbd62439", "score": "0.50568306", "text": "protected function getPrepareProductIndexSelectEventAdditionalData()\n {\n return array();\n }", "title": "" }, { "docid": "8ff15379a83f589d9b8dba64dab2f428", "score": "0.505329", "text": "public function actionGetSelectionList()\n {\n self::selectionList(ClientUsers::className(),'name');\n }", "title": "" }, { "docid": "2e9932b8a6894a4294ebe08a5a1002f4", "score": "0.50454634", "text": "public function events_json_callback() {\n\n\t\treturn;\n\t\t/*\n\t\t//Setup WP_Query to fetch all events within the called ranged \n\t\t//($_GET['start'] and $_GET['end'])\n\t\t$args = array(\n\t\t\t'post_type' => 'event',\n\t\t\t'post_status' => 'any',\n\t\t\t'posts_per_page' => -1,\n\t\t\t\n\t\t\t// this is commented out because we get better performance from returning all events in one go.\n\t\t\t// performance might prove this to be a problem, so we leave this piece of commented out code, as a possible fix for later performance problems. \n\t\t\t// 'meta_query' => array(\n\t\t\t// \t\tarray(\n\t\t\t// \t\t\t'key' => $this->plugin_db_prefix . '_end',\n\t\t\t// \t\t\t'value' => $_GET['start'],\n\t\t\t// \t\t\t'compare' => '>='\n\t\t\t// \t\t),\n\t\t\t// \t\tarray(\n\t\t\t// \t\t\t'key' => $this->plugin_db_prefix . '_start',\n\t\t\t// \t\t\t'value' => $_GET['end'],\n\t\t\t// \t\t\t'compare' => '<='\n\t\t\t// \t\t)\n\t\t\t// \t),\n\t\t\n\t\t);\n\t\t$query = new WP_Query( $args );\n\n\t\t//create an empty array to populate\n\t\t$events_json = array();\n\n\t\t//populate json array\n\t\tif ( $query->have_posts() ): while ( $query->have_posts() ) : $query->the_post();\n\t\t\t\t\n\t\t\t\t$related_post_id = get_mcal_related_id();\n\t\t\t\t$related_post_type = get_post_type($related_post_id);\n\t\t\t\t\n\n\t\t\t\t// \n\t\t\t\t// Make the end date of \"all-day\" events inclusive.\n\t\t\t\t// FullCalendar behaves according to google cal and iCalendar standards: excluding the end date, when all-day is set.\n\t\t\t\t// This seems wierd to our usecase., so we set the end date to the day after, in order to get the correct display in our calendar view.\n\t\t\t\t// Notice, however, that we dont change that actual data stored i db, as we might want to change this behavior later.\n\t\t\t\t// \n\t\t\t\t\n\t\t\t\tif(is_all_day()) {\n\t\t\t\t\t$end_date = date('Y-m-d H:i:s', strtotime(get_mcal_end_date('Y-m-d H:i') . ' + 1 day'));\n\t\t\t\t} else {\n\t\t\t\t\t$end_date = get_mcal_end_date('Y-m-d H:i');\n\t\t\t\t}\n\n\t\t\t\t$events_json[] = array(\n\t\t\t\t\t'id' => get_the_id(),\n\t\t\t\t\t'title' => get_the_title(),\n\t\t\t\t\t'start' => get_mcal_start_date('Y-m-d H:i'),\n\t\t\t\t\t'end' => $end_date,\n\t\t\t\t\t'url' => get_edit_post_link(get_the_id(), ''),\n\t\t\t\t\t'allDay' => is_all_day(),\n\t\t\t\t\t'className' => array('post-type-'.$related_post_type, 'mcal-event', 'event-'.get_the_id() ),\n\t\t\t\t);\n\t\t\t\n\t\tendwhile; \n\t\twp_reset_postdata();\n\t\tendif;\n\t\t\n\n\t\t//echo the JSON-formatted array to js. \n\t\techo json_encode($events_json);\n\n\t\t//always die after wordpress based ajax functions. \n\t\tdie();\n\t\t*/\n\t}", "title": "" }, { "docid": "8220e36826d1c1973dae52ee9d574a8b", "score": "0.504144", "text": "function bkap_add_setup_data_for_booking_options_callback( $final_booking_options, $clean_booking_options ) {\n\t \tif ( isset( $clean_booking_options->bkap_date_in_dropdown ) ) {\n\t \t$final_booking_options[ '_bkap_date_in_dropdown' ] = $clean_booking_options->bkap_date_in_dropdown;\n\t \t}\n\t \treturn $final_booking_options;\n\t}", "title": "" }, { "docid": "ad1c2480ccfeb8b155311a1a8dd60866", "score": "0.50220996", "text": "public function getEventData()\n { \n $event_id = Factory::getApplication()->getParams()->toObject()->event_id;\n\n $db = Factory::getDbo();\n $query = $db->getQuery(true);\n\n $query->select('title, date, deadline, event_id, min, max')\n ->from($db->quoteName('#__tkdclub_events'))\n ->where('event_id = '. intval($event_id));\n\n $db->setQuery($query);\n $event_data = $db->loadAssoc();\n $event_data['subscribed'] = $this->getSubscribedParticipants($event_id);\n\n return $event_data;\n }", "title": "" }, { "docid": "1032274589f60ad2c3b18be7f2164296", "score": "0.50200975", "text": "public function listEvents($where){\n\t\trequire_once dirname(__FILE__).'/../data/pathFinder.php';\n\t\t$pathFinder=new pathFinder;\n\t\trequire_once $pathFinder->getDBAsker();\n\t\t$conn = DBAsker::iniServ ();\n\t\tif ($where=='teacher'){\n\t\t\t$reponse_e = $conn->query ( \"Select event_name from event where teacher_id=\" . $_SESSION ['logged'] );\n\t\t}else if($where=='student'){\n\t\t\t$reponse_e = $conn->query ( \"Select event_name from subscription where student_id=\" . $_SESSION ['logged'] );\n\t\t}else{\n\t\t\techo '<p>Erreur d\\'utilisation de la fonction, utiliser \\'teacher\\' ou \\'student\\'';\n\t\t\texit();\n\t\t}\n\t\techo '<table class=\\'event_list\\'>';\n\t\techo '<tr>';\n\t\t$count = 0;\n\t\twhile ( $donnee_e = $reponse_e->fetch () ) {\n\t\t\tif ($count < 10) {\n\t\t\t\t$count ++;\n\t\t\t\techo '<td><button name=\\'' . $donnee_e ['event_name'] . '\\' value=\\'' . $donnee_e ['event_name'] . '\\'>' . $donnee_e ['event_name'] . '</button></td>';\n\t\t\t} else {\n\t\t\t\tif ($count == 10) {\n\t\t\t\t\techo '<td><select name=\"extra-event\" selected=\"0\">';\n\t\t\t\t\techo '<option value=\"0\" selected disabled>More</option>';\n\t\t\t\t}\n\t\t\t\t$count ++;\n\t\t\t\techo '<option value=\\'' . $donnee_e ['event_name'] . '\\'>' . $donnee_e ['event_name'] . '</option>';\n\t\t\t}\n\t\t}\n\t\tif ($count >= 10) {\n\t\t\techo '</select></td>';\n\t\t}\n\t\techo '</tr>';\n\t\techo '</table>';\n\t}", "title": "" }, { "docid": "3f9a4013bff83decaa3ef1145002c36c", "score": "0.50180185", "text": "function event_handlesuggestions(&$widget, $event)\n {\n $callback = \"\n function()\n {\n _data = ajaxac_receivejsarray(%1\\$s.responseText);\n gsc_emptyresults(%2\\$s);\n if (_data.length > 0) {\n for (i = 0; i < _data.length; i++) {\n gsc_addresult(%2\\$s, %3\\$s, _data[i][0], _data[i][1], i == 0);\n }\n gsc_show(%2\\$s);\n }\n }\n \";\n $callback = sprintf($callback,\n $widget->getHookName(),\n $this->getHookName('results'),\n $this->getHookName('query'));\n return $callback;\n }", "title": "" }, { "docid": "63799bd4dc9906a36c9a7cc771538d55", "score": "0.50061566", "text": "public function get_events()\r\n {\r\n $res = select_query_assoc(\r\n 'SELECT * FROM event ORDER BY e_time;'\r\n );\r\n if (!empty($res)) {\r\n foreach ($res as $event) {\r\n $tags = Tag::get_tag_by_event($event['id']);\r\n $url = Image::get_image('event', $event['id']);\r\n $events[] = array(\r\n 'id' => $event['id'],\r\n 'name' => $event['name'],\r\n 'desc' => $event['description'],\r\n 'e_time' => $event['e_time'],\r\n 'tags' => $tags,\r\n 'url' => $url\r\n );\r\n }\r\n return json_encode($events);\r\n } else {\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "c6213b87436b52e4404916d1d75b9be8", "score": "0.49998772", "text": "abstract protected function process_selection($data);", "title": "" }, { "docid": "ae75b85a58bfb23d71c5b7ae2e21e2af", "score": "0.49973106", "text": "public function collectResponses($collect)\n {\n $this->orgEventsManager->collectResponses($collect);\n }", "title": "" }, { "docid": "7040c44f7e928302ed556ac80f74b971", "score": "0.49931628", "text": "function on_dropdown_pages_args ($dropdown_args, $dummy_post = null)\n{\n $dropdown_args['post_status'] = array ('publish', 'draft', 'pending', 'future', 'private');\n return $dropdown_args;\n}", "title": "" }, { "docid": "93ec9b41d58b80920f28044485bc179f", "score": "0.49822855", "text": "function auction_status_pulldown($selected = '', $showall = true, $type = 'service')\r\n {\r\n global $ilance, $myapi, $phrase;\r\n \r\n $html = '<select name=\"status\" style=\"font-family: verdana\">';\r\n if ($showall)\r\n { \r\n $html .= '<option value=\"\">' . $phrase['_all'] . '</option>';\r\n }\r\n $html .= '<option value=\"open\"'; if (isset($selected) AND $selected == \"open\") { $html .= ' selected=\"selected\"'; } $html .= '>'.$phrase['_open'].'</option>';\r\n \r\n $html .= '<option value=\"closed\"'; if (isset($selected) AND $selected == \"closed\") { $html .= ' selected=\"selected\"'; } $html .= '>'.$phrase['_closed'].'</option>';\r\n $html .= '<option value=\"expired\"'; if (isset($selected) AND $selected == \"expired\") { $html .= ' selected=\"selected\"'; } $html .= '>'.$phrase['_ended'].'</option>';\r\n $html .= '<option value=\"delisted\"'; if (isset($selected) AND $selected == \"delisted\") { $html .= ' selected=\"selected\"'; } $html .= '>'.$phrase['_delisted'].'</option>';\r\n $html .= '<option value=\"archived\"'; if (isset($selected) AND $selected == \"archived\") { $html .= ' selected=\"selected\"'; } $html .= '>'.$phrase['_archived'].'</option>';\r\n $html .= '<option value=\"finished\"'; if (isset($selected) AND $selected == \"finished\") { $html .= ' selected=\"selected\"'; } $html .= '>'.$phrase['_finished'].'</option>';\r\n \r\n if ($type == 'service')\r\n {\r\n $html .= '<option value=\"draft\"'; if (isset($selected) AND $selected == \"draft\") { $html .= ' selected=\"selected\"'; } $html .= '>'.$phrase['_draft'].'</option>';\r\n $html .= '<option value=\"wait_approval\"'; if (isset($selected) AND $selected == \"wait_approval\") { $html .= ' selected=\"selected\"'; } $html .= '>'.$phrase['_waiting_for_acceptance_from_provider'].'</option>';\r\n $html .= '<option value=\"approval_accepted\"'; if (isset($selected) AND $selected == \"approval_accepted\") { $html .= ' selected=\"selected\"'; } $html .= '>'.$phrase['_work_has_begun_provider_accepted_buyers_award'].'</option>';\r\n }\r\n \r\n $html .= '</select>';\r\n \r\n return $html;\r\n }", "title": "" }, { "docid": "06476197fa3517213cdb5dbbeb26fe5e", "score": "0.49692026", "text": "function callbackCollections($name, $element, $data) {\n $result = '';\n $this->stickerObj = new base_stickers;\n $collections = $this->stickerObj->getCollections();\n $result .= sprintf(\n '<select name=\"%s[%s]\" class=\"dialogSelect dialogScale\">'.LF,\n $this->paramName,\n $name\n );\n foreach ($collections as $collection) {\n $selected = ($data == $collection['collection_id']) ? ' selected=\"selected\"' : '';\n $result .= sprintf(\n '<option value=\"%s\" %s>%s</option>'.LF,\n $collection['collection_id'],\n $selected,\n $collection['collection_title']\n );\n }\n $result .= '</select>'.LF;\n return $result;\n }", "title": "" }, { "docid": "c800e656dfb7e1f3f58e6dbafc1b70cf", "score": "0.49509016", "text": "public function update_event_callback() {\n\t\tif ( isset($_GET['id']) && isset($_GET['start']) && isset($_GET['end']) ) {\n\t\t\t//update event\n\t\t\tupdate_post_meta($_GET['id'], $this->plugin_db_prefix . '_start', $_GET['start']);\n\t\t\tupdate_post_meta($_GET['id'], $this->plugin_db_prefix . '_end', $_GET['end']);\n\t\t}\n\t\t$related_id = get_related_id($_GET['id']);\n\t\t$this->update_related_post_event_data($related_id);\n\t\tdie();\n\t}", "title": "" }, { "docid": "83bc8d184cabaa00881458cc4c5bd158", "score": "0.49459916", "text": "public function clientEvent()\n {\n $request = $this->getRequest();\n $handler = PushServiceProvider::getPushHandler();\n $handler->authenticateRequest($request);\n\n $events = $handler->getEventsFromRequest($request);\n foreach ($events as $eventReceived) {\n $channel = $eventReceived->getChannel();\n $channel->handleEvent($eventReceived);\n }\n\n return Response::json();\n }", "title": "" }, { "docid": "f3d0df50188163394d5977d39becdf1b", "score": "0.49458268", "text": "public function eventOptionsAction ( )\n {\n $form = new App_Form_EventOption;\n $request = $this->getRequest();\n\n if ($request->isPost()) {\n $params = array_merge($request->getParams(), $request->getPost());\n\n var_dump($params); die;\n\n }\n\n $this->view->form = $form;\n\n\n }", "title": "" }, { "docid": "d69ede733ce77115be6459937f297f19", "score": "0.49452254", "text": "function GetSelections(){}", "title": "" }, { "docid": "d406c1945bfea5b0af58344b5a9f4c44", "score": "0.4940071", "text": "public function getEventData()\n\t\t{\n\t\t\tif($this->request->is('get')){\n\t\t\t\t\n\t\t\t\t$getEventInfo=$this->Event->find('first',array('conditions'=>array('Event.id'=>$_GET['event_id']),'fields'=>array('Event.id as event_id','Event.event_token','Event.event_name','Event.event_date'),'recursive'=>0));\n\t\t\t\tif($getEventInfo)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t$result = array('status'=>1,'eventBasicInfo'=>$getEventInfo['Event']); \n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t$result = array('status'=>0,'message'=>'No event details found'); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t echo json_encode($result);die;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "2c99426ac5b0825e89996e033eb55ce0", "score": "0.4927633", "text": "public function getEventList(){\n\t\tif($this->request->is('get')){\n\t\t\t//$getEventsList=$this->Event->find('all',array('conditions'=>array('Event.created_by'=>$_GET['created_by']),'fields'=>array('Event.id,Event.event_token,Event.created_by,Event.event_name,Event.event_type,Event.event_date')));\n\t\t\t$getEventsList=$this->Event->find('all',array('conditions'=>array('Event.created_by'=>$_GET['created_by']),'recursive'=>1));\n\t\t\t/* echo \"<pre>\"; \n\t\t\t print_r($getEventsList);\n\t\t\t die(\"stop\"); */\n\t\t\t\n\t\t\t if($getEventsList)\n\t\t\t { \n\t\t\t\t foreach($getEventsList as $key=>$values)\n\t\t\t\t {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t $finalListArray[$key]=$values['Event'];\n\t\t\t\t $finalListArray[$key][\"event_type\"]=$values['EventCategory']['name'];\n\t\t\t\t if($values['Event']['image']!=\"\")\n\t\t\t\t {\n\t\t\t\t $finalListArray[$key]['image']='https://looklistenandfeel.online'.$this->webroot.'img/media/'.$values['Event']['image'];\n\t\t\t\t }\n\t\t\t\t else \n\t\t\t\t {\n\t\t\t\t $finalListArray[$key]['image']=\"\"; \n\t\t\t\t }\n if($values['User']['full_name']!=\"\")\n\t\t\t\t\t{\n\t\t\t\t\t$finalListArray[$key]['user_name']=$values['User']['full_name']; \n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t$finalListArray[$key]['user_name']=$values['User']['first_name'].\" \".$values['User']['last_name']; \t\n\t\t\t\t\t} \n\t\t\t\t $finalListArray[$key]['expiry_time']=$values['Event']['event_date'];\n\t\t\t\t $finalListArray[$key]['total_friends']=0;\n\t\t\t\t $finalListArray[$key]['total_medias']=count($values['Media']); \n\t\t\t\t //check is admin\n\t\t\t\t\t$getUserEvent=$this->EventUser->find('first',array('conditions'=>array('EventUser.user_id'=>$_GET['created_by'],'EventUser.event_id'=>$values['Event']['id'])));\n\t\t\t\t\tif($getUserEvent)\n\t\t\t\t\t{\n\t\t\t\t\t $finalListArray[$key]['is_admin']=$getUserEvent['EventUser']['is_admin'];\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\t$result = array('status'=>1,'eventsList'=>$finalListArray); \n\t\t\t\t\n\t\t\t }\n\t\t\t else{\n\t\t\t$result = array('status'=>0,'message'=>'No events found'); \n\t\t }\n\t\t}\n\t\techo json_encode($result);die;\n\t\t}", "title": "" }, { "docid": "413009e81416c9966a406672f9360b64", "score": "0.4921808", "text": "protected function getEvents()\n\t{\n\t\tif($this->events)\n\t\t{\n\t\t\treturn $this->events;\n\t\t}\n\t\t\n\t\t$query = Models\\Event::whereIn('list_id', $this->lists);\n\t\t\n\t\tif($this->lastId)\n\t\t{\n\t\t\t$query->where('id', '<', $this->lastId);\n\t\t}\n\t\t\n\t\t$query\n\t\t\t->limit((Request::ajax() && $this->lastId) ? 5 : 10)\n\t\t\t->orderBy('id', 'desc');\n\t\t\n\t\t$this->events = $query->get();\n\t\t\n\t\treturn $this->events;\n\t}", "title": "" }, { "docid": "d34472a4754a1db19f069828ddd1f801", "score": "0.49125594", "text": "public function getEventCategoryRowsList($request, $response, $args){\n\t\t$id = $args['id']; // Event Seat Category ID\n $validations = [\n v::intVal()->validate($id)\n ];\n\n if ($this->validate($validations) === false) {\n return $response->withStatus(400);\n }\n\t\t // Get all the events which are sold\n\t\t $mapped_eventCatsRows = Models\\RowSeats::\n\t\t\t\t\t\t\t\t\t\t where('event_seat_categories_id', '=', $id)->\n\t\t\t\t\t\t\t\t\t\t orderBy('row_number', 'ASC')->\n\t\t\t\t\t\t\t\t\t\t get();\n\t\t $result = '';\n\t\t foreach($mapped_eventCatsRows as $row){ \n\t\t\t $id = $row['id'];\n\t\t\t $title = trim($row['row_number']);\n\t\t\t $result .= '<option value=\"'.$id.'\">'.$title.'</option>';\n\t\t }\n\t\t$option = '<option value=\"\">Select Row</option>';\n\t\t$option .= $result;\n\t\techo $option;\n\t\t\n\t}", "title": "" }, { "docid": "97950c72e37cb23ff7432ef98ff441d5", "score": "0.49018434", "text": "static function get_events(){\n header('Content-Type: application/json');\n\n $accepted_types = [\"JSON\"];\n if (isset($_REQUEST['type']) && in_array(strtoupper($_REQUEST['type']), $accepted_types))\n $type = strtoupper($_REQUEST['type']);\n else\n $type = \"JSON\";\n\n if ($type = \"JSON\"){\n return Events::get_events_as_JSON();\n }\n }", "title": "" }, { "docid": "442a20cd119a3f8b153646720ca54a35", "score": "0.4896723", "text": "function populate( $event_id ) {\n\t\tglobal $wpdb;\t\n\n\t\t$sql = array();\n\n\t\t$sql['select_main'] = \"SELECT DISTINCT e.id as id, e.event_code, e.event_name, e.event_desc, e.start_date, e.end_date, e.registration_start, e.registration_end, e.address, e.city, e.state, e.zip, e.venue_title\";\n\n\t\t$sql['from'] = \"FROM \" . EVENTS_DETAIL_TABLE . \" e LEFT JOIN \" . EVENTS_ATTENDEE_TABLE . \" a ON a.event_id = e.id\";\n\n\t\t$sql['where'] = 'WHERE e.id = ' . $event_id ;\n\t\t\n\t\t$events_sql = apply_filters( 'event_espresso_get_event_sql', join( ' ', (array)$sql ), $sql );\n\t\t$details = $wpdb->get_results( $events_sql );\n\t\t$this->event_details = $details[0];\n\t\t\n\t\t$attendee_count = $wpdb->get_var( \"SELECT COUNT(*) as total_attendee_count FROM wp_events_member_rel WHERE event_id = \".$event_id.\" GROUP BY user_id\" );\n\t\t$this->total_attendee_count = (int)$attendee_count;\n\n\t\t$attendees = $wpdb->get_var( \"SELECT user_id FROM wp_events_member_rel WHERE event_id = \".$event_id.\" GROUP BY user_id\" );\n\t\t$attendee_ids = $wpdb->escape( join( ',', (array)$attendees ) );\n\t\t$this->attendees = $attendees;\n\n\n//\t\t$this->avatar = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'full' ) );\n//\t\t$this->avatar_thumb = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'thumb' ) );\n//\t\t$this->avatar_mini = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'thumb', 'width' => 30, 'height' => 30 ) );\n\n//\t\t$this->last_active = bp_core_get_last_activity( get_user_meta( $this->id, 'last_activity', true ), __( 'active %s ago', 'buddypress' ) );\n\t}", "title": "" }, { "docid": "a9558e7b89920a4f644c90889cc85036", "score": "0.4895546", "text": "function obj_cx_events_event_list( $events, $bottom_banner, $pagination ) {\n $list_si_img = get_field( 'list_single_event_image' );\n $list_si_des = get_field( 'list_single_event_des' );\n \n\t$events_list_sec = array(\n\t\t'section_id' => 'events-list',\n\t\t'section_paddings' => 'both',\n\t\t'section_margins' => 'none',\n\t\t'section_wrap' => true,\n\t\t'single_cx_event' => array_merge($list_si_img, $list_si_des),\n\t);\n\n\t$bg_shapes = array(\n\t\t'oval' => 4,\n\t\t'rect' => 4,\n\t);\n\n\tobj_cx_events_list_section( $events, $bottom_banner, $pagination, $events_list_sec, '', $bg_shapes );\n}", "title": "" }, { "docid": "016d8f2b018288599d4af883e9b304ea", "score": "0.48941067", "text": "public function get_calendar_events()\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$input = JFactory::getApplication()->input;\n\t\t$config = $GLOBALS['com_pbbooking_data']['config'];\n\n\t\t$cal_id = $input->get('calid',null,'integer');\n\t\t$start = $input->get('start',null,'string');\n\t\t$end = $input->get('end',null,'string');\n\n\t\t//convert times to dtobjects\n\t\t$dt_start = date_create($start,new DateTimeZone(PBBOOKING_TIMEZONE));\n\t\t$dt_end = date_create($end, new DateTimeZone(PBBOOKING_TIMEZONE));\n\t\t$dt_end->setTime(23,59,59);\n\n\t\t//load up the calendar\n\t\t$cal = new \\Pbbooking\\Model\\Calendar($config);\n\t\t$cal->loadCalendarFromDbase(array($cal_id),$dt_start,$dt_end);\n\n\t\t$events = array();\n\t\tforeach ($cal->events as $event) {\n\t\t\t\\Purplebeanie\\Util\\Pbdebug::log_msg('Manage::get_calendar_events - parsing new event with id '.(int)$event->id,'com_pbbooking');\n\t\t\tif ((int)$event->id>0) {\n\t\t\t\t$ev_obj = new \\Pbbooking\\Model\\Event($event->id);\n\t\t\t\tif ($ev_obj->externalevent == 1) {\n\t\t\t\t\t$events[] = array('id'=>$event->id,'title'=>htmlspecialchars($ev_obj->getSummary()),'allDay'=>false,'start'=>$event->dtstart->format(DATE_ATOM),'end'=>$event->dtend->format(DATE_ATOM),'externalevent'=>$ev_obj->externalevent,'editable'=>false,'startEditable'=>false,'durationEditable'=>false);\n\t\t\t\t} else {\n\t\t\t\t\t$events[] = array('id'=>$event->id,'title'=>htmlspecialchars($ev_obj->getSummary()),'allDay'=>false,'start'=>$event->dtstart->format(DATE_ATOM),'end'=>$event->dtend->format(DATE_ATOM),'externalevent'=>$ev_obj->externalevent);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\techo json_encode($events);\n\t}", "title": "" }, { "docid": "d8e98d566f9921ae781f35f9745c8620", "score": "0.48892573", "text": "function serveSensorDropdown($condId, $sce, $sensList) {\r\n\t\techo('<select id=\"condSensSelect'.$condId.'\" class=\"SensorSelect\">');\r\n\t \tforeach ($sensList as $sensValue => $sensName) {\r\n\t\t\techo('<option value=\"'.$sensValue.'\"'.($sensValue == $sce?' selected=\"selected\"':'').'>'.$sensName.'</option>');\r\n\t\t}//next sensor\r\n\t\techo('</select>');\r\n\t}", "title": "" }, { "docid": "8361d4351f897ff2b7591964a7cc0cdf", "score": "0.4887988", "text": "public function libraryListing()\n\t{\n\t\t$classList = array('' => '-- Select --', 'Nursery' => 'Nursery', 'LKG' => 'LKG', 'UKG' => 'UKG');\n\t\tfor($i = 1; $i < 13; $i ++){\n\t\t\t$classList[$i] = 'STD - '.$this->integerToRoman($i);\n\t\t}\n\t\t$events = Library::paginate(15);\n\t\t$customFields['basic'] = array(\n\t\t\t'book_name'=>array('type' => 'text', 'label'=>'Event Name','mandatory'=>true),\n\t\t\t'admission_class'=>array('type' => 'select', 'label'=>'Choose Class', 'value' => $classList, 'mandatory'=>true, 'class' => 'admission_class'),\n \t);\n\t\treturn view('master.library-list', ['otherLinks' => array('link' => url('/').'/event', 'text' => 'Add Event'), 'pageTitle' => 'Event List', 'events' => $events, 'customFields' => $customFields, 'loopInit' => '1']);\n\t}", "title": "" }, { "docid": "dbcd4d7210c411268a01ea985064d254", "score": "0.48835832", "text": "public function select_Events_Values($unix) { //$unix == today Unixstamp\r\n\t\tglobal $conn; // global from $singeltone=ConnectDB::getInstance();\r\n\t\tdate_default_timezone_set('UTC'); //use ('UTC') to avoid -1 day result \r\n\t\t//$singeltone=ConnectDB::getInstance(); //creates connection $con; //was deactivated in index.php\r\n //$hall_ID=$_POST['serverHall_Id']; // Hall ID\r\n try { \r\n //-----------------\r\n\t\t\t//INNER JOIN IS a must-have as we get place.name by place.id from a different SQL DB (Hall_Scheme_List_of_Venues)\r\n\t\t\t//SELECT ALL Venues whick date is greater than today\r\n $stmt = $conn->prepare(\"SELECT ev_name, ev_date, ev_price, ev_start_time, place_name, place_id, place_address FROM Hall_Events INNER JOIN Hall_Scheme_List_of_Venues on Hall_Events.ev_venueHall_id=Hall_Scheme_List_of_Venues.place_id\tWHERE Hall_Events.ev_date >='{$unix}' ORDER BY ev_id DESC \"); \r\n //$stmt = $conn->query(\"SELECT * FROM Hall_Events WHERE ev_date >='{$unix}'\"); //without Inner join\r\n\t\t\t\r\n\t\t\t$stmt->execute();\r\n\t\t\t$result = $stmt->fetchAll();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\techo json_encode($result);\r\n\t\t\t\r\n //-----------------\r\n } catch(PDOException $e) {\r\n echo $e->getMessage();\r\n }\r\n \r\n $conn = null;\r\n //echo \"gfgfgfgf\"; \r\n }", "title": "" }, { "docid": "1ef45bc3946a626e7135e984b6b98961", "score": "0.4876987", "text": "function getEventList() { return array(); }", "title": "" }, { "docid": "631db747bbe9ab3d7b3245d6f8c66c40", "score": "0.4875525", "text": "public function requestCreateEvent();", "title": "" }, { "docid": "ce9937162da240e480542a5161440e23", "score": "0.48699227", "text": "public function getEvents(){\n\t\t$_POST['year'];\t\n\t\t$result = $this->Welcome_Model->getevents($_POST);\n\t\treturn \t$result;\t\t\n\t}", "title": "" }, { "docid": "d2f06fab1f88bb60add5fc128ee3565d", "score": "0.4868607", "text": "protected function listEvents()\n\t{\n\t\tglobal $tpl;\n\n\t\t// table of examination events\n\t\tinclude_once(\"./Services/ADN/ES/classes/class.adnExaminationEventTableGUI.php\");\n\t\t$table = new adnExaminationEventTableGUI($this, \"listEvents\",\n\t\t\tadnExaminationEventTableGUI::MODE_ATTENDANCE, false);\n\t\t\n\t\t// output table\n\t\t$tpl->setContent($table->getHTML());\n\t}", "title": "" }, { "docid": "0ee34fecbcd2d397bae639ce021ae881", "score": "0.4853643", "text": "public function pageEvents()\r\n\t{\r\n\t\t// Controle du profil\r\n\t\tif ( !Oaccount::isLoginAdmin() ) return false;\r\n\t\t$body = new Body();\r\n\r\n\t\t// Menu\r\n\t\t$content = $this->_menu($body);\r\n\r\n\t\t// Liste des saisons\r\n\t\t$form = $content->addForm('frmSearch', BEVENT_FILL_EVENTS, null, 'searchEvents');\r\n\t\t$d = $form->addDiv('dAction', 'bn-div-criteria bn-div-line bn-div-auto');\r\n\r\n\t\t$season = Bn::getValue('lstSeason', Oseason::getCurrent());\r\n\t\t$select = $d->addSelect('lstSeason', 'Saison', BEVENT_FILL_EVENTS);\r\n\t\t$select->addOptions(Oseason::get(), $season);\r\n\r\n\t\t$edit = $d->addEdit('txtSearch', LOC_LABEL_SEARCH_EVENT, '', 20);\r\n\t\t$edit->noMandatory();\r\n\t\t$btn = $d->addButtonValid('btnSearch', LOC_BTN_SEARCH, 'search');\r\n\r\n\t\t$btn = $d->addButton('btnNewEvent', LOC_BTN_NEW_EVENT, BEVENT_PAGE_NEW_EVENT, 'plus', 'targetDlg');\r\n\t\t$btn->addMetaData('title', '\"' . LOC_TITLE_NEW_EVENT . '\"');\r\n\t\t$btn->addMetaData('width', 520);\r\n\t\t$btn->addMetaData('height', 350);\r\n\t\t$btn->completeAttribute('class', 'bn-dlg');\r\n\t\t$d->addBreak();\r\n\r\n\t\t// Liste des tournois\r\n\t\t$div = $content->addDiv('divEvents');\r\n\t\t$grid = $div->addGridview('gridEvents', BEVENT_FILL_EVENTS, 100);\r\n\t\t$col = $grid->addColumn('#', 'num', false);\r\n\t\t$col->setLook(40, 'left', false);\r\n\t\t$col = $grid->addColumn(LOC_COLUMN_FIRST_DAY, 'date', false);\r\n\t\t$col->setLook(70, 'left', false);\r\n\t\t$col->initsort();\r\n\t\t$col = $grid->addColumn(LOC_COLUMN_EVENT_NAME, 'name');\r\n\t\t$col->setLook(480, 'left', false);\r\n\t\t$col = $grid->addColumn(LOC_COLUMN_TYPE, 'type');\r\n\t\t$col->setLook(60, 'left', false);\r\n\t\t$col = $grid->addColumn(LOC_COLUMN_VISITED, 'visit');\r\n\t\t$col->setLook(60, 'right', false);\r\n\t\t$col = $grid->addColumn(LOC_COLUMN_ACTION, 'act', false);\r\n\t\t$col->setLook(50, 'center', false);\r\n\r\n\t\t$col = $grid->addColumn('Mois', 'month', false);\r\n\t\t$col->setLook(40, 'left', false);\r\n\r\n\t\t$col = $grid->addColumn('id', 'id', false, false, true);\r\n\r\n\t\t$grid->setLook(LOC_TITLE_EVENTS, 0, \"'auto'\");\r\n\t\t$grid->setGroup(7, 'desc');\r\n\r\n\t\t$body->addBreak();\r\n\t\t$body->addJQready('pageEvents()');\r\n\r\n\t\t$body->display();\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "4a9be3968d530132096286712f0f55d6", "score": "0.48522973", "text": "function xd_getevents()\n{\n\tglobal $xoopsDB;\n\t$events = array();\n\t$q = 1;\n\t$query = $xoopsDB->query(\"SELECT * FROM \".$xoopsDB->prefix(\"matchdart_eventnames\").\" WHERE EventPublish = '1' ORDER BY EventName\");\n\twhile($myrow = $xoopsDB->fetchArray($query) )\n\t{\n\t\t$events[$q]['id'] = $myrow['EventID'];\n\t\t$events[$q]['name'] = $myrow['EventName'];\n\t\t$q++;\n\t}\n\tReturn $events;\n}", "title": "" }, { "docid": "b86a4dfbfcc9e1a22239e476fb34c84c", "score": "0.48458657", "text": "function updater_select($name, $data=array()){\n\t$params = is_array($name) ? $name : Util::getParams(func_get_args());\n\n\t/**\n\t * Obtengo id, name y value\n\t **/\n\tif(isset($params[0])) {\n\t\t$params = array_merge(get_id_and_name($params[0]), $params);\n\t\tif(!isset($params['selected'])) {\n\t\t\t$value = get_value_from_action($params[0]);\n\t\t\tif(!is_null($value)) {\n\t\t\t\t$params['selected'] = $value;\n\t\t\t}\n\t\t}\n\t}\n\n\tif(isset($params['container'])) {\n\t\t$update = $params['container'];\n\t\tunset($params['container']);\n\t} elseif(isset($params['update'])) {\n\t\t$update = $params['update'];\n\t\tunset($params['update']);\n\t} else {\n\t\t$update = '';\n\t}\n\n\tif(isset($params['action'])) {\n\t\t$action = $params['action'];\n\t\tunset($params['action']);\n\t} else {\n\t\t$action = '';\n\t}\n\n\t$action = PUBLIC_PATH . $action;\n\n\t$onchange = \"AJAX.viewRequest({action: '$action/'+$(\\\"{$params['id']}\\\").value, container: '$update'\";\n\t$call = array();\n\tif(isset($params['before'])){\n\t\t$call[\"before\"] = \"before: function(){ {$params['before']} }\";\n\t\tunset($params['before']);\n\t}\n\tif(isset($params['oncomplete'])){\n\t\t$call[\"oncomplete\"] = \"oncomplete: function(){ {$params['oncomplete']} }\";\n\t\tunset($params['oncomplete']);\n\t}\n\tif(isset($params['success'])){\n\t\t$call[\"success\"] = \"success: function(){ {$params['success']} }\";\n\t\tunset($params['success']);\n\t}\n\tif(count($call)){\n\t\t$onchange.=\", callbacks: { \";\n\t\t$onchange.=implode(\",\", $call);\n\t\t$onchange.=\"}\";\n\t}\n\t$onchange.=\"})\";\n\n\tif(isset($params['onchange'])) {\n\t\t$params['onchange'].=';'.$onchange;\n\t} else {\n\t\t$params['onchange'] = $onchange;\n\t}\n\n\treturn select_tag($params);\n}", "title": "" }, { "docid": "e96e8bd8d0fa2e9398fa300e0445a5c3", "score": "0.48428667", "text": "public function MReleaseSelect ()\n {\n\t // setup database\n \t$registry = Zend_Registry::getInstance();\n \t\n \t$select = $registry->db->select();\n \t$select->from(array('r' => 'releases'));\n \t$select->where('r.release_status = ?','published');\n \t$select->order('r.release_title ASC');\n\n\t\t// Set the data array\n\t\t$releaseArray = $registry->db->fetchall($select);\n\t\t\n\t\tforeach($releaseArray as $release) :\n\t\t\techo '<option value=\"' . $release['release_id'] . '\">' . $release['release_title'] . '</option>';\n\t\tendforeach;\n }", "title": "" }, { "docid": "9c0e41636e202eaf4487acca4e6e29b2", "score": "0.4834027", "text": "public function json_load_events()\n {\n // Set layout as blank to enable json\n $this->viewBuilder()->layout('');\n $data = $this->request->query;\n $appointments = $this->Appointment->find()\n ->where([\n 'Appointment.appointment_date >=' => $data['start'], \n 'Appointment.appointment_date <=' => $data['end'], \n 'Patient.is_archive' => 0,\n 'Appointment.is_archive' => 0,\n 'Appointment.customer_id' => $this->cid,\n 'Patient.customer_id' => $this->cid\n ])\n ->contain(['Patient'])\n ->order(['Appointment.appointment_date' => 'ASC']);\n\n //Construct json data \n $counter = 0;\n $last_date = '';\n $json_data = array();\n if( $appointments->count() > 0 ){\n foreach( $appointments as $appointment ){ \n $json_data[$counter]['start'] = $appointment->appointment_date->format('Y-m-d');\n $json_data[$counter]['end'] = $appointment->appointment_date->format('Y-m-d');\n $json_data[$counter]['date_event'] = $appointment->appointment_date->format('Y-m-d'); \n $json_data[$counter]['id'] = $appointment->id;\n $counter++;\n }\n }\n \n echo json_encode($json_data);\n exit; \n }", "title": "" }, { "docid": "accdbad9b90408fdd0788dec41f61366", "score": "0.48325607", "text": "public function Read($argsArray) {\n\n // Get the info from the baseclass\n $response = parent::Read($argsArray);\n\n // Get the required info from Attending\n if (array_key_exists(\"MultiSelect\", $argsArray)) {\n\n // Handle yes\n $yesQueryString = \"SELECT * FROM Attending WHERE EventID=\" . $argsArray['id'] . \" AND Attending='Yes'\"; \n $yesResult = $this->dbHandle->query($yesQueryString);\n\n $yesArray = array();\n while ($yesRow = $yesResult ->fetch_assoc()) {\n $yesArray [] = $yesRow ['UserID'];\n }\n mysqli_free_result($yesResult);\n $yesString = implode(\",\", $yesArray );\n\n // Handle no\n $noQueryString = \"SELECT * FROM Attending WHERE EventID=\" . $argsArray['id'] . \" AND Attending='No'\"; \n $noResult = $this->dbHandle->query($noQueryString);\n\n $noArray = array();\n while ($noRow = $noResult ->fetch_assoc()) {\n $noArray [] = $noRow ['UserID'];\n }\n mysqli_free_result($noResult);\n $noString = implode(\",\", $noArray );\n\n // Handle unknown\n $unknownQueryString = \"SELECT * FROM Attending WHERE EventID=\" . $argsArray['id'] . \" AND Attending='Unknown'\"; \n $unknownResult = $this->dbHandle->query($unknownQueryString);\n\n $unknownArray = array();\n while ($unknownRow = $unknownResult ->fetch_assoc()) {\n $unknownArray [] = $unknownRow ['UserID'];\n }\n mysqli_free_result($unknownResult);\n $unknownString = implode(\",\", $unknownArray );\n\n $attendingString = $yesString . \";\" . $noString . \";\" . $unknownString;\n\n $responseArray = json_decode($response, true);\n $responseArray[0]['MultiSelect'] = urlencode($attendingString);\n\n $response = json_encode($responseArray);\n }\n\n return($response);\n\n }", "title": "" }, { "docid": "a1d4f525533cf2b783c4604287c4b835", "score": "0.48311916", "text": "public function process()\n\t{\n\t\t\n\t\tPhpfox::isUser(true);\n\t\t\n\t\tPhpfox::getUserParam('fevent.can_create_event', true);\n\t\t\n\t\t$bIsEdit = false;\n\t\t$bIsSetup = ($this->request()->get('req4') == 'setup' ? true : false);\n\t\t$sAction = $this->request()->get('req3');\n\t\t$aCallback = false;\t\t\n\t\t$sModule = $this->request()->get('module', false);\n\t\t$iItem = $this->request()->getInt('item', false);\n\t\t\n\t\t$until=\"\";\n\t\tif ($iEditId = $this->request()->get('id'))\n\t\t{\n\t\t\t\n\t\t\tif (($aEvent = Phpfox::getService('fevent')->getForEdit($iEditId)))\n\t\t\t{\n\t\t\t\t\n\t\t\t\t$content_repeat=\"\";\n\t\t\t\t\n\t\t\t\tif($aEvent['isrepeat']==0)\n\t\t\t\t{\n\t\t\t\t\t$content_repeat=Phpfox::getPhrase('fevent.daily');\n\t\t\t\t}\n\t\t\t\telse if($aEvent['isrepeat']==1)\n\t\t\t\t{\n\t\t\t\t\t$content_repeat=Phpfox::getPhrase('fevent.weekly');\n\t\t\t\t}\n\t\t\t\telse if($aEvent['isrepeat']==2)\n {\n\t\t\t\t\t$content_repeat=Phpfox::getPhrase('fevent.monthly');\n\t\t\t\t}\n\t\t\t\tif($content_repeat!=\"\")\n\t\t\t\t{\n\t\t\t\t\tif($aEvent['timerepeat']!=0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$sDefault = null;\n $until = Phpfox::getTime(\"m/d/Y\", $aEvent['timerepeat']);\n $content_repeat .= \", \" . Phpfox::getPhrase('fevent.until') . \" \" . $until;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$bIsEdit = true;\n\t\t\t\t$this->setParam('aEvent', $aEvent);\n\t\t\t\t$this->setParam(array(\n\t\t\t\t\t\t'country_child_value' => $aEvent['country_iso'],\n\t\t\t\t\t\t'country_child_id' => $aEvent['country_child_id']\n\t\t\t\t\t)\n\t\t\t\t);\n \n\t\t\t\t$this->template()->setHeader(array(\n\t\t\t\t\t\t\t'<script type=\"text/javascript\">$Behavior.eventEditCategory = function(){ var aCategories = explode(\\',\\', \\'' . $aEvent['categories'] . '\\'); for (i in aCategories) { $(\\'#js_mp_holder_\\' + aCategories[i]).show(); $(\\'#js_mp_category_item_\\' + aCategories[i]).attr(\\'selected\\', true); } }</script>'\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t\t->assign(array(\n\t\t\t\t\t\t'aForms' => $aEvent,\n\t\t\t\t\t\t'aEvent' => $aEvent,\n\t\t\t\t\t\t'content_repeat' => $content_repeat,\n\t\t\t\t\t\t\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\tif ($aEvent['module_id'] != 'fevent')\n\t\t\t\t{\n\t\t\t\t\t$sModule = $aEvent['module_id'];\n\t\t\t\t\t$iItem = $aEvent['item_id'];\t\n\t\t\t\t}\n \n if($aCustomFields = Phpfox::getService('fevent.custom')->getCustomFieldsForEdit($iEditId))\n {\n $this->template()->assign(array(\n 'aCustomFields' => $aCustomFields\n ));\n }\n\t\t\t}\n\t\t}\t\t\n\t\t$this->template()->assign(array(\n\t\t\t'until' => $until,\n\t\t));\n\t\tif ($sModule && $iItem && Phpfox::hasCallback($sModule, 'viewEvent'))\n\t\t{\n\t\t\t$aCallback = Phpfox::callback($sModule . '.viewEvent', $iItem);\t\t\n\t\t\t$this->template()->setBreadcrumb($aCallback['breadcrumb_title'], $aCallback['breadcrumb_home']);\n\t\t\t$this->template()->setBreadcrumb($aCallback['title'], $aCallback['url_home']);\t\t\n\t\t\tif ($sModule == 'pages' && !Phpfox::getService('pages')->hasPerm($iItem, 'fevent.share_events'))\n\t\t\t{\n\t\t\t\treturn Phpfox_Error::display(Phpfox::getPhrase('fevent.unable_to_view_this_item_due_to_privacy_settings'));\n\t\t\t}\t\t\t\t\n\t\t}\t\t\n\t\t\n\t\t$aValidation = array(\n\t\t\t'title' => Phpfox::getPhrase('fevent.provide_a_name_for_this_event'),\n\t\t\t// 'country_iso' => Phpfox::getPhrase('fevent.provide_a_country_location_for_this_event'),\t\t\t\n\t\t\t'location' => Phpfox::getPhrase('fevent.provide_a_location_for_this_event')\n\t\t);\n\t\t\n\t\t$oValidator = Phpfox::getLib('validator')->set(array(\n\t\t\t\t'sFormName' => 'js_event_form',\n\t\t\t\t'aParams' => $aValidation\n\t\t\t)\n\t\t);\t\t\n\t\t\n\t\tif ($aVals = $this->request()->get('val'))\n\t\t{\n\t\t\t\n\t\t\tif ($oValidator->isValid($aVals))\n\t\t\t{\n\t\t\t\t$aVals['event_id'] = $iEditId;\n\t\t\t\t$this->template()->assign(array('aForms' => $aVals, 'aEvent' => $aVals));\n \n\t\t\t\tif($aVals['txtrepeat']>=-1)\n\t\t\t\t{\n\t\t\t\t\t$daterepeat=explode(\"/\",$aVals['daterepeat']);\n \n if(count($daterepeat)>1)\n\t\t\t\t\t{\n $idate_repeat = mktime(0, 0, 0, $daterepeat[0], $daterepeat[1], $daterepeat[2]);\n $istart_repeat = mktime(0, 0, 0, $aVals['start_month'], $aVals['start_day'], $aVals['start_year']);\n }\n \n $bAllowed = false;\n \n\t\t\t\t\tif($aVals['txtrepeat']==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif($idate_repeat<$istart_repeat)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tPhpfox_Error::set(Phpfox::getPhrase('fevent.daily_repeat_date_have_to_be_larger_or_equal_than_start_date'));\n $bAllowed = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if($aVals['txtrepeat']==1){\n\t\t\t\t\t\t$istart_repeat=$istart_repeat+(3600*24*7);\n\t\t\t\t\t\tif($idate_repeat<$istart_repeat)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tPhpfox_Error::set(Phpfox::getPhrase('fevent.weekly_repeat_date_have_to_be_larger_or_equal_than_start_date_in_about_1_week'));\n $bAllowed = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if($aVals['txtrepeat']==2){\n\t\t\t\t\t\t$istart_repeat=$istart_repeat+(3600*24*7);\n\t\t\t\t\t\t$month=$aVals['start_month'];\n\t\t\t\t\t\t$year=$aVals['start_year'];\n\t\t\t\t\t\t$month=$month+1;\n\t\t\t\t\t\tif($month==13)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$month=1;\n\t\t\t\t\t\t\t$year++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$idate_repeat = mktime(0, 0, 0, $daterepeat[0], $daterepeat[1], $daterepeat[2]);\n\t\t\t\t\t\t$istart_repeat = mktime(0, 0, 0, $month, $aVals['start_day'], $year);\n\t\t\t\t\t\tif($idate_repeat<$istart_repeat)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tPhpfox_Error::set(Phpfox::getPhrase('fevent.monthly_repeat_date_have_to_be_larger_or_equal_than_start_date_in_about_1_month'));\n $bAllowed = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\t\n\t\t\t\tif ($bIsEdit && !$bAllowed)\n\t\t\t\t{\n\t\t\t\t\tif (Phpfox::getService('fevent.process')->update($iEditId, $aVals, $aEvent))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(isset($aVals['update_detail']))\n {\n $this->url()->send('fevent.add', array('id' => $iEditId), Phpfox::getPhrase('fevent.event_successfully_updated'));\n }\n elseif(isset($aVals['upload_photo']))\n {\n if($aErrors = phpfox_error::get())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tPhpfox::getLib('session')->set('aErrors', $aErrors);\n\t\t\t\t\t\t\t\t$this->url()->send('fevent.add/tab_photo', array('id' => $iEditId), Phpfox::getPhrase('fevent.some_of_images_haven_t_been_uploaded'));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t $this->url()->send('fevent.add/tab_photo', array('id' => $iEditId), Phpfox::getPhrase('fevent.successfully_added_photo_s_to_your_event'));\n\t\t\t\t\t\t }\n }\n elseif(isset($aVals['send_invitations']))\n {\n $this->url()->send('fevent.add.invite', array('id' => $iEditId), Phpfox::getPhrase('fevent.successfully_invited_guests_to_this_event'));\n }\n else\n {\n switch ($sAction)\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tcase 'customize':\n \t\t\t\t\t\t\t\t$this->url()->send('fevent.add.invite.setup', array('id' => $iEditId), Phpfox::getPhrase('fevent.successfully_added_a_photo_to_your_event'));\t\n \t\t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\tcase 'invite':\n \t\t\t\t\t\t\t\t$this->url()->send('fevent.add.invite', array('id' => $iEditId), Phpfox::getPhrase('fevent.successfully_invited_guests_to_this_event'));\n \t\t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\tdefault:\n $this->url()->send('fevent.add', array('id' => $iEditId), Phpfox::getPhrase('fevent.event_successfully_updated'));\n \t\t\t\t\t\t}\n }\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//Phpfox_Error::set(Phpfox::getPhrase('fevent.there_are_some_errors_when_update_event_please_try_again'));\n //$this->url()->send('current', null, null);\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\tif (($iFlood = Phpfox::getUserParam('fevent.flood_control_events')) !== 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$aFlood = array(\n\t\t\t\t\t\t\t'action' => 'last_post', // The SPAM action\n\t\t\t\t\t\t\t'params' => array(\n\t\t\t\t\t\t\t\t'field' => 'time_stamp', // The time stamp field\n\t\t\t\t\t\t\t\t'table' => Phpfox::getT('fevent'), // Database table we plan to check\n\t\t\t\t\t\t\t\t'condition' => 'user_id = ' . Phpfox::getUserId(), // Database WHERE query\n\t\t\t\t\t\t\t\t'time_stamp' => $iFlood * 60 // Seconds);\t\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t\t\t \t\t\t\n\t\t\t\t\t\t// actually check if flooding\n\t\t\t\t\t\tif (Phpfox::getLib('spam')->check($aFlood))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tPhpfox_Error::set(Phpfox::getPhrase('fevent.you_are_creating_an_event_a_little_too_soon') . ' ' . Phpfox::getLib('spam')->getWaitTime());\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (Phpfox_Error::isPassed())\n\t\t\t\t\t{\t\n\t\t\t\t\t\tif ($iId = Phpfox::getService('fevent.process')->add($aVals, ($aCallback !== false ? $sModule : 'fevent'), ($aCallback !== false ? $iItem : 0)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$aEvent = Phpfox::getService('fevent')->getForEdit($iId);\n\t\t\t\t\t\t\t//$this->url()->permalink('fevent', $aEvent['event_id'], $aEvent['title'], true, Phpfox::getPhrase('fevent.event_successfully_added'));\n $this->url()->send('fevent.add', array('tab' => 'photo', 'id' => $aEvent['event_id']), Phpfox::getPhrase('fevent.event_successfully_added'));\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\n\t\t\t$sStep = (isset($aVals['step']) ? $aVals['step'] : '');\n\t\t\t$sAction = (isset($aVals['action']) ? $aVals['action'] : '');\t\n\t\t\t$this->template()->assign('aForms', $aVals);\t\t\n\t\t}\t\t\n\t\t\n\t\tif ($bIsEdit)\n\t\t{\n\t\t\t$aMenus = array(\n\t\t\t\t'detail' => Phpfox::getPhrase('fevent.event_details'),\n\t\t\t\t'customize' => Phpfox::getPhrase('fevent.photo'),\n\t\t\t\t'invite' => Phpfox::getPhrase('fevent.invite_guests')\n\t\t\t);\n\t\t\t\n\t\t\tif (!$bIsSetup)\n\t\t\t{\n\t\t\t\t$aMenus['manage'] = Phpfox::getPhrase('fevent.manage_guest_list');\n\t\t\t\t$aMenus['email'] = Phpfox::getPhrase('fevent.mass_email');\n\t\t\t}\n\t\t\t\n\t\t\t$this->template()->buildPageMenu('js_event_block', \n\t\t\t\t$aMenus,\n\t\t\t\tarray(\n\t\t\t\t\t'link' => $this->url()->permalink('fevent', $aEvent['event_id'], $aEvent['title']),\n\t\t\t\t\t'phrase' => Phpfox::getPhrase('fevent.view_this_event')\n\t\t\t\t)\t\t\t\t\n\t\t\t);\t\t\n\t\t}\n\t\t\n $sTab = $this->request()->get('tab');\n\t\tif($sTab=='photo' && $aErrors = Phpfox::getLib('session')->get('aErrors'))\n\t\t{\n\t\t\tforeach ($aErrors as $sError) {\n\t\t\t\tPhpfox_Error::set($sError);\n\t\t\t}\n\t\t\tPhpfox::getLib('session')->remove('aErrors');\n\t\t}\n\t\t$bCanAddMap = Phpfox::getUserParam('fevent.can_add_gmap');\n \n\t\t$this->template()->setTitle(($bIsEdit ? Phpfox::getPhrase('fevent.managing_event') . ': ' . $aEvent['title'] : Phpfox::getPhrase('fevent.create_an_event')))\n\t\t\t->setFullSite()\t\t\t\n\t\t\t->setBreadcrumb(Phpfox::getPhrase('fevent.events'), ($aCallback === false ? $this->url()->makeUrl('fevent.when_upcoming') : $this->url()->makeUrl($aCallback['url_home_pages'])))\n\t\t\t->setBreadcrumb(($bIsEdit ? Phpfox::getPhrase('fevent.managing_event') . ': ' . $aEvent['title'] : Phpfox::getPhrase('fevent.create_new_event')), ($bIsEdit ? $this->url()->makeUrl('fevent.add', array('id' => $aEvent['event_id'])) : $this->url()->makeUrl('fevent.add')), true)\n\t\t\t->setEditor(array('wysiwyg' => Phpfox::getUserParam('fevent.can_use_editor_on_event')))\n\t\t\t->setPhrase(array(\n\t\t\t\t\t'core.select_a_file_to_upload'\n\t\t\t\t)\n\t\t\t)\t\t\t\t\n\t\t\t->setHeader('cache', array(\t\n\t\t\t\t\t'add.js' => 'module_fevent',\n 'add.css' => 'module_fevent',\n 'map.js' => 'module_fevent',\n\t\t\t\t\t'pager.css' => 'style_css',\n\t\t\t\t\t'progress.js' => 'static_script',\t\t\t\t\t\n\t\t\t\t\t'country.js' => 'module_core'\t\t\t\t\t\n\t\t\t\t)\n\t\t\t)\t\t\n\t\t\t//\twindow.external = false;\n\t\t\t->setHeader(array(\n\t\t\t\t\t'<script type=\"text/javascript\">$Behavior.eventProgressBarSettings = function(){ if ($Core.exists(\\'#js_event_block_customize_holder\\')) { oProgressBar = {holder: \\'#js_event_block_customize_holder\\', progress_id: \\'#js_progress_bar\\', uploader: \\'#js_progress_uploader\\', add_more: false, max_upload: 6, total: 1, frame_id: \\'js_upload_frame\\', file_id: \\'image[]\\'}; $Core.progressBarInit(); } }</script>'\n\t\t\t\t)\n\t\t\t)\n\t\t\t->assign(array(\n\t\t\t\t\t'sCreateJs' => $oValidator->createJS(),\n\t\t\t\t\t'sGetJsForm' => $oValidator->getJsForm(false),\n\t\t\t\t\t'bCanAddMap' => $bCanAddMap,\n\t\t\t\t\t'bIsEdit' => $bIsEdit,\n 'sTab' => $sTab,\n\t\t\t\t\t'bIsSetup' => $bIsSetup,\n\t\t\t\t\t'sCategories' => Phpfox::getService('fevent.category')->get(),\n\t\t\t\t\t'sModule' => ($aCallback !== false ? $sModule : ''),\n\t\t\t\t\t'iItem' => ($aCallback !== false ? $iItem : ''),\n\t\t\t\t\t'aCallback' => $aCallback,\n\t\t\t\t\t'iMaxFileSize' => (Phpfox::getUserParam('fevent.max_upload_size_event') === 0 ? null : Phpfox::getLib('phpfox.file')->filesize((Phpfox::getUserParam('fevent.max_upload_size_event') / 1024) * 1048576)),\n\t\t\t\t\t'bCanSendEmails' => ($bIsEdit ? Phpfox::getService('fevent')->canSendEmails($aEvent['event_id']) : false),\n\t\t\t\t\t'iCanSendEmailsTime' => ($bIsEdit ? Phpfox::getService('fevent')->getTimeLeft($aEvent['event_id']) : false),\n\t\t\t\t\t'sJsEventAddCommand' => (isset($aEvent['event_id']) ? \"if (confirm('\" . Phpfox::getPhrase('fevent.are_you_sure', array('phpfox_squote' => true)) . \"')) { $('#js_submit_upload_image').show(); $('#js_event_upload_image').show(); $('#js_event_current_image').remove(); $.ajaxCall('fevent.deleteImage', 'id={$aEvent['event_id']}'); } return false;\" : ''),\n\t\t\t\t\t'sTimeSeparator' => Phpfox::getPhrase('fevent.time_separator')\n\t\t\t\t)\n\t\t\t);\n\n\t\t//if(false) \n if (Phpfox::isModule('attachment') && Phpfox::getUserParam('fevent.can_attach_on_event'))\n {\n $this->setParam('attachment_share', array(\n 'type' => 'fevent',\n 'id' => 'js_event_form',\n 'edit_id' => ($bIsEdit ? $iEditId : 0)\n )\n );\n }\n $this->template()->setPhrase(array(\n \"fevent.the_field_field_name_is_required\"\n ));\n\t}", "title": "" }, { "docid": "955668544f0ce342ce77d77475b8ad4e", "score": "0.48288682", "text": "function addProductsForSelection(){\n // WHERE id NOT IN () is a feature of excluding specific IDs, can query without.\n echo \"<div class='catalog-container'>\";\n echo \"<h5 style='color: #d0d0d0'>Featured Products</h5>\";\n echo \"<div class='Item-list'>\";\n\n\n //Connect to API\n $url = 'http://localhost:8000/api/booking/products/catalog/get';\n // use key 'http' even if you send the request to https://...\n $options = array(\n 'http' => array(\n 'header' => \"Content-type: application/json \\r\\nAuthorization: \".$_SESSION['user']['token'],\n 'method' => 'GET',\n )\n );\n //send request to api and get result\n $context = stream_context_create($options);\n $result = file_get_contents($url, false, $context);\n $json = json_decode($result,true);\n if ($result === FALSE) { /* Handle error */\n\n var_dump($result);\n }\n //Populate Selection box with data from DB\n foreach ($json as $item) {\n\n\n $quantity = $this->createOptionsForSelection($item['quantity']);\n\n\n echo \"<div class='row'> <div class='col col-sm-4'>\n <div class='card text-white bg-dark mb-3' style='width: 30rem'>\n <div class='card-body'>\n <h5 class='card-title'>\" .$item['product_name'].\"</h5>\n <h6 class='card-subtitle mb-2 text-muted' style='color: #b7b7b7'>Moveable: \".$item['movable'].\"</h6>\n <p class='card-text'>\".$item['description'].\".</p>\n <label for=\\\"'product-unit-\".$item['id'].\"'\\\" class=\\\"bmd-label-floating\\\">Vælg antal enheder</label>\n <select class=\\\"form-control\\\" id='product-unit-\".$item['id'].\"'>\".$quantity.\"</select><button class='btn btn-raised btn-primary' id='btn-\".$item['id'].\"')> Tilføj til kurv</button></div>\n </div>\n </div>\n </div>\";\n\n\n }\n\n echo \"</div></div>\";\n\n\n }", "title": "" }, { "docid": "669a74583fa5dbd900618c010e61a64f", "score": "0.4825318", "text": "abstract public function getEvents();", "title": "" }, { "docid": "518b16013b2d0de68ab8f009f7adf6e5", "score": "0.48128667", "text": "public function testFetchOptInListSubscribers()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "ccb94b4d6383e0ced9bb8402be3bb474", "score": "0.48067617", "text": "public function ajaxAction()\n {\n $response = $this->getResponse();\n $headers = $response->getHeaders();\n $headers->addHeaderLine(\"Content-type: application/json\");\n\n // get parameters \n $request = $this->getRequest();\n if ($request->isPost()) {\n $rawParams = $request->getPost();\n $params = ArrayUtils::iteratorToArray($rawParams);\n\n }\n if (isset($params['option_type'])) {\n $optionType = $params['option_type'];\n }\n\n $options = [];\n // get the different word_types \n if ($optionType == 'word_type') {\n foreach ($this->wordTypeTableMap as $wordType) {\n $options[] = [$wordType['select_abbr'], $wordType['select_full']];\n }\n } /**\n * If you would like to assemble a more complicated list of selection options for a specific word-type, then \n * you can add the code in a elseif{}-section here. E.g.:\n * \n * elseif ($optionType == 'specific word-type') {\n * foreach (getSpecificWordTypeOptions('complicating parameters') as $newOption) {\n * $options[] = [$newOption['abbreviation'], $newOption['full_name']]\n * }\n }*/ else {\n // get the options for the selected word type \n $typeOptionSelect = new Select($this->wordTypeTableMapByAbbr[$optionType]['table']);\n $typeOptionResult = $this->referencesTableGateway->select($typeOptionSelect);\n $typeOptionsColl = ArrayUtils::iteratorToArray($typeOptionResult);\n foreach ($typeOptionsColl as $typeOption) {\n $options[] = [$typeOption['ref_id'], $typeOption['option_name']];\n }\n }\n\n $jsonOptions = json_encode($options);\n\n $response->setContent($jsonOptions);\n return $response;\n }", "title": "" }, { "docid": "b5b60f859a482bad6c3fd0da2f853bd2", "score": "0.4801025", "text": "public function get_cal_events(){\n \n if ($this->is_session_set()){\n \n $result = $this->user_model->get_cal_events();\n \n if ($result != FALSE){\n\n $eventList = array();\n \n foreach ($result as $key => $arr){\n \n // $arr = array();\n\n $startTime = explode(' ', $arr['start']);\n $endTime = explode(' ', $arr['end']);\n \n //making the event a whole day if both start and end date time are not set\n if ($startTime[1] == '00:00:00' && $endTime[1] == '00:00:00'){\n $arr['start'] = $startTime[0];\n $arr['end'] = $endTime[0];\n \n \n }\n $arr['labelId'] = (isset($arr['color'])? str_replace('#', '', $arr['color']) : '');\n $eventList[$key] = $arr;\n }\n\n // print_r($eventList);\n echo json_encode($eventList);\n\n }else{\n echo json_encode(0);//query did not run succesfully\n }\n\n }else{\n redirect('login');\n }\n }", "title": "" }, { "docid": "8f378e69cd4fb7596094a8e5d46ce7fa", "score": "0.48002014", "text": "public static function getBuilderList(Main\\Event $event): Main\\EventResult\n\t{\n\t\treturn new Main\\EventResult(\n\t\t\tMain\\EventResult::SUCCESS,\n\t\t\t[\n\t\t\t\t'\\Bitrix\\Crm\\Product\\Url\\ProductBuilder',\n\t\t\t],\n\t\t\t'crm'\n\t\t);\n\t}", "title": "" }, { "docid": "0c0c9c107c7b09038803a5a065430d6c", "score": "0.47985408", "text": "function\n\n getDropdownValues($id = NULL, $first = false) {\n $dropDownValues = $this->getAll();\n// echo '<pre>'; print_r($dropDownValues);exit;\n $arrDropdown = array();\n if ($first)\n $arrDropdown[] = 'Select Event';\n\n\n foreach ($dropDownValues as $value) {\n\n $arrDropdown[$value['attendee_id']] = $value['first_name'] . ' ' . $value ['last_name'];\n }\n return $arrDropdown;\n }", "title": "" }, { "docid": "05cbb75b56085babd9d24c4942bbcfcf", "score": "0.4796072", "text": "function squarecandy_events_load_more_ajax_handler() {\n\n\t// Check for nonce security\n\tif ( ! wp_verify_nonce( $_POST['nonce'], 'events-ajax-nonce' ) ) {\n\t\twp_die( 'Cheatin, eh?' );\n\t}\n\n\t$page = (int) esc_attr( $_POST['page'] ) + 1; // we need the next page to be loaded\n\t$attr = array();\n\t$attr[] = 'page=' . $page;\n\t$attr[] = 'type=' . esc_attr( $_POST['eventType'] );\n\tif ( ! empty( $_POST['archiveYear'] ) ) {\n\t\t$attr[] = 'archive_year=' . esc_attr( $_POST['archiveYear'] );\n\t}\n\n\t$shortcode = '[squarecandy_events ajax=1 ' . implode( ' ', $attr ) . ']';\n\techo do_shortcode( $shortcode );\n\tdie;\n}", "title": "" }, { "docid": "f13b6cafd23d9e3079b474b0d639418d", "score": "0.47811648", "text": "public function getAvailableEvents() {\n\t\t\t$model = new ECash_CFE_API_EventDef(ECash::getFactory()->getDB());\n\t\t\treturn $model->loadAllBy(array());\n\t\t}", "title": "" }, { "docid": "601c3191631d92adeddc3377fe320812", "score": "0.47638375", "text": "protected function onAfterList($gridField, &$response, $records, $data, $idList)\n {\n }", "title": "" }, { "docid": "4381521633806b06772237f75b310768", "score": "0.47587466", "text": "public function agc_event_suggest_names_dialogue()\n\t{\n\t\t$nonce \t\t= wp_create_nonce('invitee_date');\n\t\t$response \t= $this->agc_event_get_user_response();\n\t\t$html = '';\n\t\tif(!empty($response) && $response != 'no')\n\t\t{\n\t\t\t$html \t= \"<label for='suggest_dates' class='suggest_dates_label'>Since this is a date party, enter the name of the date you are bringing along.</label>\";\n\t\t\t$html \t.=\"<div class='suggest-input'><input value='' data-id='' class='suggest_dates_input' type='text' name='suggest_dates' id='suggest_dates' onkeyup='_agc_suggest_names(this)'/>\";\n\t\t\t$html\t.=\"<span class='loading-16' id='suggest_dates_loader' style='display:none;'></span></div>\";\n\t\t\t$html\t.=\"<button class='btn btn-primary btn-mini agc-bring-along' data-nonce='\".$nonce.\"' onClick='_agc_submit_selected_name(this);'>Add +1</button>\";\n\t\t\t$html\t.=\"<span class='loading-16' id='submit_dates_loader' style='display:none;'></span>\";\n\t\t\t$html\t.=\"<div class='agc_suggest_scroll'><div class='agc_suggested_name'></div></div>\";\n\t\t}\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "254eb8f10444cbc904ea8c332288f22a", "score": "0.47576267", "text": "public function list_select_tag()\n {\n if (!$this->input->is_ajax_request() || $this->input->method(true) != \"GET\") {\n exit('No direct script access allowed');\n }\n\n $select_q = $this->input->get('q');\n $select_page = ($this->input->get('page')) ? $this->input->get('page') : 1;\n\n $limit = 10;\n $start = ($limit * ($select_page - 1));\n\n $filters = array();\n\n if($select_q != \"\") {\n $filters['name'] = $select_q;\n }\n\n $conditions = array();\n\n $params = $this->_dm->set_model(\"tbl_tag\",\"tt\",\"tag_id\")->get_all_data(array(\n \"select\" => \"tag_id, name\",\n \"count_all_first\" => true,\n \"filter_or\" => $filters,\n \"conditions\" => $conditions,\n \"limit\" => $limit,\n \"start\" => $start\n ));\n\n //prepare returns.\n $message[\"page\"] = $select_page;\n $message[\"total_data\"] = $params['total'];\n $message[\"paging_size\"] = $limit;\n $message[\"datas\"] = $params['datas'];\n\n $this->output->set_content_type('application/json');\n echo json_encode($message);\n }", "title": "" }, { "docid": "eb368803d6fddb01518467a28e62be9a", "score": "0.4756079", "text": "function dropdown ($action, $dd_pack, $current_value, $label, $object){\n\n global $BodyDIV,$portalcode,$val,$valtype,$do,$lingo,$strings;\n\n #echo \"$action, $dd_pack, $current_value, $label, $object\";\n\n $drop_down_return = \"\";\n\n if ($action == 'view'){\n\n $drop_down_return = \"\";\n\n if (is_array($dd_pack)){\n\n reset($dd_pack);\n\n while (list($key, $value) = each($dd_pack)){\n \n if ($key == $current_value && $current_value != NULL){\n\n if ($object != NULL){\n\n $drop_down_return = \"<a href=\\\"#\\\" onClick=\\\"loader('\".$BodyDIV.\"');doBPOSTRequest('\".$BodyDIV.\"','Body.php', 'pc=\".$portalcode.\"&do=\".$object.\"&action=view&value=\".$current_value.\"&valuetype=\".$object.\"');return false\\\"><font=#151B54>\".$value.\"</font></a>\";\n\n } else {\n\n $drop_down_return = $value;\n\n } // end if object\n\n } // end if key value\n\n } // end while\n\n } // end if array \n\n } else {\n\n# $drop_down_return = \"<select id=$label name=$label>\";\n\n $drop_down_return = \"<select id=$label name=$label style=\\\"font-family: v; font-size: 10pt; color: #5E6A7B; border: 1px solid #5E6A7B; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; width:150px;\\\">\";\n\n // Use packaged array data to create list\n\n $drop_down_return .= \"<option SELECTED id=NULL value=NULL>\".$strings[\"action_select_request\"];\n\n if (is_array($dd_pack)){\n\n reset($dd_pack);\n\n while (list($key, $value) = each($dd_pack)){\n\n if ($key == $current_value && $current_value != NULL){\n $option=\"<option SELECTED id=\\\"\".$key.\"\\\" value=\\\"\".$key.\"\\\">\".$value;\n } else { \n $option=\"<option id=\\\"\".$key.\"\\\" value=\\\"\".$key.\"\\\">\".$value;\n }\n\n $drop_down_return .= $option; \n\n } // end while\n\n } // end if array \n\n $drop_down_return .= \"</select>\";\n\n } // end if else\n\n return $drop_down_return;\n\n }", "title": "" }, { "docid": "cf15ee9e5537c792a5ca4641c950cf69", "score": "0.47556666", "text": "public function getEvents();", "title": "" }, { "docid": "cf15ee9e5537c792a5ca4641c950cf69", "score": "0.47556666", "text": "public function getEvents();", "title": "" }, { "docid": "6bb223f6654c0d39b1688d11e23868bf", "score": "0.474766", "text": "abstract public function events();", "title": "" }, { "docid": "f2cb36756714217cd16abf3c0b6606a1", "score": "0.4744386", "text": "function action_getsuggestions()\n {\n $suggestions = array();\n $this->getSuggestions($this->getRequestValue('q'), $suggestions);\n $this->sendResponseData('jsarray', $suggestions);\n }", "title": "" }, { "docid": "fd23bd728b96a530735d52521af1e855", "score": "0.47425428", "text": "function getEventList() {\r\n return array('PreAddItem', 'PostAddItem', 'PreUpdateItem', 'AddItemFormExtras','EditItemFormExtras', 'PostAddComment', 'QuickMenu',\r\n 'PostDeleteItem');\r\n }", "title": "" }, { "docid": "ac8b0addab140dc3023cd4622727b7c2", "score": "0.4741603", "text": "function SelectResponsable(){\n $cliente = new Cliente();\n\n $select = '<select id=\"responsables\" name=\"responsables\" data-placeholder=\"Responsables\" multiple class=\"validate[optional]\" >';\n\n if( $responsables = $cliente->getResponsables() ){\n foreach( $responsables as $f => $responsable ){\n $select .= '<option value=\"'.$responsable['id'].'\" title=\"'.$responsable['email'].'\" >'.$responsable['nombre'].' '.$responsable['apellidos'].'</option>';\n }\n }\n\n $select .= '</select>';\n\n return $select;\n}", "title": "" }, { "docid": "45ace631291b445088275ef9b2639d35", "score": "0.47399777", "text": "function nowlink_admin_settings_ajax_callback($form,$form_state){\n\t//just return the data_field select field which will have the correct values.\n return $form['nowlink_target_date_field'];\n}", "title": "" }, { "docid": "22b9e5f1a3a4a5b9ac9936571b61f998", "score": "0.47335458", "text": "public function ajax_data(){\n\t\tglobal $DOT;\n\t\t\n\t\tif ($DOT->post(DOT_AJAX_VAR)){\n\t\t $calendar_id = $DOT->post('calendar_id');\n\t\t \n\t\t $data = new stdClass;\n\t\t \n\t\t $data->availability = $DOT->models->availability->get($calendar_id); \n\t\t\t \n\t\t echo json_encode($data);\n\t\t}\n\t\telse{\n\t\t echo 'false';\n\t\t}\n\t\t\n\t\texit;\n\t }", "title": "" }, { "docid": "6afc24d599296befd3169787a00f06d8", "score": "0.47295806", "text": "public function getEventListAction()\n\t{\n\t\t$repo = $this->getDoctrine()->getRepository(\"ManagerBundle:Event\");\n\n\t\t$events = $repo->findAll();\n\t\t$jsonEvents = array(\"events\" => array());\n\n\t\tforeach ($events as $event) {\n\t\t\tarray_push($jsonEvents['events'], array(\n\t\t\t\t\"id\" => $event->getId(),\n\t\t\t\t\"name\" => $event->getName(),\n\t\t\t\t\"start_date\" => $event->getStartDate(),\n\t\t\t\t\"end_date\" => $event->getEndDate(),\n\t\t\t\t\"description\" => $event->getDescription(),\n\t\t\t\t\"image\" => $event->getImage()->getWebPath()\n\t\t\t));\n\n\t\t}\n\n\t\treturn new JsonResponse($jsonEvents);\n\t}", "title": "" }, { "docid": "2b9668d05befce7241f1c069c11227af", "score": "0.47279072", "text": "function set_js_ajax_event($args){\n\t\tif($args[\"type\"]==\"\"){\n\t\t\t$args[\"type\"]=\"POST\";\n\t\t}\n\t\tif($args[\"dataType\"]==\"\"){\n\t\t\t$args[\"dataType\"]=\"text\";\n\t\t}\n\t\tif($args[\"async\"]==\"\"){\n\t\t\t$args[\"async\"]=\"true\";\n\t\t}\n\t\tarray_push($this->js_ajax_event, $args);\n\t}", "title": "" }, { "docid": "bb162eae8fdd12ab6900a48d381b3650", "score": "0.47210088", "text": "function get_event_types_list()\r\n{\r\n\r\n\t$taxonomy = 'venue-event';\r\n\t$args = array(\r\n\t\t'taxonomy' => $taxonomy,\r\n\t\t'orderby' => 'ID',\r\n\t\t'hide_empty' => false,\r\n\t);\r\n\r\n\t?>\r\n\t<label class=\"select\" for=\"eventtypefilter\"><i><?php the_field('event_spaces_default_text', 'option'); ?></i>\r\n\t\t<select class=\"event-type-filter\" name=\"eventtypefilter\">\r\n\t\t\t<option value=\"0\"><?php the_field('event_spaces_default_text', 'option'); ?></option>\r\n\t\t\t<?php\r\n\r\n\t\t\t$custom_terms = get_terms($taxonomy, $args);\r\n\t\t\tforeach ($custom_terms as $term) {\r\n\t\t\t\tif ($term->slug !== 'restaurants') {\r\n\t\t\t\t\t?>\r\n\t\t\t\t\t<option value=\"<?php echo $term->slug; ?>\"><?php echo $term->name; ?></option>\r\n\t\t\t\t\t<?php\r\n\t\t\t\t}\r\n\t\t\t} ?>\r\n\t\t</select>\r\n\t</label>\r\n\t<?php\r\n\r\n\r\n}", "title": "" }, { "docid": "fde392870b7c04f4ff611ecc9541d6e3", "score": "0.47186866", "text": "function seriesDropdown(){\n\t\t$seriesId = $_GET['seriesId'];\n\t\t\n\t\t$userId = getUserId();\n\t\t\n\t\t$conn = connect_magma();\n\t\t\n\t\tif ($seriesId > 0)\n\t\t{\n\t\t\t// Series Dropdown\n\t\t\t// echo \"seriesId has a value and it is \" . $seriesId;\n\t\t\t$sql = \"SELECT * FROM seriesTable WHERE seriesId = \" . $seriesId;\n\t\t\t$result = $conn->query($sql);\n\t\t\twhile($row = $result->fetch_assoc()) {\n\t\t\t\t$seriesNumber = sprintf(\"%04d\", $row['seriesNumber']);\n\t\t\t\techo \"<h5><a href='./create-assignment'>Reset Series</a></h5>\";\n\t\t\t\t\n\t\t\t\techo \"<h4>Series Title: \" . $row['seriesTitle'] . \"</h4>\";\n\t\t\t\techo \"<h4>Series Number: \" . $seriesNumber . \"</h4>\";\n\t\t\t}\n\t\t} else {\n\t\t\t$sql = \"SELECT * FROM seriesTable WHERE seriesStatus = 1 ORDER BY seriesTitle ASC \";\n\t\t\t$result = $conn->query($sql);\n\t\t\techo \"<form action='create-assignment?seriesId=1'>\";\n\t\t\techo \"<select name='seriesId' onchange='this.form.submit()';>\";\n\t\t\techo \"<option value='0'>Select Series</option>\";\n\t\t\twhile($row = $result->fetch_assoc()) {\n\t\t\t\techo \"<option value='\" . $row['seriesId'] . \"'>\";\n\t\t\t\techo $row['seriesTitle'] . \"</option>\";\n\t\t\t}\n\t\t\techo \"</select>\";\n\t\t\techo \"</form>\";\n\t\t}\n\t\tclose_magma();\n\t}", "title": "" }, { "docid": "73752d92cb1c53cafddce43c7f493625", "score": "0.47185892", "text": "function dhtml_response_list(&$items, $method) {\n\theader(\"Content-Type: text/xml\");\n\n\tprint('<?xml version=\"1.0\" encoding=\"utf-8\" ?>'.\"\\n\");\n\tprint(\"<response>\\n\");\n\tprintf(\" <method>%s</method>\\n\", htmlspecialchars($method));\n\tprint(\" <result>\\n\");\n\tforeach ($items as &$item)\n\t\tprintf(' <option>%s</option>'.\"\\n\", htmlspecialchars($item));\n\tprint(\" </result>\\n\");\n\tprint(\"</response>\");\n}", "title": "" }, { "docid": "e0477c908fc873c460851a492c9b50f3", "score": "0.4717239", "text": "public static function get_subscribed_events();", "title": "" }, { "docid": "7f085abc5d6a88fc9f492050629bde07", "score": "0.4714023", "text": "public function updateClientSide()\n\t{\n\t\t$client = $this->getControl()->getPage()->getCallbackClient();\n\t\t$client->setListItems($this->getControl(), $this);\n\t\t$this->_hasChanged=false;\n\t}", "title": "" }, { "docid": "9c8d9ac0035155704f29c0e1a59f4e20", "score": "0.47132418", "text": "abstract protected function buildEvents($fetchedResults);", "title": "" }, { "docid": "4017ae786d47928b83057fc482830cd8", "score": "0.47131765", "text": "function handleMultiselect()\n {\n $node = &$this->m_node;\n $columnConfig = &$node->getColumnConfig();\n $recordset = $node->selectDb(implode(' OR ',$this->m_postvars['atkselector']),\n $columnConfig->getOrderByStatement(),\n \"\",\n $node->m_listExcludes,\n \"\",\n \"multiselect\");\n\n // loop recordset to parse atktargetvar\n $atktarget = atkurldecode($node->m_postvars['atktarget']);\n $atktargetvar = $node->m_postvars['atktargetvar'];\n $atktargettpl = $node->m_postvars['atktargetvartpl'];\n\n for ($i = 0; $i < count($recordset); $i++)\n {\n \tif ($i == 0 && strpos($atktarget, '&') === false) $atktarget.= '?';\n \telse $atktarget .= '&';\n \t$atktarget.= $atktargetvar.'[]='.$this->parseString($atktargettpl, $recordset[$i]);\n }\n $node->redirect($atktarget);\n }", "title": "" }, { "docid": "0dd6f2db0058df1adea6f58a0347fca3", "score": "0.47129098", "text": "function edd_multiselect_callback($args) {\n\t\tglobal $edd_options;\n\n\t\tif ( isset( $edd_options[ $args['id'] ] ) ) {\n\t\t\t$value = $edd_options[ $args['id'] ];\n\t\t} else {\n\t\t\t$value = isset( $args['std'] ) ? $args['std'] : '';\n\t\t}\n\n\t\tif ( isset( $args['placeholder'] ) ) {\n\t\t\t$placeholder = $args['placeholder'];\n\t\t} else {\n\t\t\t$placeholder = '';\n\t\t}\n\n\t\tif ( isset( $args['chosen'] ) ) {\n\t\t\t$chosen = 'class=\"edd-wallet-select-chosen\"';\n\t\t} else {\n\t\t\t$chosen = '';\n\t\t}\n\n\t\t$html = '<select id=\"edd_settings[' . $args['id'] . ']\" name=\"edd_settings[' . $args['id'] . '][]\" ' . $chosen . 'data-placeholder=\"' . $placeholder . '\" multiple />';\n\n\t\tif( ! empty( $args['options'] ) ) {\n\t\t\tforeach ( $args['options'] as $option => $name ) {\n\t\t\t\tif( is_array( $value ) ) {\n\t\t\t\t\t$selected = selected( true, in_array( $option, $value ), false );\n\t\t\t\t} else {\n\t\t\t\t\t$selected = selected( $value, $option, false );\n\t\t\t\t}\n\n\t\t\t\t$html .= '<option value=\"' . esc_attr( $option ) . '\" ' . $selected . '>' . esc_html( $name ) . '</option>'; \n\t\t\t}\n\t\t}\n\n\t\t$html .= '</select>';\n\t\t$html .= '<label for=\"edd_settings[' . $args['id'] . ']\"> ' . $args['desc'] . '</label>';\n\n\t\techo $html;\n\t}", "title": "" }, { "docid": "660a36c07197c1fd81e79f49376cdf63", "score": "0.47047868", "text": "public function handleRequest(){\n\t\t$SitemapCollection = SitemapActions::selectList();\n\t\t\n\t\t// Put them in a data field so they can be used on the view\n\t\t$this->getDataObject()->set('SitemapCollection',$SitemapCollection);\n\t}", "title": "" }, { "docid": "f8c5ad17a8092234451c605c92637818", "score": "0.47032112", "text": "public function receiveEvent(array $reply);", "title": "" }, { "docid": "395244c72dbc569f9b57569c364cef1e", "score": "0.46990195", "text": "function get_events_list($calendarId, $queryOpts){\n\tglobal $Wallboard_Api;\n\treturn $Wallboard_Api->get_events_list($calendarId, $queryOpts);\n}", "title": "" }, { "docid": "8e7dab29d91956a7929392ffc34b9d69", "score": "0.46906158", "text": "public function events_calendar_options() {\n\t\t$this->render_option_tabs( $this::get_pagetype_tab( 'tribe_events' ) );\n\t}", "title": "" }, { "docid": "d835cd9f85b3dc247c87efc39145c653", "score": "0.46898046", "text": "public static function getSubscribedEvents();", "title": "" }, { "docid": "8491783f15077fa71f2c096bbdee5f27", "score": "0.4689634", "text": "public function get_events_json() {\n\t\t\n\t\n\n\t\t/**\n\t\t * The code below seems te be the cause of some weird WordPress behavior, \n\t\t * where editing a page in the backend would cause the query to mess up, \n\t\t * and instead show the content of the last event, rather then the page intended for editing.\n\t\t * Its really hard to test, so for now we're simply going to comment it out.\n\t\t */\n\t\t\n\t\t$args = array(\n\t\t\t'post_type' => 'event',\n\t\t\t'post_status' => 'publish',\n\t\t\t'posts_per_page' => -1,\n\t\t);\n\t\t$query = new WP_Query( $args );\n\n\t\t//create an empty array to populate\n\t\t$events_json = array();\n\n\t\t//populate json array\n\t\tif ( $query->have_posts() ): while ( $query->have_posts() ) : $query->the_post();\n\t\t\t\t\n\t\t\t\t$related_post_id = get_related_id();\n\t\t\t\t$related_post_type = get_post_type($related_post_id);\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t//Make the end date of \"all-day\" events inclusive.\n\t\t\t\t//FullCalendar behaves according to google cal and iCalendar standards: excluding the end date, when all-day is set.\n\t\t\t\t//This seems wierd to our usecase., so we set the end date to the day after, in order to get the correct display in our calendar view.\n\t\t\t\t//Notice, however, that we dont change that actual data stored i db, as we might want to change this behavior later.\n\t\t\t\t//\n\t\t\t\t\n\t\t\t\tif(is_all_day()) {\n\t\t\t\t\t$end_date = date('Y-m-d H:i:s', strtotime(get_end_date('Y-m-d H:i') . ' + 1 day'));\n\t\t\t\t} else {\n\t\t\t\t\t$end_date = get_end_date('Y-m-d H:i');\n\t\t\t\t}\n\t\t\t\t$related = get_post($related_post_id);\n\t\t\t\t$events_json[] = array(\n\t\t\t\t\t'id' => get_the_id(),\n\t\t\t\t\t'title' => $related->post_title,\n\t\t\t\t\t'start' => get_start_date('Y-m-d H:i'),\n\t\t\t\t\t'end' => $end_date,\n\t\t\t\t\t'url' => get_edit_post_link($related_post_id, ''),\n\t\t\t\t\t'allDay' => is_all_day(),\n\t\t\t\t\t'className' => array('post-type-'.$related_post_type, 'mcal-event', 'event-'.get_the_id() ),\n\t\t\t\t);\n\t\t\t\n\t\tendwhile; \n\t\twp_reset_postdata();\n\t\tendif;\n\t\t\n\t\t//echo the JSON-formatted array to js.\n\t\t\n\t\treturn json_encode($events_json);\n\t\t\n\t}", "title": "" }, { "docid": "84588b2af4019f039800038780cdccea", "score": "0.46797535", "text": "function populateList() {\n\n if (empty($this->dbHL[$this->directive['dataBaseID']])) {\n $this->fatalErrorPage(\"attempt to use dbSelectEntity without a database connection on id [{$this->directive['dataBaseID']}]!\");\n }\n\n if (($this->directive['tableName'] == '')||($this->directive['dataField'] == '')) {\n $this->debugLog(\"table or dataField was not set!\");\n return;\n }\n\n if (!empty($this->directive['whereClause'])) {\n if (!preg_match(\"WHERE\",$this->directive['whereClause']))\n $wC = 'WHERE '.$this->directive['whereClause'];\n else\n $wC = $this->directive['whereClause'];\n }\n else {\n $wC = '';\n }\n\n $vF = $this->directive['viewField'];\n if (empty($vF)) {\n $this->fatalErrorPage(\"viewField wasn't set\");\n }\n\n // order by viewField by default\n if ($this->directive['orderBy'] != '')\n $oB = 'ORDER BY '.$this->directive['orderBy'];\n elseif ($this->directive['orderBy'] != '*')\n $oB = 'ORDER BY '.$this->directive['viewField'];\n else\n $oB = '';\n\n // order by viewField by default\n if ($this->directive['groupBy'] != '')\n $gB = ' GROUP BY '.$this->directive['groupBy'];\n else\n $gB = '';\n\n\n\n // check for a dbOverRide\n if(isset($this->directive['dbOverRide']))\n $dbName = $this->directive['dbOverRide'];\n\n $SQL = \"SELECT {$this->directive['dataField']} AS table_id, {$this->directive['viewField']} FROM {$this->directive['tableName']} $wC $gB $oB\";\n\n $rh = $this->dbHL[$this->directive['dataBaseID']]->query($SQL);\n if ($this->dbErrorCheck($rh, $this)) {\n $this->addOption('** bad SQL query **');\n return;\n }\n\n while ($rr = $rh->fetch(PDO::FETCH_NUM)) {\n\n $title = '';\n for ($fc=1; $fc < sizeof($rr); $fc++) {\n $title .= $rr[$fc].$this->directive['vfSeparator'];\n }\n $cutVal = strlen($this->directive['vfSeparator']);\n $title = substr($title, 0, -$cutVal);\n\n $this->addOption($title, $rr[0]);\n\n }\n\n $rh = null;\n }", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "e05e5cbe9d4537d0bd5702986c06022d", "score": "0.0", "text": "public function store(Request $request)\n {\n $this->validate($request, [\n 'name' => 'required|min:3|max:50|unique:users',\n 'password' => 'min:6|required_with:confirmPassword|same:confirmPassword',\n 'confirmPassword' => 'min:6|required_with:password|same:password',\n 'fullname'=>'required|min:3',\n 'address_1'=>'required',\n 'address_2'=>'sometimes',\n 'landmark'=>'sometimes',\n 'country'=>'required',\n 'state'=>'required',\n 'city'=>'required',\n 'pincode'=>'required|min:3',\n 'mobile'=>'required|max:10|regex:/[0-9]{10}/u',\n 'email' => 'email|unique:users',\n 'sms' => 'sometimes',\n 'mail' => 'sometimes',\n // 'pan_status'=>'sometimes',\n // 'aadhaar_status'=>'sometimes',\n // 'pan' => 'required_with:aadhaar_status,off|regex:/[A-Z]{5}[0-9]{4}[A-Z]{1}/u',\n // 'pan_file' => 'required_with:aadhaar_status,off|mimes:png,jpeg,jpg,JPEG,JPG,PNG',\n // 'aadhaar' => 'required_with:pan_status,off|regex:/^[2-9]{1}[0-9]{3}\\\\s[0-9]{4}\\\\s[0-9]{4}$/u',\n // 'aadhaar_file_1' => 'required_with:pan_status,off|mimes:png,jpeg,jpg,JPEG,JPG,PNG',\n // 'aadhaar_file_2' => 'required_with:pan_status,off|mimes:png,jpeg,jpg,JPEG,JPG,PNG',\n 'pan' => 'required|regex:/[A-Z]{5}[0-9]{4}[A-Z]{1}/u',\n 'pan_file' => 'required|mimes:png,jpeg,jpg,JPEG,JPG,PNG',\n 'aadhaar' => 'required|regex:/^[2-9]{1}[0-9]{3}\\\\s[0-9]{4}\\\\s[0-9]{4}$/u',\n 'aadhaar_file_1' => 'required|mimes:png,jpeg,jpg,JPEG,JPG,PNG',\n 'aadhaar_file_2' => 'required|mimes:png,jpeg,jpg,JPEG,JPG,PNG',\n\n // 'passport'=>'required|min:7|max:15',\n // 'passport_file_1'=>'required|mimes:png,jpeg,jpg,JPEG,JPG,PNG',\n // 'passport_file_2'=>'required|mimes:png,jpeg,jpg,JPEG,JPG,PNG',\n 'passport'=>'sometimes|nullable|min:7|max:15',\n 'passport_file_1'=>'required_with:passport|mimes:png,jpeg,jpg,JPEG,JPG,PNG',\n 'passport_file_2'=>'required_with:passport|mimes:png,jpeg,jpg,JPEG,JPG,PNG',\n\n 'reference_1'=>'sometimes',\n 'reference_2'=>'sometimes',\n 'reference_mbl_1'=>'required_with:reference_1',\n 'reference_mbl_2'=>'required_with:reference_2'\n ]);\n\n // for all the checkbox\n\n if ($request['sms']=='on') {\n $sms='1';\n }else{\n $sms='0'; \n }\n if ($request['mail']=='on') {\n $mail='1';\n }else{\n $mail='0'; \n }\n if ($request['pan_status']=='on') {\n $pan_status='1';\n }else{\n $pan_status='0'; \n }\n if ($request['aadhaar_status']=='on') {\n $aadhaar_status='1';\n }else{\n $aadhaar_status='0'; \n }\n // for uploading pan file\n if ($request->file('pan_file')) {\n $panfile = $request->file('pan_file');\n\n // generate a new filename. getClientOriginalExtension() for the file extension\n #$filename = 'pan'.time().'.'.$panfile->getClientOriginalExtension();\n\n $panpath = $panfile->hashName('public/panfiles');\n $panimage = Image::make($panfile)->resize(400,300)->encode('jpg');\n Storage::put($panpath, (string) $panimage->encode());\n $panurl = Storage::url($panpath);\n }else{\n $panurl='';\n }\n // for uploading aadhar file\n if ($request->file('aadhaar_file_1')) {\n $aadhaarfile_1 = $request->file('aadhaar_file_1');\n $aadhaarpath = $aadhaarfile_1->hashName('public/aadhaarfiles');\n $aadhaarimage_1 = Image::make($aadhaarfile_1)->resize(400,300)->encode('jpg');\n Storage::put($aadhaarpath, (string) $aadhaarimage_1->encode());\n $aadhaarurl_1 = Storage::url($aadhaarpath);\n }else{\n $aadhaarurl_1='';\n }\n if ($request->file('aadhaar_file_2')) {\n $aadhaarfile_2 = $request->file('aadhaar_file_2');\n $aadhaarpath = $aadhaarfile_2->hashName('public/aadhaarfiles');\n $aadhaarimage_2 = Image::make($aadhaarfile_2)->resize(400,300)->encode('jpg');\n Storage::put($aadhaarpath, (string) $aadhaarimage_2->encode());\n $aadhaarurl_2 = Storage::url($aadhaarpath);\n }else{\n $aadhaarurl_2='';\n }\n // for passport files\n if ($request->file('passport_file_1')) {\n $passportfile_1 = $request->file('passport_file_1');\n $passportpath = $passportfile_1->hashName('public/passportfiles');\n $passportimage_1 = Image::make($passportfile_1)->resize(400,300)->encode('jpg');\n Storage::put($passportpath, (string) $passportimage_1->encode());\n $passporturl_1 = Storage::url($passportpath);\n }else{\n $passporturl_1='';\n }\n if ($request->file('passport_file_2')) {\n $passportfile_2 = $request->file('passport_file_2');\n $passportpath = $passportfile_2->hashName('public/passportfiles');\n $passportimage_2 = Image::make($passportfile_2)->resize(400,300)->encode('jpg');\n Storage::put($passportpath, (string) $passportimage_2->encode());\n $passporturl_2 = Storage::url($passportpath);\n }else{\n $passporturl_2='';\n }\n $user=new User([\n 'name' => trim($request['name']),\n 'password' => Hash::make($request['password']),\n 'fullname'=>trim($request['fullname']),\n 'address_1'=>$request['address_1'],\n 'address_2'=>$request['address_2'],\n 'landmark'=>$request['landmark'],\n 'country'=>$request['country'],\n 'state'=>$request['state'],\n 'city'=>$request['city'],\n 'pincode'=>$request['pincode'],\n 'mobile_1'=>$request['mobile'],\n 'email' => trim($request['email']),\n 'mobile_notification' => $sms,\n 'email_notification' => $mail,\n 'pan_status'=>$pan_status,\n 'aadhaar_status'=>$aadhaar_status,\n 'pan' => $request['pan'],\n 'pan_file' => $panurl,\n 'aadhaar' => $request['aadhaar'],\n 'aadhaar_file_1' => $aadhaarurl_1,\n 'aadhaar_file_2' => $aadhaarurl_2,\n 'passport'=>$request['passport'],\n 'passport_file_1'=>$passporturl_1,\n 'passport_file_2'=>$passporturl_2,\n 'reference_name_1'=>$request['reference_1'],\n 'reference_name_2'=>$request['reference_2'],\n 'reference_number_1'=>$request['reference_mbl_1'],\n 'reference_number_2'=>$request['reference_mbl_2']\n ]);\n $user->save();\n #return Auth::loginUsingId($user->id);\n //return redirect(Auth::login($user));\n \n return view('auth.verify-email');\n }", "title": "" } ]
[ { "docid": "a3eaa169a246f55fd5bf18b486ebe204", "score": "0.70050573", "text": "public function store()\n {\n /* Check if logged user is authorized to create resources */\n $this->authorize('create', [$this->model]);\n\n $this->request->validate($this->storeValidations());\n\n DB::transaction(function () {\n\n /** Create a new resource */\n $resource = Model::create([\n 'user' => Input::get('user'),\n 'name' => Input::get('name'),\n 'email' => Input::get('email'),\n 'status' => Input::get('status'),\n 'password' => bcrypt(config('user.default_password', 'secret')),\n ]);\n\n /* Check if permissions are being set */\n if (Input::get('roles') != null) {\n /** Synchronize both tables through pivot table */\n $resource->roles()->sync(Input::get('roles'));\n }\n }, 5);\n\n /* Redirect to resource index page */\n return redirect()\n ->route($this->name . '.index')\n ->with('success', $this->name . '.resource-created');\n }", "title": "" }, { "docid": "8d0bfe30c62faf0feb996618f9875517", "score": "0.69766456", "text": "protected function store($resource_entity)\n {\n if ($resource_entity->isStored()) {\n $model = ResourceModel::find($resource_entity->id);\n } else {\n $model = new ResourceModel();\n }\n $model->fill(\n [\n 'bucket' => $resource_entity->bucket,\n 'hash' => $resource_entity->hash,\n 'processed_hash' => $resource_entity->processed_hash,\n 'mime_type' => $resource_entity->mime_type,\n 'desc' => $resource_entity->desc,\n ]\n );\n $model->save();\n $resource_entity->url = $this->url($model);\n $resource_entity->setIdentity($model->id);\n\n }", "title": "" }, { "docid": "310f8da9f04c8768eed8a9dadc64ed2d", "score": "0.66146183", "text": "public function store(ResourceStoreRequest $request): RedirectResponse\n {\n $input = $request->validated();\n $input['is_facility'] = $request->has('is_facility');\n\n $resource = Resource::create($input);\n $resource->categories()->sync($request->get('categories'));\n $resource->groups()->sync($request->get('groups'));\n\n laraflash()\n ->message()\n ->title('Resource was created')\n ->content('Resource \"'.$resource->name.'\" was created successfully.')\n ->success();\n\n return redirect()->route('resources.index');\n }", "title": "" }, { "docid": "d0ab33c00beb338b5537109124c32bc3", "score": "0.6592173", "text": "public function create(Storage $storage): void;", "title": "" }, { "docid": "53b23500f551bbef6ad4a65447665f8a", "score": "0.6527683", "text": "public function store() {}", "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": "" }, { "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": "" } ]
45f56e2e99a32591e1e79f2eda02bf86
[post] / Create a new user `Requires authentication: yes`
[ { "docid": "5d777b962686c15dbe5fb99431e4c131", "score": "0.0", "text": "public function store(UserRequest $request){\n return $this->saveUser($request);\n }", "title": "" } ]
[ { "docid": "ad24caa49fb50250b3b8d052380c39ff", "score": "0.81548065", "text": "public function new_user_post()\r\n {\r\n if($this->post(\"username\") && $this->post(\"password\")){\r\n $this->load->model(\"api_model\");\r\n $new_user = $this->api_model->create_user($this->post(\"username\"),$this->post(\"password\"));\r\n if($new_user === false){\r\n $this->response(array(\"status\" => \"failed\"));\r\n }else{\r\n $this->response(array(\"status\" => \"success\"));\r\n }\r\n }\r\n }", "title": "" }, { "docid": "5df32e6b2c91e8136739745f2bd5c22b", "score": "0.7415235", "text": "function create_new(){\n\t\tif($this->request->post() && ($d = $this->form->validate($this->params))){\n\t\t\t$user = User::Login($d[\"login\"],$d[\"password\"],$bad_password);\n\t\t\tif(!$user){\n\t\t\t\tif($bad_password){\n\t\t\t\t\t$this->_report_fail(_(\"Bad password\"),401); // Unauthorized\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t$this->_report_fail(_(\"There is no such user\"),404); // Not Found\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$this->_login_user($user);\n\t\t\t$this->api_data = $this->_dump_user($user);\n\t\t}\n\t}", "title": "" }, { "docid": "14cfb9d12db5f0ff39f9c464545c1aa9", "score": "0.7307927", "text": "public function testPostCreateUser()\n {\n $parameters = [\n 'name' => 'Kaio',\n 'document' => '11111111111',\n 'email' => 'email@phpunit.com',\n 'password' => '1234'\n ];\n\n $response = $this->post('/users', $parameters);\n\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "aa4b351689a5beac61ee820c20ae273b", "score": "0.73014784", "text": "public function userCreate()\n {\n $ostObj = $this->instantiateOSTKYCSDKForV2Api();\n $userService = $ostObj->services->user;\n $params = array();\n $email = \"kyctest\".time().\"_\".phpVersion().\"@ost.com\";\n $params['email'] = $email;\n $response = $userService->create($params)->wait();\n $this->isSuccessResponse($response);\n }", "title": "" }, { "docid": "bf04210421f6ec14e788929ca84926ff", "score": "0.72963643", "text": "public function createUser() {\n // Get the transmitted data\n $data = \\Core\\App::getInstance()->request->getBody();\n $new_data = json_decode($data, true);\n\n // Replace empty values with null\n foreach($new_data as $key => $value) {\n if($value === '') {\n $new_data[$key] = NULL;\n }\n }\n\n // Insert the data\n $username = $new_data['username'];\n $name = $new_data['name'];\n $password = password_hash($new_data['password'], PASSWORD_DEFAULT);\n $default_permission = $new_data['default_permission'];\n $result = \\Core\\Database::getInstance()->query(\"CALL proc_createUser('$username', '$password', '$name', $default_permission)\");\n\n // Return the appropriate result\n if($result === false) {\n \\Helpers\\Response::error();\n } else {\n \\Helpers\\Response::success(\n false,\n [\n [\n 'module_name' => 'core',\n 'model_name' => 'users'\n ]\n ]\n );\n }\n }", "title": "" }, { "docid": "796f33751ac748c800bf94ef83736cc9", "score": "0.718211", "text": "public function createUser($userName, $password);", "title": "" }, { "docid": "a8a6084483e498c29d13aeb3b007fd80", "score": "0.7147781", "text": "public function actionCreateUser() {\n $request = Yii::app()->request;\n if ($request->isPostRequest && isset($_POST)) {\n try {\n $attr = StringHelper::filterArrayString($_POST);\n $result = User::model()->createUser($attr);\n if ($result) {\n ResponseHelper::JsonReturnSuccess($result, 'Success');\n } else {\n ResponseHelper::JsonReturnError('', 'Error');\n }\n } catch (exception $e) {\n var_dump($e->getMessage());\n }\n Yii::app()->end();\n }\n }", "title": "" }, { "docid": "e7d031dc44b2d68c6d5506f9a0299542", "score": "0.7121871", "text": "public function createUserAction() {}", "title": "" }, { "docid": "457730365a411bd08fa9bb5b437672f0", "score": "0.7106347", "text": "public function wsuwp_sso_create_new_user() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "79fc28f0640a1c375253a55e3bd54a3a", "score": "0.710353", "text": "public function guests_can_create_new_user(){\n \n //Arrange\n\n\n //Act\n $response = $this->post('api/signup', ['email'=>'test@test.com',\n 'name' =>'test',\n 'date_of_birth'=>'2000-12-12']);\n //Assert\n // Confirm that a new record with this email created in the database\n $this->assertDatabaseHas('users',['email'=>'test@test.com']);\n\n $response->assertStatus(201);\n }", "title": "" }, { "docid": "a275bd2d37e9d19f72aad4479b394a44", "score": "0.70885664", "text": "public function test_createUser()\n {\n $this->post('/api/users', [\n \"name\" => \"puwrple tewars\",\n \"password\" => \"123456\",\n \"email\" => \"purpwle@teasrs.com\",\n ])\n ->assertStatus(201);\n }", "title": "" }, { "docid": "960f59dbc970fcb74b19a3888301d518", "score": "0.70075387", "text": "public function createUser()\n {\n $command = new CreateUserRequest(\n Input::get('email'),\n Input::get('name'),\n Hash::make(Input::get('password'))\n );\n\n $this->bus->execute($command);\n\n return $this->redirectBack();\n\n }", "title": "" }, { "docid": "315df35b152c35c374d54714713e6752", "score": "0.69364333", "text": "public function testCreatingUser() {\n\t\t// Delete user if they already exist before attempting to add them to the database\n\t\tif ( !empty( User::where( 'user_id', 'UH8LSF3NV' )->first() ) ) {\n\t\t\t$delete_response = $this->json(\n\t\t\t\t'DELETE',\n\t\t\t\t'/api/user/UH8LSF3NV',\n\t\t\t\t[],\n\t\t\t\t[ 'hey-burrito-token' => env( 'HEY_BURRITO_AUTH_TOKEN' ) ]\n\t\t\t);\n\t\t}\n\n\t\t$response = $this->json(\n\t\t 'POST',\n\t\t\t'/api/user',\n\t\t\t[ 'username' => 'Actually Connor' ],\n\t\t\t[ 'hey-burrito-token' => env( 'HEY_BURRITO_AUTH_TOKEN' ) ]\n\t\t);\n\n\t\t$response->assertStatus( 201 );\n\t}", "title": "" }, { "docid": "6ff25e47b1a19ac44c63cbfcbc35508c", "score": "0.6921547", "text": "public function register_creates_and_authenticates_a_user()\n {\n $response = $this->post(route('register'), [\n 'name' => 'pepin',\n 'email' => 'pepin@example.com',\n 'password' => 'test1234',\n 'password_confirmation' => 'test1234',\n ]);\n $response->assertRedirect(route('home'));\n $this->assertDatabaseHas('users', [\n 'name' => 'pepin',\n 'email' => 'pepin@example.com'\n ]);\n }", "title": "" }, { "docid": "3b656f7ada0e5e4630915620f7dfcc70", "score": "0.6910017", "text": "public function users_post()\n {\n \n $envio = $this->post();\n\n $email = $this->post('email');\n $password = $this->post('password');\n // echo $email ;\n\n // comprobamos si el usuario existe\n $existo = $this->users_model->exists($email);\n if ($existo > 0) {\n // error. el usuario ya existe\n $output['status'] = false;\n $output['errors'] = 'the user exists';\n $this->response($output, REST_Controller::HTTP_NOT_FOUND); // BAD_REQUEST (400)\n } else {\n // si no existe intentamos crearlo\n $id = $this->users_model->register($envio);\n if ($id != \"\"){\n $output['status'] = true;\n $output['email'] = $email;\n $this->response($output, REST_Controller::HTTP_CREATED); // CREATED (201)\n } else {\n // error. no se ha podido crear el usuario\n $output['status'] = false;\n $output['errors'] = 'cannot create new user';\n $this->response($output, REST_Controller::HTTP_NOT_FOUND); // BAD_REQUEST (400)\n } \n }\n \n }", "title": "" }, { "docid": "332f96f5bfed74f9bbfd21d9a60da430", "score": "0.68943405", "text": "public function addUser() {\n\n try {\n\n $min_data = ['nickname','email','password'];\n\n $form = $this->getApp()->request()->post();\n\n foreach($min_data as $required_field) {\n if(!isset($form[$required_field])) {\n throw new \\Exception(\"Missing required field \".$required_field.\". Required fields are \".implode(\",\",$min_data));\n }\n }\n\n $email = $form[\"email\"];\n $password = $form[\"password\"];\n $nickname = $form[\"nickname\"];\n\n if(!Utilities::isValidEmail($email)) {\n throw new \\Exception(Language::t('USERS_NO_USER_WITH_EMAIL',\"Email \".$email.\" is not a valid email address\"));\n }\n\n //-- Before creating a new user, we need to check we dont have a user with this same user name\n $existing_user = UserAuth::getByUserName($email);\n\n if(!is_null($existing_user)) {\n throw new \\Exception(\"Email \".$email.\" is already in use\");\n }\n\n //-- Ok, lets create the new User\n $user_auth = new UserAuth();\n $user_auth->setUserName($email);\n\n //-- Lets encode the password using a salt string\n $salt_string = strval(time());\n $password = $password.$salt_string;\n\n $user_auth->setPassword(sha1($password));\n $user_auth->setSalt(base64_encode($salt_string));\n\n $user_auth->persist();\n\n //-- Now we have the user_id, lets create the user now\n\n $user = new User();\n $user->setUserId($user_auth->getUserId());\n $user->setEmail($email);\n $user->setNickname($nickname);\n $user->persist();\n\n //-- Remove Password from Response\n unset($form['password']);\n\n $this->getApp()->render(\n 200,\n ['data' => $form]\n );\n\n }catch(\\Exception $e) {\n\n $this->getApp()->render(\n 500,\n ['error' => $e->getMessage()]\n );\n }\n\n\n }", "title": "" }, { "docid": "ac54ce8b0cb9ad5db23bc4e849d4a784", "score": "0.6889946", "text": "public function createUser()\n {\n\n }", "title": "" }, { "docid": "3753d4466035a66a6f128a426b6251b4", "score": "0.6881394", "text": "public function actionCreateUser()\r\n {\r\n // $user->username = 'admin';\r\n // $user->email = 'artm@liderpoiska.ru';\r\n // $user->password = 'Gjf/1k2U';\r\n // $user->setPassword('Gjf/1k2U');\r\n // $user->generateAuthKey();\r\n \r\n // return $user->save() ? $user : 'пользователь не создан';\r\n\r\n \r\n echo \"конец\";\r\n exit;\r\n }", "title": "" }, { "docid": "33b146d66899823a07b5a69dda7ae8f2", "score": "0.6874078", "text": "public function add() {\r\n\t\tif ($this->request->is ( 'post' )) {\r\n\t\t\t$this->User->create();\r\n\t\t\tif ($this->User->save ( $this->request->data )) {\r\n\t\t\t\t$id = $this->User->id;\r\n\t\t\t\t$this->request->data['User'] = array_merge($this->request->data['User'], array('id' => $id));\r\n\t\t\t\t$this->Auth->login($this->request->data['User']);\r\n\t\t\t\t$this->Session->setFlash ( 'Your account has been successfully created!' );\r\n\t\t\t\t$this->redirect ('/users/setup');\r\n\t\t\t} else {\r\n\t\t\t\t$this->Session->setFlash ( 'Error creating account!' );\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c9492c77a1fa3133ed9ef86eb8d7ee91", "score": "0.68667096", "text": "public function user_post()\n\t{\n\t\t$username = $this->post('username');\n\t\t$password = $this->post('password');\n\t\t\n\t\t$data = array (\n\t\t\t\t'info' => 'Login Success',\n\t\t\t\t'username' => $username,\n\t\t\t\t'password' => $password\n\t\t);\n\t\t$this->response($data, 200);\n\t}", "title": "" }, { "docid": "2d2e8ea344e614e1da64f406a0895fc5", "score": "0.6858735", "text": "public function createApiUserAction()\n {\n $user = $this->_getUserService()->createUser(\n $this->getFromRequest('key'), \n $this->getFromRequest('email')\n );\n \n $em = $this->getDoctrine()->getManager();\n $em->persist($user);\n $em->flush();\n \n return $this->createdResponse(\n $this->generateUrl(\n 'view_apiuser', \n array(\n 'apikey' => $user->getApikey()\n )\n )\n );\n }", "title": "" }, { "docid": "aec574e251b904317c37ec4b5fb62ed8", "score": "0.68514174", "text": "public function registerUser()\n {\n $this->_core->initSession();\n $vAM = \\BtcRelax\\Core::createAM();\n $result = $vAM->createNewUser();\n $param[\"registerUserResult\"] = $result;\n if (!$result) {\n $param[\"Error\"] = $vAM->getLastError();\n }\n $this->response($param, 200);\n }", "title": "" }, { "docid": "eb71ec16bd329ea8597deb991de1354b", "score": "0.6847104", "text": "public function createNewUserFromPost() {\n\t\t$insert_user_data = array(\n\t\t\t'username' => $this->input->post('username'),\n\t\t\t'password' => md5($this->input->post('password') . $this->config->item('encryption_key')),\n\t\t\t'display_name' => $this->input->post('first_name') . ' ' . $this->input->post('last_name'),\n\t\t\t'first_name' => $this->input->post('first_name'),\n\t\t\t'last_name' => $this->input->post('last_name'),\n\t\t\t'email' => $this->input->post('email'),\n\t\t\t'package_id' => 1,\n\t\t\t'level' => 'user'\n\t\t);\n\t\t\n\t\t$insert = $this->db->insert('users', $insert_user_data);\n\t\t\n\t\t// Authenticate the user\n\t\tif ($insert):\n\t\t\t$this->resetSessionData($this->db->insert_id());\n\t\telse:\n\t\t\tshow_eror('User registration failed.', 500);\n\t\tendif;\n\t\t\n\t\treturn $user;\n\t}", "title": "" }, { "docid": "4d1e4dcf715622e6817bdbfdeddb6c22", "score": "0.6826397", "text": "public function userCreateAction()\n {\n // @todo Implement. Must ensure the user has appropriate permission to create new users.\n throw new \\BadMethodCallException('NYI');\n }", "title": "" }, { "docid": "f73cafd0e685467b5a571a519e392b4b", "score": "0.6802274", "text": "public function testCreateApiUser()\n {\n extract(\n $this->doRequest(\n array(\n 'create_apiuser'\n ),\n 'POST',\n array(\n 'key' => 'alex',\n 'email' => 'alex@tocc.co.uk'\n )\n )\n );\n \n $this->assertEquals(201, $status);\n }", "title": "" }, { "docid": "ef76ded7ea6d2afbd5c517ab45ed479a", "score": "0.6781614", "text": "private function makeNewUser()\n {\n // set up new cookie on\n // client's computer\n $this->cookieSetter->setCookie();\n\n // get the hash\n $hash = $this->cookieSetter->getHash();\n\n // TODO should you pass empty object\n // Try create user. If not successful, there is\n // no reason to proceed. It is a fatal Exception\n if (!$this->user->create($hash))\n throw new Exception(\"Something went wrong! Please contact customer support. Code: 17786\");\n }", "title": "" }, { "docid": "62e841d6f4bc4e9eb2d8fea8a893fadd", "score": "0.67748773", "text": "public function p_signup() {\n $_POST['created'] = Time::now();\n $_POST['modified'] = Time::now();\n\n $_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n $_POST['token'] = sha1(TOKEN_SALT.$_POST['email'].Utils::generate_random_string());\n\n $user_id = DB::instance(DB_NAME)->insert('users', $_POST);\n\n //echo 'You\\'re signed up';\n Router::redirect(\"/users/login\");\n }", "title": "" }, { "docid": "54ec9fd320b8ba171a4efa11dab09771", "score": "0.6774108", "text": "public function create()\n {\n $attributes = request()->validate([\n 'name' => ['required', 'max:255', 'min:8', 'regex:/^\\w[\\w\\d ]{2,}$/'],\n 'email' => ['email', 'required'],\n 'password' => ['required', 'min:8', 'max:255', 'regex:/^[\\w\\d@#$%^]{7,}$/']\n ]);\n\n auth()->login(User::create($attributes));\n return redirect('/')->with('success', 'Your account has been created');\n }", "title": "" }, { "docid": "bfe0e5020e025e1672b55ac1a00c159b", "score": "0.6765605", "text": "public function createUser(){\n\n $serviceAccount = ServiceAccount::fromJsonFile(__DIR__.'/common-api-config.json');\n $firebase = (new Factory)\n ->withServiceAccount($serviceAccount)\n ->create();\n\n $auth = $this->firebase->getAuth();\n\n $userProperties = [\n 'email' \t=> 'user@example.com',\n 'emailVerified' => false,\n 'phoneNumber' \t=> '+15555550100',\n 'password' \t=> 'secretPassword',\n 'displayName' \t=> 'John Doe',\n 'photoUrl' \t=> 'http://www.example.com/12345678/photo.png',\n 'disabled' \t=> false,\n ];\n\n $createdUser = $auth->createUser($userProperties);\n\n\t return response()->json([\n 'status' => '200',\n 'data' => $createdUser\n \t]);\n\n \n }", "title": "" }, { "docid": "538f6635cf45d95906026ea38eadafb7", "score": "0.6761998", "text": "public function postCreate()\n\t{\n $rules = array(\n 'email' => 'required|email|unique:users',\n 'name' => 'required',\n 'password' => 'required|min:8|confirmed'\n );\n\n $validator = Validator::make(Input::all(), $rules);\n\n if ($validator->fails()) {\n return Redirect::to('users/create')\n ->withErrors($validator)\n ->withInput(Input::except('password'));\n } else {\n\n $userdata = array(\n 'email' \t=> Input::get('email'),\n 'name' => Input::get('name'),\n 'password' \t=> Input::get('password')\n );\n\n $user = User::create($userdata);\n $user->password = Hash::make($userdata['password']);\n $user->save();\n\n Auth::loginUsingId($user->id);\n return Redirect::to('/');\n }\n\t}", "title": "" }, { "docid": "df6c09ce3efd8e53574b8fd1a1cf4daf", "score": "0.6745162", "text": "public static function createUser(string $user, string $pass);", "title": "" }, { "docid": "66dfe93b2e1928f7fcfa604a13266d57", "score": "0.67359304", "text": "public function createUser($_post){\n $data = array(\n 'email' => $_post['email'],\n 'fname' => $_post['fname'],\n 'lname' => $_post['lname'],\n 'password' => $this->encryption->encrypt($_post['password'])\n\n );\n $this->db->insert('users', $data);\n return ($this->db->affected_rows() != 1) ? false : true;\n }", "title": "" }, { "docid": "4b48b4f84d7b3a756338b08b7e21f32c", "score": "0.67192316", "text": "function createUser()\n{\n\t$request = \\Slim\\Slim::getInstance()->request();\n\n\tparse_str($request->getBody(), $params);\n\n\t$response = \\FATS\\BLL\\User::createUser($params['netid'], $params['role'], $params['permission']);\n\techo json_encode(array('result' => $response));\n}", "title": "" }, { "docid": "4d3ddf72063535d85b40e12ba98d1667", "score": "0.6711969", "text": "function create($user)\n {\n }", "title": "" }, { "docid": "69eebcde96b199b17f299bc12f1b9da9", "score": "0.669922", "text": "public function createUser($data);", "title": "" }, { "docid": "28bcb8a493c66e1b922f725ee90783bc", "score": "0.66973644", "text": "public function postAction(): void\n {\n if (!$this->Request()->getParam('password')) {\n $passwordPlain = Random::generatePassword();\n $this->Request()->setPost('password', $passwordPlain);\n }\n\n if ($this->Request()->getParam('apiKey') && strlen($this->Request()->getParam('apiKey')) < 40) {\n throw new CustomValidationException('apiKey is too short. The minimal length is 40.');\n }\n\n $user = $this->resource->create($this->Request()->getPost());\n\n $location = $this->apiBaseUrl . 'users/' . $user->getId();\n $data = [\n 'id' => $user->getId(),\n 'location' => $location,\n ];\n if (isset($passwordPlain)) {\n $data['password'] = $passwordPlain;\n }\n\n $this->View()->assign(['success' => true, 'data' => $data]);\n $this->Response()->headers->set('location', $location);\n }", "title": "" }, { "docid": "401b660cb6b19e6891e49dacb927977f", "score": "0.66967905", "text": "public function testCreate(): void\n {\n $this->callPost(\n [\n 'email' => 'mail2@mail2.test',\n 'username' => 'username2',\n 'plainpassword' => 'password'\n ]\n );\n\n $this->assertEquals(\n 201,\n $this->client->getResponse()->getStatusCode()\n );\n $data = $this->client->getResponse()->getContent();\n $user = json_decode(\n $data,\n false\n );\n\n $this->assertEquals(\n 'username2',\n $user->username\n );\n $this->assertEquals(\n 'mail2@mail2.test',\n $user->email\n );\n $this->assertNotNull($user->uuid);\n }", "title": "" }, { "docid": "38330a0d89303e5c7599eb696f86316b", "score": "0.66915476", "text": "public function testShouldCreateUser()\n {\n $data = factory('App\\User')->make();\n $validData = [\n 'username' => $data->username,\n 'email' => $data->email,\n 'password' => bin2hex(openssl_random_pseudo_bytes(16)),\n 'first_name' => $data->first_name,\n 'last_name' => $data->last_name,\n 'address' => $data->address\n ];\n $this->post('/api/auth/register', $validData);\n $this->seeStatusCode(201);\n $createdUser = \\App\\User::latest()->first();\n $this->seeJsonEquals(\n [\n 'message' => 'created',\n 'user' => $createdUser->toArray()\n ]\n );\n }", "title": "" }, { "docid": "21cf2b2dd1a15f4256784633539d6c69", "score": "0.6682294", "text": "public function testCreatingUser()\n {\n $response = $this->call('POST', 'api/users', []);\n $response->assertStatus(401);\n\n $user = factory(User::class)->make();\n $this->actingAs($user);\n\n // empty data should give 400 invalid fields error\n $response = $this->call('POST', 'api/users', []);\n $response->assertStatus(400);\n\n // should work now\n $response = $this->call('POST', 'api/users', [\n 'email' => 'test@test.com',\n 'firstName' => 'first',\n 'lastName' => 'last',\n 'password' => bcrypt('secret')\n ]);\n $response\n ->assertStatus(201)\n ->assertJson([\n 'data' => [\n 'email' => 'test@test.com'\n ]\n ]);\n\n // same email should give 400 invalid\n $response = $this->call('POST', 'api/users', [\n 'email' => 'test@test.com',\n 'firstName' => 'first2',\n 'lastName' => 'last2',\n 'password' => bcrypt('secret')\n ]);\n $response->assertStatus(400);\n }", "title": "" }, { "docid": "944dea42cb64000a7b2e21eed3046f2c", "score": "0.667481", "text": "public function create(User $user)\n {\n\n }", "title": "" }, { "docid": "944dea42cb64000a7b2e21eed3046f2c", "score": "0.667481", "text": "public function create(User $user)\n {\n\n }", "title": "" }, { "docid": "0fe8c1ff9d3a7cf33d0b2907d3547fbf", "score": "0.6673902", "text": "public function createUser()\n {\n\n $user = new User();\n $user->username = $this->username;\n $user->phone_number = $this->phone_number;\n $user->role = $this->role;\n $user->setPassword($this->password);\n $user->generateAuthKey();\n\n return $user->save();\n }", "title": "" }, { "docid": "ffcb3894457f35ba8a9430ad6a036831", "score": "0.66733676", "text": "public function create()\n {\n $this->title = __('Create new user');\n if ($this->Request->isPost()) {\n $data = $this->Request->postParam('user');\n $user = new Users();\n if (Users::existsUsername($data['username'])) {\n throw new Exception(sprintf('Username [%s] is already in use. Try another one.', $data['username']));\n }\n $user->username = $data['username'];\n $user->firstname = $data['firstname'];\n $user->lastname = $data['lastname'];\n $user->name = $data['name'];\n $user->email = $data['email'];\n $user->status = 0;\n $user->level = 1;\n if (!empty($data['password']) && Security::compareStrings($data['password'], $data['confirm_password'])) {\n $user->password = password_hash($data['password'], PASSWORD_BCRYPT, array('cost' => 10));\n }\n $user->created = time();\n $user->createdby = $this->getUser()->getId();\n $user->save();\n $this->redirect('/admin/configuration/users');\n }\n }", "title": "" }, { "docid": "00f35236ea8ad1953b98c0e4df1570d2", "score": "0.66688436", "text": "public function createOwner()\n {\n $validator = Validator::make(Input::all(), User::$rules);\n\n if($validator->passes()) {\n $user = new User;\n $user->email = Input::get('email');\n\n $user->password = Input::get('password');\n $user->client_id = Request::getClientIp();\n $user->client_key = Config::get('app.key');\n\n $request = [\n 'url' => Config::get('app.api') . \"signup\",\n 'params' => json_encode($user),\n 'headers' => ['Content-type: application/json']\n ];\n $client = new HttpClient;\n\n // Add here the response test on create user !important\n $client->post($request);\n\n return Redirect::to('login')->with('message', 'users.signup_success');\n } else {\n return Redirect::to('signup')->with('message','users.signup_error')->withErrors($validator)->withInput();\n }\n }", "title": "" }, { "docid": "f5766ba625dc8894b7ef505eea75a3b4", "score": "0.6663452", "text": "public function createUser()\n {\n\t\tApp42API::initialize(\"API KEY\", \"SECRET KEY\");\n\t\t$response = null;\n\n // FOR Test Create USER\n $objUser = App42API::buildUserService();\n\n try {\n print(\" Starting User Creation test\");\n $response = $objUser->createUser(\"admin\", \"test\", \"nick@shephertz.co.in\");\n } catch (App42BadParameterException $ex) {\n // Exception Caught\n\t\t\t// Check if User already Exist by checking app error code\n if ($ex->getAppErrorCode() == 2001) {\n // Do exception Handling for Already created User.\n\t\t\t\t\n }\n } catch (App42SecurityException $ex) {\n // Exception Caught\n // Check for authorization Error due to invalid Public/Private Key\n if ($ex->getAppErrorCode() == 1401) {\n // Do exception Handling here\n }\n } catch (App42Exception $ex) {\n // Exception Caught due to other Validation\n }\n // Render the JSON response. This will return the Successful created\n // User response\n \n }", "title": "" }, { "docid": "07fd3f418bb6bd8945f98ba798eadaad", "score": "0.6662875", "text": "public function testShouldCreateNewUserSuccessfully()\n {\n $expectedResponse = [\"name\" => $this->validUser[\"name\"], \"email\" => $this->validUser[\"email\"], \"phone_number\" => $this->validUser[\"phone_number\"]];\n $response = $this->signUpUser($this->validUser);\n\n $response->assertStatus(201)->assertJson($expectedResponse);\n $this->assertDatabaseHas('users', $expectedResponse);\n }", "title": "" }, { "docid": "203ef980fad915b55124ed17afa01e1b", "score": "0.66464984", "text": "public function create( $user)\n {\n //\n }", "title": "" }, { "docid": "203ef980fad915b55124ed17afa01e1b", "score": "0.66464984", "text": "public function create( $user)\n {\n //\n }", "title": "" }, { "docid": "43343e2340c30f37b912d9ccf44c6584", "score": "0.6640132", "text": "public function createUserFromBackend(Request $request);", "title": "" }, { "docid": "8b67efde00efcabfc7b4f81d3c31142f", "score": "0.66367334", "text": "public function testAddUser()\n {\n $this->post('/user', $this->data)\n ->seeJson([\n 'id' => 1,\n 'name' => $this->data['name'],\n ]);\n }", "title": "" }, { "docid": "dd9270ddd5de62923590f5c35b6c3ae9", "score": "0.6634418", "text": "public function create()\n {\n abort(401);\n }", "title": "" }, { "docid": "7a92193b59bd10197340f47a0417f138", "score": "0.66317374", "text": "public function actionCreate()\n {\n self::checkAdmin();\n \n $userList = User::getUserList();\n\n // Processing forms\n if (isset($_POST['submit'])) {\n // If the form is submitted\n // Get the data from the form\n $options['firstName'] = $_POST['firstName'];\n $options['lastName'] = $_POST['lastName'];\n $options['username'] = $_POST['username'];\n $options['password'] = $_POST['password'];\n $options['usertype'] = $_POST['usertype'];\n \n $errors = false;\n\n // Validation\n if (!isset($options['firstName']) || empty($options['firstName']) || !isset($options['lastName']) || empty($options['lastName']) || !isset($options['username']) || empty($options['username'])) {\n $errors[] = 'Fill in the required fields';\n }\n\n if ($errors == false) {\n // If there are no errors\n // Add a new item\n $id = User::createUser($options);\n \n // Redirecte to the page control movies\n header(\"Location: /admin/user\");\n }\n }\n\n // Connect view\n require_once(ROOT . '/views/admin_user/create.php');\n return true;\n }", "title": "" }, { "docid": "8d03216d7030ccb4fc70758dd4cd2a4e", "score": "0.66285825", "text": "public function create(addUserRequest $request) {\n if ($password = $this->user->createOrUpdate($request,self::ROLE)) {\n $data = $request;\n $data['request'] = 'new_user_creation';\n $data['subject'] = 'Welcome to Seaquatic';\n $data['password'] = $password;\n \\App\\common\\helpers\\Utility::sendMail($data);\n return Response::Json(['success' => true, 'message' => 'Success! User has been created successfully.']);\n } else {\n return Response::Json(['success' => false, 'message' => 'Woops! Something went wrong, Please try again later.']);\n }\n return redirect()->back();\n }", "title": "" }, { "docid": "96fea0d4b1193edea4e1c6a63679c9ad", "score": "0.6624707", "text": "public function testUserCreation()\n {\n $response = $this->json('POST', '/api/register', [\n 'name' => 'Test User',\n 'email' => str_random(10) . '@test.com',\n 'password' => '12345',\n ]);\n\n $response->assertStatus(200)->assertJsonStructure([\n 'success' => ['token', 'name']\n ]);\n }", "title": "" }, { "docid": "54a26b36b24efca941b95da921018a11", "score": "0.6604754", "text": "public function testAddUser()\n {\n $client = self::createClient();\n try {\n $client->request('POST', '/users', [\n 'headers' => [\n 'Content-Type' => 'application/json'\n ],\n 'json' => [\n 'firstName' => 'Random',\n 'lastName' => 'User',\n 'contactNumber' => '0425252456',\n 'profilePicture' => 'https://i.pinimg.com/originals/26/d1/9b/26d19bd36b356ebf4018f67a7afbf2db.jpg',\n 'wagePerHour' => '80.00',\n 'email' => 'random@email.com',\n 'password' => 'password',\n 'roles' => ['ROLE_USER', 'ROLE_ADMIN']\n ]\n ]);\n } catch (TransportExceptionInterface $e) {\n }\n $this->assertResponseStatusCodeSame(201);\n }", "title": "" }, { "docid": "a04ce19cea69107cc773e1cbf2f966d5", "score": "0.65895593", "text": "public function postCreate(UserRequest $request) {\n\n $user = new User ();\n $user->name = $request->name;\n\t\t$user->username = $request->username;\n $user->email = $request->email;\n $user->password = bcrypt($request->password);\n $user->confirmation_code = str_random(32);\n $user->confirmed = $request->confirmed;\n $user->admin = $request->admin;\n $user->save();\n }", "title": "" }, { "docid": "91ab3f7c236d772c492861c78c11aedf", "score": "0.65879637", "text": "public function action_useradd()\n\t{\n \n if($_POST)\n //if(Input::method()=='POST')\n\n {\n //POSTデータを受け取る\n /*\n $username=Input::post('username');\n $password=Input::post('password');\n $group=Input::post('group');\n $email=Input::post('email');\n $usergroup=Input::post('usergroup');\n */\n //$hash_passwd = password_hash($password, PASSWORD_DEFAULT);\n \n $usergroup = $_POST['usergroup'];\n $medianame = $_POST['medianame'];\n $profile_fields = array('usergroup' => $usergroup, 'medianame' => $medianame);\n \n // Authのインスタンス化\n $auth = Auth::instance(); \n $auth->create_user(\n $_POST['username'],\n $_POST['password'],\n $_POST['email'],\n $_POST['group'],\n $profile_fields\n //array('usergroup' => $_POST['usergroup'])\n );\n \n \n }\n \n \n \n\t\treturn Response::forge(View::forge('manager/useradd'));\n\t}", "title": "" }, { "docid": "5c1391b7a4efa36373da5f01f02f0920", "score": "0.6587123", "text": "public function creating(User $user)\n {\n\n }", "title": "" }, { "docid": "2822084448d92a7797cda063d15167e2", "score": "0.6585248", "text": "public function createUser()\n\t{\n\t\ttry {\n\t\t\t$this->registrationForm->validate(Input::all());\n\t\t}\n\t\tcatch (\\Laracasts\\Validation\\FormValidationException $exception) {\n\t\t\treturn Redirect::back()->withInput()->withErrors($exception->getErrors());\n\t\t}\n\n\t\t$this->execute(RegisterUserCommand::class);\n\n\t\tFlash::success('USer has been Successfully created.');\n\n\t\treturn Redirect::home();\n\n\t}", "title": "" }, { "docid": "0e77a18e88f73a86d1a9cc03430f8a81", "score": "0.6584346", "text": "public function createUser(): Response\n {\n\n // Mandatory params\n if(empty($_POST[\"username\"]) || empty($_POST[\"password\"])) {\n return new Response('<h3>You must provide at least a username and a password in your POST request.</h3>');\n } else {\n $username = $_POST[\"username\"];\n $password = $_POST[\"password\"]; // In reality, this would be encrypted but it isn't for demo\n $email_address = $_POST[\"email_address\"] ?? 'null';\n $lucky_number = $_POST[\"lucky_number\"] ?? 0;\n\n $user = new User();\n $user->setUsername($username);\n $user->setPassword($password);\n $user->setEmailAddress($email_address);\n $user->setLuckyNumber($lucky_number);\n\n // Create entity manager instance\n $entityManager = $this->getDoctrine()->getManager();\n\n // Tell Doctrine I want to save this data\n $entityManager->persist($user);\n\n // Execute all stored queries in persist\n $entityManager->flush();\n\n return new Response(\n '<h3>Saved new user with id '.$user->getId().'</h3>\n <h4>View here: <a href=\"/user/'.$user->getId().'\">click me</a>'\n );\n }\n }", "title": "" }, { "docid": "f921d4da28c596d41697c895b3f3cf76", "score": "0.6583509", "text": "public function create()\n {\n if (Input::hasPost('user')) {\n //\n }\n }", "title": "" }, { "docid": "46e99ff82ff36fb57f1d03a44804cbea", "score": "0.65765685", "text": "public function test_admin_can_add_a_new_user()\n {\n $admin = Admin::factory()->create();\n\n $data = User::factory()->make()->toArray();\n\n $route = route('admin.store-user');\n\n $response = $this->actingAs($admin, 'admin')->post($route, $data);\n\n $response->assertSessionHas(['success']);\n }", "title": "" }, { "docid": "40afcc031fdab560688ef2efc8dd9273", "score": "0.65596026", "text": "public function post_create()\n\t{\n\n\t\ttry\n\t\t{\n\t\t\t$rules = array(\n\t\t\t\t'username' => 'required|alpha_dash|max:30|unique:users,username', \n\t\t\t\t'email' => 'required|email|max:255|unique:users,email',\n\t\t\t\t'phone' => 'unique:users,phone|min:10|max:10|match:/([0-9]{10})/',\n\t\t\t\t'carrier' => 'required_with:phone',\n\t \t'new_password' => 'required|alpha_num|min:4|max:8|Confirmed',\n\t \t'new_password_confirmation' => 'required|alpha_num|min:4|max:8'\n\n\t\t\t);\n\n\t\t\t$validation = Validator::make(Input::all(), $rules);\n\n\t\t\tif($validation->fails())\n\t\t\t{\n\t\t\t\treturn Redirect::to_route('add_user')\n\t\t\t\t\t->with_errors($validation->errors)\n\t\t\t\t\t->with_input();\n\t\t\t}\n\n\n\t\t\tUsers::create(array(\n\t\t\t\t'username' => Input::get('username'),\n\t\t\t\t'email' =>Input::get('email'),\n\t\t\t\t'phone' => Input::get('phone'),\n\t\t\t\t'carrier' => Input::get('carrier'),\n\t\t\t\t'password' => Input::get('new_password'),\n\t\t\t\t'is_admin' => Input::get('is_admin')\n\t\t\t));\n\n\t\t\treturn Redirect::to_route('details')\n\t\t\t\t->with('message', 'Created new user successfully!');\n\n\n\t\t\t// $success = Users::create(array(\n\t\t\t// \t'username' => Input::get('username'),\n\t\t\t// \t'email' =>Input::get('email'),\n\t\t\t// \t'phone' => Input::get('phone'),\n\t\t\t// \t'carrier' => Input::get('carrier'),\n\t\t\t// \t'password' => Input::get('new_password'),\n\t\t\t// \t'is_admin' => Input::get('is_admin')\n\t\t\t// ));\n\n\n\t\t\t// if($success)\n\t\t\t// {\n\t\t\t// \treturn Redirect::to_route('details')\n\t\t\t// \t\t->with('message', 'Created new user successfully!');\n\t\t\t// }\n\n\t\t\t// else\n\t\t\t// {\n\t\t\t// \t return Redirect::to_route('details')\n\t\t\t// \t\t->with('error', 'User creation failed.');\n\t\t\t// }\n\n\t\t}\n\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\tLog::write('error', $e->getMessage());\n\t\t\treturn Response::error('500');\n\t\t}\n\t}", "title": "" }, { "docid": "40b140464be8e3c17f2607ed65e969e8", "score": "0.6555712", "text": "public static function create(Request $request){\n \t$create = new User;\n \t$create->name = $request['name'];\n \t$create->password = bcrypt($request['password']);\n \t$create->user_level = 'admin';\n \t$create->status = 'active';\n \t$create->user_name = $request['user_name'];\n \t$create->email = $request['email'];\n $create->description = $request['description'];\n \t$create->save();\n return true;\n }", "title": "" }, { "docid": "39a0995e0df7d01357beee56cb32d774", "score": "0.6553553", "text": "public function createUser($args){\n if(!isset($args['fullname'], $args['password'], $args['email'])){\n throw new \\Exception(\"fullname, password and email are required fields\");\n }\n\n $args['userexpiry'] = 0;\n $args['userrole'] = 'user';\n $args['sendwelcomeemail'] = true;\n $args['usergroupid'] = 2;\n $args['isenabled'] = 1;\n\n //Can we do grant permissions to receive product notices & updates, promotions \n return $this->_result($this->_request('post', '/Base/User', $args));\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.6550565", "text": "public function create(User $user)\n {\n //\n }", "title": "" } ]
bc915358d7a249731c75be045cb656b2
Getters Gets authorization id.
[ { "docid": "8870c9f0553cf4113611abb3d4e254b8", "score": "0.80685484", "text": "public function getId() : int\n {\n return $this->id_authorization;\n }", "title": "" } ]
[ { "docid": "f429f789ec9d9ce2dbf2a9daa24ef092", "score": "0.7512868", "text": "public function getAuthIdentifier()\n {\n return $this->id;\n }", "title": "" }, { "docid": "f429f789ec9d9ce2dbf2a9daa24ef092", "score": "0.7512868", "text": "public function getAuthIdentifier()\n {\n return $this->id;\n }", "title": "" }, { "docid": "f429f789ec9d9ce2dbf2a9daa24ef092", "score": "0.7512868", "text": "public function getAuthIdentifier()\n {\n return $this->id;\n }", "title": "" }, { "docid": "cee131651da647ddcafc0b267d715375", "score": "0.74636674", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "d6c77ca1ccbad87065221ea4722002f3", "score": "0.74057364", "text": "public function getAuthIdentifier()\n {\n return $this->getId();\n\n }", "title": "" }, { "docid": "bba1af74d69cad918e5c24babc3e1486", "score": "0.73991483", "text": "public function getAuthIdentifier()\n {\n return $this->getId();\n }", "title": "" }, { "docid": "bba1af74d69cad918e5c24babc3e1486", "score": "0.73991483", "text": "public function getAuthIdentifier()\n {\n return $this->getId();\n }", "title": "" }, { "docid": "1d9f317615d609afad035a024d7125aa", "score": "0.7376847", "text": "public function getAuthId()\n {\n return $this->data['auth'];\n }", "title": "" }, { "docid": "288144961af54ee1107bfae959b59388", "score": "0.72677666", "text": "public function getAuthIdentifier() {\n return $this->attributes['id'];\n }", "title": "" }, { "docid": "ed14389b933c7efec197c881c0c8dcc2", "score": "0.7226677", "text": "public function getAuthIdentifier()\n {\n return $this->{$this->getAuthIdentifierName()};\n }", "title": "" }, { "docid": "03b74cc9662178f0f587cb024f53b2d2", "score": "0.7160927", "text": "public function getAuthIdentifier()\n {\n return $this->user->getId();\n }", "title": "" }, { "docid": "8a0abd3a696cb0113a363e86a65327c8", "score": "0.71364343", "text": "public function getAuthIdentifier()\n {\n return $this->_authIdentifier;\n }", "title": "" }, { "docid": "ce362a55cc99c6ba8317371812d3f189", "score": "0.69198376", "text": "public function getAuthIdentifier() {\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "ce362a55cc99c6ba8317371812d3f189", "score": "0.69198376", "text": "public function getAuthIdentifier() {\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "ce362a55cc99c6ba8317371812d3f189", "score": "0.69198376", "text": "public function getAuthIdentifier() {\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "ac9444e0738f8b4df65fedf16b68968a", "score": "0.69097096", "text": "public function getAuthIdentifier()\n {\n return $this->attributes['user_id'];\n }", "title": "" }, { "docid": "88e5b9147a3f623b8010a9f5904e5b97", "score": "0.6903347", "text": "public function getAuthIdentifier()\n\t{\n\t return $this->getKey();\n\t}", "title": "" }, { "docid": "7b66043a5aac5bbbbb1807f361aa258c", "score": "0.68876886", "text": "public function getAuthIdentifier() {\n return $this->getKey();\n }", "title": "" }, { "docid": "7b66043a5aac5bbbbb1807f361aa258c", "score": "0.68876886", "text": "public function getAuthIdentifier() {\n return $this->getKey();\n }", "title": "" }, { "docid": "7b66043a5aac5bbbbb1807f361aa258c", "score": "0.68876886", "text": "public function getAuthIdentifier() {\n return $this->getKey();\n }", "title": "" }, { "docid": "7b66043a5aac5bbbbb1807f361aa258c", "score": "0.68876886", "text": "public function getAuthIdentifier() {\n return $this->getKey();\n }", "title": "" }, { "docid": "7b66043a5aac5bbbbb1807f361aa258c", "score": "0.68876886", "text": "public function getAuthIdentifier() {\n return $this->getKey();\n }", "title": "" }, { "docid": "9e454ede5b713cc49fe6237dfe260345", "score": "0.6882327", "text": "public function getAuthIdentifier() {\n return $this->getKey();\n }", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.6878865", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" }, { "docid": "2ca4b644b0dfa97295d800fdf7e1e2a5", "score": "0.6869299", "text": "public function getAuthIdentifier()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "af6ac4f5f926aa95b95f6019345bda3b", "score": "0.68682355", "text": "public function getAuthId(): string\n {\n return (string) $this->auth_id;\n }", "title": "" }, { "docid": "0f60ad139b136cc36d9dbb197e7a1e69", "score": "0.68594545", "text": "public function getAuthIdentifier()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "0f60ad139b136cc36d9dbb197e7a1e69", "score": "0.68594545", "text": "public function getAuthIdentifier()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "0f60ad139b136cc36d9dbb197e7a1e69", "score": "0.68594545", "text": "public function getAuthIdentifier()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "0f60ad139b136cc36d9dbb197e7a1e69", "score": "0.68594545", "text": "public function getAuthIdentifier()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "0f60ad139b136cc36d9dbb197e7a1e69", "score": "0.68594545", "text": "public function getAuthIdentifier()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "0f60ad139b136cc36d9dbb197e7a1e69", "score": "0.68594545", "text": "public function getAuthIdentifier()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "0f60ad139b136cc36d9dbb197e7a1e69", "score": "0.68594545", "text": "public function getAuthIdentifier()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "0f60ad139b136cc36d9dbb197e7a1e69", "score": "0.68594545", "text": "public function getAuthIdentifier()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "0f60ad139b136cc36d9dbb197e7a1e69", "score": "0.68594545", "text": "public function getAuthIdentifier()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "0f60ad139b136cc36d9dbb197e7a1e69", "score": "0.68594545", "text": "public function getAuthIdentifier()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "0f60ad139b136cc36d9dbb197e7a1e69", "score": "0.68594545", "text": "public function getAuthIdentifier()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "0f60ad139b136cc36d9dbb197e7a1e69", "score": "0.68594545", "text": "public function getAuthIdentifier()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "0f60ad139b136cc36d9dbb197e7a1e69", "score": "0.68594545", "text": "public function getAuthIdentifier()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "0f60ad139b136cc36d9dbb197e7a1e69", "score": "0.68594545", "text": "public function getAuthIdentifier()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "15daa758d357de5611a59e1f914be0be", "score": "0.685393", "text": "public function getAuthIdentifier()\r\n {\r\n return $this->getKey();\r\n }", "title": "" }, { "docid": "dc6cd8a6edc0e8c12a5ba0ce501b0001", "score": "0.6790892", "text": "public function getAuthorizationCode()\n {\n return $this->authorizationCode;\n }", "title": "" }, { "docid": "fc1cfbcd3d6435774dfc01c521036bb7", "score": "0.6765044", "text": "public function getAuthIdentifier()\n {\n return $this->getAuthIdentifierName();\n }", "title": "" }, { "docid": "a3ae264a0c5e9c8ae16fa15bb6d25ea7", "score": "0.6764995", "text": "abstract public function getAuthIdentifier(): mixed;", "title": "" }, { "docid": "9b22b77b5e50f051632afed102916698", "score": "0.6710141", "text": "public function getAuthorization()\n {\n return $this->source['authorization'];\n }", "title": "" }, { "docid": "ad7fd5a8320059928434ed8da518f969", "score": "0.65093267", "text": "function getAuthId() {\n return intval($this->isAuthenticated()==\"login\"?$GLOBALS[\"TSFE\"]->fe_user->user[\"uid\"]:-$this->emailAuth[1]);\n }", "title": "" }, { "docid": "83a683c064f4c46f41814afda0e82219", "score": "0.6458902", "text": "public function id()\n {\n if ($this->loggerOut) {\n return;\n }\n\n return $this->user() ? $this->user()->getAuthIdentifier() : $this->session->get($this->getName());\n }", "title": "" }, { "docid": "392e25c598c9c8be5aaff36e7e137c10", "score": "0.64446527", "text": "public function getAuthIdentifier()\n {\n if( !is_null( $this->user ) )\n return $this->user->id;\n else\n return false;\n }", "title": "" }, { "docid": "ac8ab26f9d97809777cff0c81316bc51", "score": "0.64393806", "text": "public function getAuthorizationCode();", "title": "" }, { "docid": "7155cc81c5506e2df08076dc58ddf045", "score": "0.64354485", "text": "public function getId()\n {\n return $this->getUserId();\n }", "title": "" }, { "docid": "8071e91c93a7cf6bcc45de36ed8f6277", "score": "0.64327866", "text": "public function getAuthIdentifier()\n {\n // Get the value of the model's primary key.\n return $this->getKey();\n }", "title": "" }, { "docid": "9b5253c733f9e57b790061f7090793c9", "score": "0.6421526", "text": "public function getUserId()\n\t{\n\t\treturn Response::json(Authorizer::getResourceOwnerId());\n\t}", "title": "" }, { "docid": "b15af036b8a26811d1d2ef459b5c394b", "score": "0.6409939", "text": "public function authenticatedUserId()\n {\n return auth()->id();\n }", "title": "" }, { "docid": "6f63ec2d0ff60d89fa09e1e0336e5f62", "score": "0.63990015", "text": "public function getAuthIdentifier()\n {\n return $this->sub;\n }", "title": "" }, { "docid": "bcfd27341d2f38c8722d82c0b79eb00f", "score": "0.6397246", "text": "private function getId()\n {\n $id = auth('customer')->user()->id;\n return $id;\n }", "title": "" }, { "docid": "54b12ab3fba2c887e1a91d9660317317", "score": "0.638559", "text": "public function getJWTIdentifier()\n {\n return $this->getUserId();\n }", "title": "" }, { "docid": "54b12ab3fba2c887e1a91d9660317317", "score": "0.638559", "text": "public function getJWTIdentifier()\n {\n return $this->getUserId();\n }", "title": "" }, { "docid": "f9509eaca2ea50bb76e41df005bc32aa", "score": "0.6352172", "text": "public function getAuthIdentifier()\n {\n return $this->model->getKey();\n }", "title": "" }, { "docid": "0ce05e7181f852c98894acac0042088a", "score": "0.6352093", "text": "public static function getAuthUserId() {\n global $USER;\n \n return $USER->id;\n }", "title": "" }, { "docid": "4fbfb969e22d6e4e1753722dbb3c6a2a", "score": "0.63404995", "text": "public function getAuthIdentifier()\n {\n return $this->attributes['username'];\n }", "title": "" }, { "docid": "66427793d7b1c0d464593e686457dcc4", "score": "0.633305", "text": "protected abstract function getNextAuthorizationId(): string;", "title": "" }, { "docid": "7eee5dfc94ef8a826620f6d450b90213", "score": "0.6326776", "text": "public function getAuthIdentifierName(): string\n {\n return self::ID;\n }", "title": "" }, { "docid": "ebeb3c4206de7e1321484076b4ec4276", "score": "0.6315805", "text": "public function getAuthIdentifierName()\n {\n return \"id\";\n // TODO: Implement getAuthIdentifierName() method.\n }", "title": "" }, { "docid": "fed62a128d15f66fc016b3f0685f89c8", "score": "0.6277677", "text": "public static function getCompanyAuth()\n {\n $userData = User::where('TenantId', Auth::user()->TenantId)->where('IsAdmin', 1)->first();\n return $userData->id;\n }", "title": "" }, { "docid": "1d44682d9d544e2799e281ec0cf533a7", "score": "0.62678206", "text": "public function _getUserId()\n {\n return $this->Session->read ('Auth.User.id');\n }", "title": "" }, { "docid": "7b6f47c62e0bfb7349a8bff2996fcf77", "score": "0.62624866", "text": "public function getJWTIdentifier()\n {\n return $this->id;\n }", "title": "" }, { "docid": "09f0475c76d4499c79e6f21bdeed5168", "score": "0.6240499", "text": "public function getAuth();", "title": "" }, { "docid": "09f0475c76d4499c79e6f21bdeed5168", "score": "0.6240499", "text": "public function getAuth();", "title": "" }, { "docid": "355d45f8d9587b14cfe078be024dd120", "score": "0.62309724", "text": "public function getAuthorizationToken()\n {\n return $this->authorizationToken;\n }", "title": "" }, { "docid": "f1cc87e5693c10b4b31a703591fcc482", "score": "0.6207759", "text": "public function getId()\r\n {\r\n return $this->header->get('id');\r\n }", "title": "" }, { "docid": "e84098cd5a49ed8875367bd9000214d9", "score": "0.6170469", "text": "public function getAuthorId() : string\n {\n return $this->authorId;\n }", "title": "" } ]
901c4450a40cb99564fa97779e3504da
Provides operations to manage the calls property of the microsoft.graph.cloudCommunications entity.
[ { "docid": "112bef25a76d0b633ffb86763232fb36", "score": "0.0", "text": "public function calls(): CallsRequestBuilder {\n return new CallsRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "title": "" } ]
[ { "docid": "bed6d33b7e948307973e94ac43a4852a", "score": "0.53458446", "text": "public function call(){\n\t\treturn $this->hasMany('App\\Entities\\Call\\Call');\n\t}", "title": "" }, { "docid": "ddccafac2756e45b97dac0451f112e64", "score": "0.5308783", "text": "public function calls()\n {\n return $this->belongsToMany('App\\Models\\PslCall');\n }", "title": "" }, { "docid": "cf5f815e2a5434b241a8a5a80f03c721", "score": "0.5045912", "text": "public function setCallCredentials($call_credentials);", "title": "" }, { "docid": "cfc6270236b8f78096ac605333456757", "score": "0.5022093", "text": "public function getCalls()\n {\n return $this->data['calls'];\n }", "title": "" }, { "docid": "7ec22cf00d5d46b2d7251ba3990a878e", "score": "0.48844627", "text": "public function communicateWithManager()\n {\n }", "title": "" }, { "docid": "257b10f67b46340f7ad305ab57797822", "score": "0.48770785", "text": "public function registerCommunication() {\n\t\t$contactCommunications = $this->dbAdapter->query(\"SELECT * FROM `communication` WHERE `COL 1` = \" . $this->contactRow['regnumber']);\n\n\t\t// Check if we have any records\n\t\tif(is_object($contactCommunications)) {\n\t\t\t// Loop trough all the contact communication methods\n\t\t\twhile ($cr = $contactCommunications->fetch_assoc()) {\n\t\t\t\tswitch ($cr[\"COL 2\"]) {\n\t\t\t\t\tcase \"E\" :\n\t\t\t\t\t\t// E-mail - check if length is longer then 6 characters\n\t\t\t\t\t\tif(strlen($cr[\"COL 3\"]) > 6) {\n\t\t\t\t\t\t\t// Length is valid, set-up parameters for e-mail\n\t\t\t\t\t\t\t$emailParameters = array('contact_id' => $this->contactRow['regnumber'], 'email' => $cr[\"COL 6\"]);\n\t\t\t\t\t\t\t// Check if we need to add work or home location type\n\t\t\t\t\t\t\tif($cr[\"COL 5\"] == \"T\") {\n\t\t\t\t\t\t\t\t// Home\n\t\t\t\t\t\t\t\t$emailParameters[\"location_type_id\"] = 1;\n\t\t\t\t\t\t\t} else if($cr[\"COL 5\"] == \"W\") {\n\t\t\t\t\t\t\t\t// Work\n\t\t\t\t\t\t\t\t$emailParameters[\"location_type_id\"] = 2;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// Other\n\t\t\t\t\t\t\t\t$phoneParameters[\"location_type_id\"] = 4;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Create e-mail identity\n\t\t\t\t\t\t\tif(!$this->CIVIAPI->Email->Create($emailParameters)) {\n\t\t\t\t\t\t\t\techo \" Email address for contact \" . $this->contactRow['regnumber'] . \" failed to save\\r\\n\";\n\t\t\t\t\t\t\t\techo \" \" . $this->CIVIAPI->errorMsg() . \"\\r\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"W\" :\n\t\t\t\t\t\t// Website - check if link contains www.\n\t\t\t\t\t\tif(stristr($cr[\"COL 3\"], 'www')) {\n\n\t\t\t\t\t\t\t// Length is valid, set-up parameters for website\n\t\t\t\t\t\t\t$websiteParameters = array('contact_id' => $this->contactRow['regnumber'], 'url' => $cr[\"COL 3\"]);\n\n\t\t\t\t\t\t\t// Create website identity\n\t\t\t\t\t\t\tif(!$this->CIVIAPI->Website->Create($websiteParameters)) {\n\t\t\t\t\t\t\t\techo \" Website address for contact \" . $this->contactRow['regnumber'] . \" failed to save\\r\\n\";\n\t\t\t\t\t\t\t\techo \" \" . $this->CIVIAPI->errorMsg() . \"\\r\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"T\" :\n\t\t\t\t\t\t// Telephone - check if length is longer then 7 characters\n\t\t\t\t\t\tif(strlen($cr[\"COL 3\"]) > 7) {\n\n\t\t\t\t\t\t\t// Length is valid, set-up parameters for e-mail\n\t\t\t\t\t\t\t$phoneParameters = array('contact_id' => $this->contactRow['regnumber'], 'phone' => $cr[\"COL 3\"], 'phone_type_id' => 1);\n\n\t\t\t\t\t\t\t// Check if we need to add work or home location type\n\t\t\t\t\t\t\tif($cr[\"COL 5\"] == \"T\") {\n\t\t\t\t\t\t\t\t// Home\n\t\t\t\t\t\t\t\t$phoneParameters[\"location_type_id\"] = 1;\n\t\t\t\t\t\t\t} else if($cr[\"COL 5\"] == \"W\") {\n\t\t\t\t\t\t\t\t// Work\n\t\t\t\t\t\t\t\t$phoneParameters[\"location_type_id\"] = 2;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// Other\n\t\t\t\t\t\t\t\t$phoneParameters[\"location_type_id\"] = 4;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Create e-mail identity\n\t\t\t\t\t\t\tif(!$this->CIVIAPI->Phone->Create($phoneParameters)) {\n\t\t\t\t\t\t\t\techo \"Regular phone number for contact \" . $this->contactRow['regnumber'] . \" failed to save\\r\\n\";\n\t\t\t\t\t\t\t\techo $this->CIVIAPI->errorMsg() . \"\\r\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"F\" :\n\t\t\t\t\t\t// Telephone - check if length is longer then 6 characters\n\t\t\t\t\t\tif(strlen($cr[\"COL 3\"]) > 6) {\n\n\t\t\t\t\t\t\t// Length is valid, set-up parameters for e-mail\n\t\t\t\t\t\t\t$phoneParameters = array('contact_id' => $this->contactRow['regnumber'], 'phone' => $cr[\"COL 3\"], 'phone_type_id' => 3);\n\n\t\t\t\t\t\t\t// Check if we need to add work or home location type\n\t\t\t\t\t\t\tif($cr[\"COL 5\"] == \"T\") {\n\t\t\t\t\t\t\t\t// Home\n\t\t\t\t\t\t\t\t$phoneParameters[\"location_type_id\"] = 1;\n\t\t\t\t\t\t\t} else if($cr[\"COL 5\"] == \"W\") {\n\t\t\t\t\t\t\t\t// Work\n\t\t\t\t\t\t\t\t$phoneParameters[\"location_type_id\"] = 2;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// Other\n\t\t\t\t\t\t\t\t$phoneParameters[\"location_type_id\"] = 4;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Create e-mail identity\n\t\t\t\t\t\t\tif(!$this->CIVIAPI->Phone->Create($phoneParameters)) {\n\t\t\t\t\t\t\t\techo \"Fax phone number for contact \" . $this->contactRow['regnumber'] . \" failed to save\\r\\n\";\n\t\t\t\t\t\t\t\techo $this->CIVIAPI->errorMsg() . \"\\r\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"M\" :\n\t\t\t\t\t\t// Telephone - check if length is longer then 7 characters\n\t\t\t\t\t\tif(strlen($cr[\"COL 3\"]) > 7) {\n\n\t\t\t\t\t\t\t// Length is valid, set-up parameters for e-mail\n\t\t\t\t\t\t\t$phoneParameters = array('contact_id' => $this->contactRow['regnumber'], 'phone' => $cr[\"COL 3\"], 'phone_type_id' => 2);\n\n\t\t\t\t\t\t\t// Check if we need to add work or home location type\n\t\t\t\t\t\t\tif($cr[\"COL 5\"] == \"T\") {\n\t\t\t\t\t\t\t\t// Home\n\t\t\t\t\t\t\t\t$phoneParameters[\"location_type_id\"] = 1;\n\t\t\t\t\t\t\t} else if($cr[\"COL 5\"] == \"W\") {\n\t\t\t\t\t\t\t\t// Work\n\t\t\t\t\t\t\t\t$phoneParameters[\"location_type_id\"] = 2;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// Other\n\t\t\t\t\t\t\t\t$phoneParameters[\"location_type_id\"] = 4;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Create e-mail identity\n\t\t\t\t\t\t\tif(!$this->CIVIAPI->Phone->Create($phoneParameters)) {\n\t\t\t\t\t\t\t\techo \"Mobile phone number for contact \".$this->contactRow['regnumber'].\" failed to save\\r\\n\";\n\t\t\t\t\t\t\t\techo $this->CIVIAPI->errorMsg().\"\\r\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d8a3f2f05623c12b10b291ff13d884b5", "score": "0.47510448", "text": "public function getCall()\n {\n return $this->hasOne(Call::className(), ['callId' => 'callId']);\n }", "title": "" }, { "docid": "409195881da0564135dc63d68503dc74", "score": "0.47220123", "text": "function phone_call()\n{\n\t//require 'Services/Twilio.php';\n\tif(is_mypoint_employee() && isset($_REQUEST['vbx_call']))\n\t{\n\t\t\n\t\tinclude_once($GLOBALS['includes_root'].\"/classes/users.class.php\");\n\t\t$user = new Users();\n\t\t$info = $user->get_vbx_info($_SESSION['user_info']['email']);\n\t\t\n\t\t$key = $info['key'];\n\t\t$to = $_REQUEST['to'];\n\t\t$user_id = $info['user_id'];\n\t\t$caller_id = $info['phonenumber'];\n\t\t\n\t\tinclude_once($GLOBALS['includes_root'].\"/twilio/Services/Twilio/Capability.php\");\n// @start snippet from http://www.twilio.com/docs/howto/twilio-client-click-to-call\n$capability = new Services_Twilio_Capability($info['twilio_sid'], $info['twilio_token']);\n$capability->allowClientOutgoing($info['application_sid']);\n$token = $capability->generateToken();\n\n//<script type=\"text/javascript\" src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js\"></script>\necho <<<END\n\n<script type=\"text/javascript\" src=\"https://static.twilio.com/libs/twiliojs/1.0/twilio.js\"></script>\n\n<script type=\"text/javascript\">\n$(document).ready(function(){\n\n\tTwilio.Device.setup(\"$token\");\n\n\t$(\"#call\").click(function() {\n\t\tparams = { \"to\" : '$to', 'rest_access': '$key', 'client': $user_id, 'caller_id': '$caller_id'};\n\t\tTwilio.Device.connect(params);\n\t});\n\t$(\"#hangup\").click(function() {\n\t\tTwilio.Device.disconnectAll();\n\t});\n\n\tTwilio.Device.ready(function (device) {\n\t\t$('#status').text('Ready to start call');\n\t});\n\n\tTwilio.Device.offline(function (device) {\n\t\t$('#status').text('Offline');\n\t});\n\n\tTwilio.Device.error(function (error) {\n\t\t$('#status').text(error);\n\t});\n\n\tTwilio.Device.connect(function (conn) {\n\t\t$('#status').text(\"Successfully established call\");\n\t\ttoggleCallStatus();\n\t});\n\n\tTwilio.Device.disconnect(function (conn) {\n\t\t$('#status').text(\"Call ended\");\n\t\t$('#hangup').toggle();\n\t\t//toggleCallStatus();\n\t});\n\n\tfunction toggleCallStatus(){\n\t\t$('#call').toggle();\n\t\t//$('#hangup').toggle();\n\t}\n\n});\n</script>\n<!-- @start snippet -->\n<div class=\"span-24\">\n\t<div class=\"span-8 info\">\n\t<font size=\"45\" color=\"blue\" >&#9990;</font>\n\tUse the buttons to the right<br/>\n\tYou must have a VBX account and registered phone number\n\t</div>\n\t<div class=\"span-12\">\n\t\t<input class=\"span-8 button large green\" type=\"button\" id=\"call\" value=\"Start Call to $to\"/>\n\t\t<input class=\"span-4 button large notred\" type=\"button\" id=\"hangup\" value=\"Disconnect Call\" />\n\t\t<div class=\"span-12 large notice last\" id=\"status\">\n\t\t\tOffline\n\t\t</div>\n\t</div>\n</div>\n<hr class=\"space\">\n<!-- @end snippet -->\nEND;\n\t}\n}", "title": "" }, { "docid": "bc7485de8f6f8ca326d457227202d621", "score": "0.4575494", "text": "public static function getCommunicationStats()\n {\n \t$comms = Communication::join('communication_types', 'communications.communication_type_id', '=', 'communication_types.id')\n ->select('communications.id', 'communications.subject', 'communications.communication_type_id', 'communication_types.communication_type', 'communication_types.colour', 'communications.send_at', 'communications.archive_at', 'communications.banner_id')\n \t\t->where('send_at', '>=', Carbon::now()->subDays(7))\n \t\t->orderBy('send_at', 'DESC')\n \t\t->get();\n \t\t// ->groupBy(function($date) {\n\t\t // return Carbon::parse($date->created_at)->format('D M d');\n\t\t // });\n\n \t//figure out target stores for each\n foreach($comms as $c){\n $targetCount = DB::table('communications_target')->where('communication_id', '=', $c->id)->count();\n\n $openCount = DB::table('analytics')->select('type', 'resource_id', 'store_number')\n ->where('type', '=', 'communication')\n ->where('resource_id', '=', $c->id)\n ->groupBy('store_number')\n ->distinct()\n ->get();\n //dd($openCount);\n $c->storeCount = $targetCount;\n $c->openCount = count($openCount);\n $c->unreadCount = $targetCount - count($openCount);\n $c->readPerc = round(( count($openCount) / $targetCount ) * 100);\n }\n \t//figure out what stores opened it\n\n \t//calculate a percentage\n\n \t//format a list of stores +/-\n //dd($comms);\n return $comms;\n }", "title": "" }, { "docid": "4c1ea230e12a45031260210da6beea8d", "score": "0.45677915", "text": "public function getCalls()\n {\n return self::$calls;\n }", "title": "" }, { "docid": "b6c0c34040470ac96b6e381d2b9b6a99", "score": "0.45457935", "text": "public function communication_external_contact(){\n\t $this->data['mainTab'] = 'communication';\n $this->data['activeTab'] = 'external_contact';\n $data_previlize = $this->check_member_type_previlize();\n $this->data['external_contact_list'] = $this->info_model->get_all_external_contact_by_org_member($data_previlize['member_org'], $this->session->userdata('mem_id')); \n $this->data['dynamicView'] = 'pages/organization/communication_member/external_contact_list';\n\t\t$this->_commonPageLayout('frontend_viewer');\n}", "title": "" }, { "docid": "3f224d65c1b7582b70be2c7b7163d8a9", "score": "0.452854", "text": "public function callApi(Request $request) {\n // sid and auth token are account details; service sid is Twilio Notify detail \n $accountSid = 'AC8a35cc9fbe346ff25d5f33b358095e0a';\n $authToken = '56c1ccb54b543d5c2bd47bf35f1d61c4'; \n $serviceSid = 'IS49cfdf10c7964dbcf5ab41fa21376e94';\n\n // create the twilio client \n $client = new Client($accountSid, $authToken); // need to create a new twilio client \n\n // table and database information \n $table_name = 'twilio_test';\n $phoneColumn = 'phone_number';\n\n // variables for message setup \n $inputMessage = $request->message; // message created by user from form \n $binding = array(); // will bind all the phone numbers together \n $recipients = array(); \n \n // get recipient phone numbers \n $recipients = $this->requestInfo($table_name, $phoneColumn); // recipient numbers \n\n // example of how message should be sent individually \n // $client->messages\n // ->create('+15613297757', // recipient of message \n // [\n // 'from' => '+12513223344', // twilio phone number\n // 'body' => 'This is a test message!' // text message body\n // 'statusCallback' => 'http://f38127d2.ngrok.io/twilio/public/receiveData'\n // ]\n // );\n\n // bind recipients together to make the request to twilio \n foreach ($recipients as $recipient) {\n $binding[] = '{\"binding_type\":\"sms\", \"address\":\"' . $recipient . '\"}';\n }\n \n // try catch to get any errors \n try {\n // send the request to twilio using Notify API - allows up to 10,000 messages in one request \n $notification = $client\n ->notify->services($serviceSid)\n ->notifications->create([\n 'toBinding' => $binding,\n 'body' => $inputMessage,\n 'sms' => ['status_callback' => 'https://27d08c28.ngrok.io/twilio/public/receiveData' ]\n ]);\n } catch (Services_Twilio_RestException $e) {\n echo $e->getMessage(); // echo any error messages\n }\n\n // return the blade view with variables \n return view('index', ['userInput' => $inputMessage]);\n }", "title": "" }, { "docid": "0c1791030dc83b514088a5e7b4af8478", "score": "0.44922754", "text": "protected function _request(){\n\n $json = $this->_createJSON();\n\n $client = new Services_Twilio($this->sid, $this->token);\n $client->account->calls->create($this->from, \"+1\" . $this->phone, PrankioConfig::get('Url.hooks_voice_file') . \"?json=\" . urlencode($json), array(\n \"IfMachine\" => \"Hangup\",\n \"Record\" => true,\n \"Method\" => \"GET\",\n \"StatusCallbackMethod\" => \"GET\",\n \"StatusCallback\" => PrankioConfig::get('Url.record_send_email_file') . \"?email=\" . $this->email\n ));\n\n $this->_writeToLogs($json);\n\n }", "title": "" }, { "docid": "36c251741c8d995523a639825b9e2536", "score": "0.44498867", "text": "protected function callParentGetMessages()\n {\n return parent::getMessages();\n }", "title": "" }, { "docid": "a77131d40d9951964ae4f7b20c85b30c", "score": "0.4429324", "text": "public function communication()\n {\n return $this->hasMany('App\\StudentCommunication');\n }", "title": "" }, { "docid": "3537396c1f6c4de433c167f30414dcdb", "score": "0.4426781", "text": "function getUserContacts()\r\n\t{\r\n\t\tHybrid_Logger::info( \"Enter [{$this->providerId}]::getUserContacts()\" );\r\n\t}", "title": "" }, { "docid": "912674046468942cf0e2aa30ecf65a15", "score": "0.44237217", "text": "public function communicationPreferences() {\n\t\t$this->contactParameters['custom_'.$this->cfComVoorkeurPV['id']] = ($this->contactRow['comVoorkeur'] == \"PV\") ? 1 : NULL;\n\t\t// Do not call option\n\t\t$this->contactParameters['do_not_phone'] = ($this->contactRow['nietbellen'] == \"T\") ? 1 : NULL;\n\t\t// Do not mail option\n\t\t$this->contactParameters['do_not_mail'] = ($this->contactRow['status'] == 9) ? 1 : NULL;\n\t\t// Value for CF \"Retourpost\"\n\t\tswitch($this->contactRow['status']) {\n\t\t\tcase 1: $this->contactParameters[\"custom_\".$this->cfRetourpost['id']] = \"1\"; break;\n\t\t\tcase 6: $this->contactParameters[\"custom_\".$this->cfRetourpost['id']] = \"1\"; break;\n\t\t}\n\t}", "title": "" }, { "docid": "01a20f59e713d4c00e17e871ec1db123", "score": "0.4409792", "text": "abstract public function getOperationChannel();", "title": "" }, { "docid": "aa9371e8e0286294838ad6bed1e16472", "score": "0.4408991", "text": "public function getOperationMade(){ }", "title": "" }, { "docid": "e1e46c87d826407b6b293a798e76e58c", "score": "0.43583938", "text": "public function getCalls(): array\n {\n return $this->calls;\n }", "title": "" }, { "docid": "87257f1abc26da89bacb1d690a6100db", "score": "0.43560863", "text": "public function viaChannels();", "title": "" }, { "docid": "a5cb0174b6c6ceaac094688070681de4", "score": "0.43457618", "text": "function StartCallValuesUpdate($callref)\r\n\t{\r\n\t\t$this->clearerror();\r\n\t\t$this->HDConnection = $this->open_hd_connection();\r\n\t\tif($this->HDConnection < 33)\r\n\t\t{\t\r\n\t\t\t//-- Start the transaction\r\n\t\t\t//UPDATE CALL VALUES\r\n\t\t\tif(swhd_sendcommand($this->HDConnection, \"UPDATE CALL VALUES \" . $callref)) return true;\t\r\n\t\t\t//-- failed\t\t\r\n\t\t\t$this->seterror(\"Helpdesk Command 'UPDATE CALL VALUES' was not accepted\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->seterror(\"Helpdesk Connection is not connected\");\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "be75f3fd7640e2ba33d8259625f5ef87", "score": "0.4296213", "text": "public function calls()\n {\n return $this->calls;\n }", "title": "" }, { "docid": "3cc0764e9fb647773e13f08ba8f2e987", "score": "0.4244844", "text": "function StartCallCreate()\r\n\t{\r\n\t\t$this->clearerror();\r\n\t\t$this->HDConnection = $this->open_hd_connection();\r\n\t\tif($this->HDConnection < 33)\r\n\t\t{\t\r\n\t\t\t//-- Start the transaction\r\n\t\t\tif(swhd_sendcommand($this->HDConnection, \"LOG CALL \")) return true;\t\r\n\t\t\t//-- failed\t\t\r\n\t\t\t$this->seterror(\"Helpdesk command 'LOG CALL' was not accepted\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->seterror(\"Helpdesk connection is not connected\");\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "eab6879541e69d56df296f6dcc4e03f9", "score": "0.42301437", "text": "public function prepareCalls(){\r\n\t\tif ($this -> id_type == UserType::model() -> getNumber('maindoc')) {\r\n\t\t\t$calls = array();\r\n\t\t\tforeach($this -> getChildren() as $child){\r\n\t\t\t\t$calls = array_merge($calls, $child -> calls);\r\n\t\t\t}\r\n\t\t\t$this -> calls = $calls;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bd39d810485996e643ca05dcb1882820", "score": "0.42222086", "text": "public function getCallNumber()\r\n\t{\r\n\t\treturn $this->call_number;\r\n\t}", "title": "" }, { "docid": "5bbc66909ef89475c07f02ffa249167c", "score": "0.42196336", "text": "public function getDirectConnectionInfos() {\n foreach($this->devices as $i => &$ivalue) {\n $res = $this->callAction($this->devices[$i][\"name\"], \"/device/getDirectConnectionInfos\");\n if ($res === false) {\n return false;\n }\n $content_array = json_decode($res, true);\n $this->devices[$i][\"infos\"] = $content_array[\"data\"][\"infos\"];\n }\n return true;\n }", "title": "" }, { "docid": "ae5be96134e484705a5a23841ecf3f3f", "score": "0.42137563", "text": "public function sendToCallingController(){\n\t\tif($callingController = $this->getController()){\n\t\t\t$callingController->getView()->form = $this->getForm() ;\n\t\t\t$callingController->getView()->formMode = $this->getFormMode() ;\n\t\t\tif($this->getMode()=='edit'){\n\t\t\t\t$callingController->getView()->item = $this->getVo() ;\n\t\t\t}\n\t\t\t$callingController->getView()->vo = new $this->_voName() ; // to have access to vo meta and others stuff\n\t\t}\n\t}", "title": "" }, { "docid": "cd2f3e4ee905caca9b37b01de85e399a", "score": "0.42116877", "text": "function execute($provider, $messages, ?Conversation $conversation)\n {\n }", "title": "" }, { "docid": "3f3e275f6b2cc80bb32937bb3a1259f7", "score": "0.42032117", "text": "public function contactSync()\n {\n // send customers\n $result = Mage::getModel('email_connector/apiconnector_contact')->sync();\n\t return $result;\n }", "title": "" }, { "docid": "ac14da9e9dbaf0953bc7a21415ecf6cc", "score": "0.42031732", "text": "public function actionAddcommnetsinservicecall()\n\t{\n\t\tif (isset($_POST['Servicecall'])) {\n\n\t\t\t$servicecall_id=$_GET['servicecall_id'];\n\t\t\t$service_model=Servicecall::model()->findByPk($servicecall_id);\n\n\t\t\t$service_model->attributes = $_POST['Servicecall'];\n\n\t\t\t$comments= Setup::model()->updatenotesorcomments($service_model->comments , $service_model, 'comments');\n\n\t\t\t$servicecall_update = Servicecall::model()->updateByPk($servicecall_id,\n\t\t\t\tarray(\n\t\t\t\t\t'comments' => $comments,\n\n\t\t\t\t));\n\n\t\t\tif ($servicecall_update) {\n\t\t\t\techo \"Servicecall Comments Saved\";\n\t\t\t\t$this->redirect(array('servicecall/view', 'id' => $servicecall_id));\n\t\t\t}\n\t\t\telse{\n\t\t\t\techo \"Servicecall Comments getErrors\";\n\t\t\t\t$errors=$service_model->getErrors();\n\t\t\t\t$error_msg='<h5>Servicecall Comments Not Updated</h5>';\n\t\t\t\tforeach ($errors as $key=>$value)\n\t\t\t\t\t$error_msg.=\"<br>\".$value[0];\n\n\n\t\t\t\t//$this->redirect(array('servicecall/view', 'id' => $servicecall_id, 'error_msg='=>$error_msg));\n\t\t\t\t$this->redirect(array('servicecall/view&id='.$servicecall_id.'&error_msg='.$error_msg.'#productbox'));\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "f7affc85090c55889d298a276654dfa5", "score": "0.4199048", "text": "public function getCall(){\r\n \r\n $db = new ConnectionManager();\r\n $generalMethod = new GeneralMethod(); \r\n try { \r\n// $sQuery = \"SELECT * FROM tablename\";\r\n// $db->query($sQuery);\r\n// //$db->bind(':user_id',$userId);\r\n// $row = $db->resultSet();\r\n\r\n $aList[JSON_TAG_RESULT]= 'success';\r\n $aList[JSON_TAG_STATUS] = 0; \r\n } catch (Exception $e) {\r\n $aList[JSON_TAG_STATUS] = 1;\r\n } \r\n return $aList; \r\n }", "title": "" }, { "docid": "c54a9884eb34811ac239d1fbe894bda9", "score": "0.4197825", "text": "public function listAccountNumbers()\n {\n $response = null;\n try {\n\n $_ENV[ 'SIGNALWIRE_API_HOSTNAME' ] = $this->spaceUrl;\n $client = new Client( $this->projectId, $this->authToken );\n $incomingPhoneNumbers = $client->incomingPhoneNumbers->read();\n $counter = 0;\n foreach ( $incomingPhoneNumbers as $number ) {\n\n $response[ $counter ][ 'number_sid' ] = $number->sid;\n $response[ $counter ][ 'account_sid' ] = $number->accountSid;\n $response[ $counter ][ 'phone_number' ] = $number->phoneNumber;\n $response[ $counter ][ 'friendly_name' ] = $number->friendlyName;\n $response[ $counter ][ 'sms_application_sid' ] = $number->smsApplicationSid;\n $response[ $counter ][ 'sms_fallback_method' ] = $number->smsFallbackMethod;\n $response[ $counter ][ 'sms_method' ] = $number->smsMethod;\n $response[ $counter ][ 'sms_url' ] = $number->smsUrl;\n $response[ $counter ][ 'status_callback' ] = $number->statusCallback;\n $response[ $counter ][ 'status_callback_method' ] = $number->statusCallbackMethod;\n $response[ $counter ][ 'voice_application_sid' ] = $number->voiceApplicationSid;\n $response[ $counter ][ 'voice_caller_id_lookup' ] = $number->voiceCallerIdLookup;\n $response[ $counter ][ 'voice_fallback_method' ] = $number->voiceFallbackMethod;\n $response[ $counter ][ 'voice_fallback_url' ] = $number->voiceFallbackUrl;\n $response[ $counter ][ 'voice_method' ] = $number->voiceMethod;\n $response[ $counter ][ 'voice_url' ] = $number->voiceUrl;\n $response[ $counter ][ 'capabilities' ] = $number->capabilities;\n\n $counter ++;\n }\n\n } catch ( TwilioException $exception ) {\n\n $response[ 'error_code' ] = $exception->getCode();\n $response[ 'error_message' ] = $exception->getMessage();\n }\n\n return $response;\n }", "title": "" }, { "docid": "c40de0746931af9d403ad2749da6888f", "score": "0.41941077", "text": "protected static function getFacadeAccessor() \n {\n return 'CloudComm';\n }", "title": "" }, { "docid": "2bbeeb4352a71cd2b1c12d7826e1c9cf", "score": "0.4176561", "text": "function getCalls()\n{\n\t$mysqli = makeSqlConnection();\n\t$sql = \"SELECT * FROM calls a LEFT JOIN calls_cstm ac ON a.id = ac.id_c \";\n\t$sql .=\"WHERE a.parent_type IN('Accounts', 'Opportunities','Tasks') AND deleted = '0' ORDER BY name ASC\";\n\t$res = $mysqli->query($sql);\n\t\n\t$rows = array();\n\t\n\twhile($r = mysqli_fetch_assoc($res))\n\t{\n\t\t$obj = (object) $r;\n\t\t\n\t\t$obj->created_by_name = getNombreUsuario($obj->created_by);\n\t\t\n\t\t$obj->assigned_user_name = getNombreUsuario($obj->assigned_user_id);\n\t\t\n\t\t$obj->parent_name = getParentName($obj->parent_id,$obj->parent_type);\n\t\t\n\t\t$obj->campaign_name = getCampaignName($obj->id);\n\t\t\n\t\t$obj->campaign_id = getCampaignId($obj->id);\n\t\t\n\t\t$a = (array) $obj;\n\t\t\n\t\t$rows[] = $a;\n\t}\n\t\t\n\tif( empty( $rows ) )\n\t{\n\t\treturn '{\"results\" :[]}';\n\t}\n\telse\n\t{\n\t\t//Convierte el arreglo en json y lo retorna\n\t\t$temp = json_encode(utf8ize($rows));\n\t\treturn '{\"results\" :'.$temp.'}';\n\t}\n}", "title": "" }, { "docid": "9bcbaec355bcaae8dcb81c0ea8a96c2a", "score": "0.41738656", "text": "protected function _call($call, $data)\n {\n array_unshift($data, $call);\n array_unshift($data, $this->_sessionId);\n\n try{\n $result = $this->_soapClient->call('call', $data);\n $this->getServiceLocator()->get('logService')\n ->log(\\Log\\Service\\LogService::LEVEL_DEBUGEXTRA,\n 'mag_soap_call_v1',\n 'Successful SOAP v1 call '.$call.'.',\n array('data'=>$data, 'result'=>$result)\n );\n }catch (\\SoapFault $soapFault) {\n throw new MagelinkException('SOAP v1 Fault with call '.$call.': '.$soapFault->getMessage(), 0, $soapFault);\n }\n\n return $result;\n }", "title": "" }, { "docid": "427ff3d3be2c0f8cfe13c89a86ef9a35", "score": "0.41736224", "text": "public function put(Call $message);", "title": "" }, { "docid": "c73c23f73d9ef3d6fa47bc7adc066ab2", "score": "0.41592115", "text": "private static function CallInformationToDB(CallInformation $call) : array {\n\t\t$data = array();\n\t\t$data[\"conversation_id\"] = $call->get_conversation_id();\n\t\t$data[\"last_active\"] = $call->get_last_active();\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "498444c66a013bb9d00fcfcac4979d29", "score": "0.4145511", "text": "function onCall(ConnectionInterface $conn, $id, $topic, array $params)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "0d8fd4fc90e21646b9fd73e09f3a8be9", "score": "0.41453132", "text": "public function getCalls()\n\t{\n\t\t$input = Input::all();\n/* \t\t $d = DB::table('edelid')\n ->join('nse_list', 'edelid.code', '=', 'nse_list.EdelCode')\n ->where('nse_list.NSECode','=', $nse)\n\t\t\t->get(); */\n\t\t$calls = DB::table('intra_call')->where('status','=', 1)->take(1)->get();\n\t\t// echo '<pre>'; print_r($calls); exit();\n\t\treturn json_encode($calls);\n\t}", "title": "" }, { "docid": "a580e41ca1d859978ca49c24d9f8541d", "score": "0.41338488", "text": "public function callThem(Request $request)\n {\n\t\t$communes_selected = \"\";\n\t\tforeach ($request->request as $key => $item) {\n\t\t\t$communes_selected = $communes_selected . \",\" . $item;\n\t\t}\n\n\n\n\t\t$phoneNumbers = \\DB::table('targetphones')->select('phone')->whereIn('commune_code',explode(\",\",$communes_selected))->count();\n\n\t\tSession::flash('message',$phoneNumbers);\n }", "title": "" }, { "docid": "c44866cee40fa5bee1934fcf4178570f", "score": "0.41329047", "text": "protected static function getCallModelFunc()\n {\n /**\n * Calls passed ModelCallOrchestrator invocable with supplied $args. Returned\n * Record is added to Controller wrapper.\n * @param \\Segment\\Controller\\ModelCallOrchestrator $call\n * @param \\Segment\\Controller\\RestRequest $args Associative array, object with string keys.\n * @var \\Segment\\Controller\\Controller $this\n */\n return [\n 'callModel' => function(\n \\Segment\\Controller\\ModelCallOrchestrator $call, \\Segment\\Controller\\RestRequest $args\n )\n {\n $records = $call->execute();\n reset($records);\n for($i = 0, $max = count($records);\n $i<$max;\n $i++){\n $this->setRecords($records[$i]);\n }\n\n }\n ];\n }", "title": "" }, { "docid": "09f5b65871e2e1f9a414c46f3390b29e", "score": "0.41326648", "text": "protected function sharedconnectionConnectionsRequest()\n {\n\n $resourcePath = '/v0.1/user/export/serviceConnections';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n \n if($headers['Content-Type'] === 'application/json') {\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass) {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n // array has no __toString(), so we should encode it manually\n if(is_array($httpBody)) {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));\n }\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('X-API-Token');\n if ($apiKey !== null) {\n $headers['X-API-Token'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "738858339dd78bab33b65b9339d8c24e", "score": "0.41094232", "text": "public function setContacts()\n {\n return $this->client->send($this->namespace.__FUNCTION__, $params);\n }", "title": "" }, { "docid": "e96addda0110963259a2e53c0a8c353c", "score": "0.40795884", "text": "protected function createSpecificCommunicationEntity()\n {\n $entity = new SyncCommunicationEntity();\n\n $entity->UserId = $this->user_guid;\n $entity->DeviceId = $this->device_guid;\n $entity->CollectionId = $this->collection_guid;\n\n return $entity;\n }", "title": "" }, { "docid": "97c15ef55caa05043f9cdde7648b866b", "score": "0.40776512", "text": "function newCall ($call) {\n\n // Set your 46elks API username and API password here\n // You can find them at https://dashboard.46elks.com/\n $username = 'u2c11ef65b429a8e16ccb1f960d02c734';\n $password = 'C0ACCEEC0FAFE879189DD5D57F6EC348';\n\n $context = stream_context_create(array(\n 'http' => array(\n 'method' => 'POST',\n 'header' => \"Authorization: Basic \".\n base64_encode($username.':'.$password). \"\\r\\n\".\n \"Content-type: application/x-www-form-urlencoded\\r\\n\",\n 'content' => http_build_query($call),\n 'timeout' => 5\n )));\n\n return false !== file_get_contents(\n 'https://api.46elks.com/a1/Calls', false, $context );\n}", "title": "" }, { "docid": "4d6adf0254b83f07c01976055d7252d4", "score": "0.40774366", "text": "function StartCallUpdate($callref,$description, $timespent=5, $udsource = \"Selfservice Portal\",$udcode = \"General Update\",$udtype=\"1\",$escalation)\r\n\t{\r\n\t\t$xmlmc = new XmlMethodCall();\r\n\t\t$xmlmc->SetParam(\"callref\",$callref);\r\n\t\t$xmlmc->SetParam(\"timeSpent\",$timespent);\r\n\t\t$xmlmc->SetParam(\"description\",$description);\r\n\r\n\t\t$xmlmc->SetParam(\"updateSource\",$udsource);\r\n\t\t$xmlmc->SetParam(\"updateCode\",$udcode);\r\n\t\tif($escalation)\r\n\t\t{\r\n\t\t\t$xmlmc->paramsxml .=\"<extraUpdateDbValues><wss_escalation>\".pfx($escalation).\"</wss_escalation></extraUpdateDbValues>\";\r\n\t\t\t$xmlmc->debugparamsxml .=\" <extraUpdateDbValues><wss_escalation>\".pfx($escalation).\"</wss_escalation></extraUpdateDbValues>\\r\\n\";\r\n\t\t}\r\n\t\t$this->xmlMethodCall = $xmlmc;\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "fa3654c939b71ecc8821f2f78a3d2329", "score": "0.40715015", "text": "public function i_open_messaging_information() {\n $this->execute('behat_general::i_click_on', [\"[data-action='view-group-info']\", 'css_element']);\n }", "title": "" }, { "docid": "7b15e3f4a9843f1ec305532dcb1abdd5", "score": "0.40532774", "text": "public function __setCall($call)\n {\n $this->call = $call;\n }", "title": "" }, { "docid": "4c0f407a16abd7ed15bd694be228889a", "score": "0.40489748", "text": "static function notifyCustomerService(){\n\t}", "title": "" }, { "docid": "e8d5c2310643c148b8878ac165a32410", "score": "0.40361273", "text": "function manageContactList($characterID,$accessToken,$actionType,$sendInfo = FALSE) {\n\t$ch = curl_init();\n\n\t$rootPath = \"https://crest-tq.eveonline.com/characters/\".$characterID.\"/contacts/\";\n\t$auth = \"Bearer \".$accessToken;\n\n\tswitch($actionType) {\n\t\tcase \"GET\":\n\t\t\tif($sendInfo) {\n\t\t\t\tcurl_setopt($ch, CURLOPT_URL,$sendInfo);\n\t\t\t} else {\n\t\t\t\tcurl_setopt($ch, CURLOPT_URL,$rootPath);\n\t\t\t}\n\t\t\tcurl_setopt($ch,CURLOPT_HTTPHEADER,array('Authorization: '.$auth,'Host: crest-tq.eveonline.com'));\n\t\t\tbreak;\n\t\tcase \"PUSH\":\n\t\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $sendInfo);\n\t\t\tcurl_setopt($ch, CURLOPT_URL,$rootPath);\n\t\t\tcurl_setopt($ch,CURLOPT_HTTPHEADER,array('Authorization: '.$auth,'Host: crest-tq.eveonline.com','Content-Type: application/json'));\n\t\t\tbreak;\n\t\tcase \"DELETE\":\n\t\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n\t\t\tcurl_setopt($ch, CURLOPT_URL,$rootPath.$sendInfo.\"/\");\n\t\t\tcurl_setopt($ch,CURLOPT_HTTPHEADER,array('Authorization: '.$auth,'Host: crest-tq.eveonline.com'));\n\t\t\tbreak;\n\t\tdefault: return FALSE;\n\t}\n\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t$serverOutput = curl_exec ($ch);\n\tcurl_close ($ch);\n\n\t$serverJSON = json_decode($serverOutput);\n\tif(isset($serverJSON->exceptionType) AND $serverJSON->exceptionType == \"UnauthorizedError\") { error(3,\"Authentication Error. Nag the administrator to fix it.\"); return FALSE; }\n\tif(isset($serverJSON->exceptionType) AND $serverJSON->exceptionType == \"UnsupportedMediaTypeError\") { error(3,\"Bad JSON Error. Nag the administrator to fix it.\"); return FALSE; }\n\tif(isset($serverJSON->exceptionType) AND $serverJSON->key == \"ContactsAddFull\") { error(3,\"You have reached the Contact List cap of 1024 Contacts on that character. You must delete contacts in order to make room for more.\"); return FALSE; }\n\n\treturn $serverJSON;\n}", "title": "" }, { "docid": "a7e010a7ac6e44f10f1ba3daed0e2b3a", "score": "0.4035079", "text": "function apiCall($call, $data, $method) {\n\t\t/*\n\t\t\tinternal function, you shouldn't call directly\n\t\t*/\n\t\t$url = $this->api_url.$call;\n\t\tif (($method != \"POST\")) {\n\t\t\t$url .= \"?\".http_build_query($data);\n\t\t}\n\n\t\t$headers = array();\n\t\t$headers[] = 'X-Pwinty-MerchantId: '.PWINTY_MERCHANTID;\n\t\t$headers[] = 'X-Pwinty-REST-API-Key: '.PWINTY_APIKEY;\n\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n\t\tcurl_setopt($ch, CURLOPT_URL, $url);\n\t\tcurl_setopt($ch, CURLOPT_VERBOSE, true); \n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 30);\n\t\tif ($method == \"POST\") {\n\t\t\tcurl_setopt($ch, CURLOPT_POST, true);\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $data); \n\t\t} elseif ($method == \"GET\") {\n\t\t\tcurl_setopt($ch, CURLOPT_POST, 0);\n\t\t\tcurl_setopt($ch, CURLOPT_HTTPGET, TRUE);\n\t\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');\n\t\t} elseif ($method == \"PUT\") {\n\t\t\tcurl_setopt($ch, CURLOPT_PUT, 1);\n\t\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');\n\t\t} elseif ($method == \"DELETE\") {\n\t\t\tcurl_setopt($ch, CURLOPT_PUT, 1);\n\t\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');\n\t\t}\n\t\tcurl_setopt($ch, CURLOPT_FAILONERROR, 0); \n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); \n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); \n\t\tcurl_setopt($ch, CURLOPT_USERAGENT, \"PHPPwinty v1\");\n\n\t\t$result_text = curl_exec($ch);\n\t\t$curl_request_info = curl_getinfo($ch);\n\t\tcurl_close($ch); \n\n\t\tif ($curl_request_info[\"http_code\"] == 401) {\n\t\t\t$this->last_error = \"Authorization unsuccessful. Check your Merchant ID and API key.\";\n\t\t\treturn array();\n\t\t}\n\n\t\t$data = json_decode($result_text, true);\n\t\treturn $data;\n\n\t}", "title": "" }, { "docid": "4e9deaa974c48bbd42866733166a4e26", "score": "0.40321732", "text": "public function onChannelMessage() {\n\t}", "title": "" }, { "docid": "33ebcb38bbd3c575ce18082003437f27", "score": "0.4023316", "text": "public function checkMessages(array $options = array())\n {\n throw new \\RuntimeException('LabsMobile does not support Inbound API Calls.');\n }", "title": "" }, { "docid": "a77ae70aec1065f72dd329cf7c13e0d6", "score": "0.40198487", "text": "function getCallerServicesIntrospection()\n {\n include_once 'PayPal/CallerServices.php';\n return unserialize(PAYPAL_WSDL_METHODS);\n }", "title": "" }, { "docid": "62f9df0456653581fb3588c2c59c17f4", "score": "0.4016868", "text": "private function _callHubspotApiAsync($storeId, $call) {\r\n ksort($call);\r\n\r\n $basedCall = base64_encode(Mage::helper('core')->jsonEncode($call));\r\n $signature = trim($this->getApiHapiKey($storeId)); \r\n \r\n $requestBody = array(\r\n 's' => $signature,\r\n 'hs' => $basedCall\r\n );\r\n\t\tif($this->isEnabled($storeId) and $signature != '')\r\n\t\t{\r\n\t\t\t$hubspotApi = Mage::helper('cubix_hubspot/hubspot');\r\n\t\t\t$orders_data = array();\r\n\t\t\t$customer_data = array();\r\n\t\t\t$all_customers = $hubspotApi->getAllContactsArray($signature);\r\n\t\t\t$allDeals = $hubspotApi->getAllDeals($signature);\r\n\t\t\t//create custom fields/properties of deals for order data\r\n\t\t\t$this->CreateCustomField($storeId);\r\n\t\t\tif(!empty($call)){\r\n\t\t\t\t\r\n\t\t\t\tif(isset($call['events']) and !empty($call['events'])){\r\n\t\t\t\t\t$i=0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tforeach($call['events'] as $call_data){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$customer_data['firstname'] \t= $call_data['identity']['first_name'];\r\n\t\t\t\t\t\t$customer_data['lastname'] \t\t= $call_data['identity']['last_name'];\r\n\t\t\t\t\t\t$customer_data['email'] \t\t= $call_data['identity']['email'];\r\n\t\t\t\t\t\t$customer_data['phone'] \t\t= $call_data['params']['billing_phone'];\r\n\t\t\t\t\t\t$customer_data['country'] \t\t= $call_data['params']['billing_country'];\r\n\t\t\t\t\t\t$customer_data['state'] \t\t= $call_data['params']['billing_region'];\r\n\t\t\t\t\t\t$customer_data['city'] \t\t\t= $call_data['params']['billing_city'];\r\n\t\t\t\t\t\t$customer_data['zip'] \t\t\t= $call_data['params']['billing_postcode'];\r\n\t\t\t\t\t\t$customer_data['address'] \t\t= $call_data['params']['billing_address'];\r\n\t\t\t\t\t\t$customer_vid = 0; \r\n\t\t\t\t\t\t$portal_id = 0;\r\n\t\t\t\t\t\tif($email_exist = $this->get_email($all_customers, $customer_data['email'])){\r\n\t\t\t\t\t\t\t$customer_vid = $email_exist['vid'];\r\n\t\t\t\t\t\t\t$portal_id =$email_exist['portal_id'];\r\n\t\t\t\t\t\t}else if ($email_exists = $hubspotApi->find_ContactByEmail($signature, $customer_data['email']) and $email_exists['status_code'] == 200){\r\n\t\t\t\t\t\t\t$customer_vid = $email_exists['response']->vid;\r\n\t\t\t\t\t\t\t$portal_id =$email_exists['response']->{'portal-id'};\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t$customer_res = $hubspotApi->create_contact($signature, $customer_data);\r\n\t\t\t\t\t\t\tif($customer_res['status_code'] == 200){\r\n\t\t\t\t\t\t\t\t$customer_vid = $customer_res['response']->vid;\r\n\t\t\t\t\t\t\t\t$portal_id = $customer_res['response']->{'portal-id'};\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$deal_info['dealname']\t\t\t\t= $call_data['params']['order_id'].' - '.$customer_data['firstname'].' '.$customer_data['lastname'];\r\n\t\t\t\t\t\t$deal_info['portalId']\t\t\t\t= $portal_id;\r\n\t\t\t\t\t\t$deal_info['sender_vid']\t\t\t= $customer_vid;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$i3 = 5;\r\n\t\t\t\t\t\t$orders_data = array();\r\n\t\t\t\t\t\t$orders_data[$i3]['name'] \t\t\t= 'order_id';\t\t\t\r\n\t\t\t\t\t\t$orders_data[$i3]['value']\t\t\t= $call_data['params']['order_id'];\r\n\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t$orders_data[$i3]['name']= 'order_status';\r\n\t\t\t\t\t\t$orders_data[$i3]['value']\t\t= $call_data['params']['order_status'];\r\n\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t$orders_data[$i3]['name']\t\t\t\t= 'amount';\r\n\t\t\t\t\t\t$orders_data[$i3]['value']\t\t\t\t= $call_data['params']['amount'];\r\n\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t$orders_data[$i3]['name']\t\t= 'shipping_amount';\r\n\t\t\t\t\t\t$orders_data[$i3]['value']\t\t= $call_data['params']['shipping_amount'];\r\n\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t$orders_data[$i3]['name']\t\t\t= 'tax_amount';\r\n\t\t\t\t\t\t$orders_data[$i3]['value']\t\t\t= $call_data['params']['tax_amount'];\r\n\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t$orders_data[$i3]['name'] \t\t= 'billing_phone';\r\n\t\t\t\t\t\t$orders_data[$i3]['value'] \t\t= $call_data['params']['billing_phone'];\r\n\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t$orders_data[$i3]['name'] \t= 'billing_country';\r\n\t\t\t\t\t\t$orders_data[$i3]['value'] \t= $call_data['params']['billing_country'];\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(isset($call_data['params']['billing_region'])){\r\n\t\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t\t$orders_data[$i3]['name'] \t= 'billing_region';\r\n\t\t\t\t\t\t\t$orders_data[$i3]['value'] \t= $call_data['params']['billing_region'];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t$orders_data[$i3]['name'] \t\t= 'billing_city';\r\n\t\t\t\t\t\t$orders_data[$i3]['value'] \t\t= $call_data['params']['billing_city'];\r\n\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t$orders_data[$i3]['name'] \t= 'billing_postcode';\r\n\t\t\t\t\t\t$orders_data[$i3]['value'] \t= $call_data['params']['billing_postcode'];\r\n\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t$orders_data[$i3]['name'] \t= 'billing_address';\r\n\t\t\t\t\t\t$orders_data[$i3]['value'] \t= $call_data['params']['billing_address'];\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(isset($call_data['use_ip'])){\r\n\t\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t\t$orders_data[$i3]['name'] \t\t\t= 'use_ip';\r\n\t\t\t\t\t\t\t$orders_data[$i3]['value'] \t\t\t= $call_data['use_ip'];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t$orders_data[$i3]['name'] \t\t= 'order_server_time';\r\n\t\t\t\t\t\t$orders_data[$i3]['value'] \t\t= $call_data['server_time'];\r\n\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t$orders_data[$i3]['name'] \t\t\t= 'order_time';\r\n\t\t\t\t\t\t$orders_data[$i3]['value']\t\t\t= $call_data['time'];\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t#### product(s) purchased details\r\n\t\t\t\t\t\t$i2 = 1;\r\n\t\t\t\t\t\tforeach($call_data['params']['items'] as $item2){\r\n\t\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t\t$orders_data[$i3]['name']\t=\t'item_'.$i2.'_id';\r\n\t\t\t\t\t\t\t$orders_data[$i3]['value'] \t\t= $item2['id'];\r\n\t\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t\t$orders_data[$i3]['name']\t= 'item_'.$i2.'_url';\r\n\t\t\t\t\t\t\t$orders_data[$i3]['value']\t= $item2['url'];\r\n\t\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t\t$orders_data[$i3]['name']\t= 'item_'.$i2.'_quantity';\r\n\t\t\t\t\t\t\t$orders_data[$i3]['value'] \t= $item2['quantity'];\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(isset($item['option_id'])){\r\n\t\t\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t\t\t$orders_data[$i3]['name']\t= 'item_'.$i2.'_sku';\r\n\t\t\t\t\t\t\t\t$orders_data[$i3]['value'] \t= $item2['option_id'];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(isset($item['option_name'])){\r\n\t\t\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t\t\t$orders_data[$i3]['name']\t= 'item_'.$i2.'_option_name';\r\n\t\t\t\t\t\t\t\t$orders_data[$i3]['value']\t= $item2['option_name'];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(isset($item['name'])){\r\n\t\t\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t\t\t$orders_data[$i3]['name']\t= 'item_'.$i2.'_name';\r\n\t\t\t\t\t\t\t\t$orders_data[$i3]['value'] \t= $item2['name'];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(isset($item['option_price'])){\r\n\t\t\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t\t\t$orders_data[$i3]['name']\t= 'item_'.$i2.'_option_price';\r\n\t\t\t\t\t\t\t\t$orders_data[$i3]['value'] \t= $item2['option_price'];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(isset($item['price'])){\r\n\t\t\t\t\t\t\t\t$i3++;\r\n\t\t\t\t\t\t\t\t$orders_data[$i3]['name'] \t='item_'.$i2.'_price';\r\n\t\t\t\t\t\t\t\t$orders_data[$i3]['value'] \t= $item2['price'];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$i2++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check if order already not created\r\n\t\t\t\t\t\tif(!$this->getDealName($allDeals, $deal_info['dealname'])){\r\n\t\t\t\t\t\t\t$deal_res = $hubspotApi->create_deal($signature, $deal_info,$orders_data);\r\n\t\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t $i++;\t\t\t\t\t\t \r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t \r\n\t\t}else{\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n }", "title": "" }, { "docid": "12bd497cea7ec91c6951061525adbffe", "score": "0.40153506", "text": "public function getCallId();", "title": "" }, { "docid": "13ec9fd7bb8f4499fd597f6aa589cc9c", "score": "0.40109527", "text": "public function createForConversation(int $conversationID) : bool {\n\n\t\t//Generate call information\n\t\t$info = new CallInformation();\n\t\t$info->set_conversation_id($conversationID);\n\t\t$info->set_last_active(time());\n\n\t\t//We need to get the list of members of the conversation to create members list\n\t\t$conversation_members = components()->conversations->getConversationMembers($conversationID);\n\n\t\t//Check for errors\n\t\tif(count($conversation_members) == 0)\n\t\t\treturn false;\n\n\t\t\n\t\t//Insert the call in the database to get its ID\n\t\tif(!db()->addLine(\n\t\t\tself::CALLS_LIST_TABLE,\n\t\t\tself::CallInformationToDB($info)\n\t\t))\n\t\t\treturn false;\n\t\t$info->set_id(db()->getLastInsertedID());\n\n\t\tforeach($conversation_members as $memberID){\n\t\t\t$member = new CallMemberInformation();\n\t\t\t$member->set_call_id($info->get_id());\n\t\t\t$member->set_userID($memberID);\n\t\t\t$member->set_user_call_id(random_str(190));\n\t\t\t$member->set_status(CallMemberInformation::USER_UNKNOWN);\n\n\t\t\t//Try to add the member to the list\n\t\t\tif(!$this->addMember($member))\n\t\t\t\treturn false;\n\t\t}\n\n\t\t//Success\n\t\treturn true;\n\t}", "title": "" }, { "docid": "6bb04a665b62df412851f2fbb7b0abf8", "score": "0.40088728", "text": "protected static function getFacadeAccessor()\n {\n return 'clientMessage';\n }", "title": "" }, { "docid": "5bd5dd2126106dcc0aa51f159fe0e5e2", "score": "0.4007417", "text": "public function setCallOptions(?IncomingCallOptions $value): void {\n $this->getBackingStore()->set('callOptions', $value);\n }", "title": "" }, { "docid": "321e79dc0dbbd4772959ac5af9cd8d90", "score": "0.40013158", "text": "private function updateCall(): void\n {\n $this->setData(\n $this->getCall()\n ->update([\n 'setup_complete' => true,\n 'room_id' => $this->videoDriver->getRoomId(),\n 'room_pin' => $this->videoDriver->getRoomPin(),\n 'room_secret' => $this->videoDriver->getRoomSecret(),\n 'payload' => $this->videoDriver->getExtraPayload(),\n ])\n );\n }", "title": "" }, { "docid": "195471232881c1ddf6ea370e33b68d3b", "score": "0.3993634", "text": "public function getOperationsClient()\n {\n return $this->operationsClient;\n }", "title": "" }, { "docid": "195471232881c1ddf6ea370e33b68d3b", "score": "0.3993634", "text": "public function getOperationsClient()\n {\n return $this->operationsClient;\n }", "title": "" }, { "docid": "195471232881c1ddf6ea370e33b68d3b", "score": "0.3993634", "text": "public function getOperationsClient()\n {\n return $this->operationsClient;\n }", "title": "" }, { "docid": "195471232881c1ddf6ea370e33b68d3b", "score": "0.3993634", "text": "public function getOperationsClient()\n {\n return $this->operationsClient;\n }", "title": "" }, { "docid": "195471232881c1ddf6ea370e33b68d3b", "score": "0.3993634", "text": "public function getOperationsClient()\n {\n return $this->operationsClient;\n }", "title": "" }, { "docid": "195471232881c1ddf6ea370e33b68d3b", "score": "0.3993634", "text": "public function getOperationsClient()\n {\n return $this->operationsClient;\n }", "title": "" }, { "docid": "195471232881c1ddf6ea370e33b68d3b", "score": "0.3993634", "text": "public function getOperationsClient()\n {\n return $this->operationsClient;\n }", "title": "" }, { "docid": "195471232881c1ddf6ea370e33b68d3b", "score": "0.3993634", "text": "public function getOperationsClient()\n {\n return $this->operationsClient;\n }", "title": "" }, { "docid": "195471232881c1ddf6ea370e33b68d3b", "score": "0.3993634", "text": "public function getOperationsClient()\n {\n return $this->operationsClient;\n }", "title": "" }, { "docid": "195471232881c1ddf6ea370e33b68d3b", "score": "0.3993634", "text": "public function getOperationsClient()\n {\n return $this->operationsClient;\n }", "title": "" }, { "docid": "195471232881c1ddf6ea370e33b68d3b", "score": "0.3993634", "text": "public function getOperationsClient()\n {\n return $this->operationsClient;\n }", "title": "" }, { "docid": "195471232881c1ddf6ea370e33b68d3b", "score": "0.3993634", "text": "public function getOperationsClient()\n {\n return $this->operationsClient;\n }", "title": "" }, { "docid": "f2e191e3c8cfe281c6a292c07e3509b4", "score": "0.39914784", "text": "public function via($notifiable)\n {\n return ['phone'];\n }", "title": "" }, { "docid": "9d91363b398804e9c08119ba849564e4", "score": "0.3990128", "text": "public function broadcastOn()\n {\n // return new PrivateChannel('newRate');\n return ['newRateChannel'];\n\n }", "title": "" }, { "docid": "ed0340a55c1bc2bc14bd71e5834d6949", "score": "0.39891168", "text": "public function pushLeads($params = []) {\n $config = $this->mergeConfigToFeatureSettings($params);\n $integrationEntityRepo = $this->getIntegrationEntityRepository();\n $totalUpdated = 0;\n $totalCreated = 0;\n $totalErrors = 0;\n $mauticLeadFieldString = $this->getApiHelper()->getMauticLeadFieldString($config);\n // Get all the leads that needs to be updated or created.\n $leadsToUpdate = $integrationEntityRepo->findLeadsToUpdate(self::integration, self::internalEntity, $mauticLeadFieldString);\n $leadsToCreate = $integrationEntityRepo->findLeadsToCreate(self::integration, $mauticLeadFieldString);\n // Get the total number of contacts to update.\n $totalToUpdate = count($leadsToUpdate['Contact']);\n // Get the total number of contacts to create.\n $totalToCreate = count($leadsToCreate);\n // Set the total number of contacts to process.\n $totalToProcess = $totalToCreate + $totalToUpdate;\n\n // Set the console message and the console progress bar.\n if (defined('IN_MAUTIC_CONSOLE')) {\n if ($totalToProcess) {\n $output = new ConsoleOutput();\n $output->writeln(\"About $totalToUpdate to update and about $totalToCreate to create\");\n $progress = new ProgressBar($output, $totalToProcess);\n }\n }\n // Query for contacts to create and update until are all synced.\n while ($totalToProcess - ($totalCreated + $totalUpdated + $totalErrors) > 0) {\n // Make PATCH request to update contacts.\n if (!empty($leadsToUpdate['Contact'])) {\n foreach ($leadsToUpdate['Contact'] as $lead) {\n $response = $this->syncContactWithIntegration($config, $lead, $this->endpointUpdateContact($lead['integration_entity_id']), 'PATCH', $this->requestSettings);\n if ($response === TRUE && !empty($progress)) {\n $progress->advance();\n $totalUpdated++;\n continue;\n }\n // If the contact wasn't updated create it again in integration.\n $leadsToCreate[] = $response;\n }\n }\n\n // Make POST request to create contacts.\n if (!empty($leadsToCreate)) {\n foreach ($leadsToCreate as $lead) {\n $response = $this->syncContactWithIntegration($config, $lead, $this->endpointCreateContacts(), 'POST', $this->requestSettings);\n if ($response === TRUE && !empty($progress)) {\n $progress->advance();\n $totalCreated++;\n continue;\n }\n $totalErrors++;\n }\n }\n }\n if (!empty($progress) && !empty($output)) {\n $progress->finish();\n $output->writeln('Process finished');\n }\n $totalIgnored = $totalToProcess - ($totalUpdated + $totalCreated + $totalErrors);\n\n return [$totalUpdated, $totalCreated, $totalErrors, $totalIgnored];\n }", "title": "" }, { "docid": "b1e7bb33ec9d5f6b6cbd7948d6577a2c", "score": "0.39875707", "text": "public function get_c_services(){ return $this->c_services; }", "title": "" }, { "docid": "9fd063ffcba817394f7250d03f8aa928", "score": "0.39857346", "text": "public function call()\n\t{\n\t}", "title": "" }, { "docid": "44fd96ec89494b1ba5cacfde127a0dc9", "score": "0.3983489", "text": "public function call(): RestClientResponseInterface\n {\n }", "title": "" }, { "docid": "1d43914d9898213345175426eb2e97e0", "score": "0.39831606", "text": "public function getMessaging()\n {\n return $this->messaging;\n }", "title": "" }, { "docid": "ca7484936ae2b54f0768e653721807a3", "score": "0.39761296", "text": "public function channelsListQuotaCalculator()\n {\n $paramsAllowedAndQuotasUsed = [\n 'id' => 0,\n 'snippet' => 2,\n 'brandingSettings' => 2,\n 'contentDetails' => 2,\n 'invideoPromotion' => 2,\n 'statistics' => 2,\n 'status' => 2,\n 'topicDetails' => 2,\n ];\n /** base query is 1 point */\n $this->quotaUsed += 1;\n if ($this->partParams) {\n $this->quotaCalculator($paramsAllowedAndQuotasUsed);\n }\n }", "title": "" }, { "docid": "3c3401613be3b5d8d88bc3c7ec339aa2", "score": "0.39748606", "text": "public function referMyConnection($input)\n {\n $loggedinUserDetails = $this->getLoggedInUser();\n if ($loggedinUserDetails)\n {\n $neoLoggedInUserDetails = $this->neoUserRepository->getNodeByEmailId($loggedinUserDetails->emailid) ;\n if (count($neoLoggedInUserDetails))\n {\n //send connection request if not connected and a mintmesh\n if (empty($input['connected_to_me']) && empty($input['non_mintmesh']))\n {\n $connectInput = array('emails'=>json_encode(array($input['refer_to'])));\n $sendRequestConnectRes = $this->processConnectionRequest($connectInput);\n }\n //if not connected and not in mintmesh\n else if (empty($input['connected_to_me']) && !empty($input['non_mintmesh']))\n {\n //send invite by email\n if (!empty($input['invite_via_email']))\n {\n $inviteEmail = array();\n $inviteEmail['emails'] = json_encode(array($input['refer_to'])) ;\n $inviteEmail['for_email'] = $input['referring'];\n $inviteResult = $this->contactsGateway->sendReferralInvitations($inviteEmail) ;\n }\n }\n $relationAttrs = array();\n if (!empty($input['refer_to']))\n {\n $relationAttrs['request_for_emailid'] = $input['refer_to'] ;\n $relationAttrs['status'] = Config::get('constants.REFERENCE_STATUS.PENDING') ;\n }\n $referredResponse = $this->neoUserRepository->referMyConnection($loggedinUserDetails->emailid,$input['referring'],$relationAttrs) ;\n //send notifications to users (u1)\n $otherInfoParams = array();\n $otherInfoParams['other_user'] = $input['referring'] ;\n $extra_insert['extra_info'] = !empty($referredResponse[0][0])?$referredResponse[0][0]->getID():0 ;\n $this->sendNotification($loggedinUserDetails, $neoLoggedInUserDetails, $input['refer_to'], 17, $extra_insert, $otherInfoParams, 1) ;\n\n //send notifications to users (u3)\n $otherInfoParams2 = array();\n $otherInfoParams2['other_user'] = $input['refer_to'] ;\n\n $this->sendNotification($loggedinUserDetails, $neoLoggedInUserDetails, $input['referring'], 17, $extra_insert, $otherInfoParams2, 1);\n $message = array('msg'=>array(Lang::get('MINTMESH.referrals.success')));\n return $this->commonFormatter->formatResponse(self::SUCCESS_RESPONSE_CODE, self::SUCCESS_RESPONSE_MESSAGE, $message, array()) ;\n }\n else\n {\n $message = array('msg'=>array(Lang::get('MINTMESH.user.user_not_found')));\n return $this->commonFormatter->formatResponse(self::ERROR_RESPONSE_CODE, self::ERROR_RESPONSE_MESSAGE, $message, array()) ;\n }\n \n }\n else\n {\n $message = array('msg'=>array(Lang::get('MINTMESH.user.user_not_found')));\n return $this->commonFormatter->formatResponse(self::ERROR_RESPONSE_CODE, self::ERROR_RESPONSE_MESSAGE, $message, array()) ;\n }\n \n }", "title": "" }, { "docid": "3239337cec076accf6fbc418c871cbbf", "score": "0.39709273", "text": "public function endpointRetrieveContacts() {\n return $this->keys['instance_url'] . '/api/retrieve/contact?_format=json';\n }", "title": "" }, { "docid": "2d0a252b1252137cab8ac32a1a9dd025", "score": "0.39694175", "text": "public function FireAPI() {\n if ( method_exists( $this, $this->gModel ) ) { \n\t\t\treturn $this->_response( $this->{$this->gModel }( $this->argArray ));\n }\n }", "title": "" }, { "docid": "2ff4e35488604a65cae26242f31f4baa", "score": "0.3967566", "text": "public function callsAll(Request $request)\n {\n $calls_raw = [];\n if (Auth::User()->role == User::ADMIN) {\n $calls_raw = Call::get();\n } elseif (Auth::User()->role == User::SUBADMIN) {\n $calls_raw = Call::join('users', 'calls.user_id', '=', 'users.id')\n ->select('calls.*')\n ->where('users.user_id', Auth::User()->id)\n ->get();\n }\n\n $answer_is = Call::QUESTION_SHORT;\n $calls = [];\n foreach ($calls_raw as $call) {\n $contact = $call->contact()->first();\n\n $calls[] = [\n $call->user->username,\n $contact->first_name . ' ' . $contact->last_name,\n ($contact->type == Contact::COMPANY) ? $contact->company_name : '',\n $contact->phone,\n $contact->email,\n $call->updated_at->toDateTimeString(),\n $call->note,\n $answer_is[$contact->type][$call->answer],\n '<a class=\"btn btn-primary\" href=\"' . route('reporting.calls.edit', ['call' => $call->id]) . '\">Edit</a>'\n ];\n }\n\n //highlight_string(\"<?php\\n\".var_export($calls,true));die();\n\n return view('reporting.all_calls', compact('calls'));\n }", "title": "" }, { "docid": "43ecf00d7fe142cc0fa033b695e4e484", "score": "0.39662528", "text": "public function channels()\n {\n return $this->belongsToMany(ChannelProxy::modelClass(), 'catalog_rule_channels');\n }", "title": "" }, { "docid": "f550c70813ac260697e58284f6691019", "score": "0.39650965", "text": "public static function infoConnectorsUpdateAgent($isCalledRecursively = 0)\n\t{\n\t\t$infoConnectors = self::getExpiredInfoConnectors();\n\t\t$connectorInfo = $infoConnectors->fetch();\n\n\t\tif (!empty($connectorInfo))\n\t\t{\n\t\t\tself::updateInfoConnectors($connectorInfo['LINE_ID']);\n\n\t\t\tif (!empty($infoConnectors->fetch()))\n\t\t\t{\n\t\t\t\tself::addAllLinesUpdateAgent(1);\n\t\t\t}\n\t\t}\n\n\t\tif ($isCalledRecursively == 0)\n\t\t{\n\t\t\treturn __METHOD__ . '();';\n\t\t}\n\n\t\treturn '';\n\t}", "title": "" }, { "docid": "176e54e00f37dee89590e4d67663d2b2", "score": "0.39636567", "text": "public function connect( $inputs )\n\t{\n\t\ttry {\n\t\t\t// dd($this->auth)\n $api_id = $inputs['app_id'];\n $api_password = $inputs['api_password'];\n $api_username = $inputs['api_username'];\n if(null != $this->emailService->where('service','iContact')->where('user_id',$this->auth->id())->first())\n {\n \treturn [ 'status' => 'warning' , 'message' => 'You already connected to this api.' ];\n }\n $a= $this->icontact->getInstance()->setConfig(array(\n 'appId' =>$api_id,\n 'apiPassword' =>$api_password,\n 'apiUsername' =>$api_username\n ));\n $oiContact = $this->icontact->getInstance(); \n // EmailServices::set_service_option('icontact', 'api_id', $api_id);\n // EmailServices::set_service_option('icontact', 'api_password', Crypt::encrypt($api_password));\n // EmailServices::set_service_option('icontact', 'api_username', $api_username);\n //EmailServices::set_service_option('icontact', 'is_connected', 1);\n $result = [ 'status' => 'success' , 'message' => 'API settings saved' ];\n } catch (Exception $error) {\n return [ 'status' => 'success' , 'message' => 'API settings is not valid' ];\n }\n\n try{\n \t$result = $oiContact->getLists();\n \tif(isset($result['status']) && $result['status']=='error' )\n \t{\n \t\treturn [ 'status' => 'error' , 'message' => $result['message'] ];\n \t}\n else if(isset($result[0]->listId))\n {\n\t if($this->emailService->create( $this->setIcontactConnectionInputs( $inputs ) ))\n\t {\n\t\t\t\t\t$result = [ 'status' => 'success' , 'message' => 'You has been successfully connected.' ];\n\t }\n } \n }catch(Exception $e){\n \treturn [ 'status' => 'warning' , 'message' => 'API settings is not valid' ];\n }\n\n return $result;\n\t}", "title": "" }, { "docid": "f64ff1250566ac413dfdeab78bcb248a", "score": "0.39563137", "text": "function compose_new_sms(){\n $this->lang->load('common', $this->session->userdata('lang_file'));\n $this->data['mainTab'] = 'communication';\n $this->data['activeTab'] = 'sms';\n $this->data['send_option'] = 'send_now';\n $this->data['sms_content'] = \"\";\n $this->data['individual_contact_nos'] = \"\"; \n $member_group_id = \"\";\n $data_previlize = $this->check_member_type_previlize();\n $mem_id = $this->session->userdata('mem_id');\n $mem_type = $data_previlize['mem_type']; \n $member_group = $this->info_model->get_mem_group_info_by_mem_id($mem_id); \n if($member_group){\n $member_group_id = $member_group[0]->group_id;\n } \n $check_pacakge_access = $this->check_pacakge_access($mem_id, \"active\", $mem_type); \n if($check_pacakge_access['sms_module_access']){\n $this->data['query1'] = $this->info_model->get_logged_member_profile($mem_id); \n //$this->data['active_org_list'] = $this->info_model->get_registered_customer($org_id=\"\");\n $this->data['num_of_inbox_message'] = $this->info_model->get_member_communicate_member_sms($flag=\"inbox\", $mem_id, $member_group_id, $mem_type);\n $this->data['num_of_sent_message'] = $this->info_model->get_member_communicate_member_sms($flag=\"sent\", $mem_id, \"\", \"\");\n $this->data['org_mem_external_contact'] = $this->info_model->get_org_mem_external_contact_by_org_id($data_previlize['member_org'], $mem_id);\n $this->data['mem_assigned_group_info'] = $this->info_model->get_mem_group_member_info($mem_id, $data_previlize['member_org']); \n $this->data['all_active_admin'] = $this->info_model->get_org_active_admin($data_previlize['member_org']); \n $this->data['dynamicView'] = 'pages/organization/communication_member/sms_compose';\n } else{ $this->data['dynamicView'] = 'pages/organization/communication_member/sms_no_access'; } \n $this->_commonPageLayout('frontend_viewer');\n}", "title": "" }, { "docid": "6d426d8c183ca62dbe6625ca80b53d4f", "score": "0.39559245", "text": "public function call();", "title": "" }, { "docid": "6d426d8c183ca62dbe6625ca80b53d4f", "score": "0.39559245", "text": "public function call();", "title": "" }, { "docid": "df99efbd30733886739dcbd8b875fdaa", "score": "0.39555654", "text": "public function saveCall()\n { \n $client_flag = $this->input->post('client_flag');\n $client_id;\n $deal_id;\n $follow_up_id;\n $client_status = $this->input->post('client_status');\n if ($client_status == 1) // in case of new client\n {\n // is a transaction\n $this->db->trans_start();\n // add a new client\n $client_id = $this->model_client->addClient();\n \n // add a deal transaction \n $deal_id = $this->model_client->addDeal($client_id);\n \n // add the follow up\n $follow_up_id = $this->model_client->addFollow($deal_id);\n \n // add the notification\n $notification_type = $this->input->post('notification_type');\n if ($notification_type != 0) {\n $this->model_client->addNotification($follow_up_id, $deal_id); // +1 because insert_db don't work because of trigger\n }\n // end the transaction\n $this->db->trans_complete();\n \n redirect('sales', 'refresh');\n }\n elseif($client_status == 2) // in case of current employee \n {\n $property_id = $this->input->post('property_id');\n // start the transaction\n $this->db->trans_start();\n $current_deal_id = $this->input->post('current_deal'); // get the current_deal from hidden input\n $client_id = $this->model_client->get_client_id_by_deal($current_deal_id);\n // set the client status\n $this->model_client->update_client_status($client_id, $client_status,$client_flag);\n \n // update the deal_status\n $deal_status = $this->input->post('deal_status');\n $this->model_client->update_deal_status($current_deal_id, $deal_status);\n \n // add the follow up\n $follow_up_id = $this->model_client->addFollow($current_deal_id);\n // add the proeprty if set\n if (!empty($property_id)) {\n $this->model_client->updateDealProperty($current_deal_id);\n }\n // add the notification\n $notification_type = $this->input->post('notification_type');\n if ($notification_type != 0) {\n $this->model_client->addNotification($follow_up_id, $current_deal_id); // +1 because insert_db don't work because of trigger\n } \n $this->db->trans_complete();\n redirect('sales', 'refresh');\n } \n elseif ($client_status == 3) { // in case of shared client\n $user_id = $this->session->userId;\n // get the client id \n $current_deal_id = $this->input->post('current_deal'); // get the current_deal from hidden input\n // get the client id by deal id\n if (!empty($current_deal_id)) {\n $client_id = $this->model_client->get_client_id_by_deal($current_deal_id);\n echo $this->db->last_query();\n }\n // get the client_id by client phone if the client is new \n else {\n $client_phone = $this->input->post('client_phone');\n $client_id = $this->model_client->matched_client($client_phone)->client_id;\n \n }\n /* check if the client is shared and new or shared and current\n * he will shared and current if he has deals with the current sales\n */\n // this get the deals records of current user or return false\n $current_shared_client = $this->model_client->client_deals($client_id, $user_id);\n\n if ($current_shared_client) { // the client is shared and old\n $property_id = $this->input->post('property_id');\n // start the transaction\n $this->db->trans_start();\n\n // add the follow up \n $current_deal_id = $this->input->post('current_deal'); // get the current_deal from hidden input\n $follow_up_id = $this->model_client->addFollow($current_deal_id);\n // add the proeprty if set\n if (!empty($property_id)) {\n $this->model_client->updateDealProperty($current_deal_id);\n }\n // add the notification\n $notification_type = $this->input->post('notification_type');\n if ($notification_type != 0) {\n $this->model_client->addNotification($follow_up_id, $current_deal_id); // +1 because insert_db don't work because of trigger\n }\n $this->db->trans_complete();\n redirect('sales', 'refresh');\n } \n else \n { // the client is shared is new to me \n // is a transaction\n $this->db->trans_start();\n // set the client status\n $this->model_client->update_client_status($client_id, $client_status,$client_flag);\n // add a deal transaction \n $deal_id = $this->model_client->addDeal($client_id);\n\n // add the follow up\n $follow_up_id = $this->model_client->addFollow($deal_id);\n\n // add the notification\n $notification_type = $this->input->post('notification_type');\n if ($notification_type != 0) {\n $this->model_client->addNotification($follow_up_id, $deal_id); // +1 because insert_db don't work because of trigger\n }\n // end the transaction\n $this->db->trans_complete();\n\n redirect('sales/follow_up_work', 'refresh');\n }\n }\n // end of if .. else\n }", "title": "" }, { "docid": "30c3ce02663d39a00f596ca756780891", "score": "0.39451382", "text": "public function manageSubchannel()\n {\n // section 10-5-1-60-5ce3491f:15700383283:-8000:0000000000000BBE begin\n // section 10-5-1-60-5ce3491f:15700383283:-8000:0000000000000BBE end\n }", "title": "" }, { "docid": "26715ec8442cdb1a9b222195ee06582a", "score": "0.3944796", "text": "function getUserSubscriptionsDelta($JSONObject)\n{\n try{\n $subscriptionManager = new SubscriptionManager;\n $result = array();\n $result = $subscriptionManager->getUserSubscriptionsDelta($JSONObject->userName,\n $JSONObject->pwd,\n $JSONObject->applicationId,\n $JSONObject->params[0]->lastSyncDate);\n $response = createSuccessResponse($result);\n echo json_encode($response);\n \n }catch(IGCAppException $IGCExec)\n {\n $response = createFailureResponse($IGCExec);\n echo json_encode($response);\n throw $IGCExec;\n }catch(Exception $exec)\n {\n $response = createFailureResponse($exec);\n echo json_encode($response);\n throw $exec;\n }\n}", "title": "" }, { "docid": "2fd5d1cdbeff980864e596d9329c01fb", "score": "0.3942272", "text": "public static function getRPCMethods()\n\t{\n\t\t$methods = array();\n\t\t\n\t\t\n\t\t$methods[] = (object) array(\"name\" => \"getRolloverEligible\",\n\t\t\t\t\t\t\t\t \t\"args\" => array ( (object) array (\t\"name\" => \"application_id\",\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t \t\t\t\t\"type\" => \"string\"),\n\t\t\t\t\t\t\t\t \t\t\t\t\t),\n\t\t\t\t\t\t\t\t \t\"response\" => (object) array (\"type\" => \"array\")\n\t\t\t\t\t\t\t\t \t);\n\n\t\t\t\t\t\t\t\t \t\n\t\t$methods[] = (object) array(\"name\" => \"createRollover\",\n\t\t\t\t\t\t\t\t \t\"args\" => array ( (object) array (\t\"name\" => \"application_id\",\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t \t\t\t\t\"type\" => \"string\"),\n\t\t\t\t\t\t\t\t \t\t\t\t\t (object) array ( 'name' => 'paydown_amount',\n\t\t\t\t\t\t\t\t \t\t\t\t\t \t\t\t\t \t'type' => 'string'),\n\t\t\t\t\t\t\t\t \t\t\t\t\t),\n\t\t\t\t\t\t\t\t \t\"response\" => (object) array (\"type\" => \"array\")\n\t\t\t\t\t\t\t\t \t);\n\t\t\t\t\t\t\t\t \t\n\t\t$methods[] = (object) array(\"name\" => \"fakeIt\",\n\t\t\t\t\t\t \t\"args\" => array ( (object) array (\t\"name\" => \"application_id\",\n\t\t\t\t\t\t \t\t\t\t\t\t \t\t\t\t\"type\" => \"string\"),\n\t\t\t\t\t\t \t\t\t\t\t),\n\t\t\t\t\t\t \t\"response\" => (object) array (\"type\" => \"array\")\n\t\t\t\t\t\t \t);\n\t\t\t\t\t\t \t\n\t\t$methods[] = (object) array(\"name\" => \"getCSOFeeDescription\",\n\t\t\t\t\t\t \t\"args\" => array ( (object) array (\t\"name\" => \"fee\",\n\t\t\t\t\t\t \t\t\t\t\t\t \t\t\t\t\"type\" => \"string\"),\n\t\t\t\t\t\t \t\t\t\t\t\t(object) array ( \"name\" => \"application_id\",\n\t\t\t\t\t\t \t\t\t\t\t\t \t\t\t\t\"type\" => \"string\"),\n\t\t\t\t\t\t \t\t\t\t\t\t (object) array( \"name\" => \"company_id\",\n\t\t\t\t\t\t \t\t\t\t\t\t \t\t\t\t\"type\" => \"string\"),\n\t\t\t\t\t\t \t\t\t\t\t),\n\t\t\t\t\t\t \t\"response\" => (object) array (\"type\" => \"string\")\n\t\t\t\t\t\t \t);\t\t\t\t \t\t\t\t\t\t\t\t\t \t\n\n\t\t$methods[] = (object) array(\"name\" => \"getCSOFeeAmount\",\n\t\t\t\t\t\t \t\"args\" => array ( (object) array (\t\"name\" => \"fee\",\n\t\t\t\t\t\t \t\t\t\t\t\t \t\t\t\t\"type\" => \"string\"),\n\t\t\t\t\t\t \t\t\t\t\t\t(object) array ( \"name\" => \"application_id\",\n\t\t\t\t\t\t \t\t\t\t\t\t \t\t\t\t\"type\" => \"string\"),\n\t\t\t\t\t\t \t\t\t\t\t),\n\t\t\t\t\t\t \t\"response\" => (object) array (\"type\" => \"string\")\n\t\t\t\t\t\t \t);\t\t\t\t \t\t\t\t\t\t\t\t\t \t\n\t\t\n\t\treturn $methods;\n\t\t\n\t}", "title": "" }, { "docid": "e1a5036f5bb9f4edb366df81d90d1d5f", "score": "0.3933271", "text": "public function getCallView()\n {\n return $this->call_view;\n }", "title": "" }, { "docid": "4cf5a06ddbc5a081fe556f7fc26c9ac5", "score": "0.3926263", "text": "public function setConnectionService($connectionService){ }", "title": "" }, { "docid": "4cf5a06ddbc5a081fe556f7fc26c9ac5", "score": "0.3926263", "text": "public function setConnectionService($connectionService){ }", "title": "" }, { "docid": "117e8148bb57d4d9f37a5cf25d9dc702", "score": "0.39240068", "text": "public function connect () {\r\n\t\t$this ->onDebug ( __METHOD__, 1 );\r\n\t\t$this ->valide_presence_variables ();\r\n\t\tswitch ($this ->getMethode ()) {\r\n\t\t\tcase \"soap\" :\r\n\t\t\t\t$this ->getGestionConnexionUrl () \r\n\t\t\t\t\t->prepare_prepend_url ( $this ->getUrl () . $this ->getWsdl () );\r\n\t\t\t\treturn $this ->connect_soap ();\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"curl\" :\r\n\t\t\t\t$this ->getGestionConnexionUrl () \r\n\t\t\t\t\t->prepare_prepend_url ( $this ->getUrl () );\r\n\t\t\t\treturn $this ->connect_curl ();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault :\r\n\t\t}\r\n\t\treturn $this ->onError ( \"Methode inconnue : \" . $this ->getMethode () );\r\n\t}", "title": "" }, { "docid": "b2022918fa5b0f6ccf4d0da119b383ef", "score": "0.39200768", "text": "public function voicemail($phone)\n\t{\n\t\t$pid = pcntl_fork();\n\t\tif ($pid == -1) {\n \t\t\tdie('could not fork');\n\t\t} else if ($pid) {\n\t\t\t$this->Remote_Asterisk_1();\n\t\t\t\n \t\t// we are the parent\n \t\tpcntl_wait($status); //Protect against Zombie children\n\t\t} else {\n \t\t//child\n\t\t\t$this->Remote_Asterisk_2();\n\t\t\texit();\n\t\t}\t\n\t\t$channel = \"SIP/$phone@192.168.11.149\";\n $context = \"amitest\";\n $priority = 1;\n $callerid = $this->asterisk[2]['option']['host'];\n $exten = 6060;\n $pamiClientOptions = $this->asterisk[2]['option'];\n $pamiClient = new PamiClient($pamiClientOptions);\n //open connect to AMI\n $pamiClient->open();\n\t\t\n //init call\n $originateMsg = new OriginateAction($channel);\n $originateMsg->setContext($context);\n $originateMsg->setExtension($exten);\n $originateMsg->setCallerId($callerid);\n $originateMsg->setAsync('true');\n\t\t//$originateMsg->setTimeout(10000);\n $pamiClient->send($originateMsg);//make call\n\t\t//Hangup call1 and call 2\n\t\t$this->Get_Channel();\n\t\tsleep(10);\n\t\t$this->Hangup_Call($this->asterisk[0]);\n\t\t$this->Hangup_Call($this->asterisk[1]);\n\t\t$pamiClient->close();\n\t\tusleep(5000);\n\t\t$this->Reset_Temp_Data();\n\t\t\n\t}", "title": "" }, { "docid": "4d1417620479948d3c59db3c8011c946", "score": "0.39107716", "text": "public function push($params) {\n try {\n $records = civicrm_api3('account_contact', 'get', [\n 'accounts_needs_update' => 1,\n 'api.contact.get' => 1,\n 'plugin' => $this->_plugin,\n 'connector_id' => $params['connector_id'],\n ]\n );\n\n $errors = [];\n\n //@todo pass limit through from params to get call\n foreach ($records['values'] as $record) {\n try {\n $accountsContactID = !empty($record['accounts_contact_id']) ? $record['accounts_contact_id'] : NULL;\n $accountsContact = $this->mapToAccounts($record['api.contact.get']['values'][0], $accountsContactID);\n if ($accountsContact === FALSE) {\n $result = FALSE;\n $responseErrors = [];\n }\n else {\n $result = $this->getSingleton($params['connector_id'])->Contacts($accountsContact);\n $responseErrors = $this->validateResponse($result);\n }\n if ($result === FALSE) {\n unset($record['accounts_modified_date']);\n }\n elseif ($responseErrors) {\n $record['error_data'] = json_encode($responseErrors);\n }\n else {\n /* When Xero returns an ID that matches an existing account_contact, update it instead. */\n $matching = civicrm_api('account_contact', 'getsingle', [\n 'accounts_contact_id' => $result['Contacts']['Contact']['ContactID'],\n 'plugin' => $this->_plugin,\n 'version' => 3,\n ]\n );\n if (!$matching['is_error']) {\n if (empty($matching['contact_id']) ||\n civicrm_api3('contact', 'getvalue', ['id' => $matching['contact_id'], 'return' => 'contact_is_deleted'])) {\n CRM_Core_Error::debug_log_message(ts('Updating existing contact for %1', [1 => $record['contact_id']]));\n civicrm_api3('account_contact', 'delete', ['id' => $record['id']]);\n $record['do_not_sync'] = 0;\n $record['id'] = $matching['id'];\n }\n elseif ($matching['contact_id'] != $record['contact_id']) {\n throw new CiviCRM_API3_Exception(ts('Attempt to sync Contact %1 to Xero entry for existing Contact %2. ', [\n 1 => $record['contact_id'],\n 2 => $matching['contact_id'],\n ], NULL, $record), 'xero_dup_contact');\n }\n }\n\n $record['error_data'] = 'null';\n if (empty($record['accounts_contact_id'])) {\n $record['accounts_contact_id'] = $result['Contacts']['Contact']['ContactID'];\n }\n $record['accounts_modified_date'] = $result['Contacts']['Contact']['UpdatedDateUTC'];\n $record['accounts_data'] = json_encode($result['Contacts']['Contact']);\n $record['accounts_display_name'] = $result['Contacts']['Contact']['Name'];\n }\n // This will update the last sync date.\n $record['accounts_needs_update'] = 0;\n unset($record['last_sync_date']);\n civicrm_api3('account_contact', 'create', $record);\n }\n catch (CiviCRM_API3_Exception $e) {\n $errors[] = ts('Failed to push ') . $record['contact_id'] . ' (' . $record['accounts_contact_id'] . ' )'\n . ts(' with error ') . $e->getMessage() . print_r($responseErrors, TRUE)\n . ts('Contact Push failed');\n }\n }\n if ($errors) {\n // since we expect this to wind up in the job log we'll print the errors\n throw new CRM_Core_Exception(ts('Not all contacts were saved') . print_r($errors, TRUE), 'incomplete', $errors);\n }\n return TRUE;\n }\n catch (CRM_Civixero_Exception_XeroThrottle $e) {\n throw new CRM_Core_Exception('Contact Push aborted due to throttling by Xero');\n }\n }", "title": "" } ]
4c4868f357cf9218ea3208a2b16a9c2f
Runs the JSCoverage task to create the instrumented JS files and then generates the HTML page in the temp directory and serves it up in the response
[ { "docid": "14af22d89b4c03a1f25a3953f50d882f", "score": "0.0", "text": "public function unitTestCoverageAction(Request $request)\n {\n $projectRoot = $this->getProjectRoot();\n $target = $request->get('target', false);\n\n // Redirect if nothing was sent\n if(!$target || !is_file($projectRoot . $target)) {\n return $this->redirect('beum_solum_test_mocha_select_suite');\n }\n\n $content = file_get_contents($projectRoot . $target);\n return new Response($content);\n }", "title": "" } ]
[ { "docid": "8f112ecbe11e0e0023c75782931aac20", "score": "0.5836547", "text": "function GenerateJSTemplate($filename)\n {\n $jstemplate = \"var page = require('webpage').create();\";\n /*\n If width/height options are specified\n This won't work if height isn't specified\n\n If the height is set to a value that is lower than\n what's required to fit all the content, the entire page\n will be printed (height value will be ignored).\n */\n if (isset($_POST['height']))\n {\n $jstemplate .= \"page.viewportSize = {\" .\n \"width: \". $_POST['width'] .\",\" .\n \"height: \". $_POST['height'] .\n \"};\";\n }\n\n if ($_POST['type'] == 'render-content')\n {\n $jstemplate .= \"page.open('files/\".$filename.\".html', function()\";\n }\n\n if ($_POST['type'] == 'render-url')\n {\n $jstemplate .= \"page.open('\".$_POST['content'].\"', function()\";\n }\n\n $jstemplate .= \"{\" .\n \"page.render('files/\".$filename.\".png');\" .\n \"phantom.exit();\" .\n \"});\";\n\n Save(\"files/\".$filename . \".js\", $jstemplate);\n }", "title": "" }, { "docid": "072ab709e04db356ac43b80630e079c0", "score": "0.5718655", "text": "function run_closure( $files=array() ){\n global $_plugin_url;\n\n global $_closure_path;\n global $_p_head_dir;\n\n $time = file_time_to_id( $files );\n\n /**\n * Create our file name along with the full path to the file.\n */\n $filename = 'scripts-' . $time . '.js';\n $output_file = $_p_head_dir . $filename;\n\n /**\n * If the file does not already exists we run closure,\n * which will handle combining all the JavaScript into\n * one file and place this file in the $output_file\n * path.\n */\n if ( ! file_exists( $output_file ) ) {\n\n $cmd = \"java -jar \".$_closure_path.\" \";\n\n foreach( $files as $file ){\n $cmd .= '--js=' . PLUGIN_ROOT_DIR . $file . ' ';\n }\n\n $cmd .= '--js_output_file=' . $output_file;\n\n exec( $cmd );\n }\n return $_plugin_url .\"p-head/\".$filename;\n}", "title": "" }, { "docid": "5c694231101bc140437917645eb349dd", "score": "0.5556624", "text": "private function compile() {\n\t\tif (!is_dir(dirname($this->getCompiledFilename()))) {\n\t\t\tmkdir(dirname($this->getCompiledFilename()), 0644, true);\n\t\t}\n\t\tfile_put_contents($this->getCompiledFilename(), self::jade()->render($this->file_name));\n\t}", "title": "" }, { "docid": "e98c9cff0a5d1b0f37bac8e78bd4a0fd", "score": "0.55446047", "text": "public function run() {\n\t\t$this->registerAssets();\n\t\t$this->jsOptions();\n\t\t$this->renderHtml();\n\t}", "title": "" }, { "docid": "67dc070d0548661c1a51d6ab6a015445", "score": "0.55188686", "text": "public function GenerateJS(){\n \t}", "title": "" }, { "docid": "42252a4e5e5cd98c3f34b03958c10a32", "score": "0.5400402", "text": "public function actionRender(): void\n\t{\n\t\t/**\n\t\t * Set Webpack generated HTML as output.\n\t\t */\n\t\t$this->sendResponse(new TextResponse(Nette\\Utils\\FileSystem::read(__DIR__ . '/../../../www/build.html')));\n\t}", "title": "" }, { "docid": "1f1631c57b5f67566b4e2574202fd8b1", "score": "0.53384495", "text": "public function setupTestFiles() {\n\t\t$css = '\n\t\t.example-urla {\n\t\t\tcolor: black;\n\t\t\tbackground: transparent url(\"/img/rscfiletest.png\") no-repeat center center;\n\t\t}\n\t\t.example-background-image {\n\t\t\tbackground-image: url(\"/img/rscfiletest.png\");\n\t\t}\n\t\t.example-background-a {\n\t\t\tbackground-image: url(\\'/img/rscfiletest-a.png\\');\n\t\t}\n\t\t.example-background-b {\n\t\t\tbackground-image: url(\"/img/rscfiletest-b.png\");\n\t\t}\n\t\t.example-background-c {\n\t\t\tbackground-image: url(/img/rscfiletest-c.png);\n\t\t}\n\t\t.example-background-relative {\n\t\t\tbackground-image: url(\"../img/rscfiletest-relative.png\");\n\t\t}\n\t\t.example-background-missing {\n\t\t\tbackground-image: url(\"/img/rscfiletest-missing-file.png\");\n\t\t}\n\t\t';\n\t\t$this->testfile_css = WWW_ROOT . 'css' . DS . 'rscfiletest.css';\n\t\tfile_put_contents($this->testfile_css, $css);\n\t\t$this->testfile_css_hash = md5(file_get_contents($this->testfile_css));\n\n\t\t$js = '\n\t\tblah = \"blah blah\";\n\t\tvar stuff = function() { alert(\\'yo\\'); };\n\t\tjunk = ' . rand() . time() . ';\n\t\t';\n\t\t$this->testfile_js = WWW_ROOT . 'js' . DS . 'rscfiletest.js';\n\t\tfile_put_contents($this->testfile_js, $js);\n\t\t$this->testfile_js_hash = md5(file_get_contents($this->testfile_js));\n\n\t\t$this->testfile_img = WWW_ROOT . 'img' . DS . 'rscfiletest.png';\n\t\t$testfile_img_content = base64_decode($this->testfile_img_content);\n\t\tfile_put_contents($this->testfile_img, $testfile_img_content);\n\t\tfile_put_contents(str_replace('.png', '-a.png', $this->testfile_img), $testfile_img_content);\n\t\tfile_put_contents(str_replace('.png', '-b.png', $this->testfile_img), $testfile_img_content);\n\t\tfile_put_contents(str_replace('.png', '-c.png', $this->testfile_img), $testfile_img_content);\n\t\tfile_put_contents(str_replace('.png', '-relative.png', $this->testfile_img), $testfile_img_content);\n\t}", "title": "" }, { "docid": "94e1dbf5bfd8dcd13c1f162a935a741c", "score": "0.53194493", "text": "public function testRunSimpleScriptFile()\n\t{\n\t\t// Write a script to disk\n\t\t$tmp = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid() . '.js';\n\t\t$code = 'console.log(\"test\")';\n\t\tfile_put_contents( $tmp, $code );\n\n\t\ttry\n\t\t{\n\t\t\t$process = new NodeProcess( $tmp );\n\n\t\t\t$process->setAssignedPort( 1234 );\n\t\t\t$process->run();\n\n\t\t\t$this->assertContains( 'test', $process->getOutput() );\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tunlink( $tmp );\n\t\t}\n\t}", "title": "" }, { "docid": "8ea81b4ee18a324e8ff74dc8231965a6", "score": "0.53152436", "text": "function RenderContent()\n {\n //Generate filename\n $filename = md5(uniqid(rand(), true));\n\n //Save the content file //make sure to do this before generating template\n Save(\"files/\" . $filename . \".html\", $_POST['content']);\n\n //Generate JS Template\n GenerateJSTemplate($filename);\n\n //Execute PhantomJS Operation\n exec('phantomjs files/' . $filename . \".js\");\n\n //Once picture is saved, return URL\n $microserviceURL = (isset($_SERVER['HTTPS']) ? \"https\" : \"http\") . \"://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]\";\n echo $microserviceURL . \"files/\" . $filename . \".png\";\n }", "title": "" }, { "docid": "dbfc96611b9ae5f79cab27071eb9ccfc", "score": "0.5314204", "text": "public function run()\n {\n if (YII_ENV_PROD) {\n $this->view->registerJs(\"\n var _paq = _paq || [];\n _paq.push(['trackPageView']);\n _paq.push(['enableLinkTracking']);\n (function() {\n var u=\\\"\".$this->getEnsuredHostName().\"/\\\";\n _paq.push(['setTrackerUrl', u+'piwik.php']);\n _paq.push(['setSiteId', '\".$this->siteId.\"']);\n var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];\n g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);\n })();\n\t\", View::POS_HEAD);\n \n return $this->render('trackingcode', [\n 'hostName' => $this->getEnsuredHostName(),\n 'siteId' => $this->siteId,\n ]);\n }\n }", "title": "" }, { "docid": "4a2b082d68cf9286a6f1cff4453a845c", "score": "0.5284617", "text": "protected function makeViews()\n {\n if($this->env == 'dev'){\n return false;\n }\n\n $list = $this->buffer->getViewFiles();\n\n foreach ($list as $id => $path) {\n //$data = json_encode(array(\"data\"=>file_get_contents($path[BufferCache::L_PATH])));\n // $this->js .= \"\\n\\$_view_html.setTemplate(\\\"{$id}\\\", {$data}.data);\\n\";\n }\n }", "title": "" }, { "docid": "f958a85115fdf20d843604201d4a4356", "score": "0.5274684", "text": "function RenderURL()\n {\n //Generate filename\n $filename = md5(uniqid(rand(), true));\n\n //Generate JS Template\n GenerateJSTemplate($filename);\n\n //Execute PhantomJS Operation\n exec('phantomjs files/' . $filename . \".js\");\n\n //Once picture is saved, return URL\n $microserviceURL = (isset($_SERVER['HTTPS']) ? \"https\" : \"http\") .\n \"://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]\";\n echo $microserviceURL . \"files/\" . $filename . \".png\";\n }", "title": "" }, { "docid": "9c7b3df3c12c220363542ad982daf011", "score": "0.5269979", "text": "protected function serve()\n {\n include __DIR__ . '/../vendor/autoload.php';\n $timer = new Timer();\n $config = Grav::instance()['config']->get('plugins.static-generator');\n $locator = Grav::instance()['locator'];\n $route = $this->input->getArgument('route');\n $target = $this->input->getArgument('target');\n if ($target === null) {\n $target = $config['index'];\n }\n $basename = $this->input->getOption('basename');\n $content = $this->input->getOption('content');\n $echo = $this->input->getOption('echo');\n $wrap = $this->input->getOption('wrap');\n $force = $this->input->getOption('force');\n $maxLength = $config['content_max_length'];\n $this->output->writeln('<info>Testing data index</info>');\n try {\n $Data = new TestData($content, $maxLength);\n $Data->setup($route, $this->output);\n $this->output->writeln('<info>Count: ' . $Data->count . '</info>');\n $Data->index($route);\n } catch (\\Exception $e) {\n throw new \\Exception($e);\n }\n }", "title": "" }, { "docid": "9d5c6e17e9fbc5a4e6549cc0786b4bab", "score": "0.52486825", "text": "public function processRequest() {\n // Find a unique filename\n $type = '';\n if ($this->mode == 'generate') {\n $path_parts = parse_url($this->url);\n $basedir = $this->urlPart(preg_replace('%^.+?://%', '', $path_parts['host']));\n $basedir = $basedir . '/' . date('Y-m-d', end($this->date_data));\n if (!file_exists(Application::file($basedir))) {\n mkdir(Application::file($basedir), 0775, TRUE);\n }\n $base = $basedir . '/' . $this->urlPart($this->title);\n \n $gen_filename = $this->uniqueName($base, 'pdf'); \n $type = 'pdf';\n } else {\n $gen_filename = $this->uniqueName(Application::$conf['preview_folder'] . '/' . substr(md5(rand()), 0, 5), 'png');\n $type = 'png';\n }\n $gen_url = Application::$conf['base_url'] . '/' . $gen_filename;\n \n // Prepare post data\n $post = $this->post;\n if ($post) {\n $post .= '&';\n }\n $post .= 'archive_url=' . urlencode($gen_url);\n // Invoke the script. PhantomJS sometimes times out for no reason\n // when there are many dependents - see https://github.com/ariya/phantomjs/issues/10652\n // So when we fail on timeout, we try twice.\n $attempts = 2;\n do {\n $status = Application::exec(Application::$conf['phantomjs_path'], array(\n 0 => Application::$conf['generate_script'],\n '-url' => $this->url,\n '-dest' => Application::file($gen_filename),\n '-post' => $post\n ));\n $attempts--;\n } while ($status == Application::EXEC_TIMEOUT && $attempts > 0);\n if ($status > 0 && !file_exists($gen_filename)) {\n return new PageOutput(array(\n 'status' => 0,\n 'error' => 'There was an error generating the PDF document, please try again.'\n ));\n }\n $generated = array(\n $type => $gen_url\n );\n if ($this->mode == 'generate') {\n // Attempts to set the meta data\n Application::exec(Application::$conf['exiftool'], array(\n 0 => '-overwrite_original',\n '-Title=' => $this->title,\n '-Author=' => $this->author,\n 1 => Application::file($gen_filename)\n ));\n // Create bibtex\n $bibtex_filename = $this->uniqueName($base, 'bib');\n $bibtex_url = Application::$conf['base_url'] . '/' . $bibtex_filename;\n file_put_contents($bibtex_filename, $this->bibTex($gen_url));\n $generated['bibtex'] = $bibtex_url;\n // Create Endnote\n $endnote_filename = $this->uniqueName($base, 'xml');\n $endnote_url = Application::$conf['base_url'] . '/' . $endnote_filename;\n file_put_contents($endnote_filename, $this->endnote($gen_url));\n $generated['endnote'] = $endnote_url;\n // Create RIS \n $ris_filename = $this->uniqueName($base, 'ris');\n $ris_url = Application::$conf['base_url'] . '/' . $ris_filename;\n file_put_contents($ris_filename, $this->ris($gen_url));\n $generated['ris'] = $ris_url;\n // Save information about this citation in the database\n $citation = new citationModel($this->url, $gen_url, $this->title, $this->site, $this->author, $this->date, date('Y', end($this->date_data)), $generated);\n $citation->save();\n }\n $generated['status'] = 1;\n return new PageOutput($generated);\n }", "title": "" }, { "docid": "c3bc55c9a2ac3b377009dd0ec14ca527", "score": "0.5236601", "text": "public function index()\n {\n $data = $this->getData();\n \n $file = file_get_contents('../js/main.js');\n \n $matches = $this->getMatches($file);\n \n if($matches) {\n for($i = 0; $i < count($matches[0]); $i++) {\n $file = str_replace($matches[0][$i], $data[$matches[1][$i]], $file);\n }\n $fileName=\"../storage/app/userscripts/sample.js\";\n file_put_contents($fileName, $file);\n return;\n } \n throw new Exception('No matches retrieved');\n }", "title": "" }, { "docid": "f3f26b8335b2fd52ab4beb9115756cb8", "score": "0.5211319", "text": "public function performAction() {\n\t\t$this->view->set(array(\n\t\t\t'' => '',\n\t\t\t'' => '',\n\t\t));\n\n\t\t$output = $this->view->render('index/script');\n\t\t$this->responce\n\t\t\t->addHeader('Content-Type', 'application/javascript')\n\t\t\t->appendBody($output);\n\n\t}", "title": "" }, { "docid": "c22d30dd889b6e5edaa58de30ead38e5", "score": "0.5203497", "text": "private function createJSi18nFile() {\r\n\t\t$strOutputPath = \"{$this->strSelfDir}/{$this->strJSi18nFile}\";\r\n\t\t$strSrcPath = \"{$this->strSelfDir}/JSWikiGantt.i18n.php\";\r\n\t\t\r\n\t\t// check if we need to change anything\r\n\t\t$isChanged = $this->isSrcChanged( $strSrcPath, $strOutputPath );\r\n\t\t\r\n\t\t// generate & create file\r\n\t\tif ( $isChanged ) {\r\n\t\t\t$hFile = fopen ( $strOutputPath, 'w' );\r\n\t\t\tfwrite ( $hFile, $this->getJSi18nMsgs() );\r\n\t\t\tfclose ( $hFile );\r\n\t\t}\r\n\t\t\r\n\t\treturn $this->getCSSJSLink( $this->strJSi18nFile );\r\n\t}", "title": "" }, { "docid": "7e39d63e330dab549ede16b7ee5ae294", "score": "0.51988345", "text": "public function createAsset()\n {\n $css = BASE_PATH.\"/public/css/\";\n $js = BASE_PATH.\"/public/js/\";\n $source = realpath(__DIR__ . '/../assets/');\n $css_file = file_get_contents($source.\"/jquery.bootgrid.css\");\n $js_file = file_get_contents($source.\"/jquery.bootgrid.js\");\n $fajs_file = file_get_contents($source.\"/jquery.bootgrid.fa.js\");\n $fc = fopen($css.\"jquery.bootgrid.css\", \"w\");\n fwrite($fc, $css_file);\n fclose($fc);\n $fj = fopen($js.\"jquery.bootgrid.js\", \"w\");\n fwrite($fj, $js_file);\n fclose($fj);\n $fa = fopen($js.\"jquery.bootgrid.fa.js\", \"w\");\n fwrite($fa, $fajs_file);\n fclose($fa);\n }", "title": "" }, { "docid": "5a0dcd71ab009bd4b1341188ce10f8db", "score": "0.5182041", "text": "public function createMidasCallBackScripts($workDir, $email, $baseURL, $apiKey, $dagName, $taskId, $callBackParams)\n {\n \n // CLEAN THIS UP, method maybe \n $templateFile = BASE_PATH.'/modules/batchmake/templates/daguploader.php';\n $contents = file_get_contents($templateFile);\n $replacedContents = str_replace('$BASE_PATH$',BASE_PATH,$contents);\n $replacedContents2 = str_replace('$WORK_DIR$', $workDir, $replacedContents);\n $replacedContents3 = str_replace('$EMAIL$', $email, $replacedContents2);\n $replacedContents4 = str_replace('$API_KEY$', $apiKey, $replacedContents3);\n $replacedContents5 = str_replace('$DAG_NAME$', $dagName, $replacedContents4);\n $replacedContents6 = str_replace('$TASK_ID$', $taskId, $replacedContents5);\n $outPath = $workDir .'/daguploader.php';\n file_put_contents($outPath,$replacedContents6); \n \n \n \n // still need to do postscript one\n // for post script one, add in log times\n // \n // \n // for post script one, add in scalar values\n // .. finished boolean\n \n // really want to be able to pass in a function that can set script, vars\n // to replace, replacement vals, and call back functions (web api)\n $scalarValueName = $callBackParams['SCALAR_VALUE_NAME'];\n $webApiMethod = $callBackParams['WEB_API_METHOD'];\n $webApiParams = $callBackParams['WEB_API_PARAMS'];\n $webApiParamStr = 'array(';\n foreach($webApiParams as $key=>$value)\n {\n $webApiParamStr .= \"'\".$key . \"'=>\" . $value . ',';\n }\n $webApiParamStr .= ')';\n\n \n $templateFile = BASE_PATH.'/modules/batchmake/templates/scalarvaluepostscript.php';\n $contents = file_get_contents($templateFile);\n $replacedContents = str_replace('$BASE_PATH$',BASE_PATH,$contents);\n $replacedContents2 = str_replace('$WORK_DIR$', $workDir, $replacedContents);\n $replacedContents3 = str_replace('$EMAIL$', $email, $replacedContents2);\n $replacedContents4 = str_replace('$API_KEY$', $apiKey, $replacedContents3);\n $replacedContents5 = str_replace('$TASK_ID$', $taskId, $replacedContents4);\n $replacedContents6 = str_replace('$SCALAR_VALUE_NAME$', $scalarValueName, $replacedContents5);\n $replacedContents7 = str_replace('$WEB_API_METHOD$', $webApiMethod, $replacedContents6);\n $replacedContents8 = str_replace('$WEB_API_PARAMS$', $webApiParamStr, $replacedContents7);\n \n \n $outPath = $workDir .'/scalarvaluepostscript.php';\n file_put_contents($outPath,$replacedContents8); \n \n \n \n \n \n \n \n/* \n * Set a single scalar result value\n * @param dashboard_id the id of the target dashboard\n * @param folder_id the id of the target result folder\n * @param item_id the id of the result item\n * @param value the value of the result being set\n * @return the id of the created scalar result\n\n \n $callBackParams should be:\n params: name=>value,\n scalarValueName,\n webAPICall\n \n \n extra_params, scalarValueVariableName, web.api.call\n \n param vals, web ApiCall\n \n \n \n dashboard_id, $DASHBOARD_ID$\n folder_id, $FOLDER_ID$\n item_id, $ITEM_ID$\n value, $SCALAR_VALUE$???\n \n \n \n web api call\n \n */ \n }", "title": "" }, { "docid": "96c2b6ead03755bff705a39447b17e32", "score": "0.51786494", "text": "function pack_me($file)\n{\n global $USE_CLOSURE_COMPILER;\n\n if($USE_CLOSURE_COMPILER && strpos($file, \"jquery\") === false && strpos($file, \"soundmanager\") === false) {\n $tmp = \"/tmp/yui\";\n system(\"java -jar closure-compiler/compiler.jar --js \\\"$file\\\" --js_output_file \\\"$tmp\\\"\");\n return file_get_contents($tmp);\n }\n else\n return JSMin::minify(file_get_contents($file));\n}", "title": "" }, { "docid": "9079e87564b4eb7d06924b80400986c8", "score": "0.5161573", "text": "public function generate()\n {\n $templateData = get_template('api.tests.api_test', 'app-generator');\n $templateData = fill_template($this->commandData->dynamicVars, $templateData);\n\n FileUtil::createFile($this->path, $this->fileName, $templateData);\n\n $this->commandData->commandObj->line(\"- API Test created: <info>{$this->fileName}</info>\");\n }", "title": "" }, { "docid": "54718c04f299a8efdd69df9e4c6ca544", "score": "0.5148233", "text": "public static function showScripts($compress_js = true, $page = '')\r\n {\r\n //\r\n $scripts_pos = self::__getStatic('scripts_pos');\r\n $scripts = self::__getStatic('scripts');\r\n $scripts = \\array_values(array_sort($scripts, function ($v, $k) use ($scripts_pos) {\r\n return $scripts_pos[$k];\r\n }));\r\n $scripts = \\array_unique($scripts);\r\n\r\n //$scripts = self::viewNamespaceToUrl($scripts);\r\n $scripts=collect($scripts)->map(function($item){\r\n return self::asset($item);\r\n })->all();\r\n //ddd($scripts);\r\n\r\n\r\n /*\r\n $scripts=collect($scripts)->map(function($item){\r\n return self::asset($item);\r\n })->all();\r\n */\r\n //ddd($scripts);\r\n\r\n if ($compress_js) {\r\n $scripts_list = \\implode(',', $scripts);\r\n $scripts_md5 = \\md5($scripts_list);\r\n\r\n $name = '/js/script_'.$scripts_md5.'.js';\r\n $path = public_path($name);\r\n $force = 1;\r\n if (!\\file_exists($path) || $force) {\r\n //$cache = new FilesystemCache($_SERVER['DOCUMENT_ROOT'] . '/tmp'); //cartella tmp non esiste piu'\r\n $cache = new FilesystemCache(base_path('../cache'));\r\n $collection = new AssetCollection();\r\n foreach ($scripts as $filePath) {\r\n $filePath = self::getRealFile($filePath);\r\n if ('http' == \\mb_substr($filePath, 0, \\mb_strlen('http'))) {\r\n $filename = \\md5($filePath).'.css';\r\n if (!\\Storage::disk('cache')->exists($filename)) {\r\n \\Storage::disk('cache')->put($filename, \\fopen($filePath, 'r'));\r\n }\r\n $asset = new FileAsset(\\Storage::disk('cache')->path($filename));\r\n } else {\r\n $asset = new FileAsset($filePath);\r\n }\r\n if (\\class_exists('JsMinFilter')) {\r\n $asset->ensureFilter(new JsMinFilter());\r\n }\r\n\r\n $cachedAsset = new AssetCache($asset, $cache);\r\n $collection->add($cachedAsset);\r\n }//end foreach\r\n\r\n \\File::put($path, $collection->dump());\r\n }//end if\r\n $scripts = [$name];\r\n } else {\r\n foreach ($scripts as $k => $filePath) {\r\n $scripts[$k] = self::getFileUrl($filePath);\r\n }//end foreach\r\n }//end if\r\n foreach ($scripts as $k => $v) {\r\n $scripts[$k] = self::getFileUrl($v);\r\n }//end foreach\r\n $scripts = \\array_unique($scripts);\r\n\r\n return view('extend::services.script')->with('scripts', $scripts);\r\n }", "title": "" }, { "docid": "74c7b4a109351b652b71ffa5d7324595", "score": "0.5147688", "text": "public function generate() {\n $this->setTemplateDir($this->params['template_dir']);\n $this->result = $this->twig->render($this->params['template_file'], $this->params['params']);\n }", "title": "" }, { "docid": "ac51ba3c0fd0d3a0cfb2418d9a12802b", "score": "0.51427823", "text": "public function developStart()\n {\n /*$this->taskGitStack()\n ->checkout('development')\n ->pull()\n ->run();*/\n\n $this->taskServer()->dir('public')\n ->background()\n ->run();\n\n $this->taskWatch()\n ->monitor('composer.json', function () {\n $this->taskComposerUpdate()->run();\n })\n ->monitor('assets/stylesheets/scss', function () {\n $this->assetsCompileScss();\n })\n ->monitor('assets/scripts', function () {\n $this->assetsCompileScripts();\n })\n ->run();\n }", "title": "" }, { "docid": "2a79b3d9ca1b0d77902dbcbbb83e7d0c", "score": "0.5136789", "text": "public function run(): void\n {\n $emitter = EventFacade::emitter();\n\n $emitter->testPreparationStarted(\n $this->valueObjectForEvents(),\n );\n\n try {\n $sections = $this->parse();\n } catch (Exception $e) {\n $emitter->testPrepared($this->valueObjectForEvents());\n $emitter->testErrored($this->valueObjectForEvents(), ThrowableBuilder::from($e));\n $emitter->testFinished($this->valueObjectForEvents(), 0);\n\n return;\n }\n\n $code = $this->render($sections['FILE']);\n $xfail = false;\n $settings = $this->parseIniSection($this->settings(CodeCoverage::instance()->isActive()));\n\n $emitter->testPrepared($this->valueObjectForEvents());\n\n if (isset($sections['INI'])) {\n $settings = $this->parseIniSection($sections['INI'], $settings);\n }\n\n if (isset($sections['ENV'])) {\n $env = $this->parseEnvSection($sections['ENV']);\n $this->phpUtil->setEnv($env);\n }\n\n $this->phpUtil->setUseStderrRedirection(true);\n\n if (ConfigurationRegistry::get()->enforceTimeLimit()) {\n $this->phpUtil->setTimeout(ConfigurationRegistry::get()->timeoutForLargeTests());\n }\n\n if ($this->shouldTestBeSkipped($sections, $settings)) {\n return;\n }\n\n if (isset($sections['XFAIL'])) {\n $xfail = trim($sections['XFAIL']);\n }\n\n if (isset($sections['STDIN'])) {\n $this->phpUtil->setStdin($sections['STDIN']);\n }\n\n if (isset($sections['ARGS'])) {\n $this->phpUtil->setArgs($sections['ARGS']);\n }\n\n if (CodeCoverage::instance()->isActive()) {\n $codeCoverageCacheDirectory = null;\n\n if (CodeCoverage::instance()->codeCoverage()->cachesStaticAnalysis()) {\n $codeCoverageCacheDirectory = CodeCoverage::instance()->codeCoverage()->cacheDirectory();\n }\n\n $this->renderForCoverage(\n $code,\n CodeCoverage::instance()->codeCoverage()->collectsBranchAndPathCoverage(),\n $codeCoverageCacheDirectory,\n );\n }\n\n $jobResult = $this->phpUtil->runJob($code, $this->stringifyIni($settings));\n $this->output = $jobResult['stdout'] ?? '';\n\n if (CodeCoverage::instance()->isActive() && ($coverage = $this->cleanupForCoverage())) {\n CodeCoverage::instance()->codeCoverage()->start($this->filename, TestSize::large());\n\n CodeCoverage::instance()->codeCoverage()->append(\n $coverage,\n $this->filename,\n true,\n TestStatus::unknown(),\n [],\n [],\n );\n }\n\n try {\n $this->assertPhptExpectation($sections, $this->output);\n } catch (AssertionFailedError $e) {\n $failure = $e;\n\n if ($xfail !== false) {\n $failure = new IncompleteTestError($xfail, 0, $e);\n } elseif ($e instanceof ExpectationFailedException) {\n $comparisonFailure = $e->getComparisonFailure();\n\n if ($comparisonFailure) {\n $diff = $comparisonFailure->getDiff();\n } else {\n $diff = $e->getMessage();\n }\n\n $hint = $this->getLocationHintFromDiff($diff, $sections);\n $trace = array_merge($hint, debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS));\n $failure = new PhptAssertionFailedError(\n $e->getMessage(),\n 0,\n $trace[0]['file'],\n $trace[0]['line'],\n $trace,\n $comparisonFailure ? $diff : '',\n );\n }\n\n if ($failure instanceof IncompleteTestError) {\n $emitter->testMarkedAsIncomplete($this->valueObjectForEvents(), ThrowableBuilder::from($failure));\n } else {\n $emitter->testFailed($this->valueObjectForEvents(), ThrowableBuilder::from($failure), null);\n }\n } catch (Throwable $t) {\n $emitter->testErrored($this->valueObjectForEvents(), ThrowableBuilder::from($t));\n }\n\n $this->runClean($sections, CodeCoverage::instance()->isActive());\n\n $emitter->testFinished($this->valueObjectForEvents(), 1);\n }", "title": "" }, { "docid": "674713159469ab37de7ae3bf31d942dd", "score": "0.5127022", "text": "private function loadJs() {\n\t\tglobal $wgJsMimeType, $wgUser, $wgDevelEnvironment, $wgAllInOne;\n\t\twfProfileIn(__METHOD__);\n\n\t\t$this->jsAtBottom = self::JsAtBottom();\n\n\t\t// load AbTesting files, anything that's so mandatory that we're willing to make a blocking request to load it.\n\t\t$this->globalBlockingScripts = '';\n\t\t$jsReferences = array();\n\n\t\t$jsAssetGroups = array( 'oasis_blocking' );\n\t\tHooks::run('OasisSkinAssetGroupsBlocking', array(&$jsAssetGroups));\n\t\t$blockingScripts = $this->assetsManager->getURL($jsAssetGroups);\n\n\t\tforeach($blockingScripts as $blockingFile) {\n\t\t\t$this->globalBlockingScripts .= \"<script type=\\\"$wgJsMimeType\\\" src=\\\"$blockingFile\\\"></script>\";\n\t\t}\n\n\t\t// move JS files added to OutputPage to list of files to be loaded\n\t\t$scripts = RequestContext::getMain()->getSkin()->getScripts();\n\n\t\t\tforeach ( $scripts as $s ) {\n\t\t\t//add inline scripts to jsFiles and move non-inline to the queue\n\t\t\tif ( !empty( $s['url'] ) ) {\n\t\t\t\t// FIXME: quick hack to load MW core JavaScript at the top of the page - really, please fix me!\n\t\t\t\t// @author macbre\n\t\t\t\tif (strpos($s['url'], 'load.php') !== false) {\n\t\t\t\t\t$this->globalVariablesScript = $s['tag'] . $this->globalVariablesScript;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$url = $s['url'];\n\t\t\t\t\tif ( $wgAllInOne ) {\n\t\t\t\t\t\t$url = $this->minifySingleAsset( $url );\n\t\t\t\t\t}\n\t\t\t\t\t$jsReferences[] = $url;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->jsFiles .= $s['tag'];\n\t\t\t}\n\t\t}\n\t\t$isLoggedIn = $wgUser->isLoggedIn();\n\n\t\t$assetGroups = ['oasis_shared_core_js', 'oasis_shared_js'];\n\n\t\tif ( $isLoggedIn ) {\n\t\t\t$assetGroups[] = 'oasis_user_js';\n\t\t} else {\n\t\t\t$assetGroups[] = 'oasis_anon_js';\n\t\t}\n\n\n\t\t$jsLoader = '';\n\n\t\tHooks::run('OasisSkinAssetGroups', array(&$assetGroups));\n\n\t\t// add groups queued via OasisController::addSkinAssetGroup\n\t\t$assetGroups = array_merge($assetGroups, self::$skinAssetGroups);\n\n\t\t$assets = $this->assetsManager->getURL( $assetGroups ) ;\n\n\t\t// jQueryless version - appears only to be used by the ad-experiment at the moment.\n\t\t// disabled - not needed atm (and skipped in wsl-version anyway)\n\t\t// $assets[] = $this->assetsManager->getURL( $isLoggedIn ? 'oasis_nojquery_shared_js_user' : 'oasis_nojquery_shared_js_anon' );\n\n\t\t// add $jsReferences\n\t\t$assets = array_merge($assets, $jsReferences);\n\n\t\t// generate direct script tags\n\t\tforeach ($assets as $url) {\n\t\t\t$url = htmlspecialchars( $url );\n\t\t\t$jsLoader .= \"<script src=\\\"{$url}\\\"></script>\\n\";\n\t\t}\n\n\t\t$tpl = $this->app->getSkinTemplateObj();\n\n\t\t// $tpl->set( 'headscripts', $out->getHeadScripts() . $out->getHeadItems() );\n\t\t// FIXME: we need to remove head items - i.e. <meta> tags\n\t\t$remove = $this->wg->out->getHeadItemsArray();\n\t\t$remove[ ] = $this->topScripts;\n\t\tarray_walk( $remove, 'trim' );\n\t\t$headScripts = str_replace( $remove, '', $tpl->data[ 'headscripts' ] );\n\n\t\t$this->jsFiles = $headScripts . $jsLoader . $this->jsFiles;\n\n\t\t// experiment: squeeze calls to mw.loader.load() to make fewer HTTP requests\n\t\tif ($this->jsAtBottom) {\n\t\t\t$jsFiles = $this->jsFiles;\n\t\t\t$bottomScripts = $this->bottomScripts;\n\t\t\t$this->squeezeMediawikiLoad($jsFiles,$bottomScripts);\n\t\t\t$this->bottomScripts = $bottomScripts;\n\t\t\t$this->jsFiles = $jsFiles;\n\t\t}\n\n\t\twfProfileOut(__METHOD__);\n\t}", "title": "" }, { "docid": "5b52a76d00e0644b5fd6df180285b8a7", "score": "0.5113465", "text": "function save_coverage()\n{\n global $codeCoverage;\n $codeCoverage->stop();\n (new \\SebastianBergmann\\CodeCoverage\\Report\\PHP())->process($codeCoverage, '/var/www/html/xdebug_request_output/' . bin2hex(random_bytes(16)). '.cov');\n}", "title": "" }, { "docid": "85a0b6e52fa71a6dae62db49fdbccd44", "score": "0.51007396", "text": "protected function compile()\n\t{\n\t\t$beginn = microtime(true);\n\n\t\tif($this->includeCache)\n\t\t{\n\t\t\t// Cache ist eingeschaltet, dann Symfony-Cache aktivieren\n\t\t\t$cache = new FilesystemAdapter();\n\n\t\t\t$content = $cache->get('domgrabber_'.$this->domgrabber_url, function(ItemInterface $item)\n\t\t\t{\n\t\t\t\t$item->expiresAfter($this->cache);\n\t\t\t\t$value = self::getURL();\n\n\t\t\t\treturn $value;\n\t\t\t});\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Cache ist nicht eingeschaltet\n\t\t\t$content = self::getURL();\n\t\t}\n\n\t\t$dauer = microtime(true) - $beginn;\n\t\t//echo \"Verarbeitung des Skripts: $dauer Sek.\";\n\n\t\t// Template ausgeben\n\t\t$this->Template->skriptdauer = $dauer;\n\t\t$this->Template->content = $content;\n\t\t$this->Template->css = $this->domgrabber_css;\n\n\t\treturn;\n\t}", "title": "" }, { "docid": "49ef5602dbe5ed4554650fd6460d80cf", "score": "0.5088355", "text": "final public function process()\n {\n\n $this->app = $this->application->directory;\n\n if ( !$this->group_manual ) {\n $locationGroup = $this->_group;\n [ $this->location, $this->group ] = explode( ':', $locationGroup );\n }\n else {\n $this->location = $this->group_manual_location;\n $this->group = $this->group_manual_folder;\n }\n\n $content = $this->content();\n $file = $this->filename;\n\n $dir = \\IPS\\ROOT_PATH . '/applications/' . $this->app . '/dev/';\n if ( $this->type === 'template' ) {\n $dir .= 'html/';\n }\n else {\n $dir .= 'js/';\n }\n\n $dir .= $this->location . '/' . $this->group;\n\n if ( $this->type === 'template' ) {\n $this->proxy = \\true;\n }\n $this->_writeFile( $file, $content, $dir, \\false );\n }", "title": "" }, { "docid": "e42a0752a0c25c14864457e6c989de19", "score": "0.5073651", "text": "public function index() {\n $this->loadSRC($this->_registry->request, array(\n 'js/sizzle.js',\n 'js/creasetoph_env.js',\n\t\t\t'js/creasetoph_base.js',\n 'js/creasetoph_main.js'\n\t\t),'js');\n $this->Template->render('home','Testing','../application/view/templates/testing_template.php');\n }", "title": "" }, { "docid": "d935ffaf55c871ad01c326624af0007f", "score": "0.5069141", "text": "function run_yui_compressor( $files=array() ){\n global $_yui_compressor_path;\n global $_p_head_dir;\n\n global $_plugin_url;\n\n $time = file_time_to_id( $files );\n\n $filename = 'styles-' . $time . '.css';\n $output_file = $_p_head_dir . $filename;\n\n /**\n * YUI compressor is lame in that it does not concate files\n * we need to do it manually, sorry.\n */\n if ( ! file_exists( $output_file ) ) {\n foreach( $files as $file ){\n $cmd = \"java -jar \".$_yui_compressor_path.\" \". PLUGIN_ROOT_DIR . $file . ' >> ' . $output_file;\n exec( $cmd );\n }\n }\n\n return $_plugin_url .\"p-head/\".$filename;\n}", "title": "" }, { "docid": "5b0d8d4424842b9a4bb7276a68724d78", "score": "0.50621235", "text": "public function start()\n {\n $writer = $this->getWriter();\n\n $writer->write('<html><head><meta charset=\"utf-8\"><title>PHP代码报告</title></head><body>');\n $writer->write(PHP_EOL);\n $writer->write('<center><h1>'.$this->folder.'项目分析报告</h1></center>');\n $writer->write(PHP_EOL);\n $writer->write('<table border=\"1\" align=\"center\" cellspacing=\"0\" cellpadding=\"3\">' );\n $writer->write('<tr>');\n $writer->write('<th>序号</th><th>文件名</th><th>代码位置</th><th>所有者</th><th>问题描述</th>');\n $writer->write('</tr>');\n $writer->write(PHP_EOL);\n }", "title": "" }, { "docid": "16b50b7474bdb8a6d1e8684f34a9e6cc", "score": "0.5050926", "text": "protected function startWatch()\n {\n $this->taskWatch()\n ->monitor($this->config['sources']['css'], function() {\n $this->compileScss(true);\n $this->taskLiveReload()->sendReloadMessage();\n })\n ->monitor($this->config['sources']['js'], function() {\n $this->compileJs();\n $this->taskLiveReload()->sendReloadMessage();\n })\n ->monitor($this->config['sources']['directories'], function() {\n $this->copyDirectories();\n $this->taskLiveReload()->sendReloadMessage();\n })\n ->run();\n }", "title": "" }, { "docid": "5e4ebc78d9607cd489702cb7a5cea7df", "score": "0.5047548", "text": "public function process()\n {\n ob_start();\n if ($this['config']->get('system.cache.gzip')) {\n ob_start('ob_gzhandler');\n }\n\n /** @var Debugger $debugger */\n $debugger = $this['debugger'];\n\n // Initialize configuration.\n $debugger->startTimer('_config', 'Configuration');\n $this['config']->init();\n $this['uri']->init();\n $this['errors']->resetHandlers();\n $debugger->init();\n $this['config']->debug();\n $debugger->stopTimer('_config');\n\n // Initialize the timezone\n if ($this['config']->get('system.timezone')) {\n date_default_timezone_set($this['config']->get('system.timezone'));\n }\n\n $debugger->startTimer('streams', 'Streams');\n $this['streams'];\n $debugger->stopTimer('streams');\n\n $debugger->startTimer('plugins', 'Plugins');\n $this['plugins']->init();\n $this->fireEvent('onPluginsInitialized');\n $debugger->stopTimer('plugins');\n\n $debugger->startTimer('themes', 'Themes');\n $this['themes']->init();\n $this->fireEvent('onThemeInitialized');\n $debugger->stopTimer('themes');\n\n $task = $this['task'];\n if ($task) {\n $this->fireEvent('onTask.' . $task);\n }\n\n $this['assets']->init();\n $this->fireEvent('onAssetsInitialized');\n\n $debugger->startTimer('twig', 'Twig');\n $this['twig']->init();\n $debugger->stopTimer('twig');\n\n $debugger->startTimer('pages', 'Pages');\n $this['pages']->init();\n $this->fireEvent('onPagesInitialized');\n $debugger->stopTimer('pages');\n\n $this->fireEvent('onPageInitialized');\n\n $debugger->addAssets();\n\n // Process whole page as required\n $debugger->startTimer('render', 'Render');\n $this->output = $this['output'];\n $this->fireEvent('onOutputGenerated');\n $debugger->stopTimer('render');\n\n // Set the header type\n $this->header();\n echo $this->output;\n $debugger->render();\n\n $this->fireEvent('onOutputRendered');\n\n register_shutdown_function([$this, 'shutdown']);\n }", "title": "" }, { "docid": "5c843003d4257493950dd08831c88431", "score": "0.5047176", "text": "public function run()\n {\n if (php_function_allowed('set_time_limit')) {\n @set_time_limit(0);\n }\n\n require_code('files');\n require_code('files2');\n require_code('backup');\n\n $directories_to_backup = array_flip(directories_to_backup());\n\n $size = 0;\n $max_size = get_param_integer('max_size') * 1024 * 1024;\n $files = get_directory_contents(get_custom_file_base());\n foreach ($files as $file) {\n $first_dir = preg_replace('#/.*#', '', $file);\n\n if (!isset($directories_to_backup[$first_dir])) {\n continue;\n }\n\n // Also see code in tar.php\n if ($GLOBALS['DEV_MODE']) {\n if (($first_dir == 'exports') && (preg_match('#^exports/(builds|addons)/#', $file) != 0)) {\n continue;\n }\n }\n if (($first_dir == 'uploads') && (preg_match('#^uploads/(auto_thumbs|incoming)/#', $file) != 0)) {\n continue;\n }\n\n $file_size = filesize(get_custom_file_base() . '/' . $file);\n if ($file_size < $max_size) {\n $size += $file_size;\n }\n }\n\n return make_string_tempcode(clean_file_size($size));\n }", "title": "" }, { "docid": "98bd8ac9e2ba92c0262b4ce0033bb725", "score": "0.5037129", "text": "public function action_generate_code()\n {\n $tables = $this->get_request_param('tables');\n $tables_csv = '{' . implode(',', $tables) . '}';\n $curr_project = $this->get_current_project();\n $breadcrumb = array( array(route_url($this->request_context, 'Project_Main', 'index'), 'Project')\n , array(route_url($this->request_context, 'Project_Main', 'work_on', array('prjid'=>$curr_project['id'])), $curr_project['name'])\n , array(null, $tables_csv) );\n View::set_shared_data('breadcrumb', $breadcrumb);\n\n $conn_details = $this->retrieve_conn_details($_POST);\n $output_file = false;\n\n $content = $this->create_view('project_codegen');\n $content->table_name = $tables[0];\n \n $generated_code = array();\n $ds_introspector = $this->get_ds_introspector($conn_details);\n $schema = $ds_introspector->get_schema($tables);\n \n $serializer = new DataStructure_Serializer_Xml();\n $content->schema_xml = $serializer->serialize($schema);\n\n $code_generator = new CodeGen_PhpTemplate(CODE_TEMPLATE_PATH);\n\n foreach($curr_project['active-templates'] as $active_template => $active) {\n if ($active) {\n $template_details = TemplateManager::instance()->get($active_template);\n \n $generated_code[$active_template] \n = $code_generator->generate($template_details, $schema, $curr_project);\n \n $this->get_logger()->logInfo('Project [' . $curr_project['id'] . ']: Code generated with template [' . $active_template . '].');\n \n // Output to file\n if ($output_file) {\n foreach($generated_code[$active_template] as $filepath => $code) {\n $basepath = ifndef('codegen-dest', $curr_project, null);\n if (empty($basepath)) {\n $basepath = PROJECTS_PATH . $curr_project['id'];\n }\n if (substr($basepath, -1) != '/')\n $basepath .= '/';\n // The base path must exist otherwise fail.\n if (is_dir($basepath)) {\n create_folders($basepath . get_folder_part($filepath));\n save_to_file($basepath . $filepath, $code);\n } else {\n $this->get_logger()->logWarn('Project [' . $curr_project['id'] . ']: Could not write to directory [' . $basepath . '].');\n throw new Exception('Destination directory [' . $basepath . '] does not exists');\n }\n }\n }\n }\n }\n \n $content->generated_code = $generated_code;\n $this->view->content = $content;\n $this->render_view();\n }", "title": "" }, { "docid": "944a45de5f1390e01bdcaf93eace5df7", "score": "0.50277567", "text": "protected function setupPackage()\n {\n \n if( '' === trim( $this->packagePath ) || '' === trim( $this->appRevision ) )\n throw new GaiaException( 'Package path or package name was empty.' );\n \n $packageName = $this->packageName.'-'.$this->appVersion.'.'.$this->appRevision;\n \n if( !$this->noData )\n {\n if( Fs::exists( $this->packagePath.'/'.$packageName ) )\n Fs::del( $this->packagePath.'/'.$packageName );\n \n Fs::mkdir( $this->packagePath.'/'.$packageName.'/files' );\n }\n \n \n $codeTriggerEvents = $this->renderTriggerEvents();\n \n $this->script = <<<CODE\n#!/bin/bash\n# This is a automatically generated deployment script for WebFrap applications\n# Version 0.9 WebFrap Tools\n\n################################################################################\n# Variables\n################################################################################\n\n# relevant path\ndeplPath=\"{$this->deployPath}\"\npackagePath=`pwd`\npackagePath=\"\\${packagePath}/\"\nfPath=\"\\${packagePath}/files/\"\ngatewayName=\"{$this->gatewayName}\"\ncodeOwner=\"{$this->codeOwner}\"\n\n# start/ende time\nstarted=$(date +\"%Y-%m-%d %H:%M:%S\")\nfinished=\"\"\n\n# app related data\nappName=\"{$this->appName}\"\nappVersion=\"{$this->appVersion}\"\nappRevision=\"{$this->appRevision}\"\n\n# settings flag\ndeplType=\"{$this->deplType}\"\nsyncType=\"{$this->syncType}\"\npackageType=\"{$this->packageType}\"\n\n\n# status flag for the script\neveryThinkOk=true;\n\n################################################################################\n# Functions\n################################################################################\n\n#if [ \"$(whoami)\" != \"root\" ];\n#then\n# echo \"Script need to be started as root\"\n# exit\n#fi\n\n# echo and log\nfunction writeLn {\n\n\techo $1\n\techo $1 >> \\$packagePath/deploy.log\n}\n\n# touch or create file\nfunction touchOrCreate {\n\n\ttheDir=$(dirname \\${deplPath}\\${1})/;\n\n\t# create the path if not yet exists\n if [ ! -d \\$theDir ]; then\n mkdir -p \\$theDir\n fi\n \n # check if the creation was success full\n if [ ! -d \\$theDir ]; then\n \twriteLn \"Failed to create folder \\${deplPath}\\${1}/\"\n \texit 1;\n fi\n\n writeLn \"touch file \\${deplPath}\\${1}\" \n touch \\${deplPath}\\${1}\n \n}\n\n# copy / deploy new files\nfunction deploy {\n\n writeLn \"deploy \\${2} to \\${deplPath}\\${2}\" \n\n if [ ! -d \"\\${deplPath}\\${1}/\" ]; then\n mkdir -p \\${deplPath}\\${1}/\n fi\n \n if [ ! -d \"\\${deplPath}\\${1}/\" ]; then\n \twriteLn \"Failed to create folder \\${deplPath}\\${1}/\"\n \texit 1;\n fi\n\n cp -f \"\\${fPath}\\${2}\" \"\\${deplPath}\\${2}\"\n}\n\n# copy / deploy new files\nfunction deployPath {\n\n\t# create the path if not yet exists\n if [ ! -d \"\\${deplPath}\\${1}/\" ]; then\n mkdir -p \\${deplPath}\\${1}/\n fi\n \n # check if the creation was success full\n if [ ! -d \"\\${deplPath}\\${1}/\" ]; then\n \twriteLn \"Failed to create folder \\${deplPath}\\${1}/\"\n \texit 1;\n fi\n\n writeLn \"deploy folder \\${1} to \\${deplPath}\\${1}\" \n cp -rf \"\\${fPath}\\${1}\" \"\\${deplPath}\\${1}/../\"\n}\n\n# remove files or directories\nfunction remove {\n\n if [ -d \"\\${deplPath}\\${1}/\" ]; then\n \n \t\twriteLn \"delete folder \\${deplPath}\\${1}\" \n rm -rf \"\\${deplPath}\\${1}\"\n fi\n \n if [ -a \"\\${deplPath}\\${1}\" ]; then\n \n \t\twriteLn \"delete file \\${deplPath}\\${1}\" \n rm -f \"\\${deplPath}\\${1}\"\n fi\n\n}\n\n# remove files or directories\nfunction notifyStakeholder {\n\n\tcommand -v mail >/dev/null 2>&1 || { echo >&2 \"Missing the mail command\"; exit 1; }\n\n\tsubject=\"{$this->appName} {$this->appVersion}.{$this->appRevision} deployment finished sucessfully.\"\n\n\tmsg=\"Dear \\${1}\\\\n\"\n\tmsg=\"\\${msg}The deployment of {$this->appName} {$this->appVersion}.{$this->appRevision} was finished successfully.\\\\n\\\\n\"\n\tmsg=\"\\${msg}Started: \\${started} End: \\${3}\\\\n\"\n\t\n echo \\$msg | mail -s \\$subject $2\n\n}\n\n{$codeTriggerEvents}\n\n# execute scripts\nfunction executeScripts {\n\t\n\t# make shure to be in the package path\n\tcd \\$packagePath\n\n if [ ! -d \"\\$packagePath/scripts/\\${1}/\" ]; then\n \t# folder not even exists\n \twriteLn \"nothing to do for \\${1}\"\n return 0\n fi\n\t\n if [ ! \"$(ls -A \\$packagePath/scripts/\\${1}/)\" ]; then\n \t# exists but empty\n \twriteLn \"no actions for \\${1}\"\n return 0\n fi\n\n # include scripts\n for file in \"\\$packagePath/scripts/\\${1}/*\"\n do\n \t. \\${file}\n \t# make sure to be in the right path\n \tcd \\$packagePath\n done\n\n}\n\nfunction deploymentFailed {\n\n\t# if not execute the fail scripts\n if [ \"install\" == \"\\$deplType\" ]; then\n \ttrigger_Fail_Install\n elif [ \"update\" == \"\\$deplType\" ]; then\n \ttrigger_Fail_Update\n elif [ \"uninstall\" == \"\\$deplType\" ]; then\n \ttrigger_Fail_Uninstall\n fi\n\n}\n\nfunction deploymentSuccess {\n\n\t# if not execute the fail scripts\n if [ \"install\" == \"\\$deplType\" ]; then\n \ttrigger_Success_Install\n elif [ \"update\" == \"\\$deplType\" ]; then\n \ttrigger_Success_Update\n elif [ \"uninstall\" == \"\\$deplType\" ]; then\n \ttrigger_Success_Uninstall\n fi\n\n}\n\nfunction deploymentPre {\n\n\t# if not execute the fail scripts\n if [ \"install\" == \"\\$deplType\" ]; then\n \ttrigger_Pre_Install\n elif [ \"update\" == \"\\$deplType\" ]; then\n \ttrigger_Pre_Update\n elif [ \"uninstall\" == \"\\$deplType\" ]; then\n \ttrigger_Pre_Uninstall\n \telse\n \twriteLn \"Ok i got a unknown deployment type: \\${deplType}. I assume you know what you are doing but be aware that this deployment will execute no scripts.\"\n fi\n \n if [ ! everyThinkOk ]; then\n deploymentFailed\n fi\n\n}\n\nfunction deploymentPost {\n\n\t# if not execute the fail scripts\n if [ \"install\" == \"\\$deplType\" ]; then\n \ttrigger_Post_Install\n elif [ \"update\" == \"\\$deplType\" ]; then\n \ttrigger_Post_Update\n elif [ \"uninstall\" == \"\\$deplType\" ]; then\n \ttrigger_Post_Uninstall\n fi\n \n if [ ! everyThinkOk ]; then\n deploymentFailed\n fi\n\n}\n\n################################################################################\n# Process logic\n################################################################################\n\n\nwriteLn \"Start deployment to \\${deplPath} \\${started}\" \n\n# check parameters\nif [ -n \"$1\" ]; then\n deplType=$1\nfi\n\n# try to guess the deployment type if not set or specified\nif [ ! -n \"\\$deplType\" ]; then\n\n\twriteLn \"Got an untyped package, i try to guess now if this is a new installation or an update\"\n\n if [ ! -d \"\\${deplPath}\" ]; then\n \t\n \twriteLn \"Deployment target: \\${deplPath} does not exist. I assume this is an installation\"\n \tdeplType=\"install\"\n \n else\n if [ \"$(ls -A \\$deplPath)\" ]; then\n \t\n \twriteLn \"Deployment target: \\${deplPath} exist and is not empty. I assume this is an update\"\n \tdeplType=\"update\"\n \t\n else\n \n \twriteLn \"Got untyped package, system tries tu guess if this is an installation or an update\"\n \tdeplType=\"install\"\n \n fi\n \n fi\n \nfi\n\n# check if the deployment type fits to the package type\n# install and uninstall are only valid for installer packages\n\nif [ \"patch\" == \"\\$packageType\" ]; then\n\n if [ ! \"update\" == \"\\$deplType\" ]; then\n\n \twriteLn \"The install action \\${deplType} is not applicale for \\${packageType} packages.\"\n \twriteLn \"Your system was not changed\"\n \twriteLn \"Shutting down the deployment process\"\n \texit 2\n \n fi\n \nfi\n\n# unpack if not yet unpacked\nif [ ! -d \"./files\" ]; then\n\t\n\t# unpack the data container\n tar xjvf files.tar.bz2 1>/dev/null\n \n # check if unpack was successfull before proceed\n if [ ! -d \"./files\" ]; then\n \n writeLn \"Failed to unpack the data container. Deployment failed!\"\n \t\tdeploymentFailed\n exit 1 \n fi\n \nfi\n\n# execute the pre deployment scripts, if an error occures the fail scripts\n# will be also executed\nwriteLn \"Execute the pre deployment scripts\"\n\ndeploymentPre\n\nCODE;\n \n \n }", "title": "" }, { "docid": "757b21cb7c8556595363c3de30f12ef9", "score": "0.50121635", "text": "public function compile()\n {\n $output_file_name = $this->_command->getOutputJsFileName();\n $coffee_path =\n is_dir($this->_coffee_path) ? glob($this->_coffee_path . DIRECTORY_SEPARATOR . '*') : $this->_coffee_path;\n if (!$this->_needCompile($output_file_name, $coffee_path)) {\n return $output_file_name;\n }\n\n exec($this->_command->buildCompileCommand(), $output, $result_code);\n if ($result_code > 0) {\n throw new PassetCompileException('Coffee compile Error!!');\n }\n return $this->_command->getOutputJsFileName();\n }", "title": "" }, { "docid": "c4bd4ac1509449f602b4a84c39db27a3", "score": "0.5008795", "text": "function main()\n{\n $page = safeGetPage();\n if (!isset($page))\n {\n http_response_code(400);\n return;\n }\n\n // Try find template path.\n $path = safeGetIndexTemplatePath($page);\n $path = !isset($path) ? safeGetNamedTemplatePath($page) : $path;\n if (!isset($path))\n {\n http_response_code(404);\n return;\n }\n\n setParametersAndGenerate($path);\n}", "title": "" }, { "docid": "3f2ff61b280057c5791aae8a9b04b6cc", "score": "0.49992874", "text": "protected function installJavaScript()\n {\n if (! is_dir('resources/assets/js')) {\n mkdir(base_path('resources/assets/js'));\n }\n $this->files->copyDirectory(__DIR__.'/stubs/resources/assets/js',\n base_path('resources/assets/js'));\n }", "title": "" }, { "docid": "793b5b61b43ce10759dd3a21c0774e24", "score": "0.49957114", "text": "public function startScript() {\n ob_start();\n }", "title": "" }, { "docid": "6c75f28f6243747971f573aa1cb840aa", "score": "0.4988249", "text": "public function XHRUploadAction() \n {\n \n $user = $this->getUser();\n \n if(!$user) \n {\n throw $this->createNotFoundException();\n }\n \n set_time_limit(60*5);\n\n //Only first file\n if(is_array($_FILES['file']['tmp_name']))\n {\n $file = new UploadedFile($_FILES['file']['tmp_name'][0],$_FILES['file']['name'][0],$_FILES['file']['type'][0],$_FILES['file']['size'][0],$_FILES['file']['error'][0]);\n }\n else\n {\n $file = new UploadedFile($_FILES['file']['tmp_name'],$_FILES['file']['name'],$_FILES['file']['type'],$_FILES['file']['size'],$_FILES['file']['error']);\n } \n \n $cachePath = __DIR__ . '/../../../../app/cache/prod/images/' ;\n $filename = 'xhr-' . md5($file->getClientOriginalName() . $_FILES['file']['tmp_name']);\n \n $extension = str_replace('jpg', 'jpeg', $file->guessExtension() );\n if(empty($extension)) \n {\n $extension = strtolower(pathinfo($file->getClientOriginalName(), PATHINFO_EXTENSION));\n }\n \n //If the cache folder has not been created, do it now\n if(!is_dir($cachePath))\n {\n // dir doesn't exist, make it\n mkdir($cachePath, 0755, true);\n }\n \n $file->move($cachePath, $filename.'.'.$extension);\n \n $response = new Response();\n $response->setStatusCode(200);\n $response->setContent($filename.'.'.$extension);\n $response->headers->set('Content-Type', 'text/plain');\n \n return $response;\n }", "title": "" }, { "docid": "d63f37af3feb855580011e679ee990c3", "score": "0.4986567", "text": "private function _loadScripts()\n\t{\n\t\techo '<!-- The template to display files available for upload -->\n<script id=\"template-upload\" type=\"text/x-tmpl\">\n{% for (var i=0, file; file=o.files[i]; i++) { %}\n <tr class=\"template-upload fade\">\n <td>\n <span class=\"preview\"></span>\n </td>\n <td>\n <p class=\"name\">{%=file.name%}</p>\n <strong class=\"error text-danger\"></strong>\n </td>\n <td>\n <p class=\"size\">Processing...</p>\n <div class=\"progress progress-striped active\" role=\"progressbar\" aria-valuemin=\"0\" aria-valuemax=\"100\" aria-valuenow=\"0\"><div class=\"progress-bar progress-bar-success\" style=\"width:0%;\"></div></div>\n </td>\n <td>\n {% if (!i && !o.options.autoUpload) { %}\n <button class=\"btn btn-primary start\" disabled>\n <i class=\"glyphicon glyphicon-upload\"></i>\n <span>Start</span>\n </button>\n {% } %}\n {% if (!i) { %}\n <button class=\"btn btn-warning cancel\">\n <i class=\"glyphicon glyphicon-ban-circle\"></i>\n <span>Cancel</span>\n </button>\n {% } %}\n </td>\n </tr>\n{% } %}\n</script>\n<!-- The template to display files available for download -->\n<script id=\"template-download\" type=\"text/x-tmpl\">\n{% for (var i=0, file; file=o.files[i]; i++) { %}\n <tr class=\"template-download fade\">\n <td>\n <span class=\"preview\">\n {% if (file.thumbnailUrl) { %}\n <a href=\"{%=file.url%}\" title=\"{%=file.name%}\" download=\"{%=file.name%}\" data-gallery><img src=\"{%=file.thumbnailUrl%}\"></a>\n {% } %}\n </span>\n </td>\n <td>\n <p class=\"name\">\n {% if (file.url) { %}\n <a href=\"{%=file.url%}\" title=\"{%=file.name%}\" download=\"{%=file.name%}\" {%=file.thumbnailUrl?\\'data-gallery\\':\\'\\'%}>{%=file.name%}</a>\n {% } else { %}\n <span>{%=file.name%}</span>\n {% } %}\n </p>\n {% if (file.error) { %}\n <div><span class=\"label label-danger\">Error</span> {%=file.error%}</div>\n {% } %}\n </td>\n <td>\n <span class=\"size\">{%=o.formatFileSize(file.size)%}</span>\n </td>\n <td>\n {% if (file.deleteUrl) { %}\n <button class=\"btn btn-danger delete\" data-type=\"{%=file.deleteType%}\" data-url=\"{%=file.deleteUrl%}\"{% if (file.deleteWithCredentials) { %} data-xhr-fields=\\'{\"withCredentials\":true}\\'{% } %}>\n <i class=\"glyphicon glyphicon-trash\"></i>\n <span>Delete</span>\n </button>\n <input type=\"checkbox\" name=\"delete\" value=\"1\" class=\"toggle\">\n {% } else { %}\n <button class=\"btn btn-warning cancel\">\n <i class=\"glyphicon glyphicon-ban-circle\"></i>\n <span>Cancel</span>\n </button>\n {% } %}\n </td>\n </tr>\n{% } %}\n</script>';\n\n\t}", "title": "" }, { "docid": "70c5c86e6f5fa74a1145e36b97779036", "score": "0.49814984", "text": "public function scripts($config=array()) {\n\t\t$config += array(\n\t\t\t'optimize' => true,\n\t\t\t'compression' => 'jsmin',\n\t\t\t'outputDirectory' => 'optimized',\n\t\t\t'packerEncoding' => 'Normal',\n\t\t\t'packerFastDecode' => true,\n\t\t\t'packerSpecialChars' => false\n\t\t);\n\t\t\n\t\t// Allow this method to work exactly how Lithium does by default and offer no consolidation or compression for JavaScript assets.\n\t\tif(!$config['optimize']) {\n\t\t\treturn $this->_context->scripts();\n\t\t}\n\n\t\t// Ensure output directory is formatted properly, first remove any beginning slashes\n\t\tif($config['outputDirectory'][0] == DIRECTORY_SEPARATOR) {\n\t\t\t$config['outputDirectory'] = substr($config['outputDirectory'], 1);\n\t\t}\n\t\t// ...then any trailing slashes\n\t\tif(substr($config['outputDirectory'], -1, 1) == DIRECTORY_SEPARATOR) {\n\t\t\t$config['outputDirectory'] = substr($config['outputDirectory'], 0, -1);\n\t\t}\n\t\t\n\t\t// Set the output path\n\t\t$webroot = Media::webroot(true);\n\t\t$outputHash = md5(serialize($this->_context->scripts));\n\t\t$outputFile = Media::asset($config['outputDirectory'] . DIRECTORY_SEPARATOR . $outputHash, 'js');\n\t\t$outputFolder = $webroot . strstr($outputFile, $outputHash, true);\n\t\t\n\t\t// If the output directory doesn't exist, return the scripts like normal... TODO: also ensure permissions to write here?\n\t\tif(!file_exists($outputFolder)) {\n\t\t\t// If it doesn't exist, try to create it\n\t\t\tif (!mkdir($outputFolder, 0777, true)) {\n\t\t\t\tdie('Failed to create folders...');\n\t\t\t}\n\t\t\t// If it still doesn't exist, return the scripts\n\t\t\tif(!file_exists($outputFolder)) {\n\t\t\t\treturn $this->_context->scripts();\n\t\t\t}\n\t\t}\n\n\t\tif(!empty($config['compression'])) {\n\t\t\tif(!file_exists($webroot . $outputFile)) {\n\t\t\t\t$js = '';\n\t\t\t\t// JSMin\n\t\t\t\tif(($config['compression'] === true) || ($config['compression'] == 'jsmin')) {\n\t\t\t\t\tforeach($this->_context->scripts as $file) {\n\t\t\t\t\t\tif(preg_match('/src=\\\"(.*)\\\"/i', $file, $matches)) {\n\t\t\t\t\t\t\t$script = (isset($matches[1])) ? $webroot . $matches[1]:false;\n\t\t\t\t\t\t\t//$script = $webroot . Media::asset($matches[1], 'js');\n\t\t\t\t\t\t\t// It is possible that a reference to a file that does not exist was passed\n\t\t\t\t\t\t\tif(file_exists($script)) {\n\t\t\t\t\t\t\t\t$js .= \\blackprint\\vendor\\jsminphp\\JSMin::minify(file_get_contents($script));\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// Dean Edwards Packer\n\t\t\t\t} elseif($config['compression'] == 'packer') {\n\t\t\t\t\tforeach($this->_context->scripts as $file) {\n\t\t\t\t\t\tif(preg_match('/src=\\\"(.*)\\\"/', $file, $matches)) {\n\t\t\t\t\t\t\t$script = (isset($matches[1])) ? $webroot . $matches[1]:false;\n\t\t\t\t\t\t\t// $script = $webroot . Media::asset($matches[1], 'js');\n\t\t\t\t\t\t\t// It is possible that a reference to a file that does not exist was passed \n\t\t\t\t\t\t\tif(file_exists($script)) {\n\t\t\t\t\t\t\t\t$scriptContents = file_get_contents($script);\n\t\t\t\t\t\t\t\t$packer = new \\blackprint\\vendor\\packer\\JavaScriptPacker($scriptContents, $config['packerEncoding'], $script, $config['packerFastDecode'], $script, $config['packerSpecialChars']);\n\t\t\t\t\t\t\t\t$js .= $packer->pack();\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\tfile_put_contents($webroot . $outputFile, $js);\n\t\t\t}\t\t\t\n\n\t\t\t// One last safety check to ensure the file is there (reasons why it may not be: primarily, write permissions)\n\t\t\tif(file_exists($webroot . $outputFile)) {\n\t\t\t\treturn '<script type=\"text/javascript\" src=\"' . Media::asset($outputFile, 'js') . '\"></script>';\n\t\t\t} else {\n\t\t\t\treturn $this->_context_scripts();\n\t\t\t}\n\t\t} else {\n\t\t\treturn $this->_context->scripts();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "89c54768a23efcb255bfe5545e69f073", "score": "0.49744114", "text": "public function createReport()\n {\n $dir = \\Drupal::config('public_appeal_sync.outdir')->get('outdir');\n $dir2 = \"public://$dir\";\n \n if (file_prepare_directory($dir2, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS)) {\n $json_data = json_encode($this->response);\n $filename = \"report-import-\" . date(\"Y-m-d--H-i-s\") . \".json\"; \n $this->saveToJson($json_data, $dir, $filename); \n \n $Json_date2 = json_encode([\"date\" => \"$this->running_date\"]);\n $filename2 = \"running-response.json\";\n $this->saveToJson($Json_date2, $dir, $filename2);\n }\n }", "title": "" }, { "docid": "fb1fd048fe51ce9c4dbdd89f753d09c4", "score": "0.49716786", "text": "public function run(): string\n {\n $out = '';\n $this->_dependencies = array_unique($this->_dependencies);\n\n $out .= $this->getNamespaceDefinitions();\n $this->addCurrentController();\n\n foreach ($this->_dependencies as $dependency) {\n if (strpos($dependency, DS) !== false) {\n $dependency = str_replace(DS, '/', $dependency);\n }\n $jsFile = $this->Html->script($dependency);\n $out .= $jsFile . \"\\n\";\n }\n $out .= $this->getAppDataJs($this->_frontendData);\n $out .= $this->Html->script('/frontend_bridge/js/bootstrap.js');\n\n return $out;\n }", "title": "" }, { "docid": "6d83bd61f7f8ce03434faebefd207f03", "score": "0.49526322", "text": "function execute()\n {\n if ($_SERVER['REQUEST_METHOD'] == 'POST')\n {\n return $this->direct();\n }\n // Need to determine type of action\n if (isset($_GET['jsload'])) return $this->jsLoad($_GET['jsload']);\n\n // Must be an action\n if (isset($_GET['a'])) $action = $_GET['a'];\n else $action = 'Index';\n\n $loadFirebug = FALSE;\n $jsFiles = $this->jsFiles;\n $jsLoadFilesIndividually = true;\n\n $jsFile = 'Actions/' . $action . '.js.php';\n $tplFile = 'Actions/Action' . '.tpl.php';\n\n // Get the script code\n ob_start();\n require $jsFile;\n $js = ob_get_clean();\n\n // Template it, not sure if need to buffer it but okay for now\n ob_start();\n require $tplFile;\n $html = ob_get_clean();\n\n header('Content-Type: text/html');\n echo $html;\n }", "title": "" }, { "docid": "b2577aca67ef0af2a6f567819291704e", "score": "0.49398398", "text": "public function actionTemplate()\n {\n $path = Yii::getAlias('@app').'/'.$this->path;\n if (@file_put_contents($path, $this->basicVueTemplate()) === false) {\n echo \"Unable to write the file '{$path}'.\";\n return ExitCode::UNSPECIFIED_ERROR;\n }\n\n return ExitCode::OK;\n }", "title": "" }, { "docid": "4c778618621dfcb794324db0b29515c5", "score": "0.49244544", "text": "public function jsLintFilesAction()\n {\n $projectRoot = $this->getProjectRoot();\n\n // Find all the javascript files in the LS dir\n $jsFileFinder = new Finder();\n $jsFileFinder\n ->files()\n ->in($projectRoot . '/src/')\n ->in($projectRoot . '/vendor/bundles/Beum/')\n ->name('*.js');\n\n $files = array();\n foreach($jsFileFinder as $file) {\n $relpath = str_replace($projectRoot, '', $file->getRealpath());\n\n $files[] = $relpath;\n }\n\n // Find all of the js files for this application\n $json = json_encode($files);\n $r = new Response($json);\n $r->headers->set('content-type', 'application/json');\n return $r;\n }", "title": "" }, { "docid": "85db44b90fdf1589281f891023adc70e", "score": "0.49241072", "text": "public static function CreateFile($class){\r\n\t\t$fileName = self::$folder . $class . '.js';\r\n\t\t$fh = fopen($fileName , 'w') or die(\"can't open file\");\r\n\t\tfwrite($fh, self::$code);\r\n\t\tfclose($fh);\r\n\t\tif(is_file($fileName)){\r\n\t\t\tchmod($fileName, 0774);\r\n\t\t}\r\n\t\techo '<b>File created:</b>' . $fileName . '<br />';\r\n\t}", "title": "" }, { "docid": "ca0adc9b7f127b6c9c7d47645bd096ef", "score": "0.49216738", "text": "public function generate()\n {\n $path = $this->generateFolders();\n $className = $this->className;\n file_put_contents(\"$path/$className.php\", $this->render());\n }", "title": "" }, { "docid": "f88a87bb76527c23449e9e047d4e3341", "score": "0.49172413", "text": "public function run()\n {\n $tempFolder = Yii::app()->basePath . DIRECTORY_SEPARATOR . '..' . $this->tempFolder;\n\n if (!is_writable( $tempFolder ) )\n {\n throw new CException( 'temporary folder is not exists or not writable. Path:' . $tempFolder );\n }\n\n $uploader = new FileUploader(\n $this->allowedFileExtensions,\n $this->fileLimit\n );\n\n $result = $uploader->handleUpload( $tempFolder );\n\n if ( !isset( $result['error'] ) ) {\n $imageHandler = new CImageHandler();\n\n $imageHandler->load( $tempFolder . $result['filename'] );\n\n try\n {\n // if min/max weight/height are set - check those conditions\n $this->validateImageDimensions(\n $imageHandler->getWidth(),\n $imageHandler->getHeight()\n );\n\n $this->getController()->successfulAjaxResponse(\n array(\n 'fileName' => $imageHandler->getBaseFileName(),\n 'imageSrc' => '/application' . $this->tempFolder . $imageHandler->getBaseFileName()\n )\n );\n }\n catch ( CException $e )\n {\n $errorMsg = $imageHandler->getBaseFileName()\n . ' - ' . $e->getMessage();\n\n $this->getController()->unsuccessfulAjaxResponse(\n array(\n 'errorMessage' => $errorMsg\n )\n );\n }\n }\n else\n {\n $this->getController()->unsuccessfulAjaxResponse(\n array(\n 'errorMessage' => $result[ 'error' ]\n )\n );\n }\n }", "title": "" }, { "docid": "eb6e344bbc285fdb0d98e59a4022d95f", "score": "0.4911022", "text": "function main() {\n\t\t$this->out('Running prebuild assets shell.');\n\n\t\tif (isset($this->params['lang'])) {\n\t\t\t$this->langs = explode(',', $this->params['lang']);\n\t\t}\n\n\t\tApp::import('Helper', 'Assets.Asset');\n\t\t$this->AssetHelper = new AssetHelper();\n\t\t$this->AssetHelper->settings['cleanDir'] = false;\n\n\t\t$this->out('Prebuilding css .. ', false);\n\t\t$start = array_sum(explode(' ', microtime()));\n\t\t$this->prebuildCssAggregation();\n\t\t$end = array_sum(explode(' ', microtime()));\n\t\t$this->out('took ' . round($end - $start, 2) . 's');\n\n\t\t$this->out('Prebuilding js .. ', false);\n\t\t$start = array_sum(explode(' ', microtime()));\n\t\t$this->prebuildJsAggregation();\n\t\t$end = array_sum(explode(' ', microtime()));\n\t\t$this->out('took ' . round($end - $start, 2) . 's');\n\t}", "title": "" }, { "docid": "7cda5173dbe3204f718b03e96aa903ae", "score": "0.49049577", "text": "protected function deployStaticContent()\n {\n $this->log(\"Generating static content.\");\n\n $this->execute(\n \"cd {$this->webRoot}/bin/; php ./magento setup:static-content:deploy\"\n );\n }", "title": "" }, { "docid": "7c77bec76b5a2e86319b2f39be9c73c6", "score": "0.49007174", "text": "public function cacheMain()\n\t{\n\t\t$this->app->output->message(\"Building main javascript code\");\n\n\t\t$code = $this->readFromDir($this->dir);\n\t\t$code.= $this->readFromDir($this->dir . App::EXTENSIONS_DIRS['plugins']);\n\n\t\t$cache_file = $this->getFile('main');\n\t\t$this->store($cache_file, $code);\n\t}", "title": "" }, { "docid": "6ad3cf6c582bcdbc86ae0a2d752564b7", "score": "0.48960936", "text": "public function compile()\n {\n\n $this->buildPage();\n\n if (DEBUG) {\n ob_start();\n $checkXml = new DOMDocument();\n\n if ($this instanceof LibTemplateAjax)\n $checkXml->loadXML($this->compiled);\n else\n $checkXml->loadHTML($this->compiled);\n\n $errors = ob_get_contents();\n ob_end_clean();\n\n // nur im fehlerfall loggen\n if ('' !== trim($errors)) {\n\n $this->getResponse()->addWarning('Invalid XML response');\n\n SFiles::write(PATH_GW.'log/tpl_xml_errors.html', $errors.'<pre>'.htmlentities($this->compiled).'</pre>');\n SFiles::write(PATH_GW.'log/tpl_xml_errors_'.date('Y-md-H-i_s').'.html', $errors.'<pre>'.htmlentities($this->compiled).'</pre>');\n }\n }\n\n if ($this->keyCachePage) {\n $this->writeCachedPage($this->keyCachePage , $this->compiled);\n }\n\n $this->output = $this->compiled;\n\n\n }", "title": "" }, { "docid": "5f50520600af781831f0d2a0e82f80d8", "score": "0.48950583", "text": "public function start() {\n\t\tob_start();\n\t}", "title": "" }, { "docid": "b3938fe6caec06f2b093358e2dd94952", "score": "0.48748043", "text": "public function execute() {\n // gets the source code by specified url\n $html = $this->getHTML();\n \n // parses the code\n $resultArray = $this->extractContent($html);\n \n // content to ics format\n $format = $this->exportToICal($resultArray);\n \n // writes it to the output file\n file_put_contents (\"output.ics\", $format);\n \n // we'll be outputting a ics\n header('Content-type: application/ics');\n\n // it will be called downloaded.ics\n header('Content-Disposition: attachment; filename=\"downloaded.ics\"');\n\n // the ics source is in output.ics\n readfile('output.ics');\n }", "title": "" }, { "docid": "7f8836fb09367348a70f6e5704593002", "score": "0.48739254", "text": "public function actionGen()\n {\n \techo \"\\033[0;35m\", \"Processing API document source files.\" . PHP_EOL;\n echo shell_exec('./vendor/bin/apidoc api --color=always --interactive=0 --pageTitle=\"' . Yii::$app->params['serviceName'] . '\" ./modules ./web/docs/apidoc --guide=../guide-en --guide=../guide-en') . PHP_EOL;\n echo \"\\033[0;35m\", \"Processing guide source files.\" . PHP_EOL;\n echo shell_exec('./vendor/bin/apidoc guide --color=always --interactive=0 --pageTitle=\"' . Yii::$app->params['serviceName'] . '\" ./web/docs/src/guide ./web/docs/guide-en --apiDocs=../apidoc') . PHP_EOL;\n echo \"\\033[0;35m\", \"Processing guide-th source files.\" . PHP_EOL;\n echo shell_exec('./vendor/bin/apidoc guide --color=always --interactive=0 --pageTitle=\"' . Yii::$app->params['serviceName'] . '\" ./web/docs/src/guide-th ./web/docs/guide-th --apiDocs=../apidoc') . PHP_EOL;\n }", "title": "" }, { "docid": "11c202382face508d6833fddf0d8b567", "score": "0.4873856", "text": "function getUrlScreenShot()\r\n {\r\n $url = $_POST['url'];\r\n $tid = $_POST['id'];\r\n $userAgent = $_POST['userAgent'];\r\n $awDir = __DIR__.'/../../../../web/uploads/awhtmlchecker/';\r\n $dir = __DIR__.'/../../../../web/';\r\n //$imgFileName = uniqid().'-'.str_replace(\"http://\", \"\", $url).'.jpg';\r\n $imgFileName = uniqid().'.jpg';\r\n\r\n //create screen shot\r\n $comm = 'phantomjs '.$dir.'bundles/awhtmlchecker/phantomjs/rasterize.js \"'.$url.'\" '.$awDir.'/'.$imgFileName.' \"'.$userAgent.'\"';\r\n exec($comm);\r\n\r\n //compress image\r\n $image = new \\Imagick($awDir.'/'.$imgFileName);\r\n $image->setImageCompressionQuality(10);\r\n $image->stripImage();\r\n $image->writeImage($dir.'uploads/awhtmlchecker/'.$imgFileName); \r\n //remove image file from /tmp\r\n //unlink($tmpDir.'/'.$imgFileName);\r\n\r\n //store image filenames for report\r\n $em = $this->getDoctrine()->getManager('htmlchecker');\r\n\r\n $entity = new ScreenShots();\r\n $entity->setTestId($tid);\r\n //$entity->setFilename('http://'.$_SERVER['HTTP_HOST'].'/uploads/awhtmlchecker/'.$imgFileName);\r\n $entity->setFilename($imgFileName);\r\n $entity->setUrl($url);\r\n $em->persist($entity);\r\n $em->flush();\r\n\r\n $jsonResponse['img'] = 'http://'.$_SERVER['HTTP_HOST'].'/uploads/awhtmlchecker/'.$imgFileName;\r\n\r\n $response = new Response(json_encode($jsonResponse));\r\n $response->headers->set('Content-Type', 'application/json');\r\n return $response;\r\n }", "title": "" }, { "docid": "47bdf36c6d7e0cb08dfa4fa35c585f2b", "score": "0.48733863", "text": "public function run()\n\t{\n\t\t$block = ob_get_clean ();\n\t\tif ($this->renderInPlace) {\n\t\t\tthrow new \\Exception (\"not implemented yet!\");\n\t\t\t// echo $block;\n\t\t}\n\t\t$block = trim ( $block );\n\t\t/*\n\t\t * $jsBlockPattern = '|^<script[^>]*>(.+?)</script>$|is';\n\t\t * if(preg_match($jsBlockPattern,$block)){\n\t\t * $block = preg_replace ( $jsBlockPattern , '${1}' , $block );\n\t\t * }\n\t\t */\n\t\t$jsBlockPattern = '|^<script[^>]*>(?P<block_content>.+?)</script>$|is';\n\t\tif (preg_match ( $jsBlockPattern, $block, $matches )) {\n\t\t\t$block = $matches ['block_content'];\n\t\t}\n\t\t\n\t\t$this->view->registerJs($block, $this->pos, $this->key);\n\t}", "title": "" }, { "docid": "67a9a9446675fee97b372affbec7b1f6", "score": "0.48583704", "text": "public function generateViewSnubs()\n {\n\n /** @var AggregateResolver $viewResolver */\n $viewResolver = $this->application->getServiceManager()->get('view-resolver');\n\n $controllers = $this->getControllersFromManager();\n\n foreach ($controllers as $controller => $actions) {\n $this->handleActions($controller, $actions, $viewResolver);\n }\n\n $this->createPaths();\n $this->createHelpers();\n\n ViewSnubGenerator::writeFiles($this->fileWriter, $this->paths, $this->controllers, $this->variables, $this->viewHelpers);\n }", "title": "" }, { "docid": "47d97511991a0b2bd974ea52ab59bd87", "score": "0.48505273", "text": "protected function buildFile(): void\n\t{\n\t\t$this->webpackFile = new WebpackFile();\n\t\t$this->webpackFile->setLandingId($this->landingId);\n\t\t$this->webpackFile->setFileName($this->createUniqueName());\n\n\t\t$this->fillPackageWithResources();\n\n\t\t$this->webpackFile->build();\n\t}", "title": "" }, { "docid": "456b0a1ff1cb7c421ddc58c3f64bee73", "score": "0.4850195", "text": "public function netlify_do_export() {\n $archiveDir = file_get_contents(\n $this->getWorkingDirectory() .\n '/WP-STATIC-CURRENT-ARCHIVE'\n );\n\n $archiveName = rtrim( $archiveDir, '/' ) . '.zip';\n\n $netlify = new StaticHtmlOutput_Netlify(\n $this->netlifySiteID,\n $this->netlifyPersonalAccessToken\n );\n\n echo $netlify->deploy( $archiveName );\n }", "title": "" }, { "docid": "25900ddd409a80f485f6fa36bbaf801f", "score": "0.48369846", "text": "function end_page( $filename ) {\n footer();\n chdir( '../../dist' );\n file_put_contents( $filename, ob_get_contents() );\n}", "title": "" }, { "docid": "a1dd459fc71fd67fc554277bcea4d7ad", "score": "0.4835195", "text": "public function js()\n {\n $content = file_get_contents(__DIR__.'/../../output/app.js');\n $response = new Response(\n $content, 200, [\n 'Content-Type' => 'text/javascript',\n ]\n );\n\n return $response;\n }", "title": "" }, { "docid": "d26e4a34ad85e02c180d1add7f6df1c1", "score": "0.48344266", "text": "function run()\n{\n global $app;\n\n ob_start();\n\n $app->run();\n header(HeaderDate::$date); // To pass the bench, nginx auto add it\n \n return ob_get_clean();\n}", "title": "" }, { "docid": "de670fce800f75ed3184d82f67ba52fd", "score": "0.48320603", "text": "public function saveJsFiles()\r\n {\r\n $this->session['__js_files'] = array();\r\n $js_files = $this->js_files;\r\n\r\n $this->js_files = array();\r\n $group = 0;\r\n $module = str_replace('/', '', $this->module);\r\n foreach ($js_files as $k => $v) {\r\n if (isset_or($v['src'])) {\r\n if ($v['local']) {\r\n $this->session['__js_files'][$group][] = str_replace('{$skin_scripts}', '//' . $this->skins_folder . $this->skin . '/' . $this->module . 'scripts/', str_replace('{$root_scripts}', '//assets/scripts/', $v['src']));\r\n $this->addJsFile($this->paths['root'] . 'min/?g=js_site' . $group . '&module=' . $module . '&ck=' . $this->session_cookie . '&skin=' . $this->skin, false);\r\n } else {\r\n $this->addJsFile($v['src'], false, $v['type']);\r\n $group++;\r\n }\r\n }\r\n }\r\n\r\n $this->saveSession();\r\n $this->assign('p', $this->getPage());\r\n }", "title": "" }, { "docid": "d6155324cde1f7b6fc452fab5afb30b0", "score": "0.48197195", "text": "public function run() {\n\n $assetPrefix = Yii::app()->assetManager->publish(dirname(__FILE__) . '/../resources', true, 0, defined('YII_DEBUG'));\n Yii::app()->clientScript->registerCssFile($assetPrefix . '/mail.css');\n\n $this->render('mailNotifications', array(\n ));\n }", "title": "" }, { "docid": "0d637b0f8280ccaa3dd2085098f26798", "score": "0.4819158", "text": "protected static function compress_js($file)\n\t{\n\t\t$exec = escapeshellarg(Pack::$config['compression']['js']['java']);\n\n\t\t// Specify the path to the jar file\n\t\t$exec .= sprintf(' -jar %s ', escapeshellarg(Pack::$config['compression']['js']['jar']));\n\n\t\t// Specify the input file\n\t\t$exec .= sprintf(' --js %s ', escapeshellarg($file));\n\n\t\t// Compress the asset file\n\t\t$code = shell_exec($exec);\n\n\t\t// Save the file to hard disk\n\t\tfile_put_contents($file, $code, LOCK_EX);\n\t}", "title": "" }, { "docid": "ce369f83e7a9ed2d961bb94a654f5a17", "score": "0.4818166", "text": "function generate() {\n\tgenerate_homepage();\n}", "title": "" }, { "docid": "e1b73086faf83a388370ab60136e98a8", "score": "0.48157227", "text": "public static function start()\n\t{\n\t\tob_start();\n\t}", "title": "" }, { "docid": "e1b73086faf83a388370ab60136e98a8", "score": "0.48157227", "text": "public static function start()\n\t{\n\t\tob_start();\n\t}", "title": "" }, { "docid": "6a889682aec1cc780c5e7967b4d652b1", "score": "0.48115006", "text": "public function take($url)\n\t{\n\t\t// set up phantomjs\n\t\t$tempJsFileHandle = tmpfile();\n\t\t\n\t\t// get path\n\t\t$screenshot_path = \\Config::get('screenshot::screenshot_path', storage_path('screenshots')) . '/' . md5($url);\n\t\t\n\t\t// ensure folders exists\n\t\tif (!\\File::exists(storage_path() . '/temp/')) \\File::makeDirectory(storage_path() . '/temp/', 0775);\n\t\tif (!\\File::exists($screenshot_path)) \\File::makeDirectory($screenshot_path, 0775, true);\n\t\t\n\t\t// set up temp file\n\t\t$temp = storage_path() . '/temp/' . uniqid();\n\t\t\n\t\t// set up final desination\n\t\t$file = $screenshot_path . '/original.png';\n\t\t\t\n\t\t// build phantomjs command\n\t\t$fileContent= \"\n\t\t\tvar page = require('webpage').create();\n\t\t\tpage.settings.javascriptEnabled = true;\n\t\t\tpage.viewportSize = { width: \" . 1024 . \", height: \" . 768 . \" };\n\t\t\tpage.open('\" . $url . \"', function() {\n\t\t\t\twindow.setTimeout(function(){\n\t\t\t\t\tpage.render('\" . $file . \"');\n\t\t\t\t\tphantom.exit();\n\t\t\t\t}, \" . \\Config::get('screenshot::wait_time', 3000) . \");\n\t\t\t});\";\n\t\t\n\t\t// temp file created\n\t\tif (file_put_contents($temp, $fileContent))\n\t\t{\n\t\t\t// execute file\n\t\t\t$cmd = escapeshellcmd(\\Config::get('screenshot::phantom_path', base_path('vendor/bin/phantomjs')) . \" \" . $temp);\n\t\t\tshell_exec($cmd);\n\n\t\t\t// start image\n\t\t\t$image = \\Intervention\\Image\\Facades\\Image::make($file);\n\n\t\t\t// auto crop image\n\t\t\t$image->fit(800, 600, null, 'top');\n\t\t\n\t\t\t// save\n\t\t\t$image->save($screenshot_path . '/large.png');\n\t\t\t\n\t\t\t// auto crop image\n\t\t\t$image->fit(400, 300, null, 'top');\n\t\t\n\t\t\t// save\n\t\t\t$image->save($screenshot_path . '/medium.png');\n\t\t\t\n\t\t\t// auto crop image\n\t\t\t$image->fit(200, 150, null, 'top');\n\t\t\n\t\t\t// save\n\t\t\t$image->save($screenshot_path . '/small.png');\n\t\t\t\n\t \t // remove after end\n\t\t if (\\File::exists($temp)) \\File::delete($temp);\n\t\t\t\n\t\t\t// return\n\t\t\treturn md5($url);\n\t\t}\n\t\t\n\t\t// failed creating file\n\t\treturn false;\n\t}", "title": "" }, { "docid": "42c0e1dda60eb9a3612a49a05fb0e82e", "score": "0.4810614", "text": "public function build()\n {\n if (is_dir($this->config['paths']['build'])) {\n $this->taskCleanDir([$this->config['paths']['build']])->run();\n }\n \n $this->copyDirectories();\n $this->compileAssets();\n }", "title": "" }, { "docid": "edecd4dfb84143c876ea823e04089c49", "score": "0.4809763", "text": "protected static function exportBaseFiles()\n {\n $files = [\n 'app',\n 'routes',\n ];\n\n foreach ($files as $file) {\n copy(__DIR__.\"/../resources/js/{$file}.js\", resource_path(\"js/studio/{$file}.js\"));\n }\n }", "title": "" }, { "docid": "546cdef200cf44433d1159261df404eb", "score": "0.48017278", "text": "public function run()\n {\n if (config('app.env') == 'production') {\n dd('生产环境, 不能执行');\n return;\n }\n\n $count = 0;\n $shops = \\App\\Models\\Shop::all();\n if ($shops) {\n foreach ($shops as $shop) {\n $pageContentTypes = \\App\\Models\\PageContent::$pageContentTypeMap;\n foreach ($pageContentTypes as $type => $value) {\n $model = factory(\\App\\Models\\PageContent::class, 1)->create(['type' => $type, 'shop_id' => $shop->id, 'image_url' => \"images/pics/201903/30/dcRTQ6fYpwTPTNEoVv9WLpZmiAXulU3hmPzQcEXV.png\"]);\n\n $pcId = isset($model[0]['id']) ? $model[0]['id'] : null;\n if ($pcId) {\n $this->createPageContentsGoods($pcId, $shop);\n $this->createPageItems($pcId);\n }\n\n $count++;\n }\n }\n }\n\n }", "title": "" }, { "docid": "7f93e7c5b5ef3c6d77dff30cde856f8b", "score": "0.47949842", "text": "protected function generatePage(){\n $this->createHead();\n $this->createBody();\n \n $result = \"\";\n $result .= $this->head;\n $result .= $this->body;\n \n Log::msg(\"page constructed\", __FILE__);\n return $result;\n }", "title": "" }, { "docid": "4d55e92ec653e728a1ed1085eb69a669", "score": "0.47720736", "text": "public function serve()\n\t{\n\t\treturn $this->_serveFile($this->_srcPath);\n\t}", "title": "" }, { "docid": "95e56d27208f1fb0290cc3fab144114a", "score": "0.47671604", "text": "public function publishAssets()\r\n\t{\r\n\t\t$assets = dirname(__FILE__).'/assets';\r\n\t\t$baseUrl = Yii::app()->assetManager->publish($assets);\r\n\t\tif(is_dir($assets)){\r\n\t\t\tYii::app()->clientScript->registerCssFile($baseUrl . '/magnific-popup.css');\r\n\t\t\tYii::app()->clientScript->registerCoreScript('jquery');\r\n\t\t\tYii::app()->clientScript->registerScriptFile($baseUrl . '/jquery.magnific-popup.js', CClientScript::POS_HEAD);\r\n\t\t} else {\r\n\t\t\tthrow new Exception('XMagnificPopup - Error: Couldn\\'t find assets to publish.');\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "97fa379cf2b9f7f5b0dbc92b1c0e57ad", "score": "0.47659457", "text": "public function scripts()\n {\n /**\n * @var string\n */\n $chunk = $this->params->get('chunk', 'main');\n\n /**\n * @var bool\n */\n $preload = $this->params->bool('preload', false);\n\n /**\n * @var array\n */\n $chunks = ['runtime~'.$chunk, $chunk];\n\n $assets = $this->assetsByExtension($chunks, 'js', false);\n $content = collect($assets)\n ->map(function ($asset) use ($preload) {\n $path = Path::assemble(\n config('statamic.webpack.js_directory'),\n config('statamic.webpack.modern_dist_directory'),\n $asset\n );\n\n $url = Str::ensureLeft($path, '/');\n\n if ($preload === 'module') {\n return '<link rel=\"modulepreload\" href=\"'.$url.'\">';\n }\n\n if ($preload === true) {\n return '<link rel=\"preload\" as=\"script\" href=\"'.$url.'\">';\n }\n\n return '<script type=\"module\" src=\"'.$url.'\"></script>';\n\n })\n ->implode(\"\\n\");\n\n $legacyAssets = $this->assetsByExtension($chunks, 'js', true);\n $content .= collect($legacyAssets)\n ->map(function ($asset) use ($preload) {\n $path = Path::assemble(\n '/',\n config('statamic.webpack.js_directory'),\n config('statamic.webpack.legacy_dist_directory'),\n $asset\n );\n\n $url = Str::ensureLeft($path, '/');\n\n if ($preload !== false) {\n if ($preload === 'module') {\n return null;\n }\n\n return '<link rel=\"preload\" as=\"script\" href=\"'.$url.'\">';\n }\n\n return '<script nomodule src=\"'.$url.'\"></script>';\n\n })\n ->implode(\"\\n\");\n\n return $content;\n }", "title": "" }, { "docid": "1c8d1851eb7d169b5a5bcd00c3ca600d", "score": "0.4757536", "text": "public function render()\n {\n\n $jsPath = $this->config['general.appDir'] . 'public/js/' . $this->view . '.js';\n if (file_exists($jsPath) == true) {\n $this->setJs($this->view);\n }\n $this->vars['viewFile'] = basename($_SERVER['PHP_SELF'], '.php');\n if (isset($this->vars['viewJs']) == false) {\n $this->vars['viewJs'] = array();\n }\n if (file_exists(__DIR__ . 'public/js/'.$this->vars['viewFile'].'.js')) {\n $this->vars['viewJs'][] = $this->vars['viewFile'];\n }\n $this->vars['session'] = $this->pimple['session'];\n extract($this->vars);\n ob_start();\n include($this->viewRootPath);\n $contents = ob_get_contents();\n ob_end_clean();\n\n return $contents;\n\n }", "title": "" }, { "docid": "5c7ca75a451b91741aad3cb439803e12", "score": "0.47538576", "text": "function startTest() {\n\t\t$this->controller =& new Controller();\n\t\t$this->view =& new View($this->controller);\n\n\t\t// Init needed helpers\n\t\t$this->helper = &new DocumentHelper();\n\t\t$this->helper->Html = &new HtmlHelper();\n\n\t\t$this->helper->Fastcode = &new FastcodeHelper();\n\t\t$this->helper->Fastcode->Time = &new TimeHelper();\n\t\t$this->helper->Fastcode->CaracoleHtml = &new CaracoleHtmlHelper();\n\t\t\t$this->helper->Fastcode->CaracoleHtml->Html = $this->helper->Html;\n\t\t\t$this->helper->Fastcode->CaracoleHtml->Fastcode= $this->helper->Fastcode;\n\t\t$this->helper->Fastcode->CaracoleForm = &new CaracoleFormHelper();\n\t\t\t$this->helper->Fastcode->CaracoleForm->Form = &new FormHelper();\n\t\t\t$this->helper->Fastcode->CaracoleForm->Fastcode= $this->helper->Fastcode;\n\t\t$this->helper->Fastcode->Icon = &new IconHelper();\n\t\t\t$this->helper->Fastcode->Icon->Html = $this->helper->Html;\n\n\n\t\t$this->helper->Fastcode->beforeRender();\t// Loads all helpers in Fastcode\n\n\t\t$this->data = array(\n\t\t\t'id' => 'uuid',\n\t\t\t'ext' => 'txt',\n\t\t\t'mimetype' => 'text/plain',\n\t\t\t'filename' => 'foo',\n\t\t\t'filesize' => 3,\n\t\t\t'path' => 'foo/bar/baz/uuid.text'\n\t\t);\n\n\t}", "title": "" }, { "docid": "5d079d351a6e737e279fc3d00aca4aba", "score": "0.47484738", "text": "public function actionTester(){\n //require_once 'composer-source/vendor/autoload.php';\n putenv('COMPOSER_HOME=' . Yii::getAlias('@vendor') . '/composer/bin/composer');\n chdir(__DIR__);\n\n $stream = fopen('php://temp', 'w+');\n $output = new StreamOutput($stream);\n $application = new Application();\n $application->setAutoExit(false);\n\n //$input = new ArrayInput(array('command' => 'require', 'packages' => ['yiisoft/yii2-twig']));\n $input = new ArrayInput(array('command' => 'require yiisoft/yii2-twig'));\n //new ArrayInput(array('command' => 'install'))\n\n $code = $application->run($input, $output);\necho $code;\n var_dump(stream_get_contents($stream));\n die;\n\n }", "title": "" }, { "docid": "03db1aa0d44aa555040bac92a064145e", "score": "0.47403872", "text": "private function customTemplateScripts()\n {\n $this->app['events']->listen('easydcim.assets: template.js', function(\\ArrayObject $scripts) {\n $scripts[] = base_path('modules/addons/CustomModule/templates/admin/default/assets/js/custom-app.js');\n\n return $scripts;\n });\n\n $this->app['events']->listen('easydcim.assets: template.css', function(\\ArrayObject $scripts) {\n $scripts[] = base_path('modules/addons/CustomModule/templates/admin/default/assets/css/style.css');\n\n return $scripts;\n });\n }", "title": "" }, { "docid": "1fd9d5625393702e8fbf3a0faf781c33", "score": "0.4734795", "text": "public function run(): void\n\t{\n\t\tif (preg_match('/^assets\\/web-loader\\/(.+?)(?:\\?v=[0-9a-f]{6})?$/', Url::get()->getRelativeUrl(), $parser) === 1) { // 1.\n\t\t\tif (preg_match(\n\t\t\t\t'/^global-(?<module>[a-zA-Z0-9]+)\\.(?<format>[a-zA-Z0-9]+)$/',\n\t\t\t\t$parser[1],\n\t\t\t\t$globalRouteParser,\n\t\t\t) === 1) {\n\t\t\t\t$format = $globalRouteParser['format'];\n\t\t\t\t$data = $this->findGlobalData($globalRouteParser['module'] . ':Homepage:default');\n\t\t\t} elseif (preg_match(\n\t\t\t\t'/^(?<module>[a-zA-Z0-9]+)-(?<presenter>[a-zA-Z0-9]+)-(?<action>[a-zA-Z0-9]+)\\.(?<format>[a-zA-Z0-9]+)$/',\n\t\t\t\t$parser[1],\n\t\t\t\t$routeParser,\n\t\t\t) === 1) {\n\t\t\t\t$format = $routeParser['format'];\n\t\t\t\t$data = $this->findLocalData(\n\t\t\t\t\tHelpers::formatRoute($routeParser['module'], $routeParser['presenter'], $routeParser['action']),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\techo '/* empty body */';\n\t\t\t\tdie;\n\t\t\t}\n\t\t\tif (isset($this->formatHeaders[$format]) === true) { // 2.\n\t\t\t\theader('Content-Type: ' . $this->formatHeaders[$format]);\n\t\t\t} else {\n\t\t\t\tthrow new \\RuntimeException(\n\t\t\t\t\t'Content type for format \"' . $format . '\" does not exist. '\n\t\t\t\t\t. 'Did you mean \"' . implode('\", \"', array_keys($this->formatHeaders)) . '\"?',\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t$filePaths = [];\n\t\t\t$topModTime = 0;\n\t\t\tif ($data !== []) { // 3.\n\t\t\t\tforeach ($data[$format] ?? [] as $file) {\n\t\t\t\t\tif (preg_match('~^https?://~', $file) === 1) { // do not accept URL\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t$filePath = $this->basePath . '/' . trim($file, '/');\n\t\t\t\t\tif (is_file($filePath) === true) {\n\t\t\t\t\t\t$modificationTime = (int) filemtime($filePath);\n\t\t\t\t\t\tif ($modificationTime > 0 && $modificationTime > $topModTime) {\n\t\t\t\t\t\t\t$topModTime = $modificationTime;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$filePaths[$file] = $filePath;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttrigger_error('File \"' . $file . '\" does not exist. Path: ' . $filePath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$topModTime = $topModTime === 0 ? time() : $topModTime;\n\n\t\t\t$tsString = gmdate('D, d M Y H:i:s ', $topModTime) . 'GMT';\n\t\t\t$etag = 'EN' . $topModTime;\n\n\t\t\tif (\n\t\t\t\t($_SERVER['HTTP_IF_NONE_MATCH'] ?? '') === $etag\n\t\t\t\t&& ($_SERVER['HTTP_IF_MODIFIED_SINCE'] ?? '') === $tsString\n\t\t\t) {\n\t\t\t\theader('HTTP/1.1 304 Not Modified');\n\t\t\t\tdie;\n\t\t\t}\n\t\t\theader('Expires: ' . gmdate('D, d M Y H:i:s \\G\\M\\T', time() + 86_400)); // 1 day\n\t\t\theader('Last-Modified: ' . $tsString);\n\t\t\theader('ETag: \"' . md5($etag) . '\"');\n\n\t\t\techo '/* Path \"' . htmlspecialchars($parser[1]) . '\" was automatically generated '\n\t\t\t\t. date('Y-m-d H:i:s', $topModTime)\n\t\t\t\t. ' */' . \"\\n\\n\"; // 4.\n\n\t\t\tforeach ($filePaths as $file => $filePath) {\n\t\t\t\techo '/* ' . $file . ' */' . \"\\n\";\n\t\t\t\techo $this->minifier->minify(FileSystem::read($filePath), $format);\n\t\t\t\techo \"\\n\\n\";\n\t\t\t}\n\t\t\tdie;\n\t\t}\n\t}", "title": "" }, { "docid": "f7f0117d6ba696dd30f9b383c9a4bd5f", "score": "0.47296518", "text": "public function run()\n {\n $this->registerClientScript();\n $buttons=$this->createPageButtons();\n if(empty($buttons))\n return;\n echo implode(\" \",$buttons);\n }", "title": "" }, { "docid": "5bcca676f85a6e0bc5bd851da12a4d89", "score": "0.47291467", "text": "public function render_tester_page() {\n ob_start();\n require('test.php');\n $asd = ob_get_contents();\n ob_end_clean();\n echo $asd;\n }", "title": "" }, { "docid": "72c84af08aba0e3964a189b82c36a5c8", "score": "0.4719305", "text": "public function injectJSFiles() {\n\n if (count($this->jsFiles) == 0 &&\n count($this->templateJsFiles) == 0 &&\n count($this->jsFunctions) == 0 &&\n !$this->systemJs) return '';\n\n $result = array();\n\n if ($this->systemJs) {\n $result[] = '<script src=\"'. JSURL . '/jquery.js\"></script>';\n $result[] = '<script src=\"'. JSURL . '/md5.js\"></script>';\n $result[] = '<script src=\"'. JSURL . '/html.js\"></script>';\n $result[] = '<script src=\"'. JSURL . '/main.js\"></script>';\n }\n\n foreach ($this->jsFiles as $jsFileName) {\n $jsFileName = T_URL. '/' . $this->moduleName . '/js/' . $jsFileName . '.js';\n $result[] = '<script src=\"'. $jsFileName. '\"></script>';\n }\n\n foreach ($this->templateJsFiles as $jsFileName) {\n $jsFileName = T_JSURL . '/' . $jsFileName . '.js';\n $result[] = '<script src=\"'. $jsFileName. '\"></script>';\n }\n\n foreach ($this->jsFunctions as $jsFunction) {\n $result[] = '<script>' . $jsFunction . '</script>';\n }\n\n return implode(' ', $result);\n }", "title": "" }, { "docid": "3c7b3ba1e81b062a4c4e0b6c2b26db39", "score": "0.47180527", "text": "protected function serveResources(): void\n {\n // Spin up a local server to deliver the resources.\n $this->host = '127.0.0.1:8089';\n $this->url = \"http://{$this->host}\";\n $this->serverDir = __DIR__.'/resources';\n\n $this->servingProcess = new Process(['php', '-S', $this->host, '-t', $this->serverDir]);\n $this->servingProcess->start();\n }", "title": "" }, { "docid": "191c6cc1103049e741af103550649b3f", "score": "0.47075045", "text": "function ciniki_web_generatePageCourses($ciniki, $settings) {\n\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'processContent');\n //\n // Check if a file was specified to be downloaded\n //\n $download_err = '';\n if( isset($ciniki['tenant']['modules']['ciniki.courses'])\n && isset($ciniki['request']['uri_split'][0]) && $ciniki['request']['uri_split'][0] == 'download'\n && isset($ciniki['request']['uri_split'][1]) && $ciniki['request']['uri_split'][1] != '' ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'courses', 'web', 'fileDownload');\n $rc = ciniki_courses_web_fileDownload($ciniki, $ciniki['request']['tnid'], $ciniki['request']['uri_split'][1]);\n if( $rc['stat'] == 'ok' ) {\n header(\"Expires: Mon, 26 Jul 1997 05:00:00 GMT\");\n header(\"Last-Modified: \" . gmdate(\"D,d M YH:i:s\") . \" GMT\");\n header('Cache-Control: no-cache, must-revalidate');\n header('Pragma: no-cache');\n $file = $rc['file'];\n if( $file['extension'] == 'pdf' ) {\n header('Content-Type: application/pdf');\n }\n// header('Content-Disposition: attachment;filename=\"' . $file['filename'] . '\"');\n header('Content-Length: ' . strlen($file['binary_content']));\n header('Cache-Control: max-age=0');\n\n print $file['binary_content'];\n exit;\n }\n \n //\n // If there was an error locating the files, display generic error\n //\n return array('stat'=>'404', 'err'=>array('code'=>'ciniki.web.30', 'msg'=>'The file you requested does not exist.'));\n }\n\n //\n // Store the content created by the page\n // Make sure everything gets generated ok before returning the content\n //\n $content = '';\n $page_content = '';\n $page_title = 'Exhibitors';\n\n //\n // FIXME: Check if anything has changed, and if not load from cache\n //\n\n //\n // Check if there should be a submenu\n //\n $submenu = array();\n $first_course_cat = '';\n $first_course_type = '';\n if( isset($ciniki['tenant']['modules']['ciniki.courses']) ) {\n if( isset($settings['page-courses-submenu-categories']) && $settings['page-courses-submenu-categories'] == 'yes' ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'courses', 'web', 'categories');\n $rc = ciniki_courses_web_categories($ciniki, $settings, $ciniki['request']['tnid']);\n if( $rc['stat'] == 'ok' ) {\n if( count($rc['categories']) > 1 ) {\n foreach($rc['categories'] as $cid => $cat) {\n if( $first_course_cat == '' ) {\n $first_course_cat = $cat['name'];\n }\n if( $cat['name'] != '' ) {\n $submenu[$cid] = array('name'=>$cat['name'], 'url'=>$ciniki['request']['base_url'] . \"/courses/\" . urlencode($cat['name']));\n }\n }\n } elseif( count($rc['categories']) == 1 ) {\n $first_cat = array_pop($rc['categories']);\n $first_course_cat = $first_type['name'];\n }\n }\n } else {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'courses', 'web', 'courseTypes');\n $rc = ciniki_courses_web_courseTypes($ciniki, $settings, $ciniki['request']['tnid']);\n if( $rc['stat'] == 'ok' ) {\n if( count($rc['types']) > 1 ) {\n foreach($rc['types'] as $cid => $type) {\n if( $first_course_type == '' ) {\n $first_course_type = $type['name'];\n }\n if( $type != '' ) {\n $submenu[$cid] = array('name'=>$type['name'], 'url'=>$ciniki['request']['base_url'] . \"/courses/\" . urlencode($type['name']));\n }\n }\n } elseif( count($rc['types']) == 1 ) {\n $first_type = array_pop($rc['types']);\n $first_course_type = $first_type['name'];\n }\n }\n }\n if( ($ciniki['tenant']['modules']['ciniki.courses']['flags']&0x02) == 0x02 ) {\n $submenu['instructors'] = array('name'=>'Instructors', 'url'=>$ciniki['request']['base_url'] . '/courses/instructors');\n }\n if( isset($settings['page-courses-registration-active']) && $settings['page-courses-registration-active'] == 'yes' ) {\n $submenu['registration'] = array('name'=>'Registration', 'url'=>$ciniki['request']['base_url'] . '/courses/registration');\n }\n }\n\n //\n // Check if we are to display the gallery image for an members\n //\n //\n // Check if we are to display an image, from the gallery, or latest images\n //\n if( isset($ciniki['request']['uri_split'][0]) && $ciniki['request']['uri_split'][0] == 'instructor' \n && isset($ciniki['request']['uri_split'][1]) && $ciniki['request']['uri_split'][1] != '' \n && isset($ciniki['request']['uri_split'][2]) && $ciniki['request']['uri_split'][2] == 'gallery' \n && isset($ciniki['request']['uri_split'][3]) && $ciniki['request']['uri_split'][3] != '' \n ) {\n $instructor_permalink = $ciniki['request']['uri_split'][1];\n $image_permalink = $ciniki['request']['uri_split'][3];\n $gallery_url = $ciniki['request']['base_url'] . \"/courses/instructor/\" . $instructor_permalink . \"/gallery\";\n\n //\n // Load the member to get all the details, and the list of images.\n // It's one query, and we can find the requested image, and figure out next\n // and prev from the list of images returned\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'courses', 'web', 'instructorDetails');\n $rc = ciniki_courses_web_instructorDetails($ciniki, $settings, \n $ciniki['request']['tnid'], $instructor_permalink);\n if( $rc['stat'] != 'ok' ) {\n return array('stat'=>'404', 'err'=>array('code'=>'ciniki.web.31', 'msg'=>\"I'm sorry, but we can't seem to find the image you requested.\", $rc['err']));\n }\n $instructor = $rc['instructor'];\n\n if( !isset($instructor['images']) || count($instructor['images']) < 1 ) {\n return array('stat'=>'404', 'err'=>array('code'=>'ciniki.web.32', 'msg'=>\"I'm sorry, but we can't seem to find the image you requested.\"));\n }\n\n $first = NULL;\n $last = NULL;\n $img = NULL;\n $next = NULL;\n $prev = NULL;\n foreach($instructor['images'] as $iid => $image) {\n if( $first == NULL ) {\n $first = $image;\n }\n if( $image['permalink'] == $image_permalink ) {\n $img = $image;\n } elseif( $next == NULL && $img != NULL ) {\n $next = $image;\n } elseif( $img == NULL ) {\n $prev = $image;\n }\n $last = $image;\n }\n\n if( count($instructor['images']) == 1 ) {\n $prev = NULL;\n $next = NULL;\n } elseif( $prev == NULL ) {\n // The requested image was the first in the list, set previous to last\n $prev = $last;\n } elseif( $next == NULL ) {\n // The requested image was the last in the list, set previous to last\n $next = $first;\n }\n \n if( $img['title'] != '' ) {\n $page_title = $instructor['name'] . ' - ' . $img['title'];\n } else {\n $page_title = $instructor['name'];\n }\n\n if( $img == NULL ) {\n return array('stat'=>'404', 'err'=>array('code'=>'ciniki.web.33', 'msg'=>\"I'm sorry, but we can't seem to find the image you requested.\"));\n }\n //\n // Load the image\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'getScaledImageURL');\n $rc = ciniki_web_getScaledImageURL($ciniki, $img['image_id'], 'original', 0, 600);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $img_url = $rc['url'];\n\n //\n // Set the page to wide if possible\n //\n $ciniki['request']['page-container-class'] = 'page-container-wide';\n\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'generateGalleryJavascript');\n $rc = ciniki_web_generateGalleryJavascript($ciniki, $next, $prev);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $ciniki['request']['inline_javascript'] = $rc['javascript'];\n\n $ciniki['request']['onresize'] = \"gallery_resize_arrows();\";\n $ciniki['request']['onload'] = \"scrollto_header();\";\n $page_content .= \"<article class='page'>\\n\"\n . \"<header class='entry-title'><h1 id='entry-title' class='entry-title'>$page_title</h1></header>\\n\"\n . \"<div class='entry-content'>\\n\"\n . \"\";\n $page_content .= \"<div id='gallery-image' class='gallery-image'>\";\n $page_content .= \"<div id='gallery-image-wrap' class='gallery-image-wrap'>\";\n if( $prev != null ) {\n $page_content .= \"<a id='gallery-image-prev' class='gallery-image-prev' href='$gallery_url/\" . $prev['permalink'] . \"'><div id='gallery-image-prev-img'></div></a>\";\n }\n if( $next != null ) {\n $page_content .= \"<a id='gallery-image-next' class='gallery-image-next' href='$gallery_url/\" . $next['permalink'] . \"'><div id='gallery-image-next-img'></div></a>\";\n }\n $page_content .= \"<img id='gallery-image-img' title='\" . $img['title'] . \"' alt='\" . $img['title'] . \"' src='\" . $img_url . \"' onload='javascript: gallery_resize_arrows();' />\";\n $page_content .= \"</div><br/>\"\n . \"<div id='gallery-image-details' class='gallery-image-details'>\"\n . \"<span class='image-title'>\" . $img['title'] . '</span>'\n . \"<span class='image-details'></span>\";\n if( $img['description'] != '' ) {\n $page_content .= \"<span class='image-description'>\" . preg_replace('/\\n/', '<br/>', $img['description']) . \"</span>\";\n }\n $page_content .= \"</div></div>\";\n $page_content .= \"</div></article>\";\n }\n\n //\n // Check if we are to display an instructor page\n //\n elseif( isset($ciniki['request']['uri_split'][0]) && $ciniki['request']['uri_split'][0] == 'instructor'\n && isset($ciniki['request']['uri_split'][1]) && $ciniki['request']['uri_split'][1] != '' ) {\n\n ciniki_core_loadMethod($ciniki, 'ciniki', 'courses', 'web', 'instructorDetails');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'processURL');\n //\n // Get the instructor information\n //\n $instructor_permalink = $ciniki['request']['uri_split'][1];\n $rc = ciniki_courses_web_instructorDetails($ciniki, $settings, \n $ciniki['request']['tnid'], $instructor_permalink);\n if( $rc['stat'] != 'ok' ) {\n return array('stat'=>'404', 'err'=>array('code'=>'ciniki.web.34', 'msg'=>\"I'm sorry, but we can't find the instructor you requested.\", $rc['err']));\n }\n $instructor = $rc['instructor'];\n $page_title = $instructor['name'];\n $page_content .= \"<article class='page'>\\n\"\n . \"<header class='entry-title'><h1 class='entry-title'>\" . $instructor['name'] . \"</h1></header>\\n\"\n . \"\";\n\n //\n // Add primary image\n //\n if( isset($instructor['image_id']) && $instructor['image_id'] > 0 ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'getScaledImageURL');\n $rc = ciniki_web_getScaledImageURL($ciniki, $instructor['image_id'], 'original', '500', 0);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= \"<aside><div class='image-wrap'><div class='image'>\"\n . \"<img title='' alt='\" . $instructor['name'] . \"' src='\" . $rc['url'] . \"' />\"\n . \"</div></div></aside>\";\n }\n \n //\n // Add description\n //\n if( isset($instructor['full_bio']) ) {\n $rc = ciniki_web_processContent($ciniki, $settings, $instructor['full_bio']); \n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= $rc['content'];\n }\n\n if( isset($instructor['url']) ) {\n $rc = ciniki_web_processURL($ciniki, $instructor['url']);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $url = $rc['url'];\n $display_url = $rc['display'];\n } else {\n $url = '';\n }\n\n if( $url != '' ) {\n $page_content .= \"<br/>Website: <a class='members-url' target='_blank' href='\" . $url . \"' title='\" . $instructor['name'] . \"'>\" . $display_url . \"</a>\";\n }\n $page_content .= \"</article>\";\n\n if( isset($instructor['images']) && count($instructor['images']) > 0 ) {\n $page_content .= \"<article class='page'>\" \n . \"<header class='entry-title'><h1 class='entry-title'>Gallery</h1></header>\\n\"\n . \"\";\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'generatePageGalleryThumbnails');\n $img_base_url = $ciniki['request']['base_url'] . \"/courses/instructor/\" . $instructor['permalink'] . \"/gallery\";\n $rc = ciniki_web_generatePageGalleryThumbnails($ciniki, $settings, $img_base_url, $instructor['images'], 125);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= \"<div class='image-gallery'>\" . $rc['content'] . \"</div>\";\n $page_content .= \"</article>\";\n }\n }\n\n //\n // Check if we are to display a list of instructors\n //\n elseif( isset($ciniki['request']['uri_split'][0]) && $ciniki['request']['uri_split'][0] == 'instructors' ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'courses', 'web', 'instructorList');\n $rc = ciniki_courses_web_instructorList($ciniki, $settings, $ciniki['request']['tnid'], 0);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $instructors = $rc['instructors'];\n\n $page_content .= \"<article class='page'>\\n\"\n . \"<header class='entry-title'><h1 class='entry-title'>Instructors</h1></header>\\n\"\n . \"<div class='entry-content'>\\n\"\n . \"\";\n\n if( count($instructors) > 0 ) {\n foreach($instructors as $inum => $instructor) {\n $page_content .= \"<table class='cilist'><tbody><tr><th><span class='cilist-category'>\" . $instructor['name'] . \"</span></th><td>\\n\";\n $page_content .= \"<table class='cilist-categories'><tbody>\\n\";\n $instructor_url = $ciniki['request']['base_url'] . \"/courses/instructor/\" . $instructor['permalink'];\n\n // Setup the instructor image\n if( isset($instructor['is_details']) && $instructor['is_details'] == 'yes' ) {\n $page_content .= \"<tr><td class='cilist-image' rowspan='2'>\";\n } else {\n $page_content .= \"<tr><td class='cilist-image'>\";\n }\n if( isset($instructor['image_id']) && $instructor['image_id'] > 0 ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'getScaledImageURL');\n $rc = ciniki_web_getScaledImageURL($ciniki, $instructor['image_id'], 'thumbnail', '150', 0);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= \"<div class='image-cilist-thumbnail'>\"\n . \"<a href='$instructor_url' title='\" . $instructor['name'] . \"'><img title='' alt='\" . $instructor['name'] . \"' src='\" . $rc['url'] . \"' /></a>\"\n . \"</div></aside>\";\n }\n $page_content .= \"</td>\";\n\n // Setup the details\n $page_content .= \"<td class='cilist-details'>\";\n if( isset($instructor['short_bio']) && $instructor['short_bio'] != '' ) {\n $page_content .= \"<p class='cilist-description'>\" . $instructor['short_bio'] . \"</p>\";\n }\n $page_content .= \"</td></tr>\";\n if( isset($instructor['is_details']) && $instructor['is_details'] == 'yes' ) {\n $page_content .= \"<tr><td class='cilist-more'><a href='$instructor_url'>... more</a></td></tr>\";\n }\n $page_content .= \"</tbody></table>\";\n $page_content .= \"</td></tr>\\n</tbody></table>\\n\";\n }\n\n } else {\n $page_content .= \"<p>Currently no instructors.</p>\";\n }\n\n $page_content .= \"</div>\\n\"\n . \"</article>\\n\"\n . \"\";\n\n }\n\n //\n // Check if we are to display a course detail page\n //\n elseif( isset($ciniki['request']['uri_split'][0]) && $ciniki['request']['uri_split'][0] == 'course'\n && isset($ciniki['request']['uri_split'][1]) && $ciniki['request']['uri_split'][1] != '' \n && isset($ciniki['request']['uri_split'][2]) && $ciniki['request']['uri_split'][2] != '' ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'courses', 'web', 'courseOfferingDetails');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'processURL');\n\n //\n // Get the course information\n //\n $course_permalink = $ciniki['request']['uri_split'][1];\n $offering_permalink = $ciniki['request']['uri_split'][2];\n $rc = ciniki_courses_web_courseOfferingDetails($ciniki, $settings, \n $ciniki['request']['tnid'], $course_permalink, $offering_permalink);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $offering = $rc['offering'];\n $page_title = $offering['name'];\n if( ($ciniki['tenant']['modules']['ciniki.courses']['flags']&0x01) == 0x01 && $offering['code'] != '' ) {\n $page_title = $offering['code'] . ' - ' . $offering['name'];\n } elseif( ($ciniki['tenant']['modules']['ciniki.courses']['flags']&0x20) == 0x20 && $offering['offering_code'] != '' ) {\n $page_title = $offering['offering_code'] . ' - ' . $offering['name'];\n }\n if( isset($settings['page-courses-level-display']) \n && $settings['page-courses-level-display'] == 'yes' \n && isset($offering['level']) && $offering['level'] != ''\n ) {\n $page_title .= ' - ' . $offering['level'];\n }\n $page_content .= \"<article class='page'>\\n\"\n . \"<header class='entry-title'><h1 class='entry-title'>\" . $page_title . \"</h1></header>\\n\"\n . \"\";\n\n //\n // Add primary image\n //\n if( isset($offering['image_id']) && $offering['image_id'] > 0 ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'getScaledImageURL');\n $rc = ciniki_web_getScaledImageURL($ciniki, $offering['image_id'], 'original', '500', 0);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= \"<aside><div class='image-wrap'><div class='image'>\"\n . \"<img title='' alt='\" . $offering['name'] . \"' src='\" . $rc['url'] . \"' />\"\n . \"</div></div></aside>\";\n }\n \n //\n // Add description\n //\n if( isset($offering['long_description']) ) {\n $rc = ciniki_web_processContent($ciniki, $settings, $offering['long_description']); \n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= \"<div class='entry-content'>\" \n . $rc['content'];\n }\n\n //\n // List the prices for the course\n //\n if( isset($offering['prices']) && count($offering['prices']) > 0 ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'cartSetupPrices');\n $rc = ciniki_web_cartSetupPrices($ciniki, $settings, $ciniki['request']['tnid'], $offering['prices']);\n if( $rc['stat'] != 'ok' ) {\n error_log(\"Error in formatting prices.\");\n } else {\n $page_content .= $rc['content'];\n }\n/* $page_content .= \"<h2>Price</h2><p>\";\n foreach($offering['prices'] as $pid => $price) {\n if( $price['name'] != '' ) {\n $page_content .= $price['name'] . \" - \" . $price['unit_amount_display'] . \"<br/>\";\n } else {\n $page_content .= $price['unit_amount_display'] . \"<br/>\";\n }\n }\n $page_content .= \"</p>\"; */\n }\n\n //\n // The classes for a course offering\n //\n if( isset($offering['classes']) && count($offering['classes']) > 1 ) {\n $page_content .= \"<h2>Classes</h2><p>\";\n foreach($offering['classes'] as $cid => $class) {\n $page_content .= $class['class_date'] . \" \" . $class['start_time'] . \" - \" . $class['end_time'] . \"<br/>\";\n }\n $page_content .= \"</p>\";\n } elseif( isset($offering['classes']) && count($offering['classes']) == 1 ) {\n $page_content .= \"<h2>Date</h2><p>\";\n $page_content .= \"<p>\" . $offering['condensed_date'] . \"</p>\";\n }\n\n //\n // The files for a course offering\n //\n if( ($ciniki['tenant']['modules']['ciniki.courses']['flags']&0x08) == 0x08 ) {\n if( isset($offering['files']) ) {\n $page_content .= \"<h2>Files</h2>\";\n foreach($offering['files'] as $fid => $file) {\n// $page_content .= $file['name'];\n// $file = $file['file'];\n $url = $ciniki['request']['base_url'] . '/courses/download/' . $file['permalink'] . '.' . $file['extension'];\n $page_content .= \"<p><a target='_blank' href='\" . $url . \"' title='\" . $file['name'] . \"'>\" . $file['name'] . \"</a></p>\";\n }\n }\n }\n $page_content .= \"</div>\";\n\n //\n // The instructors for a course offering\n //\n if( ($ciniki['tenant']['modules']['ciniki.courses']['flags']&0x02) == 0x02 ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'courses', 'web', 'instructorList');\n $rc = ciniki_courses_web_instructorList($ciniki, $settings, $ciniki['request']['tnid'], $offering['id']);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $instructors = $rc['instructors'];\n \n $page_content .= \"<div class='entry-content clearboth'>\";\n if( count($instructors) > 1 ) {\n $page_content .= \"<h2>Instructors</h2>\";\n } else {\n $page_content .= \"<h2>Instructor</h2>\";\n }\n $page_content .= \"<table class='cilist'><tbody>\";\n foreach($instructors as $iid => $instructor) {\n $page_content .= \"<tr><th><span class='cilist-category'>\" . $instructor['name'] . \"</span></th><td>\\n\";\n $page_content .= \"<table class='cilist-categories'><tbody>\\n\";\n $instructor_url = $ciniki['request']['base_url'] . \"/courses/instructor/\" . $instructor['permalink'];\n\n // Setup the instructor image\n if( isset($instructor['is_details']) && $instructor['is_details'] == 'yes' ) {\n $page_content .= \"<tr><td class='cilist-image' rowspan='2'>\";\n } else {\n $page_content .= \"<tr><td class='cilist-image'>\";\n }\n if( isset($instructor['image_id']) && $instructor['image_id'] > 0 ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'getScaledImageURL');\n $rc = ciniki_web_getScaledImageURL($ciniki, $instructor['image_id'], 'thumbnail', '150', 0);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= \"<div class='image-cilist-thumbnail'>\"\n . \"<a href='$instructor_url' title='\" . $instructor['name'] . \"'><img title='' alt='\" . $instructor['name'] . \"' src='\" . $rc['url'] . \"' /></a>\"\n . \"</div></aside>\";\n }\n $page_content .= \"</td>\";\n\n // Setup the details\n $page_content .= \"<td class='cilist-details'>\";\n if( isset($instructor['short_bio']) && $instructor['short_bio'] != '' ) {\n $page_content .= \"<p class='cilist-description'>\" . $instructor['short_bio'] . \"</p>\";\n }\n $page_content .= \"</td></tr>\";\n if( isset($instructor['is_details']) && $instructor['is_details'] == 'yes' ) {\n $page_content .= \"<tr><td class='cilist-more'><a href='$instructor_url'>... more</a></td></tr>\";\n }\n $page_content .= \"</tbody></table>\";\n $page_content .= \"</td></tr>\\n\";\n }\n $page_content .= \"</tbody></table>\\n\";\n $page_content .= \"</div>\\n\";\n }\n\n if( ciniki_core_checkModuleFlags($ciniki, 'ciniki.courses', 0x0200) && isset($offering['images']) ) {\n $page_content .= \"<h2>Gallery</h2>\";\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'generatePageGalleryThumbnails');\n $img_base_url = $ciniki['request']['base_url'] . \"/courses/course/\" . $course_permalink . '/' . $offering_permalink . \"/gallery\";\n $rc = ciniki_web_generatePageGalleryThumbnails($ciniki, $settings, $img_base_url, $offering['images'], 125);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= \"<div class='image-gallery'>\" . $rc['content'] . \"</div>\";\n }\n\n $page_content .= \"</article>\";\n }\n\n //\n // Check if we are to display a registration detail page\n //\n elseif( isset($ciniki['request']['uri_split'][0]) && $ciniki['request']['uri_split'][0] == 'registration' \n && isset($settings['page-courses-registration-active']) && $settings['page-courses-registration-active'] == 'yes'\n ) {\n //\n // Check if membership info should be displayed here\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'courses', 'web', 'registrationDetails');\n $rc = ciniki_courses_web_registrationDetails($ciniki, $settings, $ciniki['request']['tnid']);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $registration = $rc['registration'];\n if( $registration['details'] != '' ) {\n $page_content .= \"<article class='page'>\\n\"\n . \"<header class='entry-title'><h1 class='entry-title'>Registration</h1></header>\\n\"\n . \"<div class='entry-content'>\\n\"\n . \"\";\n if( isset($settings[\"page-courses-registration-image\"]) && $settings[\"page-courses-registration-image\"] != '' && $settings[\"page-courses-registration-image\"] > 0 ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'getScaledImageURL');\n $rc = ciniki_web_getScaledImageURL($ciniki, $settings[\"page-courses-registration-image\"], 'original', '500', 0);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= \"<aside><div class='image-wrap'>\"\n . \"<div class='image'><img title='' alt='\" . $ciniki['tenant']['details']['name'] . \"' src='\" . $rc['url'] . \"' /></div>\";\n if( isset($settings[\"page-courses-registration-image-caption\"]) && $settings[\"page-courses-registration-image-caption\"] != '' ) {\n $page_content .= \"<div class='image-caption'>\" . $settings[\"page-courses-registration-image-caption\"] . \"</div>\";\n }\n $page_content .= \"</div></aside>\";\n }\n $rc = ciniki_web_processContent($ciniki, $settings, $registration['details']); \n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= $rc['content'];\n\n foreach($registration['files'] as $fid => $file) {\n $file = $file['file'];\n $url = $ciniki['request']['base_url'] . '/courses/download/' . $file['permalink'] . '.' . $file['extension'];\n $page_content .= \"<p><a target='_blank' href='\" . $url . \"' title='\" . $file['name'] . \"'>\" . $file['name'] . \"</a></p>\";\n }\n \n if( isset($registration['more-details']) && $registration['more-details'] != '' ) {\n $rc = ciniki_web_processContent($ciniki, $settings, $registration['more-details']); \n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= $rc['content'];\n }\n $page_content .= \"</div>\\n\"\n . \"</article>\";\n }\n }\n\n //\n // Generate the list of courses upcoming, current, past\n //\n else {\n $coursecategory = '';\n $coursetype = '';\n if( isset($ciniki['request']['uri_split'][0]) && $ciniki['request']['uri_split'][0] != '' ) {\n $coursetype = urldecode($ciniki['request']['uri_split'][0]);\n// } elseif( $first_course_type != '' ) {\n// $coursetype = $first_course_type;\n }\n // Setup default settings\n if( !isset($settings['page-courses-upcoming-active']) ) {\n $settings['page-courses-upcoming-active'] = 'yes';\n }\n if( !isset($settings['page-courses-current-active']) ) {\n $settings['page-courses-current-active'] = 'no';\n }\n if( !isset($settings['page-courses-past-active']) ) {\n $settings['page-courses-past-active'] = 'no';\n }\n //\n //\n // Check for content in settings\n //\n if( $coursetype != '' ) {\n $type_name = '-' . preg_replace('/[^a-z0-9]/', '', strtolower($coursetype));\n } else {\n $type_name = '';\n }\n // Load any content for this page\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbDetailsQueryDash');\n $rc = ciniki_core_dbDetailsQueryDash($ciniki, 'ciniki_web_content', 'tnid', $ciniki['request']['tnid'], 'ciniki.web', 'content', \"page-courses$type_name\");\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $cnt = $rc['content'];\n\n if( isset($settings['page-courses' . $type_name . '-image']) \n || isset($cnt['page-courses' . $type_name . '-content']) \n ) {\n $page_content .= \"<article class='page'>\\n\"\n// . \"<header class='entry-title'><h1 class='entry-title'>Registration</h1></header>\\n\"\n . \"<div class='entry-content'>\\n\"\n . \"\";\n \n // Check if there are files to be displayed on the main page\n $program_url = '';\n if( $type_name == '' && (isset($settings['page-courses-catalog-download-active']) \n && $settings['page-courses-catalog-download-active'] == 'yes' )\n // || () -- future files\n ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'courses', 'web', 'files');\n $rc = ciniki_courses_web_files($ciniki, $settings, $ciniki['request']['tnid']);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( isset($rc['files']) ) {\n $reg_files = $rc['files'];\n // Check if program brochure download and link to image\n if( count($reg_files) == 1 && isset($reg_files[0]['file']['permalink']) && $reg_files[0]['file']['permalink'] != '' ) {\n $program_url = $ciniki['request']['base_url'] . '/courses/download/' . $reg_files[0]['file']['permalink'] . '.' . $reg_files[0]['file']['extension'];\n $program_url_title = $reg_files[0]['file']['name'];\n }\n } else {\n $reg_files = array();\n }\n }\n if( isset($settings[\"page-courses\" . $type_name . \"-image\"]) && $settings[\"page-courses\" . $type_name . \"-image\"] != '' && $settings[\"page-courses\" . $type_name . \"-image\"] > 0 ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'getScaledImageURL');\n $rc = ciniki_web_getScaledImageURL($ciniki, $settings[\"page-courses\" . $type_name . \"-image\"], 'original', '500', 0);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= \"<aside><div class='image-wrap'>\"\n . \"<div class='image'>\";\n if( $program_url != '' ) {\n $page_content .= \"<a target='_blank' href='$program_url' title='$program_url_title'>\";\n }\n $page_content .= \"<img title='' alt='\" . $ciniki['tenant']['details']['name'] . \"' src='\" . $rc['url'] . \"' />\";\n if( $program_url != '' ) {\n $page_content .= \"</a>\";\n }\n $page_content .= \"</div>\";\n if( isset($settings[\"page-courses\" . $type_name . \"-image-caption\"]) && $settings[\"page-courses\" . $type_name . \"-image-caption\"] != '' ) {\n $page_content .= \"<div class='image-caption'>\" . $settings[\"page-courses\" . $type_name . \"-image-caption\"] . \"</div>\";\n }\n $page_content .= \"</div></aside>\";\n }\n if( isset($cnt['page-courses' . $type_name . '-content']) ) {\n $rc = ciniki_web_processContent($ciniki, $settings, $cnt['page-courses' . $type_name . '-content']); \n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= $rc['content'];\n }\n\n // Check if there are files to be displayed on the main page\n if( $type_name == '' && (isset($settings['page-courses-catalog-download-active']) \n && $settings['page-courses-catalog-download-active'] == 'yes' )\n // || () -- future files\n ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'courses', 'web', 'files');\n $rc = ciniki_courses_web_files($ciniki, $settings, $ciniki['request']['tnid']);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( isset($rc['files']) ) {\n foreach($rc['files'] as $f => $file) {\n $file = $file['file'];\n $url = $ciniki['request']['base_url'] . '/courses/download/' \n . $file['permalink'] . '.' . $file['extension'];\n $page_content .= \"<p>\"\n . \"<a target='_blank' href='\" . $url . \"' title='\" . $file['name'] . \"'>\" \n . $file['name'] . \"</a></p>\";\n }\n }\n }\n \n $page_content .= \"</div>\\n\"\n . \"</article>\";\n }\n\n ciniki_core_loadMethod($ciniki, 'ciniki', 'courses', 'web', 'courseList');\n foreach(array('current', 'upcoming', 'past') as $type) {\n if( $settings[\"page-courses-$type-active\"] != 'yes' ) {\n continue;\n }\n if( $type == 'past' ) {\n if( $settings['page-courses-current-active'] == 'yes' ) {\n // If displaying the current list, then show past as purely past.\n $rc = ciniki_courses_web_courseList($ciniki, $settings, $ciniki['request']['tnid'], $coursetype, $type);\n } else {\n // Otherwise, include current courses in the past\n $rc = ciniki_courses_web_courseList($ciniki, $settings, $ciniki['request']['tnid'], $coursetype, 'currentpast');\n }\n } else {\n $rc = ciniki_courses_web_courseList($ciniki, $settings, $ciniki['request']['tnid'], $coursetype, $type);\n }\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $categories = $rc['categories'];\n\n if( isset($settings[\"page-courses-$type-name\"]) && $settings[\"page-courses-$type-name\"] != '' ) {\n $name = $settings[\"page-courses-$type-name\"];\n } else {\n $name = ucwords($type . \"\");\n }\n $page_content .= \"<article class='page'>\\n\"\n . \"<header class='entry-title'><h1 class='entry-title'>$name</h1></header>\\n\"\n . \"<div class='entry-content'>\\n\"\n . \"\";\n\n if( count($categories) > 0 ) {\n $page_content .= \"<table class='clist'>\\n\"\n . \"\";\n $prev_category = NULL;\n $num_categories = count($categories);\n foreach($categories as $cnum => $c) {\n if( $prev_category != NULL ) {\n $page_content .= \"</td></tr>\\n\";\n }\n $hide_dates = 'no';\n if( isset($c['name']) && $c['name'] != '' ) {\n $page_content .= \"<tr><th>\"\n . \"<span class='clist-category'>\" . $c['name'] . \"</span></th>\"\n . \"<td>\";\n // $content .= \"<h2>\" . $c['cname'] . \"</h2>\";\n } elseif( $num_categories == 1 && count($c) > 0) {\n // Only the blank category\n $offering = reset($c['offerings']);\n $page_content .= \"<tr><th>\"\n . \"<span class='clist-category'>\" . $offering['condensed_date'] . \"</span></th>\"\n . \"<td>\";\n $hide_dates = 'yes';\n } else {\n $page_content .= \"<tr><th>\"\n . \"<span class='clist-category'></span></th>\"\n . \"<td>\";\n }\n foreach($c['offerings'] as $onum => $offering) {\n if( isset($offering['is_details']) && $offering['is_details'] == 'yes' ) {\n $offering_url = $ciniki['request']['base_url'] . '/courses/course/' . $offering['course_permalink'] . '/' . $offering['permalink'];\n } else {\n $offering_url = '';\n }\n if( ($ciniki['tenant']['modules']['ciniki.courses']['flags']&0x01) == 0x01 && $offering['code'] != '' ) {\n $offering_name = $offering['code'] . ' - ' . $offering['name'];\n } elseif( ($ciniki['tenant']['modules']['ciniki.courses']['flags']&0x20) == 0x20 && $offering['offering_code'] != '' ) {\n $offering_name = $offering['offering_code'] . ' - ' . $offering['name'];\n } else {\n $offering_name = $offering['name'];\n }\n if( isset($settings['page-courses-level-display']) \n && $settings['page-courses-level-display'] == 'yes' \n && isset($offering['level']) && $offering['level'] != ''\n ) {\n $offering_name .= ' - ' . $offering['level'];\n }\n\n if( $offering_url != '' ) {\n $page_content .= \"<a href='$offering_url'><p class='clist-title'>\" . $offering_name . \"</p></a>\";\n } else {\n $page_content .= \"<p class='clist-title'>\" . $offering_name . \"</p>\";\n }\n if( $hide_dates != 'yes' ) {\n $page_content .= \"<p class='clist-subtitle'>\" . $offering['condensed_date'] . \"</p>\";\n }\n $rc = ciniki_web_processContent($ciniki, $settings, $offering['short_description'], 'clist-description'); \n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= $rc['content'];\n // $page_content .= \"<p class='clist-description'>\" . $rc['content'] . \"</p>\";\n if( $offering_url != '' ) {\n $page_content .= \"<p class='clist-url clist-more'><a href='\" . $offering_url . \"'>... more</a></p>\";\n }\n }\n }\n } else {\n $page_content .= \"<p>No \" . strtolower($name) . \" found</p>\";\n }\n $page_content .= \"</td></tr>\\n</table>\\n\";\n $page_content .= \"</div>\\n\"\n . \"</article>\\n\"\n . \"\";\n }\n //\n // Check if no submenu going to be displayed, then need to display registration information here\n //\n if( count($submenu) == 1 \n && isset($settings['page-courses-registration-active']) && $settings['page-courses-registration-active'] == 'yes' ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'courses', 'web', 'registrationDetails');\n $rc = ciniki_courses_web_registrationDetails($ciniki, $settings, $ciniki['request']['tnid']);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $registration = $rc['registration'];\n if( $registration['details'] != '' ) {\n // Check for a programs pdf, and link to image if it exists\n $program_url = '';\n if( isset($registration['files']) && count($registration['files']) == 1 ) {\n if( isset($registration['files'][0]['file']['permalink']) && $registration['files'][0]['file']['permalink'] != '' ) {\n $program_url = $ciniki['request']['base_url'] . '/courses/download/' . $registration['files'][0]['file']['permalink'] . '.' . $registration['files'][0]['file']['extension'];\n $program_url_title = $registration['files'][0]['file']['name'];\n }\n }\n $page_content .= \"<article class='page'>\\n\"\n . \"<header class='entry-title'><h1 class='entry-title'>Registration</h1></header>\\n\"\n . \"<div class='entry-content'>\\n\"\n . \"\";\n if( isset($settings[\"page-courses-registration-image\"]) && $settings[\"page-courses-registration-image\"] != '' && $settings[\"page-courses-registration-image\"] > 0 ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'getScaledImageURL');\n $rc = ciniki_web_getScaledImageURL($ciniki, $settings[\"page-courses-registration-image\"], 'original', '500', 0);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= \"<aside><div class='image-wrap'>\"\n . \"<div class='image'>\";\n if( $program_url != '' ) {\n $page_content .= \"<a target='_blank' href='$program_url' title='$program_url_title'>\";\n }\n $page_content .= \"<img title='' alt='\" . $ciniki['tenant']['details']['name'] . \"' src='\" . $rc['url'] . \"' />\";\n if( $program_url != '' ) {\n $page_content .= \"</a>\";\n }\n\n $page_content .= \"</div>\";\n if( isset($settings[\"page-courses-registration-image-caption\"]) && $settings[\"page-courses-registration-image-caption\"] != '' ) {\n $page_content .= \"<div class='image-caption'>\" . $settings[\"page-courses-registration-image-caption\"] . \"</div>\";\n }\n $page_content .= \"</div></aside>\";\n }\n $rc = ciniki_web_processContent($ciniki, $settings, $registration['details']); \n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= $rc['content'];\n\n foreach($registration['files'] as $fid => $file) {\n $file = $file['file'];\n $url = $ciniki['request']['base_url'] . '/courses/download/' . $file['permalink'] . '.' . $file['extension'];\n $page_content .= \"<p><a target='_blank' href='\" . $url . \"' title='\" . $file['name'] . \"'>\" . $file['name'] . \"</a></p>\";\n }\n \n if( isset($registration['more-details']) && $registration['more-details'] != '' ) {\n $rc = ciniki_web_processContent($ciniki, $settings, $registration['more-details']); \n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $page_content .= $rc['content'];\n }\n $page_content .= \"</div>\\n\"\n . \"</article>\";\n }\n\n $page_content .= \"</td></tr>\\n</table>\\n\";\n $page_content .= \"</div>\\n\"\n . \"</article>\\n\"\n . \"\";\n }\n }\n\n if( count($submenu) == 1 \n && isset($settings['page-courses-registration-active']) && $settings['page-courses-registration-active'] == 'yes' ) {\n $submenu = array();\n }\n\n //\n // Generate the complete page\n //\n\n //\n // Add the header\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'generatePageHeader');\n $rc = ciniki_web_generatePageHeader($ciniki, $settings, $page_title, $submenu);\n if( $rc['stat'] != 'ok' ) { \n return $rc;\n }\n $content .= $rc['content'];\n\n $content .= \"<div id='content'>\\n\"\n . $page_content\n . \"</div>\"\n . \"\";\n\n //\n // Add the footer\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'web', 'private', 'generatePageFooter');\n $rc = ciniki_web_generatePageFooter($ciniki, $settings);\n if( $rc['stat'] != 'ok' ) { \n return $rc;\n }\n $content .= $rc['content'];\n\n return array('stat'=>'ok', 'content'=>$content);\n}", "title": "" }, { "docid": "2b5569b42d8d21c0912a2a49154d5896", "score": "0.47022238", "text": "public function action_jscript()\r\n {\r\n $this->auto_render = FALSE;\r\n $this->response->body(View::factory('admin/jscript'));\r\n }", "title": "" }, { "docid": "262f62494097990e12cf52b53b2d1f18", "score": "0.4700803", "text": "private function _initJsScript()\r\n {\r\n if (strpos($this->subquery[1], 'script_file_') !== false) {\r\n header('Content-Type: application/javascript');\r\n header('Expires: Thu, 4 Oct 2014 20:00:00 GMT');\r\n header('Cache-Control: public, max-age=31536000');\r\n header('Last-Modified: ' . date('D, j M Y G:i:s T'));\r\n\r\n echo @$this->session['script'];\r\n unset($this->session['script']);\r\n @$this->saveSession();\r\n die();\r\n }\r\n\r\n // scripts manager\r\n $this->scripts = new ScriptManager();\r\n }", "title": "" }, { "docid": "543e62c11c56bf6253322235f5a36d8d", "score": "0.46981373", "text": "public function start()\n\t{\n\t\tob_start();\n\t\t\n\t}", "title": "" }, { "docid": "5231ff04417bad346942835a1684b05c", "score": "0.4689623", "text": "public function run()\n {\n for($i=0; $i<1000; $i++)\n {\n try{\n $ps_list = explode(PHP_EOL, trim(shell_exec('/bin/ps -ef | grep phantomjs')));\n $this->command->info(print_r($ps_list, true));\n }catch(ErrorException $e){\n $this->command->info($e->getMessage());\n return false;\n }\n }\n }", "title": "" }, { "docid": "b7f1a3d7ca7ec42cdbad7075030c19b6", "score": "0.46814302", "text": "function run(): string\n{\n ob_start();\n\n app()->run();\n header(HeaderDate::$date); // To pass the bench, nginx auto add it\n\n return ob_get_clean();\n}", "title": "" }, { "docid": "a020b94ad9a58033b410b5a07bcf4bc8", "score": "0.46809533", "text": "public function publishFiles()\n {\n $this->publishes([\n __DIR__ . '/../dist/js' => public_path('avored-admin/js'),\n ], 'sharnw-merchant-warrior');\n }", "title": "" }, { "docid": "2c6f26db0f407363970240d3234d6925", "score": "0.4674285", "text": "public function frontendBuild()\n {\n // Override GATSBY_API_URL with our own proxied domain.\n $task = $this\n ->taskExec('CI=false npm run build')\n ->dir(\"src/frontend\");\n $result = $task->run();\n if ($result->getExitCode() != 0) {\n $this->io()->error('Could not build the front-end.');\n return $result;\n }\n $this->io()->success('Frontend build successful.');\n }", "title": "" }, { "docid": "0c783fe621e39d4322ef4343bca4ec72", "score": "0.4672183", "text": "public function scripts(Request $request)\n {\n return response(\n $this->renderer->scripts($this->resolve($request->input('sources'))),\n 200,\n ['Content-Type' => 'application/javascript; charset=UTF-8']\n );\n }", "title": "" }, { "docid": "2303a2ec37f21902b2972d6cacfab409", "score": "0.46682036", "text": "public function run()\n {\n try {\n // uri hook\n $vars = $this->includePath('includes/hooks/uri.php', $this->vars);\n\n // set constants\n $this->setConstants();\n\n // map input stream to $_POST if applicable\n $this->checkInputStream();\n\n // execute run first\n $vars = $this->includePath('pages/run-first.php', $vars);\n\n // execute script files\n foreach (array_keys($this->script_files) as $file) {\n $vars = $this->includePath($file, $vars);\n }\n\n // add page_css/page_js\n $this->setAssetsByPath($this->page_path);\n\n // see if we're not rendering html but returning JS\n $get_contents = (bool) ($_POST['_json'] || $_GET['_script']);\n if ($get_contents) {\n if ($_GET['_script']) $this->no_template = true;\n ob_start();\n }\n\n // run-first / settings / script files need to be executed in the same scope\n $vars = $this->includePath($this->page_path, $vars);\n\n if ($get_contents) {\n // refreshing a secondary div after an ajax state change\n if (is_array($this->div)) {\n $this->div['page'] = ob_get_contents();\n } else {\n if (!$this->div) {\n $this->div = new \\stdClass;\n }\n $this->div->page = ob_get_contents();\n }\n ob_end_clean();\n $this->sky_end_time = microtime(true);\n\n if ($_POST['_json']) {\n \\json_headers();\n echo json_encode($this);\n } else {\n header('Content-type: text/javascript');\n echo sprintf(\n \"%s(%s,'%s','%s', '%s');\",\n $_GET['_fn']?:'render_page',\n json_encode($this),\n $this->uri,\n $_SERVER['HTTP_HOST'],\n $_GET['_script_div']?:'page'\n );\n }\n }\n\n // run-last hook\n $this->includePath('pages/run-last.php', $vars);\n\n } catch (\\Sky\\AQL\\Exception\\Connection $e) {\n $this->includePath('pages/503.php');\n echo '<!--' . $e->getMessage() . '-->';\n }\n\n return $this;\n }", "title": "" }, { "docid": "2c01e177b1c681c88fcb0fec9bd58134", "score": "0.46648467", "text": "public function getJs(){\n\n\t\t$addMinify = false;\n\t\t$output = array();\n\t\t$preoutput = array();\n\n\t\tforeach($this->getApplication()->getJs() as $fileArray){\n\t\t\tlist($file,$allowMtime) = $fileArray;\n\t\t\tif(\\Smally\\Assets::getInstance()->isMinify($file)){\n\t\t\t\t$addMinify = true;\n\t\t\t\tif(!$this->getApplication()->isDev()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$url = strpos($file,'http')===0?$file:$this->urlAssets($file);\n\t\t\t$output[] = '<script type=\"text/javascript\" src=\"'.$url.'\"></script>';\n\t\t}\n\n\t\t// Do we have to add the minify script\n\t\tif($addMinify){\n\t\t\t// we retrieve the filename of the minify js\n\t\t\t$file = (string)$this->getApplication()->getConfig()->project->minifiy->jsfile?:'js/project.minify.js';\n\n\t\t\t// In developpement we actually load real script and set the minify in a hidden img to regenerate the minify version\n\t\t\tif($this->getApplication()->isDev()) {\n\t\t\t\t$output[] = '<img src=\"'.$this->urlAssets($file).'\" width=\"0\" height=\"0\" style=\"display:none\"/>';\n\t\t\t}else{\n\t\t\t\tif($allowMtime){\n\t\t\t\t\t$mtime = \\Smally\\Assets::getInstance()->getAssetMtime($file);\n\t\t\t\t}else{\n\t\t\t\t\t$mtime = null;\n\t\t\t\t}\n\t\t\t\t$file = substr($file,0,strrpos($file, '.')) . ($mtime?'.' . $mtime:'') . '.min'. strrchr($file, '.') ;\n\t\t\t\t$preoutput[] = '<script type=\"text/javascript\" src=\"'.$this->urlAssets($file).'\"></script>';\n\t\t\t}\n\t\t}\n\n\n\t\t$js = implode(NN.TT,$preoutput).NN.implode(NN.TT,$output);\n\n\t\treturn $js;\n\t}", "title": "" } ]
efdf74c8925c3120ab7f3091a992de64
Since the native PHP type for this column is integer,
[ { "docid": "b6222184112090e5458fcb1974befd51", "score": "0.0", "text": "public function setStep_to ($step_to)\n {\n // we will cast the input value to an int (if it is not).\n if ( $step_to !== null && !is_int ($step_to) && is_numeric ($step_to) )\n {\n $step_to = (int) $step_to;\n }\n if ( $this->step_to !== $step_to || $step_to === 0 )\n {\n $this->step_to = $step_to;\n }\n }", "title": "" } ]
[ { "docid": "1593628fb8b1ee139a00514786775a4d", "score": "0.7220369", "text": "public function valueInt($column) {\n return $this->valueMixed($column, 'int');\n }", "title": "" }, { "docid": "849fb0e837a020a9047bfded15bf9fc5", "score": "0.7003375", "text": "protected function type_integer(\\Laravel\\Fluent $column)\n\t{\n\t\treturn 'INT('.$column->length.')';\n\t}", "title": "" }, { "docid": "4de60c1c14d975c9ffda28a35c0c6e1b", "score": "0.69732744", "text": "protected function typeInteger(Fluent $column)\n {\n return 'int';\n }", "title": "" }, { "docid": "6c81744480f5c8926e73e56da7bc4d82", "score": "0.6700551", "text": "public function integer($column_name)\n {\n $type = 'INTEGER';\n return $this->addColumn($type, $column_name);\n }", "title": "" }, { "docid": "34d9e26d71b1c9551879411ee9cb11a2", "score": "0.6653008", "text": "final public function _cast():int\n {\n return $this->primary();\n }", "title": "" }, { "docid": "dcd06bc1ab4f0df5fb7862b79ed7cb8b", "score": "0.66248447", "text": "public function integer(string $column): Column\n {\n return $this->addColumn('integer', $column);\n }", "title": "" }, { "docid": "52b7d66c762eb2746760b03e15860f70", "score": "0.66054064", "text": "public function toInt()\n {\n return Num::fromFormat($this->db, [\n 'mysql' => \"CAST(%s AS SIGNED)\",\n 'sqlite' => \"CAST(%s AS INTEGER)\"\n ], $this);\n }", "title": "" }, { "docid": "bc107a478dabfd04602947101976d6aa", "score": "0.650518", "text": "static function int()\r\n {\r\n if (! isset(self::$int)) {\r\n self::$int = new TipoColumna();\r\n self::$int->tipoSql = self::INT;\r\n }\r\n return self::$int;\r\n }", "title": "" }, { "docid": "cfead5c00ad4cfa00a0cccb4167b35a5", "score": "0.65048", "text": "public function __toString()\r\n {\r\n return 'integer';\r\n }", "title": "" }, { "docid": "60f8ab0e6168b69de13d453a2f3cb628", "score": "0.6294645", "text": "public function integer(string $columnName, bool $unsigned = false): ColumnDefinitionInterface;", "title": "" }, { "docid": "f8a03e569e378d09614fc5904ce6eadb", "score": "0.6244456", "text": "public function toInteger(): self\n {\n $this->type = 'int';\n\n return $this;\n }", "title": "" }, { "docid": "da8bdc65e6057934246b7eeb66d611e4", "score": "0.62185156", "text": "function castInts() {\n\t\t$this->id = (null === $this->id) ? null : (int) $this->id;\n\t\t$this->user_id = (null === $this->user_id) ? null : (int) $this->user_id;\n\t\t$this->created = (null === $this->created) ? null : (int) $this->created;\n\t\t$this->updated = (null === $this->updated) ? null : (int) $this->updated;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "d04b5c10858f5fa56beebfe5908c06fe", "score": "0.6196575", "text": "public function asInt()\n {\n return (int)$this->value;\n }", "title": "" }, { "docid": "c170a51b766defab0e0f77dd9d2425f4", "score": "0.6177069", "text": "public function number($column) {\n return $this->addColumn('integer', 'INTEGER', $column);\n }", "title": "" }, { "docid": "715ec721839ab1e931baba26e889ab5e", "score": "0.6149369", "text": "function getPrimitiveType() {\n return 'value_int';\n }", "title": "" }, { "docid": "f02e8098176f9ddfb4f780b44b7f0335", "score": "0.6112035", "text": "public function isIntId(): bool\n {\n return $this->intId;\n }", "title": "" }, { "docid": "3a72a7594a96695f30b5029f07475211", "score": "0.6014523", "text": "protected function typeMediumInteger(Fluent $column)\n {\n return 'smallint';\n }", "title": "" }, { "docid": "8111981e816dcff70246cf3e9648889c", "score": "0.60116017", "text": "protected function _int()\n {\n return $this->_integer();\n }", "title": "" }, { "docid": "a0011325387148f89b2801a7437cfcd5", "score": "0.59965706", "text": "protected function typeBigInteger(Fluent $column)\n {\n return 'bigint';\n }", "title": "" }, { "docid": "2244479502eba4a9e5f45bb2faa94eac", "score": "0.5921969", "text": "public function getInteger(): IntegerObject;", "title": "" }, { "docid": "abebb58b6e6859d51440e7596c1e8fd7", "score": "0.59049493", "text": "public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "title": "" }, { "docid": "f4b8e67d44ffa344a1ee8d6de374a647", "score": "0.58998966", "text": "private function columnTypeToPhpType($theParameterInfo)\n {\n switch ($theParameterInfo['data_type'])\n {\n case 'tinyint':\n case 'smallint':\n case 'mediumint':\n case 'int':\n case 'bigint':\n\n case 'year':\n\n case 'bit':\n $php_type = 'int';\n break;\n\n case 'decimal':\n $php_type = ($theParameterInfo['numeric_scale']=='0') ? 'int' : 'float';\n break;\n\n case 'float':\n case 'double':\n $php_type = 'float';\n break;\n\n case 'varbinary':\n case 'binary':\n\n case 'char':\n case 'varchar':\n\n case 'time':\n case 'timestamp':\n\n case 'date':\n case 'datetime':\n\n case 'enum':\n case 'set':\n\n case 'tinytext':\n case 'text':\n case 'mediumtext':\n case 'longtext':\n\n case 'tinyblob':\n case 'blob':\n case 'mediumblob':\n case 'longblob':\n $php_type = 'string';\n break;\n\n case 'list_of_int':\n $php_type = 'string|int[]';\n break;\n\n default:\n throw new FallenException('column type', $theParameterInfo);\n }\n\n return $php_type;\n }", "title": "" }, { "docid": "179e589f57e48683ab3d344d28250074", "score": "0.589279", "text": "protected function typeSmallInteger(Fluent $column)\n {\n return 'smallint';\n }", "title": "" }, { "docid": "8eb1ec5bf060322517ea98cd8a2df90e", "score": "0.5887417", "text": "public function toInt();", "title": "" }, { "docid": "0e73507c0f5824cf39a2838982229bf0", "score": "0.5875622", "text": "public function toInt(): int\n {\n return $this->val;\n }", "title": "" }, { "docid": "99029775e9b334165b41eb93b4d4ac38", "score": "0.58603257", "text": "public function getColumnCount(): ?int {\n $val = $this->getBackingStore()->get('columnCount');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'columnCount'\");\n }", "title": "" }, { "docid": "01fe6e6272f66310759dedbbcd020715", "score": "0.58549434", "text": "public function getId()\n {\n return (integer)$this->id;\n }", "title": "" }, { "docid": "f3bdc227e70f23115492f5492a250f27", "score": "0.5846059", "text": "public function getTypeIdentifier()\n {\n return 'integer';\n }", "title": "" }, { "docid": "652d2fa20c0cb4d6ca8cfa2921e249ca", "score": "0.5840908", "text": "function castInts() {\n\t\t$this->file_type_id = (null === $this->file_type_id) ? null : (int) $this->file_type_id;\n\t\t$this->active = (null === $this->active) ? null : (int) $this->active;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "e55380ba7a08253b4d3205d5616ff1e7", "score": "0.58384055", "text": "public function getPrimaryKeyType(): int\n\t{\n\t\treturn $this->primaryKeyType;\n\t}", "title": "" }, { "docid": "a372a0bb7beb36c8cad73e8051983a02", "score": "0.5832444", "text": "protected function createIntegerColumn($name) {\r\n $this->column = new Column\\IntegerColumn($name);\r\n $this->baseConfig();\r\n return $this->column;\r\n }", "title": "" }, { "docid": "00406d1508c60e5fbd8020e3b9a416b8", "score": "0.5790683", "text": "public function int()\n {\n return $this->markErrorIf(!is_numeric($this->value) || strval(intval($this->value)) != strval($this->value) );\n }", "title": "" }, { "docid": "4fb8c20614d91a8a567264a0d11d9977", "score": "0.5787442", "text": "public function toInt(): int;", "title": "" }, { "docid": "75b96d5f8fb75b0b9cb932b54550c4d2", "score": "0.57759655", "text": "function int64() : self;", "title": "" }, { "docid": "abd791825b0ce86952fc3766bc7af82b", "score": "0.57576466", "text": "public function getRaw(): int\r\n {\r\n return $this->rawValue;\r\n }", "title": "" }, { "docid": "c15fd945a7db2fca7ec2d3251551e451", "score": "0.57467353", "text": "function sql_int($number) {\r\n if(is_null($number)) {\r\n return 'NULL';\r\n } else if($number===true) {\r\n return 1;\r\n } else if($number===false) {\r\n return 0;\r\n } else {\r\n return (int)$number;\r\n } \r\n}", "title": "" }, { "docid": "e69ec2babcdb861c5f5f002b29468451", "score": "0.57454205", "text": "public function IsInt( ) {\n\n return $this->GetDataType( ) == 'int';\n\n }", "title": "" }, { "docid": "e06fb27eb00243fd8866d31df1d35460", "score": "0.57372123", "text": "function getIdAttribute ($val) { return (int) $val; }", "title": "" }, { "docid": "e06fb27eb00243fd8866d31df1d35460", "score": "0.57372123", "text": "function getIdAttribute ($val) { return (int) $val; }", "title": "" }, { "docid": "2a35ff1bb78a2b8d503236edeb219c3d", "score": "0.57313466", "text": "protected function columnTypes()\n {\n return [\n 'bigIncrements',\n 'bigInteger',\n 'binary',\n 'boolean',\n 'char',\n 'date',\n 'dateTime',\n 'dateTimeTz',\n 'decimal',\n 'double',\n 'enum',\n 'float',\n 'geometry',\n 'geometryCollection',\n 'increments',\n 'integer',\n 'ipAddress',\n 'json',\n 'jsonb',\n 'lineString',\n 'longText',\n 'macAddress',\n 'mediumIncrements',\n 'mediumInteger',\n 'mediumText',\n 'morphs',\n 'uuidMorphs',\n 'multiLineString',\n 'multiPoint',\n 'multiPolygon',\n 'nullableMorphs',\n 'nullableUuidMorphs',\n 'nullableTimestamps',\n 'point',\n 'polygon',\n 'rememberToken',\n 'set',\n 'smallIncrements',\n 'smallInteger',\n 'softDeletes',\n 'softDeletesTz',\n 'string',\n 'text',\n 'time',\n 'timeTz',\n 'timestamp',\n 'timestampTz',\n 'timestamps',\n 'timestampsTz',\n 'tinyIncrements',\n 'tinyInteger',\n 'unsignedBigInteger',\n 'unsignedDecimal',\n 'unsignedInteger',\n 'unsignedMediumInteger',\n 'unsignedSmallInteger',\n 'unsignedTinyInteger',\n 'uuid',\n 'year',\n ];\n }", "title": "" }, { "docid": "d151a0e4e7a385fa167da0db56090e24", "score": "0.5729525", "text": "public function isInteger()\n {\n return Numbers::isInteger($this->getValue());\n }", "title": "" }, { "docid": "161ebf5dda44963804bb1c319aaf86e8", "score": "0.5721291", "text": "public function bigint(string $columnName, bool $unsigned = false): ColumnDefinitionInterface;", "title": "" }, { "docid": "9c4f6feba2b8979bcad6f07b9243114f", "score": "0.57139915", "text": "public function bigInteger($column_name)\n {\n $type = 'BIGINT';\n return $this->addColumn($type, $column_name);\n }", "title": "" }, { "docid": "dcb52d16d6b88f52834f24d18a23ce39", "score": "0.57115835", "text": "abstract protected function persistIntAttribute($attribute);", "title": "" }, { "docid": "25e160e65a191d81d1d0a340141ff64c", "score": "0.57056", "text": "public function integerArray($column)\n {\n return $this->addColumn('integerArray', $column);\n }", "title": "" }, { "docid": "4f68b5038aaa8facb7c9bb2a81fa8147", "score": "0.5696427", "text": "abstract public function getColumnType();", "title": "" }, { "docid": "49cae305f588821b0ed8fa429e4b3693", "score": "0.5687399", "text": "public function getAcceptNonScalarValue()\n {\n return false;\n }", "title": "" }, { "docid": "8779ca85ebb4e1fddc8af56946fefb7b", "score": "0.5675125", "text": "function selectInt($query,$bind_ar = array(),$options = array()){\n\t\t$options[\"type\"] = \"integer\";\n\t\treturn $this->selectSingleValue($query,$bind_ar,$options);\n\t}", "title": "" }, { "docid": "ee25fb55d3dbcb95252905e9a4a42fda", "score": "0.5659802", "text": "public function toNativeNumber()\n {\n return Numbers::toNativeNumber($this->getValue());\n }", "title": "" }, { "docid": "f96019d44e1a0e6e20aad192a59386d7", "score": "0.5650119", "text": "public function get_type(){\r\n\t\t\tif(!$this->is_valid_type()){\r\n\t\t\t\treturn self::$COLUMN_TYPE_TEXT;\r\n\t\t\t}\r\n\t\t\treturn $this->column_type;\r\n\t\t}", "title": "" }, { "docid": "a73496b132c8af8aec8892a86e135215", "score": "0.56261003", "text": "public function getColumnType(): string;", "title": "" }, { "docid": "422c733514c0ff137eded83509b9d895", "score": "0.5620999", "text": "protected function _integer()\n {\n if (!is_numeric($this->value)) {\n throw new \\RuntimeException(\n 'Current string has not numeric content:'\n .' cannot cast it to integer!'\n );\n }\n\n return (int) $this->value;\n }", "title": "" }, { "docid": "2b7cbdaf380185776fdc908f83f4f72e", "score": "0.5619388", "text": "protected function typeTinyInteger(Fluent $column)\n {\n return 'tinyint';\n }", "title": "" }, { "docid": "35375d0bd1b3e8fa8c64775cf25228ae", "score": "0.5617562", "text": "public function getColumnType();", "title": "" }, { "docid": "56577df7cc675d4ae4aae6c1d27c75ab", "score": "0.5611742", "text": "public function toInt(): int\n {\n return $this->id;\n }", "title": "" }, { "docid": "c04e3d0db6ce01919cbbd6b110012c74", "score": "0.56071305", "text": "public function setIdAttribute($value)\n {\n return (int)$value;\n }", "title": "" }, { "docid": "994a044a742cf81d10df9e28dd3a10b0", "score": "0.5595352", "text": "public static function int($key)\n {\n return static::make($key)->asInt();\n }", "title": "" }, { "docid": "c09122a5b3c47f5bc014d218f12b4db4", "score": "0.55921316", "text": "public function getColumnNumber(): int {}", "title": "" }, { "docid": "c192b273e55792431e94abecce2f7e9b", "score": "0.5585998", "text": "public function getCountEscrowedRaw(): ?int {\n $val = $this->getBackingStore()->get('countEscrowedRaw');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'countEscrowedRaw'\");\n }", "title": "" }, { "docid": "d8010c09eee7694fe49ae75b326e9000", "score": "0.5581396", "text": "public function testDevUIDIsInteger()\n {\n $this->fieldHasType($this->bug, 'developer_user_id', 'integer');\n }", "title": "" }, { "docid": "77f49575559de259b1990a911cc2650e", "score": "0.55516136", "text": "public function testIntegerType()\n {\n $expectedValue = 100;\n $output = $this->serializer->serialize($expectedValue);\n $actualResult = $this->serializer->unserialize($output);\n\n $this->assertEquals($expectedValue, $actualResult);\n }", "title": "" }, { "docid": "bbba9c7b675e75d77d3eb657b982c7c5", "score": "0.55498815", "text": "public function getValueAttribute($value) {\n\t\treturn (int)$value;\n\t}", "title": "" }, { "docid": "b375b109f064048a310ac3c6058f5eff", "score": "0.55478936", "text": "public function type(): int\n {\n return $this->type;\n }", "title": "" }, { "docid": "4a310a03d99e7df85532a601ae158a42", "score": "0.5543243", "text": "static public function getPhpDocProperty() {\n return 'integer';\n }", "title": "" }, { "docid": "963f8766677cf337e239a999bccc8a5c", "score": "0.5539055", "text": "public function dbTypecast($value);", "title": "" }, { "docid": "494f0ec5bd8197175961fef3191e20b0", "score": "0.55328697", "text": "abstract public function toInt(): int;", "title": "" }, { "docid": "612b9a0c1dc880bc921b0e4bb6b41b41", "score": "0.5525278", "text": "public function getCountEscrowed(): ?int {\n $val = $this->getBackingStore()->get('countEscrowed');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'countEscrowed'\");\n }", "title": "" }, { "docid": "c89f0c3d928062dbe0b3b708b7de6b71", "score": "0.552046", "text": "public function typeNum()\n {\n $cls = $this->ext . strtoupper( bcDB::resource( 'EXTENSION' ) );\n $cls::$FETCH_TYPE = 'num';\n }", "title": "" }, { "docid": "377d779f4622af291db1188c76fb4417", "score": "0.5479767", "text": "function getColType() { return $this->m_colType; }", "title": "" }, { "docid": "64c017c4762080eaa39a14d66116fe4d", "score": "0.546961", "text": "public function columnType($column)\n {\n if (is_string($column)) {\n $column = $this->_columns[$column];\n }\n\n $type = Arr::get($column, 'type');\n $length = Arr::get($column, 'length');\n $precision = Arr::get($column, 'precision');\n\n if (in_array(strtolower($type), ['tinyint', 'smallint', 'mediumint', 'int', 'float', 'double'])) {\n $length = null;\n }\n\n if ($type && $length && $precision) {\n $result = \"$type($length, $precision)\";\n } elseif ($type && $length) {\n $result = \"$type($length)\";\n } elseif (strtolower($type) === 'enum') {\n $result = Arr::get($column, 'enum', []);\n } elseif ($type) {\n $result = $type;\n } else {\n $result = 'int';\n }\n\n return $result;\n }", "title": "" }, { "docid": "cb334ad7e8f5c4089c56d1788bc1077b", "score": "0.5447594", "text": "function getIntegerField1() {\n return $this->getFieldValue('integer_field_1');\n }", "title": "" }, { "docid": "90dff963d560841ceb093520ba9577fe", "score": "0.5442983", "text": "public function int($key)\n\t{\n\t\t$raw = $this->raw($key);\n\t\tif($raw === null) return null;\n\t\treturn intval($raw);\n\t}", "title": "" }, { "docid": "dbfd0904f43b2f934cb8b162cbf05709", "score": "0.54391813", "text": "public function getDataType() {\n\t\treturn Field::TYPE_BOOLEAN;\n\t}", "title": "" }, { "docid": "230ca5d9d960854d60e6caa09f474727", "score": "0.542806", "text": "public function asColumn($column = 'id');", "title": "" }, { "docid": "471f040d2d9069faa46eb228457ab730", "score": "0.5418924", "text": "public function getType(): int {\n return $this->type;\n }", "title": "" }, { "docid": "1250ebb189224af575d5c3512e2d7f64", "score": "0.5412053", "text": "public static function int(): self\n {\n return self::make('int');\n }", "title": "" }, { "docid": "72bb39c2bf73aaac32f3a3ddead8a436", "score": "0.5408065", "text": "public function getCastedValueAttribute()\n {\n switch ($this->type) {\n case 'int':\n case 'integer':\n return intval($this->value);\n break;\n\n case 'bool':\n case 'boolean':\n return boolval($this->value);\n break;\n\n default:\n return $this->value;\n }\n }", "title": "" }, { "docid": "8177ff577dfb803681ae6f8d5c720549", "score": "0.5404248", "text": "public function setSequenceNativeType($nativeType);", "title": "" }, { "docid": "8150d1904c6152beaecab72af591fc74", "score": "0.5391047", "text": "public function getCode(): int{\n return (int)$this->getValue();\n }", "title": "" }, { "docid": "5036a2d98bc88d8477179ec991a1bf77", "score": "0.5388108", "text": "public function get_primary_column() {}", "title": "" }, { "docid": "d76068ef15917523faace4e10f244e2f", "score": "0.53865135", "text": "public function isInt(): bool\n {\n return $this->type == self::ST_INT;\n }", "title": "" }, { "docid": "762990b403e39143f832a0bfbd749ec6", "score": "0.53862035", "text": "public function int($values, $asDbValue = false){\n\n\t\tif(!isset($values['arrayValue'])) {\n\t\t\t$values['arrayValue']='';\n\t\t}\n\n\t\tif($asDbValue) {\n\t\t\treturn Array('data_type'=>'integer', 'precision'=>'32');\n\t\t} \n\n\t\tif($values['arrayValue']!='') {\n\t\t\t$default='';\n\t\t} else {\n\t\t\t$default=' default ' . (int)$values['default'];\n\t\t}\n\n\t\treturn \"integer{$values['arrayValue']}\" . $default;\n\t}", "title": "" }, { "docid": "42a33d1885df247a282db78f6fe5bc69", "score": "0.5380086", "text": "public function getIntId()\n {\n return $this->intId;\n }", "title": "" }, { "docid": "42a33d1885df247a282db78f6fe5bc69", "score": "0.5380086", "text": "public function getIntId()\n {\n return $this->intId;\n }", "title": "" }, { "docid": "5147b2399f4dad35d9d879c94b0be58d", "score": "0.5377297", "text": "public function getType() : int;", "title": "" }, { "docid": "7a434ee7ce50d7208ac81dc008c59b0d", "score": "0.5373529", "text": "function int32() : self;", "title": "" }, { "docid": "7e1948b7985c5a67883f7a7391baa0a8", "score": "0.53716546", "text": "public function column() : int\n {\n return $this->column;\n }", "title": "" }, { "docid": "6d19da8a3dcd0dc94fcb3b331dce1590", "score": "0.5371127", "text": "public function testReturnsTheStringRepresentationOfTheIntWithTheIntLength()\n {\n $instance = new FieldType\\IntSigned(144);\n $result = $instance->toNative();\n\n static::assertEquals('int(144)', $result);\n }", "title": "" }, { "docid": "e4e188292cd8434da6825c7f652a68bc", "score": "0.53678936", "text": "public function convertToMysqlBoolean(&$var) {\n $var = (int) (boolean) $var;\n }", "title": "" }, { "docid": "62eb8dad86560c77271ba211e1d9d19e", "score": "0.5361837", "text": "public function testSetterConvertNumbersToInt(){\n \n $this->entity->setInseratId('11');\n $this->entity->setAktiv('1');\n \n $this->assertTrue(is_int($this->entity->getInseratId()), 'getInseratId() muss sein Argument in ein Integer konvertieren!');\n $this->assertTrue(is_int($this->entity->getAktiv()), 'getAktiv() muss sein Argument in ein Integer konvertieren!');\n \n $this->markTestIncomplete();\n }", "title": "" }, { "docid": "66aaac6bfaf1b2d853de9e23857214d5", "score": "0.5329248", "text": "public function getType(): int\n {\n return self::NULL;\n }", "title": "" }, { "docid": "cad95d0c797c8c6dd0a950b93def4065", "score": "0.5324542", "text": "public function smallint(string $columnName, bool $unsigned = false): ColumnDefinitionInterface;", "title": "" }, { "docid": "7a7391438bc59ade88280d7dbbac61ab", "score": "0.53161377", "text": "public function getColumnType()\n\t{\n\t\treturn $this->columnType;\n\t}", "title": "" }, { "docid": "2fa40842b606dc07bdb42be827b73c4d", "score": "0.5314438", "text": "public static function _int(Column\\Numeric $column)\n {\n $columnCode = [];\n $columnCode[] = \"width: \".$column->getWidth();\n $columnCode[] = \"align: 'right'\";\n if ($column->isSortable()) {\n $columnCode[] = \"sortable: true\";\n }\n if ($column->isHidden()) {\n $columnCode[] = \"hidden: true\";\n }\n $columnCode[] = \"text: '\".$column->getTitle().\"'\";\n $columnCode[] = \"dataIndex: '\".$column->getKey().\"'\";\n if ($column->isEditable()) {\n $field = $column->getField();\n $minValue = $field->getMinValue();\n $maxValue = $field->getMaxValue();\n\n $fieldCode = \"field: {\n xtype: 'numberfield',\n allowBlank: false,\n \";\n if ($minValue !== null && $minValue !== false) {\n $fieldCode .= \",\n minValue: '\".$minValue.\"'\";\n }\n if ($maxValue !== null && $maxValue !== false) {\n $fieldCode .= \",\n maxValue: '\".$maxValue.\"' \";\n }\n $fieldCode .= \"\n }\";\n $columnCode[] = $fieldCode;\n }\n\n return forward_static_call(['static', '_implode'], $columnCode);\n }", "title": "" }, { "docid": "51125d2ce3ab467449cefcfa56ce5825", "score": "0.531442", "text": "public function publicMethodWithIntegerReturn(): int\n {\n return $this->publicInteger;\n }", "title": "" }, { "docid": "f843f3bca6b3be5ada5bb923c2e22051", "score": "0.53079706", "text": "public function getType() : int\n {\n return $this->_type;\n }", "title": "" }, { "docid": "23b376aef13c1501957f654bdcd3fe21", "score": "0.5272236", "text": "public function getType(): int\n {\n return $this->type;\n }", "title": "" }, { "docid": "23b376aef13c1501957f654bdcd3fe21", "score": "0.5272236", "text": "public function getType(): int\n {\n return $this->type;\n }", "title": "" }, { "docid": "23b376aef13c1501957f654bdcd3fe21", "score": "0.5272236", "text": "public function getType(): int\n {\n return $this->type;\n }", "title": "" }, { "docid": "b3484895f0ebeed1e9693ccec0196a7b", "score": "0.5268739", "text": "static function decode(ColumnDefinitionInterface $column, $param) {\n $type = $column->getType();\n $flags = $column->getFlags();\n \n if($param !== null && ($flags & FieldFlags::ZEROFILL_FLAG) === 0) {\n switch(true) {\n case ($type === 'LONG'):\n if(($flags & FieldFlags::UNSIGNED_FLAG) === 0 || \\PHP_INT_SIZE > 4) {\n $param = (int) $param;\n }\n break;\n case ($type === 'LONGLONG'):\n if(($flags & FieldFlags::UNSIGNED_FLAG) === 0 && \\PHP_INT_SIZE > 4) {\n $param = (int) $param;\n }\n break;\n case static::isTypeTinyShortInt($type):\n $param = (int) $param;\n break;\n case static::isTypeFloat($type):\n $param = (float) $param;\n break;\n // Other types are taken as string\n }\n }\n \n return $param;\n }", "title": "" }, { "docid": "3fe70dc1b5e49e217de5df268a59c3bf", "score": "0.5260905", "text": "abstract public function IdColumn($asDbValue = false, $hasAutoIncPK = true);", "title": "" } ]
3ab8fd2f2ca3875d6c34a84329f708e2
Construct a new translation handler.
[ { "docid": "f40be98a0a63ffdfadcbb3607cbb8f74", "score": "0.50273544", "text": "public function __construct(string $currLang = 'en-US')\n {\n $this->translator = new SymfonyTranslator($currLang);\n $this->translator->addLoader('array', new ArrayLoader());\n }", "title": "" } ]
[ { "docid": "ecd683bcc08ec3e66053fe201875295e", "score": "0.7029251", "text": "public static function translate($handler, $config = []);", "title": "" }, { "docid": "38e635afb52b27e55211069116dd74d3", "score": "0.6579603", "text": "protected function createTranslator()\n {\n $translator = new \\Gettext\\Translator();\n\n return $translator;\n }", "title": "" }, { "docid": "2bbe53492db7522090480f99bf5242b1", "score": "0.6419633", "text": "public function newTranslation() {\n $translation = new Translation();\n return $translation;\n }", "title": "" }, { "docid": "44599cc30c510d83721746703a1500ad", "score": "0.5917438", "text": "protected function _initTranslate()\n\t{\n\t\tif (!isset($this->_translate)) {\n\t\t\t$options = $this->getOptions();\n\t\t\t\n\t\t\t$registryKey = \"Zend_Router_Translate\";\n\t\t\t\n\t\t\tif (isset($options['registry_key'])) {\n\t\t\t\tif (strlen(trim($options['registry_key'])) > 0) {\n\t\t\t\t\t$registryKey = $options['registry_key'];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (isset($options['translate'])) {\n\t\t\t\t$this->_translate = new Zend_Translate($options['translate']);\n\t\t\t}\n\t\t\t\n\t\t\t// set the registry\n\t\t\tZend_Registry::set($registryKey, $this->_translate);\n\t\t\t$this->_routeTranslatorRegistryKey = $registryKey;\n\t\t}\n\t\t\n\t\treturn $this->_translate;\n\t}", "title": "" }, { "docid": "4690c91f58ac6d7dc7c6e828ecb4ea8d", "score": "0.5836176", "text": "abstract protected function createHandler();", "title": "" }, { "docid": "edb399aa2a9a9a9edb8c03c693a43e63", "score": "0.58141434", "text": "function translater() {\n\t\t$this->addTranslation(__FILE__);\n\t\t\n//\t\tif(!property_exists($this, \"translater\")) {\n//\t\t\t$this->translater = new Translation(__FILE__);\n//\t\t}\n//\t\telse {\n//\t\t\t$this->translater->__construct(__FILE__);\n//\t\t}\n\t}", "title": "" }, { "docid": "50a4ecd8cd5e87cafcf382556f78ef59", "score": "0.58140695", "text": "private function __construct()\n {\n $langPath = TL_ROOT .\n DIRECTORY_SEPARATOR . 'system' .\n DIRECTORY_SEPARATOR . 'lang';\n $loader = new FileLoader(new Filesystem, $langPath);\n $translator = new Translator($loader, 'en');\n $this->validation = new Factory($translator, new Container);\n }", "title": "" }, { "docid": "54afb9658a1415b4a21026c3c8a06aaf", "score": "0.5731891", "text": "abstract public function translations();", "title": "" }, { "docid": "c3b99294be469318a79e593b45d293f1", "score": "0.56975335", "text": "public function getTranslationManager();", "title": "" }, { "docid": "26ff4959a55e064e22e93d92950adf90", "score": "0.5690615", "text": "public function newTranslationInfo()\n {\n return new TranslationInfo();\n }", "title": "" }, { "docid": "c1af783fef51b48eb4816131fbda66fc", "score": "0.564234", "text": "function newTranslatedPage () {\n\t\treturn new translatedPage ($this->db, $this->getAllOptionsForTranslatedPage (), $this);\n\t}", "title": "" }, { "docid": "f184d9c2d799e6c7f5d76fbf4950bab7", "score": "0.56389886", "text": "public function _initTranslate()\r\n {\r\n $translate = new Zend_Translate('array', APPLICATION_PATH . '/languages/en.php', 'en');\r\n Zend_Registry::set('Zend_Translate', $translate);\r\n return $translate;\r\n }", "title": "" }, { "docid": "73ce4c517ec94e7d60bff8159268b600", "score": "0.5628954", "text": "public function __construct()\n {\n parent::__construct();\n\n $this->setLangs();\n $this->pathBase = resource_path(\"/lang\");\n $this->pathBaseLocale = \"{$this->pathBase}/{$this->locale}\";\n $this->messageFinish = \"gsferro:translate-tables\";\n }", "title": "" }, { "docid": "ddda2e10bb44bf9c1d32cdd71e3a198c", "score": "0.56236637", "text": "function __construct() {\n\t\t$this->addTranslation(__FILE__);\n\t}", "title": "" }, { "docid": "ebdab663bdf31bd4f620dc407401de69", "score": "0.5621795", "text": "public static function getTranslator()\n {\n }", "title": "" }, { "docid": "4a3a089aee504e28063385114dd80857", "score": "0.55957437", "text": "protected function getTranslation_ExtractorService()\n {\n $this->services['translation.extractor'] = $instance = new \\Symfony\\Component\\Translation\\Extractor\\ChainExtractor();\n\n $instance->addExtractor('php', ${($_ = isset($this->services['translation.extractor.php']) ? $this->services['translation.extractor.php'] : $this->get('translation.extractor.php')) && false ?: '_'});\n\n return $instance;\n }", "title": "" }, { "docid": "d633fc3e788e79f231cbeab9e52aedda", "score": "0.55714715", "text": "function _Translator()\n {\n // load the required class file\n require $this->_corePath . \"Translator.php\";\n\n // check if defined\n if (!isset($translator)) die(\"Undefined variables at line \" . __LINE__ . \" \" . __FUNCTION__);\n\n // store the variable and initiate the class\n $GLOBALS['translator'] = $translator;\n }", "title": "" }, { "docid": "555c7a8f040350790ab5a71fff75b3cb", "score": "0.557134", "text": "function __construct() {\n // translation compat shim, etc.\n }", "title": "" }, { "docid": "664409a90428896ed0b51b24a9ff6fe1", "score": "0.55693054", "text": "public function translations();", "title": "" }, { "docid": "a26f431a6fd62fdc77c7cce26cbc519a", "score": "0.5551784", "text": "public static function fromCallback($username, $secret, \\stdClass $response) {\n\t\t$translation = new static($username, $secret);\n\t\t$translation->setRow($response);\n\t\treturn $translation;\n\t}", "title": "" }, { "docid": "c47d209c8f609750545a6f58fb393bfd", "score": "0.5547274", "text": "public function __construct()\n {\n $this->namespace = new EntryNamespaceParser();\n $this->class = new EntryTranslationsClassParser();\n $this->table = new EntryTranslationsTableParser();\n }", "title": "" }, { "docid": "31211396c93d326da0f0412e582a7ac1", "score": "0.5507313", "text": "public function __construct()\n {\n $this->translator = resolve(Translator::class);\n }", "title": "" }, { "docid": "717463fe037506d1068b19101e3f94e4", "score": "0.547566", "text": "public function __construct()\n\t{\n\t\t// Start with the default translation\n\t\t$this->strings = $this->default_translation;\n\t\t// Try loading the translation file in English, if it exists\n\t\t$this->loadTranslation('en-GB');\n\t\t// Try loading the translation file in the browser's preferred language, if it exists\n\t\t$this->getBrowserLanguage();\n\t\tif (!is_null($this->language))\n\t\t{\n\t\t\t$this->loadTranslation();\n\t\t}\n\t}", "title": "" }, { "docid": "357e3aa03567d7aeef229261876e061b", "score": "0.54601926", "text": "public function __construct() {\n parent::__construct(Zibo::DIRECTORY_APPLICATION, self::TRANSLATION_NAME, self::TRANSLATION_MESSAGE_EXISTS, self::TRANSLATION_MESSAGE_WRITABLE);\n }", "title": "" }, { "docid": "041a2ebe516bb44dad0869fc56134d9a", "score": "0.5377628", "text": "protected function getTranslation_ExtractorService()\n {\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Extractor/ExtractorInterface.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Extractor/ChainExtractor.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Extractor/AbstractFileExtractor.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Extractor/PhpExtractor.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/twig-bridge/Translation/TwigExtractor.php';\n\n $this->privates['translation.extractor'] = $instance = new \\Symfony\\Component\\Translation\\Extractor\\ChainExtractor();\n\n $instance->addExtractor('php', new \\Symfony\\Component\\Translation\\Extractor\\PhpExtractor());\n $instance->addExtractor('twig', new \\Symfony\\Bridge\\Twig\\Translation\\TwigExtractor(($this->services['twig'] ?? $this->getTwigService())));\n\n return $instance;\n }", "title": "" }, { "docid": "6f37dc7fdbec3280bafbdaeb7711c4bc", "score": "0.5369646", "text": "function __($id) { return Translator::translate($id); }", "title": "" }, { "docid": "717b24a765c9e0e54f69a1b4a6c07704", "score": "0.53580284", "text": "function __invoke() {\n return $this->trigger(\"translate\", func_get_args());\n }", "title": "" }, { "docid": "167e254a10209ddb9c02a24f61c75a0c", "score": "0.53405714", "text": "public function translate()\n {\n }", "title": "" }, { "docid": "79aff5a69f91204067d29e01db624297", "score": "0.5333971", "text": "public function __construct() {\n\t\tadd_action('plugins_loaded', array($this, 'load_textdomain'));\n\t\t\n\t}", "title": "" }, { "docid": "d644ea91978c2a65fecfe77a28e2c020", "score": "0.53240407", "text": "public function GetTranslator ();", "title": "" }, { "docid": "e75b3d11a935b5d455adc6df22f9880a", "score": "0.5322726", "text": "public function __construct(Translation $service)\n {\n $this->service = $service;\n }", "title": "" }, { "docid": "6b1550a41f17252af77bacf8704212b1", "score": "0.5296488", "text": "public function __construct(\\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {\n parent::__construct('Plugin/Ezcontent/SpeechToText',\n $namespaces,\n $module_handler,\n 'Drupal\\ezcontent_smart_article\\EzcontentSpeechToTextInterface',\n 'Drupal\\ezcontent_smart_article\\Annotation\\EzcontentSpeechToText'\n );\n $this->alterInfo('ezcontent_speech_to_text_info');\n $this->setCacheBackend($cache_backend, 'ezcontent_speech_to_text_info_plugins');\n }", "title": "" }, { "docid": "df5d7cea32d3b41fa80ad06b010c98d7", "score": "0.5268802", "text": "public function __construct()\n {\n $this->stringTransformation = new StringTransformation();\n }", "title": "" }, { "docid": "3a1b325aee50a54db7aed6809fc68d7d", "score": "0.52538633", "text": "protected function _getTranslation()\n\t{\n\t\t$language = $this->request->getBestLanguage();\n\t\t\n\t\t//Check if we have a translation file for that lang\n\t\tif (file_exists(realpath(dirname(__FILE__)).\"/messages/\".$language.\".php\")) {\n\t\t\trequire \"messages/\".$language.\".php\";\n\t\t} else {\n\t\t\t// fallback to some default\n\t\t\trequire \"messages/en.php\";\n\t\t}\n\t\t\n\t\t//Return a translation object\n\t\treturn new \\Phalcon\\Translate\\Adapter\\NativeArray(array(\n\t\t\t\"content\" => $messages\n\t\t));\n\t\n\t}", "title": "" }, { "docid": "b241b73104b5fde826831eedd77babc2", "score": "0.52514833", "text": "function __construct()\n {\n $table = get_html_translation_table(HTML_ENTITIES);\n $table = array_flip($table);\n $this->table = array_map(array(\n &$this,\n 'makeutf8'\n ), $table);\n }", "title": "" }, { "docid": "9cd364b0b3ac920909916f406de8a183", "score": "0.52460897", "text": "public function __construct(\\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {\n parent::__construct('Plugin/TextTransformer', $namespaces, $module_handler, 'Drupal\\text_transformer\\TextTransformerInterface', 'Drupal\\text_transformer\\Annotation\\TextTransformer');\n\n $this->alterInfo('text_transformer_info');\n $this->setCacheBackend($cache_backend, 'text_transformers');\n\n }", "title": "" }, { "docid": "4b884747cc6c80427c0ad650ed6187ba", "score": "0.52402604", "text": "public function _getTranslation()\n {\n $this->language = $language = 'en';\n \n //Check if we have a translation file for that lang\n if (file_exists(\"app/messages/\".$language.\".php\")) {\n require \"app/messages/\".$language.\".php\";\n } else {\n // fallback to some default\n require \"app/messages/en.php\";\n }\n \n //Return a translation object\n return new \\Phalcon\\Translate\\Adapter\\NativeArray(array(\n \"content\" => $messages\n ));\n }", "title": "" }, { "docid": "42540ebb0fd9e602150f137c377e93ce", "score": "0.5227979", "text": "protected function getTranslator($locale, $messageSelector, $cachepath, $debug)\n {\n return new Translator(\n $locale,\n $messageSelector,\n $cachepath,\n $debug\n );\n }", "title": "" }, { "docid": "531a7101fbaad1a1035586a4bc6d9646", "score": "0.5220874", "text": "function &make_entry($original, $translation)\n {\n }", "title": "" }, { "docid": "65a30b07eae1a18da2819c8c61942a8b", "score": "0.51935136", "text": "public function __construct() {\n\t\tparent::__construct();\n\t\t$this->_gettext_domain = 'lang';\n\t\tlog_message('debug', \"Gettext Class Initialized\");\n\t}", "title": "" }, { "docid": "ee054129f09aa11b331e2c368507635d", "score": "0.5190527", "text": "public function __construct(TranslatorMenu $trans_menu){\n\n $this->trans_menu = $trans_menu;\n }", "title": "" }, { "docid": "85d112bdfcf021507674426afaefadec", "score": "0.5176823", "text": "public function __construct(ContentTranslation $translation)\n {\n $this->translation = $translation;\n }", "title": "" }, { "docid": "8d8e44bb14c724cdaaa87f3aed90644f", "score": "0.5158866", "text": "public function __construct()\n\t{\n\t\t$this->getConfig();\n\t\t$this->getTranslate();\n\t}", "title": "" }, { "docid": "724532a9beab1fff3d665d71a68b9757", "score": "0.5133075", "text": "public function __construct(TranslationInterface $string_translation) {\n $this->stringTranslation = $string_translation;\n }", "title": "" }, { "docid": "4e5406d0d256ef21e5234648d5cf4576", "score": "0.5132342", "text": "function getTranslation()\n {\n $ret = array();\n foreach ( $this->strings as $context => $data )\n {\n $ret[$context] = new ezcTranslation( $data );\n }\n return $ret;\n }", "title": "" }, { "docid": "18095ff90823eca6381fb61302a94b9c", "score": "0.513046", "text": "protected function registerTranslators()\n {\n $this->app->bind('pubsub.events.translators.simple', function () {\n return new SimpleEventMessageTranslator();\n });\n\n $this->app->bind('pubsub.events.translators.topic', function () {\n return new TopicEventMessageTranslator();\n });\n\n $this->app->bind('pubsub.events.translators.schema', function () {\n return new SchemaEventMessageTranslator();\n });\n }", "title": "" }, { "docid": "2e5390e658587a3989855708e387503e", "score": "0.5129585", "text": "public function __construct(Translator $translator)\n {\n $this->translator = $translator;\n }", "title": "" }, { "docid": "d8bf7d05fa5ced1be6f19f11f05824f9", "score": "0.51172125", "text": "public function processLanguage()\r\r\r\n\t{\r\r\r\n\t\t$this->getTranslate();\r\r\r\n\t\treturn $this;\r\r\r\n\t}", "title": "" }, { "docid": "95790638a840de8f847b014ad912270f", "score": "0.509979", "text": "public function __construct(\n private readonly Client $client,\n private readonly Translation $translation,\n ) {\n }", "title": "" }, { "docid": "757c47516f5ab18fbdd1758c259b4085", "score": "0.50740975", "text": "public function init(){\n parent::init();\n \n $this->t = Zend_Registry::get('Zend_Translate');\n }", "title": "" }, { "docid": "775006fb82b6075e955f0d2b5f5b5cab", "score": "0.5069888", "text": "public function createLocalization()\n {\n $this->create('localization')->stub('repository_localization')->generate();\n }", "title": "" }, { "docid": "075737d419141565096b9d754766962b", "score": "0.50686485", "text": "protected function getTranslation_WriterService()\n {\n $this->services['translation.writer'] = $instance = new \\Symfony\\Component\\Translation\\Writer\\TranslationWriter();\n\n $instance->addDumper('php', ${($_ = isset($this->services['translation.dumper.php']) ? $this->services['translation.dumper.php'] : $this->get('translation.dumper.php')) && false ?: '_'});\n $instance->addDumper('xlf', ${($_ = isset($this->services['translation.dumper.xliff']) ? $this->services['translation.dumper.xliff'] : $this->get('translation.dumper.xliff')) && false ?: '_'});\n $instance->addDumper('po', ${($_ = isset($this->services['translation.dumper.po']) ? $this->services['translation.dumper.po'] : $this->get('translation.dumper.po')) && false ?: '_'});\n $instance->addDumper('mo', ${($_ = isset($this->services['translation.dumper.mo']) ? $this->services['translation.dumper.mo'] : $this->get('translation.dumper.mo')) && false ?: '_'});\n $instance->addDumper('yml', ${($_ = isset($this->services['translation.dumper.yml']) ? $this->services['translation.dumper.yml'] : $this->get('translation.dumper.yml')) && false ?: '_'});\n $instance->addDumper('ts', ${($_ = isset($this->services['translation.dumper.qt']) ? $this->services['translation.dumper.qt'] : $this->get('translation.dumper.qt')) && false ?: '_'});\n $instance->addDumper('csv', ${($_ = isset($this->services['translation.dumper.csv']) ? $this->services['translation.dumper.csv'] : $this->get('translation.dumper.csv')) && false ?: '_'});\n $instance->addDumper('ini', ${($_ = isset($this->services['translation.dumper.ini']) ? $this->services['translation.dumper.ini'] : $this->get('translation.dumper.ini')) && false ?: '_'});\n $instance->addDumper('json', ${($_ = isset($this->services['translation.dumper.json']) ? $this->services['translation.dumper.json'] : $this->get('translation.dumper.json')) && false ?: '_'});\n $instance->addDumper('res', ${($_ = isset($this->services['translation.dumper.res']) ? $this->services['translation.dumper.res'] : $this->get('translation.dumper.res')) && false ?: '_'});\n\n return $instance;\n }", "title": "" }, { "docid": "89fd237a0d9826659ea1570c65f8dd52", "score": "0.505149", "text": "abstract protected function _createTranslationException($message, $code = 0, \\Exception $previous = null, $subject = null, TranslatorInterface $translator = null);", "title": "" }, { "docid": "aeab7b78e2e97ab877c4c76b587dc169", "score": "0.50290984", "text": "function __construct($request, $response) {\n\t\tparent::__construct($request, $response);\n\t\n\t\tif (!$this->has_error){\n\t\t\t$json = json_decode($response, true);\n\t\t\t\n \t\t$lang_data = $json[\"language\"];\n \t\tif ($lang_data){\n \t\t\t$this->language = new EFLanguage($lang_data);\n \t\t}\n \t\t\n \t\t$entities = $json[\"entities\"];\n \t\tif ($entities){\n \t\t\tforeach ($entities as $entity) {\n \t\t\t\tarray_push($this->entities, new EFTextEntity($entity));\n \t\t\t}\n \t\t}\n \t\t\n \t\t$pages = $json[\"pages\"];\n \t\tif ($pages){\n \t\t\tforeach ($pages as $page) {\n \t\t\t\tarray_push($this->pages, new EFPage($page));\n \t\t\t}\n \t\t}\n\t\t}\n \t}", "title": "" }, { "docid": "c4edca5eeb3a4ebb4c6986396025841d", "score": "0.50234437", "text": "private function handleTranslations()\n {\n $this->loadTranslationsFrom(__DIR__.'/../lang', 'ecommerce');\n }", "title": "" }, { "docid": "0c227ca1e61e9d14f34a8ffce86d7efb", "score": "0.5003245", "text": "protected function _loadDbTranslation()\n {\n $this->_data['db'] = $this->_translateResource->getTranslationArray(null, $this->getLocale());\n return $this;\n }", "title": "" }, { "docid": "71e78456e55da2c059f4993d5b29dbc4", "score": "0.5001986", "text": "public static function translate($string)\n {\n return new self($string);\n }", "title": "" }, { "docid": "3e495e790784f881f8ef60bd1d5e6f43", "score": "0.5000123", "text": "public function get_translation(){\r\n\t\t}", "title": "" }, { "docid": "564b0a7bf59171bd2c43edd64c2d464c", "score": "0.49999464", "text": "public static function make(array $event)\n {\n if (isset($event['cli'])) {\n return new CliHandler;\n } elseif (isset($event['Records'][0]['messageId'])) {\n return new QueueHandler;\n } else {\n return new UnknownEventHandler;\n }\n }", "title": "" }, { "docid": "52e15b579148e3350c0b02a7c0d26cea", "score": "0.4998218", "text": "public function getTranslate()\n {\n if (null === $this->_translate)\n {\n $options = $this->getOptions();\n\n // First init cache, then create the translator\n $this->_setCache();\n\n // Ensure locale is set: required by translator. There's no need to\n // pass this locale to translate, though: will be done automatically.\n $this->_bootstrap->bootstrap('Locale');\n $locale = $this->_bootstrap->getResource('Locale');\n\n // Load the file with shared, module-independant translations.\n // Performance: use absolute path, so that ZF doesn't need to resolve it\n // Filepath format: {locale}/{locale}.ini, e.g. \"nl_NL/nl_NL.ini\".\n $filename = sprintf('%s%s%s%s%s.%s',\n GLITCH_LANGUAGES_PATH,\n DIRECTORY_SEPARATOR,\n $locale->toString(),\n DIRECTORY_SEPARATOR,\n $locale->toString(),\n $this->_adapterFileExtension\n );\n\n // Config may contain additional translate options\n $params = (isset($options['options'])) ? $options['options'] : array();\n\n // Auto-set the logger to which notices and messages are written to\n $this->_bootstrap->bootstrap('Log');\n $params['log'] = $this->_bootstrap->getResource('Log');\n\n $this->_translate = new Zend_Translate($this->_adapterName, $filename, null, $params);\n\n // Allow application-wide access; e.g. Zend_Form uses this.\n // Use the registry to change the locale at some point in your\n // application, i.e. after the user has switched language:\n // Glitch_Registry::getTranslate()->setLocale('en_GB')\n Glitch_Registry::setTranslate($this->_translate);\n }\n return $this->_translate;\n }", "title": "" }, { "docid": "9b7513ab210bd25077c9a616377f5c1a", "score": "0.4994849", "text": "private function translate()\n {\n //Load and store parameters\n $recipe_id = (int)$this->Request->get('recipe_id');\n $translation = json_decode($this->Request->get('translation'), true);\n $lang = $this->Request->get('lang');\n $this->responseSetParam('recipe_id', $recipe_id);\n $this->responseSetParam('lang', $lang);\n\n //Store recipe translation\n $RecipesLib = new RecipesLib($this->DB, $this->User);\n $translate_id = $RecipesLib->translate($recipe_id, $translation, $lang);\n $this->responseSetParam('translated_id', $translate_id);\n \n //Update user's grade\n $UsersLib = new UsersLib($this->DB, $this->User);\n $new_grade = $UsersLib->grade_update($this->User->getID(), C::COOKIES_VALUE_TRANSLATE, 'add');\n $this->responseSetParam('user_grade', $new_grade);\n }", "title": "" }, { "docid": "bbc9cb11a1c835786ac68b8c109a8bb9", "score": "0.49933922", "text": "function onContextCreate()\n {\n $stdClass = new \\stdClass();\n $stdClass->text = 'handler';\n return $stdClass;\n }", "title": "" }, { "docid": "b822393c8f7caf833735a5010c5dd35a", "score": "0.49919263", "text": "function _translation($translation, $string_sguid, $lng) {\n\n $translation['translation'] = bcl::string_unpack($translation['translation']);\n\n $btr_user = oauth2_user_get();\n $is_own = ($btr_user['name'] and ($btr_user['name'] == $translation['author']));\n $is_approved = ($btr_user['name'] and in_array($btr_user['name'], array_keys($translation['votes'])));\n $is_new = ($translation['tguid'] == 'new');\n $may_moderate = ($is_own or bcl::user_access('btranslator-resolve'));\n\n $form = array(\n '#theme' => 'btrClient_translate_translation',\n 'original' => array(\n '#type' => 'value',\n '#value' => $translation,\n ),\n );\n\n // The 'approved' radio/checkbox is used to pick the approved (voted/liked)\n // translation(s).\n $voting_mode = variable_get('btrClient_voting_mode', 'single');\n $type = ($voting_mode == 'single') ? 'radio' : 'checkbox';\n $form['approved'] = array(\n '#type' => $type,\n '#theme' => 'btrClient_translate_radio',\n '#theme_wrappers' => array(),\n '#title' => _render($translation['translation'], $is_new ? t('(empty)') : FALSE),\n '#return_value' => $translation['tguid'],\n '#default_value' => $is_approved ? $translation['tguid'] : '',\n '#attributes' => array('class' => array('selector')),\n );\n if ($voting_mode == 'single') {\n $form['approved']['#checked'] = $is_approved;\n $form['approved']['#parents'] = array('strings', $string_sguid, 'approved');\n }\n\n if ($may_moderate && !$is_new) {\n $form['declined'] = array(\n '#type' => 'checkbox',\n '#title' => t('Decline'),\n '#default_value' => FALSE,\n );\n }\n\n if ($is_new) {\n // Fill in with as many textareas as required to enter translation\n // for this string.\n $form['value'] = array_fill(0, count($translation['translation']), array(\n '#type' => 'textarea',\n '#cols' => 60,\n '#rows' => 3,\n '#default_value' => t('<New translation>'),\n '#attributes' => array(\n 'defaultValue' => t('<New translation>'),\n ),\n ));\n\n }\n else {\n $form['edit'] = array(\n '#markup' => t('Edit a copy'),\n '#prefix' => '<label title=\"' . t('Edit a copy') . '\">',\n '#suffix' => '</label>',\n );\n $form['author'] = array(\n '#name' => $translation['author'],\n '#uid' => $translation['uid'],\n '#time' => $translation['time'],\n );\n $form['votes'] = array(\n '#count' => $translation['count'],\n '#voters' => $translation['votes'],\n );\n }\n\n return $form;\n}", "title": "" }, { "docid": "9f336dbbcb75f2c33df2645dbe726910", "score": "0.49811628", "text": "function make_trans()\n\t{\n\t\tglobal $current_lang;\n\n\t\t$this->trans = array();\n\t\t$res = $this->selectResult('all');\n\t\tif (PEAR::isError($res)) {\n\t\t\t// return the error\n\t\t\tdie($res->getmessage());\n\t\t}\n\n\t\twhile($row = $res->fetchrow())\n\t\t{\n\t\t\t$this->trans[strtolower($row->string_id)] = $row->{'name_'.$current_lang};\n\t\t}\n\t}", "title": "" }, { "docid": "7050c9764884e0fe9957b15d54316686", "score": "0.497888", "text": "function __construct( $labelID='') \n {\n \n parent::__construct( XMLObject_Multilingual_Translation::NODE_TRANSLATION_ROOT );\n \n // set the list of field names to manage\n $this->fieldNames = 'language_id,translation_moddate';\n $this->fieldList = explode( ',', $this->fieldNames);\n \n $this->entryList = array();\n \n $this->labelID = $labelID;\n \n // setup DB object\n $this->db = new Database_Site();\n $this->db->connectToDB( SITE_DB_NAME, SITE_DB_PATH, SITE_DB_USER, SITE_DB_PWORD);\n \n if ($this->labelID != '') {\n $this->loadData();\n } \n \n }", "title": "" }, { "docid": "0bb25051f6ee9765c6de0d07c1ae5c3a", "score": "0.49623656", "text": "public function init()\n {\n parent::init();\n if (empty($this->languages)) {\n $this->languages = [Reaction::$app->language];\n }\n $this->initUrlLanguagePrefixes();\n if (!isset($this->translations['rct']) && !isset($this->translations['rct*'])) {\n $this->translations['rct'] = [\n 'class' => 'Reaction\\I18n\\PhpMessageSource',\n 'sourceLanguage' => 'en-US',\n 'basePath' => '@reaction/Messages',\n ];\n }\n\n if (!isset($this->translations['app']) && !isset($this->translations['app*']) && !isset($this->translations['*'])) {\n $this->translations['app'] = [\n 'class' => 'Reaction\\I18n\\PhpMessageSource',\n 'sourceLanguage' => Reaction::$app->sourceLanguage,\n 'basePath' => '@app/Messages',\n ];\n }\n }", "title": "" }, { "docid": "2bc90b5aee48f6b575e14acf49c41736", "score": "0.49523968", "text": "protected function getTranslator()\n {\n // Use own implementation as fallback\n if (!static::$translator)\n {\n static::$translator = new Translator;\n }\n\n return static::$translator;\n }", "title": "" }, { "docid": "0288dc71dc5b110f8cf4c2f4ccf715bf", "score": "0.49449596", "text": "function __construct()\n\t{\n\t\twriteLog('Debug', 'Language class initialized.');\n\t}", "title": "" }, { "docid": "379d6717721e4b3f512b8ba3b52829b7", "score": "0.49445805", "text": "protected function getTranslation_LoaderService()\n {\n $a = ${($_ = isset($this->services['translation.loader.xliff']) ? $this->services['translation.loader.xliff'] : $this->get('translation.loader.xliff')) && false ?: '_'};\n\n $this->services['translation.loader'] = $instance = new \\Symfony\\Bundle\\FrameworkBundle\\Translation\\TranslationLoader();\n\n $instance->addLoader('php', ${($_ = isset($this->services['translation.loader.php']) ? $this->services['translation.loader.php'] : $this->get('translation.loader.php')) && false ?: '_'});\n $instance->addLoader('yml', ${($_ = isset($this->services['translation.loader.yml']) ? $this->services['translation.loader.yml'] : $this->get('translation.loader.yml')) && false ?: '_'});\n $instance->addLoader('xlf', $a);\n $instance->addLoader('xliff', $a);\n $instance->addLoader('po', ${($_ = isset($this->services['translation.loader.po']) ? $this->services['translation.loader.po'] : $this->get('translation.loader.po')) && false ?: '_'});\n $instance->addLoader('mo', ${($_ = isset($this->services['translation.loader.mo']) ? $this->services['translation.loader.mo'] : $this->get('translation.loader.mo')) && false ?: '_'});\n $instance->addLoader('ts', ${($_ = isset($this->services['translation.loader.qt']) ? $this->services['translation.loader.qt'] : $this->get('translation.loader.qt')) && false ?: '_'});\n $instance->addLoader('csv', ${($_ = isset($this->services['translation.loader.csv']) ? $this->services['translation.loader.csv'] : $this->get('translation.loader.csv')) && false ?: '_'});\n $instance->addLoader('res', ${($_ = isset($this->services['translation.loader.res']) ? $this->services['translation.loader.res'] : $this->get('translation.loader.res')) && false ?: '_'});\n $instance->addLoader('dat', ${($_ = isset($this->services['translation.loader.dat']) ? $this->services['translation.loader.dat'] : $this->get('translation.loader.dat')) && false ?: '_'});\n $instance->addLoader('ini', ${($_ = isset($this->services['translation.loader.ini']) ? $this->services['translation.loader.ini'] : $this->get('translation.loader.ini')) && false ?: '_'});\n $instance->addLoader('json', ${($_ = isset($this->services['translation.loader.json']) ? $this->services['translation.loader.json'] : $this->get('translation.loader.json')) && false ?: '_'});\n\n return $instance;\n }", "title": "" }, { "docid": "bc425f29ae4224b75ff72b37f8208685", "score": "0.4937398", "text": "protected function getTranslatorService()\n {\n $this->services['translator'] = $instance = new \\Symfony\\Bundle\\FrameworkBundle\\Translation\\Translator(new \\Symfony\\Component\\DependencyInjection\\ServiceLocator(array('translation.loader.csv' => function () {\n return ($this->privates['translation.loader.csv'] ?? $this->privates['translation.loader.csv'] = new \\Symfony\\Component\\Translation\\Loader\\CsvFileLoader());\n }, 'translation.loader.dat' => function () {\n return ($this->privates['translation.loader.dat'] ?? $this->privates['translation.loader.dat'] = new \\Symfony\\Component\\Translation\\Loader\\IcuDatFileLoader());\n }, 'translation.loader.ini' => function () {\n return ($this->privates['translation.loader.ini'] ?? $this->privates['translation.loader.ini'] = new \\Symfony\\Component\\Translation\\Loader\\IniFileLoader());\n }, 'translation.loader.json' => function () {\n return ($this->privates['translation.loader.json'] ?? $this->privates['translation.loader.json'] = new \\Symfony\\Component\\Translation\\Loader\\JsonFileLoader());\n }, 'translation.loader.mo' => function () {\n return ($this->privates['translation.loader.mo'] ?? $this->privates['translation.loader.mo'] = new \\Symfony\\Component\\Translation\\Loader\\MoFileLoader());\n }, 'translation.loader.php' => function () {\n return ($this->privates['translation.loader.php'] ?? $this->privates['translation.loader.php'] = new \\Symfony\\Component\\Translation\\Loader\\PhpFileLoader());\n }, 'translation.loader.po' => function () {\n return ($this->privates['translation.loader.po'] ?? $this->privates['translation.loader.po'] = new \\Symfony\\Component\\Translation\\Loader\\PoFileLoader());\n }, 'translation.loader.qt' => function () {\n return ($this->privates['translation.loader.qt'] ?? $this->privates['translation.loader.qt'] = new \\Symfony\\Component\\Translation\\Loader\\QtFileLoader());\n }, 'translation.loader.res' => function () {\n return ($this->privates['translation.loader.res'] ?? $this->privates['translation.loader.res'] = new \\Symfony\\Component\\Translation\\Loader\\IcuResFileLoader());\n }, 'translation.loader.xliff' => function () {\n return ($this->privates['translation.loader.xliff'] ?? $this->privates['translation.loader.xliff'] = new \\Symfony\\Component\\Translation\\Loader\\XliffFileLoader());\n }, 'translation.loader.yml' => function () {\n return ($this->privates['translation.loader.yml'] ?? $this->privates['translation.loader.yml'] = new \\Symfony\\Component\\Translation\\Loader\\YamlFileLoader());\n })), new \\Symfony\\Component\\Translation\\Formatter\\MessageFormatter(new \\Symfony\\Component\\Translation\\MessageSelector()), 'en', array('translation.loader.php' => array(0 => 'php'), 'translation.loader.yml' => array(0 => 'yaml', 1 => 'yml'), 'translation.loader.xliff' => array(0 => 'xlf', 1 => 'xliff'), 'translation.loader.po' => array(0 => 'po'), 'translation.loader.mo' => array(0 => 'mo'), 'translation.loader.qt' => array(0 => 'ts'), 'translation.loader.csv' => array(0 => 'csv'), 'translation.loader.res' => array(0 => 'res'), 'translation.loader.dat' => array(0 => 'dat'), 'translation.loader.ini' => array(0 => 'ini'), 'translation.loader.json' => array(0 => 'json')), array('cache_dir' => ($this->targetDirs[0].'/translations'), 'debug' => false, 'resource_files' => array('af' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.af.xlf')), 'ar' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.ar.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.ar.xlf')), 'az' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.az.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.az.xlf')), 'bg' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.bg.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.bg.xlf')), 'ca' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.ca.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.ca.xlf')), 'cs' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.cs.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.cs.xlf')), 'cy' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.cy.xlf')), 'da' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.da.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.da.xlf')), 'de' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.de.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.de.xlf')), 'el' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.el.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.el.xlf')), 'en' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.en.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.en.xlf')), 'es' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.es.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.es.xlf')), 'et' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.et.xlf')), 'eu' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.eu.xlf')), 'fa' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.fa.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.fa.xlf')), 'fi' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.fi.xlf')), 'fr' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.fr.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.fr.xlf')), 'gl' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.gl.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.gl.xlf')), 'he' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.he.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.he.xlf')), 'hr' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.hr.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.hr.xlf')), 'hu' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.hu.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.hu.xlf')), 'hy' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.hy.xlf')), 'id' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.id.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.id.xlf')), 'it' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.it.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.it.xlf')), 'ja' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.ja.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.ja.xlf')), 'lb' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.lb.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.lb.xlf')), 'lt' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.lt.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.lt.xlf')), 'lv' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.lv.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.lv.xlf')), 'mn' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.mn.xlf')), 'nb' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.nb.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.nb.xlf')), 'nl' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.nl.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.nl.xlf')), 'nn' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.nn.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.nn.xlf')), 'no' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.no.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.no.xlf')), 'pl' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.pl.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.pl.xlf')), 'pt' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.pt.xlf')), 'pt_BR' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.pt_BR.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.pt_BR.xlf')), 'ro' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.ro.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.ro.xlf')), 'ru' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.ru.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.ru.xlf')), 'sk' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.sk.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.sk.xlf')), 'sl' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.sl.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.sl.xlf')), 'sq' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.sq.xlf')), 'sr_Cyrl' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.sr_Cyrl.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.sr_Cyrl.xlf')), 'sr_Latn' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.sr_Latn.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.sr_Latn.xlf')), 'sv' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.sv.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.sv.xlf')), 'th' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.th.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.th.xlf')), 'tl' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.tl.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.tl.xlf')), 'tr' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.tr.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.tr.xlf')), 'uk' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.uk.xlf')), 'vi' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.vi.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.vi.xlf')), 'zh_CN' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.zh_CN.xlf'), 1 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.zh_CN.xlf')), 'zh_TW' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\validator/Resources/translations\\\\validators.zh_TW.xlf')), 'pt_PT' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.pt_PT.xlf')), 'ua' => array(0 => ($this->targetDirs[3].'\\\\vendor\\\\symfony\\\\security\\\\Core/Resources/translations\\\\security.ua.xlf')))));\n\n $instance->setConfigCacheFactory(($this->privates['config_cache_factory'] ?? $this->privates['config_cache_factory'] = new \\Symfony\\Component\\Config\\ResourceCheckerConfigCacheFactory()));\n $instance->setFallbackLocales(array(0 => 'en'));\n\n return $instance;\n }", "title": "" }, { "docid": "bc3531c5d612ad1982aa8e286eb0b2e0", "score": "0.49357685", "text": "static public function createHandler(array $config)\n {\n if(!isset($config['handler'])) {\n throw new \\Exception('No handler define');\n }\n\n $handler = $config['handler'];\n $formatter = '';\n if (isset($config['formatter'])) {\n $formatter = $config['formatter'];\n }\n $handler->setFormatter(Builder::createFormatter($formatter));\n\n return $handler;\n }", "title": "" }, { "docid": "281f40a00d31d128044213250a70a1be", "score": "0.493293", "text": "protected function _loadTranslations()\r\n {\r\n return $this;\r\n }", "title": "" }, { "docid": "5ba2329e7ab0c8b99455ad64c44a8852", "score": "0.4932136", "text": "protected function get1d0d0383d495697b8928cf9fdffa849c0a5ff16e8613700d3c711a38db24421b(): \\Viserio\\Bridge\\Twig\\Extension\\TranslatorExtension\n {\n return new \\Viserio\\Bridge\\Twig\\Extension\\TranslatorExtension(($this->services[\\Viserio\\Contract\\Translation\\TranslationManager::class] ?? $this->get(\\Viserio\\Contract\\Translation\\TranslationManager::class)));\n }", "title": "" }, { "docid": "9d5877de113d980282b20396c3ad3d5d", "score": "0.4922641", "text": "public function insert($context, $original, $plural = '')\n {\n return $this[] = new Translation($context, $original, $plural);\n }", "title": "" }, { "docid": "776e0930a634309635860e633101acbb", "score": "0.49208307", "text": "public function __construct()\n\t{\n\t\t$this->set_translate(false);\n\t\tparent::__construct();\n\t}", "title": "" }, { "docid": "92af4e90f12818d432b1a7c998955654", "score": "0.49179426", "text": "public function translationKey();", "title": "" }, { "docid": "674f7b856732b42914d842237017c90e", "score": "0.4916687", "text": "public function __construct(Translator $translator, Container $container = null)\n {\n }", "title": "" }, { "docid": "e7c9ba57a3b4d28c335811eb49e99eb6", "score": "0.49154446", "text": "protected function getStofDoctrineExtensions_Listener_TranslatableService()\n {\n $this->privates['stof_doctrine_extensions.listener.translatable'] = $instance = new \\Gedmo\\Translatable\\TranslatableListener();\n\n $instance->setAnnotationReader(($this->privates['annotations.cached_reader'] ?? $this->getAnnotations_CachedReaderService()));\n $instance->setDefaultLocale($this->getEnv('LOCALE'));\n $instance->setTranslatableLocale($this->getEnv('LOCALE'));\n $instance->setTranslationFallback(true);\n $instance->setPersistDefaultLocaleTranslation(true);\n $instance->setSkipOnLoad(false);\n\n return $instance;\n }", "title": "" }, { "docid": "aeca05f1b51e3bb5f8ef129974ec9de8", "score": "0.49147838", "text": "public function __construct(\\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {\n $this->alterInfo('plugin_message_info');\n $this->setCacheBackend($cache_backend, 'plugin_message');\n\n parent::__construct('Plugin/Message', $namespaces, $module_handler, 'Drupal\\plugin_message\\MessageInterface', 'Drupal\\plugin_message\\Annotation\\Message');\n }", "title": "" }, { "docid": "3f8cf7b9e9f25d8c74a9ac6bff03dc34", "score": "0.49078676", "text": "public function translate($id){\n }", "title": "" }, { "docid": "9e7f11eb30380793dc9b34bfe0a0f793", "score": "0.490765", "text": "public function __construct()\n {\n $this->middleware('auth')->only('createTranslate');\n }", "title": "" }, { "docid": "44153e7d6b041f85bd9ee9153d2a2946", "score": "0.4898655", "text": "public function __construct(array $options, array $translations = array()) {\n\n foreach ($options as $k => $v) {\n $this->$k = $v;\n }\n\n $this->_validate();\n\n $this->_i18n = $translations;\n $this->_uid = $this->idmod . '_' . $this->container;\n }", "title": "" }, { "docid": "b36e9dd108bfce305c09d52bd2d32ea9", "score": "0.48965997", "text": "public function init()\n {\n parent::init();\n self::$plugin = $this;\n\n Craft::configure($this, require __DIR__ . '/config/plugin.php');\n\n Craft::setAlias('@translation', $this->getBasePath());\n\n // Add in our console commands\n if (Craft::$app instanceof ConsoleApplication) {\n $this->controllerNamespace = 'panlatent\\translation\\console\\controllers';\n } else {\n Event::on(UrlManager::class, UrlManager::EVENT_REGISTER_CP_URL_RULES, function(RegisterUrlRulesEvent $event) {\n $event->rules = array_merge($event->rules, require __DIR__ . '/config/cproutes.php');\n });\n }\n\n // Register our utilities\n Event::on(\n Utilities::class,\n Utilities::EVENT_REGISTER_UTILITY_TYPES,\n function (RegisterComponentTypesEvent $event) {\n $event->types[] = TranslatorUtility::class;\n }\n );\n\n /** @var Settings $settings */\n $settings = $this->getSettings();\n if ($settings->registerCpSidebar) {\n Event::on(Cp::class, Cp::EVENT_REGISTER_CP_NAV_ITEMS, function(RegisterCpNavItemsEvent $event) {\n $event->navItems[$this->handle] = [\n 'label' => Craft::t('translation', 'Translation'),\n 'url' => 'translation',\n 'icon' => '@translation/icon.svg',\n ];\n });\n }\n\n Craft::info(\n Craft::t(\n 'translation',\n '{name} plugin loaded',\n ['name' => $this->name]\n ),\n __METHOD__\n );\n }", "title": "" }, { "docid": "54e138f211847217d48e6ca870851937", "score": "0.4892989", "text": "public function __construct($logHandler, string $target);", "title": "" }, { "docid": "41914a73b644f1bb7360ebf93370621c", "score": "0.48835486", "text": "function translate_with_context($text, $domain = 'default')\n{\n}", "title": "" }, { "docid": "72d4590b89b97e71c75d41f31d06f38c", "score": "0.48806337", "text": "public function translate($name, $source, $target);", "title": "" }, { "docid": "8108394411b20c2df724468af5201f42", "score": "0.48651284", "text": "public function translate($key, $value): Language\n {\n $this->data[$key] = $value;\n\n return $this;\n }", "title": "" }, { "docid": "9af3c604249307c10b8e8e81a20206d8", "score": "0.4863605", "text": "private function translate(){\n\n\t\t\t$mt = new BingTranslateRequest();\n\n\t\t\tforeach ($this->header_array['lemma'] as $i => $word){\n\n\t\t\t\t$translations = $mt->translateMany($word, $this->source_lang, $this->dest_lang);\n\n\t\t\t\t$this->header_array['translation'][$i] = $translations;\n\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f0f4efd0f65d68d776ecca18118c0d08", "score": "0.48602113", "text": "protected function compile()\n\t{\n\t\t$this\t->phrase\n\t\t\t\t->replace(\"\\\"\", \"\\\\\\\"\")\n\t\t\t\t->regEx($this->patterns[\"link\"], $this->replacement[\"link\"])\n\t\t\t\t->regEx($this->patterns[\"config\"], $this->replacement[\"config\"])\n\t\t\t\t->regEx($this->patterns[\"user\"], $this->replacement[\"user\"])\n\t\t\t\t->regEx($this->patterns[\"request\"], $this->replacement[\"request\"])\n\t\t\t\t->regEx($this->patterns[\"const\"], $this->replacement[\"const\"])\n\t\t\t\t->regEx($this->patterns[\"image\"], $this->replacement[\"image\"])\n\t\t\t\t->regEx($this->patterns[\"time\"], $this->replacement[\"time\"]);\n\t\tHook::event(\"CompileLanguagePhrases\", array($this));\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "fb9cfe14d7ae257bba47f47504152343", "score": "0.4856845", "text": "public function getTranslator(): Translator;", "title": "" }, { "docid": "2e0052997cc83f4caaa92d7972eac752", "score": "0.48552582", "text": "function __construct($phrase_in, $level_in) {\n\t\t\n\t\t$this->phrase = $phrase_in;\n\t\t$this->level = $level_in;\n\t\t\n\t}", "title": "" }, { "docid": "9905d6a112bd2aeea01393694dfc5d16", "score": "0.48539755", "text": "protected function _initTranslate() {\n\t\trequire_once LIBRARY_PATH . '/My/global.php';\n\n \t$languageCode = (isset($_SERVER[\"HTTP_ACCEPT_LANGUAGE\"])) ? substr($_SERVER[\"HTTP_ACCEPT_LANGUAGE\"],0,2) : \"en\";\n\n\t\tif ($languageCode!='es'){\n\t\t\t$languageCode='en';\n\t\t}\n\t\t$translate = new Zend_Translate(\n\t\t\t'gettext', APPLICATION_PATH .'/langs/'.$languageCode.'.mo', $languageCode,\n\t\t\tarray(\n\t\t\t'disableNotices' => true,\n\t\t\t'clear' =>true,\n\t\t\t'reload'=>true,\n\t\t\t)\n\t\t);\n\t\tZend_Registry::set('Zend_Translate', $translate);\n\t\tZend_Registry::set('languageCode',$languageCode);\n }", "title": "" }, { "docid": "ff17e6e3f2421cd65f64b154a7057c1a", "score": "0.48530412", "text": "public function load($filename)\n {\n $locale = $this->getLocale(); // Get current locale which is set by translation middleware.\n\n if (empty($locale)) {\n $this->setLocale($this->getDefault()); // Set default translation\n\n // Translation code must be set with translator->setLocale() function.\n // You should use translation middleware in middlewares.php.\n\n $locale = $this->getLocale();\n }\n $fileUrl = TRANSLATIONS . $locale . DS . $filename . '.php';\n $fileKey = substr(strstr($fileUrl, $locale), 0, -4);\n\n if (in_array($fileKey, $this->loaded, true)) {\n return $this->translateArray;\n }\n static::isDir($locale);\n\n $translateArray = include $fileUrl;\n\n if (! isset($translateArray)) {\n $this->c['logger']->error('Translation file does not contain valid format: ' . TRANSLATIONS . $locale . DS . $filename . '.php');\n return;\n }\n $this->loaded[] = $fileKey;\n $this->c['logger']->debug('Translation file loaded: ' . TRANSLATIONS . $locale . DS . $filename . '.php');\n\n $this->translateArray = array_merge($this->translateArray, $translateArray);\n $this->loadFallback($fileKey); // Load fallback translation if fallback enabled\n\n unset($translateArray);\n return $this;\n }", "title": "" }, { "docid": "b75b65dd3e6ef4ecaa423a7a2b2a6b53", "score": "0.485281", "text": "protected function createHandler()\n {\n $stack = HandlerStack::create();\n\n $stack->push(Middleware::mapRequest(function (RequestInterface $request) {\n $uri = $request->getUri();\n $query = $uri->getQuery();\n $query .= ( $query ? '&' : '' ) . http_build_query([\n 'api_key' => $this->config->getApiKey()\n ]);\n\n return new Request(\n $request->getMethod(),\n $uri->withQuery($query),\n $request->getHeaders(),\n $request->getBody(),\n $request->getProtocolVersion()\n );\n }));\n\n $stack->push(Middleware::retry(function ($retries, RequestInterface $request, ResponseInterface $response = null, TransferException $exception = null) {\n return $retries < $this->config->getRequestRetries() && ($exception instanceof ConnectException || ($response && $response->getStatusCode() >= 500));\n }, function ($retries) {\n return (int) pow(2, $retries) * 1000;\n }));\n\n return $stack;\n }", "title": "" }, { "docid": "306d6cc3cd620e79f4e7bb81c79ba8f0", "score": "0.48505765", "text": "public function __construct($changeTranslator, $currentTranslator, $job)\n {\n $this->changeTranslator = $changeTranslator;\n $this->currentTranslator = $currentTranslator;\n $this->job = $job;\n }", "title": "" }, { "docid": "4189baeb6a14bba8c1736583e468f255", "score": "0.48470846", "text": "protected function _construct() {\n $this->_init('connector/translate_attributes', 'id');\n }", "title": "" }, { "docid": "de3c68c8dd43edeba39351b639fd07a7", "score": "0.48429012", "text": "public function testTranslateEN()\n {\n $builder = new LocalePathBuilder($this->locator, 'locale://');\n $builder->addLocales('en_US');\n $paths = $builder->buildPaths();\n $loader = new ArrayFileLoader($paths);\n\n // Create the $translator object\n $translator = new MessageTranslator($loader->load());\n\n // Test most basic functionality\n $this->assertEquals($translator->translate('USERNAME'), \"Username\");\n\n // Test most the base locale\n $this->assertEquals($translator->translate('BASE_FALLBACK'), \"Base fallback\");\n\n // Test @TRANSLATION\n $this->assertEquals($translator->translate('ACCOUNT'), \"Account\"); // Shortcut for `ACCOUNT.@TRANSLATION`\n $this->assertEquals($translator->translate('ACCOUNT.ALT'), \"Profile\");\n\n // Test basic plural functionality\n $this->assertEquals($translator->translate('COLOR', 0), \"colors\"); //Note plural in english, singular in french !\n $this->assertEquals($translator->translate('COLOR', 1), \"color\");\n $this->assertEquals($translator->translate('COLOR', 2), \"colors\");\n $this->assertEquals($translator->translate('COLOR', 3), \"colors\");\n\n // Test plural default\n $this->assertEquals($translator->translate('COLOR'), \"color\");\n\n // Test basic nested items\n $this->assertEquals($translator->translate('COLOR.BLACK'), \"black\");\n $this->assertEquals($translator->translate('COLOR.WHITE'), \"white\");\n\n // Test placeholders\n $this->assertEquals($translator->translate('MY_CAR_MAKE', [\"car_make\" => \"Toyota\"]), \"My car is a Toyota\");\n $this->assertEquals($translator->translate('MY_CAR_YEAR', [\"year\" => 2015]), \"I bought my car in 2015\");\n\n // Test plural placeholder\n $this->assertEquals($translator->translate('X_CARS', 0), \"no cars\");\n $this->assertEquals($translator->translate('X_CARS', 1), \"a car\");\n $this->assertEquals($translator->translate('X_CARS', 2), \"2 cars\");\n $this->assertEquals($translator->translate('X_CARS', 10), \"10 cars\");\n\n // Example of a lang key in a placeholder\n // N.B.: In a real life situation, it's recommended to create a new Top level plural instead\n $this->assertEquals($translator->translate('MY_CARS', [\"x_cars\" => $translator->translate('X_CARS', 10)]), \"I have 10 cars\");\n\n // Test `+CAR` called (top nested name) without \"CAR\" defined\n $this->assertEquals($translator->translate('CAR'), \"car\");\n\n // Test 3 levels nested with \"CAR\"\n $this->assertEquals($translator->translate('CAR.GAS'), \"gas\");\n $this->assertEquals($translator->translate('CAR.EV'), \"electric\");\n $this->assertEquals($translator->translate('CAR.EV.HYBRID'), \"hybrid\");\n $this->assertEquals($translator->translate('CAR.HYDROGEN'), \"hydrogen\");\n\n // Test extra placeholder (`year` not used)\n $this->assertEquals($translator->translate(\"MY_CAR_MAKE\", [\"car_make\" => \"Toyota\", \"year\" => 2014]), \"My car is a Toyota\");\n\n // Test missing placeholder (`car_make` nor defined)\n $this->assertEquals($translator->translate(\"MY_CAR_MAKE\"), \"My car is a \");\n\n // Example of a complex translation\n $this->assertEquals($translator->translate('MY_CAR_STRING', [\n \"my_car\" => $translator->translate('CAR.EV.PLUGIN_HYBRID'),\n \"color\" => $translator->translate('COLOR.RED')\n ]), \"I drive a red plug-in hybrid\");\n\n // Test the special handles all together\n // MY_EV_CARS => {{who}} have {{plural}} {{type}} {{item}}\n // - who => Hard coded literal in language file\n // - plural => 3\n // - type => Will be replaced by the message of \"CAR.EV\" key\n // - item => Hard coded language key in languge file\n $this->assertEquals($translator->translate(\"MY_EV_CARS\", [\n \"plural\" => 3,\n \"type\" => \"&CAR.EV\"\n ]), \"I have 3 electric cars\");\n\n // Test that we can still access @TRANSLATION\n $this->assertEquals($translator->translate(\"MY_EV_CARS\"), \"My electric cars\");\n\n // Test pluralisation with custom plural key\n $this->assertEquals($translator->translate(\"X_HUNGRY_CATS\", [\"num\" => 0]), \"0 hungry cats\");\n $this->assertEquals($translator->translate(\"X_HUNGRY_CATS\", [\"num\" => 1]), \"1 hungry cat\");\n $this->assertEquals($translator->translate(\"X_HUNGRY_CATS\", [\"num\" => 2]), \"2 hungry cats\");\n $this->assertEquals($translator->translate(\"X_HUNGRY_CATS\", [\"num\" => 5]), \"5 hungry cats\");\n\n // Custom key can also be omited in the placeholder if it's the only placeholder even with custom plural key\n $this->assertEquals($translator->translate(\"X_HUNGRY_CATS\", 5), \"5 hungry cats\");\n\n // Test missing pluralisation and placeholder (expected fail)\n $this->assertEquals($translator->translate(\"X_HUNGRY_CATS\"), \"1 hungry cat\");\n\n // Test basic placeholder remplacement using int as placeholder value (So they don't try to translate \"min\" and \"max\")\n // We don't want to end up with \"Votre test doit être entre minimum et 200 patates\"\n $this->assertEquals($translator->translate(\"TEST_LIMIT\", [\"min\" => 4, \"max\" => 200]), \"Your test must be between 4 and 200 potatoes.\");\n }", "title": "" }, { "docid": "e901e6d59837a17fb0553b895b9d5135", "score": "0.48419073", "text": "protected function build_payment_tokens_handler() {\n\n\t\treturn new WC_Gateway_Elavon_Converge_Tokens_Handler( $this );\n\t}", "title": "" }, { "docid": "044db66326014b38a7de36f3f9874a4f", "score": "0.48385423", "text": "abstract public function handleTranslateDefaults();", "title": "" }, { "docid": "29054519abcdf3aa102e23eddc579a86", "score": "0.48348203", "text": "public function __construct($_to)\n {\n $this->to = $_to;\n $this->to_language_code = $this->convert_to_language_code($_to);\n }", "title": "" } ]
ce8dc90a2027e1e1965ca489181e659d
Definicion de variables para ejecucion del procedimientp
[ { "docid": "9e44f884f3bb66de0654fac29f103873", "score": "0.0", "text": "function listarMonedaDep(){\n\t\t$this->procedimiento='kaf.ft_moneda_dep_sel';\n\t\t$this->transaccion='SKA_MOD_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_moneda_dep','int4');\n\t\t$this->captura('id_moneda_act','int4');\n\t\t$this->captura('actualizar','varchar');\n\t\t$this->captura('contabilizar','varchar');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('id_moneda','int4');\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('id_usuario_mod','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t\n\t\t$this->captura('desc_moneda','varchar');\n\t\t$this->captura('desc_moneda_act','varchar');\n\t\t$this->captura('descripcion','varchar');\n\t\t\n\t\t\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" } ]
[ { "docid": "a24b12c70f91602c6cae74ad67941d36", "score": "0.6821942", "text": "protected function inicializar(){}", "title": "" }, { "docid": "40795a622f71d6fc97a0b6040df5cd57", "score": "0.65106976", "text": "protected function setBasicVariables() {}", "title": "" }, { "docid": "974c27012d453ecb9873fe5fef05c535", "score": "0.6370632", "text": "private function getProperti()\n\t{\n\t\t# code...\n\t}", "title": "" }, { "docid": "8f926399a6eb7d2824aa7883d753869b", "score": "0.6356956", "text": "function setVariables() {\n\t\t// initialize the database\n\t\t$db = JFactory::getDBO();\n\t\t// load the configuration variables\n\t\t$query = \"select * from `#__aicontactsafe_config`\";\n\t\t$db->setQuery( $query );\n\t\t$config_values = $db->loadObjectList();\n\t\tif ( count($config_values) > 0) {\n\t\t\tforeach($config_values as $value) {\n\t\t\t\t$config_key = $value->config_key;\n\t\t\t\t$config_value = $value->config_value;\n\t\t\t\t$this->$config_key = $config_value;\n\t\t\t}\n\t\t}\n\t\t// load the contact informations variables\n\t\t$query = \"select * from `#__aicontactsafe_contactinformations`\";\n\t\t$db->setQuery( $query );\n\t\t$info_values = $db->loadObjectList();\n\t\tif ( count($info_values) > 0) {\n\t\t\tforeach($info_values as $value) {\n\t\t\t\t$info_key = $value->info_key;\n\t\t\t\t$info_value = $value->info_value;\n\t\t\t\t$this->$info_key = $info_value;\n\t\t\t}\n\t\t}\n\n\t\t$this->select_default_status_filter = $this->selectStatus($this->default_status_filter, 'default_status_filter', 2 );\n\n\t\t// initialize the model\n\t\t$model = $this->getModel();\n\t\t// ckeck GD\n\t\t$this->gd = $model->checkGD();\n\t\t// check artion\n\t\t$activate_artio = $model->check_artio();\n\t\t$this->activate_artio = '';\n\t\tswitch($activate_artio) {\n\t\t\tcase 0:\n\t\t\t\t$this->activate_artio = '<font color=\"#808080\">' . JText::_('COM_AICONTACTSAFE_ARTIO_NOT_INSTALLED') . '</font>';\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->activate_artio = '<button onclick=\"document.getElementById(\\'task\\').value=\\'activate_artio\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_ACTIVATE') . '</button>';\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->activate_artio = '<font color=\"#008000\">' . JText::_('COM_AICONTACTSAFE_ARTIO_ACTIVATED') . '</font>';\n\t\t\t\t$this->activate_artio .= '&nbsp;&nbsp;<button onclick=\"document.getElementById(\\'task\\').value=\\'deactivate_artio\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_DEACTIVATE') . '</button>';\n\t\t\t\tbreak;\n\t\t}\n\t\t// check joomfish\n\t\t$activate_joomfish = $model->check_joomfish();\n\t\t$this->activate_joomfish = '';\n\t\tswitch($activate_joomfish) {\n\t\t\tcase 0:\n\t\t\t\t$this->activate_joomfish = '<font color=\"#808080\">' . JText::_('COM_AICONTACTSAFE_JOOMFISH_NOT_INSTALLED') . '</font>';\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->activate_joomfish = '<button onclick=\"document.getElementById(\\'task\\').value=\\'activate_joomfish\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_ACTIVATE') . '</button>';\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->activate_joomfish = '<font color=\"#008000\">' . JText::_('COM_AICONTACTSAFE_JOOMFISH_ACTIVATED') . '</font>';\n\t\t\t\t$this->activate_joomfish .= '&nbsp;&nbsp;<button onclick=\"document.getElementById(\\'task\\').value=\\'deactivate_joomfish\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_DEACTIVATE') . '</button>';\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// check falang\n\t\t$activate_falang = $model->check_falang();\n\t\t$this->activate_falang = '';\n\t\tswitch($activate_falang) {\n\t\t\tcase 0:\n\t\t\t\t$this->activate_falang = '<font color=\"#808080\">' . JText::_('COM_AICONTACTSAFE_FALANG_NOT_INSTALLED') . '</font>';\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->activate_falang = '<button onclick=\"document.getElementById(\\'task\\').value=\\'activate_falang\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_ACTIVATE') . '</button>';\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->activate_falang = '<font color=\"#008000\">' . JText::_('COM_AICONTACTSAFE_FALANG_ACTIVATED') . '</font>';\n\t\t\t\t$this->activate_falang .= '&nbsp;&nbsp;<button onclick=\"document.getElementById(\\'task\\').value=\\'deactivate_falang\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_DEACTIVATE') . '</button>';\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// generate the install/uninstall aiContactSafeModule button\n\t\t$checkAiContactSafeModule = $model->checkAiContactSafeModule();\n\t\tswitch($checkAiContactSafeModule) {\n\t\t\tcase 0:\n\t\t\t\t// aiContactSafeModule is not installed\n\t\t\t\t$this->aiContactSafeModule_button = '<button onclick=\"document.getElementById(\\'task\\').value=\\'installAiContactSafeModule\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_INSTALL') . '</button>&nbsp;&nbsp;&nbsp;<font color=\"#FF0000\">' . JText::_('COM_AICONTACTSAFE_DO_NOT_USE') . '</font> ' . JText::_('COM_AICONTACTSAFE_SEE_THIS_FOR_MORE_INFO') . ' : <a class=\"aicontactSafe_instructions\" href=\"http://www.algisinfo.com/en/tutorials/aicontactsafe/4-aicontactsafemodule.html\" target=\"_blank\">aiContactSafeModule tutorial</a>';\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t// aiContactSafeModule is installed but it is an older version\n\t\t\t\t$this->aiContactSafeModule_button = '<font color=\"#FF0000\">aiContactSafeModule ' . JText::_('COM_AICONTACTSAFE_OLDER_VERSION') . '</font>&nbsp;&nbsp;<button onclick=\"document.getElementById(\\'task\\').value=\\'reinstallAiContactSafeModule\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_UPGRADE') . '</button>&nbsp;&nbsp;<button onclick=\"document.getElementById(\\'task\\').value=\\'uninstallAiContactSafeModule\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_UNINSTALL') . '</button>';\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t// aiContactSafeModule is installed and it is the last version\n\t\t\t\t$this->aiContactSafeModule_button = '<font color=\"#008000\">aiContactSafeModule ' . JText::_('COM_AICONTACTSAFE_INSTALLED') . '</font>&nbsp;&nbsp;<button onclick=\"document.getElementById(\\'task\\').value=\\'uninstallAiContactSafeModule\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_UNINSTALL') . '</button>';\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// generate the install/uninstall aiContactSafeForm button\n\t\t$checkAiContactSafeForm = $model->checkAiContactSafeForm();\n\t\tswitch($checkAiContactSafeForm) {\n\t\t\tcase 0:\n\t\t\t\t// aiContactSafeForm is not installed\n\t\t\t\t$this->aiContactSafeForm_button = '<button onclick=\"document.getElementById(\\'task\\').value=\\'installAiContactSafeForm\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_INSTALL') . '</button>&nbsp;&nbsp;&nbsp;<font color=\"#FF0000\">' . JText::_('COM_AICONTACTSAFE_DO_NOT_USE') . '</font> ' . JText::_('COM_AICONTACTSAFE_SEE_THIS_FOR_MORE_INFO') . ' : <a class=\"aicontactSafe_instructions\" href=\"http://www.algisinfo.com/en/tutorials/aicontactsafe/6-aicontactsafeform.html\" target=\"_blank\">aiContactSafeForm tutorial</a>';\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t// aiContactSafeForm is installed but it is an older version\n\t\t\t\t$this->aiContactSafeForm_button = '<font color=\"#FF0000\">aiContactSafeForm ' . JText::_('COM_AICONTACTSAFE_OLDER_VERSION') . '</font>&nbsp;&nbsp;<button onclick=\"document.getElementById(\\'task\\').value=\\'reinstallAiContactSafeForm\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_UPGRADE') . '</button>&nbsp;&nbsp;<button onclick=\"document.getElementById(\\'task\\').value=\\'uninstallAiContactSafeForm\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_UNINSTALL') . '</button>';\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t// aiContactSafeForm is installed and it is the last version\n\t\t\t\t$this->aiContactSafeForm_button = '<font color=\"#008000\">aiContactSafeForm ' . JText::_('COM_AICONTACTSAFE_INSTALLED') . '</font>&nbsp;&nbsp;<button onclick=\"document.getElementById(\\'task\\').value=\\'uninstallAiContactSafeForm\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_UNINSTALL') . '</button>';\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// generate the install/uninstall AiContactSafeLink button\n\t\t$checkAiContactSafeLink = $model->checkAiContactSafeLink();\n\t\tswitch($checkAiContactSafeLink) {\n\t\t\tcase 0:\n\t\t\t\t// aiContactSafeLink is not installed\n\t\t\t\t$this->aiContactSafeLink_button = '<button onclick=\"document.getElementById(\\'task\\').value=\\'installAiContactSafeLink\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_INSTALL') . '</button>&nbsp;&nbsp;&nbsp;<font color=\"#FF0000\">' . JText::_('COM_AICONTACTSAFE_DO_NOT_USE') . '</font> ' . JText::_('COM_AICONTACTSAFE_SEE_THIS_FOR_MORE_INFO') . ' : <a class=\"aicontactSafe_instructions\" href=\"http://www.algisinfo.com/en/tutorials/aicontactsafe/5-aicontactsafelink.html\" target=\"_blank\">aiContactSafeLink tutorial</a>';\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t// aiContactSafeLink is installed but it is an older version\n\t\t\t\t$this->aiContactSafeLink_button = '<font color=\"#FF0000\">aiContactSafeLink ' . JText::_('COM_AICONTACTSAFE_OLDER_VERSION') . '</font>&nbsp;&nbsp;<button onclick=\"document.getElementById(\\'task\\').value=\\'reinstallAiContactSafeLink\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_UPGRADE') . '</button>&nbsp;&nbsp;<button onclick=\"document.getElementById(\\'task\\').value=\\'uninstallAiContactSafeLink\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_UNINSTALL') . '</button>';\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t// aiContactSafeLink is installed and it is the last version\n\t\t\t\t$this->aiContactSafeLink_button = '<font color=\"#008000\">aiContactSafeLink ' . JText::_('COM_AICONTACTSAFE_INSTALLED') . '</font>&nbsp;&nbsp;<button onclick=\"document.getElementById(\\'task\\').value=\\'uninstallAiContactSafeLink\\';this.form.submit();\">' . JText::_('COM_AICONTACTSAFE_UNINSTALL') . '</button>';\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif(version_compare(JVERSION, '1.6.0', 'ge')) {\n\t\t\t$this->gid_list = $this->get_gid_list_1_6();\n\t\t} else {\n\t\t\t// generate the user types list\n\t\t\t$acl = JFactory::getACL();\n\t\t\t$gtree = $acl->get_group_children_tree( null, 'USERS', false );\n\t\t\t$this->gid_list = JHTML::_('select.genericlist', $gtree, 'gid_messages', 'size=\"10\"', 'value', 'text', $this->gid_messages );\n\t\t}\n\n\t\t// check for the message section in the templates\n\t\tif(version_compare(JVERSION, '1.6.0', 'ge')) {\n\t\t\t$this->withoutMessageSection = array();\n\t\t} else {\n\t\t\t$this->withoutMessageSection = $model->checkMessageSection();\n\t\t}\n\t}", "title": "" }, { "docid": "4014ee71d9a5e1a526cb88fb558b8a7f", "score": "0.6303172", "text": "function cl_procandamint() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"procandamint\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "d976acf0caf6d403abed2703ca909b44", "score": "0.62850165", "text": "function cl_procvalores() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"procvalores\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "94c8c089d6a5f30f97da1def01d6a8e8", "score": "0.62433463", "text": "public function setVariables(){\n\t\t// Initial sample storage data\n\t\t$this->input = array(\n\t\t\t\n\t\t\t'name' => 'Bob Tzhebuilder',\n\t\t\t'phone_no' => '0728765432',\n\t\t\t'email' => 'builderone@concretejungle.com',\n\t\t\t'physical_address' => '788347 W3-x2 Down.croncrete',\n\t\t\t\n\t\t);\n\n\t\t// Edition sample data\n\t\t$this->inputUpdate = array(\n\t\t\t\n\t\t\t'name' => 'Bob Thebuilder',\n\t\t\t'phone_no' => '0728765432',\n\t\t\t'email' => 'buildandt@concretejungle.com',\n\t\t\t'physical_address' => '788347 W3-x2 Down.croncrete',\n\t\t\t\t\t\t\n\t\t);\n\t}", "title": "" }, { "docid": "660832f88e0509d5085c4879c7c08d8f", "score": "0.6179997", "text": "function propostas()\r\n{\r\n\r\n$this->database = Database::getDb();\r\n\r\n}", "title": "" }, { "docid": "824ae06a078c30c5a6d8a298441eb5f2", "score": "0.6173892", "text": "public function Opciones() {\n \n }", "title": "" }, { "docid": "cd917315041fda3f0f462bcbd82b5055", "score": "0.6168925", "text": "public function variables();", "title": "" }, { "docid": "c32e269a63f4d7aa37e4268bedd6cf12", "score": "0.61576456", "text": "public function prepareVars()\n {\n $this->vars['service'] = new Services();\n $this->vars['name'] = $this->formField->getName();\n $this->vars['value'] = $this->getLoadValue();\n $this->vars['model'] = $this->model;\n $this->vars['paymentTypes'] = PaymentType::orderBy('id')->get();\n }", "title": "" }, { "docid": "75eeb4de4f45386fc68cf327c65c76e0", "score": "0.61426777", "text": "public function __construct(){\n global $usuario, $pass, $direccion, $dataName;\n $this->usuario = $usuario;\n $this->pass = $pass;\n $this->direccion = $direccion;\n $this->dataName = $dataName;\n // !dato las variable del constructor es sin $;\n }", "title": "" }, { "docid": "3d6889c7f0e5199dae54c5ec818878a0", "score": "0.61391836", "text": "function cl_processoforopartilha() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"processoforopartilha\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "ee95509319a551959a3f996d6e1e8749", "score": "0.613323", "text": "function __construct() {\n\t\t\t$this->id_usuario;\n\t\t\t$this->nome_usuario;\n\t\t\t$this->email_usuario;\n\t\t\t$this->senha_usuario;\n\t\t\t$this->matricula_usuario;\n\n\n\t\t}", "title": "" }, { "docid": "030c3e9dcfa6c0bbd78ed91b07482b66", "score": "0.61137646", "text": "function cl_avaliacaoestruturafrequencia() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"avaliacaoestruturafrequencia\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "86d8599139029e12e375ee2d77caef54", "score": "0.6103556", "text": "function cl_iptuconstr() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"iptuconstr\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "b096c4e44ff186898bed0577c0d27319", "score": "0.60774", "text": "function envios_estados_datos()\n\t{\n\n\t\tparent::objeto();\n\n\t\t$this->tabla=\"envios_estados\";\n\t\t$this->campoClave=\"IdEstadoEnvio\";\n\t\t$this->id=null;\n\t\t\n\t\t\n$v=new Variable(2,$this->tabla,\"IdEstadoEnvio\",1);\n\t\t\t\n$v->clave=true;\n\t\t\t\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"Descripcion\",2);\n$this->agregarVariable2($v);\n\n\t}", "title": "" }, { "docid": "306c2713ff15f4c33c5233af58a2fe2e", "score": "0.6074965", "text": "function __construct() \r\n {\r\n $this->setPermisos();\r\n $this->configuracion=Config::getInstance();\r\n // $this->mensaje=\"hola mundo\";\r\n }", "title": "" }, { "docid": "dc9f45b8bb5622c87346c7a3971ae651", "score": "0.6070188", "text": "protected function setClassVariables()\n {\n $tb = $this->getNameInput();\n\n // ???\n if(strstr($tb,'/') !== false){\n $tbx = explode('/',$this->getNameInput());\n $tb = $tbx[1];\n }\n\n // Plurazica, caso nao exista a tabela\n $table = $this->argument('table')? : str_plural(strtolower($tb));\n\n // Pega as colunas da tabela do banco\n $AppLogic = new Logic\\AppLogic();\n $columns = $AppLogic->buildColumns($table);\n \n $fields = [];\n foreach ($columns as $col) {\n $field = $col->name;\n $field_camel = camel_case($col->name, '_', ' ');\n\n $field_format = \n array(\n 'grid' => $field_camel,\n 'form' => $field_camel,\n 'form_tip' => $field_camel\n );\n\n\n $fields[] = \"\\n\\t// {$field}\\n\\t'{$field}' => \".(var_export($field_format, true)).\",\\n\";\n // $fields[] = \"\\n\\t// {$field}\\n\\t'{$field}_grid' => '{$field_camel}',\\n\\t'{$field}_form' => '{$field_camel}',\\n\\t'{$field}_form_tip' => '{$field_camel}',\\n\";\n }\n\n // $this->setTranslation('controller', $tb);\n $this->setTranslation('variables_data', \"\\n\\t\".substr(trim(implode(\"\\n\", $fields)),0,-1).\"\\n\\t\");\n }", "title": "" }, { "docid": "24aeea0fc4db9f56faeb21eae1da5fd3", "score": "0.60667074", "text": "public function __construct()\n {\n $this->variables = array();\n }", "title": "" }, { "docid": "99e15942c0f82b0a245322d9b8eb3c84", "score": "0.60513866", "text": "public function setVariables()\n {\n \t// Initial sample storage data\n\t\t$this->drugData = array(\n\t\t\t'name' => 'VANCOMYCIN',\n\t\t\t'description' => 'Lets see',\n\t\t);\n\n\t\t\n\t\t// Edition sample data\n\t\t$this->drugUpdate = array(\n\t\t\t'name' => 'VANCOMYCIN',\n\t\t\t'description' => 'Staphylococci species',\n\t\t);\n }", "title": "" }, { "docid": "0802a10340a110da014a150dba2072f5", "score": "0.60345024", "text": "function getParams()\r\n {\r\n global $id;\r\n global $mode;\r\n global $view_mode;\r\n global $edit_mode;\r\n global $tab;\r\n global $fact;\r\n global $forecast;\r\n \r\n if (isset($id))\r\n $this->id=$id;\r\n \r\n if (isset($mode))\r\n $this->mode = $mode;\r\n \r\n if (isset($view_mode))\r\n $this->view_mode = $view_mode;\r\n \r\n if (isset($edit_mode))\r\n $this->edit_mode = $edit_mode;\r\n \r\n if (isset($tab))\r\n $this->tab = $tab;\r\n \r\n if (isset($forecast))\r\n $this->forecast = $forecast;\r\n \r\n if (isset($fact))\r\n $this->fact = $fact;\r\n }", "title": "" }, { "docid": "71f0b66699eca87ed0872cfbd28c62c6", "score": "0.6028822", "text": "public function __construct() {\n $this->servidor = 'localhost'; \n $this->usuario = 'angel2';\n $this->clave = '1234';\n $this->basedatos = 'contenedor'; //qqk474';\n }", "title": "" }, { "docid": "30800dfca813a4433cd63302792bdc40", "score": "0.59993804", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "30800dfca813a4433cd63302792bdc40", "score": "0.59993804", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "5ebf27cb318fd78c781b8993ba28e177", "score": "0.5968106", "text": "function cl_empautitempcprocitem() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"empautitempcprocitem\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "e610812adda9086533a5bc36d8e1760f", "score": "0.5958924", "text": "function cl_proginterrompe() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"proginterrompe\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "75587a0308f86eb3f7fbb3641eb6f74f", "score": "0.5955684", "text": "public function processVars();", "title": "" }, { "docid": "e2197d3963c9e1c0b6440273e88c7cba", "score": "0.594395", "text": "public function contabilidad()\n {\n \n }", "title": "" }, { "docid": "0fabaa4d8f5c475fba9112cd564f144b", "score": "0.5938517", "text": "function getParams()\n {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source = $data_source;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "title": "" }, { "docid": "5bd4a822ba879a906ae854c4a9d1b04a", "score": "0.5930984", "text": "public function actoin()\n {\n }", "title": "" }, { "docid": "30b7a80921ef7a6c468ff0a8a98d5ba2", "score": "0.59276813", "text": "function cl_pontocom() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"pontocom\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "0f5dd7c4434054748ae961506c03bc9a", "score": "0.59247047", "text": "public function __construct() {\r\n\t\t// Llena el arreglo con los atributos de la clase.\r\n\t\t$this->vConfigVar= array(\r\n\t\t\t'titulo_sistema'=>$this->vTituloSistema,\r\n\t\t\t'titulo_web'=>$this->vTituloWeb,\r\n\t\t\t'ruta_modelo'=>$this->vRutaModelo,\r\n\t\t\t'ruta_vista'=>$this->vRutaVista,\r\n\t\t\t'ruta_controlador'=>$this->vRutaControlador,\r\n\t\t\t'ruta_libreria'=>$this->vRutaLibreria,\r\n\t\t\t'ruta_config'=>$this->vRutaConfig,\r\n\t\t\t'ext_vista'=>$this->vExtensionVista,\r\n\t\t\t'index_page'=>$this->vIndex,\r\n\t\t\t'host'=>$this->vHost,\r\n\t\t\t'port'=>$this->vPort,\r\n\t\t\t'data_base'=>$this->vDataBase,\r\n\t\t\t'usuario_db'=>$this->vUsuario,\r\n\t\t\t'clave_db'=>$this->vClave,\r\n\t\t\t'esquema'=>$this->vEsquema,\r\n\t\t\t'tiempo_inactivo'=>$this->vInactividad,\r\n\t\t\t'num_registros'=>$this->vCantidadRegistros,\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "7c2f9730929e58de2bbc75282bb69ed0", "score": "0.5923739", "text": "protected function assignVariables() {\n \n }", "title": "" }, { "docid": "df7dc20b3205f137c7a1d3e1c675a6e3", "score": "0.5918252", "text": "function setVariables() {\n\t\tparent::setVariables();\n\t\t$model = $this->getModel();\n\t\tif ( $this->_task == 'add' ) {\n\t\t\t$this->send_message = 1;\n\t\t\t$this->field_in_message = 1;\n\t\t\t$this->published = 1;\n\t\t\t$this->ordering = $model->getNextOrdering();\n\t\t}\n\t\tif ( $this->_task == 'add' or $this->_task == 'edit' ) {\n\t\t\t// generate the field type combo\n\t\t\t$select_combo = array();\n\t\t\t// textbox - TX\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_TEXTBOX');\n\t\t\t$txtSelect->type = 'TX';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// checkbox - CK\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_CHECKBOX');\n\t\t\t$txtSelect->type = 'CK';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// combobox - CB\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_COMBOBOX');\n\t\t\t$txtSelect->type = 'CB';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// editbox - ED\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_EDITBOX');\n\t\t\t$txtSelect->type = 'ED';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// checkbox list - CL\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_CHECKBOX_LIST');\n\t\t\t$txtSelect->type = 'CL';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// radio list - RL\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_RADIO_LIST');\n\t\t\t$txtSelect->type = 'RL';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// date - DT\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_DATE');\n\t\t\t$txtSelect->type = 'DT';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// email - EM\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_EMAIL');\n\t\t\t$txtSelect->type = 'EM';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// email - EL\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_EMAIL_LIST');\n\t\t\t$txtSelect->type = 'EL';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// contact - JC\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_JOOMLA_CONTACTS');\n\t\t\t$txtSelect->type = 'JC';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// contact - JU\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_JOOMLA_USERS');\n\t\t\t$txtSelect->type = 'JU';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// contact - SB\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_SOBI2_ENTRIES');\n\t\t\t$txtSelect->type = 'SB';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// hidden - HD\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_HIDDEN');\n\t\t\t$txtSelect->type = 'HD';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// hidden - SP\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_SEPARATOR');\n\t\t\t$txtSelect->type = 'SP';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// file - FL\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_FILE');\n\t\t\t$txtSelect->type = 'FL';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// file - NO\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_NUMBER');\n\t\t\t$txtSelect->type = 'NO';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// file - HE\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_HIDDEN_EMAIL');\n\t\t\t$txtSelect->type = 'HE';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\tif($model->useUqField()) {\n\t\t\t\t// textbox - UQ\n\t\t\t\t$txtSelect = new stdClass;\n\t\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_UNIQUETEXT');\n\t\t\t\t$txtSelect->type = 'UQ';\n\t\t\t\t$select_combo[] = $txtSelect;\n\t\t\t}\n\t\t\tif($model->useCcField()) {\n\t\t\t\t// credit card - CC\n\t\t\t\t$txtSelect = new stdClass;\n\t\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_CREDIT_CARD');\n\t\t\t\t$txtSelect->type = 'CC';\n\t\t\t\t$select_combo[] = $txtSelect;\n\t\t\t}\n\n\t\t\t// generate the html tag\n\t\t\t$this->comboField_type = JHTML::_('select.genericlist', $select_combo, 'field_type', 'class=\"inputbox\" size=\"1\" onchange=\"checkFieldValues();\"', 'type', 'name', $this->field_type, false, false);\n\t\n\t\t\t$script = \"\n\t\t\t\tfunction checkFieldValues() {\n\t\t\t\t\tvar field_type = document.getElementById('field_type').value;\n\t\t\t\t\tif (field_type == 'CB' || field_type == 'CL' || field_type == 'RL' || field_type == 'EL' || field_type == 'SB' || field_type == 'HD' || field_type == 'SP' || field_type == 'HE') {\n\t\t\t\t\t\tdocument.getElementById('field_values').removeAttribute('disabled');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdocument.getElementById('field_values').value = '';\n\t\t\t\t\t\tdocument.getElementById('field_values').setAttribute('disabled', true); \n\t\t\t\t\t}\n\t\t\t\t\tif (field_type == 'EM' || field_type == 'EL' || field_type == 'JC' || field_type == 'JU' || field_type == 'SB' || field_type == 'SB') {\n\t\t\t\t\t\tdocument.getElementById('send_message').removeAttribute('disabled');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdocument.getElementById('send_message').checked = true;\n\t\t\t\t\t\tdocument.getElementById('send_message').setAttribute('disabled', true); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction copyLabel() {\n\t\t\t\t\tvar field_label_message = document.getElementById('field_label_message').value;\n\t\t\t\t\tif ( field_label_message.length == 0 && document.getElementById('id').value == 0 ) {\n\t\t\t\t\t\tdocument.getElementById('field_label_message').value = document.getElementById('field_label').value;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction copyParameters() {\n\t\t\t\t\tvar label_message_parameters = document.getElementById('label_message_parameters').value;\n\t\t\t\t\tif ( label_message_parameters.length == 0 && document.getElementById('id').value == 0 ) {\n\t\t\t\t\t\tdocument.getElementById('label_message_parameters').value = document.getElementById('label_parameters').value;\n\t\t\t\t\t}\n\t\t\t\t}\";\n\n\t\t\t$document = JFactory::getDocument();\n\t\t\t$document->addScriptDeclaration($script);\n\n\t\t\t// generate the field type combo\n\t\t\t$select_combo = array();\n\t\t\t// none\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_NONE');\n\t\t\t$txtSelect->type = '';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// Joomla User name\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_JOOMLA_USER_NAME');\n\t\t\t$txtSelect->type = 'UN';\n\t\t\t$select_combo[] = $txtSelect;\n\t\t\t// Joomla User email\n\t\t\t$txtSelect = new stdClass;\n\t\t\t$txtSelect->name = JText::_('COM_AICONTACTSAFE_JOOMLA_USER_EMAIL');\n\t\t\t$txtSelect->type = 'UE';\n\t\t\t$select_combo[] = $txtSelect;\n\n\t\t\t// generate the html tag\n\t\t\t$this->comboAutoFill = JHTML::_('select.genericlist', $select_combo, 'auto_fill', 'class=\"inputbox\" size=\"1\"', 'type', 'name', $this->auto_fill, false, false);\n\n\t\t}\n\t\tif ( $this->_task == 'display' ) {\n\t\t\t$countRows = count($this->rows);\n\t\t\tfor ($i = 0; $i<$countRows; $i++) {\n\t\t\t\tswitch($this->rows[$i]->field_type) {\n\t\t\t\t\tcase 'TX' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_TEXTBOX');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'CK' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_CHECKBOX');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'CB' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_COMBOBOX');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'ED' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_EDITBOX');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'CL' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_CHECKBOX_LIST');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'RL' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_RADIO_LIST');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'DT' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_DATE');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'EM' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_EMAIL');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'EL' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_EMAIL_LIST');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'JC' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_JOOMLA_CONTACTS');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'JU' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_JOOMLA_USERS');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'SB' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_SOBI2_ENTRIES');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'HD' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_HIDDEN');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'SP' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_SEPARATOR');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'FL' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_FILE');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'NO' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_NUMBER');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'HE' :\n\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_HIDDEN_EMAIL');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'UQ' :\n\t\t\t\t\t\tif($model->useUqField()) {\n\t\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_UNIQUETEXT');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'CC' :\n\t\t\t\t\t\tif($model->useCcField()) {\n\t\t\t\t\t\t\t$this->rows[$i]->field_type_text = JText::_('COM_AICONTACTSAFE_CREDIT_CARD');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d452ab9409c4011225b94e691c4e7177", "score": "0.5914839", "text": "function cl_empsolicitaanul() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"empsolicitaanul\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "c07d4bdd1e34d62d7953087e2c6c6ea9", "score": "0.59043515", "text": "function cl_empnotaitembenspendente() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"empnotaitembenspendente\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "684958b3c11c7f0e3c6eebcad1cd93bf", "score": "0.5902442", "text": "function cl_tipoidentificacaocredor() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"tipoidentificacaocredor\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "105dc0e7b505590d2c210400a164d500", "score": "0.5899945", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if(isset($id)) {\n $this->id = $id;\n }\n if(isset($mode)) {\n $this->mode = $mode;\n }\n if(isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if(isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if(isset($tab)) {\n $this->tab = $tab;\n }\n }", "title": "" }, { "docid": "404f222adb802b09f77fca3665e70a0b", "score": "0.5896425", "text": "function getParams()\n {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source = $data_source;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "title": "" }, { "docid": "91cb2747c2cda95b962854bcda980058", "score": "0.58953875", "text": "function cl_alunopassagemqtd() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"alunopassagemqtd\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "ab0f4e745ec49c139c75cc1f95dc90de", "score": "0.58948773", "text": "public function __construct()\n\t\t{\n\t\t\t//set parameter for properties\n\t\t}", "title": "" }, { "docid": "105008ef7aceacaba26bb54a3acf7e8a", "score": "0.58946866", "text": "function getParams() {\r\n global $id;\r\n global $mode;\r\n global $view_mode;\r\n global $edit_mode;\r\n global $data_source;\r\n global $tab;\r\n if (isset($id)) {\r\n $this->id=$id;\r\n }\r\n if (isset($mode)) {\r\n $this->mode=$mode;\r\n }\r\n if (isset($view_mode)) {\r\n $this->view_mode=$view_mode;\r\n }\r\n if (isset($edit_mode)) {\r\n $this->edit_mode=$edit_mode;\r\n }\r\n if (isset($data_source)) {\r\n $this->data_source=$data_source;\r\n }\r\n if (isset($tab)) {\r\n $this->tab=$tab;\r\n }\r\n}", "title": "" }, { "docid": "f056ff660b730bb349b9365b1db288e4", "score": "0.5887067", "text": "function cl_escriturainventario() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"escriturainventario\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "201433bb2af3b93189c57497737f4f15", "score": "0.5883584", "text": "function __construct (){\n\t\t\n\t}", "title": "" }, { "docid": "76dec02cc9c15b1014558ba224cb1f3d", "score": "0.5880972", "text": "function cl_progconvocacaores() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"progconvocacaores\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "bf74618dfd356cbf907dbad1303569b9", "score": "0.5879402", "text": "function getParams()\n {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n \n if (isset($id))\n $this->id = $id;\n \n if (isset($mode))\n $this->mode = $mode;\n \n if (isset($view_mode))\n $this->view_mode = $view_mode;\n \n if (isset($edit_mode))\n $this->edit_mode = $edit_mode;\n \n if (isset($tab))\n $this->tab = $tab;\n }", "title": "" }, { "docid": "11143a54d33c3d04df7bf1f86f4e37d7", "score": "0.5867925", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "11143a54d33c3d04df7bf1f86f4e37d7", "score": "0.5867925", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "11143a54d33c3d04df7bf1f86f4e37d7", "score": "0.5867925", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "11143a54d33c3d04df7bf1f86f4e37d7", "score": "0.5867925", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "11143a54d33c3d04df7bf1f86f4e37d7", "score": "0.5867925", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "ed2a41dda7acff9c4e684327f4ee7d4c", "score": "0.58618575", "text": "function getParams()\n {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "title": "" }, { "docid": "3a652733440917249af8f3aac9f3d154", "score": "0.5858537", "text": "function cl_obrasenvioreghab() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"obrasenvioreghab\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "bd39c60eca5b8559c6843f1187e78926", "score": "0.5857629", "text": "public function ecrire(){\n \n }", "title": "" }, { "docid": "a4bd5e4c2481b6cf7e6e4f179e001467", "score": "0.5856279", "text": "public function __construct() {\n $this->_leGestionnaire = new GestionnaireBDD(); // connexion du serveur web à la base de données\n }", "title": "" }, { "docid": "f781da5cf7125599ed57aff8d6de1dfe", "score": "0.58536005", "text": "function __construct() {\n $this->_nombreComponente = Generales_ObtenerNombreComponente::get(__FILE__);\n }", "title": "" }, { "docid": "5d24de09a2662888816d959677a4b387", "score": "0.58515114", "text": "Function __construct(){\n $this->vue = new vueGagnant();\n $this->bd = new Bd();\n $this->jeu = new Jeu();\n }", "title": "" }, { "docid": "cec9f6055ea48beb7374a2126c09c461", "score": "0.5850521", "text": "public function __construct(){\n\t\t$this->id_funcion =0;\n\t\t$this->nombre =\"\";\n\t\t$this->precio = \"\";\n\t\t$this->horaInicio = \"\";\n\t\t$this->duracion = \"\";\n\t\t$this->id_teatro = \"\";\n\t}", "title": "" }, { "docid": "ea3682868f7d915e79d6da44204b5840", "score": "0.5847384", "text": "function asignar_valores(){\n $this->nombre=$_POST['nombre'];\n $this->descripcion=$_POST['descripcion'];\n }", "title": "" }, { "docid": "9e3a3cdb3508cef066fcb46d1f4d6e2a", "score": "0.5839375", "text": "public function __construct( $nombre, $apellido, $edad){\n$this->nombre=$nombre;\n$this->apellido=$apellido;\n$this->edad=$edad;\n }", "title": "" }, { "docid": "66377e8887ed4d095894fa5f74889717", "score": "0.58234525", "text": "public function __constuct()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "5e19e7e1d2dee3a35729b844148baee4", "score": "0.582045", "text": "protected function set_params() {}", "title": "" }, { "docid": "1cb34a134bd6383b47364d39f9cca17e", "score": "0.5814661", "text": "function cl_requisicaoaidof() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"requisicaoaidof\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "7d7a699d024584ee447d30a9afa13825", "score": "0.5813739", "text": "public function ConsultaPaises(){\r\n //Lo hacemos con lasentecnia parent::_construct(); \r\n parent::__construct();\r\n }", "title": "" }, { "docid": "c6682efeda099c93ad7bc5caf3b02c41", "score": "0.58053976", "text": "function cl_placaixaprocesso() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"placaixaprocesso\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "b032d0e3c804de02cb5a86f213794353", "score": "0.58006895", "text": "public function ecrire(){\n\n }", "title": "" }, { "docid": "31348e06affbb80eb026ce9a6bb9f003", "score": "0.5800591", "text": "public function __construct($nom,$description,$img,$fk_users,$fk_tutos) {\n\n// $ this refers to the instance of the object (new Object () => in Etapes.ctrl.php we declare the request (loadDao) which will fetch the info in the bdd / delete them / ...\t\t\n\t\t$this->nom = $nom;\n\t\t$this->description = $description;\n\t\t$this->img = $img;\n\t\t$this->fk_users = $fk_users;\n\t\t$this->fk_tutos = $fk_tutos;\n\n\n\t\t\n\n}", "title": "" }, { "docid": "60a9322092c739c9bc0d240b19ea9a36", "score": "0.5798546", "text": "public function __construct() {\n $this->conexion = conexion::singleton();\n $this->retorno = new stdClass();\n }", "title": "" }, { "docid": "ae1c2754c1242be2fe3cfc1d2843ba43", "score": "0.57947636", "text": "public function __construct() {\n $leGestionnaire = new GestionnaireBDD(); \t// connexion du serveur web à la base de données\n }", "title": "" }, { "docid": "cf73e3d4a58194cf1e942b9a63e8a8a6", "score": "0.57932645", "text": "function cl_especmedico() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"especmedico\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "3d14cc7136f931211a602f2fa3ffffbc", "score": "0.57928705", "text": "function cl_cadtipoparcdeb() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"cadtipoparcdeb\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "6c9b7fa527d6d69ec450bf31f29cab74", "score": "0.5787528", "text": "function __construct()\n\t{\n\t\t$this->clase = $GLOBALS['clase'];\n\t\t$this->metodo = $GLOBALS['metodo'];\n\t\t\n\t\tif(class_exists('mysql'))\n\t\t{\n\t\t\t$this->db = new mysql();\n\t\t\t$this->db->Connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);\n\t\t\t// utf8 para mysql\n\t\t\t$this->db->Query('SET NAMES utf8', true);\n\t\t\t$this->db->Query('SET CHARACTER SET utf8', true);\n\t\t\t// localización\n\t\t\t$this->db->Query(\"SET time_zone = '-5:00'\", true);\n\t\t\t$this->db->Query(\"SET lc_time_names = 'es_PE'\", true);\n\t\t}\n\t\t\n\t\tif(class_exists('ClassEvaluaFormulario'))\n\t\t{\n\t\t\t$this->eval = new ClassEvaluaFormulario();\n\t\t}\n\t}", "title": "" }, { "docid": "aa2d0b2ce846fccfd946d056342650a3", "score": "0.5785798", "text": "function cl_liclicitaevento() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"liclicitaevento\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "aa177fb28660dae53ae5eb797381fa7b", "score": "0.5781932", "text": "public function __construct()\n {\n $this->Customer = new Customer();\n $this->User = new User();\n $this->Pelanggan = new Pelanggan();\n $this->Tagihan = new Tagihan();\n $this->Jenis_langganan = new ref_jenis_langganan();\n }", "title": "" }, { "docid": "407b096ffb0ab426f1ce3d2e18bceeb1", "score": "0.57816947", "text": "public function expel();", "title": "" }, { "docid": "6c013986a1246bf0ae44ec18c1162789", "score": "0.57782334", "text": "public function proccess()\n \t{\n\t}", "title": "" }, { "docid": "256ee71681835257e49338690889991c", "score": "0.577706", "text": "function cl_tfd_acompanhantes() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"tfd_acompanhantes\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "c671244e0f7de9d642ef6b221231efae", "score": "0.5762663", "text": "function cl_empagemovformapagamento() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"empagemovformapagamento\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "05009d8afef33ce4118601dda0c2769a", "score": "0.5757634", "text": "function __construct() {\n\n self::$instancia = $this; \n\n $this->after_load();\n }", "title": "" }, { "docid": "317a2d489fec1b0a20dcac0d436c9db3", "score": "0.57572687", "text": "public function __construct()\n {\n $this->Session = new Session();\n $this->Views = new View();\n $this->Email = new Email();\n $this->Form = new Form($this);\n $this->Service = new Service();\n $this->Img = new Img();\n $this->Request = new Request();\n \n }", "title": "" }, { "docid": "be58f9dd4d2c516764bd8c3df4a9e693", "score": "0.5753569", "text": "public function iniciarSesion()\n {\n\n }", "title": "" }, { "docid": "be58f9dd4d2c516764bd8c3df4a9e693", "score": "0.5753569", "text": "public function iniciarSesion()\n {\n\n }", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5749961", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5749961", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5749961", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5749961", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5749961", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5749961", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5749961", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5749961", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5749961", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5749961", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5749961", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5749961", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5749961", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5749961", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5749961", "text": "private function __construct(){}", "title": "" }, { "docid": "b6d389020a7aeaaad3fbef19471cd162", "score": "0.57485336", "text": "public function __construct() {\n\t\tself::$_par['mname'] = ucfirst(wgPost::getValue('modname'));\n\t\tself::$_par['modid'] = wgPost::getValue('modname');\n\t\tself::$_par['table'] = wgPost::getValue('table');\n\t\tself::$_par['tdata'] = wgPost::getValue('tdata');\n\t\tself::$_par['modid'] = wgPost::getValue('modname');\n\t\tself::$_par['mucft'] = ucfirst(self::$_par['modid']);\n\t\tself::$_par['mauth'] = wgUsers::getDetail('firstname').' '.wgUsers::getDetail('lastname');\n\t\tself::$_par['adate'] = date('j. F Y');\n\t\tself::init(); wgError::add('generated', 2);\n\t}", "title": "" }, { "docid": "9edd18f94c09a2de485b91e4fd317811", "score": "0.57449716", "text": "function __construct($valores) {\n\t\t//$valores variable que almacena un array con la info de todas las Ets existentes para poder generar la qa\n\t\t$this->render($valores);//metodo que llama a la función render que contiene todo el código de la vista\n\t}", "title": "" }, { "docid": "bf576553ec72294462117443a185f534", "score": "0.5735068", "text": "protected function __construct(){}", "title": "" } ]
89170509891a0ffd26bf8052be1af9a2
Must return table name in SQL DB where entity stored
[ { "docid": "c63b7641b12cede1fd766b49417070d2", "score": "0.7642587", "text": "abstract public function getTableName();", "title": "" } ]
[ { "docid": "24a5fc2a84680de06edaa02f3f84def9", "score": "0.7888991", "text": "abstract static function get_table_name();", "title": "" }, { "docid": "5b3d64109aead77abeafcf4279a242ac", "score": "0.787574", "text": "public static function entityTableName();", "title": "" }, { "docid": "3e9de8d8a68c489e686bf89b4baa8834", "score": "0.77789253", "text": "public function getEntityTable()\n\t{\n\t\treturn $this->entity->toTableName($this->entity->getName());\n\t}", "title": "" }, { "docid": "290cb4108f1736013362eab74397b23f", "score": "0.7712829", "text": "abstract protected function get_table_name(): string;", "title": "" }, { "docid": "532a6fe3f4d9a534dc68d63433621fc0", "score": "0.77000004", "text": "public function getTableName() : string {}", "title": "" }, { "docid": "dfe0c12612fa46cfa88762fb9fd50966", "score": "0.7694035", "text": "public function getTableName(): string;", "title": "" }, { "docid": "dfe0c12612fa46cfa88762fb9fd50966", "score": "0.7694035", "text": "public function getTableName(): string;", "title": "" }, { "docid": "cfce003476069038697d911592e91454", "score": "0.7675103", "text": "public function getTableName(): string\n {\n return $this->getManager()->getClassMetadata($this->entityClass)->getTableName();\n }", "title": "" }, { "docid": "52f972ab96ae118ace300f6fefb4159c", "score": "0.76607615", "text": "public function getTableName() {}", "title": "" }, { "docid": "52f972ab96ae118ace300f6fefb4159c", "score": "0.7656979", "text": "public function getTableName() {}", "title": "" }, { "docid": "39bac4d3f47c06106e9e26337db316df", "score": "0.76257104", "text": "abstract public function getTableName(): string;", "title": "" }, { "docid": "84e9bddde7086b8b88c785ce76276540", "score": "0.7602636", "text": "public function getTableName(): string\n {\n return $this->properties['table_name'];\n }", "title": "" }, { "docid": "a3c5e84c429111dc8bcd7364b86f836d", "score": "0.7565862", "text": "abstract protected function getTableName();", "title": "" }, { "docid": "5c463c7b7eb451817c23b65a45eafadf", "score": "0.75586027", "text": "public abstract function getTableName();", "title": "" }, { "docid": "2b32952a277a82669d8283a5c0cd9688", "score": "0.7552357", "text": "public function getTableName();", "title": "" }, { "docid": "478c5367706b3f5e51007829f1e0a467", "score": "0.75066966", "text": "function getItemTableName() ;", "title": "" }, { "docid": "b640e77483d1046ead52197c63da246c", "score": "0.7446872", "text": "function getTableName(){\n $result = null;\n if (isset($this->tableName)\n && is_string($this->tableName) && $this->tableName != null) {\n $result = $this->decodeKey($this->tableName);\n }\n return $result;\n }", "title": "" }, { "docid": "d0d15226b64695d75ebdfa4ce92d667a", "score": "0.74170685", "text": "public static function getTableName();", "title": "" }, { "docid": "ae7276c9cace3e9d4f8c4bb21174bfcd", "score": "0.7415321", "text": "public function getTableName()\n {\n return $this->orm['tableName'];\n }", "title": "" }, { "docid": "58a28c6a263dd7b11834468ca695c957", "score": "0.73907405", "text": "private function getTableName(): string\n {\n if (is_null($this->database)) {\n return $this->name;\n }\n return \"$this->database.$this->name\";\n }", "title": "" }, { "docid": "8b9bcbef356c763d68be7eba18abc729", "score": "0.73804814", "text": "abstract static public function getTableName();", "title": "" }, { "docid": "1ebb804107ff11a055ec4ede0fe3e19b", "score": "0.73688745", "text": "public static function Sql_GetTableName()\n {\n return app(static::class)->table;\n }", "title": "" }, { "docid": "800d72e4b1b9277f6e27ebc593387211", "score": "0.7355894", "text": "static function getTableName() {\n $class= get_called_class();\n \n return '`' . $class::TABLE_NAME . '`';\n }", "title": "" }, { "docid": "6c6044630e99ab6d88ad96101227380c", "score": "0.7329198", "text": "function getTableName() {\r\n\t\t\treturn $this->privateVars[\"name\"];\r\n\t\t}", "title": "" }, { "docid": "04bf1e03977c8782916a375e9657a077", "score": "0.7299874", "text": "protected function getTableName(): string\n {\n return $this->subject->getTable();\n }", "title": "" }, { "docid": "20652a702ad9519dad18dcca0e62e9fe", "score": "0.7293102", "text": "public function getTable() {\n\t\treturn parent::getReflection()->getConstant('TABLE');\n\t}", "title": "" }, { "docid": "d95e29172cecc270b60a33680d8b34f2", "score": "0.7268305", "text": "public function getTableName(): string\n {\n return $this->TableName;\n }", "title": "" }, { "docid": "f258b834b402cd48b9af14d8a3290ef9", "score": "0.7263403", "text": "protected function getTableName(): string {\n return self::TABLE_NAME;\n }", "title": "" }, { "docid": "477f07b040848037eeeac5f183fb1b6f", "score": "0.72610164", "text": "public function getTableName(){\n\t\treturn self::$TABLE_NAME;\n\t}", "title": "" }, { "docid": "614cc7c41fa1a89032087130f0b29e0d", "score": "0.7244739", "text": "public function getTable()\n {\n return $this->table ?? Str::snake(class_basename($this));\n }", "title": "" }, { "docid": "ef82efe1afbae7e8fe237e7f7248b3cf", "score": "0.723871", "text": "public function get_table_name() {\n return $this->get_name();\n }", "title": "" }, { "docid": "817ff390a5ea98dfce384a83c92f1292", "score": "0.72235423", "text": "public function getTableName(){\n\t\treturn $this->table_name;\n\t}", "title": "" }, { "docid": "1cb3f0004db21a41bad9492c80474ea7", "score": "0.72162384", "text": "public static function getTableName()\n {\n return self::$table;\n }", "title": "" }, { "docid": "de2775d255ae8cfa2786d968a26480cc", "score": "0.72065634", "text": "abstract protected function _getTable($entityName);", "title": "" }, { "docid": "d204eedd1a91cdac82744ce4e36d33d1", "score": "0.7201873", "text": "public function getTable() : string\n {\n return $this->_tableName;\n }", "title": "" }, { "docid": "098306e4e1bb86981e86742812ff2b9e", "score": "0.7200266", "text": "public static function getTableName(){\n\t\treturn static::TABLE_NAME;\n\t}", "title": "" }, { "docid": "1acfbaf60bc249e4e06e50f8893045f0", "score": "0.7177092", "text": "abstract protected function getDbTable();", "title": "" }, { "docid": "aa768c4b07bfdd00a55649d3eff2a3c5", "score": "0.71691716", "text": "public static function getTableName() {\n $className = get_called_class();\n\n return isset($className::$table) ? $className::$table : strtolower($className);\n }", "title": "" }, { "docid": "10a3adb7bde71c3aae0da4c467bb0d38", "score": "0.7169066", "text": "public function getTableName() {\r\n\t\treturn $this->_tbl;\r\n\t}", "title": "" }, { "docid": "6b63fe74df8023e9d769a974863a29d7", "score": "0.716896", "text": "public function getTable() : string\n {\n return self::$table;\n }", "title": "" }, { "docid": "4a7a89d27960c4f4f13d80df1a252f20", "score": "0.7149956", "text": "public function getTableName()\n {\n $class = $this->modelClass;\n return $this->tableName ? $this->tableName : $class::tableName();\n }", "title": "" }, { "docid": "35fea617b59c9e7ef735aa3614b66815", "score": "0.7146446", "text": "protected function _getTable()\r\n {\r\n return $this->_quote($this->_table);\r\n }", "title": "" }, { "docid": "d5dbe37cdc11c99cd8203761b2d2219a", "score": "0.7138447", "text": "public function getTableName()\n {\n return self::$tableName;\n }", "title": "" }, { "docid": "b6f69dd986c5b9f8f3b2c12076671f13", "score": "0.71356183", "text": "private static function tableName()\n\t{\n\t\t$class = get_called_class();\n\t\treturn $class::$table;\n\t}", "title": "" }, { "docid": "92fb0a669910e2775d7a8376afe6425a", "score": "0.7135261", "text": "function getTable()\n {\n $class = $this->getModelClass();\n $reflect = new ReflectionClass($class);\n if ($reflect->hasConstant(\"TABLE\")) {\n return $reflect->getConstant(\"TABLE\");\n }\n else {\n $model_name = $this->getModelName();\n if ($model_name) {\n return \"mm_\" . underscore($model_name);\n }\n else {\n return null;\n }\n }\n }", "title": "" }, { "docid": "f56722e745a03c2db9747304eb1ea7ed", "score": "0.71312726", "text": "function getTablename(){\r\n return $this->tablename;\r\n }", "title": "" }, { "docid": "7d404db25cfd97529603dbc5233e587e", "score": "0.7127858", "text": "public function getTable()\n {\n return $this->tableName;\n }", "title": "" }, { "docid": "302b06a3a8ef8b6b5d5b89c02130ef23", "score": "0.7125475", "text": "public function getTableName()\n {\n return '';\n }", "title": "" }, { "docid": "86df297ccf7ba62d95eff9bf5ff2cc14", "score": "0.7118391", "text": "public static function table() {\r\n\t\t$clsname = get_called_class();\r\n\t\t$meta = $clsname::meta();\r\n\t\treturn $meta['table'];\r\n\t}", "title": "" }, { "docid": "ae65c3a43f625390dd7be65d2f5d3e35", "score": "0.711725", "text": "public function getTableName(){\n\t\treturn $this->table;\n\t}", "title": "" }, { "docid": "2ab98ed28663cf8211337c2dc0c031ac", "score": "0.71142715", "text": "public static function getTableName()\n {\n return self::TABLE_NAME;\n }", "title": "" }, { "docid": "b340cd5439c7265ee698ba38c6491a33", "score": "0.7106996", "text": "public function getTableName() {\n\t\treturn $this->fullTableName;\n\t}", "title": "" }, { "docid": "db53f27c8f5080f3c96d037081bc33a4", "score": "0.7097495", "text": "public function getTableName()\n {\n return $this->table_name;\n }", "title": "" }, { "docid": "db53f27c8f5080f3c96d037081bc33a4", "score": "0.7097495", "text": "public function getTableName()\n {\n return $this->table_name;\n }", "title": "" }, { "docid": "295f87e43000efa999bbe161b80dcefd", "score": "0.70964915", "text": "public static function table_name()\n {\n return static::table()->table;\n }", "title": "" }, { "docid": "38ece571442ab402701f53d28e08d144", "score": "0.70861316", "text": "public function getItemTableName() {}", "title": "" }, { "docid": "bfe1d34252d2b280959fed31a48ae5df", "score": "0.70861304", "text": "public function getTableName(){\n return $this->tableName;\n }", "title": "" }, { "docid": "dd471a7b73abaacd7b3d1494a0aeff05", "score": "0.7080746", "text": "public function getTable(): string\n {\n return $this->table;\n }", "title": "" }, { "docid": "dd471a7b73abaacd7b3d1494a0aeff05", "score": "0.7080746", "text": "public function getTable(): string\n {\n return $this->table;\n }", "title": "" }, { "docid": "15a19b8b5e9e839ac4ebee9b17689a15", "score": "0.70799774", "text": "public function getTableName() {\n return $this->table;\n }", "title": "" }, { "docid": "15a19b8b5e9e839ac4ebee9b17689a15", "score": "0.70799774", "text": "public function getTableName() {\n return $this->table;\n }", "title": "" }, { "docid": "8ffa5b9f2588d7ed2ef3b55b400af252", "score": "0.70722955", "text": "public function get_table_name_escaped() {\r\n\t\treturn $this->driver->escape_database_entity($this->name, IDBDriver::TABLE);\r\n\t}", "title": "" }, { "docid": "de785ea2f5335a121ff9a5885bcf5e98", "score": "0.7071704", "text": "public function getTableName()\n\t{\n\t\treturn $this->table_name;\n\t}", "title": "" }, { "docid": "8fcce352dffb25c4b393cfedf9eaee89", "score": "0.7052418", "text": "abstract protected function getBaseTableName();", "title": "" }, { "docid": "0831b3b3ec44b07eaa1f3ca1b695e802", "score": "0.7052141", "text": "public function getTable()\n {\n return Core::constant( \"DB_PREFIX\" ) . $this->table;\n }", "title": "" }, { "docid": "ec1c7044007287fb9b4170c85d731f37", "score": "0.7044758", "text": "public function get_tableName() {\n\t\tif(empty($this->trueTableName)) {\n\t\t\t$tableName = !empty($this->tablePrefix) ? $this->tablePrefix : '';\n\t\t\tif(!empty($this->tableName)) {\n\t\t\t\t$tableName .= $this->tableName;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$tableName .= parse_name($this->name);\n\t\t\t}\n\t\t\t$tableName .= !empty($this->tableSuffix) ? $this->tableSuffix : '';\n\t\t\t$this->trueTableName = strtolower($tableName);\n\t\t}\n\t\treturn (!empty($this->dbName) ? $this->dbName . '.' : '') . $this->trueTableName;\n\t}", "title": "" }, { "docid": "37f6cee8e39c9cf77227830ea042d420", "score": "0.70363826", "text": "public function getTableName()\n\t{\n\t\treturn $this->_name;\n\t}", "title": "" }, { "docid": "76e8aad304b483283b1ef87ab06e881a", "score": "0.70349795", "text": "function getTable() {\n return $this->tableName;\n }", "title": "" }, { "docid": "0e7ee96d849e0ea6eb9e0632f679a7b4", "score": "0.70346", "text": "public static function getEntity(): string {\n\t\treturn static::getTable();\n\t}", "title": "" }, { "docid": "14d3514d727e6de7d81ac22b32b80aa2", "score": "0.70330745", "text": "protected function getTableName($entity)\n {\n return $this->_frameworkModelResource->getTableName($entity);\n }", "title": "" }, { "docid": "5f35e98bfeeb796d54807ca98fd66403", "score": "0.7030661", "text": "public static function getMetaTableName(): string\n {\n $originClass = static::class;\n\n return (new $originClass)->getTable();\n }", "title": "" }, { "docid": "48b97fe59de814b2730d140598015000", "score": "0.70259386", "text": "abstract protected function getDataTableName();", "title": "" }, { "docid": "e8fa9c82ebe63b82afa303109667b634", "score": "0.70238113", "text": "public function getTableName()\n {\n return $this->table;\n }", "title": "" }, { "docid": "e8fa9c82ebe63b82afa303109667b634", "score": "0.70238113", "text": "public function getTableName()\n {\n return $this->table;\n }", "title": "" }, { "docid": "8225b84f86982c151d500ec8f38d69ed", "score": "0.7023375", "text": "public function getSource()\n {\n return 'org_database_table';\n }", "title": "" }, { "docid": "35e8def346cf6e82a38b396fd293871b", "score": "0.702044", "text": "public static function getTableName()\n {\n if (static::$tableName) {\n return static::$tableName;\n }\n\n return EM::getInstance(static::class)->getNamer()\n ->getTableName(static::class, static::$tableNameTemplate, static::$namingSchemeTable);\n }", "title": "" }, { "docid": "35e8def346cf6e82a38b396fd293871b", "score": "0.702044", "text": "public static function getTableName()\n {\n if (static::$tableName) {\n return static::$tableName;\n }\n\n return EM::getInstance(static::class)->getNamer()\n ->getTableName(static::class, static::$tableNameTemplate, static::$namingSchemeTable);\n }", "title": "" }, { "docid": "1360dd3c9671073021a2ff91ebeb055a", "score": "0.70149964", "text": "public static function getTableName() {\n return self::$_tableName;\n }", "title": "" }, { "docid": "57fb4d2ffe625bbafef0fb66d8313925", "score": "0.70142525", "text": "public function getTableName() {\n $modelClass = $this->modelClass;\n return $modelClass::tableName();\n }", "title": "" }, { "docid": "731089bdf7889b80ebb81594613eed09", "score": "0.70140904", "text": "public function getTable() {\n return Core::constant( \"DB_PREFIX\" ) . $this->table;\n }", "title": "" }, { "docid": "56013154655797d50577d5109ddd06f3", "score": "0.7013", "text": "public function table_name()\n\t{\n\t\treturn strtolower(get_called_class()).'s';\n\t}", "title": "" }, { "docid": "a66f5cd3e3b585244ca45f781571939c", "score": "0.7012936", "text": "function getTableAlias():?string\r\n\t{\r\n\t\t$tableName = $this->getTableName();\r\n\t\tif (!$tableName) return \"\";\r\n\t\treturn (string)$tableName;\r\n\t}", "title": "" }, { "docid": "64677e8d23e40e4bc7b4ad5cd2161ee8", "score": "0.70100015", "text": "public function getTableName()\n {\n return $this->sTable;\n }", "title": "" }, { "docid": "a99930f4be2c83841506da0e9b984211", "score": "0.70088506", "text": "function getTableName() {\n\t\treturn $this->_table;\n\t}", "title": "" }, { "docid": "cf3b58040e1f1638285ede090ba0dce5", "score": "0.7007611", "text": "public function getTableName()\n {\n return $this->tableName;\n }", "title": "" }, { "docid": "cf3b58040e1f1638285ede090ba0dce5", "score": "0.7007611", "text": "public function getTableName()\n {\n return $this->tableName;\n }", "title": "" }, { "docid": "cf3b58040e1f1638285ede090ba0dce5", "score": "0.7007611", "text": "public function getTableName()\n {\n return $this->tableName;\n }", "title": "" }, { "docid": "cf3b58040e1f1638285ede090ba0dce5", "score": "0.7007611", "text": "public function getTableName()\n {\n return $this->tableName;\n }", "title": "" }, { "docid": "a39cc6ec919eb082a35e2fa70ae1c68a", "score": "0.70047396", "text": "public function get_table_name() {\r\n\t\treturn $this->name;\r\n\t}", "title": "" }, { "docid": "fa3ae3266b35282daf0d339b91e0453f", "score": "0.699892", "text": "public function getTable()\n {\n return $this->schema[ORM::M_TABLE];\n }", "title": "" }, { "docid": "0414863f17531b945c79be9657795fe4", "score": "0.6988765", "text": "protected function getTableName()\n {\n return $this->tableName;\n }", "title": "" }, { "docid": "5dc3128cf6ec1f32893e7b35975dd14f", "score": "0.6988694", "text": "public function getTableName() {\r\n\t\treturn\t$this->tableName;\r\n\t}", "title": "" }, { "docid": "191d94a2686307aa20753c31eb983845", "score": "0.69881904", "text": "public static function getTableName()\r\n {\r\n $name = self::getName();\r\n $tableName = str_replace(array('\\Model\\\\', '\\\\'), '', $name);\r\n return $name::getTablePrefix() . lcfirst($tableName);\r\n }", "title": "" }, { "docid": "cea6a42ff45f6c31928e81061a7af7f5", "score": "0.6987536", "text": "public function getTableName()\n\t{\n\t\treturn $this->tableName;\n\t}", "title": "" }, { "docid": "cea6a42ff45f6c31928e81061a7af7f5", "score": "0.6987536", "text": "public function getTableName()\n\t{\n\t\treturn $this->tableName;\n\t}", "title": "" }, { "docid": "1826770d217738085463eeecbe6b1a12", "score": "0.6975152", "text": "function getTableName():?string\r\n\t{\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "fbe08c1c318ed728f32ad887dac3f157", "score": "0.6975126", "text": "public function getMainTable()\n {\n return $this->getEntityTable();\n }", "title": "" }, { "docid": "444586820db1ea360fce463b09f1c61e", "score": "0.6968297", "text": "public function table()\n {\n return $this->model->getTable();\n }", "title": "" }, { "docid": "3c95bd3ca760c891651ffe51804d2386", "score": "0.6966014", "text": "public function getFullyQualifiedTableName() : string\r\n {\r\n return DB::getTablePrefix() . 'geo';\r\n }", "title": "" } ]
7c7d5df0b13cf430c859707605e43bab
FIXME Common with InstallForm Fail with a generic installation error.
[ { "docid": "25543ae0137461ca5e015438f9142aef", "score": "0.59101635", "text": "function installError($errorMsg) {\n\t\t$templateMgr =& TemplateManager::getManager();\n\t\t$templateMgr->assign(array('isInstallError' => true, 'errorMsg' => $errorMsg));\n\t\t$this->display();\n\t}", "title": "" } ]
[ { "docid": "46529dd8a6960be3ea7c860a98b556ce", "score": "0.6448484", "text": "public static function checkInstall() {\n\t\t\t// TODO: Something awesoem\n\t\t\tif(!file_exists(\"engine/values/mysql.values.php\")){\n\t\t\t\tLayoutManager::redirect(\"INSTALL.php\");\n\t\t\t} else if(file_exists(\"INSTALL.php\")){\n\t\t\t\tFileHandler::delete(\"INSTALL.php\");\n\t\t\t\techo \"<center><img src=\\\"images/warning.png\\\" height=14px border=0/> Please delete 'INSTALL.php'. It's unsafe to have this in the root directory.</center>\";\n\t\t\t} \n\t\t}", "title": "" }, { "docid": "16d8548231031d5373adebbe91dd4131", "score": "0.6296868", "text": "function installSetupForm() {\n // Build form.\n $this->form = new HTML_QuickForm('admin_user_setup', 'POST', '/install');\n $this->form->addElement('text', 'adminUsername', 'Admin Username', ['class' => 'form-control']);\n $this->form->addElement('password', 'adminPassword_1', 'Admin Password', ['class' => 'form-control']);\n $this->form->addElement('password', 'adminPassword_2', 'Re-enter Password', ['class' => 'form-control']);\n $this->form->addElement('submit', 'btnSubmit', 'Install', ['class' => 'btn btn-primary']);\n\n // Add validation\n $this->form->addRule('adminUsername', 'Username is required', 'required');\n $this->form->addRule('adminPassword_1', 'Please enter a password', 'required');\n $this->form->addRule('adminPassword_2', 'Please re-enter your password', 'required');\n\n // Custom validation. Checks if passwords match.\n $this->form->registerRule('match_field', 'function', 'validate_match_field', $this->validation);\n $this->form->addRule('adminPassword_1', 'Passwords do not match!', 'match_field', $this->formValues['adminPassword_2']);\n\n // If form passes validation install site.\n if ($this->form->validate()) {\n // First create the database.\n $this->createDatabase();\n // Then insert the admin user.\n $this->insertAdminUser();\n // Send user back to home page.\n $this->f3->reroute('/');\n }\n $renderer = new HTML_QuickForm_Renderer_ArraySmarty($this->smarty);\n $this->form->accept($renderer);\n\n $errors = Helper::checkErrors($renderer);\n\n // Add all form elements to the template.\n if (!empty($errors)) {\n $this->assign('errors', json_encode($errors));\n }\n $rendered = Helper::modifyRenderedOutput($renderer->toArray());\n\n $this->assign('elements', $rendered['elements']);\n $this->assign('formAttr', $rendered['attributes']);\n $this->assign('op', 'install');\n $this->assign('contentTitle', 'Install AngryGiant');\n\n $this->display('InstallForm.tpl');\n }", "title": "" }, { "docid": "4b87e470aa369a3ec89526ad08f6686d", "score": "0.6292342", "text": "public function installAction()\r\n\t{\r\n\t try {\r\n \t // run the install command\r\n \t $packageName = $this->_runCommand(\r\n \t $command = Faett_Core_Interfaces_Service::COMMAND_INSTALL\r\n \t );\r\n // attach a message to the session\r\n \t\tMage::getSingleton('adminhtml/session')->addSuccess(\r\n \t\t Mage::helper('adminhtml')->__(\r\n \t\t '201.success.package-install', $packageName\r\n \t\t )\r\n \t\t);\r\n\t } catch(Faett_Manager_Exceptions_InvalidCommandException $ice) {\r\n Mage::getSingleton('adminhtml/session')->addError(\r\n \t\t $ice->getMessage()\r\n \t\t);\r\n\t } catch(Exception $e) {\r\n Mage::getSingleton('adminhtml/session')->addError(\r\n \t\t Mage::helper('manager')->__(\r\n \t\t '900.pear.exception',\r\n \t\t $e->getMessage()\r\n \t\t )\r\n \t\t);\r\n\t }\r\n // redirect to the licence overview\r\n $this->_redirect('*/*/');\r\n\t}", "title": "" }, { "docid": "b93c2696abe3c5eebe1cdc143079d1ca", "score": "0.6288783", "text": "public function storeFailed()\r\n {\r\n return $this->redirect(handles('antares::install/create'));\r\n }", "title": "" }, { "docid": "3880effeb60a3d4652499841bcbba3f7", "score": "0.62029904", "text": "public function onAfterInstall()\n {\n craft()->amForms_install->install();\n }", "title": "" }, { "docid": "20f82ebd021456ac22665349c7d9005f", "score": "0.6167202", "text": "protected function outputInstallToolNotEnabledMessageIfNeeded() {}", "title": "" }, { "docid": "20f82ebd021456ac22665349c7d9005f", "score": "0.6166622", "text": "protected function outputInstallToolNotEnabledMessageIfNeeded() {}", "title": "" }, { "docid": "ba2e4b6c6ac08b5cdb766e305e93def6", "score": "0.6145868", "text": "public function checkInstall()\n {\n if (($this->get('db') == '' || !file_exists($this->get('db'))) || $this->get('passwd') == '')\n {\n Misc::redirect('install.php');\n }\n }", "title": "" }, { "docid": "6da73d440914fcdc55b912e89e35ba75", "score": "0.61434394", "text": "function install()\r\n\t {\r\n\t $result = $this->_getPackageFromUpload();\r\n\t if(empty($result))\r\n\t {\r\n\t $this->setRedirect('index.php?option=com_qrcode&layout=style', $result);\r\n\t }\r\n\t else\r\n\t {\r\n\t $this->setRedirect('index.php?option=com_qrcode&layout=style', $result);\r\n\t }\r\n \t}", "title": "" }, { "docid": "e58e5e226b832a94b4d0fafbb3b913ea", "score": "0.61221206", "text": "protected function install(){ return true;}", "title": "" }, { "docid": "53b1df7af132d4d4ec86bfb696bf48a0", "score": "0.60658985", "text": "public function isValidInstall() {\n\t\treturn $this->install !== null;\n\t}", "title": "" }, { "docid": "b266b857d04574ef129a1b2d009bffba", "score": "0.60619915", "text": "protected function checkInstallToolPasswordNotSet() {}", "title": "" }, { "docid": "c76413d01fb07ddd7871bc3ef6ded123", "score": "0.60051906", "text": "private function checkInstall($install)\n {\n if (F::has('password'))\n {\n if (!$install && empty(F::get('password')))\n {\n F::redirect('/install');\n }\n elseif ($install && !empty(F::get('password')))\n {\n F::redirect('/login');\n }\n }\n }", "title": "" }, { "docid": "6218de0fc9e9ad9acfdf0952e6be4784", "score": "0.5977937", "text": "public function testInstallFailed() {\n $this->module->method('install')->willReturn(true);\n\n // Second call return False, this should make the install fail.\n $this->module->method('registerHook')->will($this->onConsecutiveCalls(true, false));\n $this->configManager->method('addFields')->willReturn(true);\n\n $this->assertFalse($this->module->install(), \"Install should return False if install fails.\");\n }", "title": "" }, { "docid": "d5514079bab2580e6f301a70d576eeab", "score": "0.59073186", "text": "private function pageInstall() {\n\t//expect $_FILE['install']\n\t//extract file to /tmp/\n\t//read module information file\n\t//put files into modules/$module/\n\t//run install class in modules/$module/install.php\n\t//install class may have a custom install form and should return information if install is done.\n\t}", "title": "" }, { "docid": "ab97d9cb3e02a6febab0e68b1995a516", "score": "0.59068847", "text": "function install_form_process()\n\t{\n\t\t//-----------------------------------------\n\t\t// When processed, return all vars to save\n\t\t// in conf_global in the array $this->info_extra\n\t\t// This will also be saved into $INFO[] for\n\t\t// the installer\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( ! $_REQUEST['mysql_tbl_type'] )\n\t\t{\n\t\t\t$this->errors[] = 'You must complete the required SQL section!';\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$this->info_extra['mysql_tbl_type'] = $_REQUEST['mysql_tbl_type'];\n\t}", "title": "" }, { "docid": "df82a31daeda63a5f58b4ecf42dd74c8", "score": "0.58994144", "text": "function install($data='') {\r\n parent::install();\r\n }", "title": "" }, { "docid": "df82a31daeda63a5f58b4ecf42dd74c8", "score": "0.58994144", "text": "function install($data='') {\r\n parent::install();\r\n }", "title": "" }, { "docid": "e773a70489b07cb7b1373d3bc6a6dd47", "score": "0.58571965", "text": "function check_install(){\n\tglobal $config, $install_errors;\n\t\n\t// Error friendly messages\n\t$requirements_error = array(\n\t\t'There is a problem regarding server requirements. This means that Chevereto can\\'t run because of the following:',\n\t\t'Please notice that this issue is because your server setup. If you want to run Chevereto please contact your hosting company or system admin regarding this report.'\n\t);\n\t$folder_error = array(\n\t\t'There is a problem regarding folders. This means that Chevereto can\\'t run because one or more folders required doesn\\'t exists. The missing folders are:',\n\t\t'Please double-check your current setup for the missing files.'\n\t);\n\t$admin_folder_error = array(\n\t\t'There is a problem regarding the admin folder and Chevereto won\\'t run because the admin folder doesn\\'t exists.',\n\t\t'Please double-check <code>$config[\\'admin_folder\\']</code> in the <code>includes/config.php</code> file.'\n\t);\t\n\t$htaccess = 'In some operating systems this files are hidden, therefore you can\\'t upload them. You need to <a href=\"http://www.google.com/search?q=show+hidden+htaccess\" target=\"_blank\">show this file</a> and then upload it.';\n\t$htaccess_error = array(\n\t\t'Some <code>.htaccess</code> file(s) doesn\\'t exists and the system can\\'t create this files.', $htaccess\n\t);\n\t$root_htaccess_error = array(\n\t\t'The <code>.htaccess</code> file doesn\\'t exists in the Chevereto root directory. This file must be uploaded to run Chevereto.', $htaccess\n\t);\n\t$file_error = array(\n\t\tstr_replace('folders', 'files', $folder_error[0]),\n\t\tstr_replace('folders', 'files', $folder_error[1])\n\t);\n\t$permission_error = array(\n\t\t'There is a problem regarding permissions. This means that Chevereto can\\'t upload files because of the following:',\n\t\t'Chevereto needs a way to write in this folders. You can do this by doing <a href=\"http://www.google.com/search?q=chmod+777\" target=\"_blank\">chmod 0777</a> on the above folders or use <a href=\"http://www.suphp.org/\" target=\"_blank\">suPHP</a> or <a href=\"http://httpd.apache.org/docs/current/suexec.html\" target=\"_blank\">suEXEC</a> on your server setup.'\n\t);\n\t$config_error = array(\n\t\t'There is a problem regarding your config setup. This means that Chevereto won\\'t run because the config is not valid:',\n\t\t'Please double-check your settings in the <code>includes/config.php</code> file.'\n\t);\n\t$definitions_error = array(\n\t\t'Please take note that you must edit the <code>definitions.php</code> file the first time that you install Chevereto.',\n\t\t'Please double-check your definitions in the <code>includes/definitions.php</code> file.'\n\t);\n\t$theme_error = array(\n\t\t'There is a problem regarding your current theme. This means that Chevereto won\\'t run because <code>'.$config['theme'].'</code> theme has missing files:',\n\t\t'Please double-check the theme hierarchy.'\n\t);\n\t$theme_data_error = array(\n\t\t'There is a problem regarding your current theme data. This means that Chevereto won\\'t run because <code>'.$config['theme'].'</code> theme has not valid theme data in <code>style.css</code> header comments:',\n\t\t'Please double-check the <code>style.css</code> header comments and refer to the <a href=\"http://chevereto.com/docs#themes\">theme documentation</a> page.'\n\t);\n\t$virtual_folder_error = array(\n\t\t'There is a problem regarding your virtual folders setup:',\n\t\t'Either you set different values for virtual folders in <code>includes/config.php</code> or you delete this directories.'\n\t);\n\t\n\t// Check for the server requirements\n\tif(!check_requirements()) {\n\t\tchevereto_die($install_errors, 'System error', $requirements_error);\n\t}\n\t\n\t// Check for the image folders\n\t$image_folders = array(__CHV_PATH_IMAGES__);\n\tif(!check_files_folders($image_folders, 'Directory')) {\n\t\tchevereto_die($install_errors, 'Folder error', $folder_error);\n\t}\n\tif(!check_permissions($image_folders)) {\n\t\tchevereto_die($install_errors, 'Permissions error', $permission_error);\n\t}\n\t\n\t// Check for virtual folders\n\t$virtual_folders = array(sanitize_path($config['virtual_folder_image']), sanitize_path($config['virtual_folder_uploaded']));\n\tforeach($virtual_folders as $folder) {\n\t\tif(file_exists(__CHV_ROOT_DIR__.$folder)) {\n\t\t\t$install_errors[] = 'The directory <code>'.__CHV_RELATIVE_ROOT__.$folder.'</code> must not exists';\n\t\t}\n\t}\n\tif(count($install_errors)>0) chevereto_die($install_errors, 'Virtual folders error', $virtual_folder_error);\n\t\n\t// Check for upload.php\n\tif(!file_exists(__CHV_ROOT_DIR__.'upload.php')) {\n\t\tchevereto_die('Can\\'t find <code>upload.php</code>', 'Missing upload.php', $file_error);\n\t}\n\t\n\t// Check for the root .htaccess file\n\tif(!file_exists(__CHV_ROOT_DIR__.'.htaccess')) {\n\t\tchevereto_die('', '.htaccess error', $root_htaccess_error);\n\t}\n\t\n\t// Admin folder\n\tif(!check_value($config[\"admin_folder\"])) $config[\"admin_folder\"] = \"admin\";\n\tif(!file_exists(__CHV_PATH_ADMIN__)) {\n\t\tchevereto_die('', 'Admin folder doesn\\'t exists', $admin_folder_error);\n\t}\n\t\n\t// Check for the other .htaccess files\n\t$htaccess_files = array(__CHV_PATH_IMAGES__, __CHV_PATH_INCLUDES__, __CHV_PATH_ADMIN_INCLUDES__);\n\tforeach($htaccess_files as $dir) {\n\t\tif(!file_exists($dir.'.htaccess')) {\n\t\t\tswitch($dir) {\n\t\t\t\tcase __CHV_PATH_IMAGES__:\n\t\t\t\t\t$rules = 'static';\n\t\t\t\tbreak;\n\t\t\t\tcase __CHV_PATH_INCLUDES__:\n\t\t\t\tcase __CHV_PATH_ADMIN_INCLUDES__:\n\t\t\t\t\t$rules = 'deny';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(!htaccess($rules, $dir)) {\n\t\t\t\t$install_errors[] = 'Can\\'t create <code>'.$dir.'.htaccess</code> file. Please upload the <code>.htaccess</code> file to the target dir';\n\t\t\t}\n\t\t}\n\t}\n\tif(count($install_errors)>0) chevereto_die($install_errors, '.htaccess error', $htaccess_error);\n\t\n\t// Files check\n\t$include_files = array(\n\t\t'chevereto.php',\n\t\t'uploader.php',\n\t\t'shorturl.php',\n\t\t'definitions.php',\n\t\t'template.functions.php'\n\t);\n\t$classes_files = array(\n\t\t'class.handler.php',\n\t\t'class.db.php',\n\t\t'class.upload.php',\n\t\t'class.filelist.php',\n\t\t'class.imageresize.php',\n\t\t'class.imageconvert.php',\n\t\t'class.minify.php',\n\t\t'class.shorturl.php'\n\t);\n\t\n\t$system_files = array(\n\t\t'login.php',\n\t\t'error.php',\n\t\t'style.css',\n\t\t'img/chevereto.png',\n\t\t'img/logo.png',\n\t\t'img/ico-warn.png',\n\t\t'img/background.png',\n\t\t'img/bkg-content.png'\n\t);\n\t$system_files_minify = array('style.css');\n\t$system_files = array_merge_minified($system_files, $system_files_minify);\n\t\n\t$system_js_files = array(\n\t\t'uploadify.swf',\n\t\t'ZeroClipboard.swf',\n\t\t'pref.php'\n\t);\n\t$system_js_files_minify = array('jquery.js', 'chevereto.js', 'functions.js', 'jquery.uploadify-3.1_chevereto.js');\n\t$system_js_files = array_merge_minified($system_js_files, $system_js_files_minify);\n\t\n\t// Admin files\n\t$admin_classes_files = array(\n\t\t'class.adminhandler.php',\n\t\t'class.manage.php'\n\t);\n\t$admin_system_files = array(\n\t\t'header.php',\n\t\t'filemanager.php'\n\t);\n\t$admin_system_files_minify = array('style.css', 'js/admin.js');\n\t$admin_system_files = array_merge_minified($admin_system_files, $admin_system_files_minify);\n\t\n\tforeach($include_files as $key => $value) $include_files[$key] = __CHV_PATH_INCLUDES__.$value;\n\tforeach($classes_files as $key => $value) $classes_files[$key] = __CHV_PATH_CLASSES__.$value;\n\tforeach($system_files as $key => $value) $system_files[$key] = __CHV_PATH_SYSTEM__.$value;\n\tforeach($system_js_files as $key => $value) $system_js_files[$key] = __CHV_PATH_SYSTEM_JS__.$value;\n\tforeach($admin_classes_files as $key => $value) $admin_classes_files[$key] = __CHV_PATH_ADMIN_CLASSES__.$value;\n\tforeach($admin_system_files as $key => $value) $admin_system_files[$key] = __CHV_PATH_ADMIN_SYSTEM__.$value;\n\t\n\t/*** The complete file check array ***/\n\t$check_files = array(\n\t\t'Includes'\t\t\t=> $include_files,\n\t\t'Classes'\t\t\t=> $classes_files,\n\t\t'System Files'\t\t=> array_merge($system_files, $system_js_files),\n\t\t'Admin .htaccess'\t=> array(__CHV_PATH_ADMIN_INCLUDES__.'.htaccess'),\n\t\t'Admin Classes'\t\t=> $admin_classes_files,\n\t\t'Admin System'\t\t=> $admin_system_files\n\t);\n\t\n\tforeach($check_files as $key => $value) {\n\t\tcheck_files_folders($value, 'File');\n\t}\n\tif((count($install_errors)>0)) {\n\t\tchevereto_die($install_errors, 'Setup error', $file_error);\n\t}\n\t\t\n\tif(!check_config()) {\n\t\tchevereto_die($install_errors, 'Config error', $config_error);\n\t}\n\t\n\tif(!check_definitions()) {\n\t\tchevereto_die($install_errors, 'Please change definitions.php', $definitions_error);\n\t}\n\t\n\tif(!check_theme()) {\n\t\tchevereto_die($install_errors, 'Theme error', $theme_error);\n\t}\n\t\n\tif(!check_theme_data()) {\n\t\tchevereto_die($install_errors, 'Theme data error', $theme_data_error);\n\t}\n\n}", "title": "" }, { "docid": "85f9fade5d5849e99b6d364ddb5ba090", "score": "0.5849791", "text": "function printFormInstall()\n\t\t{\n\t\t$html = '\n\t\t\n\t\t<div>\n\t\t\n\t\t<form id=\"forminstall\">\n \n\t\t<legend><h1>Configuración del módulo</h1></legend>\n \n\t\t\t\t\t<p>&nbsp;</p>\n\t\t\t\t\t\n\t\t\t\t\t<fieldset>\n\t\t\t\t\t <div>\n\t\t\t\t\t \t<p><label>Qué tipo de funcionalidad desea instalar?</label></p>\n\t\t\t\t\t </div>\n\t\t\t\t\t <div>\n\t\t\t\t\t\t <p>\n\t\t\t\t\t\t <select name=\"funcionality\" class=\"large\">\n\t\t\t\t\t\t\t <option value=\"sel\">Seleccione</option>\n\t\t\t\t\t\t\t <option value=\"1\">Título y artículo</option>\n\t\t\t\t\t\t\t <option value=\"2\">Título, artículo y una imagen</option>\n\t\t\t\t\t\t\t <option value=\"3\">Título, artículo y varias imagenes</option>\n\t\t\t\t\t\t </select>\n\t\t\t\t\t\t </p>\n\t\t\t\t\t </div>\t\t\t\t \n\t\t\t\t\t </fieldset>\n\t\t\t\t\t \n\t\t\t\t\t <p>&nbsp;</p>\n\t\t\t\t\t \n\t\t\t\t\t <!--<fieldset>\n\t\t\t\t\t <div>\n\t\t\t\t\t \t<p><label>Desea anadir la característica \"extracto\" del artículo?</label></p>\n\t\t\t\t\t </div>\n\t\t\t\t\t <div>\n\t\t\t\t\t\t <p>\n\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t <input type=\"radio\" name=\"xtract\" value=\"1\" id=\"xtract_0\" />Si</label>\n\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t <input type=\"radio\" name=\"xtract\" value=\"0\" id=\"xtract_1\" />No</label>\n\t\t\t\t\t\t </p>\n\t\t\t\t\t </div>\n\t\t\t\t\t\t</fieldset>-->\n\t\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t<fieldset>\n\t\t\t\t\t <div>\n\t\t\t\t\t \t<p><label>Instalar datos de ejemplo?</label></p>\n\t\t\t\t\t </div>\n\t\t\t\t\t <div>\n\t\t\t\t\t\t <p>\n\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t <input type=\"radio\" name=\"dataExample\" value=\"1\" id=\"dataExample_0\" />Si</label>\n\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t <input type=\"radio\" name=\"dataExample\" value=\"0\" id=\"dataExample_1\" />No</label>\n\t\t\t\t\t\t </p>\n\t\t\t\t\t </div>\n\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t<p>&nbsp;</p>\t \n\t\t\t\t <a class=\"uibutton\" onclick=\"xajax_install(xajax.getFormValues(\\'forminstall\\')); return false;\">Instalar módulo</a> \t\t\t\t \n\t\t</form>\t\t\t \n\t</div>\t\t\t\n</div>';\nreturn $html;\n\t\t}", "title": "" }, { "docid": "714933b21ff9c87f0657385e3994f324", "score": "0.58375126", "text": "function install($data='') {\n parent::install();\n\n\n }", "title": "" }, { "docid": "d90fb9c63b9071f2ab7900d2c26b7c36", "score": "0.58107597", "text": "function install($data='') {\n parent::install();\n }", "title": "" }, { "docid": "d90fb9c63b9071f2ab7900d2c26b7c36", "score": "0.58107597", "text": "function install($data='') {\n parent::install();\n }", "title": "" }, { "docid": "d90fb9c63b9071f2ab7900d2c26b7c36", "score": "0.58107597", "text": "function install($data='') {\n parent::install();\n }", "title": "" }, { "docid": "d90fb9c63b9071f2ab7900d2c26b7c36", "score": "0.58107597", "text": "function install($data='') {\n parent::install();\n }", "title": "" }, { "docid": "d90fb9c63b9071f2ab7900d2c26b7c36", "score": "0.58107597", "text": "function install($data='') {\n parent::install();\n }", "title": "" }, { "docid": "74993724792fc5bdf10e9338f8fec39a", "score": "0.5805997", "text": "public function prepareSucceed()\r\n {\r\n return $this->redirect(handles('antares::install/create'));\r\n }", "title": "" }, { "docid": "293a33a036ff7630db1c28ef4fda33f9", "score": "0.5784864", "text": "function __checkInstall() {\n\t\t$base = strpos($_SERVER['REQUEST_URI'], Dispatcher::getUrl());\n\t\t$base = substr($_SERVER['REQUEST_URI'], 0, $base);\n\t\tif (!file_exists(APP . 'config/INSTALLED') && !in_array(Dispatcher::getUrl($_SERVER['REQUEST_URI']), array('install', 'install/configure'))) {\n\t\t\theader('Location: '.$base.'install');exit;\n\t\t}\n\t}", "title": "" }, { "docid": "3860aec887273528e92b682ae9b43898", "score": "0.5766271", "text": "function unsinstall()\n\t\t{\n\t\t}", "title": "" }, { "docid": "c499babe2cb364611d35e929dafc61d0", "score": "0.5764626", "text": "function installCheck() {\n // Check if user table exists for check.\n $result = $this->db->exec('SELECT name FROM sqlite_master WHERE type=\"table\" AND name=\"users\"');\n if (empty($result)) {\n $this->installSetupForm();\n } else {\n echo 'The site has already been installed.';\n }\n }", "title": "" }, { "docid": "134c6f833dcf8798fa404b764690ea0a", "score": "0.57518476", "text": "public function install()\n {\n if (!parent::install()\n || !$this->registerHook('displayBackOfficeHeader')\n || !$this->installModuleTab('onehopsmsservice', array(\n 1 => 'Onehop SMS Services'\n ), 0)\n || !$this->installDB()\n || !$this->registerHook('orderConfirmation')\n || !$this->registerHook('postUpdateOrderStatus')\n || !$this->registerHook('actionUpdateQuantity')\n || !$this->registerHook('actionObjectProductUpdateAfter')) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "dc4a74c6a30f9ca7c3b59f0450d9f9b0", "score": "0.5728847", "text": "public function doneFailed()\r\n {\r\n /* @var $progress Progress */\r\n $progress = app()->make(Progress::class);\r\n $progress->reset();\r\n\r\n app('antares.messages')->add('error', trans('Installation failed. Please try again or contact with software provider.'));\r\n return $this->redirect(handles('antares::install/failed'));\r\n }", "title": "" }, { "docid": "54b8156f12ec6813f2e528dc72c21410", "score": "0.57212883", "text": "function pre_install()\n\t{\n\t\t//-----------------------------------------\n\t\t// Installing, or uninstalling?\n\t\t//-----------------------------------------\n\t\t\n\t\t$type = ( $this->ipsclass->input['un'] == 1 ) ? 'uninstallation' : 'installation';\n\t\t$text = ( $this->ipsclass->input['un'] == 1 ) ? 'Uninstalling' : 'Installing';\n\t\t\n\t\t//-----------------------------------------\n\t\t// Page Info\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->ipsclass->admin->page_title = \"(FSY23) Universal Mod Installer: XML Analysis\";\n\t\t$this->ipsclass->admin->page_detail = \"The mod's XML file has been analyzed and the proper {$type} steps have been determined.\";\n\t\t$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code.'&code=view', 'Manage Mod Installations' );\n\t\t$this->ipsclass->admin->nav[] = array( '', $text.\" \".$this->xml_array['mod_info']['title']['VALUE'] );\n\t\t\n\t\t//-----------------------------------------\n\t\t// Show the output\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->start_table( $this->xml_array['mod_info']['title']['VALUE'] );\n\t\t\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic( \"<span style='font-size: 12px;'>Click the button below to proceed with the mod $type.<br /><br /><input type='button' class='realbutton' value='Proceed...' onclick='locationjump(\\\"&amp;{$this->ipsclass->form_code}&amp;code=work&amp;mod={$this->ipsclass->input['mod']}&amp;un={$this->ipsclass->input['un']}&amp;step=0&amp;st={$this->ipsclass->input['st']}\\\")' /></span>\", \"center\" );\n\t\t\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->end_table();\n\t\t\n\t\t$this->ipsclass->admin->output();\n\t}", "title": "" }, { "docid": "e98e3bb0134b0733fc783801d0070f0c", "score": "0.57164496", "text": "function base_requirements_error() {\n\trequire_once( dirname( __FILE__ ) . '/views/system-requirements-error.php' );\n}", "title": "" }, { "docid": "c5857a61ccaaf9c59cf9557189c12eaf", "score": "0.57025456", "text": "function display_setup_form($error = \\null)\n {\n }", "title": "" }, { "docid": "11213eb664c47f9181911126389a665b", "score": "0.5697315", "text": "function discover_install() {\n\t\t$installer =& JInstaller::getInstance();\n\t\t$eid = JRequest::getVar('eid',0);\n\t\tif (is_array($eid) || $eid) {\n\t\t\tif (!is_array($eid)) {\n\t\t\t\t$eid = Array($eid);\n\t\t\t}\n\t\t\tJArrayHelper::toInteger($eid);\n\t\t\t$app =& JFactory::getApplication();\n\t\t\t$failed = false;\n\t\t\tforeach($eid as $id) {\n\t\t\t\t$result = $installer->discover_install($id);\n\t\t\t\tif (!$result) {\n\t\t\t\t\t$failed = true;\n\t\t\t\t\t$app->enqueueMessage(JText::_('Discover install failed').': '. $id);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->setState('action', 'remove');\n\t\t\t$this->setState('name', $installer->get('name'));\n\t\t\t$this->setState('message', $installer->message);\n\t\t\t$this->setState('extension_message', $installer->get('extension_message'));\n\t\t\tif (!$failed) $app->enqueueMessage(JText::_('Discover install successful'));\n\t\t} else {\n\t\t\t$app =& JFactory::getApplication();\n\t\t\t$app->enqueueMessage(JText::_('No extension selected'));\n\t\t}\n\t}", "title": "" }, { "docid": "f346195e09892ff512619ff235faffec", "score": "0.56849504", "text": "public function beforeInstall()\n\t{}", "title": "" }, { "docid": "6896cad3810ce878f2d84292b3db6a7e", "score": "0.5675965", "text": "public function manualInstallAction()\r\n\t{\r\n\t $helper = Mage::helper('manager');\r\n // initialize the channel model\r\n $chn = Mage::getModel('manager/channel');\r\n // load by given channel_id if there is an id\r\n if ($channel_id = $this->getRequest()->getParam('channel_id')) {\r\n \t$chn->load($channel_id);\r\n \t// set channel name\r\n \t$channelName = $chn->getUrl();\r\n \t// get package name from post data\r\n \t$packageName = $this->getRequest()->getParam('package_name');\r\n \t// try to get package information for given package_name\r\n \t$package = $this->_service->packageInfo(\r\n \t\t$packageName,\r\n \t $channelName\r\n \t);\r\n \tif ($package) {\r\n\t \t// initialize the package model\r\n\t $pkg = Mage::getModel('manager/package');\r\n\t // try to load the package from the database by its name\r\n\t $id = $pkg->loadByName($packageName)->getId();\r\n\t if (empty($id)) {\r\n\t // if the package is new, create it\r\n\t $pkg->setChannelIdFk($chn->getId());\r\n\t $pkg->setName($packageName);\r\n\t $pkg->setSummary($package['summary']);\r\n\t $pkg->setVersionInstalled($package['installed']);\r\n\t if (is_array($package['releases'])) {\r\n\t $pkg->setVersionLatest(\r\n\t reset(\r\n\t array_keys($package['releases'])\r\n\t )\r\n\t );\r\n\t }\r\n\t $pkg->setCreatedTime(now());\r\n\t \t\t\t$pkg->setUpdateTime(now());\r\n\t } else {\r\n\t // if the package already exists update it\r\n\t $pkg->setSummary($package['summary']);\r\n\t $pkg->setVersionInstalled($package['installed']);\r\n\t if (is_array($package['releases'])) {\r\n\t $pkg->setVersionLatest(\r\n\t reset(\r\n\t array_keys($package['releases'])\r\n\t )\r\n\t );\r\n\t }\r\n\t \t\t\t$pkg->setUpdateTime(now());\r\n\t }\r\n\t // set the package state\r\n $pkg->setState($helper->getPackageState($pkg));\r\n // save the package\r\n \t $pkg->save();\r\n \t // set package id to request params\r\n \t $this->getRequest()->setParam('id', $pkg->getId());\r\n \t $this->_forward('install');\r\n \t}\r\n } else {\r\n \tMage::getSingleton('adminhtml/session')->addError(\r\n $helper->__(\r\n '201.error.package-no-id'\r\n )\r\n );\r\n }\r\n // redirect to the licence overview\r\n $this->_redirect('*/*/');\r\n\t}", "title": "" }, { "docid": "ec9b457f1cc953b07c309dba23610f8f", "score": "0.5666069", "text": "public function showInstallProgress()\r\n {\r\n return redirect()->to(handles('antares::install/progress'));\r\n }", "title": "" }, { "docid": "4570ba6ef7b5bcfe7ef1f58b0b5fc02b", "score": "0.5662543", "text": "function install($data = '')\n {\n parent::install();\n }", "title": "" }, { "docid": "4570ba6ef7b5bcfe7ef1f58b0b5fc02b", "score": "0.5662543", "text": "function install($data = '')\n {\n parent::install();\n }", "title": "" }, { "docid": "88865312d2c92a3d4b96490d0620bf59", "score": "0.56508976", "text": "function install()\n {\n }", "title": "" }, { "docid": "aea0da9e61b7af966b046bca28ce6444", "score": "0.56452197", "text": "protected function afterInstall()\n {\n }", "title": "" }, { "docid": "7efedc5140106b75bc05dd7a25533dc3", "score": "0.56261414", "text": "public function install(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c3581fcb3f320ea3f7496983a5309f79", "score": "0.5623405", "text": "function TS_VCSC_CustomPackInstalledError(){\r\n\t\t\tif ((ini_get('allow_url_fopen') == '1') || (TS_VCSC_cURLcheckBasicFunctions() == true)) {\r\n\t\t\t\t$RemoteFileAccess \t= true;\r\n\t\t\t} else {\r\n\t\t\t\t$RemoteFileAccess \t= false;\r\n\t\t\t}\r\n\t\t\t$actual_link \t\t\t= \"http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]\";\r\n\t\t\t$actual_link \t\t\t= explode('/', $actual_link);\r\n\t\t\t$urlBasename \t\t\t= array_pop($actual_link);\r\n\t\t\tif ($urlBasename == 'admin.php?page=TS_VCSC_Uploader' ) {\r\n\t\t\t\t$dest \t\t\t\t= wp_upload_dir();\r\n\t\t\t\t$dest_path \t\t\t= $dest['path'];\r\n\t\t\t\t// If a file exists display included icons\r\n\t\t\t\tif ((file_exists($dest_path.'/ts-vcsc-custom-pack.zip')) && ($RemoteFileAccess == true) && (get_option('ts_vcsc_extend_settings_tinymceCustomArray', '') != '')) {\r\n\t\t\t\t\t// Disable File Upload Field if custom font pack exists or system requirements are not met\r\n\t\t\t\t\techo '<script>\r\n\t\t\t\t\t\tjQuery(document).ready(function() {\r\n\t\t\t\t\t\t\tjQuery(\".ts-vcsc-custom-pack-preloader\").hide();\r\n\t\t\t\t\t\t\tjQuery(\".preview-icon-code-box\").show();\r\n\t\t\t\t\t\t\tjQuery(\"#dropDownDownload\").removeAttr(\"disabled\");\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_replace\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_replace_label\").addClass(\"disabled\");\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_relative\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_relative_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_debug\").attr(\"disabled\", \"disabled\");\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_debug_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_nocurl\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_nocurl_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_user\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_user_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_password\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_password_label\").addClass(\"disabled\");\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tjQuery(\"#ts-custom-iconfont-import-file\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts-custom-iconfont-import-file\").parent().addClass(\"ts-custom-iconfont-import-disabled\");\t\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_import_font_submit\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t</script>';\r\n\t\t\t\t} else if ($RemoteFileAccess == false) {\r\n\t\t\t\t\tTS_VCSC_ResetCustomFont();\r\n\t\t\t\t\techo '<script>\r\n\t\t\t\t\t\tjQuery(document).ready(function() {\r\n\t\t\t\t\t\t\tjQuery(\".ts-vcsc-custom-pack-preloader\").hide();\r\n\t\t\t\t\t\t\tjQuery(\".preview-icon-code-box\").hide();\r\n\t\t\t\t\t\t\tjQuery(\"#ts-custom-iconfont-import-file\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts-custom-iconfont-import-file\").parent().addClass(\"ts-custom-iconfont-import-disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#uninstall-pack-button\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#dropDownDownload\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_import_font_submit\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_replace\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_replace_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_relative\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_relative_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_debug\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_debug_label\").addClass(\"disabled\");\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_nocurl\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_nocurl_label\").addClass(\"disabled\");\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_user\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_user_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_password\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_password_label\").addClass(\"disabled\");\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tjQuery(\".ts-vcsc-custom-pack-buttons\").after(\"<div class=error><p class=fontPackUploadedError>Your system does not fulfill the requirements to import a custom font.</p></div>\");\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t</script>';\t\r\n\t\t\t\t}\r\n\t\t\t\tif (($RemoteFileAccess == true) && (file_exists( $dest_path.'/ts-vcsc-custom-pack.json' )) && (file_exists($dest_path.'/style.css')) && (get_option('ts_vcsc_extend_settings_tinymceCustomArray', '') != '')) {\r\n\t\t\t\t\t// Create Preview of Imported Icons\r\n\t\t\t\t\t$output = \"\";\r\n\t\t\t\t\t$output .= \"<div id='ts-vcsc-extend-preview' class=''>\";\r\n\t\t\t\t\t\t$output .=\"<div id='ts-vcsc-extend-preview-name'>Font Name: \" . \t\tget_option('ts_vcsc_extend_settings_tinymceCustomName', 'Custom User Font') . \"</div>\";\r\n\t\t\t\t\t\t$output .=\"<div id='ts-vcsc-extend-preview-author'>Font Author: \" . \tget_option('ts_vcsc_extend_settings_tinymceCustomAuthor', 'Custom User') . \"</div>\";\r\n\t\t\t\t\t\t$output .=\"<div id='ts-vcsc-extend-preview-count'>Icon Count: \" . \t\tget_option('ts_vcsc_extend_settings_tinymceCustomCount', 0) . \"</div>\";\r\n\t\t\t\t\t\t$output .=\"<div id='ts-vcsc-extend-preview-date'>Uploaded: \" . \t\t\tget_option('ts_vcsc_extend_settings_tinymceCustomDate', '') . \"</div>\";\r\n\t\t\t\t\t\t$output .= \"<div id='ts-vcsc-extend-preview-list' class=''>\";\r\n\t\t\t\t\t\t$icon_counter = 0;\r\n\t\t\t\t\t\tforeach (get_option('ts_vcsc_extend_settings_tinymceCustomArray', '') as $key => $option ) {\r\n\t\t\t\t\t\t\t$font = explode('-', $key);\r\n\t\t\t\t\t\t\t$output .= \"<div class='ts-vcsc-icon-preview ts-freewall-active' data-name='\" . $key . \"' data-code='\" . $option . \"' data-font='Custom' data-count='\" . $icon_counter . \"' rel='\" . $key . \"'><span class='ts-vcsc-icon-preview-icon'><i class='\" . $key . \"'></i></span><span class='ts-vcsc-icon-preview-name'>\" . $key . \"</span></div>\";\r\n\t\t\t\t\t\t\t$icon_counter = $icon_counter + 1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$output .= \"</div>\";\r\n\t\t\t\t\t$output .= \"</div>\";\r\n\t\t\t\t\techo '<script>\r\n\t\t\t\t\t\tjQuery(document).ready(function() {\r\n\t\t\t\t\t\t\tjQuery(\"#current-font-pack-preview\").html(\"' . $output. '\");\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t</script>';\r\n\t\t\t\t} else if ((file_exists($dest_path.'/ts-vcsc-custom-pack.zip')) && ($RemoteFileAccess == true) && ($this->TS_VCSC_UseCustomIconFontUpload == \"false\") && (get_option('ts_vcsc_extend_settings_tinymceCustomArray', '') == '')) {\r\n\t\t\t\t\tTS_VCSC_ResetCustomFont();\r\n\t\t\t\t\techo '<script>\r\n\t\t\t\t\t\tjQuery(document).ready(function() {\r\n\t\t\t\t\t\t\tjQuery(\"#ts-custom-iconfont-import-file\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts-custom-iconfont-import-file\").parent().addClass(\"ts-custom-iconfont-import-disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_import_font_submit\").attr(\"disabled\", \"disabled\");\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_replace\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_replace_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_relative\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_relative_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_debug\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_debug_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_nocurl\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_nocurl_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_user\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_user_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_password\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_password_label\").addClass(\"disabled\");\t\r\n\t\t\t\t\t\t\tjQuery(\".ts-vcsc-custom-pack-preloader\").hide();\r\n\t\t\t\t\t\t\tjQuery(\".preview-icon-code-box\").hide();\r\n\t\t\t\t\t\t\tjQuery(\"#ts-custom-iconfont-import-file\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts-custom-iconfont-import-file\").parent().addClass(\"ts-custom-iconfont-import-disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#uninstall-pack-button\").removeAttr(\"disabled\").addClass(\"uninstallnow\");\r\n\t\t\t\t\t\t\tjQuery(\"#dropDownDownload\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\".ts-vcsc-custom-pack-buttons\").after(\"<div class=error><p class=fontPackUploadedError>Hi there, something went wrong during your last font import. Please uninstall the current font package and try importing again (with a valid font package).</p></div>\");\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t</script>';\r\n\t\t\t\t} else {\r\n\t\t\t\t\tTS_VCSC_ResetCustomFont();\r\n\t\t\t\t\techo '<script>\r\n\t\t\t\t\t\tjQuery(document).ready(function() {\r\n\t\t\t\t\t\t\tjQuery(\".ts-vcsc-custom-pack-preloader\").hide();\r\n\t\t\t\t\t\t\tjQuery(\".preview-icon-code-box\").hide();\r\n\t\t\t\t\t\t\tjQuery(\"#uninstall-pack-button\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts-custom-iconfont-import-file\").removeAttr(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts-custom-iconfont-import-file\").parent().removeClass(\"ts-custom-iconfont-import-disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#dropDownDownload\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_replace\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_replace_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_relative\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_relative_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_debug\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_debug_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_nocurl\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_nocurl_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_user\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_user_label\").addClass(\"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"input#ts_vcsc_custom_pack_password\").attr(\"disabled\", \"disabled\");\r\n\t\t\t\t\t\t\tjQuery(\"#ts_vcsc_custom_pack_password_label\").addClass(\"disabled\");\t\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t</script>';\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}", "title": "" }, { "docid": "dccfdcc33e365b083956bc4ea9e69152", "score": "0.56191397", "text": "function install() {}", "title": "" }, { "docid": "c92cedb25b85492ae8381e612ff33e96", "score": "0.56137246", "text": "public function hasInstall();", "title": "" }, { "docid": "c4ab7425cbce03a51468ba322cb74c69", "score": "0.5610836", "text": "public function install()\n {\n if (!$this->installModel()) {\n $this->custom_errors[] = $this->l('Error occurred while installing/upgrading modal.');\n return false;\n }\n\n /*\n * Register various hook functions\n */\n if (!parent::install() ||\n !$this->registerHook('displayHeader') ||\n !$this->registerHook('actionOrderStatusUpdate') ||\n !$this->registerHook('displayFooterProduct') ||\n !$this->registerHook('actionProductUpdate') ||\n !$this->registerHook('actionBeforeAuthentication') ||\n !$this->registerHook('actionAuthentication') ||\n !$this->registerHook('actionBeforeSubmitAccount') ||\n !$this->registerHook('actionCustomerAccountAdd') ||\n !$this->registerHook('actionCustomerLogoutBefore') ||\n !$this->registerHook('actionCustomerLogoutAfter') ||\n !$this->registerHook('displayBackOfficeHeader')) {\n return false;\n }\n \n //Create Admin tabs\n $this->installKbTabs();\n \n //FCM key update\n $setting = array(\n 'apiKey' => \"AIzaSyA750xlMtIuePD6SsGx7FDlihk55qIkQhw\",\n 'authDomain' => \"propane-fusion-156206.firebaseapp.com\",\n 'databaseURL' => \"https://propane-fusion-156206.firebaseio.com\",\n 'projectId' => \"propane-fusion-156206\",\n 'storageBucket' => \"propane-fusion-156206.appspot.com\",\n 'messagingSenderId' => \"310977195083\",\n 'server_key' => \"AAAASGevbEs:APA91bHydR2XnMLZFkrQhQU33Vp3N_koFmjikYlP9AATJ4L3RIsX73m6AZwzZeJVLQVuor-yY13EJ1j6-H8-qPA2hireV6-Ti4N0tZ8LY1jabx_E7pchXhxoH0TWQc7-xQYZhNbf1qjVZIy2DMD5I6gqS8U1XXrnCQ\",\n\n );\n Configuration::updateValue('KB_PUSH_FCM_SERVER_SETTING', Tools::jsonEncode($setting));\n\n if (!Configuration::get('KB_WEB_PUSH_CRON_1')) {\n Configuration::updateValue('KB_WEB_PUSH_CRON_1', $this->kbKeyGenerator());\n }\n if (!Configuration::get('KB_WEB_PUSH_CRON_2')) {\n Configuration::updateValue('KB_WEB_PUSH_CRON_2', $this->kbKeyGenerator());\n }\n \n $existing_notification = KbPushTemplates::getNotificationTemplates();\n if (empty($existing_notification) && count($existing_notification) <= 0) {\n //for order update\n $this->createUpdateStatus();\n $this->createAbandandAlert();\n $this->createPriceAlertUpdate();\n $this->createBackStockAlertUpdate();\n }\n \n return true;\n }", "title": "" }, { "docid": "6ee535847dfc1539c585968383dc26a7", "score": "0.5606843", "text": "function dbInstallError($errorMsg) {\n\t\t$templateMgr =& TemplateManager::getManager();\n\t\t$templateMgr->assign(array('isInstallError' => true, 'dbErrorMsg' => empty($errorMsg) ? __('common.error.databaseErrorUnknown') : $errorMsg));\n\t\t$this->display();\n\t}", "title": "" }, { "docid": "0756c4f563b93a28270cb8a11ab3cb1c", "score": "0.5605062", "text": "function install() {\n /*\n * do some stuff at install db table creation/modification, email template creation etc.\n * \n * \n */\n return parent::install();\n }", "title": "" }, { "docid": "9408f04213a18e6f2bcae01fbd9c1111", "score": "0.55940634", "text": "public function testInstaller() {\n $this->assertUrl('user/1');\n $this->assertResponse(200);\n // Confirm that we are logged-in after installation.\n $this->assertText($this->rootUser->getUsername());\n\n // @todo hmmm this message is wrong!\n // Verify that the confirmation message appears.\n require_once \\Drupal::root() . '/core/includes/install.inc';\n $this->assertRaw(t('Congratulations, you installed @drupal!', [\n '@drupal' => drupal_install_profile_distribution_name(),\n ]));\n }", "title": "" }, { "docid": "10f56cc036a8332cd2b25a37514ba388", "score": "0.5591489", "text": "public function install()\n {\n // execute sql script if needed\n $pdo = Box_Db::getPdo();\n $query=\"SELECT NOW()\";\n $stmt = $pdo->prepare($query);\n $stmt->execute();\n\n throw new Box_Exception(\"Throw exception to terminate module installation process with a message\", array(), 123);\n return true;\n }", "title": "" }, { "docid": "3222ecd0fbe807748228716c80d5f3e9", "score": "0.5574386", "text": "public function install()\n {\n }", "title": "" }, { "docid": "3222ecd0fbe807748228716c80d5f3e9", "score": "0.5574386", "text": "public function install()\n {\n }", "title": "" }, { "docid": "e738686ee5ee7a23cef2d244febe1297", "score": "0.55693823", "text": "public function runInstallation()\n {\n if (!$this->isInstalled()){\n $msg = 'Configuration of this plug-in is not done.';\n $msg .= \"<br/>\\n\".$this->testDossierDeadlineConfigServer();\n throw new BizException('' , 'Server', null, $msg);\n }\n }", "title": "" }, { "docid": "7bd0c0a674cf3dfa25c964386f6072fe", "score": "0.55525786", "text": "protected function _initInstallChecker()\r\n\t{\r\n\t\t$config = Tomato_Core_Config::getConfig();\r\n\t\tif (null == $config->install || null == $config->install->date) {\r\n\t\t\theader('Location: install.php');\r\n\t\t\texit;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4c1aa6f62e06943dd62dbf5a96a703a8", "score": "0.5542569", "text": "public function testFaqInstall()\r\n {\r\n\t\t$this->faqClass->moduleInstall();\r\n\t\t$needUpdate = $this->faqClass->checkUpdate();\r\n\t\tif($needUpdate)\r\n\t\t\t$this->faqClass->moduleUpdate();\r\n\t}", "title": "" }, { "docid": "42982c79bcb7a1c59b1d8654e1ae79e9", "score": "0.5542059", "text": "function install(){}", "title": "" }, { "docid": "3ed6506e896a45c2d6ddb31840628293", "score": "0.5533041", "text": "function Install() {\r\n\t\t\r\n\t\tglobal $useDB, $IP, $dbUser, $dbPassword, $dbName, $dbTable, $motDePasse;\r\n\t\t\r\n\t\tif( !$useDB ) {\r\n\t\t\t$this->mOutput->start( $this->mDB->isOK() );\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif( $this->mDB->isOK() ) fatalError( msg('dbalreadyok') );\r\n\t\t\r\n\t\t$pass = addslashes( $this->mRequest->getVal('passwordInstall') );\r\n\t\t$nam = addslashes( $this->mRequest->getVal('nameInstall') );\r\n\t\t$pass2 = addslashes( $this->mRequest->getVal('passwordInstall2') );\r\n\t\t\r\n\t\tif($pass == $dbPassword && $nam == $dbUser && $pass2 == $motDePasse) {\r\n\t\t\t\r\n\t\t\t// Is the MySQL connexion ok ?\r\n\t\t\tif( $this->mDB->state() < 1 ) fatalError( msg('nodbserverconnexion'), false);\r\n\t\t\t$this->mOutput->addBody( '<h2>'.msg('installtitle').\"</h2>\\n\" );\r\n\t\t\t$this->mOutput->addUl( true );\r\n\t\t\t\r\n\t\t\t// Creation of the database\r\n\t\t\t$error = '';\r\n\t\t\tif( !($error = $this->mDB->createDB()) ) $this->mOutput->addLi( msg('nocreatedb', $dbTable, $error) );\r\n\t\t\telse $this->mOutput->addLi( msg('createdb', $dbName) );\r\n\t\t\t\r\n\t\t\t// Creation of the table\r\n\t\t\t$error = '';\r\n\t\t\tif( $this->mDB->state() < 2 ) fatalError( msg('nodbconnexion') );\r\n\t\t\tif( !($error = $this->mDB->createTable()) ) $this->mOutput->addLi( msg('nocreatetable', $dbTable, $error) );\r\n\t\t\techo $this->mOutput->addLi( msg('createtable', $dbTable) );\r\n\t\t\t\r\n\t\t\t// End\r\n\t\t\t$this->mOutput->addUl( false );\r\n\t\t\t$this->mOutput->addBody( msg('endinstall').\"<br />\\n<a href=\\\"$IP\\\" target=\\\"_blank\\\">\".msg('try').\"</a>\" );\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$this->mOutput->addBody( '<h2>'.msg('installtitle').\"</h2>\\n\" );\r\n\t\t\t$this->mOutput->addBody( \"<form action=\\\"$IP?action=install\\\" method=\\\"post\\\">\" );\r\n\t\t\t$this->mOutput->addBody( msg('avertcreatedb').'<br />' );\r\n\t\t\t$this->mOutput->addBody( msg('installnameserver').\" <input type=\\\"text\\\" name=\\\"nameInstall\\\" /><br />\\n\" );\r\n\t\t\t$this->mOutput->addBody( msg('installpassserver').\" <input type=\\\"text\\\" name=\\\"passwordInstall\\\" /><br />\\n\" );\r\n\t\t\t$this->mOutput->addBody( msg('installpasswww').\" <input type=\\\"text\\\" name=\\\"passwordInstall2\\\" /><br />\\n\" );\r\n\t\t\t$this->mOutput->addBody( \"<input type=\\\"submit\\\" value=\\\"\".msg('install').\"\\\" />\\n\" );\r\n\t\t\t$this->mOutput->addBody( \"</form>\" );\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b4a958ec12cd6369b629483c8130f491", "score": "0.55293816", "text": "public function requirements_errors() {\n\t\t$errors = $this->errors;\n\t\trequire_once( ET_CORE_DIR . 'templates/admin/errors/requirements-error.php' );\n\t}", "title": "" }, { "docid": "aeec38273eff6b19ebef723426d18829", "score": "0.55160725", "text": "public function afterInstall()\n\t{}", "title": "" }, { "docid": "bb04ba396a221ecd4dba31009e697eda", "score": "0.55072707", "text": "function insta_f_install(){\n}", "title": "" }, { "docid": "15fd991cc1f2f81b2674db6eca046c1b", "score": "0.5500579", "text": "function install( $parent ) {\n\n\t\t// echo JText::_('COM_MAPYANDEX_INSTALL');\n\t\t// You can have the backend jump directly to the newly installed component configuration page\n\t\t// $parent->getParent()->setRedirectURL('index.php?option=com_democompupdate');\n\t}", "title": "" }, { "docid": "a41c3502fe439211dcfddded2eeb0590", "score": "0.5495642", "text": "private function action_welcome()\n\t{\n\t\tglobal $incontext, $txt, $databases, $installurl, $db_type;\n\n\t\t$incontext['page_title'] = $txt['install_welcome'];\n\t\t$incontext['sub_template'] = 'welcome_message';\n\n\t\t// Done the submission?\n\t\tif (isset($_POST['contbutt']))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\t// Check the PHP version.\n\t\tif (version_compare(REQUIRED_PHP_VERSION, PHP_VERSION, '>'))\n\t\t{\n\t\t\t$incontext['warning'] = $txt['error_php_too_low'];\n\t\t}\n\n\t\t// See if we think they have already installed it?\n\t\tif (is_readable(TMP_BOARDDIR . '/Settings.php'))\n\t\t{\n\t\t\t$probably_installed = 0;\n\t\t\tforeach (file(TMP_BOARDDIR . '/Settings.php') as $line)\n\t\t\t{\n\t\t\t\tif (preg_match('~^\\$boarddir\\s=\\s\\'([^\\']+)\\';$~', $line))\n\t\t\t\t{\n\t\t\t\t\t$probably_installed++;\n\t\t\t\t}\n\n\t\t\t\tif (preg_match('~^\\$boardurl\\s=\\s\\'([^\\']+)\\';~', $line) && !preg_match('~^\\$boardurl\\s=\\s\\'http://127\\.0\\.0\\.1/elkarte\\';~', $line))\n\t\t\t\t{\n\t\t\t\t\t$probably_installed++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($probably_installed === 2)\n\t\t\t{\n\t\t\t\t$incontext['warning'] = str_replace('{try_delete}', '\n\t\t<div id=\"delete_label\" class=\"hide bbc_strong\">\n\t\t\t<label for=\"delete_self\">\n\t\t\t<input type=\"checkbox\" id=\"delete_self\" onclick=\"doTheDelete();\" class=\"input_check\" /> ' . $txt['delete_installer'] . (!isset($_SESSION['installer_temp_ftp']) ? ' ' . $txt['delete_installer_maybe'] : '') . '</label>\n\t\t\t<script>\n\t\t\t\tfunction doTheDelete()\n\t\t\t\t{\n\t\t\t\t\tlet theCheck = document.getElementById ? document.getElementById(\"delete_self\") : document.all.delete_self,\n\t\t\t\t\t\ttempImage = new Image();\n\t\n\t\t\t\t\ttempImage.src = \"' . $installurl . '?delete=1&ts_\" + (new Date().getTime());\n\t\t\t\t\ttempImage.width = 0;\n\t\t\t\t\ttheCheck.disabled = true;\n\t\t\t\t\twindow.location.href = elk_scripturl;\n\t\t\t\t}\n\t\t\t\tdocument.getElementById(\\'delete_label\\').classList.remove(\\'hide\\');\n\t\t\t</script>\n\t\t</div>', $txt['error_already_installed']);\n\t\t\t}\n\t\t}\n\n\t\t// If there is no Settings.php then we need a new one that only the owner can provide\n\t\tif (!file_exists(TMP_BOARDDIR . '/Settings.php'))\n\t\t{\n\t\t\t$incontext['infobox'] = $txt['error_no_settings'];\n\t\t}\n\n\t\t// Is some database support even compiled in?\n\t\t$incontext['supported_databases'] = array();\n\t\t$db_missing = array();\n\t\tforeach ($databases as $key => $db)\n\t\t{\n\t\t\tif ($db['supported'])\n\t\t\t{\n\t\t\t\tif (!empty($db['additional_file']) && !file_exists(__DIR__ . '/' . $db['additional_file']))\n\t\t\t\t{\n\t\t\t\t\t$databases[$key]['supported'] = false;\n\t\t\t\t\t$notFoundSQLFile = true;\n\t\t\t\t\t$txt['error_db_script_missing'] = sprintf($txt['error_db_script_missing'], $db['additional_file']);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$db_type = $key;\n\t\t\t\t\t$incontext['supported_databases'][] = $db;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$db_missing[] = $db['extension'];\n\t\t\t}\n\t\t}\n\n\t\tif (count($db_missing) === count($databases))\n\t\t{\n\t\t\t$incontext['error'] = sprintf($txt['error_db_missing'], implode(', ', $db_missing));\n\t\t}\n\t\telseif (empty($incontext['supported_databases']))\n\t\t{\n\t\t\t$error = empty($notFoundSQLFile) ? 'error_db_missing' : 'error_db_script_missing';\n\t\t}\n\t\t// How about session support? Some crazy sysadmin remove it?\n\t\telseif (!function_exists('session_start'))\n\t\t{\n\t\t\t$error = 'error_session_missing';\n\t\t}\n\t\t// Make sure they uploaded all the files.\n\t\telseif (!file_exists(TMP_BOARDDIR . '/index.php'))\n\t\t{\n\t\t\t$error = 'error_missing_files';\n\t\t}\n\t\t// Very simple check on the session.save_path for Windows.\n\t\t// @todo Move this down later if they don't use database-driven sessions?\n\t\telseif (@ini_get('session.save_path') == '/tmp' && substr(__FILE__, 1, 2) == ':\\\\')\n\t\t{\n\t\t\t$error = 'error_session_save_path';\n\t\t}\n\n\t\t// Since each of the three messages would look the same, anyway...\n\t\tif (isset($error))\n\t\t{\n\t\t\t$incontext['error'] = $txt[$error];\n\t\t}\n\n\t\t// Mod_security blocks everything that smells funny. Let us handle security.\n\t\tif (!fixModSecurity() && !isset($_GET['overmodsecurity']))\n\t\t{\n\t\t\t$incontext['error'] = $txt['error_mod_security'] . '<br /><br /><a href=\"' . $installurl . '?overmodsecurity=true\">' . $txt['error_message_click'] . '</a> ' . $txt['error_message_bad_try_again'];\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ce8e942f5b5aa976b18f1e15efbf9f82", "score": "0.5478601", "text": "public function install(){\n\n return true;\n\n }", "title": "" }, { "docid": "0a60ba8e871b5bc69b6f326bcd027ac6", "score": "0.5471457", "text": "private function checkinstallrequirement()\r\n\t{\r\n\t\t$userCount = Core_User::getUsers(array(), '', '', '', true);\r\n\t\t\r\n\r\n\t\t\r\n\t\tif($userCount > 0)\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}", "title": "" }, { "docid": "886cb266b7ce4f15e0ee64c12107c6a3", "score": "0.54696774", "text": "public function install()\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c4ffc6511343f3dbe5c735266d5ad64c", "score": "0.5460745", "text": "public function install() {\r\n \r\n }", "title": "" }, { "docid": "fabe3ad53dbb362053a74475781e9d54", "score": "0.5454366", "text": "public static function installToolEnableFileExists() {}", "title": "" }, { "docid": "3b94712da49e47d3650cad84c677d96a", "score": "0.5450484", "text": "public function install();", "title": "" }, { "docid": "3b94712da49e47d3650cad84c677d96a", "score": "0.5450484", "text": "public function install();", "title": "" }, { "docid": "f93cccb92f4a55dc28c880a4001c5ada", "score": "0.54311746", "text": "function notice_installation()\n\t{\n\t\tSession::notice(_t(\"You have addons ready for installation.\", __CLASS__) . \" <a href='\" . URL::get( 'admin', array(\"page\" => \"plugins\")) . \"#for_installation'>\" . _t(\"Go to list\", __CLASS__) . \"</a>\", 'addons_installnotice');\n\t}", "title": "" }, { "docid": "cc79326d07371ca65b252c65d3aeffe8", "score": "0.54287106", "text": "public function install()\n {\n if (static::currentErrorHandler($this->isolator()) === $this) {\n throw new Exception\\AlreadyInstalledException;\n }\n\n static::pushErrorHandler($this, $this->isolator());\n }", "title": "" }, { "docid": "945955dd493f70b3bc7171b498d49ccf", "score": "0.54209805", "text": "function checkForInstallDirs($errorFormat = \"xhtml\"){\r\n\r\n\t\t//first lets check for the main programs install folder\r\n\t\tif(file_exists(\"install\") && is_dir(\"install\"))\r\n\t\t\t$error = new appError(-353,\"You must remove the install directory and all modules' install directories before phpBMS can run.\",\"Main Install Directory Present\",true,true,true,$errorFormat);\r\n\r\n\t\tif(file_exists(\"modules\") && is_dir(\"modules\")){\r\n\r\n\t\t\t$thedir = @ opendir(\"modules\");\r\n\r\n\t\t\twhile($entry = readdir($thedir)){\r\n\r\n\t\t\t\tif($entry != \".\" && $entry != \"..\" && $entry != \"base\" && $entry != \"sample\" && is_dir(\"modules/\".$entry)){\r\n\r\n\t\t\t\t\tif(file_exists(\"modules/\".$entry.\"/install\") && is_dir(\"modules/\".$entry.\"/install\")){\r\n\r\n\t\t\t\t\t\t$error = new appError(-354,\"You must remove the install directory and all modules' install directories before phpBMS can run.\",\"Module '\".$entry.\"' Install Directory Present\",true,true,true,$errorFormat);\r\n\r\n\t\t\t\t\t}//endif\r\n\r\n\t\t\t\t}//endif\r\n\r\n\t\t\t}//end while\r\n\r\n\t\t}//end if\r\n\r\n\t}", "title": "" }, { "docid": "615f77b3579c1d543837fb8b87ca3adb", "score": "0.54135513", "text": "public function install()\n {\n Configuration::updateValue('APISFACT_PRESTASHOP_TOKEN', '');\n\n Configuration::updateValue('APISFACT_PRESTASHOP_SERIEF', 'F001');\n Configuration::updateValue('APISFACT_PRESTASHOP_NUMEROF', '0');\n\n Configuration::updateValue('APISFACT_PRESTASHOP_SERIEB', 'B001');\n Configuration::updateValue('APISFACT_PRESTASHOP_NUMEROB', '0');\n\n include(dirname(__FILE__).'/sql/install.php');\n\n return parent::install() &&\n $this->registerHook('header') &&\n $this->registerHook('backOfficeHeader') &&\n $this->registerHook('displayAdminOrderLeft') &&\n $this->registerHook('displayAdminOrderMain');\n }", "title": "" }, { "docid": "c54bc310707d9416b04f38b32d91ade3", "score": "0.5389188", "text": "function jbInstall($step){\n\t}", "title": "" }, { "docid": "44b46edbbc9767a4d35957fdca9131ae", "score": "0.53818953", "text": "public function install()\n {\n Configuration::updateValue('MF_TITLE', 'Our Favourite Brands');\n Configuration::updateValue('MF_DESCRIPTION', 'Browse our favourite brands');\n Configuration::updateValue('MF_MAN_NUMBER', 0);\n Configuration::updateValue('MF_PER_ROW_DESKTOP', 4);\n Configuration::updateValue('MF_PER_ROW_TABLET', 3);\n Configuration::updateValue('MF_PER_ROW_MOBILE', 1);\n Configuration::updateValue('MF_MAN_ORDER', 'name_asc');\n Configuration::updateValue('MF_SHOW_MAN_NAME', 0);\n\n return parent::install() &&\n $this->registerHook('header') &&\n $this->registerHook('displayHome');\n }", "title": "" }, { "docid": "bcd390f6ab16c1454a80e6fb7b8ba719", "score": "0.53744495", "text": "public function storeSucceed()\r\n {\r\n return redirect()->to(handles('antares::install/components'));\r\n }", "title": "" }, { "docid": "eb6f9f2704de7b8716d3c397f1da811d", "score": "0.53658664", "text": "protected function assertInstalled()\n {\n $isExpected = $this->getIsExpected(self::PARAM_REQUIRE_IS_INSTALLED, self::DEFAULT_REQUIRE_IS_INSTALLED);\n if (null === $isExpected) {\n return;\n }\n $isInstalled = $this->isInstalled();\n if (!$isInstalled && $isExpected) {\n $this->errorCode = self::ERR_IS_INSTALLED;\n throw new \\Exception('Error: Application is not installed yet. ');\n }\n if ($isInstalled && !$isExpected) {\n $this->errorCode = self::ERR_IS_INSTALLED;\n throw new \\Exception('Error: Application is already installed. ');\n }\n }", "title": "" }, { "docid": "8c6afb8e9a78ed5ab67a9e655e11bc81", "score": "0.5361099", "text": "public function install()\n {\n $this->installClasses();\n $this->command();\n $this->markInstalled();\n //or call parent::install(); \n }", "title": "" }, { "docid": "3c793442989369414c79c582709e5ca0", "score": "0.5354701", "text": "public function postInstallCmd(){\n\n \\Disco\\manage\\Manager::install();\n\n }", "title": "" }, { "docid": "3f40a1f9ed1be97e6941bee1e7804f7d", "score": "0.53513217", "text": "function requirements_error() {\n\tglobal $wp_version;\n\n\trequire_once( dirname( __FILE__ ) . '/views/requirements-error.php' );\n}", "title": "" }, { "docid": "0c78f8df53a14708abda29158b1ddbff", "score": "0.5346955", "text": "public function allow_auto_install()\n\t{\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "4abbd137dc1d7751d971e3c7ede8013b", "score": "0.5346113", "text": "public static function install(){\n\t}", "title": "" }, { "docid": "771517e0b93bb2b35d2ca035a4fffe9c", "score": "0.534315", "text": "public function install()\n {\n $this->initForm();\n\n $this->subscribeEvent(\n 'Enlight_Controller_Action_Frontend_Detail_GetPhpInfo',\n 'onGetPhpInfo'\n );\n $this->subscribeEvent(\n 'Enlight_Controller_Action_Frontend_Detail_ClearCache',\n 'onClearCache'\n );\n\n $this->subscribeEvent(\n 'Enlight_Components_Mail_Send',\n 'onSendMail',\n 200\n );\n\n $this->subscribeEvent(\n 'Enlight_Controller_Action_PostDispatch',\n 'onDisplayProfiling',\n 200\n );\n\n $this->subscribeEvent(\n 'Enlight_Controller_Front_StartDispatch',\n 'onStartDispatch',\n 100\n );\n\n return true;\n }", "title": "" }, { "docid": "586f7e14a9388edf485d22ac9a0a77a0", "score": "0.53341955", "text": "public function install_post_message()\n\t{\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "0890bc36735e85e7576e9975d71b7c17", "score": "0.5330303", "text": "public function initBasicSettingsForm($a_install = false)\n\t{\n\t\tglobal $lng, $ilCtrl;\n\n\t\tinclude_once(\"Services/Form/classes/class.ilPropertyFormGUI.php\");\n\t\t$this->form = new ilPropertyFormGUI();\n\n\t\t// webspace dir\t\n\t\t$ne = new ilNonEditableValueGUI($lng->txt(\"data_directory_in_ws\"), \"webspace_dir\");\n\t\tif ($a_install)\n\t\t{\n\t\t\t$ne->setInfo($this->lng->txt(\"data_directory_in_ws_info\"));\n\t\t}\n\t\t$cwd = ilUtil::isWindows()\n\t\t\t? str_replace(\"\\\\\", \"/\", getcwd())\n\t\t\t: getcwd();\n\n\t\t$ne->setValue($cwd.\"/data\");\n\t\t$this->form->addItem($ne);\n\n\t\t// data dir\n\t\tif ($a_install)\n\t\t{\n\t\t\t$ti = new ilTextInputGUI($lng->txt(\"data_directory_outside_ws\"), \"datadir_path\");\n\t\t\t$ti->setInfo($lng->txt(\"data_directory_info\"));\n\t\t\t$ti->setRequired(true);\n\t\t\t$this->form->addItem($ti);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$ne = new ilNonEditableValueGUI($lng->txt(\"data_directory_outside_ws\"), \"data_dir\");\n\t\t\t$this->form->addItem($ne);\n\t\t}\n\n\t\t$lvext = (ilUtil::isWindows())\n\t\t\t? \"_win\"\n\t\t\t: \"\";\n\n\n\t\t// logging\n\t\t$sh = new ilFormSectionHeaderGUI();\n\t\t$sh->setTitle($lng->txt(\"logging\"));\n\t\t$this->form->addItem($sh);\n\n\t\t// path to log file\n\t\t$ti = new ilTextInputGUI($lng->txt(\"log_path\"), \"log_path\");\n\t\t$ti->setInfo($lng->txt(\"log_path_comment\".$lvext));\n\t\t$this->form->addItem($ti);\n\n\t\t// disable logging \n\t\t$cb = new ilCheckboxInputGUI($lng->txt(\"disable_logging\"), \"chk_log_status\");\n\t\t$this->form->addItem($cb);\n\n\t\t// server settings\n\t\t$sh = new ilFormSectionHeaderGUI();\n\t\t$sh->setTitle($lng->txt(\"server_settings\"));\n\t\t$this->form->addItem($sh);\n\n\t\t// time zone\n\t\tinclude_once(\"./Services/Calendar/classes/class.ilCalendarUtil.php\");\n\t\t$si = new ilSelectInputGUI($lng->txt(\"time_zone\"), \"time_zone\");\n\t\t$si->setOptions(array_merge(\n\t\t\tarray(\"\" => \"-- \".$lng->txt(\"please_select\").\" --\"),\n\t\t\tilCalendarUtil::_getShortTimeZoneList()));\n\t\t$si->setRequired(true);\n\t\t$this->form->addItem($si);\n\n\t\t// https settings\n\t\t$sh = new ilFormSectionHeaderGUI();\n\t\t$sh->setTitle($lng->txt(\"https_settings\"));\n\t\t$this->form->addItem($sh);\n\n\t\t$check = new ilCheckboxInputGUI($lng->txt('ps_auto_https'),'auto_https_detect_enabled');\n\t\t$check->setOptionTitle($lng->txt('ps_auto_https_description'));\n\t\t$check->setValue(1);\n\n\t\t$text = new ilTextInputGUI($lng->txt('ps_auto_https_header_name'),'auto_https_detect_header_name');\n\t\t$text->setSize(24);\n\t\t$text->setMaxLength(64);\n\t\t$text->setRequired(true);\n\t\t$check->addSubItem($text);\n\n\t\t$text = new ilTextInputGUI($lng->txt('ps_auto_https_header_value'),'auto_https_detect_header_value');\n\t\t$text->setSize(24);\n\t\t$text->setMaxLength(64);\n\t\t$text->setRequired(true);\n\t\t$check->addSubItem($text);\n\n\t\t$this->form->addItem($check);\n\n\t\t// required 3rd party tools\n\t\t$sh = new ilFormSectionHeaderGUI();\n\t\t$sh->setTitle($lng->txt(\"3rd_party_software_req\"));\n\t\t$this->form->addItem($sh);\n\n\t\t// convert path\n\t\t$ti = new ilTextInputGUI($lng->txt(\"convert_path\"), \"convert_path\");\n\t\t$ti->setInfo($lng->txt(\"convert_path_comment\".$lvext));\n\t\t$ti->setRequired(true);\n\t\t$this->form->addItem($ti);\n\n\t\t// zip path\n\t\t$ti = new ilTextInputGUI($lng->txt(\"zip_path\"), \"zip_path\");\n\t\t$ti->setInfo($lng->txt(\"zip_path_comment\".$lvext));\n\t\t$ti->setRequired(true);\n\t\t$this->form->addItem($ti);\n\n\t\t// unzip path\n\t\t$ti = new ilTextInputGUI($lng->txt(\"unzip_path\"), \"unzip_path\");\n\t\t$ti->setInfo($lng->txt(\"unzip_path_comment\".$lvext));\n\t\t$ti->setRequired(true);\n\t\t$this->form->addItem($ti);\n\n\t\t// optional 3rd party tools\n\t\t$sh = new ilFormSectionHeaderGUI();\n\t\t$sh->setTitle($lng->txt(\"3rd_party_software_opt\"));\n\t\t$this->form->addItem($sh);\n\n\t\t// ghostscript path\n\t\t$ti = new ilTextInputGUI($lng->txt(\"ghostscript_path\"), \"ghostscript_path\");\n\t\t$ti->setInfo($lng->txt(\"ghostscript_path_comment\".$lvext));\n\t\t$this->form->addItem($ti);\n\n\t\t// java path\n\t\t$ti = new ilTextInputGUI($lng->txt(\"java_path\"), \"java_path\");\n\t\t$ti->setInfo($lng->txt(\"java_path_comment\".$lvext));\n\t\t$this->form->addItem($ti);\n\n\t\t// htmldoc path\n\t\t$ti = new ilTextInputGUI($lng->txt(\"htmldoc_path\"), \"htmldoc_path\");\n\t\t$ti->setInfo($lng->txt(\"htmldoc_path_comment\".$lvext));\n\t\t$this->form->addItem($ti);\n\n\t\t// ffmpeg path\n\t\t$ti = new ilTextInputGUI($lng->txt(\"ffmpeg_path\"), \"ffmpeg_path\");\n\t\t$ti->setInfo($lng->txt(\"ffmpeg_path_comment\"));\n\t\t$this->form->addItem($ti);\n\n\t\t// latex\n\t\t$ti = new ilTextInputGUI($lng->txt(\"url_to_latex\"), \"latex_url\");\n\t\t$ti->setInfo($lng->txt(\"latex_url_comment\"));\n\t\t$this->form->addItem($ti);\n\n\t\t// virus scanner\n\t\t$options = array(\n\t\t\t\"none\" => $lng->txt(\"none\"),\n\t\t\t\"sophos\" => $lng->txt(\"sophos\"),\n\t\t\t\"antivir\" => $lng->txt(\"antivir\"),\n\t\t\t\"clamav\" => $lng->txt(\"clamav\")\n\t\t\t);\n\t\t$si = new ilSelectInputGUI($lng->txt(\"virus_scanner\"), \"vscanner_type\");\n\t\t$si->setOptions($options);\n\t\t$this->form->addItem($si);\n\n\t\t// scan command\n\t\t$ti = new ilTextInputGUI($lng->txt(\"scan_command\"), \"scan_command\");\n\t\t$this->form->addItem($ti);\n\n\t\t// clean command\n\t\t$ti = new ilTextInputGUI($lng->txt(\"clean_command\"), \"clean_command\");\n\t\t$this->form->addItem($ti);\n\n\t\tif ($a_install)\n\t\t{\n\t\t\t$sh = new ilFormSectionHeaderGUI();\n\t\t\t$sh->setTitle($lng->txt(\"master_password\"));\n\t\t\t$this->form->addItem($sh);\n\n\t\t\t// password\n\t\t\t$pi = new ilPasswordInputGUI($lng->txt(\"password\"), \"password\");\n\t\t\t$pi->setRequired(true);\n\t\t\t$pi->setSkipSyntaxCheck(true);\n\t\t\t$pi->setInfo($lng->txt(\"password_info\"));\n\t\t\t$this->form->addItem($pi);\n\t\t}\n\n\t\tif ($a_install)\n\t\t{\n\t\t\t$this->form->addCommandButton(\"saveBasicSettings\", $lng->txt(\"save\"));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->form->addCommandButton(\"updateBasicSettings\", $lng->txt(\"save\"));\n\t\t\t$this->form->addCommandButton(\"determineToolsPath\", $lng->txt(\"determine_tools_paths\"));\n\t\t}\n\n\t\t$this->form->setTitle($lng->txt(\"data_directories\"));\n\t\t$this->form->setFormAction(\"setup.php?cmd=gateway\");\n\n\t\tif ($a_install)\n\t\t{\n\t\t\t$det = $this->determineTools();\n\t\t\t$this->form->setValuesByArray($det);\n\t\t}\n\n\t}", "title": "" }, { "docid": "3e543b5c66494c3ccb0d44bf34bd6014", "score": "0.53302675", "text": "public function noticeWPFCMNotInstalled() {\n\t\t\tadd_action( 'admin_notices', array( get_class(), 'renderNoticeWPFCMNotInstalled' ) );\n\t\t}", "title": "" }, { "docid": "20ef37b9999dbf782fc88ffb18faed0f", "score": "0.5326666", "text": "function install($data='') {\r\n @umask(0);\r\n if (!Is_Dir(ROOT.\"./cms/products/\")) {\r\n mkdir(ROOT.\"./cms/products/\", 0777);\r\n }\r\n parent::install();\r\n }", "title": "" }, { "docid": "a3cf5b44f48f9781d8fc311372b7f9bb", "score": "0.53154963", "text": "abstract function setupform();", "title": "" }, { "docid": "33a35f3a37d9c72e2a71370f2994de56", "score": "0.53071475", "text": "public function install() {\n\n\n }", "title": "" }, { "docid": "d473e0e277ad74fe3a82c05fc172060d", "score": "0.5306365", "text": "private function action_deleteInstall()\n\t{\n\t\tglobal $txt, $incontext, $db_character_set;\n\t\tglobal $databases, $modSettings, $db_type;\n\n\t\t// A few items we will load in from settings and make available.\n\t\tglobal $boardurl, $db_prefix, $cookiename, $mbname, $language;\n\n\t\t$incontext['page_title'] = $txt['congratulations'];\n\t\t$incontext['sub_template'] = 'delete_install';\n\t\t$incontext['continue'] = 0;\n\n\t\trequire(TMP_BOARDDIR . '/Settings.php');\n\t\tif (!defined('ELK'))\n\t\t{\n\t\t\tdefine('ELK', 1);\n\t\t}\n\n\t\tdefinePaths();\n\t\t$db = load_database();\n\n\t\tif (!defined('SUBSDIR'))\n\t\t{\n\t\t\tdefine('SUBSDIR', TMP_BOARDDIR . '/sources/subs');\n\t\t}\n\n\t\tchdir(TMP_BOARDDIR);\n\n\t\trequire_once(SOURCEDIR . '/Logging.php');\n\t\trequire_once(SOURCEDIR . '/Subs.php');\n\t\trequire_once(SOURCEDIR . '/Load.php');\n\t\trequire_once(SUBSDIR . '/Cache.subs.php');\n\t\trequire_once(SOURCEDIR . '/Security.php');\n\t\trequire_once(SUBSDIR . '/Auth.subs.php');\n\t\trequire_once(EXTDIR . '/ClassLoader.php');\n\n\t\t$loader = new \\ElkArte\\ext\\Composer\\Autoload\\ClassLoader();\n\t\t$loader->setPsr4('ElkArte\\\\', SOURCEDIR . '/ElkArte');\n\t\t$loader->setPsr4('BBC\\\\', SOURCEDIR . '/ElkArte/BBC');\n\t\t$loader->register();\n\t\trequire_once(TMP_BOARDDIR . '/install/DatabaseCode.php');\n\n\t\t// Bring a warning over.\n\t\tif (!empty($incontext['account_existed']))\n\t\t{\n\t\t\t$incontext['warning'] = $incontext['account_existed'];\n\t\t}\n\n\t\t$db->skip_next_error();\n\t\t$db->query('', '\n\t\t\tSET NAMES UTF8',\n\t\t\tarray()\n\t\t);\n\n\t\t// As track stats is by default enabled let's add some activity.\n\t\t$db->insert('ignore',\n\t\t\t'{db_prefix}log_activity',\n\t\t\tarray('date' => 'date', 'topics' => 'int', 'posts' => 'int', 'registers' => 'int'),\n\t\t\tarray(\\ElkArte\\Util::strftime('%Y-%m-%d', time()), 1, 1, (!empty($incontext['member_id']) ? 1 : 0)),\n\t\t\tarray('date')\n\t\t);\n\n\t\t// Take notes of when the installation was finished not to send to the\n\t\t// upgrade when pointing to index.php and the install directory is still there.\n\t\tupdateSettingsFile(array('install_time' => time()));\n\n\t\t// We're going to want our lovely $modSettings now.\n\t\t$db->skip_next_error();\n\t\t$request = $db->fetchQuery('\n\t\t\tSELECT \n\t\t\t\tvariable, value\n\t\t\tFROM {db_prefix}settings',\n\t\t\tarray()\n\t\t)->fetch_callback(\n\t\t\tfunction ($row) use (&$modSettings) {\n\t\t\t\t// Only proceed if we can load the data.\n\t\t\t\t$modSettings[$row['variable']] = $row['value'];\n\t\t\t}\n\t\t);\n\n\t\t// Automatically log them in ;)\n\t\tif (isset($incontext['member_id']) && isset($incontext['member_salt']))\n\t\t{\n\t\t\tsetLoginCookie(3153600 * 60, $incontext['member_id'], hash('sha256', $incontext['passwd'] . $incontext['member_salt']));\n\t\t}\n\n\t\t$db->skip_next_error();\n\t\t$result = $db->query('', '\n\t\t\tSELECT \n\t\t\t\tvalue\n\t\t\tFROM {db_prefix}settings\n\t\t\tWHERE variable = {string:db_sessions}',\n\t\t\tarray(\n\t\t\t\t'db_sessions' => 'databaseSession_enable',\n\t\t\t)\n\t\t);\n\t\tif ($result->num_rows() != 0)\n\t\t{\n\t\t\tlist ($db_sessions) = $result->fetch_row();\n\t\t}\n\t\t$result->free_result();\n\n\t\tif (empty($db_sessions))\n\t\t{\n\t\t\t$_SESSION['admin_time'] = time();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$_SERVER['HTTP_USER_AGENT'] = substr($_SERVER['HTTP_USER_AGENT'], 0, 211);\n\n\t\t\t$db->insert('replace',\n\t\t\t\t'{db_prefix}sessions',\n\t\t\t\tarray(\n\t\t\t\t\t'session_id' => 'string', 'last_update' => 'int', 'data' => 'string',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\tsession_id(), time(), 'USER_AGENT|s:' . strlen($_SERVER['HTTP_USER_AGENT']) . ':\"' . $_SERVER['HTTP_USER_AGENT'] . '\";admin_time|i:' . time() . ';',\n\t\t\t\t),\n\t\t\t\tarray('session_id')\n\t\t\t);\n\t\t}\n\n\t\trequire_once(SUBSDIR . '/Members.subs.php');\n\t\tupdateMemberStats();\n\n\t\trequire_once(SUBSDIR . '/Messages.subs.php');\n\t\tupdateMessageStats();\n\n\t\trequire_once(SUBSDIR . '/Topic.subs.php');\n\t\tupdateTopicStats();\n\n\t\t$db->skip_next_error();\n\t\t$request = $db->query('', '\n\t\t\tSELECT \n\t\t\t\tid_msg\n\t\t\tFROM {db_prefix}messages\n\t\t\tWHERE id_msg = 1\n\t\t\t\tAND modified_time = 0\n\t\t\tLIMIT 1',\n\t\t\tarray()\n\t\t);\n\t\tif ($request->num_rows() > 0)\n\t\t{\n\t\t\tupdateSubjectStats(1, htmlspecialchars($txt['default_topic_subject']));\n\t\t}\n\t\t$request->free_result();\n\n\t\t// Sanity check that they loaded earlier!\n\t\tif (isset($modSettings['recycle_board']))\n\t\t{\n\t\t\t// The variable is usually defined in index.php so lets just use our variable to do it for us.\n\t\t\t$forum_version = CURRENT_VERSION;\n\n\t\t\t// We've just installed!\n\t\t\tUser::load(true);\n\t\t\tUser::$info->ip = $_SERVER['REMOTE_ADDR'];\n\t\t\tUser::$info->id = $incontext['member_id'] ?? 0;\n\n\t\t\tlogAction('install', array('version' => $forum_version), 'admin');\n\t\t}\n\n\t\t// Some final context for the template.\n\t\t$incontext['dir_still_writable'] = is_writable(__DIR__) && substr(__FILE__, 1, 2) != ':\\\\';\n\t\t$incontext['probably_delete_install'] = isset($_SESSION['installer_temp_ftp']) || is_writable(__DIR__) || is_writable(__FILE__);\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "84bcddbf29c6fda72e7c3cd60312f8f1", "score": "0.5301572", "text": "public static function delegateInstallConnectExceptionProcess(\\Exception $e);", "title": "" }, { "docid": "4472a09b3054f1c7b1342cb620868fd6", "score": "0.52806497", "text": "public function installAction() {\r\n try {\r\n\r\n $db = \\Zend_Db::factory($this->getParam(\"mysql_adapter\"),array(\r\n 'host' => $this->getParam(\"mysql_host\"),\r\n 'username' => $this->getParam(\"mysql_username\"),\r\n 'password' => $this->getParam(\"mysql_password\"),\r\n 'dbname' => $this->getParam(\"mysql_database\"),\r\n \"port\" => $this->getParam(\"mysql_port\")\r\n ));\r\n\r\n $db->getConnection();\r\n\r\n // check utf-8 encoding\r\n $result = $db->fetchRow('SHOW VARIABLES LIKE \"character\\_set\\_database\"');\r\n if ($result['Value'] != \"utf8\") {\r\n $errors[] = \"Database charset is not utf-8\";\r\n }\r\n }\r\n catch (\\Exception $e) {\r\n $errors[] = \"Couldn't establish connection to mysql: \" . $e->getMessage();\r\n }\r\n\r\n // check username & password\r\n if (strlen($this->getParam(\"admin_password\")) < 4 || strlen($this->getParam(\"admin_username\")) < 4) {\r\n $errors[] = \"Username and password should have at least 4 characters\";\r\n }\r\n\r\n if (empty($errors)) {\r\n\r\n $setup = new Tool\\Setup();\r\n\r\n // check if /website folder already exists, if not, look for /website_demo & /website_example\r\n // /website_install is just for testing in dev environment\r\n if(!is_dir(PIMCORE_WEBSITE_PATH)) {\r\n foreach([\"website_install\", \"website_demo\", \"website_example\"] as $websiteDir) {\r\n $dir = PIMCORE_DOCUMENT_ROOT . \"/\" . $websiteDir;\r\n if(is_dir($dir)) {\r\n rename($dir, PIMCORE_WEBSITE_PATH);\r\n break;\r\n }\r\n }\r\n }\r\n\r\n $setup->config(array(\r\n \"database\" => array(\r\n \"adapter\" => $this->getParam(\"mysql_adapter\"),\r\n \"params\" => array(\r\n \"host\" => $this->getParam(\"mysql_host\"),\r\n \"username\" => $this->getParam(\"mysql_username\"),\r\n \"password\" => $this->getParam(\"mysql_password\"),\r\n \"dbname\" => $this->getParam(\"mysql_database\"),\r\n \"port\" => $this->getParam(\"mysql_port\"),\r\n )\r\n ),\r\n ));\r\n\r\n\t\t\t// look for a template dump\r\n\t\t\t// eg. for use with demo installer\r\n\t\t\t$dbDataFile = PIMCORE_WEBSITE_PATH . \"/dump/data.sql\";\r\n\t\t\t$contentConfig = array(\r\n\t\t\t\t\"username\" => $this->getParam(\"admin_username\"),\r\n\t\t\t\t\"password\" => $this->getParam(\"admin_password\")\r\n\t\t\t);\r\n\r\n\t\t\tif(!file_exists($dbDataFile)) {\r\n $setup->database();\r\n \\Pimcore::initConfiguration();\r\n\t\t\t\t$setup->contents($contentConfig);\r\n\t\t\t} else {\r\n\t\t\t\t$setup->insertDump($dbDataFile);\r\n \\Pimcore::initConfiguration();\r\n\t\t\t\t$setup->createOrUpdateUser($contentConfig);\r\n\t\t\t}\r\n\r\n $this->_helper->json(array(\r\n \"success\" => true\r\n ));\r\n }\r\n\r\n else {\r\n echo implode(\"<br />\", $errors);\r\n die();\r\n }\r\n\r\n }", "title": "" }, { "docid": "a479ab2dc9050247d6ae8ee86f5a0a4f", "score": "0.52775323", "text": "public function install()\n {\n // Install default\n if (!parent::install()) {\n return false;\n }\n\n if (!$this->registrationHook()) {\n return false;\n }\n\n if (!Configuration::updateValue('EPUL_USERNAME', '')\n || !Configuration::updateValue('EPUL_PASSWORD', '')\n ) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "30701f88d04e7ad5e782b6d47d26d7db", "score": "0.5274821", "text": "protected function checkInstalled()\n {\n // Assert that fluent is configured\n $locales = Locale::getLocales();\n if (empty($locales)) {\n throw new Exception(\"Please configure Fluent locales (in the CMS) prior to migrating from translatable\");\n }\n\n $defaultLocale = Locale::getDefault();\n if (empty($defaultLocale)) {\n throw new Exception(\n \"Please configure a Fluent default locale (in the CMS) prior to migrating from translatable\"\n );\n }\n }", "title": "" }, { "docid": "cd6e86e60cb700995f42298111a860ba", "score": "0.5263304", "text": "function PKG_setClientPackageInstalledOK($client, $package)\n{\n\tPKG_changeClientPackageAction($client, $package, \"install ok installed\");\n}", "title": "" }, { "docid": "cc401acfa406a290771c0ec249fe69be", "score": "0.5245948", "text": "public function install() {\r\n\t\tadd_option(ShoppWholesale::OPTION_NAME, $this->defaults);\r\n\t}", "title": "" }, { "docid": "dca17ca4c48367af969260442040d0e6", "score": "0.52399987", "text": "public function install () {\n\t\t$this->_log_version_number();\n\t}", "title": "" }, { "docid": "f6066810b5cd7a0ec60478eead3dc587", "score": "0.52269745", "text": "public function testUninstallFailed() {\n $this->module->method('uninstall')->willReturn(true);\n\n // Return false to indiciate something went wrong.\n $this->configManager->method('deleteFields')->willReturn(false);\n\n $this->assertFalse($this->module->uninstall(), \"Uninstall should return False if uninstall fails.\");\n }", "title": "" } ]
b746152a9baec704ce5e2b6914627849
Encuentra el modelo de Cda basado en el valor de la primary key. Si no encuentra respuesta, arroja una excepcion 404 HTTP.
[ { "docid": "6988d8017e11fe39a494a402fd31b48a", "score": "0.0", "text": "protected function findModel($id)\n {\n if (($model = Cda::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" } ]
[ { "docid": "1ac95a31c04aeeae41c098316f293395", "score": "0.62818563", "text": "function registro($pk, $nomeTabela, $atributo_exibir, $atributo_de_busca = \"id\") {\n\n\n $conn = TConnection::open(DB);\n\n $criterio = new TCriteria;\n $criterio->add(new TFilter($atributo_de_busca, \"=\", $pk));\n\n $sql = new TSqlSelect;\n $sql->setEntity($nomeTabela);\n $sql->addColumn($atributo_exibir);\n $sql->setCriteria($criterio);\n $result = $conn->query($sql->getInstruction());\n if($result->rowCount()){\n $row = $result->fetch(PDO::FETCH_ASSOC);\n extract($row);\n return $$atributo_exibir;\n }else{\n return '';\n }\n}", "title": "" }, { "docid": "cd2bb8549f35f9fb6d8f2dd4be6c8b97", "score": "0.6250594", "text": "public function getById() {\r\n $stmt = $this->conn->prepare(\"SELECT * FROM administrador WHERE codAdministrador=:codAdmin\");\r\n $stmt->bindValue(':codAdmin', $this->getCod());\r\n $stmt->execute();\r\n $this->setRetorno($stmt->fetchAll(PDO::FETCH_ASSOC));\r\n }", "title": "" }, { "docid": "869fd577f4f62855e87ef8e63ade5041", "score": "0.6201893", "text": "public static function GetById($id){\n $retorno = null; \n \n $query = \"SELECT id, nombre, rol_encargado as rolEncargado, precio FROM `producto` WHERE id= :id\";\n \n try{\n $db = AccesoDatos::DameUnObjetoAcceso(); \n $sentencia = $db->RetornarConsulta($query); \n $sentencia->bindValue(':id', $id, PDO::PARAM_INT); \n \n $sentencia->execute(); \n $retorno = $sentencia->fetchObject(self::CLASSNAME); \n } catch (PDOException $e) {\n $retorno = -1; \n }\n \n return $retorno;\n }", "title": "" }, { "docid": "11c456db78967d006739befbf31a652c", "score": "0.6057666", "text": "abstract public static function primaryKey(): string;", "title": "" }, { "docid": "7a8ec89d5b623c6528aa9d59f3d49d9d", "score": "0.60216624", "text": "public function actionBuscar_docente_por_cedula() {\n // El administrador ingresa la cédula del docente y busca si existe en la base de datos\n $cedula_docente = $_POST['docente'];\n $docente = Docente::findBySql(\"SELECT \n * FROM docente as doc \n WHERE doc.CEDULA_DOC ='\" . $cedula_docente . \"' limit 1\")->one();\n// if(isset($docente->NOMBRES_DOC)){\n// $var1 = $docente->NOMBRES_DOC;\n// }\n// else{\n// $var1 = 'no existe';\n// }\n return json_encode($docente->NOMBRES_DOC);\n }", "title": "" }, { "docid": "62b0feb7db50a1ec166bff444520826f", "score": "0.60106134", "text": "function RellenaDatos()\n\t\t{\n\t\t $sql = \"SELECT * FROM CLASH WHERE (id_enfrentamiento = '$this->id_enfrentamiento') && (id_campeonato = '$this->id_campeonato')\";\n\t\t // Si la busqueda no da resultados, se devuelve el mensaje de que no existe\n\t\t if (!($resultado = $this->bd->query($sql))){\n\t\t\t\treturn 'No existe en la base de datos'; // \n\t\t\t}\n\t\t else{ // si existe se devuelve la tupla resultado\n\t\t\t\t$result = $resultado->fetch_array();\n\t\t\t\treturn $result;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "c98d2f9fbc8dc498ff58d9807eb9aa1d", "score": "0.5948715", "text": "function buscarCedulaAdminDAO(){\n $conexion = Conexion::crearConexion();\n try {\n $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $stm = $conexion->prepare(\"select id_persona from administrador\");\n $stm->execute();\n $exito = $stm->fetch(); \n } catch (Exception $ex) {\n throw new Exception(\"Error al buscar la cedula del administrador en bd\");\n }\n return $exito;\n }", "title": "" }, { "docid": "82d2fee3c9e61ebf24c1459490474e51", "score": "0.5911966", "text": "function dameId($codigoBarra) {\n\trequire_once('conexion.php');\n\t$conexion = new Conexion();\n\t$conexion->conectarBD();\n\t$query = $conexion -> getConexion() -> prepare(\"SELECT idProducto FROM producto WHERE codigoBarras=?\");\n\t$query->execute(array($codigoBarra));\n\t$res = $query -> fetchObject();\n\t$conexion->desconectarBD();\n\treturn $res->idProducto;\n}", "title": "" }, { "docid": "a2bed434a75d3c3470991553e0fd1ecf", "score": "0.58990896", "text": "public function getOne(){ //detalle.php\n $producto = $this->db->query(\"SELECT * FROM pedidos WHERE id = {$this->getId()}\");\n return $producto->fetch_object();\n }", "title": "" }, { "docid": "d5616fa3521608c8cfee5a3840270553", "score": "0.5874509", "text": "function readOne(){\n\n\t\t$query = \"SELECT * FROM \" . $this->table_name . \" WHERE id=? LIMIT 0,1\";\n\n\t\t$stmt = $this->conn->prepare( $query );\n\t\t$stmt->bindParam(1, $this->id);\n\t\t$stmt->execute();\n\n\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n\t\t$this->id = $row['id'];\n\t\t$this->nk = $row['nama_kelas']; \n\t\t$this->ket = $row['keterangan']; \n\t\t$this->id_ta = $row['id_tahun_akademik']; \n\t}", "title": "" }, { "docid": "dceaf34242e4d8c2baa840025f274f42", "score": "0.58666027", "text": "function consultarId(){\n\n $stmt = $this->db->prepare(\"SELECT *\n\t\t\t\t\tFROM usuario\n\t\t\t\t\tWHERE login = ? \");\n $stmt->execute(array($this->login));\n $resultado = $stmt->fetch(PDO::FETCH_ASSOC);\n\n if($resultado != null){\n return $resultado['usuario_id'];\n }else{\n return 'No existe el usuario en la BD';\n }\n }", "title": "" }, { "docid": "19f437447526a3a9b034a90b301cc022", "score": "0.58514035", "text": "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('CrawlerTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('CrawlerTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "title": "" }, { "docid": "1dff5feb1f1617c6dd89df1dcf64ce2c", "score": "0.58498895", "text": "public function sala(){\n $consulta =\"SELECT idSala\n from sala\";\n return DataBase::getConsultasPDO($consulta);\n }", "title": "" }, { "docid": "76c22362f4d1947278768a4a7f427ded", "score": "0.5814058", "text": "function select(int $id) {\n $database = new Database();\n $db = $database->getConnection();\n \n $jwt = new JwtAuth();\n\n $respAuth = $jwt->validateToken();\n\n if($respAuth !== 'Ok'){\n throw new \\Exception(\"Usuario não autorizado!\");\n }\n\n // initialize object\n $usuario = new Cidade($db);\n $connPdo = $db;\n\n $sql = 'SELECT * FROM Cidade WHERE idCidade = :id';\n $stmt = $connPdo->prepare($sql);\n $stmt->bindValue(':id', $id);\n $stmt->execute();\n\n if ($stmt->rowCount() > 0) {\n return $stmt->fetch(\\PDO::FETCH_ASSOC);\n } else {\n throw new \\Exception(\"Nenhuma cidade encontrado!\");\n }\n }", "title": "" }, { "docid": "7d4689acf3b9e9e27c44a38f943304b1", "score": "0.58065933", "text": "public function readOne()\n {\n // Se hace la consullta para llevar a cabo la acción\n $sql = 'SELECT id_compra,fecha_compra, id_cliente,estado_compra\n FROM compra\n WHERE id_compra = ?';\n $params = array($this->id);\n return Database::getRow($sql, $params);\n }", "title": "" }, { "docid": "fc0f52dd216ee6698c90b71d57bcff25", "score": "0.58051324", "text": "public function loadModel($id)\n\t{\n\t\t$model=Ocompra::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(500,'No se encontro este documento de compra');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "0e7ec305e4d25c6b8557dfa5b1556510", "score": "0.57983816", "text": "public function one(){\n\t\t$class_name = self::className();\n\t\t\n\t\tif(isset($this->data)){\n\t\t\t$query = $this->data;\n\t\t}else{\n\t\t\t$query = \"select * from $this->name limit 1\";\n\t\t}\n\t\t\n\n\t\t$sentencia = $this->db->prepare($query);\n\n\t\tif(isset($this->condicion) and isset($this->valor)){\n\t\t\t$condicion = $this->condicion;\n\t\t\t$valor = $this->valor;\n\n\t\t\t$sentencia->bindParam(\":\".$condicion,$valor);\n\t\t}else{\n\t\t\t$condicion = \"\";\n\t\t\t$valor = \"\";\n\t\t}\n\n\t\t\t\n\t\t\t$sentencia->execute();\n\t\t\t$registros = $sentencia->fetch(PDO::FETCH_ASSOC);\n\n\t\tif($registros){\n\t\t\t$model = new $class_name;\n\t\t\tforeach ($registros as $key => $value) {\n\t\t\t\t $model->$key = $value;\n\t\t\t}\n\n\n\t\t\treturn $model;\n\n\t\t}else{\n\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "60b09ee82628da564e2243fbff7778f4", "score": "0.5787725", "text": "public function ProdutosById($id)\n{\n $idProduto = $this->getConnection()->query(\"SELECT * FROM Produtos where id=$id\");\n return $idProduto;\n\n}", "title": "" }, { "docid": "0442b9f80ad8ce2d2da8b99591068028", "score": "0.578424", "text": "private function consultarAsignacion($idAsignacion)\n\t {\n\t\t\t if (($model = AsignacionPuntoVenta::findOne($idAsignacion)) !== null) {\n\t\t\t\t\t return $model;\n\t\t\t } else {\n\t\t\t\t\t throw new NotFoundHttpException('El recurso no existe.');\n\t\t\t }\n\t }", "title": "" }, { "docid": "dc46ea48f7592f508a0f15450eb8f557", "score": "0.5780904", "text": "function select($id)\r\n{\r\n\r\n$sql = \"SELECT * FROM aluno WHERE id = $id;\";\r\n$result = $this->database->query($sql);\r\n$result = $this->database->result;\r\n$row = $result->fetch_object();\r\n\r\n\r\n$this->id = $row->id;\r\n\r\n$this->nome = $row->nome;\r\n\r\n$this->email = $row->email;\r\n\r\n$this->nome_mae = $row->nome_mae;\r\n\r\n$this->nome_pai = $row->nome_pai;\r\n\r\n$this->responsavel_nome = $row->responsavel_nome;\r\n\r\n$this->responsavel_cpf = $row->responsavel_cpf;\r\n\r\n$this->responsavel_rg = $row->responsavel_rg;\r\n\r\n$this->endereco = $row->endereco;\r\n\r\n$this->plano_saude = $row->plano_saude;\r\n\r\n$this->emergencia = $row->emergencia;\r\n\r\n$this->responsavel_emergencia = $row->responsavel_emergencia;\r\n\r\n$this->carteira = $row->carteira;\r\n\r\n$this->entregou_carteira = $row->entregou_carteira;\r\n\r\n$this->ativo = $row->ativo;\r\n\r\n$this->idx_nivelescolar = $row->idx_nivelescolar;\r\n\r\n$this->data_nasc = $row->data_nasc;\r\n\r\n$this->foto = $row->foto;\r\n\r\n$this->sexo = $row->sexo;\r\n\r\n$this->naturalidade = $row->naturalidade;\r\n\r\n$this->uf = $row->uf;\r\n\r\n$this->pais = $row->pais;\r\n\r\n$this->numero = $row->numero;\r\n\r\n$this->complemento = $row->complemento;\r\n\r\n$this->bairro = $row->bairro;\r\n\r\n$this->cidade = $row->cidade;\r\n\r\n$this->estado = $row->estado;\r\n\r\n$this->cep = $row->cep;\r\n\r\n$this->reside = $row->reside;\r\n\r\n$this->reside_outros = $row->reside_outros;\r\n\r\n$this->escola = $row->escola;\r\n\r\n$this->alergia = $row->alergia;\r\n\r\n$this->restricao_alimentar = $row->restricao_alimentar;\r\n\r\n$this->pessoas_autorizadas = $row->pessoas_autorizadas;\r\n\r\n}", "title": "" }, { "docid": "fc3fa5ce5a370502f11e86c76c19c168", "score": "0.577494", "text": "public function get($id) {\n $query = $this->db->prepare(self::GET_TABLE);\n $query->bind_param('i', $id);\n try {\n return $this->db->queryGetOne();\n } catch (\\Exception $e) {\n throw new DataNotFoundException(\"Nem található tábla ezzel az azonosítóval!\");\n }\n }", "title": "" }, { "docid": "50f0bb1d3f48d865cf68669e7b50c3e8", "score": "0.57339543", "text": "public function getId() {\n // Create query\n $query = 'SELECT p.id, p.descripcion, m.nombre marca, c.nombre categoria,\n GROUP_CONCAT(co.codigo) codigoStr, p.fechaUltimaModificacion, p.fechaBaja\n FROM ' . $this->table . ' p\n INNER JOIN categoria c on c.id = p.categoriaId\n INNER JOIN marca m on m.id = p.marcaId\n INNER JOIN productocodigo pc on pc.productoId = p.id\n INNER JOIN codigo co on co.id = pc.codigoId\n WHERE id = ? LIMIT 0,1';\n\n // Prepare statement\n $stmt = $this->conn->prepare($query);\n\n // Bind ID\n $stmt->bindParam(1, $this->id);\n\n // Execute query\n $stmt->execute();\n\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n // Set properties\n $this->id = $row['id'];\n \n $this->descripcion = $row['descripcion'];\n $this->marca = $row['marca'];\n $this->categoria = $row['categoria'];\n $this->codigoStr = $row['codigoStr'];\n $this->fechaUltimaModificacion = $row['fechaUltimaModificacion'];\n $this->fechaBaja = $row['fechaBaja'];\n }", "title": "" }, { "docid": "0b6a6a0e7bf06f5d2c8a5e4dfea45379", "score": "0.5714409", "text": "function ambilModeldariID($id){\n $this->db->where('id', $id);\n $query = $this->db->get('tb_habispakai');\n if($query->num_rows()>0)\n {\n return $query->row();\n }\n else\n {\n return false;\n }\n}", "title": "" }, { "docid": "18377bcf8d750e9d1ea76f187c14beb1", "score": "0.5704773", "text": "public function primary_key();", "title": "" }, { "docid": "5a3f9a06d9b16ee676447ee043051c11", "score": "0.5704282", "text": "function dar_carrito_compra($id_carrito_compra) {\r\n $this->db->escape($id_carrito_compra);\r\n $this->db->select('id_carrito_compra, fecha, total, carritos_compras.estado, usuario, usuarios.id_usuario');\r\n $this->db->join('usuarios', 'usuarios.id_usuario = carritos_compras.id_usuario');\r\n $this->db->where('id_carrito_compra', $id_carrito_compra);\r\n $query = $this->db->get('carritos_compras');\r\n return $query->row(0);\r\n }", "title": "" }, { "docid": "9a82406197dd448b785c905a1373749a", "score": "0.5699327", "text": "function findOne($cidade, $uf)\n {\n $database = new Database();\n $db = $database->getConnection();\n \n $jwt = new JwtAuth();\n\n $respAuth = $jwt->validateToken();\n\n if($respAuth !== 'Ok'){\n throw new \\Exception(\"Usuario não autorizado!\");\n }\n\n\n // initialize object\n $cidade = new Cidade($db);\n $connPdo = $db;\n\n $sql = 'SELECT * FROM Cidade WHERE cidade = :cidade and uf = :uf';\n $stmt = $connPdo->prepare($sql);\n $stmt->bindValue(':cidade', $cidade);\n $stmt->bindValue('uf', $uf);\n $stmt->execute();\n\n if ($stmt->rowCount() > 0) {\n return $stmt->fetch(\\PDO::FETCH_ASSOC);\n } \n }", "title": "" }, { "docid": "cd931ba7b0f07f5a637f8415d3330c60", "score": "0.5691559", "text": "public function Obtener($id){\n try{\n \n $stm = $this->pdo->prepare(\"SELECT * FROM alumnos WHERE id = ?\");\n $stm->execute(array($id));\n $row = $stm->fetch(PDO::FETCH_OBJ);\n\n $alumno = new Alumno();\n $alumno->__SET('Id', $row->id);\n $alumno->__SET('Nombre',$row->nombre);\n $alumno->__SET('Apellido',$row->apellido);\n $alumno->__SET('Sexo',$row->sexo);\n $alumno->__SET('FechaNacimiento',$row->fecha_nacimiento);\n \n return $alumno;\n }catch(Exception $e){\n die ($e->getMessage());\n }\n }", "title": "" }, { "docid": "e5bcde3cdc77b570afc81b33dc16da1c", "score": "0.5674474", "text": "function setInstancia(){\n $objDBO=$this->Factory($this->__tempName);\n $campos = $objDBO->table();\n unset($campos[\"id\"]);\n unset($campos[\"fecha\"]);\n //Asigna los valores\n foreach($campos as $key => $value){\n $objDBO->$key = utf8_decode($this->$key);\n }\n $objDBO->fecha = date(\"Y-m-d H:i:s\");\n $objDBO->find();\n if($objDBO->fetch()){\n $ret = $objDBO->id;\n }else{\n $ret = $objDBO->insert();\n }\n //Libera el objeto DBO\n $objDBO->free();\n return $ret;\n }", "title": "" }, { "docid": "d48320513b10deb8562af8aef100bdc8", "score": "0.5671591", "text": "public function getId() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(0, $this->_result)) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('Not set CrawlerTemplatesModel::getId', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From CrawlerTemplatesModel::getId', __LINE__, __FILE__);\n\t}", "title": "" }, { "docid": "eb87858465544f6e6b214a34556f8c28", "score": "0.5669699", "text": "public function findOneByIddevoluciondetalle($key, $con = null)\n {\n return $this->findPk($key, $con);\n }", "title": "" }, { "docid": "3e65b09fe2cb7a7e93841f0ca1ea0dde", "score": "0.56693095", "text": "public function getPrimaryKey(): string;", "title": "" }, { "docid": "39dd97b86b49c6d8891eb27154dc701a", "score": "0.5666177", "text": "public function primaryKey(): string\n {\n return 'id';\n }", "title": "" }, { "docid": "6b1ad4f9df8268e1c702eb700894d444", "score": "0.56634295", "text": "function getIdInventario($arregloDatos) \n\n {\n\n $sql = \" SELECT codigo \n\n FROM inventario_entradas\n\n WHERE arribo='$arregloDatos[arribo]'\";\n\n \n\n //echo $sql;\n\n $this->query($sql);\n\n if ($this->_lastError) {\n\n $this->mensaje = \"error al borrar mercancia del levante \";\n\n \n\n $this->estilo = $this->estilo_error;\n\n return TRUE;\n\n }\n\n $this->fetch();\n\n return $this->codigo;\n\n }", "title": "" }, { "docid": "d2b118f62d915208f09bbe1ac7a43902", "score": "0.56569904", "text": "public function select($cargo_empreso){\n $idcargo=$cargo_empreso->getIdcargo();\n\n try {\n $sql= \"SELECT `idcargo`, `nom_cargo`, `area_empresa_idarea_emp`\"\n .\"FROM `cargo_empreso`\"\n .\"WHERE `idcargo`='$idcargo'\";\n $data = $this->ejecutarConsulta($sql);\n for ($i=0; $i < count($data) ; $i++) {\n $cargo_empreso->setIdcargo($data[$i]['idcargo']);\n $cargo_empreso->setNom_cargo($data[$i]['nom_cargo']);\n $area_empresa = new Area_empresa();\n $area_empresa->setIdarea_emp($data[$i]['area_empresa_idarea_emp']);\n $cargo_empreso->setArea_empresa_idarea_emp($area_empresa);\n\n }\n return $cargo_empreso; } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n return null;\n }\n }", "title": "" }, { "docid": "263bdd927614b642352cf53e936d5ab6", "score": "0.5655305", "text": "function readOne(){\n\t\t\n\t\t$query = \"SELECT * FROM \" . $this->table_name . \" WHERE id=? LIMIT 0,1\";\n\n\t\t$stmt = $this->conn->prepare( $query );\n\t\t$stmt->bindParam(1, $this->id);\n\t\t$stmt->execute();\n\n\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\t\t\n\t\t$this->id = $row['id'];\n\t\t$this->nim = $row['nim'];\n\t\t$this->nama = $row['nama'];\n\t\t$this->jur = $row['jurusan'];\n\t}", "title": "" }, { "docid": "b9b3bbf1b86501b6c1e096fcba8461e2", "score": "0.56501377", "text": "function obtenerContacto($id){\n\n try {\n\n require_once(\"bd.php\");\n \n $sql = \"SELECT * FROM contactos WHERE id = $id\";\n\n return $conn->query($sql);\n\n } catch (Exception $ex) {\n\n echo $ex.errno.\" \".$ex.error; \n }\n\n }", "title": "" }, { "docid": "93286f40263c995ecebf19105614bbb4", "score": "0.56277895", "text": "public function loadById($pk){\r\n //Param $pk cles primaire\r\n //Retour l'odjet demande\r\n $sql = \"SELECT * FROM `{$this->table}` WHERE `{$this->pk}`=:pk\";\r\n $param = [\":pk\"=>$pk];\r\n $req = BDDselect($sql, $param);\r\n $ligne = $req->fetch(PDO::FETCH_ASSOC);\r\n if(!empty($ligne)){\r\n $this->setFromTab($ligne);\r\n return true;\r\n }else{\r\n $this->valeurs[$this->pk]=0;\r\n return false;\r\n }\r\n \r\n }", "title": "" }, { "docid": "4175c7d185b63dd2cf77a77d27d1e19b", "score": "0.5622053", "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": "48a92ee41ff938d8d7ac2cd70f5a8ccc", "score": "0.5621395", "text": "function get_by_id_sejarah($id) {\n\t\t$this->db->where ( $this->id, $id );\n\t\treturn $this->db->get ( $this->table )->row ();\n\t}", "title": "" }, { "docid": "d7b7bda62b09ef41efdc4a55e68b7132", "score": "0.56183547", "text": "public function idUsu($conex){\r\n\r\n $id_art = $this->getId();\r\n $sql =\"SELECT id_u FROM articulo WHERE id_a =:id_art\";\r\n $result = $conex->prepare($sql);\r\n $result->execute(array(':id_art'=>$id_art));\r\n $result = $result->fetchALL();\r\n \r\n return ($result);\r\n}", "title": "" }, { "docid": "d93afc3710155b4c0f16838858da4445", "score": "0.5615152", "text": "public function readOne()\n {\n $sql = 'SELECT id_compra, id_estado_de_comp From compra\n WHERE id_compra = ?';\n $params = array($this->id);\n return Database::getRow($sql, $params);\n }", "title": "" }, { "docid": "12b0c192f220c5d3e36d962c6e3ea4a9", "score": "0.561469", "text": "function readOnecolisEnAttenteById($id){\r\n\r\n $query = \"SELECT id as 'colis_id',code_barre as 'code_envoi',nom_complet as 'Destinataire',crbt,telephone,adresse,DATE_FORMAT(date_creation,'%d-%m-%Y') as date_creation\r\n FROM `tblcolisenattente`\r\n where colis_id is null and id=?\r\n ORDER by id desc\r\n LIMIT 0, 1\";\r\n // prepare query statement\r\n $stmt = $this->conn->prepare( $query );\r\n \r\n // bind id of product to be updated\r\n $stmt->bindParam(1,$id);\r\n \r\n // execute query\r\n $stmt->execute();\r\n \r\n // get retrieved row\r\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\r\n \r\n // set values to object properties\r\n $this->colis_id = $row['colis_id'];\r\n $this->code_envoi = $row['code_envoi'];\r\n $this->Destinataire = $row['Destinataire'];\r\n $this->crbt = $row['crbt'];\r\n $this->telephone = $row['telephone'];\r\n $this->adresse = $row['adresse'];\r\n $this->date_creation = $row['date_creation'];\r\n}", "title": "" }, { "docid": "a83bb1e5b0e52d00da3c83be689c7d1e", "score": "0.56137234", "text": "public function getResenha($idresenha){\n //FAZER A CONSULTA\n $sql = \"select * from resenha where re_id='{$idresenha}'\";\n// echo $sql;die;\n try {//TENTA EXECUTAR A INSTRUCAO\n\n $this->conexao->exec($sql);\n } catch (PDOException $e) {//EM CASO DE ERRO, CAPTURA A MENSAGEM\n return $e->getMessage();\n }\n// $resultado = $this->conexao->query($sql);\n\n //FETCH - TRANSFORMA O RESULTADO EM UM ARRAY ASSOCIATIVO\n $resenha = $resultado->fetch(PDO::FETCH_ASSOC);\n //CRIAR OBJETO DO TIPO CATEGORIA - USANDO OS VALORES DA CONSULTA\n $objetoResenha = new Resenha(\n $resenha['re_id'],\n $resenha['re_idlivro'],\n $resenha['re_idusuario'],\n $resenha['re_data'],\n $resenha['re_textoresenha'],\n $resenha['re_status']\n );\n print_r($objetoResenha);die;\n return $objetoResenha;\n }", "title": "" }, { "docid": "4121996945f06b423f08fe5865b5cd42", "score": "0.56122595", "text": "public function obtenerRegistro($id){\n try{ \n $commd = $this->DB->prepare(\"SELECT * FROM comentarios WHERE id = ?\");\n $commd->execute(array($id));\n return $commd->fetch(PDO::FETCH_OBJ);\n }catch(Throwable $t){\n die($t->getMessage());\n }\n }", "title": "" }, { "docid": "b359cd73ba0fe80848d42dd93ecebf23", "score": "0.5610507", "text": "public function Find(){\n$productos = $this->db->query(\"SELECT * FROM productos WHERE id={$this->getId()}\"); \nreturn $productos->fetch_object(); \n}", "title": "" }, { "docid": "30e7b8e4f1099ece3a8263f3fa2b2af7", "score": "0.5609556", "text": "public function registro(){\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "5d784a7e0ffc2962347d297108a18e60", "score": "0.5609358", "text": "public function PK() {\n $returnvalue = null;\n // this table has no primary key defined\n return $returnvalue;\n }", "title": "" }, { "docid": "60672d3e6e26561af4d13eb9218630be", "score": "0.5603931", "text": "function obtenerUno($id)\r\n {\r\n $this->db->from(\"adopcion\");\r\n $this->db->where(\"id_adopcion\", $id);\r\n $query = $this->db->get();\r\n \r\n if ($query->num_rows() == 1) {\r\n $row = $query->result();\r\n $new_object = new self();\r\n $new_object->init($row[0]);\r\n return $new_object;\r\n }else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "fb928517a152e987703fb41afc308bfd", "score": "0.5593764", "text": "function idServicio(){\n $consulta = \"SELECT id FROM servicios ORDER BY id DESC LIMIT 1\";\n\n $conec = new Conexion();\n\n $conec->conectar();\n\n if (!$conec->obtenerConexion()){\n return -1; // Error en la conexion!\n }\n\n $resultado = pg_query($consulta);\n\n if (!$resultado){\n return 0; // Error en la consulta\n }else{// Se ejecuto con éxito\n if (pg_numrows($resultado) > 0){\n $arr = pg_fetch_row ($resultado, 0);\n\n $this->id = $arr[0]+1;\n\n pg_FreeResult($resultado);\n $conec->cerrarConexion();\n }\n return 1;\n }\n }", "title": "" }, { "docid": "922c3108db8d5454aa2e643c61b72882", "score": "0.55907154", "text": "public static function agregarCarritoModel($data,$table){\n\t\t\t$statement = Connection::connect()->prepare(\"SELECT * FROM $table WHERE codigo =:codigo LIMIT 1;\");\n\t\t\t$statement->bindParam(\":codigo\",$data,PDO::PARAM_INT);\n\t\t\t$statement->execute();\n\t\t\treturn $statement->fetch(PDO::FETCH_OBJ);\n\t\t\t$statement->close();\n\n\t\t}", "title": "" }, { "docid": "17588cc6b43d4368a8f5ef4972f1e4c2", "score": "0.55631024", "text": "public function findOneByIdAbogado($key, $con = null)\n {\n return $this->findPk($key, $con);\n }", "title": "" }, { "docid": "05c0b5aae495482196a5f6bf1fd81654", "score": "0.55611104", "text": "function busca_fuente($cod)\n{\ntry{\n\t$result=mysql_query(\"select id from bd_materiasprimas.tbl_fuente where id_codigo='\".$cod.\"'\")or throw_ex(mysql_error());\n\t$row=mysql_fetch_object($result);\n\treturn $row->id;\n}\n\tcatch(Exception $e)\n{\n\techo \"Error:\". $e;\n}\n\t\n}", "title": "" }, { "docid": "1f53fe91c53477cdc40c886b8502529b", "score": "0.55600923", "text": "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `bestandnummer`, `mutatiekode`, `atccode`, `thesaurusverwijzing_indicatie`, `indicatie_aard`, `thesaurusverwijzing_hardheid_afleiding`, `hardheid_afleiding`, `thesaurusverwijzing_tekstmodule`, `tekstmodule`, `thesaurusverwijzing_tekstsoort`, `tekstsoort`, `tekst_nivo_kode` FROM `gs_afgeleide_indicatieaard` WHERE `atccode` = :p0 AND `indicatie_aard` = :p1';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key[0], PDO::PARAM_STR);\n $stmt->bindValue(':p1', $key[1], PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new GsAfgeleideIndicatieaard();\n $obj->hydrate($row);\n GsAfgeleideIndicatieaardPeer::addInstanceToPool($obj, serialize(array((string) $key[0], (string) $key[1])));\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "title": "" }, { "docid": "c63096b7f150b5472c344f75abf54887", "score": "0.55534977", "text": "public function primaryKey(string $value): void;", "title": "" }, { "docid": "f6834cbc3a4903a7ea5c320508edc214", "score": "0.55512315", "text": "public function MostrarCanastaIndividualEditar($id)\n {\n // var lDepartamento = from c in db.Departamento where c.IdPais == IDPais select new { c.ID, c.Nombre };\n $tipopaca= session::get('tipo_paca');\n // dd($id);\n if($tipopaca==null)\n {\n \n $productos=Producto::where('codigo',$id)->value('fk_tipo_paca'); \n $ObtenerPaca=TipoPaca::where('id',$productos)->value('retornable');\n \n // dd($ObtenerPaca);\n }\n \n \n // dd($ObtenerPrecio);\n return response()->json(['paca'=>$ObtenerPaca]);\n \n }", "title": "" }, { "docid": "c7652d0eae80e4c45caf72e5f80658f6", "score": "0.55465627", "text": "function getVehiculoID($id){\r\n\t\t$this->db->where(\"idvehiculo\", $id);//Con esta linea se agrega un WHERE a un SELECT. Esto debe ir primero\r\n\t\t$data = $this->db->get('vehiculo');//El metodo get sirve para realizar un SELECT en la bd.\r\n\t\tif($data->num_rows() > 0) return $data;\r\n\t\telse return false;\r\n\t}", "title": "" }, { "docid": "99ee70c65fd1b6f0e9691da36954aff9", "score": "0.5545478", "text": "function select($id)\r\n{\r\n\r\n$sql = \"SELECT * FROM funcionario_filho WHERE id = $id;\";\r\n$result = $this->database->query($sql);\r\n$result = $this->database->result;\r\n$row = $result->fetch_object();\r\n\r\n\r\n$this->id = $row->id;\r\n\r\n$this->idx_funcionario = $row->idx_funcionario;\r\n\r\n$this->nome = $row->nome;\r\n\r\n$this->nascimento = $row->nascimento;\r\n\r\n}", "title": "" }, { "docid": "0ee8038a1401b91cb9fe1e558307b07c", "score": "0.5542938", "text": "public function buscarCarreraModel($id){\n\t\t$stmt = Conexion::conectar()->prepare(\"SELECT * FROM carreras WHERE id_carrera = '$id'\");\n\t\t$stmt->execute();\n\t\treturn $stmt->fetch();\n\t\t$stmt->close();\n\n\t}", "title": "" }, { "docid": "b24c7606a3704fe8872f5470414619d1", "score": "0.55401313", "text": "public function select($producto) {\n $idproducto = $producto->getIdproducto();\n\n try {\n $sql = \"SELECT `idproducto`, `nombreProducto`, `cantidadProductoInventario`, `precioUnitarioProducto`, `descripcionProducto`, `calidadTipo`, `foto_idfoto`, `ubicacionProducto`, `categoria_idcategoria`\"\n . \"FROM `producto`\"\n . \"WHERE `idproducto`='$idproducto'\";\n $data = $this->ejecutarConsulta($sql);\n for ($i = 0; $i < count($data); $i++) {\n $producto->setIdproducto($data[$i]['idproducto']);\n $producto->setNombreProducto($data[$i]['nombreProducto']);\n $producto->setCantidadProductoInventario($data[$i]['cantidadProductoInventario']);\n $producto->setPrecioUnitarioProducto($data[$i]['precioUnitarioProducto']);\n $producto->setDescripcionProducto($data[$i]['descripcionProducto']);\n $producto->setCalidadTipo($data[$i]['calidadTipo']);\n $foto = new Foto();\n $foto->setIdfoto($data[$i]['foto_idfoto']);\n $producto->setFoto_idfoto($foto);\n $producto->setUbicacionProducto($data[$i]['ubicacionProducto']);\n $categoria = new Categoria();\n $categoria->setIdcategoria($data[$i]['categoria_idcategoria']);\n $producto->setCategoria_idcategoria($categoria);\n }\n return $producto;\n } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n return null;\n }\n }", "title": "" }, { "docid": "b443e947cf59758b173bba761d72507d", "score": "0.5536586", "text": "function bdConsultarPacienteID($conexao, $id_paciente){\n $sql = \"SELECT* FROM paciente WHERE IDPaciente = '{$id_paciente}'\";\n $resultado = $conexao->query($sql);\n $consulta = $resultado->fetchAll(PDO::FETCH_ASSOC); \n return $consulta; \n}", "title": "" }, { "docid": "bbd7172681e873e616350f57d229f9b8", "score": "0.5533995", "text": "public function buscaPorPK($aulaID) {\n $conn = new FabricaConexoes(\"localhost\", \"root\", \"\");\n $conn->selecionaBaseDados(\"presencadigitaldb\");\n $this->sql = \"select * from tb_aulas where id_aula='\".$aulaID.\"'\";\n $this->resultSet = mysql_query($this->sql, $conn->getConexao()) or die (\"Erro ao efetuar consulta. Erro = \".mysql_error());\n if(mysql_num_rows($this->resultSet)>0) {\n while($linha = mysql_fetch_array($this->resultSet)) {\n $aula = new Aula($linha['id_aula'], $linha['id_materia'], $linha['hora_inicio'], $linha['hora_fim'],$linha['data']);\n }\n } else {\n echo \"Nao foi encontrada esta aula.\";\n $aula = null;\n }\n $conn->finalizaConexaoResult($this->resultSet);\n return $aula;\n }", "title": "" }, { "docid": "5e850ea01a077c6379e61d7c49f7bd71", "score": "0.5529733", "text": "public function consultarId($_id){\n $stmt = $this->_conn->prepare(\"SELECT * FROM ge_usuario WHERE id_usuario = :id\");\n $stmt->bindValue(\":id\", $_id);\n $stmt->execute();\n //retornar para cada usuario no banco, um usuario objeto\n while ($linha = $stmt->fetch()) {\n $usuario = new Usuario($linha[\"id_usuario\"]\n ,$linha[\"usuario\"]\n ,$linha[\"senha\"]\n ,$linha[\"nome\"]\n ,$linha[\"email\"]\n ,$linha[\"celular\"]\n ,$linha[\"telefone\"]\n ,$linha[\"ativo\"]\n ,$linha[\"id_ultimo_sinal\"]\n ,$linha[\"perfil\"]);\n }\n return $usuario;\n //fecha conexão\n //$this->_conn->__destruct();\n }", "title": "" }, { "docid": "7d09cc1f0d4263d506042c50a9de090f", "score": "0.5518454", "text": "function get_codigo($codigo_id){\r\n $codigo = $this->db->query(\r\n \"SELECT *\r\n FROM sincronizacion\r\n WHERE c = ?\r\n \",array($codigo_id))->row_array();\r\n return $codigo;\r\n }", "title": "" }, { "docid": "20c5f268bdfc6b57900f3d3744c452d7", "score": "0.55110353", "text": "function _GetDB($Cod=-1,$Campo='id_evento'){\n\t\t// Cargo campos\n\t\t$this->Registro[$Campo] = $Cod;\n\t\t$this->TablaDB->getRegistro($this->Registro, $Campo);\n\t}", "title": "" }, { "docid": "30d861e50e7c64526951aeafc486a860", "score": "0.5509245", "text": "function readOne()\n {\n $query=\"select distinct idregistros,date,fkmodelo,fkcliente,idmodelos,idclientes,nombre,modelo\nfrom\nregistros as r\ninner join\nmodelos as m\non r.fkmodelo = m.idmodelos\ninner join\nclientes as c\nwhere idregistros = ?;\";\n $stmt = $this->conn->prepare($query);\n $stmt->bindParam(1, $this->idregistros);\n $stmt->execute();\n\n // Crea el vinculo con la BD y Muestra los registros existentes\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n // en las llaves \"[ ]\" van los nombres de atributos de BD.\n $this->id_ren = $row['idregistros'];\n $this->id_clif = $row['date'];\n $this->id_salf = $row['fkmodelo'];\n $this->fecha_ren = $row['fkcliente'];\n\n\n }", "title": "" }, { "docid": "9d92e3c35df38a78fdba3ffda3b9008e", "score": "0.5501177", "text": "protected function findModel($id) {\n if (($model = PdmRencanaDakwaan::findOne(['id_rencana_dakwaan' => $id])) !== null) {\n return $model;\n// } else {\n// throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "a54c4efbfeaf1d0ebcf9668be631d75d", "score": "0.55004144", "text": "function busca_clase_alimento($id_subcategoria)\n{\ntry{\n\t$result=mysql_query(\"select id from bd_materiasprimas.tbl_clase_alimento where id_subcategoria='\".$id_subcategoria.\"'\")or throw_ex(mysql_error());\n\tif(mysql_num_rows($result)>0){\n\t\t$row=mysql_fetch_object($result);\n\t\treturn $row->id;\n\t}else{\n\t\treturn 44;\n\t}\n}\n\tcatch(Exception $e)\n{\n\techo \"Error:\". $e;\n}\n\t\n}", "title": "" }, { "docid": "c00574836f85d4f95db8771d7a8dfa8a", "score": "0.55001825", "text": "public function selectClienteById() {\n $datos=array(\"idCliente\"=>$this->idCliente);\n try {\n $sentencia=$this->conexion->prepare(\"SELECT * FROM Cliente WHERE idCliente=:idCliente\");\n $sentencia->execute($datos);\n $resultado=$sentencia->fetch();\n $this->conexion=null;\n return $resultado;\n } catch (PDOException $e) {\n $this->conexion=null;\n return null;\n }\n }", "title": "" }, { "docid": "e840b7fa7d0df4362429f9aaa233df3d", "score": "0.54996026", "text": "public function traer_padre_id($id_usuario){\n $query = sprintf(\"SELECT herencia.padre FROM herencia WHERE herencia.id_usuario = %d\",$id_usuario);\n $result = $this->db->getData($query);\n //var_dump($result);\n if (count($result)>0) {\n return $result[0]['padre'];\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "4c20e432564b8216aaf5828d72a25500", "score": "0.54976076", "text": "function load($id) {\r\n\t\tparent::load($id);\r\n\t\t$this->db->execute(Query::generateSelectStm(array($this->table),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t array(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t array(new WhereConstraint($this->table->getColumn(DB::CONTEST_ID),Operator::EQUAL,intval($id))),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t array()));\r\n\t\t\t\r\n\t\tif($this->db->num_rows() != 1)\r\n\t\t\tthrow new Exception(\"L'oggetto cercato non è stato trovato. Riprovare.\");\r\n\t\t\t\r\n\t\t$row = $this->db->fetch_result();\r\n\t\t$c = $this->createFromDBRow($row);\r\n\t\treturn $c;\r\n\t}", "title": "" }, { "docid": "a5f54de3a5405066b2f9c912541a8851", "score": "0.54956514", "text": "public function modelGetRecord(){\n $id = isset($_GET[\"id\"])&&$_GET[\"id\"] > 0 ? $_GET[\"id\"] : 0;\n $conn = Connection::getInstance();\n // thuc hien truy van\n $query = $conn->query(\"select * from users where id=$id\");\n // tra ve mot ban ghi\n return $query->fetch();\n }", "title": "" }, { "docid": "654f055e154fa7cd3ed96c25d2169201", "score": "0.54927933", "text": "public function select($traduccion){\n $traduccion_id=$traduccion->getTraduccion_id();\n\n try {\n $sql= \"SELECT `traduccion_id`, `traduccion_titulo`, `traduccion_cont`, `traduccion_tipo`, `lectura_lectura_id`, `idioma_idioma_key`\"\n .\"FROM `traduccion`\"\n .\"WHERE `traduccion_id`='$traduccion_id'\";\n $data = $this->ejecutarConsulta($sql);\n for ($i=0; $i < count($data) ; $i++) {\n $traduccion->setTraduccion_id($data[$i]['traduccion_id']);\n $traduccion->setTraduccion_titulo($data[$i]['traduccion_titulo']);\n $traduccion->setTraduccion_cont($data[$i]['traduccion_cont']);\n $traduccion->setTraduccion_tipo($data[$i]['traduccion_tipo']);\n $lectura = new Lectura();\n $lectura->setLectura_id($data[$i]['lectura_lectura_id']);\n $traduccion->setLectura_lectura_id($lectura);\n $idioma = new Idioma();\n $idioma->setIdioma_key($data[$i]['idioma_idioma_key']);\n $traduccion->setIdioma_idioma_key($idioma);\n\n }\n return $traduccion; } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n return null;\n }\n }", "title": "" }, { "docid": "8ab0858e46b14c00dab7e8ffb8f7332e", "score": "0.5491104", "text": "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `idcliente`, `cliente_nombre`, `cliente_apaterno`, `cliente_amaterno`, `cliente_rfc`, `cliente_razonsocial`, `cliente_callefiscal`, `cliente_numerofiscal`, `cliente_interiorfiscal`, `cliente_coloniafiscal`, `cliente_ciudadfiscal`, `cliente_cpfiscal`, `cliente_estadofiscal`, `cliente_calle`, `cliente_numero`, `cliente_interior`, `cliente_colonia`, `cliente_cp`, `cliente_ciudad`, `cliente_estado`, `cliente_tipo`, `cliente_fecharegistro`, `cliente_estatus`, `cliente_credito`, `cliente_limitecredito`, `cliente_creditorestante` FROM `cliente` WHERE `idcliente` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Cliente();\n $obj->hydrate($row);\n ClientePeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "title": "" }, { "docid": "9fe3b17da6edc8fe4e1de39194e1de11", "score": "0.54883707", "text": "public function Buscar(){\n // $usuario = new Usuario(null, null, $email, null, null, null, null); \n // $find = $this->daoUsuario->buscarPorId($usuario); \n // if($find){\n // echo(\"ok\");\n // }else{\n // echo(\"error\");\n // }\n }", "title": "" }, { "docid": "d4048a5780a7d30bc0fe6518fc4eecba", "score": "0.54858273", "text": "public function SelectIdiomaId($parametros) {\n try {\n $query = Doctrine_Query::create()\n ->select('wi.*')\n ->from($this->table_alias)\n ->where('wi.cod_id = ?', $parametros['cod_id'])\n ->limit(1)\n ->execute()\n ->toArray();\n\n return $query[0];\n } catch (Doctrine_Exception $e) {\n echo $e->getMessage();\n }\n }", "title": "" }, { "docid": "8d30fdcaf1bc919dc7481cd7d5855610", "score": "0.54837596", "text": "public function Obtener($id)\n\t{\n\t\t$codig = $_GET['idcomprobante'];\n\n\t\t$databaseHost = 'localhost';\n\t\t$databaseName = 'db_tiendastock';\n\t\t$databaseUsername = 'root';\n\t\t$databasePassword = '';\n\n\t\t$mysqli = mysqli_connect($databaseHost, $databaseUsername, $databasePassword, $databaseName); \n\t\t$sql = \"SELECT * FROM tbcomprobante WHERE idcomprobante=$codig\";\n\t\t$result = $mysqli->query($sql);\n\n\t\tif ($result->num_rows >= 1) {\n\t\t //echo \"Si existe.\";\n\t\t} else {\n\t\t //echo \"No existe registro alguno.\";\n\t\t\t header(\"Location: comprobante.php\"); \n\t\t}\n\n\t\ttry \n\t\t{\n\t\t\t$stm = $this->pdo\n\t\t\t ->prepare(\"SELECT * FROM tbcomprobante WHERE idcomprobante = ?\");\n\t\t\t \n\n\t\t\t$stm->execute(array($id));\n\t\t\t$r = $stm->fetch(PDO::FETCH_OBJ);\n\n\t\t\t$gam = new Comprobante();\n\n\t\t\t$gam->__SET('idcomprobante', $r->idcomprobante);\t\t\t\n\t\t\t$gam->__SET('dtPeriodo', $r->dtPeriodo);\n\t\t\t$gam->__SET('bitTipoCP', $r->bitTipoCP);\n\t\t\t$gam->__SET('nvchCUD', $r->nvchCUD);\n\n\t\t\t$gam->__SET('bitTipoDocCliente', $r->bitTipoDocCliente);\n\t\t\t$gam->__SET('nvchNombreRazonSocial', $r->nvchNombreRazonSocial);\n\t\t\t$gam->__SET('dtEmision', $r->dtEmision);\n\t\t\t$gam->__SET('bitTipoCambio', $r->bitTipoCambio);\n\n\t\t\t$gam->__SET('inttelefono', $r->inttelefono);\n\t\t\t$gam->__SET('intIgvIva', $r->intIgvIva);\n\t\t\t$gam->__SET('intImporteTotal', $r->intImporteTotal);\n\t\t\t$gam->__SET('intTipoPago', $r->intTipoPago);\n\n\t\t\t$gam->__SET('bitEstado', $r->bitEstado);\n\n\t\t\treturn $gam;\n\t\t} catch (Exception $e) \n\t\t{\n\t\t\tdie($e->getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "922a293ba6d4758496d95d5801b9c950", "score": "0.54784244", "text": "public function loadModel($id)\n\t{\n\t\t$model=Reportepesca::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'El enlace o direccion solicitado no existe');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "131b7f915e94fd34e97f6966932956c0", "score": "0.5478311", "text": "public static function obtenerProductoPorId($producto_id=0){ \n $objProducto= self::find()\n ->where(['inventario_id' => $producto_id])\n ->one();\n if($objProducto!=null){\n $objProducto->inventario=AppModel::sanitizarCadena($objProducto->inventario);\n $objProducto->descripcion=AppModel::sanitizarCadena($objProducto->descripcion); \n $objProducto->observaciones=AppModel::sanitizarCadena($objProducto->observaciones);\n $objProducto->nombre_sector=AppModel::sanitizarCadena($objProducto->nombre_sector); \n return $objProducto;\n }\n return null; \n }", "title": "" }, { "docid": "3b6989af12fb5e1f21f4bb4fb7ff0a89", "score": "0.54754585", "text": "public function api_consultar()\n\t{\n\t\t$this->load->model('producto_model');\n\t\t$post = $this->input->post();\n\n\t\t$data = $this->producto_model->consultar($post[\"id_producto\"]);\n\t\t\n\t\tif(count($data) > 0){\n\t\t\techo json_encode($data[0]);\n\t\t}else{\n\t\t\techo \"{}\";\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "003e75b430d41297439da29c022bd563", "score": "0.5475014", "text": "public function selectPorID($paId){\n \n if ( !is_numeric($paId) ) {\n echo \"O ID deve ser numérico\";\n return false;\n } \n \n $this->filtros[] = \" {$this->campo_id} = {$paId} \";\n \n $vtCarros = $this->selectAll( array( $this->campo_id => $paId ) );\n \n if (count($vtCarros)>0){\n return $vtCarros[0];\n } else {\n return false;\n } \n }", "title": "" }, { "docid": "e11aa946748b1fc28d5b367fb53ecce2", "score": "0.547392", "text": "public function findByKey(int $id): ?DomainObject;", "title": "" }, { "docid": "789b88fb9faeb94501e1023bacd0892c", "score": "0.5467614", "text": "public function view($id = null) {\n if (!$this->AcaoPDV->exists($id)) {\n throw new NotFoundException(__('Invalid acao'));\n }\n $options = array('conditions' => array('AcaoPDV.' . $this->AcaoPDV->primaryKey => $id));\n $this->set('acao', $this->AcaoPDV->find('first', $options));\n }", "title": "" }, { "docid": "2c6e74179110481201184f4adb7d9215", "score": "0.5466607", "text": "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `ID`, `USUARIO_ID`, `FECHA_AUMENTO`, `SUELDO_ANTERIOR`, `PUESTO_ANTERIOR`, `SUELDO`, `NUEVO_PUESTO`, `OBSERVACIONES`, `ARCHIVO_UNO`, `ARCHIVO_DOS` FROM `aumento_usuario` WHERE `ID` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new AumentoUsuario();\n $obj->hydrate($row);\n AumentoUsuarioPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "title": "" }, { "docid": "8df37d77cd6b7c6ddd895862cbe9473c", "score": "0.54581875", "text": "public function postEditar(){\n\t\t$proyecto=Input::get('proyecto');\n\t\t$editar =DB::table('MODART_P100DIAS')\t\t\t\t\t \n\t\t\t\t\t ->select(db::raw('id, nom_proy,est_proy, fecha_fin,avance_pres, avance_prod, costo_ejec'))\n\t\t\t\t\t ->where('id','=',$proyecto)\n\t\t\t\t\t ->get();\t\n\n\t\treturn $editar;\n\t}", "title": "" }, { "docid": "5461b3ab7e2c8398fbeb9ab00a2ef5e1", "score": "0.5457856", "text": "protected function getPrimaryKey($data) {\n if (is_numeric($data)) {\n return $data;\n }\n\n $this->meta->isValidData($data);\n\n if (!empty($data->id)) {\n return $data->id;\n }\n\n throw new ModelException('No primary key found in the provided data');\n }", "title": "" }, { "docid": "31a82ddfe292361ff5cdc7178cd94a4c", "score": "0.5453734", "text": "public function get_by_id($id) {\r\n $table = \"r_pejabat\";\r\n $where = \"KD_PEJABAT='\" . $id . \"'\";\r\n $sql = \"SELECT * FROM $table where $where\";\r\n $result = $this->db->select($sql);\r\n //var_dump($result);\r\n foreach ($result as $val) {\r\n $pejabat = new $this();\r\n $pejabat->kd_pejabat = $val['KD_PEJABAT'];\r\n $pejabat->nip_pejabat = $val['NIP_PEJABAT'];\r\n $pejabat->nama_pejabat = $val['NAMA_PEJABAT'];\r\n $pejabat->nama_jabatan = $val['NAMA_JABATAN'];\r\n $pejabat->jenis_jabatan = $val['JENIS_JABATAN'];\r\n }\r\n //var_dump($data);\r\n return $pejabat;\r\n }", "title": "" }, { "docid": "6ba5571b75f9fbf4fb48f2ce41f7b0b3", "score": "0.5449861", "text": "public function select($prestamo){\n $idPrestamo=$prestamo->getIdPrestamo();\n\n try {\n $sql= \"SELECT `idPrestamo`, `descripcioPrestamo`, `fechaPrestamo`\"\n .\"FROM `prestamo`\"\n .\"WHERE `idPrestamo`='$idPrestamo'\";\n $data = $this->ejecutarConsulta($sql);\n for ($i=0; $i < count($data) ; $i++) {\n $prestamo->setIdPrestamo($data[$i]['idPrestamo']);\n $prestamo->setDescripcioPrestamo($data[$i]['descripcioPrestamo']);\n $prestamo->setFechaPrestamo($data[$i]['fechaPrestamo']);\n\n }\n return $prestamo; } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n return null;\n }\n }", "title": "" }, { "docid": "dfbfa2414c8a923e8c1fc3f68b675250", "score": "0.5448686", "text": "public static function selectById($idPost)\n\t{\n\n\t\t$sql = \"SELECT * FROM articolo WHERE id = :id\";\n\t\t$sql = $this->con->prepare($sql);\n\t\t//como utilizamos :id uso bindvalue e tb digo q è valor inteiro\n\t\t$sql->bindvalue(':id', $idPost, PDO::PARAM_INT);\n\t\t$sql->execute();\n\t\t//retorna o objeto da classe Articolo dessa query\n\t\t//$resultado = $sql->fetchObject('Articolo'); //prende si è stringa o se Articolo::class uguale\n\t\t$resultado = $sql->fetchObject('Articolo');\n\n\t\tif (!$resultado) {//se n encontrar\n\t\t\tthrow new Exception(\"Non è stato trovato nessuno registro nel database!\");\n\t\t}\n\t\treturn $resultado;\n\t}", "title": "" }, { "docid": "185454f75a165725c608b861b5531c45", "score": "0.5447996", "text": "public function loadModel($id) {\n $model = AnalisisCredito::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "title": "" }, { "docid": "0cf3773f89f905f05f5b59993ac071b9", "score": "0.544409", "text": "public function verLocalidadId($ID_ciudad){\n//include_once 'class.conexion.php';\n//$c = new Conexion;\n$sql = \"SELECT ID_localidad , nom_localidad FROM localidad WHERE FK_ciudad = '$ID_ciudad'\";\n $stm = $this->db->prepare($sql);\n $stm->execute();\n $result = $stm->fetchAll(); \n return $result;\n//$r = $c->query($sql);\n//return $r;\n}", "title": "" }, { "docid": "4df161972c1db7843dfa7e7c8b0abe70", "score": "0.5443279", "text": "public function getByPk($pk)\n {\n }", "title": "" }, { "docid": "2ea694069cf1b1f8d5032985632cf455", "score": "0.5442236", "text": "public function primaryKey()\n {\n return 'id';\n }", "title": "" }, { "docid": "12db50e9e2ab52247131bfc6f039893c", "score": "0.54393613", "text": "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `empresa_id`, `empresa_nombre`, `empresa_logo_url`, `empresas_razon_social`, `empresa_rfc`, `empresa_direccion_fiscal`, `empresa_estatus`, `empresa_fecha_alta`, `empresa_usuario_alta`, `empresa_fecha_actualiza`, `empresa_usuario_modifica` FROM `empresas` WHERE `empresa_id` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Empresas();\n $obj->hydrate($row);\n EmpresasPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "title": "" }, { "docid": "ac6c0d48e85d9eaf983f9dc21c85001c", "score": "0.5433598", "text": "function ambil_data_id($id)\n\t\t{\n\t\t\t$this->db->where($this->id,$id);\n\t\t\treturn $this->db->get($this->nama_table)->row();\n\t\t}", "title": "" }, { "docid": "0e775056ba95133bdd34674ee5f34fad", "score": "0.54333764", "text": "function get_datosC()\n {\n $data['id'] = $_REQUEST['txt_id'];\n $data['nombre'] = $_REQUEST['txt_nombre'];\n\n if ($_REQUEST['id'] == \"\") {\n $this->model_c->create($data);\n }\n\n if ($_REQUEST['id'] != \"\") {\n $date = $_REQUEST['id'];\n $this->model_c->update($data, $date);\n }\n\n header(\"Location:index.php?m=verCarreras\");\n }", "title": "" }, { "docid": "4be999a9b7aae78cd659f86f59b7f5cb", "score": "0.54313517", "text": "public function loadModel($id) {\n $model = Colaborador::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, Yii::t('smith', 'A página não existe.'));\n return $model;\n }", "title": "" }, { "docid": "cd56e6306a03c698720aff60d7310266", "score": "0.5431239", "text": "public function consultar($id, $resultType = \\Application\\Constants\\ResultType::OBJETO)\n\t{\n\t\tswitch ($resultType)\n\t\t{\n\t\t\tcase \\Application\\Constants\\ResultType::OBJETO:\n\t\t\t\t$TransportadoraData \t\t = new TransportadoraData();\n\t\t\t\t\n\t\t\t\t$sql = \t' SELECT transportadora.* '.\n\t\t\t\t\t\t' FROM transportadora '.\n\t\t\t\t\t\t' WHERE transportadora.id = :id ';\n\t\t\t\t\n\t\t\t\t$stmt = $this->getEntityManager()->getConnection()->prepare($sql);\n\t\t\t\t$stmt->bindValue(':id',$id);\n\t\t\t\t$stmt->execute();\n\t\t\t\t$row = $stmt->fetch(); //Se utiliza el fecth por que es un registro\n\t\t\t\tif($row){\n\t\t\t\t\t$TransportadoraData->setId\t\t\t ($row['id']);\n\t\t\t\t\t$TransportadoraData->setNombre\t\t ($row['nombre']);\n\t\t\t\t\t$TransportadoraData->setTipo\t\t\t($row['tipo']);\n\t\t\t\t\t$TransportadoraData->setEstado \t\t($row['estado']);\n\t\t\t\t\t$TransportadoraData->setFecIngreso \t($row['fec_ingreso']);\n\t\t\t\t\t$TransportadoraData->setFecModifica \t($row['fec_modifica']);\n\t\t\t\t\t$TransportadoraData->setUsuarioIngId\t($row['usuario_ing_id']);\n\t\t\t\t\t$TransportadoraData->setUsuarioModId\t($row['usuario_mod_id']);\n\t\t\t\t\t$TransportadoraData->setSinronizado\t\t($row['sincronizado']);\n\t\t\t\t\t$TransportadoraData->setFecSincronizado\t($row['fec_sincronizado']);\n\t\t\t\t\n\t\t\t\t\treturn $TransportadoraData;\n\t\t\t\t}else{\n\t\t\t\t\treturn null;\n\t\t\t\t}//end if\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase \\Application\\Constants\\ResultType::MATRIZ:\n\t\t\t\t$sql = \t' SELECT transportadora.*, usuario_ing.username as usuario_ing_user_name, usuario_mod.username as usuario_mod_user_name '.\n\t\t\t\t\t\t' FROM transportadora LEFT JOIN usuario as usuario_ing '.\n\t\t\t\t\t\t' ON usuario_ing.id = transportadora.usuario_ing_id '.\n\t\t\t\t\t\t'\t\t\t\t\t LEFT JOIN usuario as usuario_mod '.\n\t\t\t\t\t\t' ON usuario_mod.id = transportadora.usuario_mod_id '.\t\t\t\t\t\t\n\t\t\t\t\t\t' WHERE transportadora.id = :id ';\n\t\t\t\t\n\t\t\t\t$stmt = $this->getEntityManager()->getConnection()->prepare($sql);\n\t\t\t\t$stmt->bindValue(':id',$id);\n\t\t\t\t$stmt->execute();\n\t\t\t\t$row = $stmt->fetch(); //Se utiliza el fecth por que es un registro\n\t\t\t\treturn $row;\n\t\t\t\tbreak;\n\t\t}//end switch\n\n\n\t}", "title": "" }, { "docid": "574c4cbc8aeb354f786a0297b3f32047", "score": "0.54305226", "text": "function readOne(){\n $query = \"SELECT ID AS id, \n\t\tUSUARIO AS usuario, \n\t\tCONTRASENA AS contrasena, \n\t\tFECHA_CREACION AS fecha_creacion,\n\t\tPERFIL_ID AS perfil_id\n\t\tFROM USUARIO\n WHERE\n id = :id\"\n ;\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n\t$this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n // bind id of product to be updated\n $stmt->bindParam(':id', $this->id);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n // set values to object properties\n $this->usuario = $row['usuario'];\n $this->contrasena = $row['contrasena'];\n $this->fecha_creacion = $row['fecha_creacion'];\n $this->perfil_id = $row['perfil_id'];\n}", "title": "" }, { "docid": "bcf38e9d5edd57ba053b9ec3a7fe16d5", "score": "0.54293096", "text": "function obtenirReqIdFicheFrais() {\r\n\t\t\t$req = \"select visiteur.nom as nom, visiteur.id as id, visiteur.prenom as prenom from visiteur\";\r\n\t\t\t$res = PdoGsb::$monPdo->query($req);\r\n\t\t\t$visiteur = $res->fetchAll();\r\n\t\t\treturn $visiteur;\r\n\t}", "title": "" }, { "docid": "d5de958605dd6134664863de7d664e84", "score": "0.54283917", "text": "function select($id)\r\n{\r\n\r\n$sql = \"SELECT * FROM atividade WHERE id = $id;\";\r\n$result = $this->database->query($sql);\r\n$result = $this->database->result;\r\n$row = $result->fetch_object();\r\n\r\n\r\n$this->id = $row->id;\r\n\r\n$this->nome = $row->nome;\r\n\r\n$this->vagas = $row->vagas;\r\n\r\n$this->valor = $row->valor;\r\n\r\n}", "title": "" }, { "docid": "7c8330318d555a2bb8b6f943f9f37ea8", "score": "0.5426519", "text": "function f_get_row_pk($cod_tabla){\n\t\tglobal \t\t\t\t\t$db;\n\t\t$obj_listbox\t\t\t= new obj_listbox;\n\t\t$sis_genericos\t\t\t= new sis_genericos;\n\n\t\t//=== Obtiene el nombre de la llave primaria de la tabla>>>\n\t\t$query \t\t\t=\"\n\t\tselect \t\t\t* \n\t\tfrom \t\t\tcolumna_tabla_autonoma\n\t\twhere\t\t\tind_pk = 1\n\t\tand\t\t\t\tcod_tabla\t=\t$cod_tabla\";\n\t\t$row\t\t\t= $db->consultar_registro($query);\n\t\treturn $row;\n\t}", "title": "" } ]
50707f4b28e988e99a4d114221eea015
Get all instances of Status
[ { "docid": "dc0f925bcffd7d925130dff115986558", "score": "0.74115866", "text": "public function all()\n {\n return $this->status->all();\n }", "title": "" } ]
[ { "docid": "34b7df04f1368cdd78f138bc359aa068", "score": "0.7060163", "text": "public function getStatuses();", "title": "" }, { "docid": "6179d222faa4080d11bbd4e429177fd9", "score": "0.70081484", "text": "public static function all() {\n\t\tglobal $db;\n\t\t\n\t\t$st = $db->prepare(\"SELECT * FROM status\");\n\t\t\n\t\t$st->execute();\n\t\t\n\t\t// Returns an array of Item objects:\n\t\t$stati = $st->fetchAll(PDO::FETCH_CLASS, \"Status\");\n\t\treturn $stati;\n\t}", "title": "" }, { "docid": "1761ce46292932962e019b77b0aa9989", "score": "0.69403577", "text": "public function loadAllStatuses();", "title": "" }, { "docid": "103e7572b60da924e7c4a89650b762f0", "score": "0.6913997", "text": "public static function getAll($status = 1)\n {\n return self::where('status', $status)->get();\n }", "title": "" }, { "docid": "103e7572b60da924e7c4a89650b762f0", "score": "0.6913997", "text": "public static function getAll($status = 1)\n {\n return self::where('status', $status)->get();\n }", "title": "" }, { "docid": "b9bc7c6f98f5ba96d276b3ad631acd74", "score": "0.6898369", "text": "public function index()\n {\n $statuses = Status::paginate(10);\n return StatusResource::collection($statuses);\n }", "title": "" }, { "docid": "354e72446182fae9f6b91805c6210feb", "score": "0.6878687", "text": "public static function withAllStatus() {\n return with(new static)->newQueryWithoutScope(new StatusScope);\n }", "title": "" }, { "docid": "259ade7f2982d4272b9532e0996b7a02", "score": "0.6810804", "text": "public function findAll() {\n\t\t$data = DB::getInstance()->query(\"SELECT * FROM teststatus\");\n\t\treturn $data->results();\n\t}", "title": "" }, { "docid": "998c311034cbb2c08c0b23872fd987aa", "score": "0.6605412", "text": "public static function getAllStatusinfo() {\r\n\r\n aclCheck('view', 'Access denied');\r\n\r\n // Query database for known statuses\r\n $q = new w2p_Database_Query();\r\n $q->addTable(COrder::_TBL_PREFIKS_ . '_status_info');\r\n $q->addQuery('*');\r\n\r\n return $q->loadList();\r\n }", "title": "" }, { "docid": "9141aa4ade4a417a762ff3576cd5e9d7", "score": "0.65404314", "text": "function getAll()\n {\n $query = $this->db->get('status');\n return $query->result();\n }", "title": "" }, { "docid": "13b1d83ad27ea1a3e5cb40ec28cc2fed", "score": "0.65367174", "text": "public function statuses()\n\t{\n\t\treturn $this->belongsToMany('App\\Status')->withTimestamps();\n\t}", "title": "" }, { "docid": "921b16a93b0582be49fbbaac9a40361a", "score": "0.652132", "text": "public static function fetchAll() {\n\n\t\tglobal $db;\n\n\t\tif ( self::$statuses == null ) {\n\n\t\t\tself::$statuses = array();\n\t\n\t\t\t$sql = \" select s.id, s.name, s.closed,\n\t\t\t\t\t\ti.id as iconID, i.name as iconName, i.filename as iconFile\n\t\t\t\tfrom task_status s\n\t\t\t\t\tleft outer join icons i\n\t\t\t\t\ton i.id = s.icon\n\t\t\t\torder by s.closed, s.name \";\n\t\t\tif ( !$res = $db->query($sql) )\n\t\t\t\tError::fatal( $db->getError(), Error::SYS );\n\t\n\t\t\twhile ( $row = $res->fetch() )\n\t\t\t\tarray_push( self::$statuses, new TaskStatus(\n\t\t\t\t\t$row->id, $row->name, $row->closed,\n\t\t\t\t\t$row->iconID ? new Icon($row->iconID,$row->iconName,$row->iconFile) : false\n\t\t\t\t));\n\n\t\t}\n\n\t\treturn self::$statuses;\n\n\t}", "title": "" }, { "docid": "a06ef059847ed745b8dd3054bac29fc3", "score": "0.6511541", "text": "public function statuses()\n {\n return $this->hasMany('Larabook\\Entities\\Status\\Status')->latest();\n }", "title": "" }, { "docid": "613117f0c12b0350669fae52dc99daa6", "score": "0.6507371", "text": "public function statuses () {\n $list = array () ;\n $result = $this->query(\"SELECT * FROM {$this->database}.dict_status ORDER BY name\") ;\n for ($i = 0, $nrows = mysql_numrows( $result ); $i < $nrows; $i++)\n array_push (\n $list,\n new IrepStatus (\n $this ,\n mysql_fetch_array( $result, MYSQL_ASSOC))) ;\n return $list ;\n }", "title": "" }, { "docid": "beea5b88fa8cd06855a4a541710b2427", "score": "0.64970917", "text": "function GetStatus()\n\t\t{\n\t\t\treturn $this->all;\n\t\t}", "title": "" }, { "docid": "4b0abc2d07329ce5f03583a1b28f2373", "score": "0.64502174", "text": "private function getStates(): array\r\n {\r\n $em = $this->getDoctrine();\r\n $repository = $em->getRepository(Status::class);\r\n\r\n return $repository->findBy([], ['id' => 'ASC']);\r\n }", "title": "" }, { "docid": "879a872dc79d23e52013d5c5af3051ec", "score": "0.6411784", "text": "public function statuses()\n\t{\n\t return $this->hasMany('Status','id','status_id');\n\t}", "title": "" }, { "docid": "55da7f8af8e4dfa964a834f91ba9ee0e", "score": "0.639816", "text": "public function findByStatus(string $status): array;", "title": "" }, { "docid": "42313aaf0134e33b73a36afd53bef2b8", "score": "0.63784415", "text": "public static function getAll()\n {\n return RequestStatus::with('monthRequests', 'yearRequests')->get();\n }", "title": "" }, { "docid": "6aa082cb9adee0aadadca1b763435458", "score": "0.63374764", "text": "public function allStatuses()\n \t{\n \t\treturn ($this->statuses);\n \t}", "title": "" }, { "docid": "34be3ce0282e0a154a9f4b08d085a7de", "score": "0.63256717", "text": "public function getAllStatuses(){\n $db = Zend_Db_Table_Abstract::getDefaultAdapter();\n $select = $db->select()\n ->from('user__status');\n $stmp = $select->query();\n return $stmp->fetchAll();\n }", "title": "" }, { "docid": "d187a83b5654daaeaaa91a36d4778e71", "score": "0.63099015", "text": "public static function getStatuses()\n {\n return self::$statuses;\n }", "title": "" }, { "docid": "d187a83b5654daaeaaa91a36d4778e71", "score": "0.63099015", "text": "public static function getStatuses()\n {\n return self::$statuses;\n }", "title": "" }, { "docid": "d187a83b5654daaeaaa91a36d4778e71", "score": "0.63099015", "text": "public static function getStatuses()\n {\n return self::$statuses;\n }", "title": "" }, { "docid": "d187a83b5654daaeaaa91a36d4778e71", "score": "0.63099015", "text": "public static function getStatuses()\n {\n return self::$statuses;\n }", "title": "" }, { "docid": "70a9b1591ba44b649fa5f29feb2671be", "score": "0.6304169", "text": "public static function getAllActive()\n {\n return self::where('status', '=', SendingServer::STATUS_ACTIVE);\n }", "title": "" }, { "docid": "d22dd009145ab8cdc4ae48404798c298", "score": "0.62611634", "text": "public function lists()\n {\n return $this->statuses;\n }", "title": "" }, { "docid": "d22dd009145ab8cdc4ae48404798c298", "score": "0.62611634", "text": "public function lists()\n {\n return $this->statuses;\n }", "title": "" }, { "docid": "d2b3fa4de345cf31cd695b4ad02e7ae2", "score": "0.62230635", "text": "public function getStatusList()\n {\n return $this->status_list;\n }", "title": "" }, { "docid": "43ecfd10d7eaa9ec78a48b6e64d9bd2d", "score": "0.6202266", "text": "public function allActive()\n {\n return $this->model->where('status', '1')->get();\n }", "title": "" }, { "docid": "5caa8c3317b668714a59dd1d877607b7", "score": "0.6162764", "text": "public function index()\n {\n $serviceStatuses = ServiceStatus::all();\n $total = count($serviceStatuses);\n\n $resource = new Collection($serviceStatuses, new ServiceStatusTransformer($total), 'serviceStatuses');\n // need \"toArray()\" if not toArray() it will error: UnexpectedValueException, because -> createData() return an object.\n return $this->manager->createData($resource)->toArray();\n }", "title": "" }, { "docid": "1774b952c77c642372fd12dad1ce8793", "score": "0.61568403", "text": "public function statuses(): StatusesProxy\n {\n if (!isset($this->statuses)) {\n $this->statuses = new StatusesProxy($this->apiClient);\n }\n\n return $this->statuses;\n }", "title": "" }, { "docid": "7623c21541524c21cb56b64742bcaf4e", "score": "0.6156158", "text": "public function getByStatus($status);", "title": "" }, { "docid": "d6d09ab54075a86fe1603795edd72d5f", "score": "0.6150002", "text": "public function getStatuses()\n {\n return $this->statuses;\n }", "title": "" }, { "docid": "7f9dc10687d0033d09bcff9d318a7558", "score": "0.61308146", "text": "public function getInstances();", "title": "" }, { "docid": "075edab1eb6f19478de1fc253821d31b", "score": "0.6128275", "text": "public function getStatuses()\n {\n return $this->_statuses;\n }", "title": "" }, { "docid": "78d9f059e1dd6e7bd5a958def675579e", "score": "0.6101136", "text": "protected function pollersStatusList()\n {\n $listPoller = array();\n $listConfPoller = $this->pollersList();\n foreach ($listConfPoller as $poller) {\n $listPoller[$poller['id']] = array(\n 'id' => $poller['id'],\n 'name' => $poller['name'],\n 'stability' => 0,\n 'database' => array(\n 'state' => 0,\n 'time' => null\n ),\n 'latency' => array(\n 'state' => 0,\n 'time' => null\n )\n );\n }\n\n /* Get status of pollers */\n $query = 'SELECT instance_id, last_alive, running FROM instances\n WHERE deleted = 0 AND instance_id IN (' . implode(', ', array_keys($listPoller)) . ')';\n\n try {\n $res = $this->pearDBMonitoring->query($query);\n } catch (\\Exception $e) {\n throw new \\RestInternalServerErrorException($e);\n }\n\n while ($row = $res->fetch()) {\n /* Test if poller running and activity */\n if (time() - $row['last_alive'] >= $this->timeUnit * 10) {\n $listPoller[$row['instance_id']]['stability'] = 2;\n $listPoller[$row['instance_id']]['database']['state'] = 2;\n $listPoller[$row['instance_id']]['database']['time'] = time() - $row['last_alive'];\n } elseif (time() - $row['last_alive'] >= $this->timeUnit * 5) {\n $listPoller[$row['instance_id']]['stability'] = 1;\n $listPoller[$row['instance_id']]['database']['state'] = 1;\n $listPoller[$row['instance_id']]['database']['time'] = time() - $row['last_alive'];\n }\n if ($row['running'] == 0) {\n $listPoller[$row['instance_id']]['stability'] = 2;\n }\n }\n /* Get latency */\n $query = 'SELECT n.stat_value, i.instance_id\n FROM nagios_stats n, instances i\n WHERE n.stat_label = \"Service Check Latency\"\n AND n.stat_key = \"Average\"\n AND n.instance_id = i.instance_id\n AND i.deleted = 0\n AND i.instance_id IN (' . implode(', ', array_keys($listPoller)) . ')';\n\n try {\n $res = $this->pearDBMonitoring->query($query);\n } catch (\\Exception $e) {\n throw new \\RestInternalServerErrorException($e);\n }\n\n while ($row = $res->fetch()) {\n if ($row['stat_value'] >= 120) {\n $listPoller[$row['instance_id']]['latency']['state'] = 2;\n $listPoller[$row['instance_id']]['latency']['time'] = $row['stat_value'];\n } elseif ($row['stat_value'] >= 60) {\n $listPoller[$row['instance_id']]['latency']['state'] = 1;\n $listPoller[$row['instance_id']]['latency']['time'] = $row['stat_value'];\n }\n }\n\n return $listPoller;\n }", "title": "" }, { "docid": "96ca2e4242b3b5dbf927b220d01c2259", "score": "0.6085041", "text": "public static function statuses(): array\n {\n return User::statuses();\n }", "title": "" }, { "docid": "6519dfcc9b4aaa3fb39a500df2349cfa", "score": "0.607582", "text": "public function get_by_status($status);", "title": "" }, { "docid": "f79f3df5f7cfe23dab5d8f88a3fb92e5", "score": "0.6075561", "text": "public static function getAllStatuses(): array\n {\n return [\n self::STATUS_ACTIVE,\n self::STATUS_INACTIVE\n ];\n }", "title": "" }, { "docid": "512a2dc0bb33b5f265df29ba04c55f0e", "score": "0.6073774", "text": "public static function getStatuses() {\n\t\treturn static::$vars['status']['values'];\n\t}", "title": "" }, { "docid": "d995100d4796c32f38da20427f4b3cee", "score": "0.6053485", "text": "public function getAllStatuses(): array {\n $res = $this->RCMS->execute('CALL getAllStatuses();');\n\n return $res->fetch_all(MYSQLI_ASSOC) ?? [];\n }", "title": "" }, { "docid": "4b65a0ac65be180906f4fb243ea6ecde", "score": "0.604146", "text": "public static function listing(){\n $course_statuses = Cache::remember('course_status', 900, function()\n {\n return Course_status::lists('name', 'id');\n });\n return $course_statuses;\n }", "title": "" }, { "docid": "6f8223a62deb85009c62975a41c08833", "score": "0.59766984", "text": "public function byStatus($status);", "title": "" }, { "docid": "017bb96eab364c405f1d1d04454e6121", "score": "0.59653455", "text": "function get_all_status()\n {\n $this->db->order_by('id_status', 'desc');\n return $this->db->get('status')->result_array();\n }", "title": "" }, { "docid": "9736c1f133bbfd34ce61592813a220ea", "score": "0.5954745", "text": "function status_list() {\n\t$sql = \"SELECT sid,status FROM statuses ORDER BY status\";\n\treturn $_ENV['dbi']->fetch_all($sql,'array');\n}", "title": "" }, { "docid": "4ebb2b456d138fe78e5c6d96ef0b485b", "score": "0.5931884", "text": "public static function all() {\n return [\n DocumentStatus::CREATED, \n DocumentStatus::PENDING, \n DocumentStatus::INCOMPLETE, \n DocumentStatus::PUBLISHED\n ];\n }", "title": "" }, { "docid": "320e1a0f4e9db09e106f0c6768a64921", "score": "0.5929236", "text": "public function getStatusList()\n {\n $list = [];\n for ($i=0; $i<=2; $i++) {\n $list[$i] = \\Lang::get(\"event.status$i\");\n }\n\n return $list;\n }", "title": "" }, { "docid": "e3c58b29627e698a35cf58fc956afa44", "score": "0.5924797", "text": "function getStatuses(){\r\n\t\t//include DB connection\r\n\t\trequire(__DIR__.\"/../../../330_conn.php\");\r\n\t\t\r\n\t\t$statusQuery = \"select name, sid\r\n\t\t\t\t\t\tfrom status;\";\r\n\t\t\r\n\t\t$status = $dbh->query($statusQuery);\r\n\t\t$statuses = $status->fetchAll(PDO::FETCH_ASSOC);\t\r\n\t\t\r\n\t\treturn $statuses;\r\n\t}", "title": "" }, { "docid": "0dfc0d9251234e6441a14d42dddf15c0", "score": "0.59112906", "text": "public function index()\n {\n $statuses = Status::all();\n return response()->json([\"status\" => true, \"data\" => StatusResource::collection($statuses)], 200, [] , JSON_NUMERIC_CHECK);\n }", "title": "" }, { "docid": "7f544eac664c9a1e380de06d4752bd6e", "score": "0.5901647", "text": "public static function listStatus()\n {\n return [\n self::IN_PROGRESS => 'in progress',\n self::SUCCESS => 'success',\n self::FAILURE => 'failure'\n ];\n }", "title": "" }, { "docid": "4da0ce11c117f335e003553c727aafd7", "score": "0.58992267", "text": "public function all() {\n\t\treturn $this->api->get( $this->_endpoint, array( 'count' => 100 ) );\n\t}", "title": "" }, { "docid": "0c3c68c3bf1e178d1f621ee5476c1782", "score": "0.58953637", "text": "function instances_for_get()\n {\n $this->load->model('coding/Instances_model');\n\n $filter = $this->build_filter($this->get(), array(\n 'code_id', 'message_id', 'user_id', 'task_id', 'itensity', 'flag',\n 'added_from', 'added_to',\n 'itensity_from', 'intensity_to'\n ), true, $this->Instances_model->table);\n\n $points_filter = $this->build_filter($this->get(), array(\n 'time_from', 'time_to',\n 'idx_from', 'idx_to',\n 'participant_id'\n ), false);\n\n $code_filter = $this->build_filter($this->get(), array(\n 'schema_id'\n ), false);\n\n $data = $this->Instances_model->get_all_for_points($filter, $points_filter, $code_filter);\n if ($data !== NULL)\n {\n $this->response($data, 200); // 200 being the HTTP response code\n }\n else\n {\n $this->response(array('error' => 'Instances could not be found'), 404);\n }\n }", "title": "" }, { "docid": "77d075634e32befcc4eeef643c45f7df", "score": "0.5893606", "text": "public function index()\n {\n $status = Status::with(['usuario', 'persona', 'estadoCivil','usuarioPersona', 'tipoPersona', 'discapacidad', 'tipoDiscapacidad', 'personaDiscapacidad', 'parentesco', 'mision', 'personaMision', 'nivelEstudio', 'estudio', 'empleo', 'tipoCargo', 'migracion', 'motivo', 'recurso', 'grupoMigracion', 'transporte', 'sector', 'personaEmpresa', 'jornada', 'remuneracion', 'moneda', 'vivienda', 'ubicacion', 'tipoVivienda', 'servicio', 'viviendaServicio', 'pais', 'estado', 'ciudad', 'rol', 'rolUsuario', 'rolMenu', 'menu', 'usuario', 'status'])->get();\n \n return $status;\n }", "title": "" }, { "docid": "6756c5e32248d469cf0410bc33e16e50", "score": "0.58933866", "text": "private function _loadConnectionListByStatus($status)\r\n {\r\n $connectionList = array();\r\n foreach ($this->_getConnectionList() as $connection)\r\n if (in_array($connection->getStatus(), (array) $status))\r\n $connectionList[] = $connection;\r\n return $connectionList;\r\n }", "title": "" }, { "docid": "1beb34d74395a0a59bba7f7386cb4e9a", "score": "0.58916986", "text": "public function getStatus()\r\n {\r\n \treturn CHtml::listData(JobStatus::model()->findAll(), 'id', 'name');\r\n }", "title": "" }, { "docid": "5265656c2b69e8d5e02d962dc9e6bde1", "score": "0.58887476", "text": "public function allEnabled()\n {\n return $this->getByStatus(true);\n }", "title": "" }, { "docid": "834863f349198c3ea765ef9fba68ab78", "score": "0.5885039", "text": "public function getList(){\r\n \r\n $sql = \"SELECT * FROM ESTADO_RESERVA\";\r\n $reservation_statu = array();\r\n if(!$resultado = pg_Exec($this->conexion, $sql));\r\n\r\n while($row = pg_fetch_array($resultado))\r\n { \r\n $reservation_status = New Reservation_Status();\r\n $reservation_status->setCod_estado_reserva($row[0]);\r\n $reservation_status->setNom_estado_reserva($row[1]);\r\n $reservation_statu[] = $reservation_status;\r\n }\r\n return $reservation_statu;\r\n }", "title": "" }, { "docid": "64b93b6ba786320355f8b1f44a1e3d72", "score": "0.5859036", "text": "public static function getStatusList()\n {\n $droptions = Status::find()->where([ACTIVE => 1])->asArray()->all();\n return ArrayHelper::map($droptions, self::STATUS_ID, self::STATUS_NAME);\n }", "title": "" }, { "docid": "8f39b8a8333149922f666365d5412d72", "score": "0.5842195", "text": "public function listStatusMessages() {\n $path_info = '/status';\n self::setRequestString($path_info);\n return self::callAPI();\n }", "title": "" }, { "docid": "7a9dacfc1c07f03b1d931a056ce79819", "score": "0.5830061", "text": "function get_all_status()\n {\n $this->db->order_by('STATUS_ID', 'desc');\n return $this->db->get('STATUS')->result_array();\n }", "title": "" }, { "docid": "ac57da636ad372e40e5c8a9e2c520a5a", "score": "0.58217984", "text": "public static function getAllActive(){\n return self::getListByExample(new DBExample(array(\n 'active' => 1\n )));\n }", "title": "" }, { "docid": "bfe5dddd0fb0cc97d69bbcc4d198b953", "score": "0.58216035", "text": "public function get_all_status()\n {\n return [\n self::PX_WAIT_STATUS => self::PX_WAIT_LABEL_ADMIN,\n self::PX_ERROR_STATUS => self::PX_ERROR_LABEL_ADMIN,\n self::PX_DONE_STATUS => self::PX_DONE_LABEL_ADMIN,\n self::PX_REJECT_STATUS => self::PX_REJECT_LABEL_ADMIN,\n self::PX_EXPIRED_STATUS => self::PX_EXPIRED_LABEL_ADMIN\n ];\n }", "title": "" }, { "docid": "03a5c8fc2dfaaadd65e01403582adc36", "score": "0.58150536", "text": "function getStatusesArray() {\n\t\t$arr = array();\n\t\tif ($tmp = $this->modx->getCollection('ModStatus')) {\n\t\t\tforeach ($tmp as $v) {\n\t\t\t\t$arr[$v->get('id')] = array('name' => $v->get('name'), 'color' => $v->get('color'));\n\t\t\t}\n\t\t}\n\t\treturn $arr;\n\t}", "title": "" }, { "docid": "2dd8d29f276c4094de22c6db2db6afe3", "score": "0.5811159", "text": "public function get_Finding_Statuses()\n {\n $this->help->select(\"sagacity.findings_status\", null);\n $rows = $this->help->execute();\n $ret = [];\n\n if(is_array($rows) && count($rows) && isset($rows[0])) {\n foreach($rows as $row) {\n $s = new finding_status();\n $s->id = $row['id'];\n $s->status = $row['status'];\n\n $ret[] = $s;\n }\n } elseif(is_array($rows) && count($rows) && isset($rows['id'])) {\n $s = new finding_status();\n $s->id = $rows['id'];\n $s->status = $rows['status'];\n\n $ret[] = $s;\n }\n\n return $ret;\n }", "title": "" }, { "docid": "41e4c7629d6d1651a48c9dc10ab9a05a", "score": "0.58011967", "text": "public function statusClass();", "title": "" }, { "docid": "cc17ff76e5f39fffc5690cd7944b2460", "score": "0.58001494", "text": "public function getAllByStatus($status, $limit = null)\n {\n $query = $this->createQuery()\n ->where('status = ?', $status);\n if ($limit != null) {\n $query->limit($limit);\n }\n return $query->execute();\n }", "title": "" }, { "docid": "ee3792dee6ee532fe70233c6dc0f3a15", "score": "0.5790409", "text": "public function getStatusesForObject($params = array(), $options = array()) {\n $path = \"/status_updates\";\n return $this->client->getCollection($path, $params, $options);\n }", "title": "" }, { "docid": "1a6e3ff8038720ec31e7be1805f5f2a7", "score": "0.5775616", "text": "public function getPing()\n {\n return Ping::all();\n }", "title": "" }, { "docid": "fcd989eb7f2d2dc9bc24981badb1c458", "score": "0.5775594", "text": "public function index()\n {\n // $this->authorize('viewAny', StatusType::class);\n\n $statusTypeType = StatusType::all();\n\n return new StatusTypeCollection($statusType);\n\n }", "title": "" }, { "docid": "f692b8adad6312102e494760eb3474ac", "score": "0.5775568", "text": "public function run()\n {\n $statuses = [\n [\n 'id' => Status::NIEUW,\n 'name' => 'Nieuw',\n 'color_class' => 'bg-black',\n ],\n [\n 'id' => Status::IN_BEHANDELING,\n 'name' => 'In behandeling',\n 'color_class' => 'bg-blue-500',\n ],\n [\n 'id' => Status::KLAAR,\n 'name' => 'Klaar',\n 'color_class' => 'bg-green-500',\n ],\n [\n 'id' => Status::AFGEWEZEN,\n 'name' => 'Afgewezen',\n 'color_class' => 'bg-red-500',\n ],\n ];\n\n Status::truncate();\n\n foreach ($statuses as $status) {\n Status::create($status);\n }\n }", "title": "" }, { "docid": "000a6d629237ae6fb4b6af5b8d84de2a", "score": "0.5770105", "text": "public static function getListStatus($status){\r\n // Deleted array elements for key\r\n $allStatus = [\r\n self::STATUS_NEW => [\r\n self::STATUS_NEW,\r\n self::STATUS_GOOSHAD,\r\n self::STATUS_MOVE,\r\n self::STATUS_DELIVERY,\r\n self::STATUS_PAID,\r\n self::STATUS_COMPLETE,\r\n self::STATUS_CLOSE,\r\n ],\r\n self::STATUS_PROCESS => [\r\n self::STATUS_PROCESS,\r\n self::STATUS_NEW,\r\n self::STATUS_GOOSHAD,\r\n self::STATUS_CLOSE,\r\n ],\r\n self::STATUS_PENDING => [\r\n self::STATUS_NEW,\r\n self::STATUS_PROCESS,\r\n self::STATUS_PENDING,\r\n self::STATUS_MOVE,\r\n self::STATUS_DELIVERY,\r\n self::STATUS_PAID,\r\n self::STATUS_COMPLETE,\r\n self::STATUS_CLOSE,\r\n ],\r\n self::STATUS_GOOSHAD => [\r\n self::STATUS_NEW,\r\n self::STATUS_PROCESS,\r\n self::STATUS_PENDING,\r\n self::STATUS_GOOSHAD,\r\n self::STATUS_CLOSE,\r\n ],\r\n self::STATUS_MOVE => [\r\n self::STATUS_NEW,\r\n self::STATUS_PROCESS,\r\n self::STATUS_PENDING,\r\n self::STATUS_GOOSHAD,\r\n self::STATUS_MOVE,\r\n ],\r\n self::STATUS_DELIVERY => [\r\n self::STATUS_NEW,\r\n self::STATUS_PROCESS,\r\n self::STATUS_PENDING,\r\n self::STATUS_GOOSHAD,\r\n self::STATUS_MOVE,\r\n self::STATUS_DELIVERY,\r\n ],\r\n self::STATUS_PAID => [\r\n self::STATUS_NEW,\r\n self::STATUS_PROCESS,\r\n self::STATUS_PENDING,\r\n self::STATUS_GOOSHAD,\r\n self::STATUS_PAID,\r\n ],\r\n self::STATUS_CANCEL => [\r\n self::STATUS_NEW,\r\n self::STATUS_PROCESS,\r\n self::STATUS_PENDING,\r\n self::STATUS_GOOSHAD,\r\n self::STATUS_MOVE,\r\n self::STATUS_DELIVERY,\r\n self::STATUS_PAID,\r\n self::STATUS_COMPLETE,\r\n self::STATUS_CANCEL,\r\n self::STATUS_CLOSE,\r\n self::STATUS_EMPTY\r\n ],\r\n self::STATUS_CLOSE => [\r\n self::STATUS_NEW,\r\n self::STATUS_PROCESS,\r\n self::STATUS_PENDING,\r\n self::STATUS_GOOSHAD,\r\n self::STATUS_MOVE,\r\n self::STATUS_DELIVERY,\r\n self::STATUS_PAID,\r\n self::STATUS_COMPLETE,\r\n self::STATUS_CANCEL,\r\n self::STATUS_CLOSE,\r\n self::STATUS_EMPTY\r\n ],\r\n self::STATUS_COMPLETE => [\r\n self::STATUS_NEW,\r\n self::STATUS_PROCESS,\r\n self::STATUS_PENDING,\r\n self::STATUS_GOOSHAD,\r\n self::STATUS_MOVE,\r\n self::STATUS_DELIVERY,\r\n self::STATUS_PAID,\r\n self::STATUS_COMPLETE,\r\n self::STATUS_CANCEL,\r\n self::STATUS_CLOSE,\r\n self::STATUS_EMPTY\r\n ],\r\n ];\r\n\r\n if (!isset($allStatus[$status]))\r\n $status = self::STATUS_NEW;\r\n \r\n return array_diff_key(self::$status, array_flip($allStatus[$status]));\r\n }", "title": "" }, { "docid": "ff208e204f4c8eff743fc0a7bceb0d22", "score": "0.57646656", "text": "protected function get_status()\n\t{\n\t\t$params = $this->params;\n\t\tunset($params['status']);\n\n\t\t$is_ajax = $this->request->is_ajax();\n\t\t$url = $this->get_item_url($params);\n\n\t\t$status_list = array();\n\t\t$status_list[] = array(\n\t\t\t'NAME'\t\t=> $this->user->lang('STATUS_ALL'),\n\t\t\t'URL'\t\t=> ($is_ajax) ? str_replace('&amp;', '&', $url) : $url,\n\t\t\t'ACTIVE'\t=> empty($this->status),\n\t\t\t'ID'\t\t=> 'all',\n\t\t);\n\n\t\t// Set up how the URL will look\n\t\t$status_types = array(\n\t\t\t$this->user->lang('STATUS_APPROVED') => 'approved',\n\t\t\t$this->user->lang('STATUS_UNAPPROVED') => 'unapproved',\n\t\t);\n\n\t\tforeach ($status_types as $status_type => $status_type_url)\n\t\t{\n\t\t\t$params['status'] = $status_type_url;\n\t\t\t$url = $this->get_item_url($params);\n\n\t\t\t// Set to active if it's the one currently selected\n\t\t\t$status_list[] = array(\n\t\t\t\t'NAME'\t\t=> $status_type,\n\t\t\t\t'URL'\t\t=> ($is_ajax) ? str_replace('&amp;', '&', $url) : $url,\n\t\t\t\t'ACTIVE'\t=> $this->status == $status_type_url,\n\t\t\t\t'ID'\t\t=> $status_type_url,\n\t\t\t);\n\t\t}\n\n\t\treturn $status_list;\n\t}", "title": "" }, { "docid": "b4c0f9637e75ea0a150208faec4bbf61", "score": "0.5761661", "text": "public static function getStatuses() : array\r\n {\r\n return [\r\n self::getActiveStatusCode(),\r\n self::getDraftStatusCode(),\r\n self::getClosedStatusCode()\r\n ];\r\n }", "title": "" }, { "docid": "73346ea742795dacdf951d5371a1253f", "score": "0.5751761", "text": "public function getInstances()\n {\n return $this->instances;\n }", "title": "" }, { "docid": "73346ea742795dacdf951d5371a1253f", "score": "0.5751761", "text": "public function getInstances()\n {\n return $this->instances;\n }", "title": "" }, { "docid": "559afea31b18dff678ed42b9ddd51356", "score": "0.5735993", "text": "public function findAllActive()\n {\n }", "title": "" }, { "docid": "68372d7d7a7f30a8ed251637be0f8cd2", "score": "0.5732927", "text": "public function getStatusHistory()\n {\n return $this->status_history;\n }", "title": "" }, { "docid": "b5ffa97ce47d50fc72bf7cc8e1e4cfad", "score": "0.5714464", "text": "public function index()\n {\n return $this->successResponse(Service::where(\"status\",true)->get());\n }", "title": "" }, { "docid": "56cc60dcf00bebd6cbbacd016e10c12d", "score": "0.57097566", "text": "public function getStatus(): array;", "title": "" }, { "docid": "333f87b6ed9b88c63d0aba6418714086", "score": "0.5693018", "text": "public static function getStatusList()\n {\n $list = [];\n foreach (static::$statuses as $status) {\n // $list[$status] = l(get_called_class().'.'.$status, [], 'appmultilang');\n $list[$status] = l(get_called_class().'.'.$status, 'leads');\n // alternative => $list[$status] = l(static::class.'.'.$status, [], 'appmultilang');\n }\n\n return $list;\n }", "title": "" }, { "docid": "0a12e1c8377bc95fd9a46dec2354752b", "score": "0.5690395", "text": "public function run()\n {\n $this->disableForeignKeys();\n Status::query()->truncate();\n $statuses = [\n [\n 'name' => 'status_active',\n 'type' => 'user',\n 'class' => 'success',\n ],\n [\n 'name' => 'status_inactive',\n 'type' => 'user',\n 'class' => 'danger',\n ],\n [\n 'name' => 'status_invited',\n 'type' => 'user',\n 'class' => 'purple',\n ],\n [\n 'name' => 'status_open',\n 'type' => 'crm',\n 'class' => 'success',\n ],\n [\n 'name' => 'status_closed',\n 'type' => 'crm',\n 'class' => 'danger',\n ],\n [\n 'name' => 'status_draft',\n 'type' => 'proposal',\n 'class' => 'warning',\n ],\n [\n 'name' => 'status_sent',\n 'type' => 'proposal',\n 'class' => 'primary',\n ],\n [\n 'name' => 'status_accepted',\n 'type' => 'proposal',\n 'class' => 'success',\n ],\n [\n 'name' => 'status_rejected',\n 'type' => 'proposal',\n 'class' => 'danger',\n ],\n [\n 'name' => 'status_no_reply',\n 'type' => 'proposal',\n 'class' => 'info',\n ],\n [\n 'name' => 'status_todo',\n 'type' => 'activity',\n 'class' => 'primary',\n ],\n [\n 'name' => 'status_done',\n 'type' => 'activity',\n 'class' => 'success',\n ],\n [\n 'name' => 'status_open',\n 'type' => 'deal',\n 'class' => 'primary',\n ],\n [\n 'name' => 'status_won',\n 'type' => 'deal',\n 'class' => 'success',\n ],\n [\n 'name' => 'status_lost',\n 'type' => 'deal',\n 'class' => 'danger',\n ],\n ];\n\n Status::query()->insert($statuses);\n\n $this->enableForeignKeys();\n }", "title": "" }, { "docid": "b41ba6de00a9bbe9197b0db9a2969fea", "score": "0.5680536", "text": "public function index()\n {\n $statuses = Status::all();\n return view('admin.nom.status.index')->with('statuses', $statuses);\n }", "title": "" }, { "docid": "fb86f2fabf26039fd78fc4f4ce6759f3", "score": "0.5677792", "text": "public static function getDashboardStatus()\n {\n $data = array();\n\n foreach (self::getAll() as $status) {\n $data['status']['month'][] = [\n 'label' => $status->name,\n 'total' => $status->monthRequests->count(),\n 'backgroundColor' => str_replace(\"<opacity>\", \"0.5\", $status->rgba),\n 'borderColor' => str_replace(\"<opacity>\", \"1\", $status->rgba)\n ];\n $data['status']['year'][] = [\n 'label' => $status->name,\n 'total' => $status->yearRequests->count(),\n 'backgroundColor' => str_replace(\"<opacity>\", \"0.5\", $status->rgba),\n 'borderColor' => str_replace(\"<opacity>\", \"1\", $status->rgba)\n ];\n }\n\n return $data;\n }", "title": "" }, { "docid": "2a67d0a7f4c96db4eb58d6e4083cf5f7", "score": "0.56755674", "text": "public function getAllType($status)\n { \n $query = $this->select();\n $query->setIntegrityCheck(false);\n $query->from('chits_type',array('*'))->where('status =?', $status); \n return $this->fetchAll($query);\n }", "title": "" }, { "docid": "d252d7ba50733a894210fe4344769b33", "score": "0.56742424", "text": "static public function statusesList()\n {\n return [\n self::STATUS_ACTIVE => Yii::t('activeuser_general', 'Active'),\n self::STATUS_BLOCKED => Yii::t('activeuser_general', 'Blocked'),\n self::STATUS_CONFIRM => Yii::t('activeuser_general', 'Confirm'),\n self::STATUS_RESTORE => Yii::t('activeuser_general', 'Restore'),\n ];\n }", "title": "" }, { "docid": "3a66846c53adce076a53781feb55682f", "score": "0.56699157", "text": "public static function getAll($status='open', $admin = false) {\n $user = User::current();\n // Get WHERE clause\n switch( $status ) {\n case 'open': \t\t\n $where = \" IS NULL\";\t\t\n break;\n case 'closed':\t\t\n default:\n $where = \" IS NOT NULL\";\n break;\n }\n \n $owned = ($admin ? '' : \"AND `\".self::TABLE.\"`.`user_id` = \".(int)$user->id);\n\n $query = \"SELECT `trace_id`, `trace_name` FROM `\".self::TABLE.\"`\n WHERE `trace_closed` {$where} {$owned} ORDER BY `trace_opened` DESC\";\n\n $res = DB::query($query);\n\n if (DB::isEmpty($res))\n return false;\n\n $traces_ids = array();\n while ($row = $res->fetch_assoc()) {\n $trace = new Trace();\n $trace = $trace->get($row['trace_id']);\n $traces_ids[$row['trace_id']] = $trace;\n }\n\n return $traces_ids;\n\n }", "title": "" }, { "docid": "74db8317b2350c43ba8d572dfbb55620", "score": "0.5664557", "text": "public function all()\n {\n return $this->model->with('city', 'status')->get();\n }", "title": "" }, { "docid": "176364db8d1e880fe0dbfcf3fa1680dc", "score": "0.5657711", "text": "public function index(): JsonResponse\n {\n return response()->json(StatusResource::collection(Status::all()));\n }", "title": "" }, { "docid": "329bc542705f4679f48d445d2087e319", "score": "0.5647029", "text": "public function listar($status = false)\n {\n if($status != false){\n return \\DB::connection('mysql')->table('feira')->where('status', $status)->get();\n }\n return \\DB::connection('mysql')->table('feira')->get();\n }", "title": "" }, { "docid": "96b096a0d59380765c086e7fdbd61fed", "score": "0.56431615", "text": "public function get_status()\n\t{\n\n\t\tforeach($this->get('rvct_cliente_status') as $keys)\n\t\t{\n\n\t\t\t$this->status[] = $keys;\n\t\t\t\n\t\t}\n\t\treturn $this->status;\n\t}", "title": "" }, { "docid": "3451d797433f272835f29b8799be2d8d", "score": "0.56431264", "text": "public function all()\n {\n return $this->client->get(self::ENDPOINT);\n }", "title": "" }, { "docid": "84fb4b97bc77e0d6f40688eb77be0ad3", "score": "0.56414276", "text": "public function getStatus($status)\n\t{\n\t\treturn $this->get($status);\n\t}", "title": "" }, { "docid": "e3fa9c708cc77b23496e3d4109bd2a29", "score": "0.5639476", "text": "public function status() {\n return $this->belongsToMany('App\\Models\\SharedStat')->withTimestamps();\n }", "title": "" }, { "docid": "5592fcac12b34537e12cbbba7e6df864", "score": "0.56297994", "text": "function getAllByStatus($idWorker, $status) {\r\n $dao = new OrderDAO();\r\n return $dao->getAllByStatus($idWorker, $status);\r\n }", "title": "" }, { "docid": "d2311990334d0480cb9df3ea0c40ddc8", "score": "0.5624056", "text": "public function currentForAllResources()\n {\n $max_age = config('app.days_until_updates_expire');\n $earliest_date = Carbon::now()->subDays($max_age); // The oldest Status that will be displayed\n\n $resources = DB::table('resource_statuses as newest')\n ->leftjoin('resource_statuses as newer', function($join) {\n $join->on('newer.statusable_resource_id','=','newest.statusable_resource_id');\n $join->on('newer.updated_at','>','newest.updated_at');\n })\n ->join('statusable_resources', 'statusable_resources.id', '=', 'newest.statusable_resource_id')\n ->select('newest.*', 'statusable_resources.crew_id', 'statusable_resources.model')\n ->whereNotNull('statusable_resources.crew_id')\n ->whereNull('newer.updated_at')\n ->where('newest.updated_at','>=',$earliest_date)\n ->get();\n\n return (collect($resources))->map(function ($resource) {\n // Format the updated_at date as ISO8601\n $resource->updated_at = (new DateTime($resource->updated_at))->format(DateTime::ATOM);\n \n // Move the 'model' property into a nested property named 'resource' to match \n // the ResourceStatusUpdated event schema. This way, the same frontend logic can be\n // used to handle the API response and events.\n $resource->resource = ['model' => $resource->model];\n return $resource;\n });\n }", "title": "" }, { "docid": "968246869d67448d575dc3dd04a72959", "score": "0.5610661", "text": "final public static function All() {\n $EnumClassName = static::VerifyValidCalledClass(__FUNCTION__);\n static::InitializeIfNot($EnumClassName);\n return array_values(self::$Instances[$EnumClassName]);\n }", "title": "" }, { "docid": "752a5cfe9a576ab4b5ba5962d52d1181", "score": "0.5606463", "text": "public static function getAll() {\n $statues = Statue::All();\n return $statues;\n }", "title": "" }, { "docid": "9792d7cfcb9f30fbd1dd25ba3cfec432", "score": "0.5603178", "text": "private function get_status_tickets($status, $offset='', $count='') {\n global $CFG;\n\n if (is_numeric($status)) {\n $status = get_record('helpdesk_status', 'id', $status);\n }\n\n if (!is_object($status)) {\n error('Invalid status passed to get_status_tickets().');\n }\n\n $sqlas = sql_as();\n $sql = \"SELECT t.*\n FROM {$CFG->prefix}helpdesk_ticket $sqlas t\n JOIN {$CFG->prefix}helpdesk_status $sqlas s\n ON t.status = s.id\n WHERE s.id = {$status->id}\";\n\n $records = get_records_sql($sql, $offset, $count);\n\n foreach($records as $record) {\n $ticket = $this->new_ticket();\n $ticket->set_idstring($record->id);\n $ticket->fetch();\n $tickets[] = $ticket;\n }\n\n return $tickets;\n }", "title": "" }, { "docid": "7a38c8bda88badd0e4d27966daa80725", "score": "0.55892533", "text": "public static function getStatus() {\n return array(\n self::STATUS_INACTIVE => DomainConst::CONTENT00028,\n self::STATUS_ACTIVE => DomainConst::CONTENT00027,\n self::STATUS_COMPLETED => DomainConst::CONTENT00204,\n self::STATUS_SCHEDULE => DomainConst::CONTENT00177,\n );\n }", "title": "" } ]
ac4142470d2943e6735b4532a261214b
Finds image type definition by name and type
[ { "docid": "68a479fbe2e99388231fac52f598dcc9", "score": "0.5808666", "text": "public static function getByNameNType($name, $type = null, $order = 0) {\n\n static $isPassed = false;\n\n // @codingStandardsIgnoreStart\n\n if (!isset(static::$images_types_name_cache[$name . '_' . $type . '_' . $order]) && !$isPassed) {\n $results = Db::getInstance(_EPH_USE_SQL_SLAVE_)->executeS('SELECT * FROM `' . _DB_PREFIX_ . 'image_type`');\n\n $types = ['products', 'categories', 'manufacturers', 'suppliers', 'stores'];\n $total = count($types);\n\n foreach ($results as $result) {\n\n foreach ($result as $value) {\n\n for ($i = 0; $i < $total; ++$i) {\n static::$images_types_name_cache[$result['name'] . '_' . $types[$i] . '_' . $value] = $result;\n }\n\n }\n\n }\n\n $isPassed = true;\n }\n\n $return = false;\n\n if (isset(static::$images_types_name_cache[$name . '_' . $type . '_' . $order])) {\n $return = static::$images_types_name_cache[$name . '_' . $type . '_' . $order];\n }\n\n // @codingStandardsIgnoreEnd\n\n return $return;\n }", "title": "" } ]
[ { "docid": "7a5fe0125bdef04d10aff223d3edae7a", "score": "0.6713525", "text": "public function identifyImageType() { }", "title": "" }, { "docid": "6a4e7639f98076ed2db3c8df1bdb0918", "score": "0.67014873", "text": "function bpi_get_image_type($image_field_name, $node) {\n /*\n * We assume that the image type is the last part of the field name, i.e.\n * field_{{node type}}_{{image type}}\n */\n $pattern = '/field_' . preg_quote($node->type, '/') . '_(?<image_type>.+)/';\n if (preg_match($pattern, $image_field_name, $matches)) {\n return $matches['image_type'];\n }\n return NULL;\n}", "title": "" }, { "docid": "51c0870a9c6219b8b78dd7a5694ce619", "score": "0.64868194", "text": "public function getImageType () {}", "title": "" }, { "docid": "fc1bf57ee08c3626ee32a4689f5a5cd9", "score": "0.64792395", "text": "public function getImageTypes();", "title": "" }, { "docid": "83baf669aa8e5a5c64949d5ce4761c43", "score": "0.62768173", "text": "function getImgType($filename) {\r\n $handle = @fopen($filename, 'r');\r\n\techo $filename;\r\n\t//exit();\r\n if (!$handle)\r\n\t{\r\n\t\techo $filename;\r\n throw new Exception('File Open Error');\r\n\t}\r\n\t\r\n $types = array('jpeg' => \"\\xFF\\xD8\\xFF\",'jpg' => \"\\xFF\\xD9\", 'gif' => 'GIF', 'png' => \"\\x89\\x50\\x4e\\x47\\x0d\\x0a\", 'pdf' => \"%PDF\");\r\n $bytes = fgets($handle, 8);\r\n $found = 'other';\r\n\r\n //echo '<br> type header='.$bytes;\r\n\r\n foreach ($types as $type => $header) {\r\n\t\r\n if (strpos($bytes, $header) === 0) {\r\n $found = $type;\r\n break;\r\n }\r\n }\r\n fclose($handle);\r\n return $found;\r\n}", "title": "" }, { "docid": "1e9ab5879d7913b3c5d45dc2ba88b005", "score": "0.613137", "text": "public function getType($name);", "title": "" }, { "docid": "1e9ab5879d7913b3c5d45dc2ba88b005", "score": "0.613137", "text": "public function getType($name);", "title": "" }, { "docid": "3c1af4e799be13105322fdd9102070a1", "score": "0.61304283", "text": "public function getImageType()\n {\n $imageTypeName = array(\n self::FMPSV16 => 'large_default',\n self::FMPSV15 => 'large_default',\n self::FMPSV14 => 'large'\n );\n $versionName = $imageTypeName[$this->version];\n $imageTypes = ImageType::getImagesTypes();\n foreach ($imageTypes as $type) {\n if ($type['name'] == $versionName) {\n return $type;\n }\n }\n return '';\n }", "title": "" }, { "docid": "3472f34c952c0cc4fde0019dd54febd1", "score": "0.6098228", "text": "private static function getImageTypes()\n {\n $im = new \\Imagick();\n\n\n return $im->queryFormats();\n }", "title": "" }, { "docid": "93c333ed326bcfe40f34ae9e33eab104", "score": "0.60710764", "text": "public function getImageType() {\n\t}", "title": "" }, { "docid": "34aa31d7db8c090a5d7a9e204dec1059", "score": "0.5922199", "text": "function get_type();", "title": "" }, { "docid": "c7f576c47561c12144f7913b8fc8af6a", "score": "0.5866042", "text": "public function getType(string $name): int\n {\n return FFI::vips()->vips_image_get_typeof($this->pointer, $name);\n }", "title": "" }, { "docid": "a8f84fc5a0578863b302bfcfc7eced6b", "score": "0.5860833", "text": "static function determine_filetype($filetype,$ProductImage)\n\t{\n\t\tswitch($filetype)\n\t\t{\n\t\t\tcase 'gif':\n\t\t\t\t$type =\"gif\";\n\t\t\t\treturn new gifImage($ProductImage, $type);\n\t\t\t\tbreak;\n\t\t\tcase 'png':\n\t\t\t\t$type =\"png\";\n\t\t\t\treturn new pngImage($ProductImage, $type);\n\t\t\t\tbreak;\n\t\t\tcase 'jpg':\n\t\t\tcase 'jpeg':\n\t\t\t\t$type =\"jpeg\";\n\t\t\t\treturn new jpegImage($ProductImage, $type);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new Exception(\"Unsupported image type\");\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "9fe6fbf44f61e53a6ec4e70064b5a198", "score": "0.579389", "text": "function getType($typeName);", "title": "" }, { "docid": "90dab0c5f993bc7e86b968f4a3b9eefb", "score": "0.57806647", "text": "public function getImageTypeRepository();", "title": "" }, { "docid": "93bd9a514e9e32c8933c328a0b4d9dd7", "score": "0.5758351", "text": "public function getImageType()\n {\n $data = $this->getData('image_type');\n\n switch($data) {\n case 'image':\n $data = 'Base image';\n break;\n\n case 'small_image':\n $data = 'Small image';\n break;\n\n case 'thumbnail':\n $data = 'Thumbnail';\n break;\n\n case 'media_image':\n $data = 'Swatches';\n break;\n }\n\n return $data;\n }", "title": "" }, { "docid": "86eec6b57e87ae5d192d4c2123e1db09", "score": "0.5722826", "text": "public function getIcon_type() {}", "title": "" }, { "docid": "045b39547f821376a99eab18fbee9e93", "score": "0.56833166", "text": "public function setType ($image_type) {}", "title": "" }, { "docid": "274563afe8f34b1f61a986df2a76424f", "score": "0.56463444", "text": "public function setImageType ($image_type) {}", "title": "" }, { "docid": "26eca7fd9e26972d5c78132aa81acd55", "score": "0.5633068", "text": "function gd_types ()\n{\n return imagetypes();\n}", "title": "" }, { "docid": "cebde0fbc0076a4aa4152ea7b582b22f", "score": "0.5621197", "text": "function fn_get_image_extension($image_type)\r\n{\r\n static $image_types = array (\r\n 'image/gif' => 'gif',\r\n 'image/pjpeg' => 'jpg',\r\n 'image/jpeg' => 'jpg',\r\n 'image/png' => 'png',\r\n 'application/x-shockwave-flash' => 'swf',\r\n 'image/psd' => 'psd',\r\n 'image/bmp' => 'bmp',\r\n );\r\n\r\n return isset($image_types[$image_type]) ? $image_types[$image_type] : false;\r\n}", "title": "" }, { "docid": "b95664ae9681a7182e22e64740aee527", "score": "0.559147", "text": "function ofType($type);", "title": "" }, { "docid": "27d3bfa643b4b83b5d0edbb270ff6a32", "score": "0.5590785", "text": "public function get_type();", "title": "" }, { "docid": "27d3bfa643b4b83b5d0edbb270ff6a32", "score": "0.5590785", "text": "public function get_type();", "title": "" }, { "docid": "a21cbefc9cb5a13c4791f291bc55524b", "score": "0.55750483", "text": "public function findImage($imageName);", "title": "" }, { "docid": "7474846804701e0a367b7674420455ab", "score": "0.5559676", "text": "public function getType($name)\n {\n }", "title": "" }, { "docid": "b11122a1e48cabed7ce28c6c3f4b6cf2", "score": "0.5552637", "text": "abstract function getType();", "title": "" }, { "docid": "ac769ad94d082afaa52b70c902d52925", "score": "0.55369633", "text": "public function find_list_type_image($type_id) {\n $condition = array('id' => $type_id);\n $rst = $this->db->select('icon');\n $this->db->where($condition);\n $query = $this->db->get('list_types');\n return $query->row_array();\n }", "title": "" }, { "docid": "05670606ed08de247c45066b52aa8709", "score": "0.55358857", "text": "public function getImageType()\n {\n return $this->image_type;\n }", "title": "" }, { "docid": "3f71b01a5b7235896e35f96176a68e7a", "score": "0.55328465", "text": "function check_image($image_name = null, $type = null)\n {\n// here type == folder name\n if (!empty($image_name)) {\n $image = realpath('data/' . $type . '/') . \"/\" . $image_name;\n if (file_exists($image)) {\n return $image_name;\n } else {\n return $type . '_default.png';\n }\n } else {\n return $type . '_default.png';\n }\n }", "title": "" }, { "docid": "8cdb34d7405eb35203dea929ce2e5535", "score": "0.5518869", "text": "public function setType($image_type) {\n\t}", "title": "" }, { "docid": "19b8a2b4ccd82df02b80b054b3ff4955", "score": "0.5507981", "text": "public static function getType();", "title": "" }, { "docid": "384ea343c75b8edafd0e1f2cd9752774", "score": "0.55041116", "text": "function exif_image_type ($filename)\n{\n return exif_imagetype($filename);\n}", "title": "" }, { "docid": "cbee141af032c7fe0ead34a6a9d688a6", "score": "0.55010766", "text": "public function getImageByType($type) {\n return $this->getImages(array($type))->first();\n }", "title": "" }, { "docid": "b2c0a5abacd5d5821ee3903f19a29179", "score": "0.5472175", "text": "public function doRecognise($typeStr);", "title": "" }, { "docid": "d7077d01126844f319af376e6c965abd", "score": "0.54681623", "text": "function bpi_get_image_display_name($image_type) {\n $types = array(\n 'body' => t('Inline image'),\n 'list_image' => t('List image'),\n 'title_image' => t('Title image'),\n );\n\n return isset($types[$image_type])\n ? $types[$image_type]\n : t('@image_type', array('@image_type' => check_plain($image_type)));\n}", "title": "" }, { "docid": "d3b8483319143582ef5b1fe8111c7ea2", "score": "0.5438156", "text": "private function checkType() {\n\t\tif (!$this->exists()) {\n\t\t\treturn NULL;\n\t\t}\n\n\t\tif ($this->local) { // local file\n\t\t\t$info = pathinfo($this->file);\n\t\t\t$type = (isset($info['extension']))? $info['extension'] : '';\n\t\t\t$groups = self::$extGroups;\n\t\t} else { // remote file\n\t\t\tlist($type, $encoding) = $this->getContentType($this->file);\n\t\t\t$groups = self::$mimeGroups;\n\t\t\t$this->encoding = strtoupper($encoding); // encoding\n\t\t}\n\n\t\t// link check\n\t\tif ($type == 'link') {\n\t\t\t$this->link = $this->followLink($this->file);\n\t\t\t$type = $this->type;\n\t\t}\n\n\t\t// extension groups\n\t\tforeach ($groups as $group => $types) {\n\t\t\tif (in_array($type, $types)) {\n\t\t\t\t$type = $group;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn $type;\n\t}", "title": "" }, { "docid": "5f7cf4e3261f76a4fb45cec459da5e71", "score": "0.5413317", "text": "function getImageMimeType();", "title": "" }, { "docid": "af0db00ca928387ff8c91a92ab3650a8", "score": "0.5405431", "text": "function fileTypeImage($file)\r\n\t{\r\n\t\t$filename = explode('.', $file);\r\n\t\t$max = count($filename);\t\t\r\n\t\t$ext = strtolower($filename[($max-1)]);\r\n\t\t\r\n\t\tif($ext == 'exe') return 'binary';\r\n\t\telse if($ext == 'zip' or $ext == 'rar') return 'compressed';\r\n\t\telse if($ext == 'bmp' or $ext == 'tif' or $ext == 'ico') return 'image1';\r\n\t\telse if($ext == 'gif' or $ext == 'jpg' or $ext == 'jpeg' or $ext == 'png') return 'image2';\r\n\t\telse if($ext == 'avi' or $ext == 'mpg' or $ext == 'mpeg' or $ext == 'divx' or $ext == 'wmv') return 'movie';\r\n\t\telse if($ext == 'pdf') return 'pdf';\r\n\t\telse if($ext == 'php') return 'php';\r\n\t\telse if($ext == 'js' or $ext == 'cmd' or $ext == 'bat' or $ext == 'xml' or $ext == 'asp') return 'script';\r\n\t\telse if($ext == 'gz' or $ext == 'tgz' or $ext == 'bz2' or $ext == 'tbz') return 'tar';\r\n\t\telse if($ext == 'txt' or $ext == 'doc' or $ext == 'odt') return 'text';\r\n\t\telse return 'unknown';\r\n\t}", "title": "" }, { "docid": "22331718a9b0b8f478173f82f14e68f8", "score": "0.53967756", "text": "static function getImageTypes () {\n return [\n [\n self::IMAGE_PROFILE_ID,\n self::IMAGE_PROFILE\n ],\n [\n self::IMAGE_LEAGUE_ID,\n self::IMAGE_LEAGUE\n ],\n [\n self::IMAGE_COVER_ID,\n self::IMAGE_COVER\n ],\n [\n self::IMAGE_HIDDEN_ID,\n self::IMAGE_HIDDEN\n ],\n [\n self::IMAGE_ARCHIVED_ID,\n self::IMAGE_ARCHIVED\n ],\n [\n self::IMAGE_ARTICLE_ID,\n self::IMAGE_ARTICLE\n ]\n ];\n }", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.53871876", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.53871876", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.53871876", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.53871876", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.53871876", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.53871876", "text": "abstract public function getType();", "title": "" }, { "docid": "2e00bf42d674b64b85f48cea9f9afb2a", "score": "0.53871876", "text": "abstract public function getType();", "title": "" }, { "docid": "db64655c6c7428a18dc8a93a309d3769", "score": "0.53696615", "text": "protected function _validatesTypes()\n {\n // Verifica que sea un archivo de imagen\n if (!$this->_imgInfo) return FALSE;\n\n foreach ($this->_types as $type) {\n if ($this->_imgInfo['mime'] == \"image/$type\") return TRUE;\n }\n\n return FALSE;\n }", "title": "" }, { "docid": "19b82d1eeff98604804fd51dc4ecf405", "score": "0.53670204", "text": "private function selectType($type=''){\n\t\t\tswitch(strtolower($type)){\n\t\t\t\tcase \"gif\": return [\"image/gif\", \"gif\"];\n\t\t\t\tcase \"png\": return [\"image/png\", \"png\"];\n\t\t\t\tdefault: \t\treturn [\"image/jpeg\", \"jpg\"];\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "c2e9712775f285bf846bb1a12f033322", "score": "0.5365186", "text": "private function find_post_type( $name, $type, $types, $date_snippet, $page_first ) {\n\t\t$ret = array( $name, $type, false );\n\t\t$where = $this->wpdb->prepare( 'post_name = %s ', $name );\n\t\t$where .= \" AND post_type IN ('\" . implode( \"', '\", $types ) . \"')\";\n\t\t$where .= $date_snippet;\n\t\t/** @var \\stdClass $res */\n\t\t$res = $this->wpdb->get_row(\n\t\t\t\"\n\t\t\t\t\t\t\t\t\t\t SELECT post_type, post_name\n\t\t\t\t\t\t\t\t\t\t FROM {$this->wpdb->posts} p\n\t\t\t\t\t\t\t\t\t\t LEFT JOIN {$this->wpdb->prefix}icl_translations wpml_translations\n\t\t\t\t\t\t\t\t\t\t\tON wpml_translations.element_id = p.ID\n\t\t\t\t\t\t\t\t\t\t\t AND CONCAT('post_', p.post_type) = wpml_translations.element_type\n\t\t\t\t\t\t\t\t\t\t AND \" . $this->query_filter->in_translated_types_snippet( false, 'p' ) . \"\n\t\t\t\t\t\t\t\t\t\t WHERE $where\n\t\t\t\t\t\t\t\t\t\t AND ( post_status = 'publish'\n\t\t\t\t\t\t\t\t\t\t OR ( post_type = 'attachment'\n\t\t\t\t\t\t\t\t\t\t AND post_status = 'inherit' ) )\n\t\t\t\t\t\t\t\t\t\t \" . $this->order_by_type_and_language_snippet( (bool) $date_snippet, $page_first ) . '\n\t\t\t\t\t\t\t\t\t LIMIT 1'\n\t\t);\n\t\tif ( (bool) $res === true ) {\n\t\t\t$ret = array( $res->post_name, $res->post_type, true );\n\t\t}\n\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "120ebd2f53c8955a0763927297cdc97d", "score": "0.5361988", "text": "#[Pure]\nfunction image_type_to_mime_type(int $image_type): string {}", "title": "" }, { "docid": "0d18c4f6abb00c2607b31f2f7fb10674", "score": "0.535953", "text": "protected function getTypeByName($name)\n {\n foreach ($this->smartNames as $type => $names) {\n if (in_array($name, $names, true)) {\n return $type;\n }\n }\n\n if (substr($name, -3) === '_id') {\n return 'Integer';\n }\n }", "title": "" }, { "docid": "97fc024ac2dfe3618c2a2fe29bfdbea1", "score": "0.5351871", "text": "function zp_image_types($quote) {\n\tglobal $_zp_extra_filetypes;\n\t$typelist = $quote.'images'.$quote.','.$quote.'_images'.$quote.',';\n\t$types = array_unique($_zp_extra_filetypes);\n\tforeach ($types as $type) {\n\t\t$typelist .= $quote.strtolower($type).'s'.$quote.',';\n\t}\n\treturn substr($typelist, 0, -1);\n}", "title": "" }, { "docid": "ab3181c7f104d441c96b919596a64d0d", "score": "0.53497314", "text": "function codaserver_describe_type($resource_identifier, $type_name) {\r\n\tif (empty($type_name)) {\r\n\t\tthrow new Exception('Type name must be specified');\r\n\t}\r\n\treturn codaserver_query($resource_identifier, 'DESCRIBE TYPE '.$type_name);\r\n}", "title": "" }, { "docid": "b3d66494b5042d2be806d8a2fbf9d34a", "score": "0.53451896", "text": "function DbGetProductImageType($simplexml){\n $samplexml = simplexml_load_string($simplexml);\n $product_id = $samplexml->product_id;\n \n $sql = \"SELECT img_type FROM product WHERE product_id = $product_id\";\n $query = $this->conn->query($sql);\n $row = $query->fetch(PDO::FETCH_ASSOC);\n \n $xml = '<product>';\n $xml = $xml.'<img_type>'.$row['img_type'].'</img_type>';\n $xml = $xml.'</product>'; \n \n return $xml;\n }", "title": "" }, { "docid": "278cfe7d6a3f67776b0395d2158cb55d", "score": "0.53381455", "text": "function dbwp5_fileType($fileType = NULL){\n $result = '';\n $arr = array(\n 'png' => 'image/png',\n 'jpg' => 'image/jpeg',\n 'gif' => 'image/gif',\n 'bmp' => 'image/bmp',\n 'tif' => 'image/tiff',\n 'svg' => 'image/svg+xml',\n );\n\n foreach ($arr as $key => $value) {\n if($value == $fileType){\n $result = $key;\n }\n }\n\n return $result;\n}", "title": "" }, { "docid": "4cf6080796ac70e399e59a4d1874c672", "score": "0.5320804", "text": "public static function typeFromExtension($ext)\n\t{\n\t\tswitch ($ext) {\tcase('jpg'): case('jpeg'): return Image::JPG;\n\t\t\t\tcase('gif'): return Image::GIF;\n\t\t\t\tcase('png'): return Image::PNG;\n\t\t\t\tcase('bmp'): return Image::BMP; }\n\t\treturn null;\n\t}", "title": "" }, { "docid": "064a13a0bde9adfb0905aa7e31eddd5a", "score": "0.53102136", "text": "public static function getTypeFromMimeMapping ($mimeType, $filename) {\n\n if ($mimeType == \"directory\") {\n return \"folder\";\n }\n\n $type = \"unknown\";\n\n $mappings = array(\n \"image\" => array(\"/image/\", \"/\\.eps$/\", \"/\\.ai$/\", \"/\\.svgz$/\", \"/\\.pcx$/\", \"/\\.iff$/\", \"/\\.pct$/\", \"/\\.wmf$/\"),\n \"text\" => array(\"/text/\"),\n \"audio\" => array(\"/audio/\"),\n \"video\" => array(\"/video/\"),\n \"document\" => array(\"/msword/\",\"/pdf/\",\"/powerpoint/\",\"/office/\",\"/excel/\",\"/opendocument/\"),\n \"archive\" => array(\"/zip/\",\"/tar/\")\n );\n\n foreach ($mappings as $assetType => $patterns) {\n foreach ($patterns as $pattern) {\n if(preg_match($pattern,$mimeType . \" .\". File::getFileExtension($filename))) {\n $type = $assetType;\n break;\n }\n }\n\n // break at first match\n if($type != \"unknown\") {\n break;\n }\n }\n\n return $type;\n }", "title": "" }, { "docid": "f3932b5fc7013b4ac921e37c3b64fca8", "score": "0.52938306", "text": "protected abstract function getType();", "title": "" }, { "docid": "2b9cee6fed1ed7e64717e1b8dd90e227", "score": "0.52881414", "text": "function ext2type( $ext2type = [] )\n{\n\tif ( isset( $ext2type['image'] ) && ! in_array( 'svg', $ext2type['image'] ) ) {\n\t\t$ext2type['image'][] = 'svg';\n\t}\n\n\treturn $ext2type;\n}", "title": "" }, { "docid": "cdb5a18ca16fadfb55738120994acfa6", "score": "0.5287617", "text": "public function typeExists($type);", "title": "" }, { "docid": "51b40b0b706e23133e7374833ddceb17", "score": "0.5280313", "text": "function get_dctype_id_by_name($type_name)\n\t{\n\t\t$type_arr=explode(' ', $type_name);\n\t\t\n\t\t$type=NULL;\n\t\t\n\t\tif (!$type_arr)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tforeach($type_arr as $str)\n\t\t{\n\t\t\t$str=trim($str);\n\t\t\tif ($str[0]=='[' && $str[strlen($str)-1]==']')\n\t\t\t{\n\t\t\t\t$type=$str;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Type not found\n\t\tif ($type==NULL)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\t//search db\n\t\t$this->db->select('id'); \n\t\t$this->db->like('title', $type); \n\t\t$result= $this->db->get('dctypes')->row_array();\n\t\t\n\t\tif ($result)\n\t\t{\n\t\t\treturn $result['id'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn 0;\n\t\t}\t\n\t}", "title": "" }, { "docid": "5e0b1d22dcfcfaa42c4776377a7b6a04", "score": "0.5271837", "text": "public function setImageType($image_type) {\n\t}", "title": "" }, { "docid": "784b9b911ab4be48c3b9c16fca8f1a60", "score": "0.52603716", "text": "public function getTypeOfType();", "title": "" }, { "docid": "b75a0e0aa2d7f39711ad3f48a37672c4", "score": "0.52558273", "text": "public static function typeAlreadyExists($typeName) {\n\n if (!Validate::isImageTypeName($typeName)) {\n die(Tools::displayError());\n }\n\n Db::getInstance(_EPH_USE_SQL_SLAVE_)->executeS(\n (new DbQuery())\n ->select('`id_image_type`')\n ->from('image_type')\n ->where('`name` = \\'' . pSQL($typeName) . '\\'')\n );\n\n return Db::getInstance()->NumRows();\n }", "title": "" }, { "docid": "bf0ff21d4e897aa8ac7c56ab81e4fd32", "score": "0.5254563", "text": "protected final function load_function($type) {\n switch ($type) {\n case 1:\n return 'imagecreatefromgif';\n case 2:\n return 'imagecreatefromjpeg';\n case 3:\n return 'imagecreatefrompng';\n }\n \n return false;\n }", "title": "" }, { "docid": "b39790ea78b6bad8d8a72b5bef8448b6", "score": "0.52473384", "text": "public function getType()\n {\n if (($this->name === 'php') || (substr($this->name, 0, 4) === 'ext-')) {\n return 'platform';\n }\n\n if (isset($this->data['type'])) {\n return $this->data['type'];\n }\n\n return 'library';\n }", "title": "" }, { "docid": "b65e1b5034bf323cbb7799e131ac5d9b", "score": "0.5225451", "text": "protected function getImageType($imagePath)\n {\n $type = strtolower(substr(strrchr($imagePath, \".\"), 1));\n if (stristr($type, '?')) {\n $type = stristr($type, '?', true);\n }\n if (array_search($type, $this->allowedTypes) === false) {\n list($width, $height, $typeConst) = getimagesize($imagePath);\n\n return image_type_to_extension($typeConst, false);\n }\n\n return $type;\n }", "title": "" }, { "docid": "1782652228e6aabc4ea8f70df01620b8", "score": "0.5215404", "text": "public function metadata($type);", "title": "" }, { "docid": "a7fd276defee21e322ddc1234a522194", "score": "0.51973134", "text": "protected function findType(){\n \n // canary\n if(empty($this->rdocblock)){ return ''; }//if\n \n $type = '';\n \n if($this->reflection instanceof \\ReflectionProperty){\n \n if($type = $this->rdocblock->getTag('var')){\n \n // var tags can be in the form: type desc, so get rid of the desc...\n $type = preg_split('#\\s+#',$type,2);\n $type = $type[0];\n \n }//if\n \n }else{\n \n throw new \\DomainException('TBI for other Reflection types');\n \n }//if/else\n \n return $type;\n \n }", "title": "" }, { "docid": "eee7783cf623d9898780d9e01388b205", "score": "0.5196267", "text": "public function hasType($name);", "title": "" }, { "docid": "da13d753dd7e4e95e2d5e47d9b46df6f", "score": "0.5193443", "text": "function get_dcformat_id_by_name($type_name)\n\t{\n\t\t$type_arr=explode(' ', $type_name);\n\n\t\tif (!$type_arr)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\t$type=NULL;\n\t\tforeach($type_arr as $str)\n\t\t{\n\t\t\t$str=trim($str);\n\t\t\tif (isset($str[0]))\n\t\t\t{\n\t\t\t\tif ($str[0]=='[' && $str[strlen($str)-1]==']')\n\t\t\t\t{\n\t\t\t\t\t$type=$str;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Type not found\n\t\tif ($type==NULL)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\t//search db\n\t\t$this->db->select('id'); \n\t\t$this->db->like('title', $type); \n\t\t$result= $this->db->get('dcformats')->row_array();\n\t\t\n\t\tif ($result)\n\t\t{\n\t\t\treturn $result['id'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn 0;\n\t\t}\t\n\t}", "title": "" }, { "docid": "1322dfe88d7ad79b253cad13f10cc579", "score": "0.5189318", "text": "function getImgFileType(){\n\t\treturn $this->$TipoImg;\n\t}", "title": "" }, { "docid": "bfba3a726dc8359db89b20a01c0beaa6", "score": "0.51816314", "text": "abstract public static function getType(): string;", "title": "" }, { "docid": "83fe53f6e2ca30ff5244b0bb6f8ebd42", "score": "0.51762396", "text": "private function generate_types($local_url=NULL)\r\n\t{\r\n\t\t// UserID is used to generate the url for the image\r\n\t\t$user = Auth::instance()->get_user();\r\n\r\n\t\t// retrieve all active image types to generate\r\n\t\t$types = ORM::factory('Media_Imagetype')->where('active','=',1)->find_all();\r\n\r\n\t\t// If local path is not provided the image will be pulled from the url in order to have a local copy to manipulate\r\n\t\t$image = $local_url==NULL ? $this->pull_to_local($this->original_url) : Image::factory($local_url);\r\n\r\n\t\t// Loop through types and generate image for each\r\n\t\tforeach($types as $type)\r\n\t\t{\r\n\t\t\t// Image must be cloned so that resizing does not alter the original object\r\n\t\t\t$this_img = clone($image);\r\n\r\n\t\t\t// This is where we will temporarily store the new image before we upload to s3\r\n\t\t\t$local_path = DOCROOT . '../files_temp/' . md5(rand()) . '.' . $type->img_extension;\r\n\r\n\t\t\t// short side shrink means that it will only shrink the shorter side to match the dimensions.\r\n\t\t\t// this is good for instances where it needs to fit into a square and you want it to be natural\r\n\t\t\t// width or height.\r\n\t\t\tif($type->short_side_shrink)\r\n\t\t\t{\r\n\t\t\t\t// because the db col can be null we also have to check to make sure > 0\r\n\t\t\t\tif((int)$type->height > 0 || (int)$type->width > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tif($image->height > $image->width)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(((int)$type->width > 0 && $type->width < $image->width))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// If the height or width is blank in the database, NULL will be passed to the function so it is ignored\r\n\t\t\t\t\t\t\t$this_img->resize(\r\n\t\t\t\t\t\t\t\t$type->width != '' ? $type->width : NULL,\r\n\t\t\t\t\t\t\t\tNULL,\r\n\t\t\t\t\t\t\t\tImage::AUTO // this is the resizing instruction\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\telseif($image->width > $image->height)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif( (int)$type->height > 0 && $type->height < $image->height )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// If the height or width is blank in the database, NULL will be passed to the function so it is ignored\r\n\t\t\t\t\t\t\t$this_img->resize(\r\n\t\t\t\t\t\t\t\tNULL,\r\n\t\t\t\t\t\t\t\t$type->height != '' ? $type->height : NULL,\r\n\t\t\t\t\t\t\t\tImage::AUTO // this is the resizing instruction\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\t// if short side shrink is false then it will shrink both sides to match the dimension. This could mean that\r\n\t\t\t// a very wide image ends up having a hight way under the called for dimension or a very long image has a width\r\n\t\t\t// way under the called for dimension. This is better for instances where we want to display the entire image.\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif(((int)$type->width > 0 && $type->width < $image->width) || ((int)$type->height > 0 && $type->height < $image->height))\r\n\t\t\t\t{\r\n\t\t\t\t\t// If the height or width is blank in the database, NULL will be passed to the function so it is ignored\r\n\t\t\t\t\t$this_img->resize(\r\n\t\t\t\t\t\t$type->width != '' ? $type->width : NULL,\r\n\t\t\t\t\t\t$type->height != '' ? $type->height : NULL,\r\n\t\t\t\t\t\tImage::AUTO // this is the resizing instruction\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// Save with new quality\r\n\t\t\t$this_img->save($local_path,$type->quality);\r\n\r\n\t\t\t// Delete any existing links\r\n\t\t\tDB::delete('image_type_link')->where('images_id','=',$this->id)->and_where('image_types_id','=',$type->id)->execute();\r\n\r\n\t\t\t// Set up the image type link and set all relevant properties\r\n\t\t\t$this_type = ORM::factory('Media_Imagetypelink');\r\n\t\t\t$this_type->image_types_id = $type->id;\r\n\t\t\t$this_type->images_id = $this->id;\r\n\t\t\t$this_type->width = $this_img->width;\r\n\t\t\t$this_type->height = $this_img->height;\r\n\t\t\t$this_type->file_size_bytes = filesize($local_path);\r\n\t\t\t$this_type->url = s3::upload($local_path,$user->id); // upload to s3 and set new url\r\n\t\t\t$this_type->mime = $this_img->mime;\r\n\t\t\t$this_type->save();\r\n\r\n\t\t\ttry{\r\n\t\t\t\t// Delete the temporary file\r\n\t\t\t\tunlink($local_path);\r\n\t\t\t}\r\n\t\t\tcatch(ErrorException $e)\r\n\t\t\t{\r\n\r\n\t\t\t}\r\n\r\n\r\n\t\t\t// Unset all variables for use in the next iteration\r\n\t\t\tunset($this_img);\r\n\t\t\tunset($this_type);\r\n\t\t\tunset($local_path);\r\n\t\t\tif($local_url !== NULL) unset($local_url);\r\n\t\t}\r\n\r\n\t\t// Clean up locally pulled file (if it was not already local\r\n\t\tif($local_url===NULL) unlink($image->file);\r\n\t\tunset($image);\r\n\r\n\t\treturn $this;\r\n\r\n\t}", "title": "" }, { "docid": "f1c74ce38badc2252c6b68444e2497af", "score": "0.51712406", "text": "function getImageTypeExtension($file)\n {\n $type = _ml_strtolower($file['type']);\n $ext = false;\n switch ($type)\n {\n case 'image/gif':\n $ext = \"gif\";\n break;\n case 'image/jpeg':\n case 'image/jpg':\n case 'image/jpe':\n case 'image/jfif':\n case 'image/pjpeg':\n case 'image/pjp':\n $ext = \"jpg\";\n break;\n case 'image/png':\n case 'image/x-png':\n $ext = \"png\";\n break;\n default:\n $ext = false;\n break;\n }\n return $ext;\n }", "title": "" }, { "docid": "75f86f8cb47635fa5e9678c88d828f5f", "score": "0.51646096", "text": "function getImageType()\n {\n return is_null($this->_sImageType) ? NULL : (string) $this->_sImageType;\n }", "title": "" }, { "docid": "e4e37edbed918406701fcba54b875ed6", "score": "0.5164517", "text": "private function _getImgType() {\n if( $this->debug ) $this->_log('---------- Check if image is Raid Announce ----------');\n $image = imagecreatefromjpeg($this->image_path);\n \n $rgb = imagecolorsforindex($image, imagecolorat($image, $this->coordinates->forImgTypeEgg()->x, $this->coordinates->forImgTypeEgg()->y ));\n if( $this->debug ) $this->_log('Test pixel at x:'.$this->coordinates->forImgTypeEgg()->x.' & y:'.$this->coordinates->forImgTypeEgg()->y);\n if( $this->debug ) $this->_log('Result : R:'.$rgb['red'].' G:'.$rgb['green'].' B:'.$rgb['blue']);\n if( \n ( $rgb['red'] > 230 && $rgb['red'] < 255 )\n && ( $rgb['green'] > 130 && $rgb['green'] < 145 ) \n && ( $rgb['blue'] > 144 && $rgb['blue'] < 154 ) \n ) {\n if( $this->debug ) $this->_log('Great ! Img seems to include an egg');\n return 'egg';\n } \n \n /*\n //EGG step 1\n $rgb = imagecolorsforindex($image, imagecolorat($image, $this->image_width * 0.5, $this->image_height *0.1953 ));\n if( $this->debug ) $this->_log('Test pixel at x:'.$this->image_width * 0.5.' & y:'.$this->image_height *0.1953);\n if( $this->debug ) $this->_log('Result : R:'.$rgb['red'].' G:'.$rgb['green'].' B:'.$rgb['blue']);\n if( \n ( $rgb['red'] > 245 && $rgb['red'] < 255 )\n && ( $rgb['green'] > 130 && $rgb['green'] < 140 ) \n && ( $rgb['blue'] > 144 && $rgb['blue'] < 154 ) \n ) {\n if( $this->debug ) $this->_log('Great ! Img seems to include an egg');\n return 'egg';\n } \n \n //EGG step 2\n $rgb = imagecolorsforindex($image, imagecolorat($image, $this->image_width * 0.5, $this->image_height *0.21 ));\n if( $this->debug ) $this->_log('Test pixel at x:'.$this->image_width * 0.5.' & y:'.$this->image_height *0.21);\n if( $this->debug ) $this->_log('Result : R:'.$rgb['red'].' G:'.$rgb['green'].' B:'.$rgb['blue']);\n if( \n ( $rgb['red'] > 245 && $rgb['red'] < 255 )\n && ( $rgb['green'] > 130 && $rgb['green'] < 140 ) \n && ( $rgb['blue'] > 144 && $rgb['blue'] < 154 ) \n ) {\n if( $this->debug ) $this->_log('Great ! Img seems to include an egg');\n return 'egg';\n }*/\n \n if( $this->debug ) $this->_log('IMG does not seem to be an egg. Trying to check if it includes a pokemon');\n $result = $this->_isPokemonImg();\n if( $result == true ) {\n if( $this->debug ) $this->_log('Great ! Img seems to include a pokemon');\n return 'pokemon'; \n }\n if( $this->debug ) $this->_log('Img does not seem to be a raid announce');\n $this->result->error = 'Img does not seem to be a raid announce';\n return false; \n }", "title": "" }, { "docid": "51640d8d43c7581c9a85b90b96bf0d09", "score": "0.5146333", "text": "function getImage($a_name, $a_type = \"\", $a_obj_id = \"\")\n\t{\n\t\treturn ilUtil::getImagePath($a_name);\n\t}", "title": "" }, { "docid": "8cef2fa352b044780e5303cd93ee98e8", "score": "0.51377165", "text": "public static function getType(): string;", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" }, { "docid": "00c2a42cf609a705869167ade1aea3c9", "score": "0.5128391", "text": "public function getType();", "title": "" } ]
eae59aeff01f963d63ac9be02db254b5
Add a validator to this field
[ { "docid": "87f1c597c911fd38ef9c642c4c7a4155", "score": "0.6597953", "text": "public function AddValidator( in4mlValidator $validator ){\n\t\t$this->validators[] = $validator;\n\t}", "title": "" } ]
[ { "docid": "357c77eedfeb0dcebbd69fa76d72207e", "score": "0.7634242", "text": "public function add_validator( ExtendedValidatorInterface $validator );", "title": "" }, { "docid": "fc0825ea4bedadea9a20c9fd6e69c766", "score": "0.6814672", "text": "public function setValidator($validator);", "title": "" }, { "docid": "8c9fc365baa1ebfc3364d183a81665f2", "score": "0.6797444", "text": "public function addValidator($validator) {\n\t\t\t$this->validators[] = $validator;\n\t\t}", "title": "" }, { "docid": "a92deb61097983645e1a899393c09a77", "score": "0.6797234", "text": "public function rule($field, ValidatorInterface $validator)\n\t{\n\t\treturn $this->add($field, $validator);\n\t}", "title": "" }, { "docid": "b2d1cb29de40389b67b0556db7abe887", "score": "0.6745466", "text": "public function addChild(AgaviValidator $validator);", "title": "" }, { "docid": "6682f1fe83b9eb726cb1e2c815f06ed7", "score": "0.6738184", "text": "public function validateWith(Validator $validator)\n {\n $this->addValidator($validator);\n }", "title": "" }, { "docid": "26cf9b2819392cdff5905a7cfe19c4ef", "score": "0.6627015", "text": "public function setValidator(Validator $validator);", "title": "" }, { "docid": "26cf9b2819392cdff5905a7cfe19c4ef", "score": "0.6627015", "text": "public function setValidator(Validator $validator);", "title": "" }, { "docid": "25e5503d510fe2d8df33c7ac5842b919", "score": "0.64382905", "text": "public function addValidator($field, $validator, $options = [])\n {\n if ($validator === 'NotEmpty' || $validator === 'NotNull') {\n return $this;\n }\n\n parent::addValidator($field, $validator, $options);\n\n return $this;\n }", "title": "" }, { "docid": "3e12a5e7afb3191001c42aa3990401cf", "score": "0.64281285", "text": "public function addValidator(ValidatorInterface $validator) {\n $this->validators[] = $validator;\n return $this;\n }", "title": "" }, { "docid": "0eb94b932eee61887b549b31a447496c", "score": "0.6408623", "text": "function addValidation($name, $func) {\n $this->fValidations[$name] = $func;\n }", "title": "" }, { "docid": "2702f3f568019ed8d13fb3e5db0674e4", "score": "0.6385007", "text": "public function addValidator(Validator $validator)\n {\n $this->validators[] = $validator;\n }", "title": "" }, { "docid": "c29b25d0427919e03778ce5bed02a2d0", "score": "0.6333058", "text": "private function addValidator(Validator $validator)\n {\n $this->validators[] = $validator;\n }", "title": "" }, { "docid": "63813e0a09ccf10637dee79232f06a26", "score": "0.6259172", "text": "public function addValidator(IValidator $validator)\n {\n\n $this->_validators[] = $validator;\n\n return $this;\n\n }", "title": "" }, { "docid": "50f49b6a443b4c8d90906816218cb98c", "score": "0.6246449", "text": "protected function add(IValidator $validator)\n {\n $this->validators[] = $validator;\n return $this;\n }", "title": "" }, { "docid": "d933f28fb449d9918d835ecef5f12b6c", "score": "0.6223848", "text": "public function addValidationConstraint(Constraint $validationConstraint);", "title": "" }, { "docid": "eb8d842793f8fa2fad5f416bbce0aa3a", "score": "0.62141913", "text": "public function addValidatorFunc($name, callable $func)\n {\n if (isset($this->validators[$name]))\n {\n throw new ConfigValidationException(\"Validator '{$name}' already exists'\");\n }\n $this->validators[$name] = new ValidatorFuncWrapper($func);\n }", "title": "" }, { "docid": "70d87f6afbf589e01a3daca12d960825", "score": "0.6162935", "text": "public function addValidator(ValidatorInterface $validator, $name = '*')\n {\n $this->hooks[$name][self::ARGUMENT_VALIDATOR][] = $validator;\n return $this;\n }", "title": "" }, { "docid": "8c63aecaeb67320751bdd6dc7b306961", "score": "0.61439997", "text": "public function validator(Closure $callback)\n {\n // TODO: Implement validator() method.\n }", "title": "" }, { "docid": "ff8e67ec3410b93b5660b9369dfd7091", "score": "0.6135684", "text": "public function add(ValidatorInterface $validator)\n {\n $this->data[] = $validator;\n return $this;\n }", "title": "" }, { "docid": "e80c46b8fe70e8b3c2892c3887126519", "score": "0.60970885", "text": "protected abstract function getSpecificFieldValidator();", "title": "" }, { "docid": "d0a6942a97c12581aeb913befe58e493", "score": "0.6092648", "text": "public function getCMSValidator()\n {\n return parent::getCMSValidator()->addRequiredField('Text');\n }", "title": "" }, { "docid": "0384648c97a275672a76ec6647d2816a", "score": "0.60737085", "text": "public function getValidator();", "title": "" }, { "docid": "e664c27cbc9751450432f503ae0ce211", "score": "0.6059666", "text": "public function validate(Field $field, DataValidator $validator): void;", "title": "" }, { "docid": "2ed29f142df6fbfa75bf58042f83f943", "score": "0.5988407", "text": "public function add(ValidatorInterface $validator, $field = null)\n {\n if ($field === null) {\n $this->validators[] = [$validator];\n return $this;\n }\n\n if (!isset($this->validators[$field])) {\n $this->validators[$field] = [];\n }\n\n $this->validators[$field][] = $validator;\n\n return $this;\n }", "title": "" }, { "docid": "97f4e57fb661e3c7d13aebf30c0b922d", "score": "0.59730077", "text": "protected function validator()\n {\n return $this->validator;\n }", "title": "" }, { "docid": "7e42a9499be4c7ea34cd72b9575ffd96", "score": "0.5967264", "text": "public function add_validator($validator, $option = null)\n\t{\n\t\t$args = func_get_args();\n\t\t$validator = reset( $args );\n\t\tif ( is_array( $validator ) ) {\n\t\t\t$index = ( is_object( $validator[0] ) ? get_class( $validator[0] ) : $validator[0]) . ':' . $validator[1];\n\t\t}\n\t\telseif( $validator instanceof \\Closure ) {\n\t\t\t$index = microtime(true);\n\t\t}\n\t\telse {\n\t\t\t$index = $validator;\n\t\t}\n\t\t$this->validators[$index] = $args;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "b99393f43afe5999f2335919f4893225", "score": "0.5966575", "text": "public function onValidate($callback): self {}", "title": "" }, { "docid": "b89ea769040cb1e76d4bdf0a3f43eb05", "score": "0.5956382", "text": "public static function register($name, $validator)\n\t{\n\t\tstatic::$validators[$name] = $validator;\n\t}", "title": "" }, { "docid": "0209e69eefc8c1d521f2409576330b52", "score": "0.5931883", "text": "public function addValidatorRule() {\n\t\t$numArgs = func_num_args();\n\t\t$args = func_get_args();\n\t\tif($numArgs == 1) {\n\t\t\tif($args[0]==null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$this->_validatorRules[] = $args[0];\n\t\t}\n\t\telseif($numArgs == 2) {\n\t\t\t$this->_validatorRules[$args[0]] = $args[1];\t\n\t\t}\n\t}", "title": "" }, { "docid": "5e288e8622b09e748bb88dc1c6307732", "score": "0.5925933", "text": "public function addPreValidator(ValidatorInterface $validator, $name = '*')\n {\n $this->hooks[$name][self::PRE_ARGUMENT_VALIDATOR][] = $validator;\n return $this;\n }", "title": "" }, { "docid": "78b0dacd1ddc80c38eaf10aff1eea758", "score": "0.5920482", "text": "public function addValidator(Validator $validator)\n {\n $name = get_class($validator);\n\n if (isset($this->validators[$name])) {\n throw new \\LogicException(sprintf(\"Field validator '%s' already exist\", $name));\n }\n\n $this->validators[$name] = $validator;\n\n return $this;\n }", "title": "" }, { "docid": "232364e96b02a35ce15f86081342e30a", "score": "0.59057134", "text": "public function withValidator($validator)\n {\n $invitationable = $this->input('invitationable_type')::where('id', $this->input('invitationable_id'))->first();\n\n $validator->after(function ($validator) use ($invitationable) {\n $validator->errors()->addIf(\n $invitationable->hasUserWithEmail($this->email),\n 'email',\n __('invitation.invited_user_already_belongs_to_team')\n );\n })->validateWithBag('inviteMember');\n }", "title": "" }, { "docid": "101e32b527d2ddcae385621ec51f81bf", "score": "0.59042114", "text": "function validateField() {}", "title": "" }, { "docid": "ed21f1d692a063c844aa3e3806357896", "score": "0.5822958", "text": "public function add($field, ValidatorInterface $validator)\n\t{\n\t\tif (is_array($field))\n\t\t{\n\t\t\t// Uniqueness validator for combination of fields is handled differently\n\t\t\tif ($validator instanceof CombinedFieldsValidator)\n\t\t\t{\n\t\t\t\t$this->_combinedFieldsValidators[] = [$field, $validator];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tforeach ($field as $singleField)\n\t\t\t\t{\n\t\t\t\t\t$this->_validators[] = [$singleField, $validator];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (is_string($field))\n\t\t{\n\t\t\t$this->_validators[] = [$field, $validator];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Exception(\"Field must be passed as array of fields or string\");\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "0f796781895139b8ef092b5a6138376b", "score": "0.5796598", "text": "public function addValidator($validator)\n {\n if (is_object($validator) === false ||\n $validator instanceof ValidatorInterface === false) {\n throw new Exception('The validators parameter must be an object');\n }\n\n if (is_array($this->_validators) === false) {\n $this->_validators = array();\n }\n\n $this->_validators[] = $validator;\n }", "title": "" }, { "docid": "27909b0ec45d2bfada8ccf195eaef7bf", "score": "0.57918423", "text": "protected function registerCustomValidator()\n {\n $idSkpd = new IdSkpdRule();\n Validator::extend('id_skpd', function ($attribute, $value) use ($idSkpd) {\n return $idSkpd->passes($attribute, $value);\n }, $idSkpd->message());\n\n $idUnitKerja = new IdUnitKerjaRule();\n Validator::extend('id_unit_kerja', function ($attribute, $value) use ($idUnitKerja) {\n return $idUnitKerja->passes($attribute, $value);\n }, $idUnitKerja->message());\n\n $idJabatan = new IdJabatanRule();\n Validator::extend('id_jabatan', function ($attribute, $value) use ($idJabatan) {\n return $idJabatan->passes($attribute, $value);\n }, $idJabatan->message());\n\n $idGolongan = new IdGolonganRule();\n Validator::extend('id_golongan', function ($attribute, $value) use ($idGolongan) {\n return $idGolongan->passes($attribute, $value);\n }, $idGolongan->message());\n\n $idEselon = new IdEselonRule();\n Validator::extend('id_eselon', function ($attribute, $value) use ($idEselon) {\n return $idEselon->passes($attribute, $value);\n }, $idEselon->message());\n }", "title": "" }, { "docid": "17a38abfedfcc73bf28fb13794ae8cdd", "score": "0.5788329", "text": "function frontend_validation($name)\n\t{\n\t\t$validator = $this->get_validator();\n\t\t$validator->add_rule($name, 'valid_date', 'Please enter in a valid date');\n\t\treturn $validator;\n\t}", "title": "" }, { "docid": "0a9067c083e465777d6fa5a06ed9fc08", "score": "0.5769548", "text": "protected function addValidators(Mage_Core_Model_File_Uploader $uploader)\n {\n $uploader->addValidateCallback('size', $this, 'validateMaxSize');\n }", "title": "" }, { "docid": "c47b3fb65a3785327d89158128f43cc3", "score": "0.5763223", "text": "public function getValidator() {\n return $this->validator;\n }", "title": "" }, { "docid": "84aff11abb60eb8cfcb1f351af87e134", "score": "0.575157", "text": "public function GetValidator();", "title": "" }, { "docid": "cff39bdca32831895806b3cd4f94a5d1", "score": "0.5748848", "text": "public function withValidator($validator)\n {\n $validator->after(function ($validator) {\n $user = auth()->user();\n $temp = new Helper();\n if (!$temp->validatePostalCode($this->zipcode)){\n $validator -> errors() -> add('popup_error', 'Please select a valid zip code');\n }else{\n if ($this->u_address >= 1)\n {\n $address = Address::where('id',$this->u_address)->first();\n\n\n if ($address->user_id != auth()->user()->id){\n $validator -> errors() -> add('popup_error', 'Please select a valid address');\n }else{\n $this->request->add(['check_address'=>1]);\n }\n }else{\n if ($user->address->count() >= 2){\n $validator -> errors() -> add('popup_error', 'You cannot add more then 2 address at a time');\n }else{\n $this->request->add(['check_address'=>0]);\n }\n }\n }\n\n\n });\n }", "title": "" }, { "docid": "6978bb2970c7f48695f34dde45adf5ff", "score": "0.5743258", "text": "public function withValidator($validator)\n {\n $validator->after(function ($validator) {\n if (empty($this->userVerified())) {\n $validator->errors()->add('user', 'You are not permitted to apply for a loan. Please complete your Personal Information verification before applying.');\n }\n\n if(!empty($this->checkOngoingLoan())) {\n $validator->errors()->add('user', 'You have an ongoing/processing Loan.');\n }\n\n if(auth()->user()->available_credit < request()->amount) {\n $validator->errors()->add('amount', 'Available credit is not sufficient.');\n }\n\n// if(request()->amount < config('constants.min_loan_amount')) {\n// $validator->errors()->add('amount', 'Loan Amount must be greater than ' . config('constants.min_loan_amount'));\n// }\n//\n// if(request()->amount > config('constants.max_loan_amount')) {\n// $validator->errors()->add('amount', 'Loan Amount must be less than ' . config('constants.max_loan_amount'));\n// }\n });\n }", "title": "" }, { "docid": "40e4eb4ba71ad2f93a93256b63a7c609", "score": "0.5740023", "text": "public function __construct($validator)\n {\n $this->validator = $validator;\n }", "title": "" }, { "docid": "57ee54ca42b4a363d82c6bf6e2b520db", "score": "0.5732866", "text": "public function setValidator($validator)\n {\n $this->validator = $validator;\n return $this;\n }", "title": "" }, { "docid": "1be2532f0cc055a286a5a7dcc7d0b9eb", "score": "0.5730728", "text": "public function addValidator($attribute, $validator)\n {\n if (! is_array($validator)) {\n $validator = array($validator);\n }\n foreach ($validator as $oneValidator) {\n $this->validators[$attribute][] = $oneValidator;\n }\n return $this;\n }", "title": "" }, { "docid": "5bbc7466321a74d3c94be4ed197751af", "score": "0.5729437", "text": "function Add($value, $child)\r\n\t{\r\n\t\t$this->validators[] = array($value, $child);\r\n\t}", "title": "" }, { "docid": "3bccd12128931015dad402fc843d220c", "score": "0.5724563", "text": "public function configureValidator()\n {\n }", "title": "" }, { "docid": "d369266671da4a4d16da554df09377de", "score": "0.57061243", "text": "public function withValidator($validator)\n {\n return $validator;\n }", "title": "" }, { "docid": "4fa0e3625c1c1074ba9cd8a2fce909fc", "score": "0.5691582", "text": "public function addRule($name, $callback, $message = null)\n {\n $this->validator->addInstanceRule($name, $callback, $message);\n return $this;\n }", "title": "" }, { "docid": "9c0054e6b7c9fab4afee5bc5c70f277c", "score": "0.5687911", "text": "public function validator()\n {\n return new Validation\\Validator(app('mailgun.public'));\n }", "title": "" }, { "docid": "6e1b83fbbb26bab5c057a2a8001e21fe", "score": "0.5684047", "text": "public function validationQuickAdd(Validator $validator): Validator\n {\n $validator\n ->integer('id')\n ->allowEmptyString('id', null, 'create');\n\n $validator\n ->integer('listing_type_id')\n ->requirePresence('listing_type_id', 'create')\n ->notEmptyString('listing_type_id');\n\n $validator\n ->scalar('code')\n ->maxLength('code', 180)\n ->notEmptyString('code');\n\n $validator\n ->scalar('title')\n ->maxLength('title', 250)\n ->requirePresence('title', 'create')\n ->notEmptyString('title');\n\n $validator\n ->scalar('slug')\n ->maxLength('slug', 250)\n ->allowEmptyString('slug')\n ->add('slug', 'unique', ['rule' => 'validateUnique', 'provider' => 'table']);\n\n $validator\n ->scalar('tag_line')\n ->maxLength('tag_line', 250)\n ->allowEmptyString('tag_line');\n\n $validator\n ->scalar('protocol')\n ->requirePresence('protocol', 'create')\n ->notEmptyString('protocol');\n\n $validator\n ->scalar('domain_name')\n ->maxLength('domain_name', 100)\n ->allowEmptyString('domain_name');\n\n $validator\n ->boolean('is_visible')\n ->allowEmptyString('is_visible');\n\n $validator\n ->boolean('status')\n ->allowEmptyString('status');\n\n $validator\n ->integer('sort_order')\n ->requirePresence('sort_order', 'create')\n ->notEmptyString('sort_order');\n\n return $validator;\n }", "title": "" }, { "docid": "50be2390c012dcad837c29733b996f69", "score": "0.56575704", "text": "public function validate(\\Ice\\Validation $validation, string $field): bool {}", "title": "" }, { "docid": "0c9cf2c34b34710a7f0ae9464aa1f6f9", "score": "0.5610876", "text": "protected function getValidatorInstance()\n {\n $validator = parent::getValidatorInstance();\n $validator->after(fn ($validator) => $this->afterValidation($validator));\n return $validator;\n }", "title": "" }, { "docid": "265cae23649bf5aedc0bde8edc6d5a27", "score": "0.5610464", "text": "public function withValidator($validator)\n {\n $validator->after(function ($validator) {\n echo 'two';\n });\n }", "title": "" }, { "docid": "73c921e91c3ef78b10ecc43b2702ffca", "score": "0.55920714", "text": "public function validator(Closure $callback)\n {\n $this->passwordValidator = $callback;\n }", "title": "" }, { "docid": "cce7daa256ed6e9a98c228044600c400", "score": "0.55835336", "text": "private function attachValidator($event, $callback, $priority)\n {\n $context = null;\n if ($callback instanceof ValidatorInterface) {\n $context = $callback;\n } elseif (is_array($callback)) {\n $test = array_shift($callback);\n if ($test instanceof ValidatorInterface) {\n $context = $test;\n }\n array_unshift($callback, $test);\n }\n if ($context instanceof ValidatorInterface) {\n $data = $context->getData();\n $name = $context->getName();\n $this->getStorage()->setMetadata('_VALID', [$name => $data]);\n }\n\n return parent::attach($event, $callback, $priority);\n }", "title": "" }, { "docid": "687f56e3050d373972e4649698062c17", "score": "0.5575611", "text": "public function getValidator()\n {\n return $this->validator;\n }", "title": "" }, { "docid": "687f56e3050d373972e4649698062c17", "score": "0.5575611", "text": "public function getValidator()\n {\n return $this->validator;\n }", "title": "" }, { "docid": "976547e645bfff924d1cd8ab2be4451d", "score": "0.5537811", "text": "public function updateValidator($validator) {\n\t}", "title": "" }, { "docid": "341e720e34944d01b9cabe1b6ee81e1e", "score": "0.5536707", "text": "public function validator()\n {\n\n return AuthorValidator::class;\n }", "title": "" }, { "docid": "a569f3b14833ecadb56a539ac95a0d8f", "score": "0.5532744", "text": "protected function registerRegistrationFormValidation()\n {\n $this->app->bind('MPP\\Validation\\Register\\RegisterFormValidator', function($app) {\n return new RegisterFormValidator($app['validator']);\n });\n }", "title": "" }, { "docid": "306abea1451147e43577691fc2e3ae92", "score": "0.5522091", "text": "public static function add_validator( $rule, $callback, $error_message = null ) {\n\t\t$method = 'validate_' . $rule;\n\n\t\tif ( method_exists( __CLASS__, $method ) || isset( self::$validation_methods[ $rule ] ) ) {\n\t\t\tthrow new Exception( \"Validator rule '$rule' already exists.\" );\n\t\t}\n\n\t\tself::$validation_methods[ $rule ] = $callback;\n\t\tif ( $error_message ) {\n\t\t\tself::$validation_methods_errors[ $rule ] = $error_message;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e0b291e76ebcef491cee2ef82ad6da1e", "score": "0.5508923", "text": "public function register()\n {\n Validator::extend('cpf', function($attribute, $value, $parameters, $validator) {\n return CPF::validar($value);\n });\n }", "title": "" }, { "docid": "2b9286dc9e962c863fab711b1bce44b5", "score": "0.5495838", "text": "public function getValidator()\n\t{\n\t\treturn $this->validator;\n\t}", "title": "" }, { "docid": "21ec95bf2c922cb5953118d9b289d6a3", "score": "0.5492878", "text": "private function attachValidator($event, $callback, $priority)\n {\n $context = null;\n if ($callback instanceof ValidatorInterface) {\n $context = $callback;\n } elseif (is_array($callback)) {\n $test = array_shift($callback);\n if ($test instanceof ValidatorInterface) {\n $context = $test;\n }\n array_unshift($callback, $test);\n }\n if ($context instanceof ValidatorInterface) {\n $data = $context->getData();\n $name = $context->getName();\n $this->getStorage()->setMetadata('_VALID', [$name => $data]);\n }\n\n $listener = parent::attach($event, $callback, $priority);\n return $listener;\n }", "title": "" }, { "docid": "3f9a70b156bc9b9c226d77f4b264e2ea", "score": "0.5491214", "text": "public function registerValidation()\n\t{\n\t\t$this->validateName();\n\t\t$this->validateEmail();\n\t\t$this->validatePassword();\n\t}", "title": "" }, { "docid": "cf4d6e1231170370d92c5d4b718806f9", "score": "0.5434938", "text": "public function validator()\n {\n return null;\n }", "title": "" }, { "docid": "6c8a80203667d77c5da69b6f9c35ffa4", "score": "0.5434257", "text": "public function withValidator($validator)\n {\n $validator->after(function ($validator) {\n $lastReduction = $this->getPreviousReductions();\n if($lastReduction !=[]){\n $start_date = $lastReduction->start_date;\n $end_date = $lastReduction->end_date; \n\n if($end_date == null) {\n $validator->errors()->add('end_date', \"Can't be more than an active reduction for this user\");\n }\n }\n });\n }", "title": "" }, { "docid": "7ade7360443d3af6177304c0cb87868e", "score": "0.54339427", "text": "public function __construct(Validator $validator)\n {\n $this->validator = $validator;\n }", "title": "" }, { "docid": "fb9684ebd065663d7f306f2c9eebcf2e", "score": "0.5433474", "text": "public function setValidator(\\TYPO3\\CMS\\Extbase\\Validation\\Validator\\ValidatorInterface $validator)\n {\n $this->validator = $validator;\n return $this;\n }", "title": "" }, { "docid": "7ae08f809acbf8a07db7a65f520649fc", "score": "0.5429083", "text": "public function addValidator($name, ConfigValidatorInterface $valid)\n {\n if (isset($this->validators[$name]))\n {\n throw new ConfigValidationException(\"Validator '{$name}' already exists'\");\n }\n $this->validators[$name] = $valid;\n }", "title": "" }, { "docid": "9a9bdca22d3e61d1a1e62f96e064a385", "score": "0.5423123", "text": "public function __construct(ValidatorInterface $validator)\n {\n $defaultConfig = array(\n 'message' => '%s is not a number',\n 'integer_message' => '%s is not an integer',\n 'greater_than_message' => '%s is not greater than %d',\n 'greater_than_or_equal_to_message' => '%s is not greater than or equal to %d',\n 'equal_to_message' => '%s is not equal to %d',\n 'less_than_message' => '%s is not less than %d',\n 'less_than_or_equal_to_message' => '%s is not less than or equal to %d',\n 'only_integer' => false\n );\n $defaultConfig = array_merge($this->config, $defaultConfig);\n $fields = $validator->getFields();\n $data = $validator->getData();\n\n foreach ($validator->getNumericalityOf() as $field => $config) {\n list($field, $config) = $this->prepareValidationData($field, $config, $defaultConfig);\n\n if (!isset($data[$field])) {\n if ($config['allow_nil']) {\n continue;\n }\n\n $data[$field] = '';\n }\n\n if (!$config['if'] ||\n $config['unless'] ||\n ($config['on'] != 'save' && $config['on'] != $validator->getMode())\n ) {\n continue;\n }\n\n if (!is_numeric($data[$field])) {\n $validator->addError($field, sprintf($config['message'], $fields[$field]));\n\n //there is a chance that the field is empty, in which case the field will be treated\n //as zero in the loose comparison operations\n continue;\n }\n\n if ($config['only_integer'] && !is_integer($data[$field])) {\n $validator->addError(\n $field,\n sprintf(\n $config['integer_message'],\n $fields[$field]\n )\n );\n }\n\n if (isset($config['greater_than']) && $data[$field] <= $config['greater_than']) {\n $validator->addError(\n $field,\n sprintf(\n $config['greater_than_message'],\n $fields[$field],\n $config['greater_than']\n )\n );\n }\n\n if (isset($config['greater_than_or_equal_to']) && $data[$field] < $config['greater_than_or_equal_to']) {\n $validator->addError(\n $field,\n sprintf(\n $config['greater_than_or_equal_to_message'],\n $fields[$field],\n $config['greater_than_or_equal_to']\n )\n );\n }\n\n if (isset($config['equal_to']) && $data[$field] != $config['equal_to']) {\n $validator->addError(\n $field,\n sprintf(\n $config['equal_to_message'],\n $fields[$field],\n $config['equal_to']\n )\n );\n }\n\n if (isset($config['less_than']) && $data[$field] >= $config['less_than']) {\n $validator->addError(\n $field,\n sprintf(\n $config['less_than_message'],\n $fields[$field],\n $config['less_than']\n )\n );\n }\n\n if (isset($config['less_than_or_equal_to']) && $data[$field] > $config['less_than_or_equal_to']) {\n $validator->addError(\n $field,\n sprintf(\n $config['less_than_or_equal_to_message'],\n $fields[$field],\n $config['less_than_or_equal_to']\n )\n );\n }\n }\n }", "title": "" }, { "docid": "a3ab83bbc5c4a77e1fbeda04b7c721b4", "score": "0.5413166", "text": "public function validation()\n {\n $validator = new Validation();\n $roles = $this->getDI()->getAcl()->getRolesArray();\n\n $validator->add(\n 'email',\n new EmailValidator(\n [\n 'model' => $this,\n 'message' => 'Please enter a correct email address',\n ]\n )\n );\n $validator->add(\n 'email',\n new Uniqueness(\n [\n 'model' => $this,\n 'message' => 'This email address already used !',\n ]\n )\n );\n\n $validator->add(\n 'fullname',\n new Regex(\n [\n 'message' => 'The full name must contains alphanumeric characters',\n 'pattern' => '/^[a-zA-Z]{4,}(?: [a-zA-Z]+){0,2}$/',\n ]\n )\n );\n\n $validator->add(\n 'role_name',\n new InclusionIn(\n [\n \"message\" => \"The role must be \". implode(\",\",$roles),\n \"domain\" => array_keys($roles),\n ]\n )\n );\n\n $validator->add(\n 'status',\n new InclusionIn(\n [\n \"message\" => \"The :field must be \". implode(\",\",$this::STATUS_LIST),\n \"domain\" => array_keys($this::STATUS_LIST),\n ]\n )\n );\n\n return $this->_ignore_validation || $this->validate($validator);\n }", "title": "" }, { "docid": "468ee25237a8bfce9c1b089cc7aa5b33", "score": "0.5404185", "text": "public function addValidators($arr) {\n\t\t\t$this->validators = array_merge($this->validators, $arr);\n\t\t}", "title": "" }, { "docid": "729e563a52546f8bc3bdf759af194ad6", "score": "0.5401515", "text": "protected function getValidator()\n {\n return $this->validator;\n }", "title": "" }, { "docid": "bc00891e5089d887783da70f63869804", "score": "0.53942174", "text": "public function add($validator, $key, $value, $notNull = false, $maxSize = null, $minSize = null )\n {\n if (!$notNull and trim($value) == '') {\n $this->data[$key] = null;\n $this->invalid[$key] = false;\n\n return false;\n }\n\n if (!$valObj = $this->getValidator($validator)) {\n $this->invalid[$key] = 'wrong';\n\n return 'wrong';\n }\n\n $conclusion = $valObj->validate($key, $value, $notNull, $maxSize, $minSize);\n $this->data[$key] = $valObj->getSecure();\n\n $this->invalid[$key] = $conclusion;\n\n return $conclusion;\n\n }", "title": "" }, { "docid": "bda0ec9b687d752eb5ca809dca2d0c60", "score": "0.53743565", "text": "public function withValidator($validator)\n {\n $validator->after(function ($validator) {\n //check attributes\n if (request()->has('attribute_id')) {\n foreach (array_count_values(request()->get('attribute_id')) as $attributeId => $attributeArrayIndex) {\n\n // allow any first attribute value\n if ($attributeArrayIndex === 1) {\n continue;\n }\n\n $attribute = Attribute::where('id', $attributeId)->first();\n\n // disallow second attribute value if attribute disallow multiply values for same product\n if (!$attribute->multiply_product_values) {\n $validator->errors()->add('attribute_id', trans('validation.multiply_product_values', ['attribute' => $attribute->name]));\n }\n }\n }\n\n // check video\n if ((request()->get('video_youtube') && request()->has('video_mp4')) || (request()->get('video_youtube') && request()->has('video_webm'))) {\n $validator->errors()->add('video_youtube', trans('validation.multiply_product_video_source'));\n }\n });\n }", "title": "" }, { "docid": "b39b4f5a91be29aeefb06165abd855ce", "score": "0.53486156", "text": "public function validator()\n {\n\n return ReservaValidator::class;\n }", "title": "" }, { "docid": "1e037e9f0b5468059f45025ae86ba17f", "score": "0.5340725", "text": "public function registerValidator(ValidatorInterface $validator)\n {\n $callbacks = $validator->getCallbacks();\n \n if (!is_array($callbacks))\n {\n $class = get_class($validator);\n throw new InvalidArgumentException(\"ValidationChain error in adding validator. The validator class '{$class}' does not return an array when getCallbacks() method is called.\");\n }\n \n foreach ($callbacks as $validatorID => $callback)\n {\n $this->validatorIDMustBeValid($validatorID);\n \n if (!is_callable($callback))\n {\n throw new InvalidArgumentException(\"ValidationChain error in adding validator callback. The callback given for validator ID '{$validatorID}' is not callable.\");\n }\n \n $this->callbacks[$validatorID] = $callback;\n }\n }", "title": "" }, { "docid": "56637a69a2c1dd86ec35f9d49b9748d6", "score": "0.5340378", "text": "public function validate()\n {\n $this->autoRegister();\n parent::validate();\n }", "title": "" }, { "docid": "dd7894fcb61d659912f5ae31779af595", "score": "0.5336431", "text": "public abstract function rules(Validator $validator);", "title": "" }, { "docid": "55ca6227cc930f9f5a182a76a234355e", "score": "0.5329238", "text": "public function validator()\n {\n return SubscribeValidator::class;\n }", "title": "" }, { "docid": "fcf0b109172f87e1932869341230aec0", "score": "0.5327149", "text": "function addValidation($name,$limit = \"0-1\",$regEx = false){\n\t\t$this->logger(\"registration\");\n\t\tif(is_array($name)){\n\t\t\tif(!is_array($this->validations))\n\t\t\t\t$this->validations = array(); //If is not an array yet, make it one\n\t\t\t$new = array_merge($this->validations,$name);\n\t\t\t$this->validations = $new;\n\t\t\t$this->report(\"New Validation Object added\");\n\t\t}else{\n\t\t\t$this->validations[$name]['limit'] = $limit;\n\t\t\t$this->validations[$name]['regEx'] = $regEx;\n\t\t\t$this->report(\"The $name field has been added for validation\");\n\t\t}\n\t}", "title": "" }, { "docid": "8ab48db78dfdf2908ca93977f8a128a6", "score": "0.532459", "text": "public function getValidator()\n {\n return $this->get('validator');\n }", "title": "" }, { "docid": "010ef72a7030cf4466a5cba88d07cd43", "score": "0.53224534", "text": "public static function set(string $name, callable $callback): void\n {\n if ($name = trim($name)) {\n self::$validators[$name] = $callback;\n }\n }", "title": "" }, { "docid": "579ea5e65ae808c236ddc96079d7781a", "score": "0.5319934", "text": "protected function addValidators()\n {\n if (\\File::exists(app_path('Validators'))) {\n\n foreach(\\File::allFiles(app_path('Validators')) as $validator) {\n\n /** @var SplFileInfo $validator */\n $class = 'App\\Validators\\\\'.str_replace('.php', '', $validator->getFilename());\n\n /** @var \\ReflectionClass $classInfo */\n $classInfo = new \\ReflectionClass($class);\n\n $parentClass = $classInfo->getParentClass();\n\n if (!$parentClass) continue;\n\n if ($parentClass->getName() !== AbstractValidator::class) continue;\n\n /** @var ValidatorInterface $validatorClass */\n $validatorClass = app($class);\n\n Validator::extend($validatorClass->getName(), function($attribute, $value, $parameters, $validator) use ($validatorClass) {\n return $validatorClass->execute($attribute, $value, $parameters, $validator);\n });\n\n Validator::replacer($validatorClass->getName(), function($message, $attribute, $rule, $parameters) use ($validatorClass) {\n return $validatorClass->message($message, $attribute, $rule, $parameters);\n });\n\n }\n }\n }", "title": "" }, { "docid": "0fedbdad8fafe6065ddda0d234b9c56c", "score": "0.5306398", "text": "function setValidator(utilityValidator $inValidator) {\n\t\t$this->_Validator = $inValidator;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "0fedbdad8fafe6065ddda0d234b9c56c", "score": "0.5306398", "text": "function setValidator(utilityValidator $inValidator) {\n\t\t$this->_Validator = $inValidator;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "2548b4e79a49436e28e34e0fd77d1071", "score": "0.530184", "text": "public function validator()\n {\n\n return BandGenreValidator::class;\n }", "title": "" }, { "docid": "544fe74bb35f058fe5de37e772353029", "score": "0.52958417", "text": "public function addRule(string $rule, ?string $alias = null): ValidateInterface;", "title": "" }, { "docid": "b6a429fac7c03e25d92e3e67ca4077d6", "score": "0.5290627", "text": "protected function getValidatorInstance()\n {\n $this->merge(['tags' => implode(',', $this->get('tags', []))]);\n return parent::getValidatorInstance();\n }", "title": "" }, { "docid": "32b79e3bc863f260ee91a5cad369fd07", "score": "0.5288846", "text": "public function updateCustomValidate(){\n return $this->addCustomValidate();\n }", "title": "" }, { "docid": "18c1edd05db3c97428c8a1e7d7b7a1bc", "score": "0.5288713", "text": "public static function validating($callback)\n {\n static::registerModelEvent('validating', $callback);\n }", "title": "" }, { "docid": "18c1edd05db3c97428c8a1e7d7b7a1bc", "score": "0.5288713", "text": "public static function validating($callback)\n {\n static::registerModelEvent('validating', $callback);\n }", "title": "" }, { "docid": "7d1322771353e6326d3da21350e9bd84", "score": "0.5273859", "text": "function &getValidator() {\n\t\treturn $this->_validator;\n\t}", "title": "" }, { "docid": "c8e1a7f91010f373684208bc3d594546", "score": "0.5270042", "text": "protected function registerValidationFactory()\n {\n $this->royalcms->singleton('validator', function ($royalcms) {\n $validator = new Factory($royalcms['translator'], $royalcms);\n\n // The validation presence verifier is responsible for determining the existence\n // of values in a given data collection, typically a relational database or\n // other persistent data stores. And it is used to check for uniqueness.\n if (isset($royalcms['validation.presence'])) {\n $validator->setPresenceVerifier($royalcms['validation.presence']);\n }\n\n return $validator;\n });\n }", "title": "" }, { "docid": "b22ce6a22f2c0bd72e79b6b3ded1b8e6", "score": "0.52679145", "text": "public function setValidationConstraint(Constraint $validationConstraint);", "title": "" }, { "docid": "0cb179ef951250ff78c8b9b1d7107e73", "score": "0.5260694", "text": "public function getValidator()\n {\n if ($this->_validator === null) {\n\n if (class_exists('\\Klikasi\\\\Validator\\ErabiltzaileaRelIkastegia')) {\n\n $this->setValidator(new \\Klikasi\\Validator\\ErabiltzaileaRelIkastegia);\n }\n }\n\n return $this->_validator;\n }", "title": "" }, { "docid": "ec82cedd7a871ed00e102c6838e2098a", "score": "0.52579296", "text": "public function withValidator($validator){\n if ($validator->fails()) {\n flash_error(trans('main.error_form'));\n }\n }", "title": "" } ]
ccbac23fe5060d65630b19e5693a41e9
Get the validation rules that apply to the request.
[ { "docid": "711a0b8e82ed508de921e0dec4213648", "score": "0.0", "text": "public function rules()\n {\n $rules= [\n 'name' => 'required|alpha_spaces', //teste\n 'nome_informal' => 'required|max:40',\n 'nif' => 'max:9',\n 'telefone'=> 'max:20',\n 'num_socio' => ['required','integer','min:1',Rule::unique('users')->ignore($this->id)],\n\n 'file_foto' => 'image|mimes:jpeg,png,jpg,gif,svg|max:2048',\n 'data_nascimento' => 'required|date_format:Y-m-d|before:today',\n 'email' => [\n 'required','email',Rule::unique('users')->ignore($this->id)],\n\n 'num_licenca'=>'nullable|max:30',\n 'tipo_licenca'=>'nullable|exists:tipos_licencas,code',\n 'num_certificado'=> 'nullable|max:30',\n 'classe_certificado'=>'nullable|exists:classes_certificados,code',\n 'validade_licenca' => 'nullable|date|date_format:Y-m-d|after_or_equal:today',\n 'validade_certificado' => 'nullable|date|date_format:Y-m-d|after_or_equal:today',\n 'direcao' => 'required|in:0,1',\n 'ativo' => 'required|in:0,1',\n 'quota_paga' => 'required|in:0,1',\n 'tipo_socio' => 'required| in:P,NP,A',\n 'sexo' => 'required|in:M,F',\n 'certificado_confirmado'=>'nullable|in:0,1',\n 'licenca_confirmada'=>'nullable|in:0,1',\n\n\n ];\n\n //Input::get('aluno')!=0 && Input::get('instrutor')!=0 &&\n if (Input::get('instrutor')==0 && Input::get('aluno')==0) {\n $rules+=['aluno' => 'in:0|nullable',\n 'instrutor'=>'in:0|nullable'];\n }else{\n $rules+=['aluno' => 'in:0,1|different:instrutor',\n 'instrutor'=>'in:0,1|different:aluno'];\n\n }\n\n return $rules;\n }", "title": "" } ]
[ { "docid": "b344895fd61d31159e9d44793f24ae8b", "score": "0.85802996", "text": "protected function validationRules()\n {\n return $this->createFormRequest()->rules();\n }", "title": "" }, { "docid": "f82927e1194515645fa820d75825b7ee", "score": "0.8128832", "text": "public function rules()\n {\n return $this->getRequestConfig()->rules();\n }", "title": "" }, { "docid": "5d1491b711525e6bfdb239ee303f30fc", "score": "0.81096613", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n $rules = [\n 'name' => 'required',\n 'address' => 'required',\n 'geo' => 'required',\n 'customer_id' => 'required'\n ];\n break;\n case 'PUT':\n case 'PATCH':\n $rules = [\n 'name' => 'required',\n 'address' => 'required',\n 'geo' => 'required',\n 'customer_id' => 'required'\n ];\n break;\n\n default:\n $rules = [\n 'name' => 'required',\n 'address' => 'required',\n 'geo' => 'required',\n 'customer_id' => 'required'\n ];\n break;\n }\n\n\n return $rules;\n }", "title": "" }, { "docid": "5c5546d6ad190ce5c7ec85b96ea733d9", "score": "0.80757684", "text": "public static function getValidationRules()\n {\n return self::$validationRules;\n }", "title": "" }, { "docid": "5b9a58453f77a4a116d635586356febb", "score": "0.8024182", "text": "public function getValidationRules()\n\t{\n\t\treturn $this->rules;\n\t}", "title": "" }, { "docid": "674f48033c4da89ffa7685260cca729a", "score": "0.79264987", "text": "public function rules()\n {\n return $this->validationRules;\n }", "title": "" }, { "docid": "57a1dfe9064d1c59c4ba2aa5cf8c8e71", "score": "0.7920409", "text": "public function rules()\n {\n $rules;\n switch ($this->method()) {\n case 'POST':\n $rules = [\n 'first_name' => 'required|max:255',\n 'last_name' => 'required|max:255',\n 'email' => 'required|email|ends_with_tld|unique:users|max:255',\n 'password' => 'required|case_diff|numbers|letters|symbols|max:255|min:8',\n 'role' => 'required|in:admin,user',\n ];\n break;\n case 'PUT':\n $rules = [\n 'first_name' => 'required|max:255',\n 'last_name' => 'required|max:255',\n ];\n break;\n default:\n # code...\n break;\n }\n\n return $rules;\n }", "title": "" }, { "docid": "cfd597a91dc44c22eb998e8c4dc36af3", "score": "0.7826606", "text": "protected function getRules()\n {\n if (null === $this->requestClass) {\n $this->fail('Property request is not specified for this test');\n }\n\n $request = new $this->requestClass;\n\n if (!$request instanceof ApiRequest) {\n $this->fail('This test case allows to test only ApiRequest entities');\n }\n\n if (null !== $this->user) {\n $request->setUserResolver(function () {\n return $this->user;\n });\n }\n\n return $request->rules();\n }", "title": "" }, { "docid": "135365264d61677409cd7e265b1aae67", "score": "0.777848", "text": "public function getValidationRules()\n {\n return array_keys($this->validationRules);\n }", "title": "" }, { "docid": "377825d3f36ed7689c4302fa559eae2d", "score": "0.77537656", "text": "public function rules()\n {\n switch ($this->getRequestMethod()) {\n case 'store':\n return [\n 'name' => 'required|string',\n 'remarks' => 'nullable|string',\n 'status' => 'nullable|boolean',\n 'sort' => 'nullable|integer|min:0',\n 'rules' => 'nullable|array',\n 'rules.*' => 'nullable|in:' . get_validate_in_string(RiskGroup::$ruleLists)\n ];\n break;\n\n case 'update':\n return [\n 'name' => 'string',\n 'remarks' => 'nullable|string',\n 'status' => 'nullable|boolean',\n 'sort' => 'nullable|integer|min:0',\n 'rules' => 'nullable|array',\n 'rules.*' => 'nullable|in:' . get_validate_in_string(RiskGroup::$ruleLists)\n ];\n break;\n\n default:\n return [];\n }\n }", "title": "" }, { "docid": "199d11a4929beab748dfc5a4193912ad", "score": "0.7736165", "text": "public function rules()\n {\n if ( $this->method() == 'PUT' ) {\n $rules = [\n 'first_name' => 'min: 2',\n 'last_name' => 'min:2',\n 'email' => 'email',\n 'company_id' => 'required',\n 'phone' => 'digits:10'\n ];\n } else {\n $rules = [\n 'first_name' => 'required|min: 2',\n 'last_name' => 'required| min:2',\n 'email' => 'required|email',\n 'company_id' => 'required|int',\n 'phone' => 'required|digits:10'\n ];\n }\n return $rules;\n }", "title": "" }, { "docid": "8b542d7cc2aafe00fc90740020a72d39", "score": "0.7715304", "text": "public function rules()\n {\n switch (Route::currentRouteName()) {\n case 'login':\n return [\n 'email' => $this->validateEmail('login'),\n 'password' => $this->validatePassword('login'),\n ];\n case 'register':\n return [\n 'first_name' => $this->validateFirstName(),\n 'last_name' => $this->validateLastName(),\n 'email' => $this->validateEmail('register'),\n 'password' => $this->validatePassword('register'),\n ];\n case 'verify/email':\n case 'account/delete/confirm':\n return [\n 'token' => $this->validateToken(),\n ];\n case 'forgot/password':\n return [\n 'email' => $this->validateEmail(),\n ];\n case 'resend/verification':\n return [\n 'email' => $this->validateEmail('resend-verification'),\n ];\n case 'reset/password':\n return [\n 'token' => $this->validateToken(),\n 'password' => $this->validatePassword(),\n ];\n case 'account/delete/request':\n return [\n 'api_token' => new CheckClientIdent(),\n ];\n default:\n return [];\n }\n }", "title": "" }, { "docid": "e09f5125340db653eb6c8e033b44fe26", "score": "0.7713263", "text": "public function getRules()\n {\n // Set the validation rules.\n $rules = [\n 'order_id' => 'integer|required|exists:pgsql.consumer.orders,id',\n 'reference_id' => 'string|nullable|max:100',\n 'status' => 'string|in:pending,verified,settled,declined',\n 'reason' => 'string|required',\n 'amount' => 'numeric|required|min:0|max:999999999999.99',\n 'shipping_fee_flag' => 'integer|in:0,1',\n 'insurance_fee_flag' => 'integer|in:0,1',\n 'transaction_fee_flag' => 'integer|in:0,1',\n 'assets' => 'json|nullable',\n 'remarks' => 'string|nullable'\n ];\n\n return $rules;\n }", "title": "" }, { "docid": "82a3b5c111fc6c19b865d5b3b34a8a30", "score": "0.77092636", "text": "public function rules()\n {\n $rules = [];\n switch ($this->getMethod()) {\n case 'PUT':\n // no break\n case 'POST':\n $rules = [\n 'has_parent' => 'required|in:0,1',\n 'parent' => 'required_if:has_parent,1',\n 'can_has_children' => 'required|in:0,1',\n 'name' => 'required'\n ];\n # code...\n break;\n \n default:\n # code...\n break;\n }\n return $rules;\n }", "title": "" }, { "docid": "0fbab98d594ff61bd05c512cab86bb46", "score": "0.76987183", "text": "public function rules()\n {\n switch($this->method()) {\n case 'POST':\n $rules = [\n 'company_name' =>'required',\n 'business_type' =>'required',\n 'product_category' =>'required',\n 'product_status' =>'required',\n 'product_name' => 'required',\n 'product_price' => 'required',\n 'product_desc' => 'required',\n ];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "91291f9e882b03a36231403437eea78f", "score": "0.76849", "text": "public function getRules()\n {\n // Set the validation rules.\n $rules = [\n 'party_id' => 'integer|required|exists:pgsql.core.organizations,party_id',\n 'settlement_transfer_id' => 'integer|nullable|exists:pgsql.wallet.transfers,id',\n 'type' => 'string|required|in:' . implode(',', array_keys(config('settings.ledger_entry_types'))),\n 'status' => 'string|required|in:' . implode(',', array_keys(config('settings.ledger_entry_statuses'))),\n 'amount' => 'numeric|required|min:0|max:999999999999.99',\n 'breakdown' => 'json|required',\n 'reference_id' => 'string|nullable|max:100',\n 'bank_details' => 'json|nullable',\n 'remarks' => 'string|nullable',\n 'period' => 'string|required',\n 'closed_at' => 'date|required',\n 'settled_at' => 'date|nullable',\n 'settled_by' => 'integer|nullable',\n ];\n\n return $rules;\n }", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.7683038", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.7683038", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.7683038", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.7683038", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "edb6e1295bf0d4036bc49f24a77d312d", "score": "0.76820654", "text": "public function rules()\n {\n $rules = $this->rules;\n \n if(Request::isMethod('PATCH')){\n $rules['mg_name'] = 'required|max:10';\n }\n\n return $rules;\n }", "title": "" }, { "docid": "c14fed4b797510caf172c6060aee3ff4", "score": "0.767571", "text": "public function rules()\n {\n $rules = [\n 'title' => 'required',\n 'content' => 'required',\n ];\n\n if ($this->get('method') == 'edit') {\n $rules['slug'] = 'required';\n foreach (Hook::getFormValidation('pages.edit') as $hook_rule) {\n $rules = array_merge($rules, $hook_rule);\n }\n } else {\n foreach (Hook::getFormValidation('pages.create') as $hook_rule) {\n $rules = array_merge($rules, $hook_rule);\n }\n }\n\n foreach (Hook::getFormValidation('pages.form') as $hook_rule) {\n $rules = array_merge($rules, $hook_rule);\n }\n\n\n return $rules;\n }", "title": "" }, { "docid": "d932018bf793de86e2dfa0d1a05e8514", "score": "0.7672468", "text": "public function rules()\n {\n return $this->rules[$this->method()];\n }", "title": "" }, { "docid": "91ca451d95bff1768eb2f2bd4fccf751", "score": "0.765128", "text": "public function rules()\n {\n return SiswaModel::VALIDATION_RULES + User::VALIDATION_RULES;\n }", "title": "" }, { "docid": "fead012d0b91937e2555d0bfbe34b858", "score": "0.76478314", "text": "public function rules()\n {\n $rules = [];\n\n $rules['first_name'] = 'required';\n $rules['last_name'] = 'required';\n $rules['email'] = 'required|email|unique_email';\n $rules['password'] = 'required|min:6';\n $rules['confirm_password'] = 'required|min:6|same:password';\n $rules['secondary_contact'] = 'required|email|unique_email';\n\n $rules = array_merge($rules, $this->getRulesForUsers($this->get('user')));\n\n return $rules;\n }", "title": "" }, { "docid": "310b85e88aaa2edd681bb6c0ab49f4da", "score": "0.7640041", "text": "public function rules()\n {\n $rules = [];\n if ($this->isMethod('post')) {\n $rules = [\n 'title' => 'required|string|min:3|max:20',\n 'country'=> 'required|string|min:2|max:30',\n 'city' => 'required|string|min:3|max:30',\n ];\n } elseif ($this->isMethod('put')) {\n $rules = [\n 'title' => 'required|string|min:3|max:20',\n 'country' => 'required|string|min:2|max:30',\n 'city' => 'required|string|min:3|max:30',\n ];\n }\n return $rules;\n }", "title": "" }, { "docid": "fe300ec6bec6561cac244c888270c017", "score": "0.76399946", "text": "public function rules()\n {\n switch($this->method())\n {\n case 'POST':\n {\n $rules= [\n 'name' => 'required|string|max:191',\n 'palestrante' => 'required', \n 'local' => 'required|max:255',\n 'date_time' => 'required',\n 'document' => 'nullable|max:150|url',\n ];\n return $rules;\n }\n case 'PUT':\n case 'PATCH':\n {\n return [\n 'name' => 'required|string|max:191',\n 'local' => 'required|max:255',\n 'palestrante' => 'required', \n 'date_time' => 'required',\n 'document' => 'nullable|max:150|url',\n ];\n }\n default:break;\n \n }\n return [\n \n ];\n }", "title": "" }, { "docid": "3f6567914683b75dbf27a3f6111bf08a", "score": "0.7635143", "text": "public function getRules()\n\t{\n\t\t$rules['cashier_session_id']\t= ['required', 'exists:' . app()->make(CashierSession::class)->getTable() . ',id' ];\n\t\t$rules['method'] \t= ['required', 'in:'.implode(',', config()->get('cashier.settlement_method'))];\n\t\t$rules['amount'] \t= ['required', 'numeric'];\n\t\t$rules['ref_id'] = ['nullable', 'numeric'];\n\t\t$rules['ref_type'] = ['nullable', 'string'];\n\t\t\n\t\treturn $rules;\n\t}", "title": "" }, { "docid": "be588f9f122adda1faf662687645bb9d", "score": "0.76108444", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n {\n return [\n 'prefix' => 'required|max:5',\n 'name_th' => 'required|max:100',\n 'name_en' => 'required|max:100',\n ];\n }\n case 'PUT':\n {\n return [\n 'prefix' => 'required|max:5',\n 'name_th' => 'required|max:100',\n 'name_en' => 'required|max:100',\n ];\n }\n default:\n break;\n }\n }", "title": "" }, { "docid": "493a957f8990b238ab3aab1a042255af", "score": "0.7602735", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return $this->rulesForCreate();\n case 'PUT':\n return $this->rulesForUpdate();\n default:\n break;\n }\n\n return [];\n }", "title": "" }, { "docid": "5fd01dbbd4ae37c1c4f693224d641939", "score": "0.75983995", "text": "public function rules()\n {\n $rules = $this->rules;\n\n return $rules;\n }", "title": "" }, { "docid": "8d391ad42a96b730d206ab32b5037652", "score": "0.7596716", "text": "public function rules()\n {\n // initiate rules\n $rules = [];\n \n // condition to check the request method\n switch ($this->method()) {\n // if the request method id POST rules will be payment_name that required\n // and if the request method is DELETE rules will be payment_id that required\n case 'POST':\n $rules['payment_name'] = 'required';\n break;\n case 'DELETE':\n $rules['payment_id'] = 'required';\n break;\n }\n\n // return array of rules\n return $rules;\n }", "title": "" }, { "docid": "e10425538949b029bbba01910301bfcb", "score": "0.7594831", "text": "public function rules()\n {\n $rules = [];\n foreach ($this->request->get('codigo_postal') as $key => $value) {\n $rules['codigo_postal.' . $key] = 'required|numeric';\n }\n foreach ($this->request->get('calle') as $key => $value) {\n $rules['calle.' . $key] = 'required';\n }\n foreach ($this->request->get('numero') as $key => $value) {\n $rules['numero.' . $key] = 'required';\n }\n foreach ($this->request->get('colonia') as $key => $value) {\n $rules['colonia.' . $key] = 'required';\n }\n foreach ($this->request->get('municipio') as $key => $value) {\n $rules['municipio.' . $key] = 'required';\n }\n foreach ($this->request->get('ciudad') as $key => $value) {\n $rules['ciudad.' . $key] = 'required';\n }\n foreach ($this->request->get('pais') as $key => $value) {\n $rules['pais.' . $key] = 'required';\n }\n foreach ($this->request->get('entidad_federativa') as $key => $value) {\n $rules['entidad_federativa.' . $key] = 'required';\n }\n return $rules;\n }", "title": "" }, { "docid": "42ab1d4aef30cecce7527fce51c7146c", "score": "0.7579594", "text": "public function rules()\n {\n switch ($this->validate_rule) {\n case config('validate.update_email'):\n $rules = ['email' => 'required|email|unique:users',];\n\n break;\n case config('validate.update_information'):\n $rules = [\n 'name' => 'required|string|max:255',\n 'phone' => 'required|string|max:15',\n 'date_of_birth' => 'required|string|max:20',\n 'address' => 'required|string',\n ];\n\n break;\n case config('validate.update_avatar'):\n $rules = ['photo' => 'required|image',];\n \n break;\n default:\n $rules = ['github_url' => 'required|string',];\n }\n \n return $rules;\n }", "title": "" }, { "docid": "f0782f46a6228941f91ad0325b4ea08e", "score": "0.7577833", "text": "public function rules()\n {\n switch($this->method())\n {\n // CREATE\n case 'POST':{\n $rules=[\n //'project_id' => 'required|numeric',\n 'stage_id' => 'required|numeric',\n 'thresholdinfo' => 'required|string',\n\n ];\n break;\n }\n case 'PATCH':{\n $rules=[\n 'thresholdinfo' => 'required|string',\n ];\n break;\n }\n // UPDATE\n case 'PUT':\n case 'GET':\n case 'DELETE':\n default:\n {\n return [];\n }\n }\n\n return $rules;\n }", "title": "" }, { "docid": "3fc00954ebc1872126d0ad42741263df", "score": "0.7573127", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST': {\n return [\n 'job_title_fr' => 'required',\n 'job_title_en' => 'required',\n 'link' => 'required',\n 'location' => 'required',\n 'job_type' => 'required'\n ];\n }\n case 'PUT':\n case 'PATCH': {\n return [];\n }\n default:\n break;\n }\n\n return [\n\n ];\n }", "title": "" }, { "docid": "7d908d2cb788afb4e555196bda719264", "score": "0.757236", "text": "public function rules()\n {\n switch ($this->route()->getName()) {\n case 'api.test-paper.store':\n return [\n 'user_id' => ['required', 'integer'],\n 'test_id' => ['required', 'integer'],\n 'minutes' => ['required', 'integer'],\n 'actual_score' => ['required', 'integer'],\n 'answers' => ['required', 'string'],\n ];\n break;\n }\n }", "title": "" }, { "docid": "87400bd803969d5af183cef06b705a1f", "score": "0.7549658", "text": "public function rules()\n {\n if($this->method() == 'POST') {\n return [\n 'name_ar' => 'required|string|max:191',\n 'name_en' => 'required|string|max:191',\n 'salary' => 'required|string|max:191',\n 'insurance' => 'required|string|max:191',\n 'gender' => 'required|in:F,M',\n ];\n } else if($this->method() == 'PUT') {\n return [\n 'name_ar' => 'required|string|max:191',\n 'name_en' => 'required|string|max:191',\n 'salary' => 'required|string|max:191',\n 'insurance' => 'required|string|max:191',\n 'gender' => 'required|in:F,M',\n ];\n }\n\n return [];\n }", "title": "" }, { "docid": "e449852aefe3f53bf6d7239f055aa46c", "score": "0.7545184", "text": "public function rules()\n\t{\n\t\treturn static::$rules;\n\t}", "title": "" }, { "docid": "c54cdd3b2da14a3fb4b1215b41772a31", "score": "0.75397813", "text": "public function rules()\n {\n switch ($this->getMethod()) {\n\n case 'POST':\n\n return [\n 'title' => 'required|string|max:255',\n 'description' => 'required|string|max:255',\n 'execution_date' => 'required|date',\n 'percentage_intermediary' => 'required|integer|min:1|max:100',\n ];\n\n case 'PUT':\n case 'GET':\n\n return [\n 'id' => 'required|integer|exists:orders,id',\n ];\n }\n }", "title": "" }, { "docid": "59d25543571a7f6bec1ebecd36bab054", "score": "0.75363225", "text": "public function rules()\n {\n if ($this->isMethod('post')) {\n return $this->createRules();\n } elseif ($this->isMethod('put')) {\n return $this->updateRules();\n }\n }", "title": "" }, { "docid": "021b0c74bb39bb182dc689720c1082d3", "score": "0.75321424", "text": "public static function getValidationRules()\n {\n return array(\n 'type' => 'required|in:'.implode(',', array_keys(Bubble::getTypes())),\n 'project_id' => 'required_if:type,project|exists:projects,id|numeric',\n 'quest_id' => 'required_if:type,quest|exists:quests,id|numeric',\n 'order' => 'numeric',\n );\n }", "title": "" }, { "docid": "28b465ae6adfb63cb22a3a93d4c724a9", "score": "0.75165886", "text": "public function rules()\n {\n switch ($this->getRequestMethod()) {\n case 'store':\n return [\n 'name' => 'nullable|string',\n 'names' => 'nullable|array',\n 'category' => 'required|integer|in:' . get_validate_in_string(DatabaseNotification::$categories),\n 'message' => 'required|string',\n 'start_at' => 'nullable|date',\n 'end_at' => 'nullable|date',\n 'status' => 'required|int|in:' . implode(',', array_keys(User::$statuses)),\n ];\n break;\n\n case 'reply':\n return [\n 'message' => 'required|string',\n ];\n break;\n }\n return [];\n }", "title": "" }, { "docid": "d707bb0769e974c2f417a897389d069a", "score": "0.75155175", "text": "public function rules()\n {\n return static::$rules;\n }", "title": "" }, { "docid": "364a13c2893d8efd75f00b506118239c", "score": "0.75133425", "text": "public function rules()\n {\n return ValidationTableRepository::getInstance()->getValidationForTable(static::getTable());\n }", "title": "" }, { "docid": "a1a34317b01599e3e29db008c67554cb", "score": "0.75006264", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n case 'POST': {\n return [\n 'display_name' => 'required',\n ];\n }\n case 'PUT':\n case 'PATCH': {\n return [\n 'display_name' => 'required',\n ];\n }\n }\n }", "title": "" }, { "docid": "19ce38209b9f70b160af4c62fe7e4ead", "score": "0.7500172", "text": "public function rules()\n {\n $rules = [\n 'name' => ['required']\n ];\n\n if (!$this->route('id')) {\n $rules['type_id'] = ['required', 'integer'];\n }\n\n return array_merge($rules, self::resolveValidationRules($this->input('type_id')));\n }", "title": "" }, { "docid": "31e91afa00dee4837a819848030b2f16", "score": "0.7499005", "text": "public function rules()\n {\n $rules = $this->rules;\n if(Request::isMethod('PATCH')){\n $rules['r_name'] = 'required|max:16|min:2';\n }\n return $rules;\n }", "title": "" }, { "docid": "12f4fbe79a73dec84e50a2406f68836b", "score": "0.74954253", "text": "public function rules()\n {\n switch($this->method()) {\n case 'GET':\n return [\n 'per_page' => 'min:1|integer',\n ];\n\n case 'POST':\n return [\n //\n ];\n\n case 'PUT':\n case 'PATCH':\n return [\n //\n ];\n\n default:\n return [\n //\n ];\n }\n }", "title": "" }, { "docid": "f4532ad0f2342b7c30f2267483fc260f", "score": "0.7490092", "text": "public function rules()\n {\n $rules = [\n 'title' => 'required',\n 'subject' => 'required',\n 'content' => 'required',\n ];\n\n $this->postMergeRule($rules, 'slug', 'required');\n\n return $rules;\n }", "title": "" }, { "docid": "562a47390e240c2e8cf88083ab73b383", "score": "0.7478887", "text": "public function rules()\n {\n\n switch($this->method()){\n case 'POST':\n $rules = [\n 'name' => 'required|string|max:90',\n 'email' => 'required|email',\n 'subject' => 'required|string|max:90',\n 'phone' => 'sometimes',\n 'message' => 'required|string', \n ]; \n break;\n case 'PATCH':\n $rules = [\n 'status' => 'sometimes|min:0|max:1',\n ]; \n case 'DELETE':\n $rules = [\n 'id.*' => 'required' \n ];\n break;\n default:\n $rules = [];\n }\n\n return $rules;\n\n \n }", "title": "" }, { "docid": "f619af17dfa0349d9493297034b319cd", "score": "0.74773455", "text": "public function rules()\n {\n switch($this->method())\n {\n case 'GET':\n break;\n case 'DELETE':\n break;\n case 'POST':\n {\n return [\n 'name' => 'required|min:3',\n 'code' => 'required|min:2',\n 'duration' => 'required|min:3|numeric',\n ];\n break;\n }\n case 'PUT':\n return [\n 'name' => 'required|min:3',\n 'id' => 'required|numeric|exists:exams',\n 'code' => 'required|min:2',\n 'duration' => 'required|min:3|numeric',\n ];\n break;\n case 'PATCH':\n break;\n default:\n break;\n }\n\n }", "title": "" }, { "docid": "4c6f1c1a31614b6cf405dbd44ea6e9a2", "score": "0.74727464", "text": "protected function getRules()\n {\n if (method_exists($this->model, 'validationRules')) {\n return $this->model->validationRules();\n }\n\n if (property_exists($this->model, 'validationRules')) {\n return $this->model->validationRules;\n }\n }", "title": "" }, { "docid": "5b814a64a3acb99e18f93805f08918ab", "score": "0.7472394", "text": "public function getRules() {\n return [\n 'actions' => [ 'required', ],\n 'user_edit' => [ 'required', 'rangeLogin', 'uniqueLogin', ],\n 'pass_edit' => [ 'required', 'confirmPassword', 'minPassword' ],\n 'pass_repeat_edit' => [ 'required', ],\n 'family_edit' => [ 'required', ],\n 'name_edit' => [ 'required', ],\n 'edit_user_id' => [ 'required', ],\n ];\n }", "title": "" }, { "docid": "bdf3579f828038eeaf97cb07780ec7fd", "score": "0.7472078", "text": "public function rules()\n {\n $rules = $this->rules;\n // Request::getPathInfo()方法获取命名路由,用来区分不同页面\n if(Request::getPathInfo() == '/admin/reg_sub'){ //路由为/admin/reg_sub的特有验证部分\n $rules['email'] = new ValidLoginEmail(); //自定义了一个email的规则\n $rules['code'] = 'required|between:4,4';\n $rules['title'] = new SimpleRule(); //自定义了一个简单的规则\n $rules['repository'] = [\n 'required',\n new ValidRepository($this->source(), Request()->branch)\n ];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "0c2bffd586aa8c674e0d501fe28a5c30", "score": "0.7470815", "text": "protected function getValidationRules(): array\n {\n return [\n new QueryComplexity(config('lighthouse.security.max_query_complexity', 0)),\n new QueryDepth(config('lighthouse.security.max_query_depth', 0)),\n new DisableIntrospection(config('lighthouse.security.disable_introspection', false)),\n ];\n }", "title": "" }, { "docid": "119ad8f3755c6d986b04519e27d456d9", "score": "0.746567", "text": "public function rules()\n {\n if ($this->isMethod('PUT') || $this->isMethod('PATCH')) {\n return $this->getUpdateRules();\n }\n\n return $this->getCreateRules();\n }", "title": "" }, { "docid": "e8d9aa85c4ddd35bf5be169d30dbc63f", "score": "0.7462552", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n // Validate User\n 'email' => 'required|unique:users,email|email',\n 'password' => 'required|min:6|max:30',\n 're_password' => 'required|same:password',\n 'name' => 'required|min:6|max:50',\n 'birthday' => 'required|date',\n 'phone' => 'required|min:10|max:12',\n 'address' => 'required',\n ];\n\n case 'PUT':\n case 'PATCH':\n default:\n return [];\n }\n }", "title": "" }, { "docid": "3dab997d91de85a319d8f1bad7021dda", "score": "0.74601465", "text": "public function rules()\n {\n $rules = [\n 'name' => ['required', 'min:2', 'max:255'],\n 'latitude' => ['required'],\n 'longitude' => ['required'],\n 'time_zone' => ['required'],\n ];\n\n if (in_array($this->method(), ['POST', 'CREATE'])) {\n $rules['country_code'] = ['required', 'min:2', 'max:2'];\n $rules['subadmin1_code'] = ['required'];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "2b53106c2d8dae7fa0b770ca86b770b2", "score": "0.74508816", "text": "public function rules()\n {\n $rules = [];\n switch ($this->method()){\n case 'POST':\n $rules = [\n 'first_name' => 'required|string|max:191',\n 'last_name' => 'required|string|max:191',\n 'email' => [\n 'required',\n 'email',\n Rule::unique('users')\n ],\n 'password' => 'string|min:8|max:191'\n ];\n break;\n case 'PUT':\n case 'PATCH':\n $id = $this->route('user');\n $rules = [\n 'name' => 'string|max:191',\n 'email' => [\n 'email',\n Rule::unique('users')->ignore($id)\n ],\n 'password' => 'string|min:8|max:191'\n ];\n break;\n case 'DELETE':\n case 'GET':\n default:\n break;\n }\n\n return $rules;\n }", "title": "" }, { "docid": "c75036feca27411d7d75806baeb5db7c", "score": "0.74482924", "text": "public function rules()\n {\n switch (strtoupper($this->getMethod())) {\n case 'PUT':\n return [\n 'quantity' => ['required', 'numeric', 'min:1'],\n ];\n break;\n default:\n return [\n 'quantity' => ['required', 'numeric', 'min:1'],\n 'goods_id' => ['required'],\n 'goods_specification_id' => ['required'],\n 'marketing_type' => ['in:App\\Models\\DiscountGoods'],\n 'marketing_id' => [\n 'required_with:marketing_type',\n new CheckGoodsMarketing(\n $this->get('goods_id', 0),\n $this->get('goods_specification_id', 0),\n $this->get('marketing_type', ''),\n $this->get('quantity', 0)\n )\n ]\n ];\n break;\n }\n }", "title": "" }, { "docid": "056b2e236d4d44ef1640af54def21bbd", "score": "0.744633", "text": "public function rules()\n {\n $rules = array();\n $rules['name'] = $this->validarName();\n $rules['horario_apertura'] = $this->validarHorarioApertura();\n $rules['horario_cierre'] = $this->validarHorarioCierre();\n $rules['web'] = $this->validarWeb();\n $rules['social'] = $this->validarSocial();\n $rules['type'] = $this->validarType();\n $rules['period'] = $this->validarPeriod();\n $rules['description'] = $this->validarDescription();\n\n return $rules;\n }", "title": "" }, { "docid": "38544f22064b6ab87123cc4adefb3a44", "score": "0.7445684", "text": "public function rules()\n {\n switch($this->method()) {\n case 'POST':\n return [\n 'userId' => 'required|unique:user,userId',\n 'email' => 'required|email|unique:user,email',\n\t 'password' => 'required',\n 'name' => 'required',\n 'lastname' => 'required',\n 'department_id' => 'required|exists:department,id',\n 'permission' => 'required|in:owner,admin,staff,premium,user'\n ];\n case 'PUT':\n return [\n 'email' => 'email',\n\t 'password' => '',\n 'name' => '',\n 'lastname' => '',\n 'department_id' => 'exists:department,id',\n 'permission' => 'in:owner,admin,staff,premium,user'\n ];\n default:\n return [];\n }\n }", "title": "" }, { "docid": "cd3d32f0e7a6b30a42fde7c5719a2e7a", "score": "0.7443789", "text": "private function getRules()\n {\n $rules = [\n \"titulo\" => \"required|string\",\n \"tipo\" => \"required|string|in:full-time,part-time\",\n \"categoria\" => \"required|integer|exists:categorias,id\",\n \"descripcion\" => \"required|string\",\n \"experiencia\" => \"required|integer|in:1,2,5,10\",\n \"salario_1\" => \"required|numeric\",\n \"salario_2\" => \"bail|nullable|numeric\",\n \"estado\" => \"required|string\",\n \"ciudad\" => \"required|string\",\n \"ubicacion\" => \"required|string\",\n \"contacto\" => \"required|string\",\n \"habilitado\" => \"nullable|boolean\",\n ];\n return $rules;\n }", "title": "" }, { "docid": "6255bf09623d0297ad6df82f37246fec", "score": "0.7439664", "text": "public function rules() {\n $rules = [\n\t 'cost_type' => 'required|min:1|max:6',\n\t 'value' => 'required|min:1',\n\t 'contract_partner_type' => 'required|min:1|max:6',\n\n\t 'partner_id' => 'required',\n 'description' => 'required|min:1|max:100',\n\t 'contracted_at' => 'required',\n\t 'realized_at' => 'required',\n\n\t 'payment_form' => 'required|min:1|max:100',\n\t 'payment_date' => 'required',\n\t\t];\n\t\tswitch ( $this->method() ) {\n\t\t\tcase 'GET':\n\t\t\tcase 'DELETE':\n\t\t\t{\n\t\t\t\treturn [];\n\t\t\t}\n\t\t\tcase 'POST':\n\t\t\t{\n\t\t\t\treturn $rules;\n\t\t\t}\n\t\t\tcase 'PUT':\n\t\t\tcase 'PATCH':\n\t\t\t{\n\t\t\t\treturn $rules;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t}", "title": "" }, { "docid": "4255ade1d94abafb3999810da1e4c3a1", "score": "0.7439358", "text": "public function rules()\n {\n switch($this->method())\n {\n case 'GET':\n case 'DELETE':\n {\n return [];\n }\n case 'POST':\n {\n return [\n 'bio' => 'required|min:3|max:255',\n 'experience' => 'required|min:3|max:60',\n 'address' => 'required|min:3|max:160',\n 'city' => 'required|min:3|max:60',\n 'state' => 'required|min:3|max:60',\n 'zip' => 'required|digits_between:3,5|integer',\n ];\n }\n case 'PUT':\n case 'PATCH':\n {\n return [\n 'bio' => 'required|min:3|max:255',\n 'experience' => 'required|min:3|max:60',\n 'address' => 'required|min:3|max:160',\n 'city' => 'required|min:3|max:60',\n 'state' => 'required|min:3|max:60',\n 'zip' => 'required|digits_between:3,5|integer',\n ];\n }\n default:break;\n }\n }", "title": "" }, { "docid": "0dcbe07edfec21a3f576a435646d19f8", "score": "0.7435011", "text": "public function rules()\n {\n switch(Route::currentRouteName()){ //当前路由别名\n case 'ywapplyPayReturn' :\n return [\n 'token' => 'required',\n 'yw_applyid' => 'required|integer',\n 'status' => 'required|integer',\n 'yw_billpics' => 'required_if:status,3',\n ];\n default :\n return [];\n }\n }", "title": "" }, { "docid": "07e7bb93d76f36f0bc29b7783a28acd7", "score": "0.743252", "text": "public function rules() {\n return array_get($this->rules, $this->getAction(), []);\n }", "title": "" }, { "docid": "510a5cb31b3fe21f30aade7ee0c28b6a", "score": "0.74324596", "text": "protected function parseValidationRules()\n {\n return [$this->getParameter() => $this->container->call([$this, 'rules'])];\n }", "title": "" }, { "docid": "8cd7cb1ced595cfbe76757342e535359", "score": "0.7427798", "text": "public function rules()\n {\n return static::getRules();\n }", "title": "" }, { "docid": "3362b9d8a0ff2fa72cd3b970ebbc05ff", "score": "0.7424502", "text": "public function rules() {\n\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return array();\n }\n case 'POST': {\n //Contact Us Form\n return array(\n 'name' => 'required|min:3',\n 'email' => 'required|email|min:3',\n 'message' => 'required|min:3',\n 'subject' => 'required|min:3',\n );\n }\n case 'PUT': {\n return array(\n 'first_name' => 'required|min:2',\n 'email' => 'required|email|min:3',\n 'phone' => 'required|min:3',\n 'address' => 'required|min:3',\n 'shipment_id' => 'required',\n 'promocode' => 'validcode|notexpire'\n );\n }\n case 'PATCH': {\n return array(\n 'f_name' => 'required|min:2',\n 'l_name' => 'required|min:2',\n 'email' => 'required|email|min:3',\n 'phone' => 'required|min:3',\n 'address' => 'required|min:3',\n 'gender' => 'required',\n 'country'=>'required'\n );\n }\n }\n }", "title": "" }, { "docid": "c3604b467f03c344b86bf5eecdd0cb9b", "score": "0.7424337", "text": "public static function getAllValidationRules()\n {\n return array_merge(\n self::$infoValidationRules,\n self::$passValidationRules\n );\n }", "title": "" }, { "docid": "04c9445b462ed8bdb8b7a0dfdffc0fc4", "score": "0.74188185", "text": "public function rules()\n {\n $atualGroupRoute = explode(\"::\", Route::currentRouteName());\n $atualRoute = end($atualGroupRoute);\n $validate = [];\n\n switch ($atualRoute) {\n case 'reloadSession':\n $validate = [\n 'password' => 'required|min:6'\n ];\n break;\n }\n\n return $validate;\n }", "title": "" }, { "docid": "8501e4295a74b0ba9797f75456a0c778", "score": "0.74178624", "text": "public function rules()\n {\n switch ($this->route()->getName()) {\n\t\t\tcase 'admin.login' :\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'name' => 'required|max:12|min:2',\n\t\t\t\t\t\t'password' => 'required|max:60|min:5'\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tdefault:\n\t\t\t\t{\n\t\t\t\t\treturn [];\n\t\t\t\t}\n\t\t}\n }", "title": "" }, { "docid": "f2266c75b8ad837bc4984ed7542b71c7", "score": "0.74057823", "text": "public function rules()\n {\n $rules = [\n 'page_title' => 'required',\n 'show_in_menu' => 'required',\n 'seo.controller' => 'required',\n 'seo.function' => 'required',\n ];\n\n $rules += $this->seoRules();\n\n return $rules;\n }", "title": "" }, { "docid": "8507514a709df8bbd0e4e23b758471d2", "score": "0.7395353", "text": "public function rules()\n {\n $rules = [\n 'name' => 'min:3|max:50|required',\n 'preposition' => 'max:10|nullable',\n 'last_name' => 'min:3|max:50|required',\n 'email' => 'min:5|max:50|email|unique:user,email,'.Auth::user()->id,\n 'function' => 'min:3|max:50|nullable',\n 'department_id' => 'integer|required|exists:department,id',\n\n ];\n\n if (isset($this->request->all()['password'])) {\n $rules += ['password' => 'min:5|max:30|confirmed'];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "e7b0626ebdc93b01844cb7ffcf7dfcf0", "score": "0.7394749", "text": "public function rules(): array\n {\n return $this->rules;\n }", "title": "" }, { "docid": "93d78eb0f8280f18f7a60e97d08d3cde", "score": "0.73933583", "text": "public function rules(Request $request)\n {\n $rules = $this->getRules($request->get('code'));\n\n return $rules;\n }", "title": "" }, { "docid": "9ccd1b58bc9a55c31b8771c0bc520b1c", "score": "0.7393202", "text": "public function rules() {\n $this->sanitize();\n return [\n 'key_stage' => 'required',\n 'year_group' => 'required',\n 'subject' => 'required',\n 'question_set' => 'required',\n 'assign_date' => 'required',\n 'completion_date' => 'required',\n ];\n }", "title": "" }, { "docid": "41dbe9df3f0e6f98bcd3d6ea162fb934", "score": "0.73931456", "text": "public function rules() {\n switch ($this->method()) {\n case 'POST':\n case 'PUT':\n case 'PATCH':\n return [\n //\n 'project_id' => 'required|integer',\n 'version_id' => 'required|integer',\n 'step_id' => 'required|integer',\n 'work_time' => 'required|integer',\n 'current_time' => 'required|date',\n 'body' => 'required|between:2,100',\n ];\n case 'GET':\n case 'DELETE':\n return [];\n\n }\n\n }", "title": "" }, { "docid": "2d157594f04a77aae2204b49f532b77f", "score": "0.7389781", "text": "public function rules()\n {\n $rules = array();\n\n if ($this->exists('titulo')) {\n $rules['titulo'] = $this->validarTitulo();\n }\n\n if ($this->exists('uri')) {\n $rules['uri'] = $this->validarUrl();\n }\n\n if ($this->exists('tipo')) {\n $rules['tipo'] = $this->validarTipo();\n }\n\n if ($this->exists('descripcion')) {\n $rules['descripcion'] = $this->validarDescripcion();\n }\n\n if ($this->exists('privacidad')) {\n $rules['privacidad'] = $this->validarPrivacidad();\n }\n\n if ($this->exists('tags')) {\n $rules['tags'] = $this->validarTags();\n }\n\n return $rules;\n }", "title": "" }, { "docid": "3225eb958c20b62d7d0585e81205613b", "score": "0.7389362", "text": "public function rules()\n {\n $rules = [\n 'email' => 'required|unique:users,email',\n 'password' => 'required|min:8',\n 'perfil_id' => 'required'\n ];\n\n $rules += $this->getDadosPessoaisRules();\n $rules += $this->getContatoRules();\n\n return $rules;\n }", "title": "" }, { "docid": "c03f3ddb79ec7ba96b4037ecd1d06fc0", "score": "0.7385394", "text": "public function rules()\n {\n $rules = [\n 'name' => 'required|string',\n ];\n\n if ($this->getMethod() == 'POST') {\n $rules['name'] = \"\";\n } else {\n $rules['name'] = \"\";\n }\n\n return $rules;\n }", "title": "" }, { "docid": "5f2c75adf7c0f9be34ed9532b798b82f", "score": "0.73824245", "text": "private function getValidationRules() {\n return [\n 'author_name' => 'required|string',\n 'author_email' => 'required|email',\n 'terms-conditions' => 'accepted',\n\n // TOREMEMBER SCOMMENTARE\n // TOTEST\n // 'service_number' => 'required_without: text',\n // 'text' => 'required without: service_number | string'\n ];\n }", "title": "" }, { "docid": "8bcf770276646d0d88b7e05eff62aea9", "score": "0.7375543", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST':\n case 'PUT':\n case 'PATCH': {\n return [\n 'project_id' => 'bail|required',\n 'car_no' => 'bail|required',\n 'device_id' => 'bail|required',\n 'project_phase_id' => 'bail|required',\n 'content' => 'bail|required',\n 'reason' => 'bail|required',\n 'handled_at' => 'bail|required',\n 'result' => 'bail|required',\n ];\n }\n default:\n return [];\n break;\n }\n }", "title": "" }, { "docid": "de95af73a26aeb0415f8bed4799ddf7c", "score": "0.73728365", "text": "public function rules()\n {\n $actionMethod = $this->route()->getActionMethod();\n\n if (! in_array($actionMethod, ['store', 'update'])) {\n return [];\n }\n\n if ($actionMethod == 'store') {\n return $this->resource->getCreationRules($this);\n }\n\n if ($actionMethod == 'update') {\n return $this->resource->getUpdateRules($this);\n }\n }", "title": "" }, { "docid": "91e5ec48b4a1f430a0834c98479dc3d7", "score": "0.7368973", "text": "public function rules()\n {\n if ($this->isRegister())\n return array_merge($this->primaryRules, [\n 'email' => 'required|email',\n 'password' => 'required|string|min:6',\n 'password_confirmation' => 'required|string|min:6',\n ]);\n\n return $this->primaryRules;\n }", "title": "" }, { "docid": "eb035d3feab5e875b6adf85eb6539612", "score": "0.7361124", "text": "public static function specificValidationRules()\n {\n return [];\n }", "title": "" }, { "docid": "c4fca8b26d2417a50dde3428d41b353d", "score": "0.735947", "text": "public function getValidationRules()\n {\n return [\n 'body' => ['required'],\n ];\n }", "title": "" }, { "docid": "e0ea4ba8b29581f2ad50e25d9179131b", "score": "0.7358614", "text": "private function getValidationRules()\n {\n $rules = $this->getSimpleRules();\n\n foreach ($this->getComplexRules() as $rule) {\n $rules->push(\n $this->{'get' . $rule . 'Rule'}()\n );\n }\n\n return $rules->values()->implode('|');\n }", "title": "" }, { "docid": "d46cfef698b44a19c1b1669fca6bd4b1", "score": "0.73536634", "text": "public function getValidationRules(): array;", "title": "" }, { "docid": "7d1bd4f60f8482c257c0238f4f6b31ba", "score": "0.73503643", "text": "public function rules()\n {\n return $this->rulesByType($this->getType());\n }", "title": "" }, { "docid": "cce92790a392d4ee473a08bb4aec3c2e", "score": "0.73377484", "text": "public function getRules() {\n return [\n 'user_id' => 'required|exists:users,id',\n 'amount' => 'required',\n 'fee' => 'required',\n 'order_id' => 'required',\n 'charge_id' => 'required',\n 'bardcode' => 'required',\n 'reference' => 'required',\n 'expired_at' => 'required',\n ];\n }", "title": "" }, { "docid": "b1dfd1c1502f80a1f559d5370f580e63", "score": "0.7335358", "text": "public function rules()\n {\n\t\tswitch($this->method()) {\n\t\t\tcase 'POST':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'name' => 'string|required',\n\t\t\t\t\t\t'web_agence' => 'boolean|required',\n\t\t\t\t\t\t'address' => 'string|nullable',\n\t\t\t\t\t\t'complement' => 'string|nullable',\n\t\t\t\t\t\t'zip_code' => 'string|nullable|max:10',\n\t\t\t\t\t\t'city' => 'string|nullable',\n\t\t\t\t\t\t'country_id' => 'integer|nullable',\n\t\t\t\t\t\t'website' => 'string|nullable',\n\t\t\t\t\t\t'email' => 'email|nullable',\n\t\t\t\t\t\t'actif' => 'boolean|nullable',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tcase 'PUT':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'name' => 'string|required',\n\t\t\t\t\t\t'web_agence' => 'boolean|required',\n\t\t\t\t\t\t'address' => 'string|nullable',\n\t\t\t\t\t\t'complement' => 'string|nullable',\n\t\t\t\t\t\t'zip_code' => 'string|nullable|max:10',\n\t\t\t\t\t\t'city' => 'string|nullable',\n\t\t\t\t\t\t'country_id' => 'integer|nullable',\n\t\t\t\t\t\t'website' => 'string|nullable',\n\t\t\t\t\t\t'email' => 'email|nullable',\n\t\t\t\t\t\t'actif' => 'boolean|nullable',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tdefault:break;\n\t\t}\n }", "title": "" }, { "docid": "c449b8f7bb5b8a1ecc386894a73ba209", "score": "0.7335088", "text": "public function rules()\n {\n $methodName = $this->getRequestMethod();\n switch ($methodName) {\n case 'store':\n return [\n 'name' => 'required|between:4,12|regex:/^[A-Za-z0-9\\-\\_]+$/|unique:admins',\n 'nick_name' => 'nullable|string',\n 'password' => 'required|string|min:6',\n 'operate_password' => 'nullable|string|min:6',\n 'language' => 'required|string',\n 'remarks' => 'nullable|string|max:255',\n 'sort' => 'nullable|integer|min:0',\n 'status' => 'nullable|boolean',\n 'admin_role_ids' => 'required|array',\n 'admin_role_ids.*' => 'required|integer|exists:admin_roles,id',\n ];\n break;\n\n case 'changePassword':\n case 'updatePassword':\n return [\n 'password' => 'required|string|min:6|confirmed',\n 'password_confirmation' => 'required|string|min:6',\n ];\n break;\n }\n\n }", "title": "" }, { "docid": "02143c637c1fe793b31b99dae9291b7f", "score": "0.7329458", "text": "public function rules()\n {\n\n if($this->method() === 'POST'){\n return [\n 'requested_at' => 'nullable|date',\n 'completed_at' => 'nullable|date',\n 'concern' => 'nullable|string',\n 'assessment' => 'nullable|string',\n 'solution' => 'nullable|string',\n 'user_id' => 'required',\n ];\n }\n return [];\n }", "title": "" }, { "docid": "78649369c5c9d925777c9f804b5cf2c9", "score": "0.732838", "text": "public function rules()\n {\n $user = Auth::user();\n\n if ('PUT' == Request::method()) {\n return [\n 'title' => ['required', 'max:255'],\n 'goodbye_text' => ['required', 'string', 'max:1000'],\n 'welcome_message' => ['required', 'string', 'max:1000'],\n 'redirect_url' => ['nullable', 'url'],\n 'require_password' => ['required', 'in:0,1'],\n 'password' => ['nullable', 'alpha_num', 'min:8'],\n 'visibility' => ['required', 'in:0,1'],\n 'question_color' => ['required', 'max:255'],\n 'answer_color' => ['required', 'max:255'],\n 'button_color' => ['required', 'max:255'],\n 'button_text_color' => ['required', 'max:255'],\n 'background_color' => ['required', 'max:255'],\n 'is_template' => ['required', 'in:0,1'],\n ];\n }\n }", "title": "" }, { "docid": "b5cb1ede50a42c941310ab316ddab38f", "score": "0.73247796", "text": "public function rules(): array\n {\n\n switch($this->method()) {\n // CREATE\n case 'POST':\n {\n return [\n 'display_name' => 'required',\n 'mobile' => 'required',\n 'address' => 'required'\n ];\n }\n // UPDATE\n case 'PUT':\n case 'PATCH':\n {\n\n return [\n 'display_name' => 'required',\n 'mobile' => 'required',\n 'address' => 'required'\n ];\n\n }\n case 'GET':\n case 'DELETE':\n default:\n {\n return [];\n };\n }\n }", "title": "" }, { "docid": "4f0ac7ab1eefd73c17f2bd1df40d8a9f", "score": "0.7315152", "text": "public function rules()\n {\n $validation = [];\n if ($this->method() == 'POST') {\n $validation = [\n 'name' => 'required|max:100',\n 'alias' => 'required|max:100|unique:conferences,alias,NULL,id,deleted_at,NULL'\n ];\n } elseif ($this->method() == 'PUT') {\n $validation = [\n 'name' => 'required|max:100',\n 'alias' => 'required|max:100|unique:conferences,alias,' . $this->route()->parameter('id') . ',id,deleted_at,NULL'\n ];\n }\n\n return $validation;\n }", "title": "" }, { "docid": "eeca381dad746dfce5988793a54f8e08", "score": "0.7311742", "text": "public function rules()\n {\n $rules = [];\n if($this->google_calendar_status == 'active'){\n $rules = [\n 'google_client_id' => 'required',\n 'google_client_secret' => 'required',\n ];\n }\n return $rules;\n\n }", "title": "" }, { "docid": "a7131888047981700af9d963378e801e", "score": "0.7305993", "text": "public function rules()\n {\n return $this->getMethod() == 'GET' ? [] : [\n 'name' => 'required|max:50',\n 'category_id' => 'required',\n 'type_id' => 'required',\n 'logo' => 'sometimes|image',\n 'market_price' => 'numeric',\n 'shop_price' => 'numeric',\n 'sort_num' => 'numeric',\n ];\n }", "title": "" } ]
7a9609fb4c88a6c0bee0028b7e017f38
line 2125 "smarty_internal_templateparser.php" line 228 "smarty_internal_templateparser.y"
[ { "docid": "a1ccb56e5db5f1061886c85152638768", "score": "0.58248067", "text": "function yy_r35(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -4]->minor),$this->yystack[$this->yyidx + -1]->minor)).'<?php echo ';\n $this->_retvalue .= $this->compiler->compileTag('private_modifier',array('modifier'=>$this->yystack[$this->yyidx + -3]->minor,'params'=>'ob_get_clean()'.$this->yystack[$this->yyidx + -2]->minor)).'?>';\n }", "title": "" } ]
[ { "docid": "def2c62ddc5ec58bb6aa2fb02dd9543d", "score": "0.7478451", "text": "function yy_r177(){\n $this->_retvalue = new _smarty_tag($this, $this->yystack[$this->yyidx + 0]->minor);\n }", "title": "" }, { "docid": "4953042c2bad30f7003cc54fc234e10f", "score": "0.74728805", "text": "function yy_r176(){ $this->_retvalue = new _smarty_code($this, '('.$this->yystack[$this->yyidx + -1]->minor.')'); }", "title": "" }, { "docid": "42fa3bffbc3ba619e310691a736a10bc", "score": "0.73206186", "text": "function yy_r169(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor->to_smarty_php(); }", "title": "" }, { "docid": "f6299190aaa19abae543fb8248388313", "score": "0.71527904", "text": "function yy_r171(){ $this->_retvalue = new _smarty_doublequoted($this, $this->yystack[$this->yyidx + 0]->minor); }", "title": "" }, { "docid": "dac17c81f23672ef56e59d539e649043", "score": "0.7152162", "text": "function yy_r124(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\\'smarty\\'') { $this->_retvalue = $this->compiler->compileTag('private_special_variable',$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index']).$this->yystack[$this->yyidx + 0]->minor;} else {\n $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -1]->minor['var'] .')->value'.$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index'].$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],\"'\"), null, true, false)->nocache;} }", "title": "" }, { "docid": "f04b51d1f5668bb4e5e02afa8404bdc7", "score": "0.7151697", "text": "function yy_r172(){ $this->_retvalue = new _smarty_code($this, $this->yystack[$this->yyidx + -1]->minor); }", "title": "" }, { "docid": "bcc3adcb7a50806c7146552c6b594cc5", "score": "0.7127023", "text": "function yy_r174(){if (isset($this->compiler->local_var[\"'\".substr($this->yystack[$this->yyidx + 0]->minor,1).\"'\"])) {\n $this->_retvalue = new _smarty_code($this, '$_smarty_tpl->tpl_vars[\\''. substr($this->yystack[$this->yyidx + 0]->minor,1) .'\\']->value');\n } else {\n $this->_retvalue = new _smarty_code($this, '$_smarty_tpl->getVariable(\\''. substr($this->yystack[$this->yyidx + 0]->minor,1) .'\\')->value');\n }\n $this->compiler->tag_nocache = $this->compiler->tag_nocache | $this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,\"'\"), null, true, false)->nocache;\n }", "title": "" }, { "docid": "ae7ee1d7f67360b4da70e1f785708743", "score": "0.7101701", "text": "function yy_r112(){ $this->_retvalue = '[$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor.']'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,\"'\"), null, true, false)->nocache; }", "title": "" }, { "docid": "7658684d83e433c4e68ccd21bbcdbd1a", "score": "0.70813775", "text": "function yy_r128(){ $this->_retvalue = '->{$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -1]->minor .')->value'.$this->yystack[$this->yyidx + 0]->minor.'}'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor,\"'\"), null, true, false)->nocache; }", "title": "" }, { "docid": "833cc6fb0daa5f544b281723f36f42d7", "score": "0.6926942", "text": "function yy_r103(){if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\\'smarty\\'') { $this->_retvalue = $this->compiler->compileTag('private_special_variable',$this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']);\n } else {\n if (isset($this->compiler->local_var[$this->yystack[$this->yyidx + 0]->minor['var']])) {\n $this->_retvalue = '$_smarty_tpl->tpl_vars['. $this->yystack[$this->yyidx + 0]->minor['var'] .']->value'.$this->yystack[$this->yyidx + 0]->minor['smarty_internal_index'];\n } else {\n $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + 0]->minor['var'] .')->value'.$this->yystack[$this->yyidx + 0]->minor['smarty_internal_index'];\n }\n $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor['var'],\"'\"), null, true, false)->nocache;} }", "title": "" }, { "docid": "e44590767db7fa8e2d2a6ac1dca78f01", "score": "0.69232315", "text": "function yy_r124(){\n $this->prefix_number++;\n $code = new Smarty_Compiler_Code;\n $code->iniTagCode($this->compiler);\n $code->php('$_tmp'.$this->prefix_number.'='.$this->yystack[$this->yyidx + 0]->minor.\";\\n\");\n $this->compiler->prefix_code[] = $code;\n $this->_retvalue = '$_tmp'.$this->prefix_number;\n }", "title": "" }, { "docid": "a589005aeafc4ec393d4d44c61b3d085", "score": "0.69212806", "text": "function yy_r139(){\n if ($this->security) {\n $this->compiler->error (self::Err2);\n }\n $this->prefix_number++;\n $code = new Smarty_Compiler_Code();\n $code->iniTagCode($this->compiler);\n $code->php(\"\\$_tmp{$this->prefix_number} = \" . $this->compiler->compileVariable(\"'\".$this->yystack[$this->yyidx + -3]->minor.\"'\") . ';')->newline();\n $this->compiler->prefix_code[] = $code;\n $this->_retvalue = '$_tmp'.$this->prefix_number.'('. implode(',',$this->yystack[$this->yyidx + -1]->minor) .')';\n }", "title": "" }, { "docid": "e20d8f5631fbc002a185232e4546340b", "score": "0.6916168", "text": "function yy_r108(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'smarty_internal_index'=>$this->yystack[$this->yyidx + 0]->minor); }", "title": "" }, { "docid": "ddf8fd805660e2744a5ca910ddad38cf", "score": "0.690771", "text": "function yy_r104(){if (isset($this->compiler->local_var[$this->yystack[$this->yyidx + -2]->minor])) {\n $this->_retvalue = '$_smarty_tpl->tpl_vars['. $this->yystack[$this->yyidx + -2]->minor .']->'.$this->yystack[$this->yyidx + 0]->minor;\n } else {\n $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor;\n }\n $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,\"'\"), null, true, false)->nocache; }", "title": "" }, { "docid": "53a6c045de16270abfbbef25c68bb0f5", "score": "0.6893831", "text": "function yy_r134(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\\''. $this->yystack[$this->yyidx + -3]->minor .'\\')->value;?>'; $this->_retvalue = '$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -1]->minor .')'; }", "title": "" }, { "docid": "4970045aba9422016aac3c8bbaa60b62", "score": "0.6878444", "text": "function yy_r101(){ if ($this->yystack[$this->yyidx + -2]->minor['var'] == '\\'smarty\\'') { $this->_retvalue = $this->compiler->compileTag('private_special_variable',$this->yystack[$this->yyidx + -2]->minor['smarty_internal_index']).'::'.$this->yystack[$this->yyidx + 0]->minor;} else {\n $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor['var'] .')->value'.$this->yystack[$this->yyidx + -2]->minor['smarty_internal_index'].'::'.$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor['var'],\"'\"), null, true, false)->nocache;} }", "title": "" }, { "docid": "d5e8152a1947f7fd153a700f6814b1b1", "score": "0.6836897", "text": "function yy_r106(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\\''. $this->yystack[$this->yyidx + -1]->minor .'\\')'; }", "title": "" }, { "docid": "26464bf29e48f7fad9eda214163225ed", "score": "0.68213093", "text": "function yy_r65(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\\')'; }", "title": "" }, { "docid": "2ff3b03f9c9469b541c87be06940d932", "score": "0.675524", "text": "function yy_r111(){ $this->_retvalue = '[$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + 0]->minor .')->value]'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable('$this->yystack[$this->yyidx + 0]->minor', null, true, false)->nocache; }", "title": "" }, { "docid": "e83240e15f5307a2d79fad1c20387e30", "score": "0.67473763", "text": "function yy_r105(){\n if ($this->yystack[$this->yyidx + 0]->minor['var'] == 'smarty') {\n $this->_retvalue = $this->compiler->compileTag('Internal_SpecialVariable',array(),$this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']);\n } else {\n $this->_retvalue = $this->compiler->compileVariable($this->yystack[$this->yyidx + 0]->minor['var']).$this->yystack[$this->yyidx + 0]->minor['smarty_internal_index'];\n }\n }", "title": "" }, { "docid": "eca177a87e895120518491ad8c4416fe", "score": "0.6732848", "text": "function yy_r9(){\n if ($this->is_xml) {\n $this->is_xml = false;\n $this->compiler->template_code->php(\"echo '?>';\\n\");\n } elseif ($this->php_handling == Smarty::PHP_PASSTHRU) {\n $this->compiler->template_code->php(\"echo '?>';\\n\");\n } elseif ($this->php_handling == Smarty::PHP_QUOTE) {\n $this->compiler->template_code->php(\"echo '?&gt;';\\n\");\n } elseif ($this->php_handling == Smarty::PHP_ALLOW) {\n $this->text_is_php = false;\n }\n }", "title": "" }, { "docid": "f7c3dc931e9ea57bd0b894b4bc0bf913", "score": "0.672538", "text": "function yy_r63(){\n $this->_retvalue = '$this->smarty->getStreamVariable(\\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\\')';\n }", "title": "" }, { "docid": "a5898276bb034bd924d62ebf07666bff", "score": "0.6722238", "text": "function yy_r128(){\n if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\\'smarty\\'') {\n $this->_retvalue = $this->compiler->compileTag('Internal_SpecialVariable',array(),$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index']).$this->yystack[$this->yyidx + 0]->minor;\n } else {\n $this->_retvalue = $this->compiler->compileVariable($this->yystack[$this->yyidx + -1]->minor['var']).$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index'].$this->yystack[$this->yyidx + 0]->minor;\n }\n }", "title": "" }, { "docid": "496349e07c7759c2dd33d87a211f5b9b", "score": "0.66877764", "text": "function yy_r106(){\n $this->_retvalue = '$_scope->_tpl_vars->' . trim($this->yystack[$this->yyidx + -2]->minor,\"'\") . '->' . $this->yystack[$this->yyidx + 0]->minor;\n }", "title": "" }, { "docid": "1b4733957c9321ff1d1769f68efae038", "score": "0.6644278", "text": "function yy_r132(){if (!$this->template->security || $this->smarty->security_handler->isTrustedPhpFunction($this->yystack[$this->yyidx + -3]->minor, $this->compiler)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t if ($this->yystack[$this->yyidx + -3]->minor == 'isset' || $this->yystack[$this->yyidx + -3]->minor == 'empty' || $this->yystack[$this->yyidx + -3]->minor == 'array' || is_callable($this->yystack[$this->yyidx + -3]->minor)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . \"(\". $this->yystack[$this->yyidx + -1]->minor .\")\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t } else {\n $this->compiler->trigger_template_error (\"unknown function \\\"\" . $this->yystack[$this->yyidx + -3]->minor . \"\\\"\");\n }\n } }", "title": "" }, { "docid": "854cf7abba4cfbbe0a97f435861afc0a", "score": "0.6633225", "text": "function yy_r10(){\n if ($this->php_handling == Smarty::PHP_PASSTHRU) {\n $this->compiler->template_code->php(\"echo '<%';\\n\");\n } elseif ($this->php_handling == Smarty::PHP_QUOTE) {\n $this->compiler->template_code->php(\"echo '&lt;%';\\n\");\n } elseif ($this->php_handling == Smarty::PHP_ALLOW) {\n if ($this->asp_tags) {\n if (!($this->compiler->template instanceof SmartyBC)) {\n $this->compiler->error (self::Err3);\n }\n $this->text_is_php = true;\n } else {\n $this->compiler->template_code->php(\"echo '<%';\\n\");\n }\n } elseif ($this->php_handling == Smarty::PHP_REMOVE) {\n if (!$this->asp_tags) {\n $this->compiler->template_code->php(\"echo '<%';\\n\");\n }\n }\n }", "title": "" }, { "docid": "eef840b5fdaabc0d05c5b92b97cd418a", "score": "0.65997607", "text": "function yy_r107(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; }", "title": "" }, { "docid": "f455383b4a66e41c25d6b43e3960b1f8", "score": "0.65709287", "text": "function yy_r178(){ $this->_retvalue = new _smarty_dq_content($this, $this->yystack[$this->yyidx + 0]->minor); }", "title": "" }, { "docid": "95e861c78d87ebac75a3e245019a255a", "score": "0.6569115", "text": "function yy_r110(){\n $this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'smarty_internal_index'=>$this->yystack[$this->yyidx + 0]->minor);\n }", "title": "" }, { "docid": "7d83df1699f5be144273ace8df67ea14", "score": "0.65338993", "text": "function yy_r103(){\n $this->prefix_number++;\n $code = new Smarty_Compiler_Code();\n $code->iniTagCode($this->compiler);\n $code->php(\"ob_start();\")->newline();\n $code->mergeCode($this->yystack[$this->yyidx + 0]->minor);\n $code->php(\"\\$_tmp{$this->prefix_number} = ob_get_clean();\")->newline();\n $this->compiler->prefix_code[] = $code;\n $this->_retvalue = '$_tmp'.$this->prefix_number;\n }", "title": "" }, { "docid": "0ec7b6305f6b10d6a97e6ef4e7833c3e", "score": "0.6420384", "text": "public function init_smarty()\n\t{\n\t\tparent::init_smarty();\n\t\t$this->set_flat_assigns(false);\n\t}", "title": "" }, { "docid": "d70f5201b1ca6be1fb5696af41dea14b", "score": "0.6420097", "text": "function yy_r2(){if ($this->template->extract_code == false) {\n $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor;\n } else {\n // store code in extract buffer\n $this->template->extracted_compiled_code .= $this->yystack[$this->yyidx + 0]->minor;\n $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor;\n } \n }", "title": "" }, { "docid": "f5f075ca61c74fb6df1c64551cc8a8b2", "score": "0.64054114", "text": "function yy_r11(){\n if ($this->php_handling == Smarty::PHP_PASSTHRU) {\n $this->compiler->template_code->php(\"echo '%>';\\n\");\n } elseif ($this->php_handling == Smarty::PHP_QUOTE) {\n $this->compiler->template_code->php(\"echo '%&gt;';\\n\");\n } elseif ($this->php_handling == Smarty::PHP_ALLOW) {\n if ($this->asp_tags) {\n $this->text_is_php = false;\n } else {\n $this->compiler->template_code->php(\"echo '%>';\\n\");\n }\n } elseif ($this->php_handling == Smarty::PHP_REMOVE) {\n if (!$this->asp_tags) {\n $this->compiler->template_code->php(\"echo '%>';\\n\");\n }\n }\n }", "title": "" }, { "docid": "36078d6645006df70206a67f27f4f709", "score": "0.6397455", "text": "function yy_r29(){\n $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array(array('value'=>$this->yystack[$this->yyidx + -1]->minor),array('var'=>$this->yystack[$this->yyidx + -3]->minor['var'])),$this->yystack[$this->yyidx + 0]->minor),array('smarty_internal_index'=>$this->yystack[$this->yyidx + -3]->minor['smarty_internal_index']));\n }", "title": "" }, { "docid": "031368c6ae5044777b5e0b8ecbf11862", "score": "0.6375477", "text": "function yy_r8(){\n if ($this->php_handling == Smarty::PHP_PASSTHRU) {\n $this->compiler->template_code->php(\"echo '<?php';\\n\");\n } elseif ($this->php_handling == Smarty::PHP_QUOTE) {\n $this->compiler->template_code->php(\"echo '&lt;?php';\\n\");\n } elseif ($this->php_handling == Smarty::PHP_ALLOW) {\n if (!($this->compiler->template instanceof SmartyBC)) {\n $this->compiler->error (self::Err3);\n }\n $this->text_is_php = true;\n }\n }", "title": "" }, { "docid": "e1098a302295f80ec21c03650f234ddc", "score": "0.63538957", "text": "function yy_r98(){\n $len = strlen($this->yystack[$this->yyidx + 0]->minor);\n $this->_retvalue = '$_scope->_tpl_vars->' . substr($this->yystack[$this->yyidx + 0]->minor,1,$len-3) . '->value' . substr($this->yystack[$this->yyidx + 0]->minor,$len-2);\n }", "title": "" }, { "docid": "ecefcd82ff6bb2e03248a74ed6475ce8", "score": "0.6287217", "text": "function yy_r137(){ return; }", "title": "" }, { "docid": "07f51efe97e13bef41e2853a70608a25", "score": "0.62504417", "text": "function yy_r136(){\n if (!$this->security || $this->compiler->context->smarty->security_policy->isTrustedPhpFunction($this->yystack[$this->yyidx + -3]->minor, $this->compiler)) {\n if (strcasecmp($this->yystack[$this->yyidx + -3]->minor,'isset') === 0 || strcasecmp($this->yystack[$this->yyidx + -3]->minor,'empty') === 0 || strcasecmp($this->yystack[$this->yyidx + -3]->minor,'array') === 0 || is_callable($this->yystack[$this->yyidx + -3]->minor)) {\n $func_name = strtolower($this->yystack[$this->yyidx + -3]->minor);\n if ($func_name == 'isset') {\n if (count($this->yystack[$this->yyidx + -1]->minor) == 0) {\n $this->compiler->error ('Illegal number of paramer in \"isset()\"');\n }\n $par = implode(',',$this->yystack[$this->yyidx + -1]->minor);\n preg_match('/\\$_scope->_tpl_vars->([0-9]*[a-zA-Z_]\\w*)(.*)/',$par,$match);\n if (isset($match[1])) {\n $search = array('/\\$_scope->_tpl_vars->([0-9]*[a-zA-Z_]\\w*)/','/->value.*/');\n $replace = array('$this->_getVariable(\\'\\1\\', null, false, false)','');\n $this->prefix_number++;\n $code = new Smarty_Compiler_Code();\n $code->iniTagCode($this->compiler);\n $code->php(\"\\$_tmp{$this->prefix_number} = \" .preg_replace($search, $replace, $par) . ';')->newline();\n $this->compiler->prefix_code[] = $code;\n $isset_par = '$_tmp'.$this->prefix_number.$match[2];\n } else {\n $this->prefix_number++;\n $code = new Smarty_Compiler_Code();\n $code->iniTagCode($this->compiler);\n $code->php(\"\\$_tmp{$this->prefix_number} = \" . $par . ';')->newline();\n $this->compiler->prefix_code[] = $code;\n $isset_par = '$_tmp'.$this->prefix_number;\n }\n $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . \"(\". $isset_par .\")\";\n } elseif (in_array($func_name,array('empty','reset','current','end','prev','next'))){\n if (count($this->yystack[$this->yyidx + -1]->minor) != 1) {\n $this->compiler->error (\"Illegal number of paramer in \\\"{$func_name}\\\"\");\n }\n $this->_retvalue = $func_name.'('.$this->yystack[$this->yyidx + -1]->minor[0].')';\n } else {\n $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . \"(\". implode(',',$this->yystack[$this->yyidx + -1]->minor) .\")\";\n }\n } else {\n $this->compiler->error (\"unknown function \\\"\" . $this->yystack[$this->yyidx + -3]->minor . \"\\\"\");\n }\n }\n }", "title": "" }, { "docid": "b1da794c9e6e2630af6421ee5d20be7f", "score": "0.61668074", "text": "function yy_r100(){if (!$this->template->security || $this->smarty->security_handler->isTrustedStaticClass($this->yystack[$this->yyidx + -2]->minor, $this->compiler)) {\n $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; \n } }", "title": "" }, { "docid": "59d9a042f18ad46600f094318c6b92f6", "score": "0.6157252", "text": "function yy_r109(){\n $this->_retvalue = \"\\$_scope->_tpl_vars->___config_var_{{$this->yystack[$this->yyidx + -2]->minor}}\".$this->yystack[$this->yyidx + 0]->minor;\n }", "title": "" }, { "docid": "b1e88086b2cfcf2d758c2e97623662e7", "score": "0.61494416", "text": "function yy_r1(){if ($this->template->extract_code == false) {\n $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;\n } else {\n // store code in extract buffer\n $this->template->extracted_compiled_code .= $this->yystack[$this->yyidx + 0]->minor;\n } \n }", "title": "" }, { "docid": "6a4447f51f963f706d4aafd6cdba1d61", "score": "0.6140785", "text": "function yy_r164(){ return; }", "title": "" }, { "docid": "38a12224be69914ef8b0332b42298906", "score": "0.6128479", "text": "function Smarty_Method_GetDebugTemplate($smarty)\r\n{\r\n return $smarty->debug_tpl;\r\n}", "title": "" }, { "docid": "648600badf4ce6c2fc62222e02ab4fcd", "score": "0.61202353", "text": "function yy_r171(){\n if (empty($this->db_quote_code_buffer)) {\n $this->db_quote_code_buffer = \"ob_start();\\n\";\n }\n $this->db_quote_code_buffer .= $this->yystack[$this->yyidx + -1]->minor->buffer;\n if ($this->block_nesting_level == count($this->compiler->_tag_stack)) {\n $this->prefix_number++;\n $code = new Smarty_Compiler_Code();\n $code->iniTagCode($this->compiler);\n $code->formatPHP( $this->db_quote_code_buffer . ' $_tmp'.$this->prefix_number.'=ob_get_clean();')->newline();\n $this->compiler->prefix_code[] = $code;\n $this->db_quote_code_buffer = '';\n $this->_retvalue = '$_tmp'.$this->prefix_number;\n } else {\n $this->_retvalue = false;\n }\n\n }", "title": "" }, { "docid": "390e930817d1b79f5f51f2cfb325a2f8", "score": "0.6109163", "text": "function yy_r110(){return; }", "title": "" }, { "docid": "403707d44561db91fe9d629de54d58dc", "score": "0.60768485", "text": "function yy_r34(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + -1]->minor).'<?php echo ';\n $this->_retvalue .= $this->compiler->compileTag('private_modifier',array('modifier'=>$this->yystack[$this->yyidx + -3]->minor,'params'=>'ob_get_clean()'.$this->yystack[$this->yyidx + -2]->minor)).'?>';\n }", "title": "" }, { "docid": "b0484cec115428eb48d9e51d09483656", "score": "0.5938212", "text": "function yy_r6(){\n if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU) {\n\t\t\t\t\t $this->_retvalue = self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor);\n } elseif ($this->sec_obj->php_handling == SMARTY_PHP_QUOTE) {\n $this->_retvalue = $this->compiler->processNocacheCode(htmlspecialchars($this->yystack[$this->yyidx + 0]->minor, ENT_QUOTES),false);\n }elseif ($this->sec_obj->php_handling == SMARTY_PHP_ALLOW) {\n $this->_retvalue = $this->compiler->processNocacheCode('<?php', true);\n }elseif ($this->sec_obj->php_handling == SMARTY_PHP_REMOVE) {\n $this->_retvalue = '';\n }\n }", "title": "" }, { "docid": "d7122fcd22b726d0dd3e3c7d2d427520", "score": "0.5932612", "text": "function yy_r27(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor,'var'=>\"'\".$this->yystack[$this->yyidx + -4]->minor.\"'\"),$this->yystack[$this->yyidx + -1]->minor)); }", "title": "" }, { "docid": "50ce784b4f9c58771a90f0bec5f6c874", "score": "0.592655", "text": "function CI_Smarty() {\n\t\t$this->compile_check = true;\n\t\t$this->debugging = false;\n\t\t$this->template_dir = 'system/application/templates/';\n\t\t$this->compile_dir = 'system/application/templates_c/';\n\t\t$this->config_dir = 'system/application/config/';\n\t}", "title": "" }, { "docid": "f81489d53447884191acfaa6c24239c8", "score": "0.5920443", "text": "function yy_r108(){\n $var = trim($this->yystack[$this->yyidx + -2]->minor,'\\'');\n $this->_retvalue = \"\\$_scope->_tpl_vars->___config_var_{$var}\".$this->yystack[$this->yyidx + 0]->minor;\n }", "title": "" }, { "docid": "cf6e004b9dfbdfc44b5f2edd0e1a5fa9", "score": "0.58730227", "text": "function yy_r112(){\n return;\n }", "title": "" }, { "docid": "84a0a0b0660fe1589f3837cc42735d48", "score": "0.5872121", "text": "function yy_r152(){$this->_retvalue = '<'; }", "title": "" }, { "docid": "4b748e4ae89827e1babbc949cb469745", "score": "0.58461136", "text": "function yy_r47(){ \n $this->_retvalue = $this->compiler->compileTag('foreach',array('from'=>$this->yystack[$this->yyidx + -7]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor,'key'=>$this->yystack[$this->yyidx + -4]->minor)); }", "title": "" }, { "docid": "559e15c528166be7e134085ad05a4eb5", "score": "0.5841359", "text": "function yy_r25(){ $this->_retvalue = $this->compiler->compileTag('assign',array('value'=>$this->yystack[$this->yyidx + -1]->minor,'var'=>\"'\".$this->yystack[$this->yyidx + -3]->minor.\"'\")); }", "title": "" }, { "docid": "04b267b3007dd3165b566a2c7c619535", "score": "0.58385783", "text": "function yy_r7(){\n $this->compiler->template_code->php('echo ')->string($this->yystack[$this->yyidx + 0]->minor)->raw(\";\\n\");\n }", "title": "" }, { "docid": "7c624e1d4c59f910148d51678ab372cd", "score": "0.58167917", "text": "function yy_r154(){$this->_retvalue = '<='; }", "title": "" }, { "docid": "ab28eee7a74ef1b78147088b908d7009", "score": "0.5816438", "text": "function smarty_function_assign_debug_info( $params, &$smarty )\r\n{\r\n $assigned_vars = $smarty->_tpl_vars;\r\n ksort( $assigned_vars );\r\n if ( @is_array( $smarty->_config[0] ) )\r\n {\r\n $config_vars = $smarty->_config[0];\r\n ksort( $config_vars );\r\n $smarty->assign( \"_debug_config_keys\", array_keys( $config_vars ) );\r\n $smarty->assign( \"_debug_config_vals\", array_values( $config_vars ) );\r\n }\r\n $included_templates = $smarty->_smarty_debug_info;\r\n $smarty->assign( \"_debug_keys\", array_keys( $assigned_vars ) );\r\n $smarty->assign( \"_debug_vals\", array_values( $assigned_vars ) );\r\n $smarty->assign( \"_debug_tpls\", $included_templates );\r\n}", "title": "" }, { "docid": "1730160e8e32215a3262e85e70cdc232", "score": "0.5811388", "text": "function yy_r13(){\n $this->is_xml = true; \n $this->compiler->template_code->php(\"echo '<?xml';\\n\");\n }", "title": "" }, { "docid": "4dc238b54965bef464db6c7a09c4b38c", "score": "0.5802649", "text": "function yy_r45(){\n $this->_retvalue = $this->compiler->compileTag('foreach',array('from'=>$this->yystack[$this->yyidx + -7]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor,'key'=>$this->yystack[$this->yyidx + -4]->minor)); }", "title": "" }, { "docid": "2f8aecabd490754dccf451818c22cdb3", "score": "0.5793162", "text": "function yy_r5(){\n if ($this->compiler->has_code) {\n $this->compiler->nocacheCode($this->yystack[$this->yyidx + -1]->minor,true);\n } else { \n $this->compiler->template_code->raw($this->yystack[$this->yyidx + -1]->minor);\n } \n $this->block_nesting_level = count($this->compiler->_tag_stack);\n }", "title": "" }, { "docid": "96a264f278928c2a832c94163160dd2d", "score": "0.578975", "text": "private function initSmarty() {\n\t\tself::$smarty = new Smarty();\n\t\tself::$smarty->template_dir = realpath(dirname(__FILE__) . \"/../templates/\");\n\t\tself::$smarty->compile_dir = realpath(dirname(__FILE__) . \"/../../cache/\");\n\t\tself::$smarty->assign(\"version\", self::getVersion());\n\t\tself::$smarty->assign(\"samePage\", Utils::getCleanPhpSelf());\n\t}", "title": "" }, { "docid": "da381e0860f05c4ea46e92a1a83e9ff7", "score": "0.5779343", "text": "function yy_r7(){if ($this->is_xml) {\n $this->compiler->tag_nocache = true; \n $this->is_xml = true; \n $this->_retvalue = $this->compiler->processNocacheCode(\"<?php echo '?>';?>\", $this->compiler, true);\n }elseif ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU) {\n\t\t\t\t\t $this->_retvalue = '?<??>>';\n } elseif ($this->sec_obj->php_handling == SMARTY_PHP_QUOTE) {\n $this->_retvalue = $this->compiler->processNocacheCode(htmlspecialchars('?>', ENT_QUOTES), false);\n }elseif ($this->sec_obj->php_handling == SMARTY_PHP_ALLOW) {\n $this->_retvalue = $this->compiler->processNocacheCode('?>', true);\n }elseif ($this->sec_obj->php_handling == SMARTY_PHP_REMOVE) {\n $this->_retvalue = '';\n }\n }", "title": "" }, { "docid": "8f5a2f7f774802bbf1eae01ee0683a77", "score": "0.57768553", "text": "function yy_r117(){ $this->_retvalue = '['.$this->compiler->compileTag('private_special_variable','[\\'section\\'][\\''.$this->yystack[$this->yyidx + -3]->minor.'\\'][\\''.$this->yystack[$this->yyidx + -1]->minor.'\\']').']'; }", "title": "" }, { "docid": "d4a31210f3d95f85107ada398db30db5", "score": "0.5772518", "text": "function yy_r44(){\n $this->_retvalue = $this->compiler->compileTag('foreach',array('from'=>$this->yystack[$this->yyidx + -4]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor)); }", "title": "" }, { "docid": "4d598be0157eab2a94df9a702a5622e2", "score": "0.57717377", "text": "function yy_r102(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + 0]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number; }", "title": "" }, { "docid": "4aacb64fccd2d3006cbdfe16aebe4d1f", "score": "0.5757319", "text": "function yy_r29(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + -1]->minor)); }", "title": "" }, { "docid": "f44456dc6e6b87c58ff95ef1ac80f903", "score": "0.5752473", "text": "function yy_r46(){ \n $this->_retvalue = $this->compiler->compileTag('foreach',array('from'=>$this->yystack[$this->yyidx + -4]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor)); }", "title": "" }, { "docid": "0046f5d74ec6a8bcefdd318805f86a56", "score": "0.57002014", "text": "function yy_r116(){ $this->_retvalue = '['.$this->compiler->compileTag('private_special_variable','[\\'section\\'][\\''.$this->yystack[$this->yyidx + -1]->minor.'\\'][\\'index\\']').']'; }", "title": "" }, { "docid": "7b611e1c291238c283eb1dbce190ae32", "score": "0.5700082", "text": "function Smarty() {\n // AppelÈ automatiquement ‡ l'instanciation de la classe.\n\n $this->Smarty();\n\n $this->template_dir = 'templates/';\n $this->compile_dir = 'templates_c/';\n $this->config_dir = 'configs/';\n $this->cache_dir = 'cache/';\n\n $this->caching = true;\n $this->assign('app_name', 'Menuiserie Bourachot');\n\n }", "title": "" }, { "docid": "ebaa2d9c185f5e30bf9fdbdfb3073ab9", "score": "0.56893694", "text": "function smarty_function_parameter($params, &$smartest_engine){\n \n}", "title": "" }, { "docid": "ac51a60754111a5580b819e23abc285e", "score": "0.5686206", "text": "public abstract function renderUncompiled(Smarty_Template_Source $source, Smarty_Internal_Template $_template);", "title": "" }, { "docid": "d8491e15eb4c3d6d482efb349bb7eab3", "score": "0.5660659", "text": "function yy_r9(){ $this->compiler->tag_nocache = true; $this->is_xml = true; $this->_retvalue = $this->compiler->processNocacheCode(\"<?php echo '<?xml';?>\", $this->compiler, true); }", "title": "" }, { "docid": "692b083aab2bb8f307b5face1c1b13d5", "score": "0.5660504", "text": "function yy_r50(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor.'close',$this->yystack[$this->yyidx + -1]->minor).'<?php echo ';\n $this->_retvalue .= $this->compiler->compileTag('private_modifier',array('modifier'=>$this->yystack[$this->yyidx + -3]->minor,'params'=>'ob_get_clean()'.$this->yystack[$this->yyidx + -2]->minor)).'?>';\n }", "title": "" }, { "docid": "701cf54ed2e6930ef4729cbe944be928", "score": "0.56579685", "text": "function yy_r134(){\n if ($this->security) {\n $this->compiler->error (self::Err2);\n }\n $this->_retvalue = '->{\\''.$this->yystack[$this->yyidx + -2]->minor.'\\'.'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}';\n }", "title": "" }, { "docid": "28a56bff794965b58f264589032b2aab", "score": "0.5644539", "text": "function yy_r17(){ $this->_retvalue = self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor); }", "title": "" }, { "docid": "636ae40b989710cac9d3b4ff5a6f36d7", "score": "0.5600397", "text": "function yy_r130(){ $this->_retvalue = '->{\\''.$this->yystack[$this->yyidx + -4]->minor.'\\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }", "title": "" }, { "docid": "2f66612f4b4063f6f4ff32c35cf29aca", "score": "0.55744994", "text": "function yy_r43(){ $this->_retvalue = $this->compiler->compileTag('foreach',$this->yystack[$this->yyidx + -1]->minor); }", "title": "" }, { "docid": "d62199218ee74ed84f5eaa467bd90511", "score": "0.55659586", "text": "function yy_r16(){\n\tif ($this->yystack[$this->yyidx + -6]->minor != $this->yystack[$this->yyidx + -1]->minor)\n\t{\n\t\t$closing = $this->yystack[$this->yyidx + -1]->minor;\n\t\t$opening = $this->yystack[$this->yyidx + -6]->minor;\n\t\tthrow new Exception(\\XF::string([\n\t\t\t\\XF::phrase('line_x', ['line' => $this->line]), ': ', \\XF::phrase('template_tags_not_well_formed', ['closing' => $closing, 'opening' => $opening])\n\t\t]));\n\t}\n\t$this->_retvalue = new Syntax\\Tag($this->yystack[$this->yyidx + -6]->minor, $this->yystack[$this->yyidx + -5]->minor ?: [], $this->yystack[$this->yyidx + -3]->minor ?: [], $this->line, false);\n }", "title": "" }, { "docid": "a671cf0c713f8ccf0cd70bc8b6d8b5a9", "score": "0.5564695", "text": "function yy_r32(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,array()); }", "title": "" }, { "docid": "33064ec80e67de992c02c35a2dd619e2", "score": "0.55535597", "text": "function yy_r168(){\n if (empty($this->db_quote_code_buffer)) {\n $this->_retvalue = '(string)$_scope->_tpl_vars->'. substr($this->yystack[$this->yyidx + 0]->minor,1) . '->value';\n } else {\n $this->db_quote_code_buffer .= 'echo (string)$_scope->_tpl_vars->'. substr($this->yystack[$this->yyidx + 0]->minor,1) . '->value;';\n $this->_retvalue = false;\n }\n }", "title": "" }, { "docid": "18e8c9beb0f4c67450355ab5e45bce98", "score": "0.55246305", "text": "function yy_r86(){$this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'='.$this->yystack[$this->yyidx + 0]->minor.';?>'; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.'$_tmp'.$this->prefix_number; }", "title": "" }, { "docid": "f33cf91a6b66450b313ee45be99ef5e8", "score": "0.5508342", "text": "function yy_r173(){\n $this->compiler->lex->yypopstate();\n $this->_retvalue = '';\n }", "title": "" }, { "docid": "0f0cee6f78e3787102259ef3add58a41", "score": "0.54767597", "text": "function yy_r14(){\n if ($this->text_is_php) {\n $this->compiler->prefix_code[] = $this->yystack[$this->yyidx + 0]->minor;\n $this->compiler->nocacheCode('', true);\n } else {\n // inheritance child templates shall not output text\n if (!$this->compiler->isInheritanceChild || $this->compiler->block_nesting_level > 0) {\n if ($this->strip) {\n $this->compiler->template_code->php('echo ')->string(preg_replace('![\\t ]*[\\r\\n]+[\\t ]*!', '', $this->yystack[$this->yyidx + 0]->minor))->raw(\";\\n\");\n } else {\n $this->compiler->template_code->php('echo ')->string($this->yystack[$this->yyidx + 0]->minor)->raw(\";\\n\");\n }\n }\n }\n }", "title": "" }, { "docid": "c0f835fb73d6d72303921718dd110f6b", "score": "0.54730076", "text": "function yy_r31(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,$this->yystack[$this->yyidx + -1]->minor); }", "title": "" }, { "docid": "273a4f176ab2e420d5a8991fd6b8cc45", "score": "0.5457042", "text": "function yy_r40(){\n $this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + 0]->minor,array(array('from'=>$this->yystack[$this->yyidx + -3]->minor),array('item'=>$this->yystack[$this->yyidx + -1]->minor))));\n }", "title": "" }, { "docid": "90ee3af4b8a7dbec22f292a37cc8c877", "score": "0.54467064", "text": "function yy_r30(){\n $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor);\n }", "title": "" }, { "docid": "12a708556b2e63dec5dab141eaeef32e", "score": "0.5432404", "text": "function yy_r131(){\n if ($this->security && substr($this->yystack[$this->yyidx + -1]->minor,0,1) == '_') {\n $this->compiler->error (self::Err1);\n }\n $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor;\n }", "title": "" }, { "docid": "df38cb69cd8861d1e04daa5ffbb0899d", "score": "0.5431088", "text": "function yy_r118(){\n $this->_retvalue = '['.$this->compiler->compileTag('Internal_SpecialVariable',array(),'[\\'section\\'][\\''.$this->yystack[$this->yyidx + -1]->minor.'\\'][\\'index\\']').']';\n }", "title": "" }, { "docid": "5a1b81d22e4984c51733a69ca970a7cb", "score": "0.54218745", "text": "function yy_r131(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; }", "title": "" }, { "docid": "6e2ef1adcc764c0a24a0d051c8e75308", "score": "0.54187596", "text": "function yy_r33(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)); }", "title": "" }, { "docid": "fd993214094900b936dc3bb0c28059fb", "score": "0.5417912", "text": "function yy_r12(){\n if ($this->strip) {\n $this->compiler->template_code->php('echo ')->string(preg_replace('![\\t ]*[\\r\\n]+[\\t ]*!', '', $this->yystack[$this->yyidx + 0]->minor))->raw(\";\\n\");\n } else {\n $this->compiler->template_code->php('echo ')->string($this->yystack[$this->yyidx + 0]->minor)->raw(\";\\n\");\n }\n }", "title": "" }, { "docid": "1592afa2441239de9248f3ef6ccac964", "score": "0.5409652", "text": "function yy_r144(){ $this->_retvalue = '$'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }", "title": "" }, { "docid": "45cce086b51fed9ff1c8a591606cff24", "score": "0.54058754", "text": "function yy_r123(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; }", "title": "" }, { "docid": "2d71618e2cc4110c990be68eca45ccd1", "score": "0.5405572", "text": "function yy_r119(){\n $this->_retvalue = '['.$this->compiler->compileTag('Internal_SpecialVariable',array(),'[\\'section\\'][\\''.$this->yystack[$this->yyidx + -3]->minor.'\\'][\\''.$this->yystack[$this->yyidx + -1]->minor.'\\']').']';\n }", "title": "" }, { "docid": "5f57d0fd97dbbb39226cd3632f498695", "score": "0.54012346", "text": "function yy_r138(){\n if ($this->security && substr($this->yystack[$this->yyidx + -3]->minor,0,1) == '_') {\n $this->compiler->error (self::Err1);\n }\n $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . \"(\". implode(',',$this->yystack[$this->yyidx + -1]->minor) .\")\";\n }", "title": "" }, { "docid": "eacfd4222e40ccb485b2ced4da14479d", "score": "0.53967196", "text": "function yy_r143(){ $this->_retvalue = '$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }", "title": "" }, { "docid": "34fa083c08bcd5281c56350921029bdd", "score": "0.5396336", "text": "function yy_r39(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; }", "title": "" }, { "docid": "4f63ee74d000eff1ce32636ab6f2190a", "score": "0.5394633", "text": "function yy_r28(){\n $this->_retvalue = $this->compiler->compileTag('Internal_PrintExpression',$this->yystack[$this->yyidx + 0]->minor,array('value'=>$this->yystack[$this->yyidx + -1]->minor));\n }", "title": "" }, { "docid": "d9b2ef81c16da49c59da9e6f35e207da", "score": "0.5394228", "text": "function yy_r127(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }", "title": "" }, { "docid": "64e1cf6ff3b376bf1b3fb7cfa43bb324", "score": "0.5393207", "text": "public abstract function getSmarty();", "title": "" } ]
3afcad21695ca9a5df78c399426598eb
getter per i dati del profilo
[ { "docid": "a1dc3a67dae2744f089215c7469949f2", "score": "0.0", "text": "function get_profile() {\n\n $query = query(\"SELECT * FROM profilo ORDER BY pro_id DESC LIMIT 1\");\n confirm($query);\n\n $row = fetch_array($query);\n return $row;\n\n}", "title": "" } ]
[ { "docid": "974c27012d453ecb9873fe5fef05c535", "score": "0.79207015", "text": "private function getProperti()\n\t{\n\t\t# code...\n\t}", "title": "" }, { "docid": "baac06b941b4a1e169ba1b0d47eb39b7", "score": "0.69633025", "text": "abstract public function getInfoProduk();", "title": "" }, { "docid": "4de693e8e777bfc6b2a8c9f847fcd353", "score": "0.68585247", "text": "public function getPropietario(){\n\n\t\t\treturn $this->propietario;\n\t\t}", "title": "" }, { "docid": "b1d2c297c915c4208c9f51fe32026334", "score": "0.68311495", "text": "public function getProyecto(){\n return $this->proyecto;\n }", "title": "" }, { "docid": "3bad913e9ff6c572599e53cd4df46893", "score": "0.68017864", "text": "public function __get($atributo)\n\t{\n\t\t// if (isset($this->propriedades[$atributo])) {\n\t\t// \treturn $this->propriedades[$atributo];\n\t\t// }\n\t\t// echo \"<p>Estou tentando acessar o atributo {$atributo}</p>\";\n\t}", "title": "" }, { "docid": "d82179f58e214a0b5f538fdc4338bfec", "score": "0.6686555", "text": "public function getProponente()\n {\n return $this->proponente;\n }", "title": "" }, { "docid": "56c0104147ed1b07dde443a4bd950f13", "score": "0.6560237", "text": "public function getProduto()\n {\n return $this->Produto();\n }", "title": "" }, { "docid": "06d14320c38f6661fffd1f694661573c", "score": "0.6555779", "text": "public function getProperty();", "title": "" }, { "docid": "d97784ebcbdcb2f85a5d75245017df05", "score": "0.65399945", "text": "public function getProducto()\n {\n return $this->producto;\n }", "title": "" }, { "docid": "e4617faccd9ba0d82e0a115641fdf49d", "score": "0.65052205", "text": "public function getOtro_proyecto(){\n return $this->otro_proyecto;\n }", "title": "" }, { "docid": "0256f348b1f42904485e85f047697b69", "score": "0.64486927", "text": "public function __get($atributo){\n return $this->$atributo;\n }", "title": "" }, { "docid": "31781afb5dad5746d5780ceb32e180bc", "score": "0.6388593", "text": "protected function get_info_parametro_proyecto()\n\t{\n\t\t$ep = $this->get_entorno_id_proyecto();\n\t\t$valor_p = isset( $ep ) ? $ep : 'No definida';\n\t\t$this->consola->mensaje(\"[-p id_proyecto] Asume el valor de la variable de entorno 'TOBA_PROYECTO': $valor_p\");\n\t}", "title": "" }, { "docid": "58d4e0ca2b4a49d00deda8ad652e6941", "score": "0.6387783", "text": "public function getProducto()\n {\n return $this->producto;\n }", "title": "" }, { "docid": "85b1c1772eadcf6962296cbef8f96a35", "score": "0.6363693", "text": "public function getPRO() : PRO {\n return $this->_PRO;\n }", "title": "" }, { "docid": "55b7e823c775a88a7cc12ecc6037f471", "score": "0.6350095", "text": "function getParametros(){\n\t\treturn $this->getObject(\"parametros\");\n\t}", "title": "" }, { "docid": "7acc3f997e1c110dc122f4b81aa5378c", "score": "0.6323431", "text": "public function lieu_portefolio()\r\n{\r\n return $this->_lieu_portefolio;\r\n}", "title": "" }, { "docid": "f56b73a1621738bf2725b6acc1de4e64", "score": "0.62894607", "text": "public function getPreu()\n{\nreturn $this->preu;\n}", "title": "" }, { "docid": "f2889da03cdbd5e34234832443cadede", "score": "0.62855", "text": "public function __get($propriedade)\n {\n return $this->$propriedade;\n\n if ($propriedade == \"saldo\") {\n formataSaldo();\n }\n }", "title": "" }, { "docid": "8810adb20bec22876deee35836d6501a", "score": "0.626117", "text": "public function getObjetivos_propuestos(){\n return $this->objetivos_propuestos;\n }", "title": "" }, { "docid": "e11012db098d076f61ab754c1ff66e57", "score": "0.62351555", "text": "function getFechaProy()\n {\n return $this->fechaProy;\n }", "title": "" }, { "docid": "762b484b021b3ffbd1389b0875f6b363", "score": "0.62299734", "text": "public function get_prova()\n {\n \n // loads the associated object\n if (empty($this->prova))\n $this->prova = new Prova($this->prova_id);\n \n // returns the associated object\n return $this->prova;\n }", "title": "" }, { "docid": "c1f2b87fbf4502b9379a9a6028fa8b89", "score": "0.61713517", "text": "public function getProdutos()\n {\n return $this->produtos;\n }", "title": "" }, { "docid": "b7059b83937bdef335ea713274786c8a", "score": "0.61685437", "text": "public function getP1(){return $this->p1;}", "title": "" }, { "docid": "cb36b1e1c325c6476e52b295479a873e", "score": "0.6151404", "text": "protected function getProperty() {\r\n\t\treturn $this->prop1 . \"<br />\";\r\n\t}", "title": "" }, { "docid": "41d988ef5630e853f64e2b33743a0ce8", "score": "0.61444056", "text": "public function getRelasiProdi()\n {\n return $this->belongsTo('App\\Prodi', 'prodi_id');\n }", "title": "" }, { "docid": "39e20df177173f7bbe94cacbae63cab0", "score": "0.61067325", "text": "public function getPreparo()\n {\n return $this->preparo;\n }", "title": "" }, { "docid": "316f0f08724e056d4083167f85d75196", "score": "0.60999304", "text": "public function get($propriedade) {\r\n\t\treturn $this->propriedades[$propriedade];\r\n\t}", "title": "" }, { "docid": "ba9c3101ebc8bba44a9f15957bcfeb2d", "score": "0.6073764", "text": "public function getProperty() {\n\t \treturn get_object_vars($this);\n\t }", "title": "" }, { "docid": "b5a97ba8028ab118eddd35a344a271c4", "score": "0.6060505", "text": "public function getPais(){\n return $this->pais;\n }", "title": "" }, { "docid": "e4bdfbd21f36b9203a4cc95c370b2bed", "score": "0.60468024", "text": "public function getProId()\n {\n return $this->pro_id;\n }", "title": "" }, { "docid": "16281abcea33bc7e799a7c32cf7c1218", "score": "0.6033514", "text": "function mostrar_propina($objeto){\n\t\t\t$sql=\"\tSELECT\n\t\t\t\t\t\tpropina\n\t\t\t\t\tFROM\n\t\t\t\t\t\tcom_configuracion\";\n\t\t\t// return $sql\n\t $result = $this->queryArray($sql);\n\t\t\t\n\t\t\treturn $result;\n\t\t}", "title": "" }, { "docid": "5f4f1395dec250c6f6fbb2d9a672d306", "score": "0.60253346", "text": "function getData_inicio()\n {\n return $this->data_inicio;\n }", "title": "" }, { "docid": "e802366590f1cbe09fd8090ae3d33e58", "score": "0.60097986", "text": "abstract public function get();", "title": "" }, { "docid": "e802366590f1cbe09fd8090ae3d33e58", "score": "0.60097986", "text": "abstract public function get();", "title": "" }, { "docid": "e802366590f1cbe09fd8090ae3d33e58", "score": "0.60097986", "text": "abstract public function get();", "title": "" }, { "docid": "baf9867e92abdc82375bdf5f1eb36a60", "score": "0.60074115", "text": "public function other_portefolio()\r\n{\r\n return $this->_other_portefolio;\r\n}", "title": "" }, { "docid": "da3411d411aa31bb2a14b2f95d580ffb", "score": "0.6006536", "text": "abstract function get();", "title": "" }, { "docid": "0ab71a1c53542f7f8f76640896748411", "score": "0.5998724", "text": "public function getParcela()\n {\n return $this->parcela;\n }", "title": "" }, { "docid": "d8202d6c6bc4eb78b4819fa489097b43", "score": "0.59980464", "text": "public function getProductos(){\n\t\n\treturn $this->productos;\n\t}", "title": "" }, { "docid": "27676def6d83fab51b6cbbbe9efbf687", "score": "0.59978443", "text": "public function getPersona(){\n return $this->persona;\n}", "title": "" }, { "docid": "bf248e425d414717c412ff58ec70b910", "score": "0.599537", "text": "public function getPrinom(){\n\t\treturn $this->prinom;\n\t}", "title": "" }, { "docid": "f149ebab7a6ccba447617ac15dc574a2", "score": "0.5982315", "text": "public function get_provas_geradas()\n {\n // loads the associated object\n if (empty($this->provas_geradas))\n $this->provas_geradas = new ProvasGeradas($this->provas_geradas_id);\n \n // returns the associated object\n return $this->provas_geradas;\n }", "title": "" }, { "docid": "40f9c06ef070a1add80f04a4807e9dea", "score": "0.5975887", "text": "function getProperty($propertyName){\n\t\t$props = Configuracion::getProperties();\n\t\treturn $props[$propertyName];\n\t}", "title": "" }, { "docid": "d5ea0c9b5b420924557f2a9bf95d63b3", "score": "0.59655386", "text": "public function getPromozioni(){\n return DBFacade::getIstance()->getAll(Promozione::class);\n }", "title": "" }, { "docid": "a3369e74d63f21c20ada984356b789c6", "score": "0.5962085", "text": "public function getDataOcorrencia();", "title": "" }, { "docid": "7237241153c31e2fb3a325920f287e3a", "score": "0.5955844", "text": "public abstract function get();", "title": "" }, { "docid": "7237241153c31e2fb3a325920f287e3a", "score": "0.5955844", "text": "public abstract function get();", "title": "" }, { "docid": "a4f4d3d40bcaa246b079dddfe54537df", "score": "0.5955257", "text": "public static function getters();", "title": "" }, { "docid": "a4f4d3d40bcaa246b079dddfe54537df", "score": "0.5955257", "text": "public static function getters();", "title": "" }, { "docid": "a4f4d3d40bcaa246b079dddfe54537df", "score": "0.5955257", "text": "public static function getters();", "title": "" }, { "docid": "a4f4d3d40bcaa246b079dddfe54537df", "score": "0.5955257", "text": "public static function getters();", "title": "" }, { "docid": "a4f4d3d40bcaa246b079dddfe54537df", "score": "0.5955257", "text": "public static function getters();", "title": "" }, { "docid": "1c4790d149cc5670f6673f92ecf002de", "score": "0.59447503", "text": "public function read_prop() {\n // Create query\n $query = 'SELECT *\n FROM ' . $this->table . ' \n WHERE kodeprop = ?\n\t\t\t\t\tORDER BY harga DESC';\n\n // Prepare statement\n $stmt = $this->conn->prepare($query);\n\n // Bind ID\n $stmt->bindParam(1, $this->kodeprop);\n\n // Execute query\n $stmt->execute();\n\t\t \n\t\t return $stmt;\n }", "title": "" }, { "docid": "0698e2e6b5c23248c962b32f7bbb9a02", "score": "0.59436005", "text": "public function get_prop($property);", "title": "" }, { "docid": "e7853685deee87f37ab8531462ec4fdf", "score": "0.5942177", "text": "function __get($prop)\n {\n if ( !isset($this->$prop) && isset($_SESSION[QT]['sys_stat_'.$prop]) ) $this->$prop = $_SESSION[QT]['sys_stat_'.$prop];\n if ( isset($this->$prop) ) return $this->$prop;\n echo 'cStats: undefined properties '.$prop;\n }", "title": "" }, { "docid": "3ebac8762ac73070535865422c86fc75", "score": "0.5939626", "text": "public function SacaPrecioPro($id) {\n $query=\"select precio from producto where id= \".$id.\" and oculto=0\";\n $pronom=$this->db->query($query);\n return $pronom->row()->precio;\n }", "title": "" }, { "docid": "74c64c58d94360f4a70831e026edcba9", "score": "0.5936822", "text": "public function getData(){ }", "title": "" }, { "docid": "047f0df2a27c1819e680f0f5667b244c", "score": "0.5934115", "text": "public static function GetProdData($pro_id = 0)\n\t\t{\n\t\t\t/*\n\t\t\t$Sql= \"SELECT * FROM products \n\t\t\t\t\t\t\t LEFT JOIN business_unit ON business_unit.buid = products.buid\n\t\t\t\t\t\t\t WHERE pid =\".$pro_id ;*/\n\t\t\t\t\n\t\t\t$Sql= \" SELECT * FROM AllProductsData WHERE ProdID =\".$pro_id ;\n\t\t\t\n\t\t\t$P_Data = Yii::app()->db->createCommand($Sql)->queryRow();\n\t\t\t\n\t\t\treturn $P_Data;\n\t\t}", "title": "" }, { "docid": "0e2124b355159f7ccfc871cbc955d011", "score": "0.59269726", "text": "public function evenement_portefolio()\r\n{\r\n return $this->_evenement_portefolio;\r\n}", "title": "" }, { "docid": "c59fe4f47e3e654baeb39ceb7cb8e6e7", "score": "0.59156764", "text": "public function getIdproblema()\n {\n return $this->idproblema;\n }", "title": "" }, { "docid": "668d3713064b0bbbccc24a7e0195f8a0", "score": "0.5907307", "text": "public function getProperty()\n {\n $num_args=func_num_args();\n switch ($num_args)\n {\n case 1:\n {\n $key = func_get_arg(0); \n return getProperty($key,NULL);\n break;\n }\n case 2:\n {\n $prop = $this;\n $key = func_get_arg(0); \n $value = func_get_arg(1); \n do\n {\n $thevalue = $prop->the_array[key];\n if ($thevalue != null)\n return $thevalue;\n $prop = $prop->$defaults;\n } while ($prop != NULL);\n break;\n }\n\n }\n\n }", "title": "" }, { "docid": "2cbb3db2fe3a1c2f88486c90e84f81c6", "score": "0.5901463", "text": "public function getPolizasListadoProduccion(){\n\t\t$estado_vigente = Domain_EstadoPoliza::getIdByCodigo('VIGENTE');\n\t\t$estado_afectada = Domain_EstadoPoliza::getIdByCodigo('AFECTADA');\n\t\t$estado_refacturado = Domain_EstadoPoliza::getIdByCodigo('REFACTURADO');\n\n\t\t$date = new DateTime();\n\t\t$hoy = $date->format('Y-m-d');\n\n\t\t$mes_pasado_timestamp = mktime(0, 0, 0, date(\"m\")-1, date(\"d\"), date(\"Y\"));\n\t\t$mes_pasado = date('Y-m-d',$mes_pasado_timestamp);\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->andWhere('estado_id = ? OR estado_id = ? OR estado_id = ?',array($estado_vigente,$estado_afectada,$estado_refacturado))\n\t\t//->andWhere(\"fecha_vigencia = ?\" , $fecha)\n\t\t->andWhere(\"fecha_vigencia between ? AND ?\", array($mes_pasado,$hoy))\n\t\t//->getSqlQuery();\n\t\t->execute()\n\t\t->toArray();\n\t\t//echo $rows;\n\t\t//exit;\n\t\treturn $rows;\n\n\t}", "title": "" }, { "docid": "3552bc52da66c8453e6de008e49528a4", "score": "0.58990866", "text": "function getIdProducto()\r\n\t {\r\n\t\t return $this->id_producto;\r\n\t }", "title": "" }, { "docid": "6d2bddb4f91bb176f2fb5d4b60a4ac7c", "score": "0.58973163", "text": "public function getPais_codi(){\n return $this->pais_codi;\n }", "title": "" }, { "docid": "2246cc08bd7753563a58306d96961944", "score": "0.58954394", "text": "public function getData()\n {\n return $this->properties;\n }", "title": "" }, { "docid": "973b1f237664910d73d1bb5e62566a18", "score": "0.58923507", "text": "function getValores();", "title": "" }, { "docid": "057bc0a23e7b992fe25de7f4462ee401", "score": "0.58745044", "text": "public function getEntrepriseProduitsList()\n\t{\n\t\treturn (Entreprise::where(['user_id' => Auth::user()->id])->first())->liste_produits;\n\t}", "title": "" }, { "docid": "bf995f5fc8e08d6a047c5ab2351c67c5", "score": "0.5871113", "text": "public function getIdProduktu() {\n return $this->idProduktu;\n }", "title": "" }, { "docid": "f8d6ef02186c1a5ac4dc013503686896", "score": "0.58699524", "text": "function getProveedor(){ \n return $this->proveedor;\n }", "title": "" }, { "docid": "189f49f222c2040b7c80d76fb857cbb5", "score": "0.5869802", "text": "function get_precio1($id) {\n\t\t$u = new Producto();\n\t\t//Buscar en la base de datos\n\t\t$u->get_by_id($id);\n\t\tif ($u->c_rows == 1) {\n\t\t\treturn $u->precio1;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "ee14e50e1c5963dbdecea832c90c0765", "score": "0.58690727", "text": "protected function getConfigData(){\n\n }", "title": "" }, { "docid": "422230bba3e2c0dc2ff5202d8ca12eb6", "score": "0.5865876", "text": "public function getDataVencimento();", "title": "" }, { "docid": "e3d0eb16774e923dd861e7ea9c5e0f93", "score": "0.58600116", "text": "public function getId_producto(){\n\t\treturn $this->id_producto;\n\t}", "title": "" }, { "docid": "35f8ff218e4c2a5ffd6533829018fd5f", "score": "0.58594376", "text": "abstract protected function _get();", "title": "" }, { "docid": "e7c4ee5694ab9ec23a7ea6c258f32533", "score": "0.58545667", "text": "public function getProperties();", "title": "" }, { "docid": "bd3c117a39438d7030b51f47f1a71114", "score": "0.5848544", "text": "public function getProducto_idProducto(){\n return $this->producto_idProducto;\n }", "title": "" }, { "docid": "e717ca2910e0c7e4cc61c82bfd8b6767", "score": "0.5847416", "text": "public function getConstante()\n {\n return ConfiguracionSystem::where('optionname','PISQUE_CONSTANTE')->get();\n }", "title": "" }, { "docid": "2fafa26011f134e5076f563aebc5def8", "score": "0.5841542", "text": "function get_data() {\r\n return $this->data;\r\n }", "title": "" }, { "docid": "c915919b0b8b40349eb3eb71dca034d0", "score": "0.5837946", "text": "function f_grabarPropiedad($per, $apa, $ord, $baj) {\n $oPro = new Propietario($per);\n $oPro->setPropiedad($apa, $baj, $ord);\n return $oPro->grabarPropiedades();\n}", "title": "" }, { "docid": "359c7580850ecc80f389fc47ec4dfd33", "score": "0.5837612", "text": "public function getProduto()\n {\n return $this->hasOne(Produto::className(), ['id' => 'id_produto']);\n }", "title": "" }, { "docid": "df107c6efbb57ad94341446a0615b1ca", "score": "0.58365345", "text": "public function get(){\n\n\t}", "title": "" }, { "docid": "11bea2ad6a10b1ff38fb06f1dd1dc9cd", "score": "0.5834351", "text": "function __get($prop) {\n\t\t\n\t\t// if ($value = parent::__get($prop)) return $value;\n\t\t\n\t\t// lazy load relations\n\t\t\n\t\tif ( isset(static::$hasOne[$prop]) && !isset($this->$prop) ) $this->hasOne($prop);\n\t\t ( isset(static::$richJoin[$prop]) ) ? $extraCols = (array) static::$richJoin[$prop] : $extraCols = [];\n\t\tif ( isset(static::$manyToMany[$prop]) && !isset($this->$prop) ) $this->manyToMany($prop, $extraCols);\n\t\tif ( isset(static::$hasMany[$prop]) && !isset($this->$prop) ) $this->hasMany($prop);\n\t\t\n\t\treturn parent::__get($prop);\n\t}", "title": "" }, { "docid": "a70811ef8c3a472aa02803b85287b7a9", "score": "0.5830061", "text": "function getDatosParametros()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'parametros'));\n $oDatosCampo->setEtiqueta(_(\"parametros\"));\n $oDatosCampo->setTipo('texto');\n $oDatosCampo->setArgument(30);\n return $oDatosCampo;\n }", "title": "" }, { "docid": "7c4ea5be36fc174380e17963280a1179", "score": "0.582988", "text": "protected function ImportValueFromData_Getter() {\n\n return $this->Form->GetValue($this->Name);\n }", "title": "" }, { "docid": "2c9b933d8c41fd0a480311c090bf0034", "score": "0.5828616", "text": "public function getallpromenade()\n\t\t\t{\n\t\t\t\t$data = $this->id_promenade;\n\t\t\t\t$data = $data.$this->nom_promenade;\n\t\t\t\t$data = $data.$this->desc_promenade;\n\t\t\t\t$data = $data.$this->date_debut_promenade;\n\t\t\t\t$data = $data.$this->date_fin_promenade;\n\t\t\t\t$data = $data.$this->localisation;\n\t\t\t\t$data = $data.$this->etat_promenade;\n\n\t\t\t\treturn $data;\n\t\t\t}", "title": "" }, { "docid": "f60704954b7e87cca930839f7b87d589", "score": "0.5811824", "text": "public function getData()\n {\n return parent::getData();\n }", "title": "" }, { "docid": "befe7194dd79cfabbc03a9d0effd7352", "score": "0.58051014", "text": "public function GetNoticia(){\r\n return $this -> __buscar; \r\n \r\n }", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.580474", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.580474", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.580474", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.580474", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.580474", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.580474", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.580474", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.580474", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.580474", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.580474", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.580474", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.580474", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.580474", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.580474", "text": "public function get();", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "02bb18e99ab0114befc8ce70b65ca36c", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n User::findOrFail($id)->update($request->all(),$id);\n return response([\n 'error' => false,\n 'updated' => true,\n 'message' => 'User updated!',\n ], 200);\n }", "title": "" } ]
[ { "docid": "995ba0c8f03901b2d9d4e3a2b71aed6a", "score": "0.7192627", "text": "public function put($resource);", "title": "" }, { "docid": "01534868cb4f609380c1221841e980b3", "score": "0.7055208", "text": "public function testUpdateResource()\n {\n\n }", "title": "" }, { "docid": "806a502be14c3132fb31b52b5f6fc652", "score": "0.6811669", "text": "public function update(Request $request, Resource $resource)\n {\n //\n $this->authorize('update', $resource);\n $input=$request->all();\n $resource->update($input);\n return redirect('/resource/'.$resource->id);\n }", "title": "" }, { "docid": "f5a994e832253cd9f55282b676779eee", "score": "0.665668", "text": "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'title' => 'required',\n 'content' => 'required',\n 'icon_id' => 'required'\n ]);\n \n $updateEntry = $resource;\n $updateEntry->title = $request->title;\n $updateEntry->content = $request->content;\n $updateEntry->icon_id = $request->icon_id;\n $updateEntry->save();\n return redirect('resources');\n }", "title": "" }, { "docid": "718f7d64347dbb970d3af2645ff41b28", "score": "0.6624096", "text": "public function update(Request $request, Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "718f7d64347dbb970d3af2645ff41b28", "score": "0.6624096", "text": "public function update(Request $request, Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "24dae383ef96f6cd3c2ae0eb901b0e6e", "score": "0.6533836", "text": "public function update_storage()\n {\n }", "title": "" }, { "docid": "2390e2b8ee9b8954b577e83f8820c087", "score": "0.64636725", "text": "public function update(Request $request, Resource $resource)\n {\n $this->save($resource, $request);\n\n return redirect()->route('resource.show', ['resource' => $resource]);\n }", "title": "" }, { "docid": "8467ecb0dbf1d9ccb84ac63dd18c0896", "score": "0.63440365", "text": "public function update(Request $request, storage $storage)\n {\n $storage->update($request->all());\n\n return redirect()->route('storage.index')->withStatus(__('storage successfully updated.'));\n }", "title": "" }, { "docid": "cc19cd46a06e40af74215bec5d1bff6f", "score": "0.62828", "text": "public function update(Request $request, Storage $storage)\n {\n //\n $data = $request->all();\n $update = Storage::findOrFail($request->storage_id);\n $data = $request->all();\n $ok = $update->update($data);\n\n if ($ok) {\n return back()->with('success', \"Activity updated successfully\");\n } else {\n return back()->with('error', \"Something wen't wrong! Please try again\");\n }\n }", "title": "" }, { "docid": "fa2a013f8711944438e691cb6cc55e66", "score": "0.6139667", "text": "public function update_object ($obj)\n {\n $this->_commit ($obj, Storage_action_update);\n }", "title": "" }, { "docid": "8b36ffcc87dfcd18f23af856d8853acc", "score": "0.6045223", "text": "public function replace(Resource $resource)\n {\n return $this->save($resource, $replace = true);\n }", "title": "" }, { "docid": "53fb2f47835e8885a16e9805805e80d8", "score": "0.60224766", "text": "public function update($resource)\n {\n if ($resource instanceof Model) {\n return $this->form()->update($resource->id);\n }\n\n return $this->form()->update($resource);\n }", "title": "" }, { "docid": "fae18446ab6ba766002815d7efd6d0f2", "score": "0.60153604", "text": "public function updateStream($resource)\n {\n return $this->filesystem->updateStream($this->path, $resource);\n }", "title": "" }, { "docid": "7fcd166007fa0df141cb1ff80f531590", "score": "0.59964967", "text": "public function update(Resource $resource) {\n\t\t$class = get_class($resource);\n\t\t$reflector = new ReflectionClass($class);\n\n\t\t$table = strtolower(substr($class, strrpos($class, \"\\\\\") + 1));\n\t\t$criteria = $resource->getRequiredEqualities();\n\t\t$populateCriteria = $criteria == null;\n\n\t\t$parameters = array();\n\t\tforeach($reflector->getProperties() as $parameter) {\n\t\t\tif($resource->isDirty($parameter->name)) {\n\t\t\t\t$parameters[$parameter->name] = $resource->{'get' . ucfirst(\\framework\\camelCase($parameter->name))}();\n\t\t\t} else if($populateCriteria) {\n\t\t\t\t$criteria[$parameter->name] = $resource->{'get' . ucfirst(\\framework\\camelCase($parameter->name))}();\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\t$this->driver->update($parameters, $table, $criteria);\n\t\t} catch (InvalidQueryException $exception) {\n\t\t\tthrow $exception; # Move it up the line.\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c578eae6b6dfa4e69347194aa71e0c56", "score": "0.5987175", "text": "public function update($object)\r\n\t{\r\n\t\tif(file_exists($this->conf->paths['storage'].\"/\".$object->get_id()))\r\n\t\t\t$fp = fopen($this->conf->paths['storage'].\"/\".$object->get_id(), \"w\");\r\n\t\tif(!$fp)\r\n\t\t\tthrow new Exception(\"Failed to open file: '\".$this->conf->paths['storage'].\"/\".$object->get_id().\"'\");\r\n\t\tfwrite($fp, serialize($object));\r\n\t\tfclose($fp);\r\n\t\t$this->update_stat();\r\n\t}", "title": "" }, { "docid": "fb6d6d2f47c01b40c3ee6f90a7b30eaa", "score": "0.59581053", "text": "public function update(Request $request, $id)\n {\n //\n $product=Shirts::find($id);\n // validation\n $this->validate($request,[\n 'name'=>'required',\n 'size'=>'required',\n 'price'=>'required',\n 'description'=>'required'\n ]);\n\n $oldImage=Input::get('image');\n\n $product->description =$request->input('description');\n $product->name = $request->input('name');\n $product->price = $request->input('price');\n $product->size = $request->input('size');\n\n $Image = $request->file('image');\n\n if($Image)\n {\n $filenameToStore= Products::updatePhoto('image','shirts',$request);\n\n $product->image = $filenameToStore;\n\n Storage::delete('public/photos/shirts/'.$oldImage);\n }\n\n $product->save();\n return redirect()->route('shirts.index');\n }", "title": "" }, { "docid": "0491a14749073a0385a7050311d8f458", "score": "0.595499", "text": "public function update(ResourceRequest $request, Resource $resource)\n {\n try {\n $resource = $this->resourceService->updateResource($request->all(), $resource);\n return $this->respondWithSuccess('Resource Updated.', ['resource' => new ResourceResource($resource)], Response::HTTP_ACCEPTED);\n } catch (Exception $e) {\n return $this->respondWithError($e->getMessage());\n }\n }", "title": "" }, { "docid": "98b58f9ade13a98b810ff57532876c2b", "score": "0.5909375", "text": "public function update(Request $request, $id)\n {\n $item = StoragePhoto::findOrFail($id);\n\n if ($request->hasFile('file')) {\n $oldFile = $item->file;\n\n $image = $request->file('image');\n $filename = time() . '.' . $image->getClientOriginalExtension();\n\n $path = $image->storeAs('public/storage_photos', $filename);\n\n $item->file = $filename;\n\n /* TODO - удалить старую пикчу */\n Storage::disk('public')->delete('storage_photos/' . $oldFile);\n }\n\n $item->save();\n\n return redirect()->route('admin.banners.index');\n }", "title": "" }, { "docid": "c505a7676741f8b0f0d5b54e66cdf22a", "score": "0.58993477", "text": "public static function register_or_update_storage_resource($storageResourceDesc, $update = false)\n {\n if ($update) {\n $storageResourceId = $storageResourceDesc->storageResourceId;\n \n if (Airavata::updateStorageResource(Session::get('authz-token'), $storageResourceId, $storageResourceDesc)) {\n $storageResource = Airavata::getStorageResource(Session::get('authz-token'), $storageResourceId);\n return $storageResource;\n } else\n print_r(\"Something went wrong while updating!\");\n exit;\n } else {\n $sr = new StorageResourceDescription( $storageResourceDesc);\n $storageResourceId = Airavata::registerStorageResource(Session::get('authz-token'), $sr);\n }\n $storageResource = Airavata::getStorageResource(Session::get('authz-token'), $storageResourceId);\n return $storageResource;\n\n }", "title": "" }, { "docid": "24392ed55179d91794136a7abc353e0b", "score": "0.5845655", "text": "function handle_put_pic($resource)\n{\n\t$owner = get_owner_of_pic_resource($resource);\n\tif(!authenticate_user($owner))\n\t{\n\t\theader(\"HTTP/1.1 403 Forbidden\");\n\t\tdie(\"You can only update your own resources!\");\n\t}\n\n\t$data = json_decode(file_get_contents(\"php://input\"));\n\n\t$owner = isset($data->owner) ? $data->owner : null;\n\t$info = isset($data->info) ? $data->info : null;\n\t$image_data = isset($data->image) ? $data->image : null;\n\n\t// All fields must be supplied\n\tif(is_null($owner) || is_null($info) || is_null($image_data))\n\t{\n\t\theader('HTTP/1.1 422 Unprocessable Entity');\n\t\tdie(\"owner, info and image fields must be supplied\");\n\t}\n\n\tupdate_pic_resource($resource, $owner, $info, $image_data);\n}", "title": "" }, { "docid": "996f4a8678aca25bf47aeb5352fb1d2d", "score": "0.5841891", "text": "public function update(Request $request, $resource)\n { \n $resource = RequiredDocument::find($resource);\n try {\n $resource->update($request->all()); \n } catch (\\Exception $th) {\n return responseJson(0, $th->getMessage());\n }\n return responseJson(1, __('done'));\n }", "title": "" }, { "docid": "96e56ee021bd9ebb23ab79ce64045619", "score": "0.57721734", "text": "public function update(Request $request, $id)\n {\n // return $request;\n /**\n * melakukan validasi\n */\n $this->validate($request, [\n 'title',\n 'type',\n 'creator',\n 'format',\n 'file' => '',\n 'image' => ''\n ]);\n\n DB::beginTransaction();\n try {\n $resource = Resource::find($id);\n // simpan tanpa gambar dan file\n $resource->update([\n 'title' => $request->title,\n 'subject_id' => $request->subject_id,\n 'description' => $request->description,\n 'creator' => $request->creator,\n 'source' => $request->source,\n 'publisher' => $request->publisher,\n 'date' => Carbon::now(),\n 'contributor_id' => Auth::user()->id,\n 'rights' => $request->rights,\n 'format' => $request->format,\n 'language' => $request->language,\n 'type_id' => $request->type_id,\n 'collection_id' => $request->collection_id,\n 'citation' => null\n ]);\n $resource->save();\n\n // olah gambar dan file\n $file = $request->file('file');\n if($file != NULL){\n $fileExt = $file->getClientOriginalExtension();\n $fileName = 'resource_' . $id . '.' . $fileExt;\n $tujuan_file = $this->path_resource_file;\n $file->move($tujuan_file,$fileName);\n \n $image = $request->file('image');\n $imageExt = $image->getClientOriginalExtension();\n $imageName = 'image_' . $id . '.' . $imageExt;\n $tujuan_image = $this->path_resource_image;\n $image->move($tujuan_image,$imageName);\n \n $resource->update([\n 'file' => $fileName,\n 'image' => $imageName\n ]);\n $resource->save();\n }\n DB::commit();\n return redirect()->route('admin.oer.resource.index')->with('status','Resource berhasil diupdate');\n } catch (\\Throwable $th) {\n DB::rollBack();\n return redirect()->route('admin.oer.resource.index')->with('status','Resource gagal diupdate');\n }\n }", "title": "" }, { "docid": "3b6c3aaa23b4fb918ebc093545c13dc6", "score": "0.57525045", "text": "public function update($entity);", "title": "" }, { "docid": "7fa7323735ca22c15cfa4866e023dcb7", "score": "0.57337505", "text": "public function setResource($resource);", "title": "" }, { "docid": "79170e0c428aa8840550d2f009bc0bd5", "score": "0.57258964", "text": "public function edit($id)\n\t{\n\t\t// the specified resource from storage.\n\t \n\t}", "title": "" }, { "docid": "68611877d8742448025a8506ebac8d13", "score": "0.5723295", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "title": "" }, { "docid": "eaa9290a68686ebc6d5bfe4b4d4da3ed", "score": "0.57221985", "text": "public function update(ResourceUpdateRequest $request, int $id)\n {\n if (auth()->user()->user_type_id == 0){\n return redirect('/admin/resources')->with(['error' => 'Unauthorized!']);\n }\n $subjects = $this->Subject->GetAllAndOrder('name', 'asc')->pluck('name', 'id');\n $courses = $this->Course->GetAllAndOrder('name', 'asc')->pluck('name', 'id');\n\n // Validated Request\n $data = $request->validated();\n\n //Handle File Upload\n if ($request->hasFile('pdf_path')) {\n $ext = $request->file('pdf_path')->getClientOriginalExtension();\n $pdf_path = 'CI_' . time() . '.' . $ext;\n $PDFPath = $request->file('pdf_path')->storeAs('public/cover_images', $pdf_path);\n }\n\n // if ($request->hasFile('video_path')) {\n // $ext = $request->file('video_path')->getClientOriginalExtension();\n // $video_path = 'CI_' . time() . '.' . $ext;\n // $VideoPath = $request->file('video_path')->storeAs('public/cover_images', $video_path);\n // }\n\n if ($request->hasFile('audio_path')) {\n $ext = $request->file('audio_path')->getClientOriginalExtension();\n $audio_path = 'CI_' . time() . '.' . $ext;\n $AudioPath = $request->file('audio_path')->storeAs('public/cover_images', $audio_path);\n }\n\n $entity = $this->Resource->UpdateResource(\n $data['name'],\n $data['description'],\n $data['subject_id'],\n $pdf_path,\n $audio_path,\n $data['video_path'],\n $id\n );\n\n if ($entity == null) {\n return redirect()->back()->withInput()->with(['error' => 'Error encountered while updating user, Please try again!', 'subjects'=>$subjects, 'courses'=>$courses]);\n }\n\n return redirect(\"/admin/resources\")->with(['success' => $entity->name.' Resource Updated!']);\n }", "title": "" }, { "docid": "069b4ac7f6c57fe9a04373680c642655", "score": "0.5707731", "text": "public function update(Request $request, $id)\n {\n $this->validate($request,[\n 'social_name'=>'required',\n 'link'=>'required'\n ]);\n $path=$request->old_image;\n if($request->hasFile('icon')){\n if($path!=null){\n unlink('storage/',$path);\n }\n $path=$request->file('icon')->store('Icon');\n }\n $social=Social::where('id',$id)->first();\n $social->name=$request->social_name;\n $social->icon=$path;\n $social->link=$request->link;\n $social->save();\n return redirect()->route('listSocial');\n }", "title": "" }, { "docid": "f47b9d570ea05e0c010d421e6ee2956d", "score": "0.570513", "text": "public function update(Request $request, $id)\n {\n \n $product= Product::find($id);\n\n $product->fill($request->all())->save();\n\n if($request->file('file')){\n\n $photo =Storage::disk('public')->put('files', $request->file('file'));\n $product->fill(['file'=>asset($photo)])->save();\n //$product->fill($request->all())->save();\n\n }\n return redirect()->route('products.index')->with('info','Actualizacion exitosa.');\n }", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.5691853", "text": "public function update($object);", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.5691853", "text": "public function update($object);", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.5691853", "text": "public function update($object);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "aa791f30f13ec2f303130ddbd0ce5da7", "score": "0.56709456", "text": "public function update ($object);", "title": "" }, { "docid": "d1cbfd525b1daec79739ff0e6ccf1268", "score": "0.56673855", "text": "public function testUpdateById()\n {\n $server = $this->server->getByAssetId('78453');\n $rams = $this->ram->getByServerId($server->getId(), 1, 100, true);\n $this->assertTrue($this->ram->updateById($rams[0]['id'], ['size' => '6']));\n }", "title": "" }, { "docid": "1473bff93d350e39f21ce4988672250e", "score": "0.56635326", "text": "public function setResource(?Resource $resource)\n {\n if($this->exists) {\n $this->rewriteResource = true;\n }\n\n $this->resource = $resource;\n }", "title": "" }, { "docid": "0b3db3a626ff99124139d26b53736d7f", "score": "0.56604844", "text": "public function setResource(?string $resource): void;", "title": "" }, { "docid": "069d6ef83ac999fe8c81dd1c3b87e822", "score": "0.565091", "text": "function update_pic_resource($resource, $owner, $info, $image_data)\n{\n\t$pics_table = TABLE_PICS;\n\n\t// Check whether resource exists\n\t$db = connect_database();\n\t$res = $db->prepare(\"SELECT * FROM $pics_table WHERE id=?\");\n\t$input = array($resource);\n\t$res->execute($input);\n\n\tif(!($res))\n\t{\n\t\theader('HTTP/1.1 500 Internal Server Error');\n\t\tdie(\"Database error\");\n\t}\n\n\n\t// Resource does not exist?\n\tif($res->rowCount() != 1)\n\t{\n\t\theader('HTTP/1.1 404 Not Found');\n\t\tdie();\n\t}\n\n\t// Update owner\n\tif(!is_null($owner))\n\t{\n\t\t$res = $db->prepare(\"UPDATE $pics_table SET owner=? WHERE id=?\");\n\t\t$input = array($owner, $resource);\n\t\t$res->execute($input);\n\n\t\tif(!($res))\n\t\t{\n\t\t\theader('HTTP/1.1 500 Internal Server Error');\n\t\t\tdie(\"Database error\");\n\t\t}\n\t}\n\n\t// Update image info\n\tif(!is_null($info))\n\t{\n\t\t$res = $db->prepare(\"UPDATE $pics_table SET info=? WHERE id=?\");\n\t\t$input = array($info, $resource);\n\t\t$res->execute($input);\n\n\t\tif(!($res))\n\t\t{\n\t\t\theader('HTTP/1.1 500 Internal Server Error');\n\t\t\tdie(\"Database error\");\n\t\t}\n\t}\n\n\t// Update actual image\n\tif(!is_null($image_data))\n\t{\n\t\t// Get filename from database\n\t\t$res = $db->prepare(\"SELECT filename FROM $pics_table WHERE id=?\");\n\t\t$input = array($resource);\n\t\t$res->execute($input);\n\t\t$row = $res->fetch(PDO::FETCH_ASSOC);\n\t\t$filename = $row['filename'];\n\n\t\t// Save data to file\n\t\t$res = file_put_contents(BASE_IMAGE_DIR.$filename, base64_decode($image_data));\n\t\t// FIXME: Check result\n\t}\n}", "title": "" }, { "docid": "8eaf334df7b5605dd932f3d2e8a41f85", "score": "0.5650028", "text": "public function update(Request $request, $id)\n {\n $item = Item::find($id);\n if ($request->file('file')) {\n $path = $request->file('file')->store('app/public/img');\n $item->path = $path = 'storage'.substr($path, 10);\n }\n $item->name = $request->input('name');\n\n $item->sizes()->detach();\n if($request->input('sizes')) {\n foreach ($request->input('sizes') as $size) {\n $item->sizes()->attach($size);\n }\n }\n $item->save();\n return redirect()->route('index');\n }", "title": "" }, { "docid": "5291290bcd969edf6f73d602449094f5", "score": "0.5647362", "text": "public function update(StoreRequest $request, $id)\n {\n if ($request->file('image')){\n $path = $request->file('image')->store('images','public');\n $request->validated();\n $data = [\n 'image' => $path,\n 'title' => $request->title,\n 'text' => $request->text,\n ];\n Slider::whereId($id)->update($data);\n return redirect()->route('admin.sliders.index')->with('succsess', 'Данные были обновленны успешно');\n }\n else {\n $request->validated();\n $data = [\n 'image' => $request->hiddenImage,\n 'title' => $request->title,\n 'text' => $request->text,\n ];\n Slider::whereId($id)->update($data);\n return redirect()->route('admin.sliders.index')->with('succsess', 'Данные были обновлены успешно');\n }\n }", "title": "" }, { "docid": "c0f5addccae14c8f29d848399d71595d", "score": "0.5644971", "text": "public function update(Request $request, $id)\n {\n //\n \n $user = User::find($id);\n if($request->has('name'))\n {\n $user->name=$request->get('name');\n }\n\n // TODO: Handle 404 error\n if($request->hasFile('avatar'))\n {\n $featuredImage = $request->file('avatar');\n $filename = time().$featuredImage->getClientOriginalName();\n // Storage::disk('images')->putFileAs($filename, $featuredImage,$filename);\n \n //Storage::putFile('public/images', $featuredImage,'public');\n\n $path= Storage::put('public/images/', $featuredImage, 'public');\n\n // Storage::putFile('photos', new File('/path/to/photo'), 'public');\n\n }\n\n $user->avatar = url($path);\n\n $user->save();\n\n return new UserResource($user);\n }", "title": "" }, { "docid": "3225745ceb37b1c7e09aa4ce56382df1", "score": "0.563803", "text": "public function update(Request $request, $id)\n {\n\n // AIzaSyBT7FGQguFSd8ajZiuAt1zk4LCaM9LAbWo\n try\n {\n $this->validate($request, [\n 'address' => 'required',\n 'latitude' => 'required',\n 'longitude' => 'required',\n ]);\n\n $storage = Storage::findOrFail($id);\n\n $storage->address = $request->input('address');\n $storage->latitude = $request->input('latitude');\n $storage->longitude = $request->input('longitude');\n\n $storage->save();\n\n return redirect()->route('storages.index')->with('success', \"The storage <strong>$storage->address</strong> has successfully been updated.\");\n }\n catch (ModelNotFoundException $ex) \n {\n if ($ex instanceof ModelNotFoundException)\n {\n return response()->view('errors.'.'404');\n }\n }\n }", "title": "" }, { "docid": "c8f367908b757c81a8edc82408118665", "score": "0.5618928", "text": "public function update(StoreProductRequest $request, $id)\n {\n $product = Product::findOrFail($id);\n\n $path = $product->photo;\n $file = '/public/'.$path;\n\n if ($request->file('photo')) {\n $path = $request->file('photo')->store('photos', 'public');\n }\n\n $product->update([\n 'name' => $request->name,\n 'description' => $request->description,\n 'price' => $request->price,\n 'category_id' => $request->category_id,\n 'photo' => $path\n ]);\n\n if (Storage::exists($file) AND $path != self::DEFAULT_IMAGE_STORAGE_URL) {\n Storage::delete($file);\n }\n\n return redirect()->route('admin.products.index')->with('success', 'Product has been updated successfully!');\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": "859149ae859a2b4652938544f4f690ac", "score": "0.55987424", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required|max:255',\n 'price' => 'required|numeric|min:0',\n 'url' => 'nullable|max:255',\n 'manufacturer' => 'exists:manufacturers,id'\n ]);\n \n //$image_store = request()->file('image')->store('/Users/kieranmurphy/Documents/Uni/webAppDev/assignment2/prod/public/products_images');\n $image_store = request()->file('image')->store('', 'public');\n $product = Product::find($id);\n $product->name = $request->name;\n $product->price = $request->price;\n $product->url = $request->url;\n $product->image = $image_store;\n $product->manufacturer_id = $request->manufacturer;\n $product->save();\n return redirect(url(\"product/$product->id\"));\n }", "title": "" }, { "docid": "cf289fdccd02b9207ca528e586bf8602", "score": "0.55945903", "text": "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n\n $product->product_name = $request->input('product_name');\n $product->product_desc = $request->input('product_desc');\n $product->product_condition = $request->input('product_condition');\n $product->product_price = $request->input('product_price');\n $product->brand_id = $request->input('brand_id');\n $product->state_id = $request->input('state_id');\n $product->area_id = $request->input('area_id');\n $product->subcategory_id = $request->input('subcategory_id');\n $product->user_id = auth()->id();\n\n if ($request->hasFile('product_image')) {\n # code...\n $path = $request->product_image->store('public/uploads');\n $product->product_image = $request->product_image->hashName();\n }\n\n $product->save();\n\n // flash('Product successfully updated')->overlay();\n alert()->success('Successfully updated.', 'Good Work!')->autoclose(3000);\n\n return redirect() ->route('products.index');\n }", "title": "" }, { "docid": "08bd864d1d979d05f0f5badd1d9c880d", "score": "0.5584394", "text": "public function update(Request $request,$id)\n {\n\n\n\n\n if ($request->hasFile('file')){\n $todo = Todo::find($id);\n $nam = class_basename($todo->photo);\n Storage::delete('images/'.$nam);\n $path = $request->file('file')->store('images');\n\n\n }else {\n $todo = Todo::find($id);\n $path = $todo->photo;\n }\n $item = Todo::find($id);\n $item->photo = $path;\n $item->text = $request->text;\n $item->update();\n return redirect()->route('slide.index')\n ->with('success','Slider updated successfully');\n }", "title": "" }, { "docid": "5fed529c5b080f27dd2e01ca8fc4ac47", "score": "0.557354", "text": "public function update(Request $request, $id)\n {\n $product = Products::findOrFail($id);\n $product->fill($request->all());\n if (!$request->hasFile('inputFile')) {\n\n } else {\n $imageName = time().'.'.$request->inputFile->extension();\n $request->inputFile->move(public_path('uploads'), $imageName);\n $product->image = 'uploads/'.$imageName;\n }\n $product->save();\n return redirect()->route('product.index');\n }", "title": "" }, { "docid": "5d4b1ffc9d0784b5904148d809883df2", "score": "0.55700654", "text": "public function update(Request $request,$id): \\Illuminate\\Http\\RedirectResponse\n {\n $product = Product::find($id);\n $product->name =$request->name;\n $product->price =$request->price;\n $path = $request->file('image')->store('/image', 'public');\n $product->image = $path;\n $product->save();\n if ($request->hasFile('image')) {\n $file = $request->file('image');\n $file->storeAs('public/image', 'anh_' . $product->id);\n }\n return redirect()->route('product.index');\n }", "title": "" }, { "docid": "af33e60c955c4d563496960443215622", "score": "0.55682975", "text": "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n $product -> ProductName = $request->name;\n $product -> ProductPrice = $request->price;\n $product -> ProductCount = $request->count;\n $product -> ProductName = $request->name;\n $product -> Size = $request->size;\n $product -> Type = $request->type;\n $product -> Brand = $request->brand;\n $product -> Sale = $request->sale;\n $product -> Note = $request->note;\n\n if($request['ImageUpload']){\n\n $ProductImage = $request['ImageUpload'];\n $ext = $ProductImage->getClientOriginalExtension();\n $name = time().'_'.$ProductImage->getClientOriginalName();\n Storage::disk('public')->put($name,File::get($ProductImage));\n $product->ProductImage = $name;\n \n }\n\n $product->save();\n \n return redirect()->back();\n }", "title": "" }, { "docid": "8906f32f155d40c8f8a49be55b1f4a18", "score": "0.55671555", "text": "public function update(Request $request, $id)\n {\n $request_data = $request->all();\n $item = Products::find($id);\n\n // 判斷是否有更新圖片\n if($request->hasFile('img')){\n // 刪除原有圖片\n Storage::disk('public')->delete($item->img);\n // 上傳新的圖片\n $file_name = $request->file('img')->store('','public');\n $request_data['img'] = $file_name;\n }\n // 更新資料\n $item->update($request_data);\n return redirect('/home/product');\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": "2727357bb406596eb8dfe8891f67ccfc", "score": "0.55604166", "text": "public function update(Request $request, EventResource $eventResource): JsonResponse\n {\n if ($request->has('type')) {\n $eventResource->type = $request->type;\n }\n\n if ($request->hasFile('url')) {\n Storage::disk('event')->delete($eventResource->url);\n $eventResource->url = $request->url->store('/', 'event');\n }\n\n if (!$eventResource->isDirty()) {\n return $this->errorResponse(\n 'Se debe especificar al menos un valor diferente para actualizar',\n );\n }\n $eventResource->saveOrFail();\n return $this->api_success([\n 'data' => new EventResourceResource($eventResource),\n 'message' => __('pages.responses.updated'),\n 'code' => 200\n ]);\n }", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "2cfa3f035d49122191c6037f7c1b1ce1", "score": "0.55438745", "text": "public function update(Request $request, $id)\n {\n\n\n $data = $request->all();\n $data['Photo'] = $request->file('Photo')->store(\n 'assets/wisata', 'public'\n );\n\n $item = Gallery::findOrFail($id);\n\n $item->update($data);\n\n return redirect()->route('gallery.index');\n }", "title": "" }, { "docid": "b6ff7a39be0c5754d44a62a820354b5a", "score": "0.55404127", "text": "public function update(Request $request, $id)\n {\n $product = ProductService::update($id,$request);\n return new ProductResource($product);\n }", "title": "" }, { "docid": "abb88a7c05d8fee17d4ac3a6820978dd", "score": "0.5531798", "text": "public function setResource(Resource $resource);", "title": "" }, { "docid": "0cd1468122b5df0652960de9beec7153", "score": "0.5530294", "text": "protected function _update() {\n $name = $this->name;\n $identifier = $this->getIdentifier($name);\n $this->identifier = $identifier;\n }", "title": "" }, { "docid": "e4e5746029a652a8af6357dfd0ecfb0a", "score": "0.55277145", "text": "public function updateRecord($record, ResourceObjectInterface $resource, EncodingParametersInterface $params);", "title": "" }, { "docid": "7475c4693bb0f704a1fb08bd9326903b", "score": "0.55227137", "text": "public function onUpdate(ResourceEvent $e)\n {\n return $this->onPatch($e);\n }", "title": "" }, { "docid": "659edc6c8bc72bf94adc8569c8ce32c9", "score": "0.55171585", "text": "public function put($id, $data);", "title": "" }, { "docid": "a1a5da45e646cd439edfe58999c79c91", "score": "0.5516766", "text": "public function update(Request $request, Product $product)\n {\n \n \n $product->name = $request->name;\n $product->description = $request->description;\n $product->cost = $request->cost;\n $product->acquired_at = $request->dateAcq;\n $product->condition = $request->condition;\n $product->serial_no = $request->serial_no;\n $product->category_id = $request->category;\n $product->quantity = $request->quantity;\n $product->acquired_at = $request->acquired_at;\n $product->manufacturer_id = $request->manufacturer;\n $product->supplier_id = $request->supplier;\n \n if($request->file(\"image\") != null){\n $image = $request->file(\"image\");\n $image_name = time().\".\".$image->getClientOriginalExtension();\n $destination = \"images/\";\n $image->move($destination, $image_name);\n $product->img_path = $destination.$image_name;\n }\n\n $product->save();\n //hint 3: where to go back after editing the product\n return redirect(\"/products/\".$product->id);\n\n }", "title": "" }, { "docid": "f009b4c5e467cb86d91dd277d8f582d8", "score": "0.5515574", "text": "public function update(Request $request, $id)\n {\n $image = $request->newphoto;\n if ($image) {\n $img = Supplier::findOrFail($id);\n $old_imgPath = $img->photo;\n unlink($old_imgPath);\n\n $position = strpos($request->newphoto,';');\n $sub = substr($request->newphoto, 0 ,$position);\n $ext = explode('/', $sub)[1];\n $img_name = time().'.'.$ext;\n Image::make($request->newphoto)->resize(240,240)->save('backend/supplier/'.$img_name);\n $img_url = 'backend/supplier/'.$img_name;\n Supplier::findOrFail($id)->update([\n 'name' => $request->name,\n 'email' => $request->email,\n 'phone' => $request->phone,\n 'address' => $request->address,\n 'shopname' => $request->shopname,\n 'photo' => $img_url,\n 'created_at' => Carbon::now(),\n ]);\n \n }else{\n $old_img = $request->photo;\n Supplier::findOrFail($id)->update([\n 'name' => $request->name,\n 'email' => $request->email,\n 'phone' => $request->phone,\n 'address' => $request->address,\n 'shopname' => $request->shopname,\n 'photo' => $old_img,\n 'created_at' => Carbon::now(),\n \n ]);\n }\n }", "title": "" }, { "docid": "53ffba08b9cf71fb87cb5e0af2376524", "score": "0.551535", "text": "public function update(Request $request, $id)\n {\n $rules = array(\n 'name' => 'required',\n 'category' => 'required',\n 'photo' => 'image|mimes:jpeg,png,jpg,gif,svg|max:1024',\n );\n $validator = Validator::make($request->all(), $rules);\n\n // process the login\n if ($validator->fails()) {\n\n return Redirect::back()->withErrors($validator);\n\n\n } else {\n\n $product = Product::find($id);\n $file = $request->file('photo');\n if ($file){\n\n $path = $file->hashName();\n $image = Image::make($file);\n Storage::put($path, (string)$image->encode());\n $image->resize(100, 100, function ($constraint) {\n $constraint->aspectRatio();\n });\n Storage::put('thumb_' . $path, (string)$image->encode());\n $product->photos = $path;\n $product->save();\n }\n DB::beginTransaction();\n\n try {\n\n\n $product->attributesValues()->sync($request->get('attributes'));\n $product->name = $request->name;\n $product->category_id = $request->category;\n $product->save();\n\n DB::commit();\n } catch (\\Throwable $err) {\n DB::rollBack();\n return Redirect::back()->withErrors($err->getMessage());\n }\n\n\n return Redirect::to('product')->with('status', 'product successfully changed');\n }\n }", "title": "" }, { "docid": "59a46299e3ae479658e854c41ed9b55c", "score": "0.551217", "text": "public function update(Request $request, $client, $resource)\n\t{\n\t\t$resource = Resource::findBySlug($client, $resource);\n\n\t\tif (!$resource) {\n\t\t\treturn response(view('resources.404'), 404);\n\t\t}\n\n\t\t$resource->load('client');\n\t\t$client = $resource->client;\n\n\t\t$this->authorize('manage', $resource);\n\n\t\t$this->validate($request, [\n\t\t\t'name' => ['required', 'max:255'],\n\t\t\t'slug' => [\n\t\t\t\t'required',\n\t\t\t\t'max:255',\n\t\t\t\t'alpha_dash',\n\t\t\t\t'unique:resources,slug,'.$request->input('slug', $resource->slug).',slug,client_id,'.$resource->client->id,\n\t\t\t\t'not_in:create,destroy,edit,prune'\n\t\t\t],\n\n\t\t\t'metadata.*' => ['array'],\n\t\t\t'metadata.keys.*' => ['distinct', 'required_with:metadata.values.*'],\n\n\t\t\t'attachments' => ['array'],\n\t\t\t'uploads' => ['array'],\n\n\t\t\t'type' => ['required'],\n\n\t\t\t'client' => ['required', 'exists:clients,id'],\n\n\t\t\t'tags' => ['array'],\n\t\t\t'tags.*' => ['exists:tags,id'],\n\t\t]);\n\n\t\tif (($newClient = $request->input('client', $resource->client->id)) != $resource->client->id) {\n\t\t\t$client = Client::find($newClient);\n\t\t\t$resource->client()->associate($client);\n\t\t}\n\n\t\t$resource->name = $request->input('name');\n\t\t$resource->slug = $request->input('slug');\n\t\t$resource->description = $request->input('description');\n\n\t\t$metadata = static::parseMetadataFromForm($request->input('metadata', []));\n\t\t$resource->metadata = Crypt::encrypt($metadata);\n\n\t\t$attachments = $request->input('attachments', []);\n\n\t\tif ($request->hasFile('uploads')) {\n\t\t\t$uploads = $request->file('uploads');\n\t\t\t$attachments = array_merge($attachments, $uploads);\n\t\t}\n\n\t\t$resource->attachments = $attachments;\n\n\t\t// set type\n\t\tif (!($type = ResourceType::findBySlug($request->input('type')))) {\n\t\t\t$type = ResourceType::create([\n\t\t\t\t'name' => $request->input('type'),\n\t\t\t\t'slug' => str_slug($request->input('type')),\n\t\t\t]);\n\t\t}\n\n\t\t$resource->type()->associate($type);\n\n\t\t$resource->save();\n\n\t\t$resource->tags()->sync($request->input('tags', []));\n\n\t\treturn redirect()->route('clients.resources.show', ['client' => $resource->client->url, 'resource' => $resource->url])\n\t\t\t->with('alert-success', 'Resource updated!');\n\t}", "title": "" }, { "docid": "265c7e4e1d9ccb8f2d919846c5c6d0e1", "score": "0.55072427", "text": "public function update($id, $input);", "title": "" }, { "docid": "265c7e4e1d9ccb8f2d919846c5c6d0e1", "score": "0.55072427", "text": "public function update($id, $input);", "title": "" }, { "docid": "4f9a7eefe9ee310c77dd90bb772d0268", "score": "0.550326", "text": "protected function save($resource = array()) {\n if (isset($resource['public_id']) && !empty($resource['mode'])) {\n $data = array(\n 'public_id' => $resource['public_id'],\n 'mode' => $resource['mode'],\n 'metadata' => serialize($resource),\n );\n\n db_merge('cloudinary_storage')\n ->key(array('public_id' => $data['public_id']))\n ->fields($data)\n ->execute();\n }\n }", "title": "" }, { "docid": "de666400bd564055ceae68366a410cf6", "score": "0.5495869", "text": "function updateProduct(ProductInterface $product, $andPersist = true);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "2e6523045766c061920aeea9222af1fe", "score": "0.54858494", "text": "public function edit(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "2e6523045766c061920aeea9222af1fe", "score": "0.54858494", "text": "public function edit(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "2e6523045766c061920aeea9222af1fe", "score": "0.54858494", "text": "public function edit(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "915de74b592076343102ef830bad4760", "score": "0.5483238", "text": "public function update(Request $request, $id)\n {\n\n $product = Product::find($id);\n\n if($request->image !=null)\n {\n $path= $request->images->store('products');\n $product->image =$path;\n }\n $product->name = $request->name;\n $product->title = $request->title;\n $product->subtitle = $request->subtitle;\n $product->price = $request->price;\n $product->description = $request->description;\n\n $product->save();\n return redirect('/admin/products');\n }", "title": "" }, { "docid": "cd9002163bfb014aae433fe03ba6f3c6", "score": "0.5481594", "text": "public function update(Request $request, Product $product)\n {\n try{\n// $product = Product::findOrFail($id);\n $data = $request->all();\n if ($request->hasFile('image')) {\n $this->unlink($product->image);\n $data['image'] = $this->uploadImage($request->image, $request->title);\n }\n $product->update($data);\n $sizes = $request->size;\n $colors = $request->color;\n $tags = $request->tag;\n $product->sizes()->sync($sizes);\n $product->colors()->sync($colors);\n $product->tags()->sync($tags);\n\n return redirect()->route('products.index')->withStatus('Updated Successfully !');\n }catch (QueryException $e){\n return redirect()->back()->withInput()->withErrors($e->getMessage());\n }\n }", "title": "" }, { "docid": "4cfc56539ed021bab827429f46aed628", "score": "0.5481018", "text": "protected function updateResources()\n {\n // Get user model\n $user = $this->buildingQueue->city->nation->user;\n $update = new UpdateResources();\n $update->handle($user);\n }", "title": "" }, { "docid": "345df4adf8928070e91a2554a8379eef", "score": "0.54775786", "text": "public function update(Request $request, $id)\n {\n // dd($request->title);\n $image = $request->image;\n if ($image) {\n //一意のファイル名を自動生成しつつ保存し、かつファイルパス($productImagePath)を生成\n //ここでstore()メソッドを使っているが、これは画像データをstorageに保存している\n $image_path = $image->store('public/uploads'); //storage/app/public/uploadsに保存される\n } else {\n $image_path = \"\";\n }\n \n $update = [\n 'title' => $request->title,\n 'contents' => $request->contents,\n 'image' => $image_path\n ];\n Book::find($id)->update($update);\n return redirect('/');\n }", "title": "" }, { "docid": "c9b0a501066581b7e74c2cd60e16e729", "score": "0.5477371", "text": "public function update($id, Request $request)\n {\n $data = $request->validate([\n 'name' => 'required',\n 'description' => 'required',\n 'barcode' => 'required | digits_between:1,10',\n 'quantity' => 'required | numeric',\n 'cost_price' => 'required | between:0,99.99',\n 'sell_price' => 'required | between:0,99.99',\n 'image' => 'image',\n ]);\n\n\n if ( $request->hasFile('image') )\n {\n $imagePath = $request->file('image')->store('products', 'public');\n $image = Image::make(public_path(\"storage/{$imagePath}\"))->fit(1000, 1000);\n $image->save();\n\n $imageArray = ['image' => $imagePath];\n }\n $data = array_merge($data , $imageArray ?? []);\n\n $product = Product::findOrFail($id);\n\n $product->update($data);\n// dd($product);\n\n return redirect()->route('product.show', ['id' => $product->id]);\n }", "title": "" }, { "docid": "3131a9734c737496b73d9b7f02ce130a", "score": "0.5475807", "text": "public function update(Request $request, ReferenceStorage $referenceStorage)\n {\n //\n }", "title": "" }, { "docid": "a6807e80417b5a587e2afd3bf245f13e", "score": "0.54740566", "text": "public function update(Request $request, $id)\n {\n $v = Volumes::find($id);\n $path = $request->file('capa')->store('capas');\n $v->imagem = $path;\n $v->update($request->all());\n return redirect()->action('VolumeController@index', ['id' => $v->id_colecao]);\n }", "title": "" }, { "docid": "c0e7f9346f3ee0689ec8d7ff708a7de2", "score": "0.5470321", "text": "public function update(Request $request, $id)\n {\n $fullPathName=\"\";\n if($request->has('img')){ \n $fullPathName = $request->file('img')->getClientOriginalName();\n $imagename = $request->file('img');\n $path = public_path(('front/images/sliders/').$imagename->getClientOriginalName());\n $image = Image::make($request->file('img'))->resize(300, 200)->save($path);\n }\n Slider::find($id)->update(\n [\n 'img'=>$fullPathName\n ]);\n \n return redirect()->route('sliders.index')->with('message', 'Data Updated');\n }", "title": "" }, { "docid": "480b6359dcc805593929864642755b60", "score": "0.5468656", "text": "public function update($id)\n\t{\n\t\t$rules = array(\n\t\t\t'name' \t=> \t'required',\n\t\t\t'route' =>\t'required'\n\t\t\t);\n\t\t$validator = Validator::make(Input::all(), $rules);\n\n\t\tif ($validator -> fails()) {\n\t\t\treturn Redirect::to('resource/'. $id. '/edit')\n\t\t\t\t->withErrors($validator)\n\t\t\t\t->withInput(Input::all());\n\t\t}\n\t\telse{\n\t\t\t$resource = Resource::find($id);\n\t\t\t$resource->name \t= \tInput::get('name');\n\t\t\t$resource->route \t= \tInput::get('route');\n\t\t\t$resource->save();\n\n\t\t\tSession::flash('message', 'Successfully edited');\n\t\t\treturn Redirect::to('resource');\n\t\t}\n\t}", "title": "" }, { "docid": "ad38428475befeaa7bd22cc27d29dd43", "score": "0.5467444", "text": "public function update(Request $request, $id)\n {\n\n $requestData = $request->all();\n\n $resource = Resource::findOrFail($id);\n $resource->update($requestData);\n\n return redirect('resources')->with('flash_message', ' updated!');\n }", "title": "" }, { "docid": "18835ea7fdc7fdae900ff435256e6132", "score": "0.5461308", "text": "public function update(StoreUpdateProductRequest $request, $id)\n {\n if(!$product = Product::find($id))\n return redirect()->back();\n\n $data = $request->all();\n\n if($request->hasFile('image') && $request->image->isValid()) {\n\n if($product->image && Storage::exists($product->image)) {\n Storage::delete($product->image);\n //dd(Storage::exists($product->image));\n }\n\n $imagePath = $request->image->store('products');\n\n $data['image'] = $imagePath;\n }\n\n $product->update($data); //$request->all() -> pega todos os dados do formulário.\n\n return redirect()->route('teste.index');\n }", "title": "" }, { "docid": "888eacb2684deea060d74401ec576361", "score": "0.5459631", "text": "public function update($id, Request $request)\n {\n try {\n \n $data = $this->getData($request);\n \n $asset = Asset::findOrFail($id);\n $asset->update($data);\n\n return redirect()->route('assets.asset.index')\n ->with('success_message', 'Asset was successfully updated.');\n } catch (Exception $exception) {\n\n return back()->withInput()\n ->withErrors(['unexpected_error' => 'Unexpected error occurred while trying to process your request.']);\n } \n }", "title": "" }, { "docid": "c2ba1266c1f288e006d63595b8c95475", "score": "0.54551506", "text": "public function updateProductImage(Request $request,$id){\n \n // making sure that an image is uploaded, validating the incoming request\n Validator::make($request->all(),['image' => \"required|file|image|mimes:jpg,png,jpeg|max:5000000\"])->validate();\n\n //Checking if the file exists in the public storage folder\n if($request->hasFile('image')){\n $product = Product::find($id);\n $exists = Storage::disk('local')->exists(\"public/products_images/\".$product->image);\n\n //deleting the old image\n if($exists){\n Storage::delete('public/product_images/'.$product->image);\n }\n\n //uploading a new image\n $ext = $request->file('image')->getClientOriginalExtension(); //getting the image extensions\n\n $request->image->storeAs(\"public/product_images/\",$product->image); //storing the new image in the product_image folder\n\n $arrayToUpdate = array(\"image\" => $product->image);\n DB::table('products')->where('id',$id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayProducts\"); \n\n }else {\n \n $error = \"No image was selected\";\n return $error;\n \n }\n\n }", "title": "" }, { "docid": "36282285831dc6d68f5e70b518199798", "score": "0.54545444", "text": "public function indexResource(Resource $resource)\n {\n $this->addResource($resource);\n $this->commit();\n }", "title": "" }, { "docid": "a0e8039ee0fc1bca4aff88fac58bcb5d", "score": "0.5451169", "text": "public function update(Request $request, Product $product)\n {\n Storage::disk('public')->delete($product->image->path);\n $product->name = $request->name;\n $product->value = $request->value;\n $product->save();\n Image::where('id', $product->image->id)->update(['path' => $request->file('image')->store('product')]);\n return redirect()->route('products.index');\n }", "title": "" }, { "docid": "1cf069cc7d44d8c46dceb5aa2f934b84", "score": "0.5448955", "text": "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')) {\n $name = time() . $file->getClientOriginalName();\n $file->move('product_image', $name);\n $data['product_photo'] = $name;\n // $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "title": "" }, { "docid": "d7171e526ed9dfefe282174959b684f8", "score": "0.5434525", "text": "public function replace($id, $uploaded_file, $disk ='public'){\n $file = \\App\\File::findOrFail($id);\n //Replace on disk\n \\Illuminate\\Support\\Facades\\Storage::disk($disk)->delete($file->filename);\n\n $pathinfo = pathinfo($file->filename);\n $filename = $this->putAs(\n $uploaded_file ,\n $pathinfo['dirname'], \n $pathinfo['filename'], \n $disk,\n false);\n\n //Update on DB\n $this->updateOndb($file,$uploaded_file, $filename);\n }", "title": "" }, { "docid": "4d4572c7b46a11dd63d3345d70b2c678", "score": "0.54325026", "text": "public function update($id)\n {\n $rules = [\n 'name' => 'required|string|max:100'\n ,'description' => 'required|string'\n ,'price' => 'required|numeric|min:0|max:9999999.99'\n ,'image' => 'image|max:1024'\n ,'stock_number' => 'required|alpha_num|size:10'\n ,'available' => 'in:1'\n ];\n\n $validator = Validator::make(Input::all(), $rules);\n\n if($validator->passes())\n {\n $product = Product::find($id);\n\n if(!isset($product)){\n return Redirect::route('admin.home');\n }\n\n if(Input::hasFile('image'))\n {\n $file = public_path().$product->image;\n \n if(File::exists($file)) {\n File::delete($file);\n }\n\n $image = Input::file('image');\n $fileLocation = public_path().'/images/';\n $fileName = uniqid().'.'.$image->getClientOriginalExtension();\n $image->move($fileLocation, $fileName);\n\n $product->image = '/images/'.$fileName;\n }\n\n $product->name = Input::get('name');\n $product->description = Input::get('description');\n $product->price = Input::get('price');\n $product->stock_number = Input::get('stock_number');\n $product->available = Input::get('available', false);\n\n $product->save();\n\n return Redirect::route('admin.product.edit', $id)\n ->with('data', ['alert'=>'Product saved', 'alertType'=>'success']);\n }\n\n return Redirect::route('admin.product.edit', [$id])->withInput()->withErrors($validator);\n }", "title": "" }, { "docid": "ea8973d39e59e8f1c11bb3b1309f8968", "score": "0.54281324", "text": "public function update(RecordInterface $entity);", "title": "" }, { "docid": "f240996101fd1f576310adca24306421", "score": "0.5427304", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n $product->name = $request->name;\n $product->airport_id = $request->airport;\n $product->service_id = $request->service;\n $product->product_code = $request->code;\n $product->sell_as_agent = $request->sell_as_agent == 'on' ? 1 : 0;\n $product->is_amendable = $request->is_amendable == 'on' ? 1 : 0;\n $product->is_refundable = $request->is_refundable == 'on' ? 1 : 0;\n\n if($request->file('photo')){\n $path = $this->save_image($request->file('photo'));\n $product->image = $path; \n }else{\n $path = $product->image;\n }\n\n $product->save();\n return response()->json(['message' => 'Product Saved', 'image_url' => $path, 'product_id' => $product->id]);\n }", "title": "" }, { "docid": "5487655f93ce1538067ec32ea1bba609", "score": "0.54081273", "text": "public function update(MetaResource $meta): bool\n {\n $this->checkReadOnly($meta->getKind());\n $response = $this->connector->put($this->getZonePath('/metadata/'.$meta->getKind()), new MetaTransformer($meta));\n\n // If the response is empty, everything is fine.\n return empty($response);\n }", "title": "" }, { "docid": "7b0a591f560c7cc51ca21361b8ff2d2f", "score": "0.54073846", "text": "public function update(Request $request, $id)\n {\n $data = Product::findOrFail($id);\n $data->id_jenis_product = $request->jenis;\n $data->name = $request->name;\n $data->low_name = strtolower($request->name);\n $data->unit = $request->unit;\n $data->price = $request->price;\n $data->stock = $request->stock;\n $data->status = $request->status;\n $data->promo = $request->promo;\n $data->size = $request->size;\n $data->detail = $request->detail;\n\n if ($request->hasFile('picture')) {\n $uploadedFile = $request->file('picture');\n $file_up = $uploadedFile->store('public/product');\n $data->picture = \\Storage::url($file_up);\n\n $picture = ProductPicture::where('id_product', $id)->where('status', 1)->first();\n if (!empty($picture)) {\n $picture->status = 1;\n $picture->id_product = $data->id;\n $picture->picture = \\Storage::url($file_up);\n $product->save();\n }\n }\n\n $data->save();\n\n Session::flash('success', 'Product berhasil di Update');\n return redirect()->back();\n }", "title": "" }, { "docid": "1a6a6b40dbea5cb9d0dbea3f140da229", "score": "0.5407359", "text": "public function update(Request $request, $id)\n {\n $validate=$request->validate([\n 'name'=>'required',\n 'description'=>'required'\n\n ]);\n $food=Food::find($id);\n $photo=$food->photo;\n if($request->file('photo')){\n $photo=$request->file('photo')->store('public/food');\n \\Storage::delete($food->photo);\n \n \n }\n $food->name=$request->name;\n $food->description=$request->description;\n $food->photo=$photo;\n $food->price=$request->price;\n $food->update();\n notify()->success('food Update Successfully!');\n return redirect('/food');\n }", "title": "" }, { "docid": "191adb1d2c401c83f13bd2f62285fdb5", "score": "0.5405329", "text": "public function Update($entity);", "title": "" }, { "docid": "b59a7203e329b5f41bb8bd3bec985c97", "score": "0.5403812", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n $this->validate($request,[\n 'name' => 'required',\n 'quantity' => 'required',\n 'rate' => 'required',\n 'brands' => 'required',\n 'categories' => 'required',\n 'status' => 'required',\n 'image' => 'mimes:jpeg,jpg,bmp,png'\n ]);\n\n $image = $request->file('image');\n $slug = str_slug($request->name);\n\n\n if (isset($image)) {\n $currentDate = Carbon::now()->toDateString();\n $imagename = $slug .'-'. $currentDate .'-'. uniqid() .'.'. $image->getClientOriginalExtension();\n \n if (!file_exists('public/product')) {\n mkdir('public/product', 0777, true);\n }\n if (file_exists('public/product/'.$product->image)) {\n unlink('public/product/'.$product->image);\n }\n \n $image->move('public/product',$imagename);\n }else{\n $imagename = $product->image;\n }\n \n $product->name = $request->name;\n $product->quantity = $request->quantity;\n $product->rate = $request->rate;\n $product->status = $request->status;\n $product->image = $imagename;\n\n $product->save();\n\n $product->brands()->sync($request->brands);\n $product->categories()->sync($request->categories);\n\n Toastr::success('Product Successfully Saved :)' ,'Success');\n return redirect()->route('products.index');\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5403173", "text": "public function update($id)\n {\n \n }", "title": "" } ]
64b08553c127240735b243a0e1854836
Stuff In The Header
[ { "docid": "7669e95bfa28986b82f620e47114129b", "score": "0.0", "text": "function sith() { \n\t\t\t\tglobal $BF, $PROJECT_ADDRESS;\n\t\t\t\tinclude($BF .'components/list/sortlistjs.php');\n\t\t\n\t\t$type_results = db_query(\"SELECT ID,chrFieldType FROM FieldTypes WHERE !bDeleted ORDER BY dOrder\",\"getting field types\");\t\n\t\t\n\t\t$types = '<option value=\"\">-Select Option Type-</option>';\n\t\twhile($row = mysqli_fetch_row($type_results)) {\n\t\t\t$types .= '<option value=\"'.$row[0] .'\">'.$row[1].'</option>';\n\t\t}\n\t\t$types .= \"</select>\";\n\t\t\n\t\t$messages[1] = \"<em>A text box will appear for this question with a space limit of 255 characters.</em>\";\n\t\t$messages[2] = \"<em>A text area will appear for this question. This will be big enough to hold multiple paragraphs of information.</em>\";\n\t\t$messages[3] = \"<em>A select box appear for this question. Please fill in the names of the options you would like to use.</em>\";\n\t\t$messages[4] = \"<em>A set of checkboxes will appear for this question. Please fill in the names of the options you would like to appear for the checkboxes.</em>\";\n\t\t$messages[5] = \"<em>A set of radio boxes will appear for this question. Please fill in the names of the options you would like to appear for the radio boxes.</em>\";\n\t\t$messages[6] = \"<em>Question will be used as a Section Header. This can be used to seperate Sections.</em>\";\n\t\t$messages[7] = \"<em>A text box will appear for this question with a space limit of 255 characters, however the data will be masked in the e-mail.</em>\";\t\t\t\n\t\t\n?>\n\t<script type='text/javascript' src='error_check.js'></script>\n\t<script type='text/javascript' src='autogen.js'></script>\n\t<link href=\"<?=$BF?>includes/dynamic.css\" rel=\"stylesheet\" type=\"text/css\" />\t\n\n\t<script type='text/javascript'>\n\t\tvar page = 'edit';\n\t\tvar types = '<?=$types?>';\n\t\tvar messages = new Array('','<?=implode(\"','\",$messages)?>');\n\t\t\n\t\tvar Cat=new Array();\n\t\tvar NoCat = \"<option value=''>- N/A -</option>\";\n\t\tfunction changelanguage(idLanguage) {\n<?\n\t\t$allcategories = db_query(\"SELECT idLanguage,ID,chrCategory FROM EscalatorCats WHERE !bDeleted ORDER BY idLanguage, dOrder, chrCategory\",\"Getting All Categories\");\n\t\t$count = 0;\n\t\t$prelang = 0;\n\t\t$cnt=1;\n\t\twhile($row = mysqli_fetch_assoc($allcategories)) {\n\t\t\tif($prelang != $row['idLanguage']) {\n\t\t\t\tif($count > 0) {\n?>\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n<?\t\t\t\t\n\t\t\t\t}\n?>\n\t\t\tif(idLanguage == <?=$row['idLanguage']?>) {\n\t\t\t\tdocument.getElementById('idCategory').options.length = 0;\n\t\t\t\tdocument.getElementById('idCategory').options[0] = new Option(\"- Select Category -\",'');<?\t\t\t\n\t\t\t\t$prelang = $row['idLanguage'];\n\t\t\t\t$cnt=1;\n\t\t\t}\n?>\t\t\t\n\t\t\t\tdocument.getElementById('idCategory').options[<?=$cnt?>] = new Option(\"<?=$row['chrCategory']?>\",'<?=$row['ID']?>');<?\t\t\t\n\t\t\t$cnt++;\n\t\t\t$count++;\n\t\t}\n\t\tif($count > 0) {\n?>\n\n\t\t\t\treturn;\n\t\t\t}\n<?\n\t\t}\n?>\n\t\t\tdocument.getElementById('idCategory').options.length = 0;\n\t\t\tdocument.getElementById('idCategory').options[0] = new Option(\"- No Categories For Language -\",'');\n\t\t}\n\n\t\tfunction remove_contact(idRecord, tbl) {\n\t\t\tdocument.getElementById('bDelete'+ idRecord).value = '1';\n\t\t\tdocument.getElementById(tbl+'ID'+ idRecord).style.display = 'none';\n\t\t\trepaint(tbl);\n\t\t}\n\t</script>\n\t<script type='text/javascript' src='error_check.js'></script>\n<?\n\t\t\t}", "title": "" } ]
[ { "docid": "47d158ebf76840b956cc58fc1f1c3f7b", "score": "0.8177995", "text": "function Header() {\n }", "title": "" }, { "docid": "e2773020fe3cb332114deefb3304b5a5", "score": "0.7994568", "text": "function Header()\n {\n }", "title": "" }, { "docid": "db81832e921739c9268444915d411f67", "score": "0.78404135", "text": "protected function _header() { return; }", "title": "" }, { "docid": "0e524088bb5aea5f69ae1119dcff0766", "score": "0.78029996", "text": "private function screen_header()\n {\n }", "title": "" }, { "docid": "96ec87c8781447881b025f41d634fb40", "score": "0.77783597", "text": "public function Header() {\n $this->imprime($this->format['header']);\n }", "title": "" }, { "docid": "c084471302fc385cd43afbedb360101d", "score": "0.7707735", "text": "protected function headerContent() {\n $this->title();\n $this->metaAuthor();\n $this->metaViewport();\n $this->cssLinks();\n $this->scriptLinks();\n }", "title": "" }, { "docid": "8d187161025df72c27954e2bd2c5aabb", "score": "0.763166", "text": "function header() {\n\t\t\techo '<div class=\"wrap\">';\n\t\t\tscreen_icon();\n\t\t\techo '<h2>' . __( 'Import Echo Comments', 'echo-importer' ) . '</h2>';\n\t\t}", "title": "" }, { "docid": "c330476187783775c575eeb13bbedf26", "score": "0.76071817", "text": "public function header() {}", "title": "" }, { "docid": "c8d4da0c3a46a54b088cdcf600eb34c0", "score": "0.7589622", "text": "protected function header() {\n\t\techo '<div class=\"wrap\">';\n\t\tscreen_icon();\n\t\techo '<h2>' . __( 'Import OPML', 'feast' ) . '</h2>';\n\t}", "title": "" }, { "docid": "f0fc1a0302cd4a317513ffbd314fd416", "score": "0.7588996", "text": "function header()\n {\n }", "title": "" }, { "docid": "6abacbb997efca7daf90027914dbd6ab", "score": "0.75362325", "text": "public function displayHeader()\n\t{\n\t}", "title": "" }, { "docid": "f6fc979c9e49e19d9c507e85f4652736", "score": "0.7530292", "text": "function icsaio_header() {\n\t\techo '<div class=\"wrap\">';\n\t\tscreen_icon();\n\t\techo '<h2>'.__('Import ICS', 'aio-ics-importer').'</h2>';\n\t}", "title": "" }, { "docid": "4e212ac64a2bf3b962bb0b3fc7aae465", "score": "0.74663764", "text": "public static function header(){\t?>\r\n\t\t\t<header>\r\n\t\t\t\t<figure class=\"imagenLogo\">\r\n \t\t\t\t<img src=\"images/logos/logo.png\" />\r\n \t\t\t</figure>\r\n\t\t\t\t<hgroup>\r\n\t\t\t\t\t<h1>Cifocar v 1.1</h1>\r\n\t\t\t\t\t<h2>Practica para la gestión de un concesionario de compra y venta de vehículos</h2>\r\n\t\t\t\t</hgroup>\r\n\t\t\t</header>\r\n\t\t<?php }", "title": "" }, { "docid": "f39af9320e6effcfbdd9d7040b688807", "score": "0.744354", "text": "function setHeader() {\r\n $this->aboutMe(10, 5);\r\n\t}", "title": "" }, { "docid": "da1ad35e28b9dd9a4a23ecde9c698a67", "score": "0.7440471", "text": "protected function _header() {\n\t\tif(self::bugWeb())\n\t\t\techo '<pre style=\"', self::STYLE, '\">', \"\\n\";\n\t}", "title": "" }, { "docid": "2884d2e46b7d91781729f4e4ad0a0044", "score": "0.74016035", "text": "public static function header() {\n ?>\n <!DOCTYPE html>\n <html>\n <head>\n <meta charset=\"UTF-8\">\n <title>PeaPOD User Management System</title>\n <link href=\"www/css/styles.css\" rel=\"stylesheet\" type=\"text/css\"/>\n </head>\n <body>\n <h1><span style=\"color: forestgreen; font-family: serif; font-size: 36pt\">PeaPOD</span> User Management System</h1>\n <div id=\"wrapper\">\n <img src=\"www/img/peapod_logo.png\" style=\"float: right; width: 130px\">\n <?php\n }", "title": "" }, { "docid": "044e2d3384b77967b83541a8ee55b3ca", "score": "0.7397712", "text": "public static function displayHeader() {\n\t\t\t// include start of skeleton\t\t\t\n\t\t\tinclude_once DIR_VIEWS.'sk_top.php';\n\t\t\tinclude_once DIR_VIEWS.'header.php';\n\t\t}", "title": "" }, { "docid": "3b85f6be5995b9198c59bdc1e1ce3b6b", "score": "0.7387011", "text": "protected function _header()\n {\n // First line is the site name.\n $this->meta[$this->_sid] = array('name' => $this->_current);\n $this->next();\n return;\n }", "title": "" }, { "docid": "7040576047edde63c9d462f37fda828a", "score": "0.73786813", "text": "public function header() {\n print $this->render(header);\n }", "title": "" }, { "docid": "c9378a81211566ca659a217ba2742511", "score": "0.73551375", "text": "public function load_header()\n {\n\n }", "title": "" }, { "docid": "475aa56d446b6bf17db3b18a46ad48be", "score": "0.7348074", "text": "public function renderHeader();", "title": "" }, { "docid": "dd0da97d2bdc8a743dcb3b90357352fe", "score": "0.73266065", "text": "function header() {\n\t\techo '<div class=\"wrap\">';\n\t\techo '<h2>' . __( 'Import Vamtam Widgets', 'wordpress-importer' ) . '</h2>'; // xss ok\n\t}", "title": "" }, { "docid": "d7f94141752e768138cc900361006ddb", "score": "0.7291106", "text": "public function createheader()\n {\n //\n }", "title": "" }, { "docid": "77aba61c77299147411f6276a28c514e", "score": "0.72900635", "text": "public function view_header(){\n echo 'Вызов метода класса Page хедер = '.$this->header.'<br>';\n }", "title": "" }, { "docid": "a1d678697ebdefd1a62897948e10924f", "score": "0.72642255", "text": "function Header()\n{\n\tglobal $title;\n\t$this->Ln(14);\n}", "title": "" }, { "docid": "39cd78777d6e5fb01058bca3c4c9efa5", "score": "0.7263348", "text": "function siteHeader()\n\t{\n\t\treturn '<pre>';\n\t}", "title": "" }, { "docid": "148ebed6e91c8e87f4bc89397ecf2ba8", "score": "0.7241706", "text": "public function showHeader();", "title": "" }, { "docid": "46bda1100bd945a8fed98ff7a48c23b4", "score": "0.72113496", "text": "public function header(){\n $title = $this->title;\n $css_files = $this->css_files;\n include_once('templates/header.php');\n }", "title": "" }, { "docid": "804a2b897ac5688807176fc52fa88388", "score": "0.71867913", "text": "function rad_do_header_structure() {\n $header = rad_site_title();\n $header .= rad_site_description();\n echo rad_header_group( $header );\n}", "title": "" }, { "docid": "96bc6e283bdb3abd9c6b3716b5b59004", "score": "0.71796507", "text": "function Header()\n{\n\t// Page header\n\tglobal $title;\n\n\t$this->SetFont('Arial','B',15);\n\t$w = $this->GetStringWidth($title)+6;\n\t$this->SetX((210-$w)/2);\n\t$this->SetDrawColor(0,206,209);\n\t$this->SetFillColor(220,220,220);\n\t$this->SetTextColor(0,0,0);\n\t$this->SetLineWidth(1);\n\t$this->Cell($w,9,$title,1,1,'C',true);\n\t$this->Ln(10);\n\t// Save ordinate\n\t$this->y0 = $this->GetY();\n}", "title": "" }, { "docid": "0e52176d977852a22f416cfce7e712ef", "score": "0.717873", "text": "function Header()\n {\n // Logo\n $this->Image($_SESSION[\"ORGANIZATION_LOGO\"],10,1,30); \n $this->SetFont( 'Arial', '', 17 );\n $this->Cell( 0, 15, $_SESSION[\"ORGANIZATION_NAME\"], 0, 0, 'C' );\n $this->Ln( 16 );\n }", "title": "" }, { "docid": "955239cb3cf995b0b5aa82b43686cd22", "score": "0.7151148", "text": "public function MainBodyMainHeader()\n\t{\tob_start();\n\t\techo '<h1><span', $this->interview->details['socialbar'] ? ' class=\"headertextWithSM\"' : '', '>', $this->InputSafeString($this->interview->details['ivtitle']), '</span>', $this->interview->details['socialbar'] ? $this->GetSocialLinks(3) : '', '</h1>';\n\t\treturn ob_get_clean();\n\t}", "title": "" }, { "docid": "0e8f8972c1078e497ecffb97027c722e", "score": "0.7127154", "text": "public function buildHeader();", "title": "" }, { "docid": "611de025890c87c2bea77813c55731f5", "score": "0.71219105", "text": "function Header()\n {\n // Logo\n $this->Image($_SESSION[\"ORGANIZATION_LOGO\"],10,1,30); \n $this->SetFont( 'Arial', '', 17 );\n $this->Cell( 0, 15, $_SESSION[\"ORGANIZATION_NAME\"], 0, 0, 'C' );\n $this->Ln( 16 ); \n }", "title": "" }, { "docid": "89b16f416fc626f5cdd039119a53d536", "score": "0.7112326", "text": "public function printHeader(){\n ?>\n <div class=\"header\">\n <h2>Gestione Prezzi</h2>\n <p>Questa sezione è dedicata alla compilazione dinamica dei prezzi per i vari articoli</p>\n </div> \n <?php\n \n \n }", "title": "" }, { "docid": "74232aa926ab7e3a860fb0bda7aff9bd", "score": "0.71006906", "text": "function Header()\n\t{\n\t\t$this->SetFont('Arial','B',30);\n\t\t$this->SetTextColor(224,224,224);\n\t\t$this->RotatedText(35,220,'Beauty Parlour Management System',45);\n\n\t}", "title": "" }, { "docid": "cf34a74b9df98b05f1e5d11e7f2ea85a", "score": "0.7088482", "text": "public static function header_output()\r\n {\r\n $css = '<style type=\"text/css\">' . PHP_EOL;\r\n // Add below line for EVERY CSS selector.\r\n //$css .= self::generate_css( 'SELECTOR', 'STYLE', 'MOD_NAME', 'PREFIX', 'POSTFIX').PHP_EOL;\r\n $css .= '</style>' . PHP_EOL;\r\n }", "title": "" }, { "docid": "4376ebf1eb5368e7922b22bb47ee270a", "score": "0.7085546", "text": "protected function constructHead(){\t\t\n\t\t$head = \"\\r\\n<!-- Header Information -->\\r\\n\";\n\t\t\n\t\t//Print Page Title\n\t\t$head .= \"\\r\\n<!-- SITE TITLE -->\\r\\n\";\n\t\t$head .= HTML::title($this->assets()->contsructTitle());\n\t\t\n\t\t//Print Meta\n\t\t$head .= \"\\r\\n<!-- META INFORMATION -->\\r\\n\";\n\t\t$head .= implode(\"\", $this->assets()->meta());\n\t\t\n\t\t//Print Styles\n\t\t$head .= \"\\r\\n<!-- STYLE SHEETS -->\\r\\n\";\n\t\t$head .= implode(\"\", $this->assets()->styles());\n\t\t\n\t\t//Print Javascript\n\t\t$head .= \"\\r\\n<!-- JAVASCRIPT INCLUDES -->\\r\\n\";\n\t\t$head .= implode(\"\", $this->assets()->scripts(true));\n\t\t\n\t\t//Print Extra\n\t\t$head .= \"\\r\\n<!-- EXTRA INCLUDES -->\\r\\n\";\n\t\t$head .= implode(\"\", $this->assets()->extra());\n\t\t\n\t\treturn $head;\n\t}", "title": "" }, { "docid": "61575653a873fd78dd9be3dccd19bb19", "score": "0.7071151", "text": "abstract function printHeader();", "title": "" }, { "docid": "671790a2f20055adceeef3f4b21fa047", "score": "0.70487964", "text": "function Header() {\n if ($this->PageNo() ==1 || isset($this->bHeader)) {\n //$this->Image(\"./logos/logoGIP.jpg\", 1, 4,50,0);\n //$this->Image(\"./logos/Logo_onpe_150_transparent.png\", 1, 4,60,32);\n //$this->Image(\"./logos/Logo_onpe_72.png\", 1, 4,60,32);\n $this->Image(\"./logos/Logo_onpe_72.png\", 1, 4, -300);\n //$this->Image(\"./logos/Logo_onpe_150_transparent.png\", 1, 4,-300);\n //$this->Image(\"./logos/logo_oned_240png8.png\", 140, 4,40,0);\n //Saut de ligne\n $this->Ln(30);\n\n }\n $this->Filigrane('Confidentiel');\n }", "title": "" }, { "docid": "70e07628e52173fcf54aa81011c28993", "score": "0.7040917", "text": "function print_header($CatID=\"\",$title=\"\",$msg=\"\")\n{\n\tglobal $SITE_URL;\n\tglobal $currentID;\n\tglobal $_my_uri;\n\tif ($_SESSION['is_admin'] && !$_SESSION['prefs'][PREF_EDIT]) {\n\t\t$help[] = array(AT_HELP_ENABLE_EDITOR, $_my_uri);\n\t}\n \t\n\tprint_help($help);\n\tprint_warnings($warnings);\n\treturn;\n}", "title": "" }, { "docid": "784df685890c56cc6c058b0888f72c03", "score": "0.70408857", "text": "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "title": "" }, { "docid": "784df685890c56cc6c058b0888f72c03", "score": "0.70408857", "text": "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "title": "" }, { "docid": "784df685890c56cc6c058b0888f72c03", "score": "0.70408857", "text": "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "title": "" }, { "docid": "784df685890c56cc6c058b0888f72c03", "score": "0.70408857", "text": "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "title": "" }, { "docid": "784df685890c56cc6c058b0888f72c03", "score": "0.70408857", "text": "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "title": "" }, { "docid": "784df685890c56cc6c058b0888f72c03", "score": "0.70408857", "text": "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "title": "" }, { "docid": "784df685890c56cc6c058b0888f72c03", "score": "0.70408857", "text": "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "title": "" }, { "docid": "784df685890c56cc6c058b0888f72c03", "score": "0.70408857", "text": "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "title": "" }, { "docid": "784df685890c56cc6c058b0888f72c03", "score": "0.70408857", "text": "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "title": "" }, { "docid": "784df685890c56cc6c058b0888f72c03", "score": "0.70408857", "text": "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "title": "" }, { "docid": "784df685890c56cc6c058b0888f72c03", "score": "0.70408857", "text": "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "title": "" }, { "docid": "784df685890c56cc6c058b0888f72c03", "score": "0.70408857", "text": "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "title": "" }, { "docid": "784df685890c56cc6c058b0888f72c03", "score": "0.70408857", "text": "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "title": "" }, { "docid": "dc027647df22ecba6685f1e8b180d6a0", "score": "0.70372415", "text": "function change_print_header($matches) {\n $newcode = '';\n $args = explode(',',$matches[2]);\n\n $newcode .= $matches[1].'$PAGE->set_context($context);';\n $newcode .= $matches[1].'$PAGE->set_pagelayout(\\'incourse\\');';\n\n $newcode .= (isset($args[0]))? $matches[1].'$PAGE->set_title('.$args[0].');' : '';\n $newcode .= (isset($args[1]))? $matches[1].'$PAGE->set_heading('.$args[1].');' : '';\n $newcode .= (isset($args[5]))? $matches[1].'$PAGE->set_cacheable('.$args[5].');' : '';\n $newcode .= (isset($args[6]))? $matches[1].'$PAGE->set_button('.$args[6].');' : '';\n $newcode .= (isset($args[7]))? $matches[1].'$PAGE->set_headingmenu('.$args[7].');' : '';\n\n $newcode .= $matches[1].'echo $OUTPUT->header()';\n return $newcode;\n }", "title": "" }, { "docid": "e6e9d8825e49e5622f3c4a11a7a04922", "score": "0.7022678", "text": "function DisplayMainHeader()\n\t{\n\t\t$retVal = \"<h2>Lag rapport</h2>\";\n\t\treturn( $retVal );\n\t}", "title": "" }, { "docid": "cce8a81cdede3acc066d6348515c4529", "score": "0.7021564", "text": "public function do_header(){\r\n\t\techo PHP_EOL;\r\n\t\t$copy = $this->_css;\r\n\t\twhile($css = array_shift($copy)){\r\n\t\t\techo '<link rel=\"stylesheet\" href=\"'.esc_html($css['href']).'\" media=\"'.$css['media'].'\" />'.PHP_EOL;\r\n\t\t}\r\n\t\t$copy = $this->_js;\r\n\t\twhile($js = array_shift($copy))\r\n\t\t\tif($js['inh'])\r\n\t\t\t\techo '<script type=\"text/javascript\" src=\"'.esc_html($js['src']).'\"></script>'.PHP_EOL;\r\n\t}", "title": "" }, { "docid": "7fa92fd887e102bb12e8d35d5e397caa", "score": "0.70188767", "text": "function atp_head()\n {\n require_once(FRAMEWORK_DIR . 'common/head.php');\n }", "title": "" }, { "docid": "ba7efb783c70f338cf8b4cdb6d02d65d", "score": "0.70065325", "text": "function constructorHeader() {\n\t if (DEBUG&&DEBUGLEVEL&1) debug('Start method frontend::constructorHeader()');\n\t global $table;\n\t $this->site[] = '<TABLE BORDER=\"0\" WIDTH=\"100%\" CELLPADDING=\"0\" CELLSPACING=\"0\">';\n\t $this->site[] = ' <TR>';\n\t $this->site[] = ' <TD ALIGN=\"left\" VALIGN=\"top\" WIDTH=\"33%\">';\n\t $this->createInfoBox();\n\t $this->site[] = ' <BR>';\n\t $this->createFilter();\n\t $this->site[] = ' </TD>';\n\t $this->site[] = ' <TD ALIGN=\"center\" VALIGN=\"top\" WIDTH=\"33%\">';\n\t $this->createNavBox();\n\t $this->site[] = ' <BR>';\n\t $this->createDBInfo($table);\n\t $this->site[] = ' </TD>';\n\t $this->site[] = ' <TD ALIGN=\"right\" VALIGN=\"top\" WIDTH=\"33%\">';\n\t $this->createOptBox();\n\t $this->site[] = ' </TD>';\n\t $this->site[] = ' </TR>';\n\t $this->site[] = '</TABLE>';\n\t common::checkForAttentions();\n\t $this->site[] = '<BR><BR>';\n\t if (DEBUG&&DEBUGLEVEL&1) debug('End method frontend::constructorHeader()');\n\t}", "title": "" }, { "docid": "8c560318c172a0262c850c679d4ec653", "score": "0.6985971", "text": "private function echoHeader() {\r\n?>\r\n<link rel=\"stylesheet\" href=\"/css/grid.css\" type=\"text/css\" media=\"screen\" title=\"Flora (Default)\">\r\n<link rel=\"stylesheet\" href=\"/css/jquery-calendar.css\" type=\"text/css\" media=\"screen\" title=\"Flora (Default)\">\r\n<script type=\"text/javascript\" src=\"/js/jquery.js\"></script>\r\n<script type=\"text/javascript\" src=\"/js/jquery-calendar.js\"></script>\r\n<script type=\"text/javascript\" src=\"/js/jquery-calendar-zh-cn.js\"></script>\r\n<script type=\"text/javascript\" src=\"/admin/fckeditor/fckeditor.js\"></script>\r\n<script type=\"text/javascript\" src=\"/js/grid.js\"></script>\r\n<?php\r\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.6975435", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" }, { "docid": "e263ad0c3712d27fa1b3ed8153d39ae2", "score": "0.69639283", "text": "function layout_getPageHeader()\n\t{\n\t\techo '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> \n\t\t\t<html xmlns=\"http://www.w3.org/1999/xhtml\"> \n\t\t\t<head>\n\t\t\t<title>\n\t\t\tOpenSprinkles\n\t\t\t</title>\n\t\t\n\t\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n\t\t\t<link rel=\"stylesheet\" href=\"images/Envision.css\" type=\"text/css\" />\n\t\t\t</head>';\n\t}", "title": "" }, { "docid": "51e16265a050f24c9452b0f95a413175", "score": "0.6941729", "text": "function layout_getBodyHeader()\n\t{\n\t\techo '<body>\n\t\t\t\t<div id=\"wrap\">\n\t\t\t\t<div id=\"header\">\n\t\t\t\t\t<h1 id=\"logo-text\">OpenSprinkles</h1>\n\t\t\t\t\t<h2 id=\"slogan\">freeware irrigation</h2>\n\t\t\t\t\t<div id=\"header-links\">\n\t\t\t\t\t <p> version 0.0.1 | By Eran \"pavius\" Duchan | <a href=\"http://www.free-css.com/\">More Info</a> </p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div id=\"current-time\">\n\t\t\t\t\t <p>'.date(\"D M j Y, G:i:s\").'</p>\n\t\t\t\t\t</div>\n\t\t\t\t </div>\n\t\t\t\t <div id=\"menu\">\n\t\t\t\t\t<ul>'.layout_getMenu().'</ul>\n\t\t\t\t </div>\n\t\t\t\t <div id=\"content-wrap\">\n\t\t\t\t\t<div id=\"main\"> <a name=\"TemplateInfo\"></a>';\n\t}", "title": "" }, { "docid": "ccca4017cebb9bf98471cb338ac9492c", "score": "0.6922343", "text": "function communityservice_output_auth_header() {\n\t\tcs_get_template( 'auth/header.php' );\n\t}", "title": "" }, { "docid": "5ca9650e4ba2be99154378ac9b2095f7", "score": "0.6921638", "text": "protected function pageHeader() {\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "52723514852592872ddbd95892ee864b", "score": "0.6904948", "text": "final public function header_wrap() {\n\t\techo '<section class=\"tsfem-top-wrap tsfem-flex tsfem-flex-row tsfem-flex-nogrowshrink tsfem-flex-nowrap tsfem-flex-space\">';\n\t\t\\do_action( 'tsfem_header' );\n\t\techo '</section>';\n\t}", "title": "" }, { "docid": "0ff7b9a003e51a6395de1db46f6f492f", "score": "0.6904551", "text": "function gen_header()\n{\n include_htm(\"head.htm\");\n}", "title": "" }, { "docid": "412b723069d4e83a13850dbba36c6952", "score": "0.689868", "text": "function Header()\n {\n // Cabacera\n global $title;\n \n $this->SetFont('Arial','B',15);\n $w = $this->GetStringWidth($title)+6;\n $this->SetX((210-$w)/2);\n $this->SetDrawColor(0,80,180);\n $this->SetFillColor(230,230,0);\n $this->SetTextColor(220,50,50);\n $this->SetLineWidth(1);\n $this->Cell($w,9,$title,1,1,'C',true);\n $this->Ln(10);\n // Guardar ordenada\n $this->y0 = $this->GetY();\n }", "title": "" }, { "docid": "4ece314f666ebd9c6a59d4c3781d41d6", "score": "0.689495", "text": "function storefront_page_header() {\n\t\t?>\n\t\t<header class=\"entry-header\">\n\t\t\t<?php\n\t\t\tstorefront_post_thumbnail( 'full' );\n\t\t\tthe_title( '<h1 class=\"entry-title\">', '</h1>' );\n\t\t\t?>\n\t\t</header><!-- .entry-header -->\n\t\t<?php\n\t}", "title": "" }, { "docid": "c800847fb1131231cd37e5f64b8e4717", "score": "0.6889656", "text": "private function constructHeader() {\n $this->general_information = db()->getRow(\"\n SELECT\n gi.first_name,\n gi.last_name,\n gi.address,\n gi.city,\n us.abbreviation AS state,\n gi.phone_number,\n gi.photo,\n gi.email_address,\n gi.resume_pdf_name,\n gi.resume_word_name,\n gi.summary,\n gi.specialty\n FROM resume_general_information gi\n JOIN cms_us_states us USING (state_id)\n WHERE gi.general_information_id = 1\n \");\n \n $first_name = $this->general_information['first_name'];\n $first_name_lower_case = strtolower($this->general_information['first_name']);\n \n $last_name = $this->general_information['last_name'];\n $last_name_lower_case = strtolower($this->general_information['last_name']);\n \n $full_name = \"{$first_name} {$last_name}\";\n \n //Set the page title\n $this->page->setTitle(\"{$full_name} - Resume and Portfolio\");\n \n //Set meta tags\n $this->page->addMetaTag('encoding', 'http-equiv', 'content-type', 'text/html; charset=UTF-8');\n $this->page->addMetaTag('page_author', 'name', 'author', 'Tommy Bolger');\n $this->page->addMetaTag('page_keywords', 'name', 'keywords', \"{$first_name_lower_case} {$last_name_lower_case}, {$first_name_lower_case} {$last_name_lower_case} resume, {$first_name_lower_case} {$last_name_lower_case} portfolio, {$first_name_lower_case}, {$last_name_lower_case}, education, skills, experience, resume, online, portfolio, ca, php, mysql, postgre, postgres\");\n $this->page->addMetaTag('page_description', 'name', 'description', \"{$full_name} - online resume, trade skills, work experience, and portfolio.\");\n \n //Setup css\n $this->page->addCssFiles(array(\n 'reset.css',\n 'main.css'\n ));\n \n //Setup the javascript \n $this->page->addJavascriptFiles(array(\n \"jquery.min.js\",\n 'home.js'\n ));\n \n //Set the template for this page\n $this->page->setTemplate(\"page.php\");\n }", "title": "" } ]
b2d8f95e8c35acb0147d63b6d4da572f
Generate URLFriendly Link from String
[ { "docid": "d1cefd8654b950b6d88784bdb9da487f", "score": "0.0", "text": "public static function slugify($input, $regxp = '/[^a-zA-Z0-9_-]/', $lowercase = true)\n {\n $output = str_replace(' ', '-', $input);\n $output = preg_replace($regxp, '', $output);\n $output = preg_replace('/(-+)/', '-', $output);\n $output = trim($output, '- ');\n if (!empty($lowercase)) {\n $output = strtolower($output);\n }\n return $output;\n }", "title": "" } ]
[ { "docid": "e8ebd8d7f830aafc3af94ef8c013f6e0", "score": "0.7682213", "text": "function render_url($string) {\n\n\t\treturn $this->insert_link($string, \"|https?\\:\\/\\/[a-z0-9\\/\\#\\_\\.\\-\\?]+|i\", '<a target=\"_blank\" href=\"{}\">{}</a>');\n\n\t}", "title": "" }, { "docid": "088a215ca1136d704be33a9488dac2ac", "score": "0.75280964", "text": "function makeLink($string)\n{\n\n\t/*** make sure there is an http:// on all URLs ***/\n\t$string = preg_replace(\"/([^\\w\\/])(www\\.[a-z0-9\\-]+\\.[a-z0-9\\-]+)/i\", \"$1http://$2\", $string);\n\n\t/*** make all URLs links ***/\n\t$string = preg_replace(\"/([\\w]+:\\/\\/[\\w-?&;#~=\\.\\/\\@]+[\\w\\/])/i\", \"<a target=\\\"_blank\\\" href=\\\"$1\\\">$1</A>\", $string);\n\n\t/*** make all emails hot links ***/\n\t$string = preg_replace(\"/([\\w-?&;#~=\\.\\/]+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?))/i\", \"<A HREF=\\\"mailto:$1\\\">$1</A>\", $string);\n\n\treturn $string;\n}", "title": "" }, { "docid": "44b01ebaff93a8f542570f2d528066c2", "score": "0.7349887", "text": "function make_link($str)\n {\n if(!preg_match(\"/mailto:|http:/\", $str))\n {\n if(preg_match(\"/@/\", $str))\n {\n $str=\"mailto:\".$str;\n }\n if(preg_match(\"/www/\", $str))\n {\n $str=\"http://\".$str;\n }\n \n }\n return $this->replace_uri($str);\n }", "title": "" }, { "docid": "d0b2527226eddf13b82207cdee72e82d", "score": "0.7098818", "text": "public static function makeClickableLinks($string) {\n \t\treturn preg_replace('@(https?://([-\\w\\.]+[-\\w])+(:\\d+)?(/([\\w/_\\.#-]*(\\?\\S+)?[^\\.\\s])?)?)@', '<a href=\"$1\" target=\"_blank\">$1</a>', $string);\n\t}", "title": "" }, { "docid": "d0b5617ca6bd55d60027d44c3b295fc6", "score": "0.69310117", "text": "public static function makeClickable($string) {\r\n\t\t$urlHtml = preg_replace(\r\n\t\t\t'/(?<!S)((http(s?):\\/\\/)|(www.))+([\\w.1-9\\&=#?\\-~%;\\/]+)/',\r\n\t\t\t'<a href=\"http$3://$4$5\">http$3://$4$5</a>', $string);\r\n\t\treturn ($urlHtml);\r\n\t}", "title": "" }, { "docid": "cebc2bf74831b26c597cbc465ac0ca62", "score": "0.6857795", "text": "function convertLinks($str){\n\t\t\t$str = preg_replace(\"/(http:\\/\\/[^\\s]*)/i\", \"<a href='$1' target='_blank'>$1</a>\", $str);\n\t\t\t$str = preg_replace(\"/#([^\\s]*)/i\", \"<a href='https://twitter.com/search?q=%23$1&src=hash' target='_blank'>#$1</a>\", $str);\n\t\t\t\n\t\t\treturn $str;\n\t\t}", "title": "" }, { "docid": "7635914474b177326b65ac66f0ac503c", "score": "0.6815609", "text": "function ext_autolink($string) {\n\t\t$string = preg_replace(\"/(([\\w\\.]+))(@)([\\w\\.]+)\\b/i\", \"<a href=\\\"mailto:$0\\\">$0</a>\", $string);\n\t\t$string = preg_replace('#(http|https|ftp)://([^\\s]*)#', '<a href=\"\\\\1://\\\\2\" target=\"_blank\">\\\\1://\\\\2</a>', $string);\n\n\t\treturn $string;\n\t}", "title": "" }, { "docid": "7922e69cac5296492bd126fe509d952d", "score": "0.67995834", "text": "function StringToHtmlLink($text, $url) {\n return sprintf('<a href=\"%s\">%s</a>', $url, $text);\n}", "title": "" }, { "docid": "a1ff9d86c57e4c310064a5d43b36ff01", "score": "0.6774315", "text": "protected function _wikiLink( $string) {\n $cleaned = str_replace(array('http://dbpedia.org/resource/'),\n array('http://en.wikipedia.org/wiki/'), $string);\n $html = '<a href=\"';\n $html .= $cleaned;\n $html .= '\">';\n $html .= urldecode($this->_cleaner($string));\n $html .= '</a>';\n return $html;\n }", "title": "" }, { "docid": "bc1091c04badc3db03b6ea1f6dfd100b", "score": "0.67725104", "text": "function cot_build_url($text, $maxlen=64)\n{\n\tglobal $sys;\n\tif (!empty($text))\n\t{\n\t\tif (mb_strpos($text, $sys['scheme'] . '://') !== 0)\n\t\t{\n\t\t\t$text = $sys['scheme'] . '://' . $text;\n\t\t}\n\t\t$text = htmlspecialchars($text);\n\t\t$text = cot_rc_link($text, cot_cutstring($text, $maxlen));\n\t}\n\treturn $text;\n}", "title": "" }, { "docid": "78db4d7f98b86986d603a7b98659f6c4", "score": "0.6769829", "text": "function makeClickable($string) {\n\t$string = preg_replace(\"#([\\n ])([a-z]+?)://([a-z0-9\\-\\.,\\?!%\\*_\\#:;~\\\\&$@\\/=\\+]+)#i\", \"\\\\1<a href=\\\"\\\\2://\\\\3\\\" target=\\\"_blank\\\">\\\\2://\\\\3</a>\",' '.$string.' ');\n\t$string = preg_replace(\"#([\\n ])www\\.([a-z0-9\\-]+)\\.([a-z0-9\\-.\\~]+)((?:/[a-z0-9\\-\\.,\\?!%\\*_\\#:;~\\\\&$@\\/=\\+]*)?)#i\", \"\\\\1<a href=\\\"http://www.\\\\2.\\\\3\\\\4\\\" target=\\\"_blank\\\">www.\\\\2.\\\\3\\\\4</a>\", $string);\n\t$string = preg_replace(\"#([\\n ])([a-z0-9\\-_.]+?)@([\\w\\-]+\\.([\\w\\-\\.]+\\.)?[\\w]+)#i\", \"\\\\1<a href=\\\"mailto:\\\\2@\\\\3\\\">\\\\2@\\\\3</a>\", $string);\n\t\n\t// $text = preg_replace('#([\\s\\(\\)])(https?|ftp|news) {1}://([\\w\\-]+\\.([\\w\\-]+\\.)*[\\w]+(:[0-9]+)?(/[^\"\\s\\(\\)<\\[]*)?)#ie', '\\'$1\\'.handle_url_tag(\\'$2://$3\\')', $text);\n\t// $text = preg_replace('#([\\s\\(\\)])(www|ftp)\\.(([\\w\\-]+\\.)*[\\w]+(:[0-9]+)?(/[^\"\\s\\(\\)<\\[]*)?)#ie', '\\'$1\\'.handle_url_tag(\\'$2.$3\\', \\'$2.$3\\')', $text);\n\treturn trim(stripslashes($string));\n}", "title": "" }, { "docid": "256b80fb963e704851b5a161f8c663a3", "score": "0.6733005", "text": "function hyperlink($input) {\n\t\t$patterns = array(\n\t\t\t'#(\\s)(http://\\S+)#i',\t\t//Link really obvious hyperlinks.\n\t\t\t'/(\\s)(www\\.\\S+)/i',\t\t//Link more subtle hyperlinks.\n\t\t\t'/(\\s)([\\w\\._-]+?@\\S+)/'\t//Link email addresses.\n\t\t);\n\t\t$replacements = array(\n\t\t\t'\\1'.sprintf(WDCN_MU_AH, '\\2', '\\2'),\n\t\t\t'\\1'.sprintf(WDCN_MU_AH, 'http://\\2', '\\2'),\n\t\t\t'\\1'.sprintf(WDCN_MU_AH, 'mailto:\\2', '\\2')\n\t\t);\n\t\treturn(preg_replace($patterns, $replacements, $input));\n\t}", "title": "" }, { "docid": "09859382a83d312cd849148c316af5f3", "score": "0.671151", "text": "function url_to_link ($in, $override = false) {\n\tif(DISABLE_URL_TO_LINK == 1 && !$override) return $in;\n\t$out = eregi_replace( \"([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])\",\n \"<a href=\\\"\\\\1://\\\\2\\\\3\\\" target=\\\"_blank\\\">\\\\1://\\\\2\\\\3</a>\", $in);\n $out = eregi_replace( \"(([a-z0-9_]|\\\\-|\\\\.)+@([^[:space:]]*)([[:alnum:]-]))\",\n \"<a href=\\\"mailto:\\\\1\\\">\\\\1</a>\", $out);\n return $out;\n\t}", "title": "" }, { "docid": "452b62f11deb4a771e15c52df69cdeb9", "score": "0.6701799", "text": "function tgt_link_it($tweet)\n{\n $pattern = '@(https?://([-\\w\\.]+)+(:\\d+)?(/([\\w/_\\.-]*(\\?\\S+)?)?)?)@';\n return preg_replace($pattern, '<a href=\"$1\" target=\"_blank\" rel=\"nofollow\">$1</a>', $tweet);\n\n}", "title": "" }, { "docid": "2e3cffaf223595b244272a5f0f735ed0", "score": "0.6698676", "text": "private function createHtmlLinksFromString($string)\n {\n $regex=\"/(http|https|ftp|ftps)\\:\\/\\/[a-zA-Z0-9\\-\\.]+\\.[a-zA-Z]{2,3}(\\/\\S*)?/\";\n if(preg_match($regex, $string, $url))\n {\n return preg_replace($regex, \"<a target='_blank' href='\".$url[0].\"'>\".$url[0].\"</a> \", $string);\n }\n else\n {\n return $string;\n }\n }", "title": "" }, { "docid": "3d24c2fa2261b2c99930e77567357753", "score": "0.6695037", "text": "public static function addlink($str) {\r\n $str = str_replace(\"<br>\",\" <br> \",$str);\r\n\tpreg_match_all(\"/(^|[\\s ])([\\w]*?)((ht|f)tp(s)?:\\/\\/[\\w]+[^ \\,\\\"\\n\\r\\t<]*)/is\", $str, $matchesarray);\r\n\tif (is_array($matchesarray['3'])) {\r\n\t foreach($matchesarray['3'] as $link) {\r\n\t\t$smalllink = Ext_String::makeLinkShort($link);\r\n\t\t$str = str_replace($link, '<a class=\"external\" href=\"'.$link.'\" target=\"_blank\">'.$smalllink.'</a>', $str);\r\n\t }\r\n\t}\r\n\treturn $str;\r\n }", "title": "" }, { "docid": "e5ac1a5af0fdb1188c66bd3072369c1d", "score": "0.66445047", "text": "public function get_slug_with_link ()\n {\n $slug = $this->get_slug ();\n $slug_with_path = $this->get_slug_with_path ();\n return \"<a href='/$slug_with_path'>$slug</a>\";\n }", "title": "" }, { "docid": "89e7797b090d3f6b8fde18ac3dd08df3", "score": "0.6617136", "text": "function linkup($ss) {\n\treturn preg_replace_callback('/https?:\\/\\/(?:www\\.)?((?:[a-z0-9\\-]+\\.){1,4}[a-z]{2,6})((?:\\/[\\w\\-\\.\\/]*)?)/i', function($matches) {\n\t\treturn '<a href=\"'.$matches[0].'\" target=\"_blank\">'.$matches[1].((strlen($matches[2])>18)?(substr($matches[2],0,15).'...'):$matches[2]).'</a>';\n\t},$ss);\n}", "title": "" }, { "docid": "74452eefa2955710217135c2040fb609", "score": "0.6591479", "text": "static function stringToUrl($string)\n {\n // validation based off - http://stackoverflow.com/questions/11330480/\n // lower case everything\n $string = strtolower($string);\n // make alphanumeric (removes all other characters)\n $string = preg_replace('/[^a-z0-9_\\s-]/', \"\", $string);\n // clean up multiple dashes or whitespaces\n $string = preg_replace('/[\\s-]+/', \" \", $string);\n // convert whitespaces and underscore to dash\n $string = preg_replace('/[\\s_]/', \"-\", $string);\n\n return $string;\n }", "title": "" }, { "docid": "46a3baeebdda41278e00ff6812ef9efd", "score": "0.65806925", "text": "public static function Friendlyurl($string) {\n self::$Format[0] = 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜüÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿRr\"!@#$%&*()_-+={[}]/?;:.,\\\\\\'<>°ºª';\n self::$Format[1] = 'aaaaaaaceeeeiiiidnoooooouuuuuybsaaaaaaaceeeeiiiidnoooooouuuyybyRr ';\n self::$Dados = strtr(utf8_decode($string), utf8_decode(self::$Format[0]), self::$Format[1]);\n self::$Dados = strip_tags(trim(self::$Dados));\n self::$Dados = str_replace(' ', '-', self::$Dados);\n $aux = array('-----', '----', '---', '--');\n self::$Dados = str_replace($aux, '-', self::$Dados);\n return strtolower(self::$Dados);\n }", "title": "" }, { "docid": "38143a5c116787940c20e05f32740d88", "score": "0.6563751", "text": "function transform_str ($str)\r\n{\r\n # replace /n by <br>\r\n $str = nl2br($str);\r\n\r\n # replace url by href\r\n $pattern = array(\r\n '`((?:https?|ftp)://\\S+[[:alnum:]]/?)`si',\r\n '`((?<!//)(www\\.\\S+[[:alnum:]]/?))`si'\r\n );\r\n $replacement = array(\r\n '<a href=\"$1\">$1</a>',\r\n '<a href=\"http://$1\">$1</a>'\r\n );\r\n $str = preg_replace($pattern, $replacement, $str);\r\n\r\n return $str;\r\n}", "title": "" }, { "docid": "e7d7bcf496737eb0acbfbdee5045ffba", "score": "0.6561757", "text": "function create_link($url)\r\n {\r\n \t$pars = parse_url($url);\r\n \t$path = $this->urlTarget.$pars['path'];\r\n\r\n\r\n\r\n \t// echo $this->urlTarget;\r\n \t// echo $pars['path'];die();\r\n\r\n \treturn $path;\r\n }", "title": "" }, { "docid": "1125645748509d9eae2e79fa35dc175a", "score": "0.65084", "text": "function render_link($text, $url) {\n return \"<a href=\\\"$url\\\">$text</a>\";\n }", "title": "" }, { "docid": "e008a823f03df90fd7e4886e0a2ae8c4", "score": "0.65009147", "text": "function replace_uri($str)\n {\n $pattern = '#(^|[^\\\"=]{1})(http://|ftp://|mailto:|news:)([^\\s<>]+)([\\s\\n<>]|$)#sm';\n return preg_replace($pattern,\"\\\\1<a href=\\\"\\\\2\\\\3\\\">\\\\3</a>\\\\4\",$str);\n }", "title": "" }, { "docid": "12a3f672e79c65f9a31a8ea3d2cada14", "score": "0.6500537", "text": "function replace_urls($string) {\n\t// Images get added by the css after the fact.\n $host = \"([a-z\\d][-a-z\\d]*[a-z\\d]\\.)+[a-z][-a-z\\d]*[a-z]\";\n $port = \"(:\\d{1,})?\";\n $path = \"(\\/[^?<>\\#\\\"\\s]+)?\";\n $query = \"(\\?[^<>\\#\\\"\\s]+)?\";\n return preg_replace(\"#((ht|f)tps?:\\/\\/{$host}{$port}{$path}{$query})#i\", \"<a target='_blank' class='extLink' rel='nofollow' href='$1'>$1</a>\", $string);\n}", "title": "" }, { "docid": "3f8c031d9f374d4ad78afbf8741b7a3c", "score": "0.6485659", "text": "function urlify($link, $disp, $color = '#0000FF', $bt_replace = true)\n{\n $link = htmlspecialchars($link, ENT_QUOTES);\n $disp = htmlspecialchars($disp, ENT_QUOTES);\n\n // replace backticks with html code to prevent errors\n if ($bt_replace === true) {\n $link = str_replace('`', '&#96;', $link);\n $disp = str_replace('`', '&#96;', $disp);\n }\n\n // return url\n return \"<a href='$link' target='_blank'><u><font color='$color'>$disp</font></u></a>\";\n}", "title": "" }, { "docid": "aaabdcb98e375725ddce1a03119fa45a", "score": "0.6483581", "text": "public function link() {\n\n if ($this->trad('url')) {\n return $this->trad('url');\n }\n\n if ($this->get('ident')) {\n if ($p = $this->page()) {\n return $p->url();\n }\n\n return Route::buildUrl($this->get('ident'));\n }\n }", "title": "" }, { "docid": "0f9b7935ecd304ed2d1ef6bb22e1da57", "score": "0.64760894", "text": "public static function url($string)\n {\n return rawurlencode($string);\n }", "title": "" }, { "docid": "d32b441d071917aba1057ada49b536fc", "score": "0.6458865", "text": "function niceUrl($string){\n\t$string = preg_replace(\"![^a-z0-9]+!i\", \"-\", $string);\n\t$string = strtolower($string);\n\treturn $string;\n}", "title": "" }, { "docid": "358713bdc42c21bb70952a05057b1db4", "score": "0.644746", "text": "private function buildLink(string $url, string $text): string\n {\n return \"<a href='{$url}' target='_blank'>{$text}</a>\";\n }", "title": "" }, { "docid": "ccd47f866d7866f2cb772f0ebe5fa921", "score": "0.64373505", "text": "protected function generateCanonicalUrl(): string\n {\n // Fallback if seo extension is not installed\n if (! class_exists(CanonicalGenerator::class)) {\n return $this->linkService->getLink()->build();\n }\n \n // Use seo extension to generate canonical url\n $generator = $this->makeInstance(CanonicalGenerator::class, [\n $this->getService(TsfeService::class)->getTsfe(),\n TypoEventBus::getInstance(),\n ]);\n \n preg_match('~href=\"(.*?)\"~', $generator->generate(), $m);\n \n return $m[1] ?? '';\n }", "title": "" }, { "docid": "7c06b6acf31b37b9da6bcea835e04f25", "score": "0.6411672", "text": "public function makeFullLink(string $link): string;", "title": "" }, { "docid": "a2ce70793d633e1c5250200e7b538e31", "score": "0.6410872", "text": "public function createFriendlyUrl() {\r\n\t\t\t$strTitle = $this->getVariable('title');\t\r\n\t\t\t$strTitle = preg_replace('/[\\s]{1,}/', ' ', ucwords($strTitle));\r\n\t\t\t$strTitle = preg_replace('/[\\s]/', '-', $strTitle);\r\n\t\t\t$strTitle = preg_replace('`[^a-z0-9-]`i', '', $strTitle . '-' . $this->getId());\r\n\t\t\treturn ($strTitle);\r\n\t\t}", "title": "" }, { "docid": "783132349867a63825817dbf3eac0ac0", "score": "0.6397591", "text": "function find_url($string){\n\tpreg_match('/(http:\\/\\/[^\\s]+)/', $string, $text);\n\t$hypertext = \"<a href=\\\"\". $text[0] . \"\\\">\" . $text[0] . \"</a>\";\n\t$wrap_anchor = preg_replace('/(http:\\/\\/[^\\s]+)/', $hypertext, $string);\n\treturn $wrap_anchor;\n}", "title": "" }, { "docid": "d8f211f3048687eba665339f623561c3", "score": "0.637247", "text": "private function make_url_clickable_callback($m): string\n {\n global $bb_cfg;\n\n $max_len = 70;\n $href = $m[1];\n $name = (mb_strlen($href, 'UTF-8') > $max_len) ? mb_substr($href, 0, $max_len - 19) . '...' . mb_substr($href, -16) : $href;\n\n if (\\in_array(parse_url($href, PHP_URL_HOST), $bb_cfg['nofollow']['allowed_url']) || $bb_cfg['nofollow']['disabled']) {\n $link = \"<a href=\\\"$href\\\" class=\\\"postLink\\\">$name</a>\";\n } else {\n $link = \"<a href=\\\"$href\\\" class=\\\"postLink\\\" rel=\\\"nofollow\\\">$name</a>\";\n }\n\n return $link;\n }", "title": "" }, { "docid": "96243adeea90cde9d30556b50d4ed14b", "score": "0.63721335", "text": "function get_href($str){\n\t$str = str_replace(\n\t\t[',', ' ', '-', '&', '(', ')'], \n\t\t['', '-', '-', '', '', ''],\n\t\t$str\n\t);\n\treturn translite($str);\n}", "title": "" }, { "docid": "7f1e753c01e113eaf6831a2c0f5ed84e", "score": "0.63687056", "text": "function GenerateUrl ($s) {\n $from = explode (',', \":,ç,æ,œ,á,é,í,ó,ú,à,è,ì,ò,ù,ä,ë,ï,ö,ü,ÿ,â,ê,î,ô,û,å,i,ø,u,(,),[,],'\");\n $to = explode (',', ',c,ae,oe,a,e,i,o,u,a,e,i,o,u,a,e,i,o,u,y,a,e,i,o,u,a,e,i,o,u,,,,,,');\n //Do the replacements, and convert all other non-alphanumeric characters to spaces\n //$f = preg_replace ('/[ ^A-Za-z0-9 ]/', '', str_replace ($from, $to,$s));\n //$f = preg_replace ('/[ ]/', '', str_replace ($from, $to,$f));\n $f = \"\";\n for($i=0;$i<strlen($s);$i++){\n $key = array_search($s[$i],$from);\n if(!is_numeric($key)){\n $f.=$s[$i];\n }else{\n $f.=$to[$key];\n }\n }\n $arf = explode(' ',$f);\n $key = array_search('',$arf);\n while($key != false){\n\n array_splice($arf,$key,1);\n\n $key = array_search('',$arf);\n }\n\n $f = implode('-',$arf);\n\n //Remove a - at the beginning or end and make lowercase\n return strtolower ($f);\n}", "title": "" }, { "docid": "c3c1a6351e2a8a8a75a46f878b963769", "score": "0.6350471", "text": "public static function convertUrlsToLinks($line) {\n\t\treturn ereg_replace(\"[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]\",\"<a href=\\\"\\\\0\\\">\\\\0</a>\", $line);\n\t}", "title": "" }, { "docid": "05421a3a4f0e58b440b185010f1c754b", "score": "0.6348454", "text": "function generate_link_url ($add_path=\"\") {\n $full_path = joinPath (BASE_URL, $add_path);\n return $full_path;\n}", "title": "" }, { "docid": "8e51c29f976e8ee3e0d087056abcdf83", "score": "0.6345301", "text": "private function MakeLink()\n {\n \n $get_link = '';\n $get_link .= \"code={$this->current_chat_code}\";\n $get_link .= \";id={$this->current_chat_id}\";\n $get_link .= \";chat_nickname={$_SESSION['USER_LOGIN']['USER_NAME']}\";\n \n return $get_link;\n }", "title": "" }, { "docid": "9178108a5c15c794e9b82bd52607c564", "score": "0.6313386", "text": "static function ConvertUrlToLink($text,$sanitize = false)\n\t{\n\t\tif ($sanitize) $text = VerySimpleStringUtil::Sanitize($text);\n\t\t$regex = \"/[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]/i\";\n\t\treturn preg_replace($regex, '<a href=\\\"\\\\0\\\">\\\\0</a>', $text);\n\t}", "title": "" }, { "docid": "09c4f67bb3585ae6f19736a3299fb89f", "score": "0.63032013", "text": "public static function url($Mixed) {\n if (!is_string($Mixed)) {\n return self::to($Mixed, 'Url');\n }\n\n // Preliminary decoding\n $Mixed = strip_tags(html_entity_decode($Mixed, ENT_COMPAT, 'UTF-8'));\n $Mixed = strtr($Mixed, self::$_UrlTranslations);\n $Mixed = preg_replace('`[\\']`', '', $Mixed);\n\n // Convert punctuation, symbols, and spaces to hyphens\n if (unicodeRegexSupport()) {\n $Mixed = preg_replace('`[\\pP\\pS\\s]`u', '-', $Mixed);\n } else {\n $Mixed = preg_replace('`[\\W_]`', '-', $Mixed);\n }\n\n // Lowercase, no trailing or repeat hyphens\n $Mixed = preg_replace('`-+`', '-', strtolower($Mixed));\n $Mixed = trim($Mixed, '-');\n\n return rawurlencode($Mixed);\n }", "title": "" }, { "docid": "a426912094e06a541da3e661bdee942b", "score": "0.62958664", "text": "public function getLinkUrl();", "title": "" }, { "docid": "7402faeacd402d76645ff6935cf8f5c0", "score": "0.6279022", "text": "function handle_url_tag($url, $link = '')\n{\n\t$full_url = str_replace(array(' ', '\\'', '`', '\"'), array('%20', '', '', ''), $url);\n\tif (strpos($url, 'www.') === 0)\t\t\t// If it starts with www, we add http://\n\t\t$full_url = 'http://'.$full_url;\n\telse if (strpos($url, 'ftp.') === 0)\t// Else if it starts with ftp, we add ftp://\n\t\t$full_url = 'ftp://'.$full_url;\n\telse if (!preg_match('#^([a-z0-9]{3,6})://#', $url, $bah)) \t// Else if it doesn't start with abcdef://, we add http://\n\t\t$full_url = 'http://'.$full_url;\n\n\t// Ok, not very pretty :-)\n\t$link = ($link == '' || $link == $url) ? ((strlen($url) > 55) ? substr($url, 0 , 39).' &hellip; '.substr($url, -10) : $url) : stripslashes($link);\n\n\treturn '<a href=\"'.$full_url.'\">'.$link.'</a>';\n}", "title": "" }, { "docid": "ea32032afb013793b5b31095866e17f9", "score": "0.62707704", "text": "public function buildUrl();", "title": "" }, { "docid": "ea32032afb013793b5b31095866e17f9", "score": "0.62707704", "text": "public function buildUrl();", "title": "" }, { "docid": "0188e951494866813ad99fd9c6b9d38f", "score": "0.625457", "text": "function format2url($string) {\n// Replace spaces by \"_\" for url encoding\n if (0 < strrpos($string, \" \")) {\n $string = str_replace(\" \", \"_\", $string);\n }\n return $string;\n}", "title": "" }, { "docid": "a2f8bf527f29612e8723a3e24c480058", "score": "0.6253254", "text": "function p2_linkify($content)\r\n{\r\n\t\r\n\t$pattern = '#\\b(([\\w-]+://?|www[.])[^\\s()<>]+(?:\\([\\w\\d]+\\)|([^[:punct:]\\s]|/)))#';\r\n\t$callback = create_function('$matches', '\r\n\t\t$url = array_shift($matches);\r\n\t\t$url_parts = parse_url($url);\r\n\r\n\t\t$text = parse_url($url, PHP_URL_HOST) . parse_url($url, PHP_URL_PATH);\r\n\r\n\t\treturn sprintf(\\'<a rel=\"nofollow\" href=\"%s\">%s</a>\\', $url, $text);\r\n\t');\r\n\r\n\t$content = preg_replace_callback($pattern, $callback, $content);\r\n\t\r\n\treturn $content;\r\n\t\r\n}", "title": "" }, { "docid": "8349f2c35892ef9b4952fdc87ad0833d", "score": "0.62481123", "text": "public function generateShortlink(): void {\n $shortlink = \"\";\n $titleWordArray = explode(\" \", $this->title);\n\n // get first 5 words and hyphenate\n if(count($titleWordArray) < 5) {\n foreach($titleWordArray as $word) {\n $shortlinkWord = preg_replace(\"/[^A-Za-z0-9 ]/\", '', $word);\n $shortlink .= strtolower($shortlinkWord) . \"-\";\n }\n } else {\n for($i = 0; $i < 5; $i++) {\n $shortlinkWord = preg_replace(\"/[^A-Za-z0-9 ]/\", '', $titleWordArray[$i]);\n $shortlink .= strtolower($shortlinkWord) . \"-\";\n }\n }\n // remove illegal characters\n $shortlink = htmlspecialchars(substr($shortlink, 0, -1));\n\n // trim to 30\n if (strlen($shortlink) > 30) {\n $shortlink = substr($shortlink, 0, 30);\n }\n\n $this->shortlink = $shortlink;\n }", "title": "" }, { "docid": "7c81a6d11aae1eaf3b5f27b3e95ad4ba", "score": "0.624454", "text": "function makeClickableLinks($text)\n {\n\t$text = \" \" . $text; // fixes problem of not linking if no chars before the link\n\t $text = preg_replace('/(((f|ht){1}tp?s:\\/\\/)[-a-zA-Z0-9@:%_\\+.~#?&\\/\\/=]+)/i',\n\t\t\t\t\t\t '<a href=\"\\\\1\">\\\\1</a>', $text);\n\t $text = preg_replace('/([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\\+.~#?&\\/\\/=]+)/i',\n\t\t\t\t\t\t '\\\\1<a href=\"http://\\\\2\">\\\\2</a>', $text);\n\t $text = preg_replace('/([_\\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\\.)+[a-z]{2,3})/i',\n\t\t\t\t\t\t '<a href=\"mailto:\\\\1\">\\\\1</a>', $text);\n\t return trim($text);\n }", "title": "" }, { "docid": "dace416a65945d648c4dd6899fe1cbf3", "score": "0.6238544", "text": "function GetHref($translit){\n $str=_LINK.'dealers/';\n $str.=$translit.'/';\n return $str;\n }", "title": "" }, { "docid": "12a819c908f32b2ab338801e903edb69", "score": "0.6216244", "text": "public function shortenURL( $str ) {\n\tglobal $account;\n\t\n\t\t// Validate URL\n\t\tif (filter_var($str, FILTER_VALIDATE_URL) === FALSE) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Insert and get the last ID, then convert it\n\t\t$this->DB->exec(\"INSERT INTO urls VALUES ('', '{$str}', '{$_SERVER['REMOTE_ADDR']}', '\".time().\"', '0', '', 0);\");\n\t\t$last_id = $this->DB->lastInsertId();\n\t\t\n\t\t// Increase total URLs hosted statistic\n\t\t$this->DB->exec(\"UPDATE stats SET TOTAL_URLS=TOTAL_URLS+1;\");\n\t\t\n\t\t// Base url and the identifier concat'd\n\t\treturn $this->base_url . $this->int_toBase36( $last_id );\n\t\t\n\t}", "title": "" }, { "docid": "27dc6878fff3edfa48a0c7ca964a1c01", "score": "0.6216041", "text": "abstract protected function buildLink();", "title": "" }, { "docid": "f051d3efa81864947e01cef770963cb7", "score": "0.6209492", "text": "public static function seoFriendlyUrl($string)\n {\n $numwords = 10;\n $padding = null;\n\n $output = strtok($string, \" \\n\");\n while(--$numwords > 0) $output .= \" \" . strtok(\" \\n\");\n if($output != $string) $output .= $padding;\n\n return preg_replace('/[^a-z0-9_-]/i', '', strtolower(str_replace(' ', '-', trim($output))));\n }", "title": "" }, { "docid": "bba7586689f16f4292c15961bbd469be", "score": "0.62009066", "text": "function format_urls ($s, $target = '_blank')\n {\n return preg_replace ('/(\\\\A|[^=\\\\]\\'\"a-zA-Z0-9])((http|ftp|https|ftps|irc):\\\\/\\\\/[^()<>\\\\s]+)/i', '' . '\\\\1<a href=\"\\\\2\" target=\"' . $target . '\">\\\\2</a>', $s);\n }", "title": "" }, { "docid": "2b05f0e490913f68b00921a3e6d018c2", "score": "0.6197131", "text": "function txt2link($text, $attributes){\n \t$text = preg_replace( '/www\\./', \"http://www.\", $text );\n \t// eliminate duplicates after force\n $text = preg_replace( '`http://http://www\\.`', \"http://www.\", $text );\n $text = preg_replace( '`https://http://www\\.`', \"https://www.\", $text );\n\n $attrs = '';\n \tforeach ($attributes as $attribute => $value) {\n \t\t$attrs .= \" {$attribute}=\\\"{$value}\\\"\";\n \t}\n\n \t$text = ' ' . $text;\n \t$text = preg_replace(\n \t\t'`([^\"=\\'>])((http|https|ftp)://[^\\s<]+[^\\s<\\.)])`i',\n \t\t'$1<a href=\"$2\"'.$attrs.'>$2</a>',\n \t\t$text\n \t);\n \t$text = substr($text, 1);\n\n \treturn $text;\n }", "title": "" }, { "docid": "59da20e7de73ab5a40f7d1c454b52031", "score": "0.619507", "text": "function get_link($str, $chinese = true)\n{\n\tif ($chinese)\n\t{\n\t\tif (preg_match('/^[\\x{4e00}-\\x{9fa5}A-Za-z0-9_\\-\\:\\.\\%\\#\\@\\!\\&\\*\\+\\?\\,\\/]+$/u', $str))\n\t\t\treturn $str;\n\t\telse\n\t\t\treturn false;\n\t}\n\telse\n\t{\n\t\tif (preg_match('/^[A-Za-z0-9_\\-\\:\\.\\%\\#\\@\\!\\&\\*\\+\\?\\,\\/]+$/i', $str))\n\t\t\treturn $str;\n\t\telse\n\t\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "0d3f7f952b9acd6ea8f21c5aac72ff15", "score": "0.61940724", "text": "function message_url($url, $text){\n return \"[href:\".$url.\"|\".$text.\"]\";\n}", "title": "" }, { "docid": "15e96bf859fccdb162f15feaf0776e27", "score": "0.61932653", "text": "public static function createFriendlyUrl(array $arrItemData) \r\n\t{\r\n\t\t$Application = \\Core\\Application::getInstance();\r\n\t\t$arrItemData = array_change_key_case($arrItemData, CASE_LOWER);\r\n\t\t$strTitle = $arrItemData['addresstext'];\t\r\n\t\t\r\n\t\t$search = explode(\",\",\"ç,æ,œ,á,é,í,ó,ú,à,è,ì,ò,ù,ä,ë,ï,ö,ü,ÿ,â,ê,î,ô,û,å,e,i,ø,u\");\r\n\t\t$replace = explode(\",\",\"c,ae,oe,a,e,i,o,u,a,e,i,o,u,a,e,i,o,u,y,a,e,i,o,u,a,e,i,o,u\");\r\n\t\t$strTitle = str_replace($search, $replace, $strTitle);\r\n\t\t//$strTitle = iconv('UTF-8','ASCII//TRANSLIT', $strTitle);\r\n\t\t\r\n\t\t$strTitle = preg_replace('/[^A-Za-z0-9 ]/', ' ', ucwords($strTitle));\r\n\t\t$strTitle = preg_replace('/[\\s]{1,}/', ' ', ucwords($strTitle));\r\n\t\t$strTitle = preg_replace('/[\\s]/', '-', $strTitle);\r\n\t\t$strTitle .= '-' . (int) $arrItemData['id'];\r\n\t\t\r\n\t\treturn \\Core\\Net\\HttpRequest::getInstance()->route('listing-detail', $strTitle, array());\r\n\t}", "title": "" }, { "docid": "94e543ee53c7ee45071733834153cbd8", "score": "0.61666644", "text": "public function getLink()\n {\n // Parsing the data of the category\n $category_id = (int) $this->category->id;\n $category_slug = e($this->category->slug);\n\n $category_params = $category_id . '-' . $category_slug;\n\n // Parsing the data of the article\n $article_id = (int) $this->id;\n $article_slug = e($this->slug);\n\n // Returning the url\n return route('n.article', [$category_params, $article_id, $article_slug]);\n }", "title": "" }, { "docid": "7a100e77414ca2ad7383cda466083656", "score": "0.6152361", "text": "function _linkify($text, $blank = false, $title = '\\\\0')\r\n{\r\n if ($blank) {\r\n $str = \" target = '_blank'\";\r\n }\r\n return preg_replace(\r\n \"/\\b(https?|ftp|file):\\/\\/[-A-Z0-9+&@#\\/%?=~_|!:,.;]*[A-Z0-9+&@#\\/%=~_|]/i\",\r\n \"<a $str href=\\\"\\\\0\\\">$title</a>\",\r\n $text\r\n );\r\n}", "title": "" }, { "docid": "6d874fe8e950ef9cbdc8f7434b87de0a", "score": "0.61355025", "text": "function makelink($href, $description, $echo = false, $ajax = false, $method = \"get\")\n{\n $url = url($href);\n $a = (string)\"\";\n if($ajax) {\n $a = makeAjaxRequest($href, $method);\n }\n $link = \"<a href=\\\"{$url}\\\" {$a}>$description</a>\";\n if($echo) {\n echo($link);\n } else {\n return $link;\n }\n}", "title": "" }, { "docid": "a1e24af937d38212ba7a89bb02da3484", "score": "0.61339724", "text": "public function urlFriendly($string) {\n\t\treturn trim(preg_replace('/[^\\w]+/i', '-', str_replace(\"'\", '', strtolower($string))), '-');\n\t}", "title": "" }, { "docid": "32d7ac776aa0ae6f3092edc7c048ba25", "score": "0.612614", "text": "protected function convertForUrl( $string = '' )\n\t{\n\t\t$string\t= str_replace(\n\t\t\tarray( 'Ä', 'Ö', 'Ü', 'ä', 'ö', 'ü', 'ß'),\n\t\t\tarray( 'Ae', 'Oe', 'Ue', 'ae', 'oe', 'ue', 'ss'),\n\t\t\t$string\n\t\t);\n\t\t$string\t= preg_replace( '/[^\\\\pL\\d_]+/u', '-', $string );\n\t\t$string\t= trim( $string, '-' );\n\t\t$string\t= iconv( 'utf-8', \"ascii//TRANSLIT\", $string );\n\t\t$string\t= $this->lowerCase ? strtolower( $string ) : $string;\n\t\t$string\t= preg_replace( '/[^-a-z0-9_]+/i', '', $string );\n\t\treturn $string;\n\t}", "title": "" }, { "docid": "2a23674e48e572048a22b306f9764b8f", "score": "0.6117619", "text": "public function generateUrl(Url $url);", "title": "" }, { "docid": "323766403c539aae9e6eb3ab4460a8bd", "score": "0.6117434", "text": "function convert_urls($text)\n {\n // force http: on www.\n $text = ereg_replace( \"www\\.\", \"http://www.\", $text );\n\n // eliminate duplicates after force\n $text = ereg_replace( \"http://http://www\\.\", \"http://www.\", $text );\n $text = ereg_replace( \"https://http://www\\.\", \"https://www.\", $text );\n\n // The Regular Expression filter\n $reg_exUrl = \"/(http|https|ftp|ftps)\\:\\/\\/[a-zA-Z0-9\\-\\.]+\\.[a-zA-Z]{2,3}(\\/\\S*)?/\";\n\n return preg_replace('@(https?://([-\\w\\.]+[-\\w])+(:\\d+)?(/([\\w/_\\.#-]*(\\?\\S+)?[^\\.\\s])?)?)@', '<a href=\"$1\" target=\"_blank\">$1</a>', $text);\n }", "title": "" }, { "docid": "1d0de25419f9bf7d9af5208fcf440d00", "score": "0.6114502", "text": "function make_clickable($text) {\n $ret = \" \" . $text;\n $ret = preg_replace(\"#([\\n ])([a-z]+?)://([^, <>{}\\n\\r]+)#i\", \"\\\\1<a href=\\\"\\\\2://\\\\3\\\" target=\\\"_blank\\\">\\\\2://\\\\3</a>\", $ret);\n $ret = preg_replace(\"#([\\n ])aim:([^,< \\n\\r]+)#i\", \"\\\\1<a href=\\\"aim:goim?screenname=\\\\2\\\\3&message=Hello\\\">\\\\2\\\\3</a>\", $ret);\n $ret = preg_replace(\"#([\\n ])icq:([^,< \\n\\r]+)#i\", \"\\\\1<a href=\\\"http://wwp.icq.com/scripts/search.dll?to=\\\\2\\\\3\\\">\\\\2\\\\3</a>\", $ret);\n $ret = preg_replace(\"#([\\n ])www\\.([a-z0-9\\-]+)\\.([a-z0-9\\-.\\~]+)((?:/[^,< \\n\\r]*)?)#i\", \"\\\\1<a href=\\\"http://www.\\\\2.\\\\3\\\\4\\\" target=\\\"_blank\\\">www.\\\\2.\\\\3\\\\4</a>\", $ret);\n $ret = preg_replace(\"#([\\n ])([a-z0-9\\-_.]+?)@([^,< \\n\\r]+)#i\", \"\\\\1<a href=\\\"mailto:\\\\2@\\\\3\\\">\\\\2@\\\\3</a>\", $ret);\n $ret = substr($ret, 1);\n return($ret);\n}", "title": "" }, { "docid": "1c91f4216081547ef105b92177308336", "score": "0.61118174", "text": "function url_make_link_relative( $link ) {\n\treturn preg_replace( '|https?://[^/]+(/.*)|i', '$1', $link );\n}", "title": "" }, { "docid": "3c3f7f0550191411f20940558cedcd70", "score": "0.60948074", "text": "function translateInternalLink($s) {\r\n\t\tif (substr($s, 0, 5) == \"http:\" || substr($s, 0, 6) == \"https\") return $s;\r\n\t\treturn str_replace(\":\", \"/\", $s);\r\n\t}", "title": "" }, { "docid": "5b9cff64181e0d7dc16014f0871506a9", "score": "0.6065227", "text": "function lookurl($texto)\n{\n\t//recibe un texto y devuelve el mismo texto con los enlaces en html\n\t//primero buscamos la url http://**** \n\t$inicio = strpos($texto,\"http://\");\n\n\tif (!is_numeric($inicio))\n\t{\n\t\treturn $texto;\n\t}\n\telse\n\t{\n\t\t//Obtenemos la cadena desde el enlace en adelante\n\t\t$cadena = substr($texto,$inicio);\t\t\n\t\t//Obtenemos el enlace\n\t\t$final = strpos($cadena,\" \");\n\t\tif (!is_numeric($final))\n\t\t{\n\t\t\t//Es porque el enlace está al final del texto\n\t\t\t$final=strlen($texto);\n\t\t} \n\t\t$cadena = substr($cadena,0,$final);\n\t\t$texto = str_replace($cadena,'<a href=\"'.$cadena.'\" target=\"_blank\">'.$cadena.'</a>',$texto);\n\t\treturn $texto;\n\t}\n}", "title": "" }, { "docid": "797f1b63d5f02e92aa83351f841c024c", "score": "0.6063448", "text": "public static function clickable($url){\n\t\t$url = str_replace(\"\\\\r\",\"\\r\",$url);\n\t\t$url = str_replace(\"\\\\n\",\"\\n<br/>\",$url);\n\t\t$url = str_replace(\"\\\\n\\\\r\",\"\\n\\r\",$url);\n\t\t$url = str_replace(\"\\r\\n\",\"<br/>\",$url);\n\t\t$url = str_replace(\"\\n\",\"<br/>\",$url);\n\t\t$url = str_replace(\"<br/>\",\"\\n<br/>\\n\",$url);\n\t\n\t\t\n\t\t\n\t\t$url = str_replace(\"redirect=https%3A%2F%2Fwww\",\"redirect=hXttps%3A%2F%2FwXww\",$url);\n\t\t$url = str_replace(\"redirect=http%3A%2F%2Fwww\",\"redirect=hXttp%3A%2F%2FwXww\",$url);\n\t\n\t\t\n\t\t$in=array(\n\t\t'`((?:https?|ftp)://\\S+[[:alnum:]]/?)`si',\n\t\t'`((?<!//)(www\\.\\S+[[:alnum:]]/?))`si'\n\t\t);\n\t\t$out=array(\n\t\t'<a href=\"$1\">$1</a> ',\n\t\t'<a href=\"http://$1\">$1</a>'\n\t\t);\n\t\t$url = preg_replace($in,$out,$url);\n\t\t\n\t\t\n\t\t$url = str_replace(\"hXttp\",\"http\",$url);\n\t\t$url = str_replace(\"wXww\",\"www\",$url);\n\t\t//*/\n\t\t\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "853420faf574c6434767a410958aba95", "score": "0.60566306", "text": "function seo_url($txt) {\n $txt = strtolower(trim($txt));\n $string = strtr(trim($txt), '�����������������������������������������������������', 'aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn');\n $txt = preg_replace('[^a-z0-9]', '-', $txt);\n $txt = preg_replace('#([^a-z0-9_-]|(-){2,})#', '-', $txt);\n $txt = str_replace('_', '-', $txt);\n $txt = str_replace('---', '-', $txt);\n $txt = str_replace('--', '-', $txt);\n return $txt;\n }", "title": "" }, { "docid": "2902e03a718de1c1ec77a978849dbe16", "score": "0.604838", "text": "function a_href($link, $text)\n{\n return \"<a href=\\\"\".$link.\"\\\">\".$text.\"</a>\";\n}", "title": "" }, { "docid": "7c3cfc941a1f408771ebb38724f10354", "score": "0.6022902", "text": "public static function href($url=\"\"){\n \treturn BASE_URL.$url;\n }", "title": "" }, { "docid": "3f624161d9ee83064245e2c3218870a8", "score": "0.6022051", "text": "function makeUrl ($input) {\r\r\n\t\r\r\n\tglobal $HTTP_SERVER_VARS;\r\r\n\tglobal $scripthost;\r\r\n\t$retval = \"\";\r\r\n\t\r\r\n\t$input = strtr ($input, \"\\\\\", \"/\");\r\r\n\t$tokens = parse_url ($input);\r\r\n\tif \t(isset ($tokens[\"host\"])) {\r\r\n\t\t$retval = $input;\r\r\n\t}\r\r\n\telse {\r\r\n\t\t$docRoot = strtr ($HTTP_SERVER_VARS['DOCUMENT_ROOT'], \"\\\\\", \"/\");\r\r\n\t\t$input = str_replace ($docRoot, \"\", $input);\r\r\n\t\t$retval = $scripthost.(($input{0} == '/')?\"\":\"/\").$input;\r\r\n\t}\r\r\n\treturn $retval;\r\r\n}", "title": "" }, { "docid": "10fd051bb83024abcdbca73046dc47ef", "score": "0.60194886", "text": "public function autoLinkText($text)\n {\n $reg_exUrl = \"/(http|https|ftp|ftps)\\:\\/\\/[a-zA-Z0-9\\-\\.]+\\.[a-zA-Z]{2,5}(\\/\\S*)?/\";\n\n if (preg_match($reg_exUrl, $text, $url)) {\n return preg_replace($reg_exUrl, '<a target=\"_blank\" rel=\"nofollow\" href=\"'.$url[0].'\">'.$url[0].'</a>', $text);\n }\n\n return $text;\n }", "title": "" }, { "docid": "dd0ed4a40984198f44a0a37bc8ecd02a", "score": "0.6017591", "text": "public static function vnToUrl($string)\n {\n $string = self::vnToAscii($string);\n $string = str_replace(self::$arrCharFill, '', $string);\n return str_replace(' ', '-', $string);\n }", "title": "" }, { "docid": "a525ffcb10f548f016539dc1b8dc5d1a", "score": "0.60142726", "text": "function htmlStr( $str ) {\n $str = htmlspecialchars($str);\n $str = eregi_replace( \"([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])\",\n \"<a href=\\\"\\\\1://\\\\2\\\\3\\\" target=\\\"_blank\\\">\\\\1://\\\\2\\\\3</a>\", $str);\n $str = eregi_replace( \"(([a-z0-9_]|\\\\-|\\\\.)+@([^[:space:]]*)([[:alnum:]-]))\",\n \"<a href=\\\"mailto:\\\\1%s\\\" >\\\\1</a>\", $str);\n $str = nl2br( $str );\n return $str;\n}", "title": "" }, { "docid": "3c60b202710800e81e06ae947caaef19", "score": "0.6010513", "text": "function make_links_clickable($text) {\r\n\treturn preg_replace('!(((f|ht)tp(s)?://)[-a-zA-Z()0-9@:%_+.~#?&;//=]+)!i', '<a href=\"$1\" rel=\"nofollow\">$1</a>', $text);\r\n}", "title": "" }, { "docid": "4f11902943ae289ae87997eb98cda6cd", "score": "0.60017055", "text": "function wp_make_link_relative( $link ) {\n\treturn preg_replace( '|^(https?:)?//[^/]+(/?.*)|i', '$2', $link );\n}", "title": "" }, { "docid": "8998a6527de7d052a8f42e6220eb54f2", "score": "0.5999019", "text": "public function seo_friendly_url($string){\n\t $string = str_replace(array('[\\', \\']'), '', $string);\n\t $string = preg_replace('/\\[.*\\]/U', '', $string);\n\t $string = preg_replace('/&(amp;)?#?[a-z0-9]+;/i', '-', $string);\n\t $string = preg_replace(array('/[^a-z0-9]/i', '/[-]+/') , '-', $string);\n\n\t return strtolower(trim($string, '-'));\n\t}", "title": "" }, { "docid": "9749fea876050ae246820b1f8b711ffd", "score": "0.5995686", "text": "protected function old_convert_urls_into_links(&$text) {\n /// Make lone URLs into links. eg http://moodle.com/\n $text = preg_replace(\"%([[:space:]]|^|\\(|\\[)([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])%i\",\n '$1<a href=\"$2://$3$4\" target=\"_blank\">$2://$3$4</a>', $text);\n /// eg www.moodle.com\n $text = preg_replace(\"%([[:space:]]|^|\\(|\\[)www\\.([^[:space:]]*)([[:alnum:]#?/&=])%i\",\n '$1<a href=\"http://www.$2$3\" target=\"_blank\">www.$2$3</a>', $text);\n }", "title": "" }, { "docid": "771369f3efe30a9043725e30308d03c6", "score": "0.5988114", "text": "function link_url_from_src( $src ) {\n\t\t$parts = explode( '/', $src );\n\t\t$video_id = substr( end( $parts ), 0, 11 );\n\n\t\t//Reconstruct the video permalink based on the ID\n\t\t$url = 'http://www.youtube.com/watch?v=' . $video_id;\n\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "5c93e5bc31238fc273750ef2bbe0b09d", "score": "0.59724367", "text": "function linkify_tweet($tweet){\n\t$tweet = preg_replace(\"/([\\w]+\\:\\/\\/[\\w-?&;#~=\\.\\/\\@]+[\\w\\/])/\", \"<a target=\\\"_blank\\\" href=\\\"$1\\\">$1</a>\", $tweet);\n\t//Convert hashtags to twitter searches in <a> links\n\t$tweet = preg_replace(\"/#([A-Za-z0-9\\/\\.]*)/\", \"<a target=\\\"_new\\\" href=\\\"http://twitter.com/search?q=$1\\\">#$1</a>\", $tweet);\n\t//Convert attags to twitter profiles in <a> links\n\t$tweet = preg_replace(\"/@([A-Za-z0-9\\/\\.]*)/\", \"<a href=\\\"http://www.twitter.com/$1\\\">@$1</a>\", $tweet);\n\treturn $tweet;\n}", "title": "" }, { "docid": "685010eaa3e142335f76eba4308aeabb", "score": "0.5956601", "text": "function format_link($args) {\n $text = (isset($args['text']) ? $args['text'] : '');\n $linktext = (isset($args['linktext']) ? $args['linktext'] : '');\n $title = $args['title'];\n $url = $args['url'];\n $clsty = $args['clsty'];\n\n if (!$url || ($url == '')) {\n return $text;\n }\n if (isset($this->links) && isset($this->links[$url])) {\n $title = ($title ? $title : $this->links[$url]['title']);\n $url = $this->links[$url]['url'];\n }\n $linktext = preg_replace('/ +$/', '', $linktext, 1);\n $linktext = $this->format_paragraph(array('text' => $linktext));\n $url = $this->format_url(array('linktext' => $linktext, 'url' => $url));\n $tag = \"<a href=\\\"$url\\\"\";\n $attr = $this->format_classstyle($clsty);\n if ($attr) { $tag .= \" $attr\"; }\n if ($title) {\n $title = preg_replace('/^\\s+/', '', $title, 1);\n if (strlen($title)) { $tag .= \" title=\\\"$title\\\"\"; }\n }\n $tag .= \">$linktext</a>\";\n return $tag;\n }", "title": "" }, { "docid": "b9bad63206fb4a3c46df32beabfa7f76", "score": "0.59529096", "text": "function Rewrite_url ( $texte )\n\t{\n\t\n\t\t$url = '' ;\n\t\t$url = strtolower ( $texte ) ;\n\t\t$url = str_replace ( '<br />', '_', $url ) ;\n\t\t$url = str_replace ( '<br/>', '_', $url ) ;\n\t\t$url = strip_tags ( $url ) ;\n\t\t$url = strtr ( $url, \"ÉÈÊÀàäâéèëêïîöôüûç\", \"eeeaaaaeeeeiioouuc\" ) ;\n\t\t$url = str_replace ( '-', '_', $url ) ;\n\t\t$url = preg_replace ( '#[^a-z0-9-\\.]#i', '_', $url ) ; \n\t\t$url = preg_replace ( '[_+]', '_', $url ) ; \n\t\t$url = str_replace ( array ( '_a_', '_l_', '_d_', '_c_' ), '_', $url ) ;\n\t\t$url = ( strrpos ( $url, '_' ) == strlen ( $url ) - 1 ) ? substr ( $url, 0, ( strlen ( $url ) - 1 ) ) : $url ;\n\t\t\n\t\treturn ( $url ) ;\n\t\t\n\t}", "title": "" }, { "docid": "35ba81d7062ca852f0d10f85b1836829", "score": "0.59416574", "text": "function changeLink($string, $tags=false, $nofollow, $target){\r\r\n if(!$tags){\r\r\n $string = strip_tags($string);\r\r\n } else {\r\r\n if($target){\r\r\n $string = str_replace(\"<a\", \"<a target=\\\"_blank\\\"\", $string);\r\r\n }\r\r\n if($nofollow){\r\r\n $string = str_replace(\"<a\", \"<a rel=\\\"nofollow\\\"\", $string);\r\r\n }\r\r\n }\r\r\n return $string;\r\r\n }", "title": "" }, { "docid": "b582328bc6f7e949bebb1bc8483a603d", "score": "0.5941541", "text": "function do_html_URL($url, $name)\n{\n?>\n <br /><a href=\"<?php echo $url;?>\"><?php echo $name;?></a><br />\n<?php\n}", "title": "" }, { "docid": "8de7a3438fe3a62865bd63e74f392597", "score": "0.5940659", "text": "public function seo_friendly_url($string){\n $string = str_replace(array('[\\', \\']'), '', $string);\n $string = preg_replace('/\\[.*\\]/U', '', $string);\n $string = preg_replace('/&(amp;)?#?[a-z0-9]+;/i', '-', $string);\n $string = htmlentities($string, ENT_COMPAT, 'utf-8');\n $string = preg_replace('/&([a-z])(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig|quot|rsquo);/i', '\\\\1', $string );\n $string = preg_replace(array('/[^a-z0-9]/i', '/[-]+/') , '-', $string);\n return strtolower(trim($string, '-'));\n }", "title": "" }, { "docid": "8de7a3438fe3a62865bd63e74f392597", "score": "0.5940659", "text": "public function seo_friendly_url($string){\n $string = str_replace(array('[\\', \\']'), '', $string);\n $string = preg_replace('/\\[.*\\]/U', '', $string);\n $string = preg_replace('/&(amp;)?#?[a-z0-9]+;/i', '-', $string);\n $string = htmlentities($string, ENT_COMPAT, 'utf-8');\n $string = preg_replace('/&([a-z])(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig|quot|rsquo);/i', '\\\\1', $string );\n $string = preg_replace(array('/[^a-z0-9]/i', '/[-]+/') , '-', $string);\n return strtolower(trim($string, '-'));\n }", "title": "" }, { "docid": "8ab09c730dbd7fa9714015fbfde0f06c", "score": "0.5936948", "text": "function aw960_httpify($link, $append = 'http://', $allowed = array(\n 'http://',\n 'https://',\n)) {\n $link = trim($link);\n $found = FALSE;\n foreach ($allowed as $protocol) {\n if (strpos($link, $protocol) !== FALSE) {\n $found = TRUE;\n }\n }\n\n if ($found) {\n return $link;\n }\n\n return $append . $link;\n}", "title": "" }, { "docid": "5ae74ebaaa6041e897f3c0ecfdd652f8", "score": "0.59345853", "text": "private static function render_url($url)\n {\n return !empty($url) && ($host = @parse_url($url, PHP_URL_HOST))\n ? html_writer::link($url, $host, array('title' => $url))\n : $url;\n }", "title": "" }, { "docid": "bbef8f4b1b3a2c9d491e662345ba9f18", "score": "0.5934175", "text": "function stringScanner($str) {\n\n\t\t$temp = explode(\" \",$str);\n\n\t\tfor ($i = 0;$i <= sizeof($temp); $i++) {\n\n\t\t\t// convert the string to lowercase first then,\n\t\t\t// if \"http://\" tag is detected then link it\n\t\t\tif(false !== strpos(strtolower($temp[$i]),'http://')) {\n\n\t\t\t\t\t$temp[$i] = \"<a href =\" .$temp[$i] .\">\" .$temp[$i] .\"</a>\";\n\n\t\t\t} // end if\n\n\t\t\t// if not just, whatever man\n\n\t\t} // end for\n\n\t\treturn implode(\" \",$temp);\n\n\t}", "title": "" }, { "docid": "fab5aa2695220756b03a05ff8f1d5e3d", "score": "0.5933029", "text": "function cot_rc_link($url, $text, $attrs = '')\n{\n\t$link_attrs = cot_rc_attr_string($attrs);\n\treturn '<a href=\"' . $url . '\"' . $link_attrs . '>' . $text . '</a>';\n}", "title": "" }, { "docid": "a4c2ea3dff9a42868e4277b0c2a62151", "score": "0.589187", "text": "function cot_parse_autourls($text)\n{\n\t$text = preg_replace('`(^|\\s)(http|https|ftp)://([^\\s\"\\'\\[]+)`', '$1<a href=\"$2://$3\">$2://$3</a>', $text);\n\treturn $text;\n}", "title": "" }, { "docid": "d8b51caaaf656522a2a6f8e5bb609c09", "score": "0.5891521", "text": "function map_url($url) {\n // url is something like \"../blog/foo.php\"\n // convert it to something like \"https://technikum29.de/blog/foo\"\n $url = get_absolute_path(\"/blog/$url\");\n $url = \"https://technikum29.de/$url\"; // prepend host\n $url = preg_replace('/\\\\.[^.\\\\s]{3,4}$/', '', $url); // remove .php\n return $url;\n}", "title": "" }, { "docid": "16ebf5d01bb6b3b9e15f33b1e404facb", "score": "0.5888325", "text": "function standa_autolink($message) {\n $message = preg_replace('#([\\s|^])(www)#i', '$1http://$2', $message);\n $pattern = '#((http|https|ftp|telnet|news|gopher|file|wais):\\/\\/[^\\s]+)#i';\n $replacement = '<a href=\"$1\" target=\"_blank\">$1</a>';\n $message = preg_replace($pattern, $replacement, $message);\n\n /* Convert all E-mail matches to appropriate HTML links */\n $pattern = '#([0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\\\.';\n $pattern .= '[a-wyz][a-z](fo|g|l|m|mes|o|op|pa|ro|seum|t|u|v|z)?)#i';\n $replacement = '<a href=\"mailto:\\\\1\">\\\\1</a>';\n $message = preg_replace($pattern, $replacement, $message);\n return $message;\n}", "title": "" }, { "docid": "528bf05f0f52648b921128e4658a786e", "score": "0.5886141", "text": "public function getLinkURL()\n {\n return sprintf('https://twitter.com/%s', $this->Username);\n }", "title": "" }, { "docid": "ee1b0a90729eac13029ffaafcc74e98c", "score": "0.5881211", "text": "protected function url()\n {\n $this->matches[\"/\\[url\\](.*?)\\[\\/url\\]/is\"] = function ($match) {\n return $this->html->link($match[1], $match[1]);\n };\n\n // Replace \"[url=http://domain/]A link[/url]\" with \"<a href=\"http://omain/\">A link</a>\"\n $this->matches[\"/\\[url=(.*?)\\](.*?)\\[\\/url\\]/is\"] = function ($match) {\n return $this->html->link($match[1], $match[2]);\n };\n }", "title": "" }, { "docid": "d183dc814809f4f5abb772089a077e18", "score": "0.58791", "text": "function parseUserLink($string)\n{\n\n\treturn preg_replace('#&lt;(användare).*?[^&gt;]*&gt;(.[a-zA-Z0-9_-]*?)&lt;/(användare)&gt;#is','<a href=\"/traffa/quicksearch.php?username=$2\">$2</a>',$string);\n}", "title": "" }, { "docid": "5551d0814ae5264db441d85daf7407af", "score": "0.5867796", "text": "public function create_links ($text, $field_type = \"varchar\") {\n // create links only for varchar fields\n if (strpos($field_type, \"varchar\")!==false) {\n \t\t// regular expression\n \t\t$reg_exUrl = \"#(http|https|ftp|ftps|telnet|ssh)://\\S+[^\\s.,>)\\];'\\\"!?]#\";\n\n \t\t// Check if there is a url in the text\n \t\tif(preg_match($reg_exUrl, $text, $url)) {\n \t // make the urls hyper links\n \t $text = preg_replace($reg_exUrl, \"<a href='{$url[0]}' target='_blank'>{$url[0]}</a> \", $text);\n \t\t}\n }\n // return text\n return $text;\n\t}", "title": "" } ]
4ed4ae5cee3e9513215160fe5fded656
pad integer value from Filemaker to create a year that meets the xs:gYear specification
[ { "docid": "3c762c0b0f6ab60cc53e260e037478df", "score": "0.7164787", "text": "function number_pad($number,$n) {\n\tif ($number > 0){\n\t\t$gYear = str_pad((int) $number,$n,\"0\",STR_PAD_LEFT);\n\t} elseif ($number < 0) {\n\t\t$gYear = '-' . str_pad((int) abs($number),$n,\"0\",STR_PAD_LEFT);\n\t}\n\treturn $gYear;\n}", "title": "" } ]
[ { "docid": "6568a856e1138017c2bd805c83fa8ebd", "score": "0.671192", "text": "public function year() { return 0; }", "title": "" }, { "docid": "10f57bca86d05248d2424f6120e6505b", "score": "0.66926146", "text": "public function Ano4() {\n return $this->mktime != 0 ? date('Y', $this->mktime) : '0000';\n }", "title": "" }, { "docid": "366232060accac0a979c2c78dfd5fbf5", "score": "0.66656744", "text": "function getAcademicYear(){\r\n\t\t$y = date('Y');;\r\n\t\t$m = (int)date('m');\r\n\t\tif($m >= 1 && $m < 8){\r\n\t\t\treturn ($y - 1).\"-\".$y;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn $y .\"-\".($y + 1);\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "95286ce5f5ce07f5956e3ac4399392f8", "score": "0.66352314", "text": "function mbpc_year() {\n\treturn '<span class=\"the-year\">' . date( 'Y' ) . '</span>';\n}", "title": "" }, { "docid": "41c5672c55644a20e682791d44d16d03", "score": "0.6570616", "text": "function get_year_RN()\n{\n\treturn 35.63;\n}", "title": "" }, { "docid": "e3dd4456254f45eeacc4535700a34137", "score": "0.65682507", "text": "function setYear($yearno)\n {\n // 1970-2038 is the allowable range for the timestamp code used\n // Needs to be revisited in the next 30 years\n $yearno = intval($yearno);\n if ($yearno < 1970)\n $this->yearno_ = 1970;\n if ($yearno > 2038)\n $this->yearno_ = 2038;\n else\n $this->yearno_ = $yearno;\n }", "title": "" }, { "docid": "a53a1b9dda8d787a3f8f73dc72cade74", "score": "0.6462075", "text": "public function ShortYear()\n {\n return $this->Format('yy');\n }", "title": "" }, { "docid": "8229e7502dc1041c4e0cdd0211e75fd4", "score": "0.6457594", "text": "public function getYearDesignation();", "title": "" }, { "docid": "8bd8a51833e11f921c48d664f2636f7d", "score": "0.6411862", "text": "private function calculate_year() {\n if ( $this->engMonth >= 4 ) {\n if ( $this->engMonth == 4 && $this->engDate < 14 ) { //1-13 on april when hour is greater than 6\n $this->bangYear = $this->engYear - 594;\n } else if ( $this->engMonth == 4 && $this->engDate == 14 && $this->engHour <= 5 ) {\n $this->bangYear = $this->engYear - 594;\n } else if ( $this->engMonth == 4 && $this->engDate == 14 && $this->engHour >= 6 ) {\n $this->bangYear = $this->engYear - 593;\n }\n /* else if($this->engMonth == 4 && ($this->engDate == 14 && $this->engDate) && $this->engHour <=5) //1-13 on april when hour is greater than 6\n {\n $this->bangYear = $this->engYear - 593;\n }\n */\n else\n $this->bangYear = $this->engYear - 593;\n }\n else\n $this->bangYear = $this->engYear - 594;\n }", "title": "" }, { "docid": "ca1d627f7579de41604f025f22d2517f", "score": "0.6391936", "text": "function getLastYearIn4Digits($yearNow){\n\treturn $lastYear = $yearNow - 1;\n}", "title": "" }, { "docid": "0ae7468dcef3833b531576fd0efa4bb9", "score": "0.63840395", "text": "public function setYear ($year = 1970) {\r\n\t\t$this->year = 0 + $year;\r\n\t}", "title": "" }, { "docid": "ec2d4722d8534b2105bde0831e50d342", "score": "0.63830715", "text": "public function year($value) {\n return $this->setProperty('year', $value);\n }", "title": "" }, { "docid": "4c9da0a132485a8bcefb4bc8fb24b1f1", "score": "0.63793445", "text": "public function resolve_year() {\n $academicYearStart = strftime(\"%Y\",strtotime(\"-8 months\",time()));\n\t\t$academicYearEnd = strftime(\"%Y\",strtotime(\"+4 months\",time()));\n\t\treturn \"Academic Year $academicYearStart/$academicYearEnd\";\n }", "title": "" }, { "docid": "e78bd5bb22db9c9ffa0cd1cd43d83ab8", "score": "0.63786215", "text": "function iphorm_get_year($year = null)\n{\n if ($year === '' || $year === null) {\n return null;\n } else if ($year == '{year}') {\n $y = (int) date('Y');\n } else if (preg_match('/^{year\\|([+|-])(\\d+)}$/', $year, $matches)) {\n $y = (int) date('Y');\n if ($matches[1] == '+') {\n $y += $matches[2];\n } else {\n $y -= $matches[2];\n }\n } else {\n $y = (int) $year;\n }\n\n return $y;\n}", "title": "" }, { "docid": "de401216c7f2f5901264efb676b26568", "score": "0.6378216", "text": "function out_year(){ _e( $this->dates['year'] ) ;\r\n }", "title": "" }, { "docid": "e601500d80b63dbadeed3ca917774be6", "score": "0.6344041", "text": "function stampToYear($stamp)\n {\n }", "title": "" }, { "docid": "851715b7f05a42ff70fb12bac22063b4", "score": "0.62957036", "text": "function getNextYearIn4Digits($month, $yearNow){\n\t$yearNow = TRUE;\n\tif($month==01 AND is_bool($yearNow)){\n\t\treturn $yearNow = Date('Y') + 1;\n\t}\n}", "title": "" }, { "docid": "dc37824c26144a51607153c3d20ca6b4", "score": "0.6266807", "text": "public function getYear()\n {\n return substr( $this->fullYear, -2);\n }", "title": "" }, { "docid": "4e18ed1c100ff35ffa07ce6fd53373fb", "score": "0.6246635", "text": "function add_year($timestamp,$num=1)\n{\n list($y, $m, $d, $h, $n, $s) = split('/',date('Y/m/d/h/i/s',$timestamp));\n return mktime($h, $n, $s, $m, $d, $y+$num);\n}", "title": "" }, { "docid": "37f71db3717fff84395e5a1ae6d1387c", "score": "0.6207381", "text": "public function ISOYear()\r\n\t{\r\n\t\t$year = $this->year;\r\n\r\n\t\t# CHECK JAN AND DEC FOR POSSIBLE VALUES\r\n\t\tif( $this->month == 1 || $this->month == 12 )\r\n\t\t{\r\n\t\t\t# GET THE ISO WEEK OF THE YEAR\r\n\t\t\t$thisWOY = $this->WeekOfYear( true );\r\n\r\n\t\t\t# IF WEEK 1 AND IN DEC THEN USE NEXT YEAR\r\n\t\t\tif( $thisWOY == 1 && $this->month == 12 )\r\n\t\t\t\t$year++;\r\n\r\n\t\t\t# if last week(s) and in Jan then use previous year\r\n\t\t\tif( $thisWOY >= 52 && $this->month == 1 )\r\n\t\t\t\t$year--;\r\n\t\t}\r\n\r\n\t\treturn( $year );\r\n\t}", "title": "" }, { "docid": "a5abc918af7d4595bba4e69c9e5f3d88", "score": "0.619611", "text": "function iphorm_get_end_year($year = null)\n{\n $endYear = iphorm_get_year($year);\n\n return $endYear === null ? 1900 : $endYear;\n}", "title": "" }, { "docid": "778c951b5e100e73d660e3d856dce5fe", "score": "0.6185027", "text": "public function years();", "title": "" }, { "docid": "4b29f980c9657b8223bbf659b1c4da96", "score": "0.61538607", "text": "public function addYear($value)\r\n\t\t{\r\n\t\t\t$this->data[0] += $value; // добавляет значение $value к году\r\n\t\t\t$this->data = explode('-', date('Y-n-d', mktime(0, 0, 0, $this->data[1], $this->data[2], $this->data[0])));\r\n\t\t\treturn $this;\r\n\t\t}", "title": "" }, { "docid": "2ea60aa4d522b09c12b5351d5f1e1fa7", "score": "0.6144151", "text": "public function getExpirationYear(){\n return sprintf(\n '%s',\n $this->creditCardExpirationYear[array_rand($this->creditCardExpirationYear)]\n );\n }", "title": "" }, { "docid": "da54e7b6fd6788962985b682363aa2d9", "score": "0.6138", "text": "public function getYear()\n {\n return (int) $this->getTag(\"year\");\n }", "title": "" }, { "docid": "e0999a5794ebe90f8ebb1a6297599c29", "score": "0.61309713", "text": "public function getYear(){}", "title": "" }, { "docid": "8ed530414d6629710438e0cb68d11a6e", "score": "0.60779476", "text": "function year_shortcode() {\n\t\t$year = date('Y');\n\t\treturn $year;\n\t}", "title": "" }, { "docid": "53f461d4e93921c88b15f0d40f123ef4", "score": "0.607488", "text": "public function year(): int\n {\n return (int) $this->dateTime->format('Y');\n }", "title": "" }, { "docid": "c44fc2325f4ea3c5fdba26a18776b526", "score": "0.60190064", "text": "public function getYear() : int\n {\n return $this->year;\n }", "title": "" }, { "docid": "e63ab002d1614276ed1384c729e99f87", "score": "0.59880435", "text": "protected function setFiscalYear() {\n $this->fiscalYear = date('Y');\n if (strtotime('now') > mktime(23, 59, 59, 10, 31, date('Y')) && \n strtotime('now') <= mktime(23, 59, 59, 12, 31, date('Y'))) {\n $this->fiscalYear++; \n } \n }", "title": "" }, { "docid": "304c73fb75943c9b04faef1a4a1d071a", "score": "0.5969011", "text": "public function year()\n {\n return date(\"Y\");\n }", "title": "" }, { "docid": "a5b63d82a231c2b9e444ef62cc761990", "score": "0.5961193", "text": "function get_year($date) {\n\t\t$len = strlen($date);\n\t\tif($len == 8) {\n\t\t\treturn substr($date, 4, 4);\n\t\t} else {\n\t\t\treturn substr($date, 6, 4);\n\t\t}\n\t}", "title": "" }, { "docid": "7fa20951e6238198a9edffb2c29ac47a", "score": "0.5956946", "text": "public function setYear(string $value): void\n {\n $this->year = $value;\n }", "title": "" }, { "docid": "93af97ea5699d6e85d8cecc30484fcc6", "score": "0.5955235", "text": "public function getYear() {\n }", "title": "" }, { "docid": "dbeb7b77ac01493579168a954aa5f18d", "score": "0.5920931", "text": "protected function processYear($year)\r\n {\r\n $yearx = (int)(substr($year,-4));\r\n if (($yearx < 1990) || ($yearx > 2020)) die(\"Year: '$year'\");\r\n return $yearx;\r\n }", "title": "" }, { "docid": "dfd033dbe02843d1be578d6ca5809bfc", "score": "0.589644", "text": "function tgb_year_shortcode() {\n $year = date( 'Y' );\n return $year;\n}", "title": "" }, { "docid": "f2b811ed1d4df4a5ff505797eaab8606", "score": "0.58753717", "text": "public function setYear($value)\n {\n return $this->year($value);\n }", "title": "" }, { "docid": "13fb142918ead908049f9e4137f5ac47", "score": "0.586925", "text": "public function newYear($format)\r\n {\r\n $date = $this->createDate('01.01.' . $this->year);\r\n return $this->format($date, $format);\r\n }", "title": "" }, { "docid": "423f923ad26f5e3b7fc4f8cf923aae21", "score": "0.5860906", "text": "public function getRetireYear (){\n $this->retireYear = $this->getBirthDay()->add(new \\DateInterval('P60Y'));\n return $this->retireYear;\n }", "title": "" }, { "docid": "c167095a2f3310b41a513b0bacc9c517", "score": "0.5856475", "text": "function copyrightDateRange() {\r\n $startYear = \"2017\";\r\n $curYear = date('y');\r\n substr($startYear, 2, 3) == $curYear ? $str = $startYear : $str = $startYear .' - '. $curYear;\r\n return $str;\r\n}", "title": "" }, { "docid": "fba3ad8c361d8b631463df24e964411f", "score": "0.58535606", "text": "public function getYear(): string\n {\n return $this->year;\n }", "title": "" }, { "docid": "1757882727183e55a863084393902cd7", "score": "0.58324677", "text": "function getCreatedYear() {\n\t\t$created = date_create($this->getCreated());\n\t\treturn date_format($created, \"Y\");\n\t}", "title": "" }, { "docid": "8845e4fedf82b75dbb76e059b9a57699", "score": "0.5824126", "text": "protected function parseYear()\r\n\t{\r\n\t\t$date = (string) $this->marc->datafield(\"260\")->subfield(\"c\");\r\n\t\t\r\n\t\t### year\r\n\r\n\t\tif ( $date != \"\" )\r\n\t\t{\r\n\t\t\t$this->year = $this->extractYear( $date );\r\n\t\t} \r\n\t\telseif ( $this->extractYear( $this->publisher ) )\r\n\t\t{\r\n\t\t\t// off chance that the date is hanging out in the publisher field;\r\n\t\t\t// might as well strip it out here as well\r\n\r\n\t\t\t$this->year = $this->extractYear( $this->publisher );\r\n\t\t\t$this->publisher = str_replace( $this->year, \"\", $this->publisher );\r\n\t\t} \r\n\t\telseif ( $this->extractYear( $this->journal ) )\r\n\t\t{\r\n\t\t\t// perhaps somewhere in the 773$g\r\n\r\n\t\t\t$this->year = $this->extractYear( $this->journal );\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bb50aa974b0baac1a84cdd8fe4bdd769", "score": "0.5822012", "text": "function __ict_project_get_current_fin_year () {\n // current date\n $current_date = new DateTime();\n\n // get required current year values\n $current_year_short = $current_date->format('y');\n $current_year_long = $current_date->format('Y');\n\n return\n $current_date > new DateTime ($current_year_long . '-07-01 00:00:00') ?\n $current_year_short . '/' . ($current_year_short + 1) :\n ($current_year_short - 1) . '/' . $current_year_short;\n}", "title": "" }, { "docid": "32f2ad89b2a5abb13730b3ec059b05f5", "score": "0.58142924", "text": "public function Ano2() {\n return $this->mktime != 0 ? date('y', $this->mktime) : '00';\n }", "title": "" }, { "docid": "1a8cc1517bb81b09a8018a98e2fb4334", "score": "0.58018076", "text": "private function setMindenszentek(int $year)\n {\n return Carbon::create($year, 11, 1, 0, 0, 0);\n }", "title": "" }, { "docid": "f2949f919abfa728cba11889548ec0c1", "score": "0.57897085", "text": "private function setSzilveszter(int $year)\n {\n return Carbon::create($year, 12, 31, 0, 0, 0);\n }", "title": "" }, { "docid": "7634b0530b91249b0eb3f63e880facb8", "score": "0.57892656", "text": "public function addYear($value = 1)\n {\n return $this->addYears($value);\n }", "title": "" }, { "docid": "a1cf3c7af715a1a2f28717382017ef9a", "score": "0.5786702", "text": "function aYear($time = NULL) \r\n {\r\n if (!$time) \r\n {\r\n $time = time();\r\n }\r\n if (date('L', $time)) \r\n {\r\n return ALEAPYEAR;\r\n }\r\n else\r\n {\r\n return AYEAR;\r\n }\r\n }", "title": "" }, { "docid": "dbf826ee45b5f907d888e7e8ca3a85ca", "score": "0.57606256", "text": "function copyright( $year = 'auto') {\n\tif( intval( $year ) == 'auto' ) $year = date( 'Y' );\n\n\tif( intval( $year ) != date( 'Y' ) ) {\n\t\tif( intval( $year ) > date( 'Y' ) ) {\n\t\t\techo date( 'Y' );\n\t\t} else {\n\t\t\techo intval( $year ) . ' – ' . date( 'Y' );\n\t\t}\n\t} else {\n\t\techo intval( $year );\n\t}\n}", "title": "" }, { "docid": "491de1f86af6de8feaa2ea243d683b77", "score": "0.5749677", "text": "public function getFieldBuildYear()\n {\n return $this->fieldBuildYear;\n }", "title": "" }, { "docid": "2d4e3e13424cb267bd79ec3a4de2f3f2", "score": "0.5746878", "text": "function year(string $year): string {\n return substr($year, -2);\n}", "title": "" }, { "docid": "5bd31ffe87c04d84e2566eb4c81ba177", "score": "0.5746463", "text": "function setYear($year) { $this->year = $year; }", "title": "" }, { "docid": "d0bce26eadab474fea94b2f46812ba13", "score": "0.57407874", "text": "function year($time = 0) {\n\tif(!$time) $time = time();\n\treturn date('Y', $time);\n}", "title": "" }, { "docid": "5edccbc7cd9b37c6d0d8c3fea87ce13a", "score": "0.5720662", "text": "public function dayOfYear()\n {\n $ofYear = $this->format('z');\n\n // transform starting from 1\n $ofYear++;\n\n // back to string\n settype($ofYear, 'string');\n\n return $ofYear;\n }", "title": "" }, { "docid": "e6e84b3d0e60c1960de4d5711fd81c60", "score": "0.5720147", "text": "public function underYearSpace($space)\n {\n if (is_int($space) === false) {\n throw new InvalidConfigValue(\n __FUNCTION__,\n 'int'\n );\n }\n\n return $this->setCalendarOption(__FUNCTION__, $space);\n }", "title": "" }, { "docid": "30e5d57901d7fc628cdb234841b65192", "score": "0.57015306", "text": "private function calculateMonthIndexOfYear(): int\n {\n return $this->previousState->get('monthIndexOfYear', 0);\n }", "title": "" }, { "docid": "98546837dd3a22f88fcda753039d8a4d", "score": "0.5697673", "text": "function setCopyright($startYear) {\r\n\t\t\tini_set('date.timezone', 'America/Los_Angeles');\r\n\t\t\t$thisYear = date('Y');\r\n\t\t\t\r\n\t\t\tif ($startYear == $thisYear) {\r\n\t\t\t\techo $startYear;\r\n\t\t\t} else {\r\n\t\t\t\techo \"$startYear - $thisYear\";\r\n\t\t\t}\r\n}", "title": "" }, { "docid": "1557800233ae1d833b0c93568645857e", "score": "0.5696282", "text": "function centuryFromYear($year) {\n/* if($year / 1000 <= 0.1) //first century detection\n{\n$century = 1;\n} else\n{\nif($year % 100 == 0) // symbol '%' means reminder of division\n{\n$century = $year / 100;// if reminder equal 0\n} else {\n$century = ($year / 100) - (($year % 100)/100) + 1;\n}\n} */\nreturn $century = ceil($year / 100); //ceil - rounds a fraction upward\n}", "title": "" }, { "docid": "93ce65a43b019926f347cec753b35f1b", "score": "0.56941444", "text": "public function getYear()\n {\n $record = explode(' ', $this->date);\n if (count($record) > 0) {\n if ($this->isPrefix($record[0])) {\n unset($record[0]);\n }\n if (count($record) > 0) {\n return (int) end($record);\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "ae8e618dc728a3a8ecb194bde129ab95", "score": "0.5690483", "text": "public function add_new_product_attribute_year()\n {\n $res = $this->admin->add_new_product_attribute_year( $this->input->post(\"title\"), $this->input->post(\"model\") );\n\n $res_data = array(\n 'status' => 0,\n 'list' => null\n );\n\n if( $res ) {\n $res_data = array(\n 'status' => 1,\n 'list' => $res\n );\n }\n\n res_write($res_data);\n }", "title": "" }, { "docid": "d4b2c85cecd9925685a89ec2593ddaeb", "score": "0.5690433", "text": "function date2year($date)\n{\n return substr($date,0,4);\n}", "title": "" }, { "docid": "4920d7ad3c540fca3bfdec19a51e96f7", "score": "0.56800634", "text": "function auto_copyright($year = 'auto'){\n if( intval( $year ) == 'auto' ) { \n $year = '&copy;' . date('Y'); \n }\n if( intval( $year ) == date( 'Y' ) ) { \n echo '&copy;' . intval( $year ); \n }\n if( intval( $year ) < date( 'Y' ) ) { \n echo '&copy;' . intval( $year ) . ' - ' . date( 'Y' ); \n }\n if( intval( $year ) > date( 'Y' ) ) { \n echo '&copy;' . date('Y'); \n }\n}", "title": "" }, { "docid": "ea2cd0e09ddf1aa75432184af8105ab3", "score": "0.5679914", "text": "public function testGetYearNumber(): void {\n\n $this->assertEquals(1900, DateTimeHelper::getYearNumber(new DateTime(\"1900-05-21\")));\n $this->assertEquals(1970, DateTimeHelper::getYearNumber(new DateTime(\"1970-05-22\")));\n $this->assertEquals(2000, DateTimeHelper::getYearNumber(new DateTime(\"2000-05-23\")));\n $this->assertEquals(2018, DateTimeHelper::getYearNumber(new DateTime(\"2018-05-24\")));\n }", "title": "" }, { "docid": "206f4d520164319a2731b1487bc2ca78", "score": "0.5679655", "text": "public static function bevrijdingsdag($year){\n\t\t\tif($year % 5 ==0){\n\t\t\t\treturn date('Y-m-d',mktime(0,0,0,5,5,$year));\n\t\t\t}\n\t\t\treturn ;\n\t\t}", "title": "" }, { "docid": "c23bb4509026cc966a247e3ef0baaf3f", "score": "0.56786186", "text": "public function getYear()\r\n {\r\n return $this->year;\r\n }", "title": "" }, { "docid": "54f4258179e530da0aec7a4920df9b09", "score": "0.5675884", "text": "function get_year_sql($date) {\n\t\treturn substr($date, 0, 4);\n\t}", "title": "" }, { "docid": "ede47f7df6ead7fb572ee8c9b1752bb7", "score": "0.56635934", "text": "protected function getCreditCardExpiryYear(&$params) {\n $expireYear = substr($params['year'], 2, 2);\n return $expireYear;\n }", "title": "" }, { "docid": "81ba10e4bdb64e23811941dbfa98e224", "score": "0.56626034", "text": "public function getYear() {\n\t\treturn $this->year;\n\t}", "title": "" }, { "docid": "4d08fb151e9ceb3696ff53e61dfb9be1", "score": "0.56606853", "text": "public function getMinYear();", "title": "" }, { "docid": "c7866f4f1f6ff9c73972aa5a2bf93eb1", "score": "0.56490266", "text": "public static function createFromYear($year)\n {\n return self::createFromDuration(self::validateYear($year).'-01-01', '1 YEAR');\n }", "title": "" }, { "docid": "fde6d8d26cfd939692d1a4ac68fb4c10", "score": "0.5644525", "text": "public function __construct($year) {\n // we need to figure out how many days each month has\n $this->beginning = intval($year);\n $this->generateMonths();\n }", "title": "" }, { "docid": "0c6c0cd1205dcc93d1d0cc857a3914f5", "score": "0.564383", "text": "public function getDocYear()\r\n {\r\n return $this->docYear;\r\n }", "title": "" }, { "docid": "6ef9d0aa7244e9f45e48c6058dcb0902", "score": "0.56102806", "text": "public function get_exp_year() {\n\n\t\treturn substr( $this->ssl_exp_date, -2 );\n\t}", "title": "" }, { "docid": "f1f419b9d634254f16dae78e39a369e1", "score": "0.56050116", "text": "function validYear($string)\n {\n //print \"in myfunctions validYear\";\n return ( !empty($string) AND is_numeric($string) AND\n strlen($string) == 4 AND $string>=1800 );\n }", "title": "" }, { "docid": "aeba770dd21480165b7f3a004f689643", "score": "0.55997163", "text": "function yearspan() {\n if ( empty($this->main_yearspan) ) {\n $this->main_yearspan = array('start'=>$this->year(),'end'=>$this->year());\n }\n return $this->main_yearspan;\n }", "title": "" }, { "docid": "dbadc59f39af4f455bfaad48b64d3d05", "score": "0.55992866", "text": "public function setYear($year)\n {\n return $this->setTag(\"year\", $year);\n }", "title": "" }, { "docid": "14fb810ddb932cd9228ab7ad79698ab1", "score": "0.55951464", "text": "public function setYear(int $year) : MonthGen\n {\n $this->year = $year;\n\n return $this;\n }", "title": "" }, { "docid": "146729f516a91cd00057a355629f818b", "score": "0.5590286", "text": "private function dateOneYearBefore()\n {\n $year = date('y')-1; \n $month = date('m'); \n $day= date('d');\n return $year.\"\".$month.\"\".$day;\n }", "title": "" }, { "docid": "b58b366a1dfa8bf3b668f6db8248e7f2", "score": "0.5589564", "text": "function start_year( $year, $db = '' )\n {\n if ( !$db instanceof DB ) {\n $db = new DB();\n }\n\n //If the specified year already exists, return\n $years = get_existing_years( $db );\n if ( in_array( $year, $years ) ) {\n return false;\n }\n\n try {\n $previousYear = $year - 1;\n $manufacturers = $db->table( 'manufacturer' )\n ->fields( [ 'code', 'name' ] )\n ->where( [ 'year' => $previousYear ] )\n ->select();\n $keyers = $db->table( 'keyer' )\n ->fields( [ 'code', 'name' ] )\n ->where( [ 'year' => $previousYear ] )\n ->select();\n $costCodes = $db->table( 'cost_code' )\n ->fields( [ 'code', 'name', 'percentage', 'field' ] )\n ->where( [ 'year' => $previousYear ] )\n ->select();\n\n foreach ( $manufacturers as $manufacturer ) {\n $manufacturer[ 'year' ] = $year;\n $db->table( 'manufacturer' )->fields( $manufacturer )->insert();\n }\n\n foreach ( $keyers as $keyer ) {\n $keyer[ 'year' ] = $year;\n $db->table( 'keyer' )->fields( $keyer )->insert();\n }\n\n foreach ( $costCodes as $code ) {\n $code[ 'year' ] = $year;\n $db->table( 'cost_code' )->fields( $code )->insert();\n }\n } catch ( Exception $e ) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "340dee08a7affa26cd67ccb4f83221af", "score": "0.55854607", "text": "private function constructYearDataset()\n {\n // For testing SQLite is used.\n if (env('DB_SECONDARY_CONNECTION', 'mysql') == 'mysql') {\n $dbSpecificDate = 'DATE(SUBDATE(created_at, WEEKDAY(created_at)))';\n } else {\n $dbSpecificDate = 'date(created_at, \\'weekday 0\\', \\'-6 days\\')';\n }\n return $this->constructHighLowDataset(\n $dbSpecificDate,\n '-1 year',\n );\n }", "title": "" }, { "docid": "53daa0eb44a38d4894a76fe7949af1c0", "score": "0.55822486", "text": "public function getYear()\n {\n return $this->year;\n }", "title": "" }, { "docid": "53daa0eb44a38d4894a76fe7949af1c0", "score": "0.55822486", "text": "public function getYear()\n {\n return $this->year;\n }", "title": "" }, { "docid": "53daa0eb44a38d4894a76fe7949af1c0", "score": "0.55822486", "text": "public function getYear()\n {\n return $this->year;\n }", "title": "" }, { "docid": "53daa0eb44a38d4894a76fe7949af1c0", "score": "0.55822486", "text": "public function getYear()\n {\n return $this->year;\n }", "title": "" }, { "docid": "53daa0eb44a38d4894a76fe7949af1c0", "score": "0.55822486", "text": "public function getYear()\n {\n return $this->year;\n }", "title": "" }, { "docid": "53daa0eb44a38d4894a76fe7949af1c0", "score": "0.55822486", "text": "public function getYear()\n {\n return $this->year;\n }", "title": "" }, { "docid": "53daa0eb44a38d4894a76fe7949af1c0", "score": "0.55822486", "text": "public function getYear()\n {\n return $this->year;\n }", "title": "" }, { "docid": "53daa0eb44a38d4894a76fe7949af1c0", "score": "0.55822486", "text": "public function getYear()\n {\n return $this->year;\n }", "title": "" }, { "docid": "320fe70c928d2470b14ec454a7608ca4", "score": "0.55772996", "text": "private function incrementYear(): void\n {\n $this->monthIndexOfYear = 0;\n $this->year++;\n $this->previousState->forget('months');\n $this->previousState->forget('totalWeeksInYear');\n $this->previousState->forget('dayOfYear');\n }", "title": "" }, { "docid": "5d142d51742423b31e3847eb9370150d", "score": "0.5571343", "text": "public function render_first_volume_year_setting() {\n\n $this->render_setting('first_volume_year');\n echo('<p>(Four digit year in which the first volume was published. Is used to automatically set the volume number of newly published publications and, e.g., when generating the <a href=\"/volume/\">volume overview page</a>.)</p>');\n\n }", "title": "" }, { "docid": "42bfbb240f1ab6c4794f2b50af9da978", "score": "0.5562813", "text": "public function addYear()\n {\n return view('backend.setup.year.add_year');\n }", "title": "" }, { "docid": "8a82ccbace8eba3b14991eea424a453c", "score": "0.55419284", "text": "public function add(int $num_years): Year\n {\n return new Year(\n DateTimeImmutable::createFromFormat($this->dt_format, $this->value)\n ->add(new DateInterval(\"P${num_years}{$this->dt_format}\"))\n ->format($this->dt_format)\n );\n }", "title": "" }, { "docid": "e9cdfa70a387b6803374e5a361e99e13", "score": "0.5541096", "text": "public static function generateYearsForSelect()\n {\n $base = 2014;\n $currentYear = (int)strftime('%Y');\n\n $result = array_combine(\n range($base, $currentYear),\n range($base, $currentYear)\n );\n krsort($result);\n\n return $result;\n }", "title": "" }, { "docid": "f3154009c3a7e906f15dfa9fc60822f8", "score": "0.5536411", "text": "public static function getAtualYear()\n {\n $now = Carbon::now();\n return $now->format('Y');\n }", "title": "" }, { "docid": "3819c178405f66667d58a96bd08ee75e", "score": "0.5519212", "text": "public function update_orden_compra($year) {\n $orden = $this->N_orden_compra($year);\n $i=3;\n $n_orden = str_pad($orden, $i, 0, STR_PAD_LEFT);\n $data = array('no_orden' => $n_orden+1);\n $this->db->where('year',$year);\n $this->db->update('orden_compra',$data);\n \n }", "title": "" }, { "docid": "332d69cfd6ed7115b1a59bb5082c72db", "score": "0.55189604", "text": "public static function creditCardYear() {\n\t\t$range = range(date('Y'), date('Y', strtotime('+10 years')));\n\t\treturn array_combine($range, $range);\n\t}", "title": "" }, { "docid": "26f5fcfeb2d3cd75fc8d1040077f0e4d", "score": "0.55163074", "text": "static function easter_date($year) {\n $m = 24;\n $n = 5;\n $a = $year - 19*floor($year/19);\n $b = $year - 4*floor($year/ 4);\n $c = $year - 7*floor($year/ 7);\n $x = 19 * $a + $m;\n $d = $x - 30*floor($x/30);\n $x = 2*$b + 4*$c + 6*$d + $n;\n $e = $x - 7*floor($x/7);\n $x = 22 + $d + $e;\n if ($x <= 31) {\n $easter['m'] = 3;\n } else {\n $easter['m'] = 4;\n $x = $d + $e - 9;\n if ($x == 26) $x = 19;\n if ($a >=10 && $d == 28 && $x==25) $x = 18;\n }\n $easter['y']= $year;\n $easter['d'] = $x;\n return b_time::noon($easter['y'],$easter['m'] ,$easter['d']); \n }", "title": "" }, { "docid": "294a2f98febc70aa45a0966ca359dcb6", "score": "0.5508033", "text": "public function getMaxYear();", "title": "" }, { "docid": "54f1134c0cc069aba99c726bd9d0b2c1", "score": "0.55062896", "text": "function test_params($date,$project){\n\t\t//$end = mktime(0, 0, 0, 12, 31, $year);\n\t\t\n\t\t//$year = date('Y',strtotime($date)) + 1; \n\t\t//$start = mktime(0, 0, 0, 1, 1, $year);\n\t\t\n\t\t\t\t\n\t\treturn date('n',strtotime($date));\n\t}", "title": "" } ]
cd8663d30485551078ca0d0fa17140f5
/ add a line to canvas
[ { "docid": "e645e5403fdfab7f856379610100028c", "score": "0.5546098", "text": "public function line ($id=false, $p1=false, $p2=false, $t=false, $c=false) {\n if (!is_array($id)) {\n return $this->line(array(\n 'id'=>$id,\n 'p1'=>$p1,\n 'p2'=>$p2,\n 't'=>$t,\n 'c'=>$c\n ));\n }\n\n if (!$id['id']) $id['id'] = count($this->objs);\n if (!is_array($id['p1']) && !($id['p1'] = self::parse_point($id['p1']))) return false;\n if (!is_array($id['p2']) && !($id['p2'] = self::parse_point($id['p2']))) return false;\n $this->set_thickness($id);\n $this->set_color($id);\n\n $id['type'] = 'line';\n $this->objs[$id['id']] = $id;\n $this->close();\n\n return true;\n }", "title": "" } ]
[ { "docid": "499f0aeec7d32941bfcb760f414f1c78", "score": "0.7983763", "text": "public function addLine() {\n $this->drawLine($this->_leftMargin, $this->_yPosition, $this->_rightMargin, $this->_yPosition);\n //déplacement du curseur vers le bas de 15 pixels\n $this->_yPosition -= 15;\n }", "title": "" }, { "docid": "7cc87c300d53edf9bafb98d09a5d8276", "score": "0.672085", "text": "function line($params)\n {\n $color = (isset($params['color']) ? $params['color'] : false);\n if ($this->_setLineStyle($color)) {\n pdf_moveto($this->_pdf, $this->_getX($params['x0']), $this->_getY($params['y0']));\n pdf_lineto($this->_pdf, $this->_getX($params['x1']), $this->_getY($params['y1']));\n pdf_stroke($this->_pdf);\n }\n parent::line($params);\n }", "title": "" }, { "docid": "0111d75400813e1007cce96720110361", "score": "0.6629617", "text": "function graph_line($x1, $y1, $x2, $y2, $color) {\n\t\t$yc1 = $this->ycoord($y1);\n\t\t$yc2 = $this->ycoord($y2);\n\t\timageLine($this->image, $x1, $yc1, $x2, $yc2, $color);\n\t}", "title": "" }, { "docid": "1ccd2aab88ef35d4ba3b36dcbc7d1343", "score": "0.6557777", "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": "336a75f6b6a6029ddbec62f2424af83a", "score": "0.6525948", "text": "function draw2DLine($x1,$y1, $x2, $y2) \n { \n $this->exe( \"set arrow from $x1,$y1 to $x2,$y2 nohead\\n\" ); \n }", "title": "" }, { "docid": "a01f43f76ca26fec71da49f56385973c", "score": "0.6478107", "text": "public final function redrawLine() {\n\t\t$this->_print(self::RESET_LINE);\n//\t\tflush();\n\t\t$this->drawLine();\n\t}", "title": "" }, { "docid": "53cc5f6bc23d951d224dc843a0d434f4", "score": "0.64483416", "text": "public function addLine($line)\n {\n $this->lines[] = $line;\n }", "title": "" }, { "docid": "9c92db0a85c653ccd5676116a627426f", "score": "0.6429964", "text": "function drawLines()\r\n {\r\n $linecolor = imagecolorallocate($this->im, hexdec(substr($this->line_color, 1, 2)), hexdec(substr($this->line_color, 3, 2)), hexdec(substr($this->line_color, 5, 2)));\r\n imagesetthickness($this->im, $this->line_thickness);\r\n\r\n //vertical lines\r\n for($x = 1; $x < $this->image_width; $x += $this->line_distance) {\r\n imageline($this->im, $x, 0, $x, $this->image_height, $linecolor);\r\n }\r\n\r\n //horizontal lines\r\n for($y = 11; $y < $this->image_height; $y += $this->line_distance) {\r\n imageline($this->im, 0, $y, $this->image_width, $y, $linecolor);\r\n }\r\n\r\n if ($this->draw_angled_lines == true) {\r\n for ($x = -($this->image_height); $x < $this->image_width; $x += $this->line_distance) {\r\n imageline($this->im, $x, 0, $x + $this->image_height, $this->image_height, $linecolor);\r\n }\r\n\r\n for ($x = $this->image_width + $this->image_height; $x > 0; $x -= $this->line_distance) {\r\n imageline($this->im, $x, 0, $x - $this->image_height, $this->image_height, $linecolor);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "b47b3ecedfd7306643d78a0c721244c0", "score": "0.61672354", "text": "public function drawLine($x1, $y1, $x2, $y2)\n {\n $this->_addProcSet('PDF');\n\n $x1Obj = new Zend_Pdf_Element_Numeric($x1);\n $y1Obj = new Zend_Pdf_Element_Numeric($y1);\n $x2Obj = new Zend_Pdf_Element_Numeric($x2);\n $y2Obj = new Zend_Pdf_Element_Numeric($y2);\n\n $this->_contents .= $x1Obj->toString() . ' ' . $y1Obj->toString() . \" m\\n\"\n . $x2Obj->toString() . ' ' . $y2Obj->toString() . \" l\\n S\\n\";\n\n return $this;\n }", "title": "" }, { "docid": "34c92305396043554cd982afe40761a8", "score": "0.6143025", "text": "public function addLine($line) {\n $this->line[] = $line;\n return $this;\n }", "title": "" }, { "docid": "20f76486eaa0fedde488957f70dd64e0", "score": "0.61195904", "text": "public function addLine($line,$month,$year)\n\t{\n\t\t$nbLine = $this->getNbLine($month,$year);\n\t\tfor($i = $nbLine ; $i > $line; $i--)\n\t\t{\n\t\t\t$reqUpdateLine = $this->db->prepare('UPDATE t_calender SET calLine = calLine+1 WHERE calLine = :calLine AND calMonth = :calMonth AND calYear = :calYear');\n\t\t\t$reqUpdateLine->execute(array(\n\t\t\t\t'calLine' => $i,\n\t\t\t\t'calMonth' => $month,\n\t\t\t\t'calYear' => $year\n\t\t\t\t));\n\t\t\t$reqUpdateLine->closeCursor();\n\t\t}\n\t}", "title": "" }, { "docid": "090d611041dac4aaabc88d48965198d0", "score": "0.6112656", "text": "public function line($x1, $y1, $x2, $y2, $color=null, $thick=1)\n {\n if ($color != IMG_COLOR_STYLED) {\n $color = $this->_createColor($color, '000000');\n }\n $y1 = ($y1 == 0 ? $y1 = 1 : $y1);\n $y2 = ($y2 == 0 ? $y2 = 1 : $y2);\n $x1 = ($x1 == $this->width ? $x1 = $x1 - 1 : $x1);\n $x2 = ($x2 == $this->width ? $x2 = $x2 - 1 : $x2);\n return Image::imagelinethick($this->im, $x1, $this->height - $y1, $x2, $this->height - $y2, $color, $thick);\n }", "title": "" }, { "docid": "e3dc9ff463e259c6ac004534413706e4", "score": "0.600553", "text": "public function setLine($var)\n {\n GPBUtil::checkInt64($var);\n $this->line = $var;\n }", "title": "" }, { "docid": "deea3c37ab1d646611d89d60b4b4018d", "score": "0.5988274", "text": "function drawLineGraph()\n\t\t{\n\t\t\t$black \t\t= imagecolorallocate($this->graph, 0, 0, 0);\n\t\t\t$grey\t\t= imagecolorallocate($this->graph, 170, 170, 170);\n\t\t\t$white\t\t= imagecolorallocate($this->graph, 230, 230, 230);\n\t\t\t$line\t\t= imagecolorallocate($this->graph, 240, 240, 240);\n\t\t\t\n\t\t\t// Store our data as a temporary variable\n\t\t\t$data_temp \t= $this->data;\n\t\t\t$data_temp2 \t= $this->data2;\n\t\t\t\n\t\t\t// Fill our graph with the background colour (default is white)\n\t\t\timagefilledrectangle($this->graph, 0, 0, $this->graphWidth, $this->graphHeight, $this->graphColour);\t\n\t\t\t\n\t\t\t// Add a title to the graph and position it correctly (If Valid)\n\t\t\tif(!empty($this->graphTitle))\n\t\t\t{\n\t\t\t\t$size \t\t= imagettfbbox(10, 0, $this->graphFont, $this->graphTitle);\n\t\t\t\t$long_text \t= $size[2]+$size[0];\n\t\t\t\t$posx\t\t= (35+($this->graphWidth-$long_text)/2);\n\t\t\t\timagettftext($this->graph, 10, 0, $posx, 20, $black, $this->graphFont, $this->graphTitle);\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Add the Y-Axis Title and position it correctly (If Valid)\n\t\t\tif(!empty($this->yAxisTitle))\n\t\t\t{\n\t\t\t\t$size \t\t= imagettfbbox(10, 90, $this->graphFont, $this->yAxisTitle);\n\t\t\t\t$long_text \t= ($size[3]+$size[0]);\n\t\t\t\t$posy\t\t= (35+(($this->graphHeight-35)-$long_text)/2);\n\t\t\t\timagettftext($this->graph, 10, 90, 20, $posy, $black, $this->graphFont, $this->yAxisTitle);\n\t\t\t}\n\t\t\t\n\t\t\t// Add the X-Axis Title and position it correctly (If Valid)\n\t\t\tif(!empty($this->xAxisTitle))\n\t\t\t{\n\t\t\t\t$size \t\t= imagettfbbox(10, 0, $this->graphFont, $this->xAxisTitle);\n\t\t\t\t$long_text \t= $size[2]+$size[0];\n\t\t\t\t$posx\t\t= (35+($this->graphWidth-$long_text)/2);\n\t\t\t\timagettftext($this->graph, 10, 0, $posx, ($this->graphHeight-10), $black, $this->graphFont, $this->xAxisTitle);\n\t\t\t}\n\t\t\t\n\t\t\t// Find the highest value in our data\n\t\t\trsort($data_temp, SORT_NUMERIC);\n\t\t\trsort($data_temp2, SORT_NUMERIC);\n\t\t\t\n\t\t\tif($data_temp2[0] > $data_temp[0])\n\t\t\t{\n\t\t\t\t$data_temp[0] = $data_temp2[0];\t\n\t\t\t}\n\t\t\t\n\t\t\t// Calculate the bar width\n\t\t\t$barWidth \t= ((($this->graphWidth-35)/count($this->data))-1);\n\t\t\t$height \t= (($this->graphHeight-70)/10);\n\t\t\t$y1 \t\t= 35;\n\t\t\t\n\t\t\t// Values for the Y-Axis\n\t\t\t$values \t= array(0, 200, 180, 160, 140, 120, 100, 80, 60, 40, 20, 0);\n\t\t\t$needles \t= array(180, 140, 100, 60, 20);\n\t\t\t\n\t\t\t// Add lines and labels along Y Axis\n\t\t\tfor($i=1;$i<=11;$i++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\t\tif($i != 1) {\n\t\t\t\t\t\t$y1 = $y1+$height;\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\timageline($this->graph, 38, $y1, 40, $y1, $black);\n\t\t\t\t\timageline($this->graph, 40, $y1, 600, $y1, $line);\n\t\t\t\t\t\n\t\t\t\t\t$size \t\t= imagettfbbox(8, 0, $this->graphFont, $values[$i]);\n\t\t\t\t\t$long_text \t= $size[2]+$size[0];\n\t\t\t\t\t$posx\t\t= (23-($long_text/2));\n\t\t\t\t\t$y2 \t\t= ($y1+4);\n\t\t\t\t\n\t\t\t\tif(!in_array($values[$i], $needles))\n\t\t\t\t{\n\t\t\t\t\timagettftext($this->graph, 8, 0, $posx, $y2, $black, $this->graphFont, $values[$i]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add lines and labels along X Axis as well as secondary data\n\t\t\tfor($i = 0; $i < count($this->data2); $i++)\n\t\t\t{\n\t\t\t\n\t\t\t\t$colour \t= $this->generateRandomColour();\n\n\t\t\t\t$x1\t\t= ($i == 0) ? 40 : $x2;\n\t\t\t\t$x2\t\t= ($i == 0) ? 40 : ($x1+$barWidth);\n\t\t\t\t$y1\t\t= ($i == 0) ? ($this->graphHeight-35) : $y2;\n\t\t\t\t$y2\t\t= 35 + (($this->graphHeight-35)-($this->data2[$i]/($data_temp[0]/100))*(($this->graphHeight-35)/100));\n\t\t\t\t\n\t\t\t\n\t\t\t\timageline($this->graph, $x2, ($this->graphHeight-35), $x2, ($this->graphHeight-33), $black);\n\t\t\t\t\n\t\t\t\t$size \t\t= imagettfbbox(8, 0, $this->graphFont, $i);\n\t\t\t\t$long_text \t= $size[2]+$size[0];\n\t\t\t\t$posx\t\t= ($x2-($long_text/2));\n\t\t\t\t\n\t\t\t\timagettftext($this->graph, 8, 0, $posx, ($this->graphHeight-20), $black, $this->graphFont, $i);\n\t\t\t\t\n\t\t\t\t$coordinates = array(\n\t\t\t\t\t$x1, $y1,\n\t\t\t\t\t$x2, $y2,\n\t\t\t\t\t$x2, ($this->graphHeight-35),\n\t\t\t\t\t$x1, ($this->graphHeight-35)\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\t$fillcolour = imagecolorallocatealpha($this->graph, 231, 23, 24, 90);\n\n\t\t\t\timagefilledpolygon($this->graph, $coordinates, 4, $fillcolour);\n\t\t\t\timageline($this->graph, $x1, $y1, $x2, $y2, $this->data2Colour);\n\n\t\t\t\tif($i != 0)\n\t\t\t\t{\n\t\t\t\t\timagefilledrectangle($this->graph, ($x2-1), ($y2-1), ($x2+1), ($y2+1), $this->data2Colour);\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t// Plot the lines\n\t\t\tfor($i = 0; $i < count($this->data); $i++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\t$colour = $this->generateRandomColour();\n\n\t\t\t\t$x1\t\t= ($i == 0) ? 40 : $x2;\n\t\t\t\t$x2\t\t= ($i == 0) ? 40 : ($x1+$barWidth);\n\t\t\t\t$y1\t\t= ($i == 0) ? ($this->graphHeight-35) : $y2;\n\t\t\t\t$y2\t\t= 35 + (($this->graphHeight-35)-($this->data[$i]/($data_temp[0]/100))*(($this->graphHeight-35)/100));\n\n\t\t\t\t$coordinates = array(\n\t\t\t\t\t$x1, $y1,\n\t\t\t\t\t$x2, $y2,\n\t\t\t\t\t$x2, ($this->graphHeight-35),\n\t\t\t\t\t$x1, ($this->graphHeight-35)\n\t\t\t\t);\n\n\t\t\t\t$fillcolour = imagecolorallocatealpha($this->graph, 24, 213, 11, 90);\n\t\t\t\timagefilledpolygon($this->graph, $coordinates, 4, $fillcolour);\n\n\t\t\t\t// Create a rectangle for the bar\n\t\t\t\timageline($this->graph, $x1, $y1, $x2, $y2, $this->dataColour);\n\n\t\t\t\tif($i != 0)\n\t\t\t\t{\n\t\t\t\t\timagefilledrectangle($this->graph, ($x2-1), ($y2-1), ($x2+1), ($y2+1), $this->dataColour);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Draw our X and Y Axis\n\t\t\timageline($this->graph, 40, 35, 40, ($this->graphHeight-35), $black);\n\t\t\timageline($this->graph, 40, ($this->graphHeight-35), $this->graphWidth, ($this->graphHeight-35), $black);\n\t\t}", "title": "" }, { "docid": "5b2a871cafadc7093166db45911a9061", "score": "0.5937022", "text": "public function drawLine(Point $p1, Point $p2, Color $color) {\n $color = $this->allocateColor($color);\n\n imageLine($this->resource, $p1->getX(), $p1->getY(), $p2->getX(), $p2->getY(), $color);\n }", "title": "" }, { "docid": "81fb1f315eee2afe9ff4dc646528afc3", "score": "0.5918202", "text": "function addLines($PointListArray,$a_LineColor,$a_LineWidth, $a_MapName) \n { \n $layer = '';\n $layer.='var lineLayer = new OpenLayers.Layer.Vector(\"Line Layer\");';\n $layer.='var Points = new Array();';\n $layer.='var lineWidth = '.$a_LineWidth.';';\n $layer.='var lineColor = \"'.$a_LineColor.'\";';\n\n for($i=0;$i<sizeof($PointListArray);$i++){\n $layer.='Points['.$i.'] = new Object();';\n $layer.='Points['.$i.'][\"lon\"] = '.$PointListArray[$i][lon].';';\n $layer.='Points['.$i.'][\"lat\"] = '.$PointListArray[$i][lat].';';\n }\n $layer.=' osm_setLinePoints('.$a_MapName.', lineLayer, lineWidth, lineColor, 0.7, Points);';\n $layer.=' '.$a_MapName.'.addLayer(lineLayer);';\n\n return $layer;\n }", "title": "" }, { "docid": "361f77fc4b4f3bd69df3ee676cd041fb", "score": "0.59113157", "text": "public function line($x1, $y1, $x2, $y2) {\n unset($this->attributes);\n $this->shape = 'line';\n $this->attributes = array (\n 'x1' => $x1,\n 'y1' => $y1,\n 'x2' => $x2,\n 'y2' => $y2,\n );\n return $this;\n }", "title": "" }, { "docid": "436c596a1d2844f431e8788a542e9da2", "score": "0.5791208", "text": "private function add_new_line()\n\t{\n\t\tif (!(substr($this->line, -1) == \"\\n\")) $this->line .= \"\\n\";\n\t}", "title": "" }, { "docid": "6031bbe4d03a7f243ad1e0189647e346", "score": "0.57644004", "text": "public function drawLine($x1, $y1, $x2, $y2)\n {\n $this->convertCoordinatesFromUserSpace($x1, $y1);\n $this->convertCoordinatesFromUserSpace($x2, $y2);\n list($y1, $y2) = array($y2, $y1);\n return parent::drawLine($x1, $y1, $x2, $y2);\n }", "title": "" }, { "docid": "98b94fba0c225cbfbcab28fef2bf7c1f", "score": "0.5736153", "text": "public function createLineChart()\n {\n $this->createChartDetails();\n $this->makeLineChart();\n }", "title": "" }, { "docid": "414ba317ee388bd119d38c6b1db8a025", "score": "0.5711397", "text": "public function addLineItem($line_item) {\n $this->links->LineItems[] = $line_item;\n }", "title": "" }, { "docid": "656ccf1ada842991444f84b9618cd08d", "score": "0.5690798", "text": "public function element_line($data) {\n $drawcolor=array(\"r\"=>0,\"g\"=>0,\"b\"=>0);\n $hidden_type=\"line\";\n if($data->graphicElement->pen[\"lineWidth\"]>0)\n $linewidth=$data->graphicElement->pen[\"lineWidth\"];\n \n /*\n $borderset=\"\";\n if($data->box->topPen[\"lineWidth\"]>0)\n $borderset.=\"T\";\n if($data->box->leftPen[\"lineWidth\"]>0)\n $borderset.=\"L\";\n if($data->box->bottomPen[\"lineWidth\"]>0)\n $borderset.=\"B\";\n if($data->box->rightPen[\"lineWidth\"]>0)\n $borderset.=\"R\";\n if(isset($data->box->pen[\"lineColor\"])) {\n $drawcolor=array(\"r\"=>hexdec(substr($data->box->pen[\"lineColor\"],1,2)),\"g\"=>hexdec(substr($data->box->pen[\"lineColor\"],3,2)),\"b\"=>hexdec(substr($data->box->pen[\"lineColor\"],5,2)));\n }\n */\n if(isset($data->graphicElement->pen[\"lineStyle\"])) {\n if($data->graphicElement->pen[\"lineStyle\"]==\"Dotted\")\n $dash=\"0,1\";\n elseif($data->graphicElement->pen[\"lineStyle\"]==\"Dashed\")\n $dash=\"4,2\"; \n else\n $dash=\"\";\n //Dotted Dashed\n }\n \n \n \n if(isset($data->reportElement[\"forecolor\"])) {\n $drawcolor=array(\"r\"=>hexdec(substr($data->reportElement[\"forecolor\"],1,2)),\"g\"=>hexdec(substr($data->reportElement[\"forecolor\"],3,2)),\"b\"=>hexdec(substr($data->reportElement[\"forecolor\"],5,2)));\n }\n// $this->pointer[]=array(\"type\"=>\"SetDrawColor\",\"r\"=>$drawcolor[\"r\"],\"g\"=>$drawcolor[\"g\"],\"b\"=>$drawcolor[\"b\"],\"hidden_type\"=>\"drawcolor\");\n if(isset($data->reportElement[positionType])&&$data->reportElement[positionType]==\"FixRelativeToBottom\") {\n $hidden_type=\"relativebottomline\";\n }\n \n $style=array('color'=>$drawcolor,'width'=>$linewidth,'dash'=>$dash);\n// \n \n if($data->reportElement[\"width\"][0]+0 > $data->reportElement[\"height\"][0]+0)\t//width > height means horizontal line\n {\n $this->pointer[]=array(\"type\"=>\"Line\", \"x1\"=>$data->reportElement[\"x\"]+0,\"y1\"=>$data->reportElement[\"y\"]+0,\n \"x2\"=>$data->reportElement[\"x\"]+$data->reportElement[\"width\"],\"y2\"=>$data->reportElement[\"y\"]+$data->reportElement[\"height\"]-1,\n \"hidden_type\"=>$hidden_type,\"style\"=>$style,\"forecolor\"=>$data->reportElement[\"forecolor\"].\"\");\n }\n elseif($data->reportElement[\"height\"][0]+0>$data->reportElement[\"width\"][0]+0)\t\t//vertical line\n {\n $this->pointer[]=array(\"type\"=>\"Line\", \"x1\"=>$data->reportElement[\"x\"],\"y1\"=>$data->reportElement[\"y\"],\n \"x2\"=>$data->reportElement[\"x\"]+$data->reportElement[\"width\"]-1,\"y2\"=>$data->reportElement[\"y\"]+$data->reportElement[\"height\"],\"hidden_type\"=>$hidden_type,\"style\"=>$style,\n \"forecolor\"=>$data->reportElement[\"forecolor\"].\"\");\n }\n \n \n $this->pointer[]=array(\"type\"=>\"SetDrawColor\",\"r\"=>0,\"g\"=>0,\"b\"=>0,\"hidden_type\"=>\"drawcolor\");\n $this->pointer[]=array(\"type\"=>\"SetFillColor\",\"r\"=>255,\"g\"=>255,\"b\"=>255,\"hidden_type\"=>\"fillcolor\");\n }", "title": "" }, { "docid": "dd53786b4d69266eee360cfa79524545", "score": "0.5680903", "text": "public function addLine(InvoiceLineInterface $invoiceline);", "title": "" }, { "docid": "9d20e47939d20f4a8060481b17a054b5", "score": "0.5662637", "text": "public function add($line)\n {\n readline_add_history($line);\n }", "title": "" }, { "docid": "5460076caecbfbb8ec2a978d1c2db579", "score": "0.5648405", "text": "protected function drawLine($x1,$y1, $x2,$y2, $fillcolor, $color, $arrow, $r=0)\n {\n\tif (!$r)\n\t $r = $this->dim->radius/4 - 1;\n\n\t$alpha = atan2($y2-$y1,$x2-$x1);\n\t$points = array($x1+$r*sin($alpha), $y1-$r*cos($alpha),\n\t\t\t$x1-$r*sin($alpha), $y1+$r*cos($alpha));\n\tif (!$arrow)\n\t{\n\t array_push($points, $x2-$r*sin($alpha), $y2+$r*cos($alpha),\n\t\t\t\t$x2+$r*sin($alpha), $y2-$r*cos($alpha));\n\t}\n\telse\n\t{\n\t $x3 = $x2-($this->dim->radius*1.3) * cos($alpha);\n\t $y3 = $y2-($this->dim->radius*1.3) * sin($alpha);\n\t $ar = $this->dim->radius/2-1;\n\t $x4 = $x3-$r*sin($alpha);\n\t $y4 = $y3+$r*cos($alpha);\n\t $x3 += $r*sin($alpha);\n\t $y3 -= $r*cos($alpha);\n\t array_push($points, $x4, $y4,\n\t\t\t\t$x4-$ar*sin($alpha), $y4+$ar*cos($alpha),\n\t\t\t\t$x2, $y2,\n\t\t\t\t$x3+$ar*sin($alpha), $y3-$ar*cos($alpha),\n\t\t\t\t$x3, $y3);\n\t}\n\tImageFilledPolygon($this->img, $points, count($points)/2, $fillcolor);\n\tImagePolygon($this->img, $points, count($points)/2, $color);\n }", "title": "" }, { "docid": "effc3db95b00a7799607ba0ed6bdd74d", "score": "0.5606464", "text": "function setLine($line);", "title": "" }, { "docid": "add0a75833bd42cb148c90baa3c252d1", "score": "0.56033754", "text": "function drawLines() {\nglobal $im, $image_height, $image_width, $line_color, $line_distance, $draw_angled_lines;\n $linecolor = imagecolorallocate($im, $line_color['red'], $line_color['green'], $line_color['blue']);\n\n //vertical lines\n for($x = 1; $x < $image_width; $x += $line_distance) {\n imageline($im, $x, 0, $x, $image_height, $linecolor);\n }\n\n //horizontal lines\n for($y = 11; $y < $image_height; $y += $line_distance) {\n imageline($im, 0, $y, $image_width, $y, $linecolor);\n }\n\n if ($draw_angled_lines == TRUE) {\n for ($x = -($image_height); $x < $image_width; $x += $line_distance) {\n imageline($im, $x, 0, $x + $image_height, $image_height, $linecolor);\n }\n\n for ($x = $image_width + $image_height; $x > 0; $x -= $line_distance) {\n imageline($im, $x, 0, $x - $image_height, $image_height, $linecolor);\n }\n }\n}", "title": "" }, { "docid": "374bd8335215b5f45360a79f7d7cc93e", "score": "0.5601663", "text": "public function line($value) {\n return $this->setProperty('line', $value);\n }", "title": "" }, { "docid": "864ef3a4e58411b471fb19dbe12c71c0", "score": "0.5569592", "text": "public function pathLine($x, $y)\n {\n /** @todo implementation */\n return $this;\n }", "title": "" }, { "docid": "449e71ac59b0bdbf90d043fe520ac4d2", "score": "0.5552176", "text": "public function line($text){\n \n $this->lines[]=new Line($text);\n \n return $this->lastLine();\n }", "title": "" }, { "docid": "b564faede826c103c3e139b8f2b2e317", "score": "0.5515189", "text": "private function _drawThickLine($img, $startX, $startY, $endX, $endY, $colour, $thickness) {\r\n $angle = (atan2(($startY - $endY), ($endX - $startX)));\r\n\r\n $dist_x = $thickness * (sin($angle));\r\n $dist_y = $thickness * (cos($angle));\r\n\r\n $p1x = ceil(($startX + $dist_x));\r\n $p1y = ceil(($startY + $dist_y));\r\n $p2x = ceil(($endX + $dist_x));\r\n $p2y = ceil(($endY + $dist_y));\r\n $p3x = ceil(($endX - $dist_x));\r\n $p3y = ceil(($endY - $dist_y));\r\n $p4x = ceil(($startX - $dist_x));\r\n $p4y = ceil(($startY - $dist_y));\r\n\r\n $array = array(0=>$p1x, $p1y, $p2x, $p2y, $p3x, $p3y, $p4x, $p4y);\r\n imagefilledpolygon($img, $array, (count($array)/2), $colour);\r\n }", "title": "" }, { "docid": "24933b3512fbf0b4af6f65be67ba575f", "score": "0.54820526", "text": "public function line($image, $pt1, $pt2, $color, $thickness=1)\r\n\t{\r\n\t\t$color = $this->locateColor($image, $color);\r\n\t\t\r\n\t\timageline($image->image,$pt1->x, $pt1->y, $pt2->x, $pt2->y, $color);\r\n\t\t\r\n\t\tif($thickness != 1)\t//For thickness\r\n\t\t{\r\n\t\t\t\r\n\t\t\tif($thickness%2 != 0)\t//If it is odd\r\n\t\t\t\t$lineCount = $thickness-1;\r\n\t\t\telse\t\t\t\t\t//If it is even\r\n\t\t\t{\r\n\t\t\t\t$lineCount = $thickness-2;\r\n\t\t\t\timageline($image->image, $pt1->x, $pt1->y+($lineCount/2)+1, $pt2->x, $pt2->y+($lineCount/2)+1, $color);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Draw upper lines\r\n\t\t\tfor($i = 1; $i <= $lineCount/2; $i++)\r\n\t\t\t{\r\n\t\t\t\timageline($image->image, $pt1->x, $pt1->y-$i, $pt2->x, $pt2->y-$i, $color);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//Draw under lines\r\n\t\t\tfor($j = 1; $j <= $lineCount/2; $j++)\r\n\t\t\t{\r\n\t\t\t\timageline($image->image, $pt1->x, $pt1->y+$j, $pt2->x, $pt2->y+$j, $color);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "32e5f9a6e3acacc81297a2eeef73ba5d", "score": "0.5452228", "text": "protected function drawLines()\n {\n for ($line = 0; $line < $this->numLines; ++$line) {\n $x = $this->imageWidth * (1 + $line) / ($this->numLines + 1);\n $x += (0.5 - $this->frand()) * $this->imageWidth / $this->numLines;\n $y = rand($this->imageHeight * 0.1, $this->imageHeight * 0.9);\n\n $theta = ($this->frand() - 0.5) * M_PI * 0.7;\n $w = $this->imageWidth;\n $len = rand($w * 0.4, $w * 0.7);\n $lwid = rand(0, 2);\n\n $k = $this->frand() * 0.6 * 0.2;\n $k = $k * $k * 0.5;\n\n $phi = $this->frand() * 6.28;\n $step = 0.5;\n\n $dx = $step * cos($theta);\n $dy = $step * sin($theta);\n\n $n = $len / $step;\n\n $amp = 1.5 * $this->frand() / ($k + 5.0 / $len);\n\n $x0 = $x - 0.5 * $len * cos($theta);\n $y0 = $y - 0.5 * $len * sin($theta);\n\n for ($i = 0; $i < $n; ++$i) {\n $x = $x0 + $i * $dx + $amp * $dy * sin($k * $i * $step + $phi);\n $y = $y0 + $i * $dy - $amp * $dx * sin($k * $i * $step + $phi);\n\n imagefilledrectangle($this->im, $x, $y, $x + $lwid, $y + $lwid, $this->gdLineColor);\n }\n }\n }", "title": "" }, { "docid": "e3a8bbb5e5e9336c98f495c427ef0f3f", "score": "0.5414075", "text": "public function AppendLine($value){\n $this->_AddElement(\"\\r\\n$value\");\n }", "title": "" }, { "docid": "b868772fee334b8f1855745a58dabed6", "score": "0.5412874", "text": "public function addLine( string $points ) : self\n {\n $this->ensureGeoRssNamespaceIsRegistered( );\n $this->location = ( new Line( $this->feed ) )\n ->points( $points );\n return $this;\n }", "title": "" }, { "docid": "f3f959fc96e1b7262d0eb2032b966b9f", "score": "0.540943", "text": "function gd_dashed_line ($image, $x1, $y1, $x2, $y2, $color)\n{\n return imagedashedline($image, $x1, $y1, $x2, $y2, $color);\n}", "title": "" }, { "docid": "6d7780eddb49e5de5e071f220c51591d", "score": "0.53924674", "text": "public function addLines(string $tag, string $line): void\n\t{\n\t\t$this->lines[$tag] = $line;\n\t}", "title": "" }, { "docid": "369763ef25bfc0bd33507c9c1b8f9e9e", "score": "0.5382521", "text": "function add_text_line($linetext){\r\n\t\t $this->has_nodetext=1;\r\n\t\t array_push( $this->DOMtext,$linetext );\r\n\t }", "title": "" }, { "docid": "d05d383c995bd5d2bcf8988fcde091af", "score": "0.5368749", "text": "private function makeLineChart()\n {\n $series_data = $this->stored_temperature_data;\n\n $chart = new \\LineChart();\n\n $chart->getPlot()->getPalette()->setLineColor(array(new \\Color(255, 130, 0), new \\Color(255, 255, 255)));\n $series1 = new \\XYDataSet();\n\n foreach (array_reverse($series_data) as $data_row)\n {\n $index = $data_row->getId();\n $datum = $data_row->getHeater();\n $series1->addPoint(new \\Point($index, (string)$datum));\n }\n\n $dataSet = new \\XYSeriesDataSet();\n $dataSet->addSerie($this->chart_name, $series1);\n $chart->setDataSet($series1);\n $chart->setTitle($this->chart_name);\n $chart->getPlot()->setGraphCaptionRatio(0.75);\n $chart->render($this->output_chart_path_and_name);\n }", "title": "" }, { "docid": "f6e933cef2b6abebe6ca06e4db21763b", "score": "0.5349042", "text": "function imagedashedline ($image, $x1, $y1, $x2, $y2, $color) {}", "title": "" }, { "docid": "e4fcbe7ac2e1973663cef1cbbb991c04", "score": "0.5306852", "text": "public function increment_line($by) { $this->line += $by; }", "title": "" }, { "docid": "51d1d9a6c8a4de463fbae96809d5cf2a", "score": "0.53006124", "text": "public function setLine1($line)\n {\n $this->line1 = $line;\n }", "title": "" }, { "docid": "939d3c64e69f40f5f4e124f8410cd530", "score": "0.52836424", "text": "public function SetLineHeight($lh)\n {\n $this->line_height = $lh;\n }", "title": "" }, { "docid": "46a00229b3e352ea4191df42415800ad", "score": "0.52791774", "text": "function StartLine($font_size,$r=255,$g=255,$b=255){\n\t\t$this->SetFont('Helvetica','B',$font_size);\n\t\t$this->SetFillColor($r,$g,$b);\n\t}", "title": "" }, { "docid": "2ed0e8beb57a812be52599dbf8349a5d", "score": "0.5277386", "text": "public function addLines(int $lines)\n {\n $this->lines += $lines;\n }", "title": "" }, { "docid": "1ff4b57166db2f5e2d0a6b277cc99fa8", "score": "0.52603316", "text": "public function appendLine(string $code = ''): void\n {\n $this->append($code);\n $this->code .= PHP_EOL;\n }", "title": "" }, { "docid": "cda611944c24f4f73de24079dcd44802", "score": "0.5221246", "text": "private function draw()\n {\n\n $i = 0;\n\n $point = \\explode(\",\", $this->path);\n\n while ($i < \\count($point)) {\n if (isset($point[$i + 3]) && $point[$i] != 'undefined') {\n $x1 = $point[$i];\n $y1 = $point[$i + 1];\n $x2 = $point[$i + 2];\n $y2 = $point[$i + 3];\n\n if ($x2 == 0 || $y2 == 0) {\n $x2 = $x1;\n $y2 = $y1;\n } elseif ($x2 == -1 || $y2 == -1) {\n $key = key($point);\n $i = $i + 2;\n } else {\n imageline($this->data, $x1, $y1, $x2, $y2, $this->ink);\n }\n }\n\n $i = $i + 2;\n }\n\n if ($this->stamp_id) {\n $this->write($this->user_name, 10, 10);\n\n //stamp the time_stamp and IP\n $this->write($this->time_stamp . ' ' . $this->ip, 10, $this->height - 30);\n }\n }", "title": "" }, { "docid": "99ff71d60d12b3e2d859fc8e5285e02f", "score": "0.5212022", "text": "public function line($line)\n {\n if (!$this->actionText) {\n $this->introLines[] = $this->formatLine($line);\n } else {\n $this->outroLines[] = $this->formatLine($line);\n }\n\n return $this;\n }", "title": "" }, { "docid": "18b15c69607338df27fdc67115f0f138", "score": "0.5209263", "text": "function LineChart(&$context)\n\t{\n\t\t$this->Chart($context);\n\t\t$this->legendData = array();\n\t\t\n\t\t$this->setGroupType('simple');\n\t\t$this->addLegendEntry('default', 'default', array(128, 128, 128));\n\t\t$this->groups = array();\n\t\t\n\t\t//\tset the default plot margins\n\t\t$this->setPlotMargin('left', 150);\n\t\t$this->setPlotMargin('right', 60);\n\t\t$this->setPlotMargin('top', 30);\n\t\t$this->setPlotMargin('bottom', 40);\n\t\t\n\t\t$this->setDataEntryBarSpaceRatio(0.4);\n\t}", "title": "" }, { "docid": "95867518ffc893d5628322ee8007c537", "score": "0.5205678", "text": "function AddP1Line($line) {\n global $P1LinesA, $FuncLinesA, $InFuncB, $FormatLevel, $Level, $Line;\n $indent = $Level*2 + (!$InFuncB)*$FormatLevel*2;\n $indent = $indent > 0 ? str_pad('', $indent) : '';\n if (RG_DEBUG) { # Output the source line\n $comment = ' ' . FormatAndLine() . NL;\n if ($InFuncB)\n $FuncLinesA[] = $indent . '# ' .$Line . $comment;\n else\n $P1LinesA[] = $indent . '# '. $Line . $comment;;\n $comment = NL;\n }else\n $comment = ' # ' . FormatAndLine() . NL;\n if ($InFuncB)\n $FuncLinesA[] = $indent . $line . $comment;\n else\n $P1LinesA[] = $indent . $line . $comment;\n}", "title": "" }, { "docid": "305ba5cc852151a6091416177f9ccc8f", "score": "0.5203219", "text": "function drawLine($line_num)\r\n\t{\r\n\t\treturn '\r\n\t\t\t<tr valign=\"middle\" style=\"display:[row_holder_'.$line_num.'.label]; color: #414141; background-color: white;\">\r\n\t\t\t\t<td style=\"border-right: 1px solid lightGray; border-bottom: 1px solid lightGray;\">[product_id'.$line_num.'.field]</td>\r\n\t\t\t\t<td style=\"border-bottom: 1px solid lightGray;\">[units_'.$line_num.'.field]</td>\r\n\t\t\t\t<td style=\"border-right: 1px solid lightGray; border-bottom: 1px solid lightGray;\">[fix_unitsymbol_'.$line_num.'.field]</td>\r\n\t\t\t\t<td style=\"border-right: 1px solid lightGray; border-bottom: 1px solid lightGray;\">[fix_price_'.$line_num.'.field] <b>[fix_price_'.$line_num.'.label]</b></td>\t\t\t\r\n\t\t\t\t<td style=\"border-right: 1px solid lightGray; border-bottom: 1px solid lightGray; text-align: center;\">[fix_taxname_'.$line_num.'.field]</td>\r\n\t\t\t\t<td style=\"border-bottom: 1px solid lightGray;\">[sum_'.$line_num.'.field]</td>\r\n\r\n\t\t\t\t<td style=\"display: none;\"> /* must reload here */\r\n\t\t\t\t[fix_discount_'.$line_num.'.field]\r\n\t\t\t\t[discount_price_'.$line_num.'.field]\r\n\t\t\t\t[price_original_holder_'.$line_num.'.field]\r\n\t\t\t\t[stock_holder_'.$line_num.'.field]\r\n\t\t\t\t[reservation_holder_'.$line_num.'.field]\t\t\t\t\t\t\t\t\r\n\t\t\t\t[fix_productname_'.$line_num.'.field]\r\n\t\t\t\t[fix_taxrate_'.$line_num.'.field]\r\n\t\t\t\t[product_idchange'.$line_num.'.field]\r\n\t\t\t\t</td>\r\n\t\r\n\t\t\t</tr>\r\n\t\t\t';\r\n\t}", "title": "" }, { "docid": "3488b45331c287104ffd8416de8ad726", "score": "0.51686585", "text": "public function writeLine($line, $dataKey) {\n\t\tBillrun_Factory::dispatcher()->trigger('beforeCalculatorWriteLine', array('data' => $line, 'calculator' => $this));\n\t\t$line->save(Billrun_Factory::db()->linesCollection(), 1);\n\t\tBillrun_Factory::dispatcher()->trigger('afterCalculatorWriteLine', array('data' => $line, 'calculator' => $this));\n\t\tif (!isset($line['usagev']) || $line['usagev'] === 0) {\n\t\t\t$this->removeLineFromQueue($line);\n\t\t\tunset($this->data[$dataKey]);\n\t\t}\n\t}", "title": "" }, { "docid": "b8af61f6e1214e9d9ab46688f39a493c", "score": "0.5158382", "text": "public function setLine(\\StructType\\Line $line = null)\n {\n if (is_null($line) || (is_array($line) && empty($line))) {\n unset($this->line);\n } else {\n $this->line = $line;\n }\n return $this;\n }", "title": "" }, { "docid": "c8dd83657eb3ec6d9bfbeac81e637e49", "score": "0.51375663", "text": "protected function addLine($row)\n {\n $this->rows[] = (string) $row;\n }", "title": "" }, { "docid": "393da57d80ee60f4ca34651fcaaa4930", "score": "0.51073384", "text": "function multi_line ($image, $points, $colour) {\n\n\t\tfor ($i = 0; $i <= sizeof($points)-4; $i += 2) {\n\t\t\tImageLine($image, $points[$i], $points[$i+1], $points[$i+2], $points[$i+3], $colour);\n\t\t}\n\n\t}", "title": "" }, { "docid": "472df8ba5665177b04a2f820ba982037", "score": "0.51065624", "text": "public function setLineColor($lineColor) {\n $this->lineColor = $lineColor;\n return $this;\n }", "title": "" }, { "docid": "e41423b6e0895c1ddbfd48cbda56a145", "score": "0.51063675", "text": "public function getLine()\n {\n // TODO: Implement getLine() method.\n }", "title": "" }, { "docid": "d80c27fc9b9ed00950180d7c73bd7234", "score": "0.5078035", "text": "public function setLineaid($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->lineaid !== $v) {\n $this->lineaid = $v;\n $this->modifiedColumns[TblproductosTableMap::COL_LINEAID] = true;\n }\n\n if ($this->aTblcategoria !== null && $this->aTblcategoria->getLineaid() !== $v) {\n $this->aTblcategoria = null;\n }\n\n return $this;\n }", "title": "" }, { "docid": "5b0b2247ff99512c60acd0acadd56b8f", "score": "0.50634575", "text": "public function setLineRef($lineRef)\n {\n $this->lineRef = $lineRef;\n return $this;\n }", "title": "" }, { "docid": "5b0b2247ff99512c60acd0acadd56b8f", "score": "0.50634575", "text": "public function setLineRef($lineRef)\n {\n $this->lineRef = $lineRef;\n return $this;\n }", "title": "" }, { "docid": "1035ecd3e13d1c80904bc06217f51067", "score": "0.5055084", "text": "public function lineBreak(): void\n {\n echo $this->color->__invoke(str_repeat('─', $this->terminal->getWidth()))->yellow();\n }", "title": "" }, { "docid": "e00a8fbd05e8e2cfc2a3c6c928582135", "score": "0.50505686", "text": "public static function line():void\n {\n echo \"\\n\";\n return;\n }", "title": "" }, { "docid": "a2b2ad2672e59741e0e3c1c8fbab1192", "score": "0.50302637", "text": "public function addHistory($line)\n {\n $this->readline->addHistory($line);\n }", "title": "" }, { "docid": "0cbaa426b8d1adac03d92aeb7adbc806", "score": "0.50162953", "text": "public function writeLine($line, $dataKey) {\n\t\tBillrun_Factory::dispatcher()->trigger('beforeCalculatorWriteLine', array('data' => $line, 'calculator' => $this));\n\t\t$save = array();\n\t\t$saveProperties = array($this->ratingField, 'usaget', 'usagev', $this->pricingField, $this->aprField);\n\t\tforeach ($saveProperties as $p) {\n\t\t\tif (!is_null($val = $line->get($p, true))) {\n\t\t\t\t$save['$set'][$p] = $val;\n\t\t\t}\n\t\t}\n\t\t$where = array('stamp' => $line['stamp']);\n\t\tBillrun_Factory::db()->linesCollection()->update($where, $save);\n\t\tBillrun_Factory::dispatcher()->trigger('afterCalculatorWriteLine', array('data' => $line, 'calculator' => $this));\n\t\tif (!isset($line['usagev']) || $line['usagev'] === 0) {\n\t\t\t$this->removeLineFromQueue($line);\n\t\t\tunset($this->lines[$line['stamp']]);\n\t\t}\n\t}", "title": "" }, { "docid": "c1f96a2d8e586cc75e6a052ee2c31467", "score": "0.5004355", "text": "public function setLineStart($value)\n {\n $this->validateInt('LineStart', $value);\n\n if ($this->data['line_start'] === $value) {\n return;\n }\n\n $this->data['line_start'] = $value;\n\n $this->setModified('line_start');\n }", "title": "" }, { "docid": "aff626cfc48d4696536d6b4a935a5b0a", "score": "0.49991238", "text": "protected function createDatasetEntryLine(array $dataset): void\n {\n if (array_key_exists(\"yAxisID\", $dataset) == false) {\n $dataset[\"yAxisID\"] = \"y\";\n }\n if (array_key_exists(\"hoverOffset\", $dataset) == false) {\n $dataset[\"borderWidth\"] = 1;\n }\n if (array_key_exists(\"borderColor\", $dataset) == false) {\n $dataset[\"borderColor\"] = $this->createRGBColor($this->posIndexColor);\n $this->posIndexColor++;\n }\n\n $this->jsonPacked[\"data\"][\"datasets\"][] = [\n 'label' => $dataset[\"title\"],\n 'data' => $dataset[\"data\"],\n 'borderWidth' => $dataset[\"borderWidth\"],\n 'borderColor' => \"rgb(\" . implode(\", \", $dataset[\"borderColor\"]) . \")\",\n 'backgroundColor' => \"rgba(\" . implode(\", \", $this->darkenColor($dataset[\"borderColor\"])) . \",0.35)\",\n 'tension' => 0.1,\n 'fill' => true,\n 'yAxisID' => $dataset[\"yAxisID\"],\n ];\n }", "title": "" }, { "docid": "5e16295a29fa003ca996bfa1cad9deb9", "score": "0.49978077", "text": "public function addlineAction()\n {\n $paramid = $this->dispatcher->getParam('id');\n $paramfid = $this->dispatcher->getParam('fid');\n $record = (new \\Phaldoc\\Projects)->id($paramid);\n $file = (new \\Phaldoc\\Files)->id($paramfid);\n $this->appendTitle('view/'.$record->query->id,$record->query->project);\n $this->breadcrumb->add('viewfile/'.$file->query->project_id.'/'.$file->id,$file->query->rst,$file->query->rst, 2);\n $this->appendTitle('','projects_addline_title');\n\n\n $this->view->setVar(\"project\", $record->query);\n $this->view->setVar(\"file\", $file->query);\n $this->view->setVar(\"elements\", (array) $this->config->elements);\n }", "title": "" }, { "docid": "0294261dacc0a6f86ed9a2658bba7fc5", "score": "0.499739", "text": "public function addLineTotal(int $lineNumber, float $value): void\n {\n $this->lineTotal[$lineNumber] = $value;\n }", "title": "" }, { "docid": "115b9b2d0a4812cebfb887e142667547", "score": "0.49939686", "text": "public function setLine2($line)\n {\n $this->line2 = $line;\n }", "title": "" }, { "docid": "244d65711c7d0fd092a50a5357be236e", "score": "0.49803835", "text": "function _setLineStyle($lineStyle = false)\n {\n if ($lineStyle === false) {\n $lineStyle = $this->_lineStyle;\n }\n\n if (($lineStyle == 'transparent') || ($lineStyle === false)) {\n return false;\n }\n \n if (is_array($lineStyle)) {\n // TODO Implement linestyles in PDFlib (using pdf_setcolor(.., 'pattern'...); ?\n reset($lineStyle);\n $lineStyle = current($lineStyle);\n } \n\n $color = $this->_color($lineStyle);\n\n pdf_setlinewidth($this->_pdf, $this->_thickness);\n if ($this->_pdflib < 4) {\n pdf_setrgbcolor_stroke($this->_pdf, $color[0]/255, $color[1]/255, $color[2]/255);\n } else {\n pdf_setcolor($this->_pdf, 'stroke', 'rgb', $color[0], $color[1], $color[2], 0);\n }\n return true;\n }", "title": "" }, { "docid": "c3b5630ef98a4fc4e18e89bc12f95d09", "score": "0.49793422", "text": "public function appendLine($content=false, $colours='green')\n\t{\n\t\tif ($this->_currentLine)\n\t\t{\n\t\t\t$line = $this->_currentLine;\n\t\t\t$this->_currentLine = '';\n\t\t\t$this->appendLine($line, $colours);\n\t\t}\n\t\t\n\t\tif ($content !== false)\n\t\t{\n\t\t\t$this->appendContent($content, $colours);\n\t\t\t$this->_content[] = $this->_currentLine;\n\t\t\t$this->_currentLine = '';\n\t\t}\n\t}", "title": "" }, { "docid": "849bb0b35f8095ceb5df1c3f45cfd1bd", "score": "0.49780828", "text": "function add_line($array, $id) {\n\t\t\t$n = 1 ; \n\t\t\tforeach ($array as $a) {\n\t\t\t\t$a->idLigne= $id ;\n\t\t\t\t$a->idCol = $n ; \n\t\t\t\t$n++ ; \n\t\t\t}\n\t\t\t$this->content[] = $array ; \n\t\t}", "title": "" }, { "docid": "863676569ee2f39827d5da99aa461d8a", "score": "0.49736285", "text": "public function populateLines() {\n $datasets = $this->Datasets();\n $json = [];\n\n foreach($datasets as $dataset) {\n $json[] = [\n 'label' => $dataset->Title,\n 'borderColor' => $dataset->BorderColor,\n 'backgroundColor' => $dataset->BackgroundColor,\n 'pointBorderColor' => $dataset->PointBorderColor,\n 'pointBackgroundColor' => $dataset->PointBackgroundColor,\n 'borderWidth' => $this->BorderWidth,\n 'fill' => ($this->DisplayFill ? true : false),\n 'data' => explode(',', $dataset->Data)\n ];\n }\n\n //die(json_encode($json));\n $datasets = json_encode($json);\n $labels = json_encode(explode(',', $this->Labels));\n\n Requirements::customScript(<<<JS\n var ctx = document.getElementById('chart-element__chart-$this->ID');\n var myChart = new Chart(ctx, {\n type: 'line',\n data: {\n labels: $labels,\n datasets: $datasets\n },\n options: {\n responsive: true,\n scales: {\n yAxes: [{\n ticks: {\n beginAtZero: false\n }\n }]\n },\n legend: {\n display: false\n }\n }\n });\nJS\n );\n }", "title": "" }, { "docid": "aab6046c3d06fb6fe16664b22b7a0f45", "score": "0.49697617", "text": "function ncurses_insertln() {}", "title": "" }, { "docid": "5a1203cd28ed285e8f698a3c0d6f36fa", "score": "0.49681935", "text": "public function append($line, array $newLines);", "title": "" }, { "docid": "7014ee0e64e341ea12431a4606d7f204", "score": "0.49527618", "text": "public function drawSeparatorLineTo($x1, $x2, $y, $lineBottomMargin = self::SEPARATOR_LINE_MARGIN)\n {\n $this->SetDrawColor(self::SEPARATOR_LINE_COLOR);\n $this->Line($x1, $y, $x2, $y);\n $this->SetXY($this->getLMargin(), $y + $lineBottomMargin);\n $this->SetDrawColor(0);\n }", "title": "" }, { "docid": "ae76799a5ebd2470d375c87a5e8f6324", "score": "0.494551", "text": "public function setBlackLine()\n {\n $this->SetDrawColor(0, 0, 0);\n }", "title": "" }, { "docid": "e38d0953b6681736c02d98d7fb553a83", "score": "0.49443737", "text": "public function transactionLineAdded(TransactionLine $transactionLine): void\n {\n $this->transactionLines->add($transactionLine);\n }", "title": "" }, { "docid": "f8d8e3a4db81bdafe7a8a8c54a8fbad3", "score": "0.49343103", "text": "function lineEquation($p1, $p2) {\n // b = y - mx\n // mx - y + b = 0\n // ax + by + c = 0\n list($x1, $y1) = array($p1['x'], $p1['y']);\n list($x2, $y2) = array($p2['x'], $p2['y']);\n if ($x1 === $x2) {\n return array(\n \"a\" => 1.0,\n \"b\" => 0.0,\n \"c\" => -$x1\n );\n }\n $slope = ($y2 - $y1) / ($x2 - $x1);\n $b = $y1 - $slope * $x1;\n return array(\n \"a\" => $slope,\n \"b\" => -1.0,\n \"c\" => $b\n );\n}", "title": "" }, { "docid": "2a871cf5743754dc1f1e24bb28325561", "score": "0.4931932", "text": "protected function agregar($linea) {\n\t\t\t$this->salidaSQL[] = $linea;\n\t\t}", "title": "" }, { "docid": "23e48c0c1a66a274517258fed0277fa3", "score": "0.4929049", "text": "public function DrawNEWSLine($x,$y,$w,$h,$o){\n\t\t\t$orient = str_split($o,1);\n\t\t\t//Orientation using cardinal directions North,East,West,South\n\t\t\tforeach($orient as $or){\n\t\t\t\tswitch (strtoupper($or)){\n\t\t\t\t\tcase 'N':\n\t\t\t\t\t\t$this->DrawLine($y,'h',array($x,$w));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'S':\n\t\t\t\t\t\t$this->DrawLine($h,'h',array($x,$w));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'E':\n\t\t\t\t\t\t$this->DrawLine($x+$w,'v',array($y,$h-$y));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'W':\n\t\t\t\t\t\t$this->DrawLine($x,'v',array($y,$h-$y));\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f6feb3256749ca92f23367844a07d61f", "score": "0.4927865", "text": "protected function _newLine($item)\n {\n if (!$item->getId()) {\n $this->setCanSendRequest(false);\n\n return $this;\n }\n\n $this->_addGwItemsAmount($item);\n if ($this->isProductCalculated($item)) {\n return false;\n }\n $product = $this->_getProductByProductId($this->_retrieveProductIdFromQuoteItem($item));\n $taxClass = $this->_getTaxClassCodeByProduct($product);\n $price = $item->getBaseRowTotal();\n\n if ($this->_getTaxDataHelper()->applyTaxAfterDiscount($item->getStoreId())) {\n $price = $item->getBaseRowTotal() - $item->getBaseDiscountAmount();\n }\n\n $lineNumber = count($this->_lines);\n $line = new Line();\n $line->setNo($lineNumber);\n $line->setItemCode(\n $this->_getCalculationHelper()->getItemCode(\n $this->_getProductForItemCode($item),\n $item->getStoreId()\n )\n );\n $line->setDescription($item->getName());\n $line->setQty($item->getTotalQty());\n $line->setAmount($price);\n $line->setDiscounted(\n (float)$item->getDiscountAmount() && $this->_getTaxDataHelper()->applyTaxAfterDiscount($item->getStoreId())\n );\n\n if ($this->_getTaxDataHelper()->priceIncludesTax($item->getStoreId())) {\n $line->setTaxIncluded(true);\n }\n\n if ($taxClass) {\n $line->setTaxCode($taxClass);\n }\n $ref1Value = $this->_getRefValueByProductAndNumber($product, 1, $item->getStoreId());\n if ($ref1Value) {\n $line->setRef1($ref1Value);\n }\n $ref2Value = $this->_getRefValueByProductAndNumber($product, 2, $item->getStoreId());\n if ($ref2Value) {\n $line->setRef2($ref2Value);\n }\n\n $this->_lines[$lineNumber] = $line;\n $this->_lineToLineId[$lineNumber] = $item->getId();\n\n return $lineNumber;\n }", "title": "" }, { "docid": "aac47e0dd956c9e37174cdcafe33de4a", "score": "0.4926633", "text": "public function getLine()\n {\n return $this->hasOne(Line::className(), ['id' => 'line_id']);\n }", "title": "" }, { "docid": "4fd023c0badb2a0e28c6da9228449730", "score": "0.49245903", "text": "public function edit(Blueline $blueline)\n {\n //\n }", "title": "" }, { "docid": "0d37f1ed75644d02c5b1d87460cc5a77", "score": "0.4908561", "text": "public function drawSeparatorLine($y, $lineBottomMargin = self::SEPARATOR_LINE_MARGIN)\n {\n $this->SetDrawColor(self::SEPARATOR_LINE_COLOR);\n $this->Line($this->getLMargin(), $y, $this->getRBorder(), $y);\n $this->SetXY($this->getLMargin(), $y + $lineBottomMargin);\n $this->SetDrawColor(0);\n }", "title": "" }, { "docid": "5ea5f135b49a9076094c0b0987eaa677", "score": "0.48982942", "text": "function ncurses_mvhline($y, $x, $attrchar, $n) {}", "title": "" }, { "docid": "6c3a9628fb8c2227d46fe3a5c4a9e6e9", "score": "0.48926532", "text": "public function add($lines)\n {\n $this->lines = $lines;\n\n return $this;\n }", "title": "" }, { "docid": "7f6846c54bbfc2a9b2a111b25e9c6723", "score": "0.48844412", "text": "function imagelinethick($image, $x1, $y1, $x2, $y2, $color, $thick = 1)\r\n{\r\n\tif ($thick == 1) {\r\n\t\treturn imageline($image, $x1, $y1, $x2, $y2, $color);\r\n\t}\r\n\t$t = $thick / 2 - 0.5;\r\n\tif ($x1 == $x2 || $y1 == $y2) {\r\n\t\treturn imagefilledrectangle($image, round(min($x1, $x2) - $t), round(min($y1, $y2) - $t), round(max($x1, $x2) + $t), round(max($y1, $y2) + $t), $color);\r\n\t}\r\n\t$k = ($y2 - $y1) / ($x2 - $x1); //y = kx + q\r\n\t$a = $t / sqrt(1 + pow($k, 2));\r\n\t$points = array(\r\n\t\t\tround($x1 - (1+$k)*$a), round($y1 + (1-$k)*$a),\r\n\t\t\tround($x1 - (1-$k)*$a), round($y1 - (1+$k)*$a),\r\n\t\t\tround($x2 + (1+$k)*$a), round($y2 - (1-$k)*$a),\r\n\t\t\tround($x2 + (1-$k)*$a), round($y2 + (1+$k)*$a),\r\n\t);\r\n\timagefilledpolygon($image, $points, 4, $color);\r\n\treturn imagepolygon($image, $points, 4, $color);\r\n}", "title": "" }, { "docid": "5063e4afc01db38a33fafcb0212a28b9", "score": "0.4882233", "text": "public function setTrendLine($DataArray, $LineColor = \"000000\", $LineThickness = \"3\")\r\n\t\t{\r\n\t\t\tif(!isset($this->ChartSpecificData[\"ewd2\"])) $this->ChartSpecificData[\"ewd2\"] = \"t:\";\r\n\t\t\telse $this->ChartSpecificData[\"ewd2\"] .= \"|\";\r\n\t\t\t$this->ChartSpecificData[\"ewd2\"] .= implode(\",\",$DataArray);\r\n\t\t\t\r\n\t\t\tif(!isset($this->ChartSpecificData[\"ewtr\"])) $this->ChartSpecificData[\"ewtr\"] = \"\";\r\n\t\t\telse $this->ChartSpecificData[\"ewtr\"] .= \"|\";\r\n\t\t\t$this->ChartSpecificData[\"ewtr\"] .= \"0,$LineColor,$LineThickness\";\r\n\t\t\t\t\r\n\t\t}", "title": "" }, { "docid": "bf2fdf737e545de87d74d8cdf998d6ef", "score": "0.48791412", "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": "178220d4256d3290665906e26be7943a", "score": "0.48749423", "text": "public static function run($dataDir=null){\r\n $create_options = new BmpOptions();\r\n $create_options->setBitsPerPixel(32);\r\n\r\n # Define the source property for the instance of BmpOptions\r\n $ary=array();\r\n $create_options->setSource(new StreamSource(new ByteArrayInputStream($ary)));\r\n\r\n # Create an instance of Image\r\n $image=new Image();\r\n $image = $image->create($create_options,100,100);\r\n\r\n # Create an instance of Color\r\n $color = new Color();\r\n\r\n # Create an instance of Pen\r\n $pen = new Pen();\r\n\r\n # Create and initialize an instance of Graphics class\r\n $graphic = new Graphics($image);\r\n\r\n # Clear the image surface with Yellow color\r\n $graphic->clear($color->getYellow());\r\n\r\n # Draw a dotted line by specifying the Pen object having blue color and co-ordinate Points\r\n $graphic->drawLine(new Pen($color->getBlue()), 9, 9, 90, 90);\r\n $graphic->drawLine(new Pen($color->getBlue()), 9, 90, 90, 9);\r\n\r\n $solid_brush = new SolidBrush();\r\n $point = new Point();\r\n\r\n # Draw a continuous line by specifying the Pen object having Solid Brush with red color and two point structures\r\n $graphic->drawLine(new Pen(new SolidBrush($color->getRed())), new Point(9, 9), new Point(9, 90));\r\n\r\n # Draw a continuous line by specifying the Pen object having Solid Brush with aqua color and two point structures\r\n $graphic->drawLine(new Pen(new SolidBrush($color->getAqua())), new Point(9, 90), new Point(90, 90));\r\n\r\n # Draw a continuous line by specifying the Pen object having Solid Brush with black color and two point structures\r\n $graphic->drawLine(new Pen(new SolidBrush($color->getBlack())), new Point(90,90), new Point(90,9));\r\n\r\n # Draw a continuous line by specifying the Pen object having Solid Brush with white color and two point structures\r\n $graphic->drawLine(new Pen(new SolidBrush($color->getWhite())), new Point(90,9), new Point(9,9));\r\n\r\n # Save all changes.\r\n $image->save($dataDir.\"DrawLinesExample.bmp\");\r\n\r\n print \"Lines have been drawn in image successfully!\".PHP_EOL;\r\n }", "title": "" }, { "docid": "70d42e48115f2a443273e1f9ea4a92ab", "score": "0.48618183", "text": "function imagelinethick($image, $x1, $y1, $x2, $y2, $color, $thick = 10)\n{\n if ($thick == 1) {\n return imageline($image, $x1, $y1, $x2, $y2, $color);\n }\n $t = $thick / 2 - 0.5;\n if ($x1 == $x2 || $y1 == $y2) {\n return imagefilledrectangle($image, round(min($x1, $x2) - $t), round(min($y1, $y2) - $t), round(max($x1, $x2) + $t), round(max($y1, $y2) + $t), $color);\n }\n $k = ($y2 - $y1) / ($x2 - $x1); //y = kx + q\n $a = $t / sqrt(1 + pow($k, 2));\n $points = array(\n round($x1 - (1+$k)*$a), round($y1 + (1-$k)*$a),\n round($x1 - (1-$k)*$a), round($y1 - (1+$k)*$a),\n round($x2 + (1+$k)*$a), round($y2 - (1-$k)*$a),\n round($x2 + (1-$k)*$a), round($y2 + (1+$k)*$a),\n );\n imagefilledpolygon($image, $points, 4, $color);\n return imagepolygon($image, $points, 4, $color);\n}", "title": "" }, { "docid": "a0c95ee0aa5cbdabb7c1e09635ede8d4", "score": "0.48573807", "text": "public function setCustomline($customline)\n\t{\n\t $this->customline = $customline;\n\t}", "title": "" }, { "docid": "3c89c47b1bcac2cbd87ba368b7d35a38", "score": "0.4850284", "text": "public function ptln($line, $color, $channel = STDOUT)\n {\n $this->set($color, $channel);\n fwrite($channel, rtrim($line) . \"\\n\");\n $this->reset($channel);\n }", "title": "" }, { "docid": "9dc46263af76463ef12c453737ec7c7c", "score": "0.48489502", "text": "public function endLine($h = false)\n {\n // Dont draw line ends in draw mode\n if ($this->draw_mode == \"CALCULATE\") {\n return;\n }\n\n if ($this->current_line_height) {\n $this->document->Ln($this->current_line_height - $this->max_line_border_addition);\n //$this->setPosition(false, $this->current_line_start_y + $this->current_line_height);\n } else {\n if ($h !== false) {\n $this->document->Ln($h);\n } else {\n $this->document->Ln();\n }\n }\n $y = $this->document->GetY();\n $this->setPosition(false, $y);\n $this->current_line_start_y = $this->document->GetY();\n $this->current_line_height = 0;\n $this->max_line_height = 0;\n $this->required_line_height = 0;\n $this->max_line_border_addition = 0;\n $this->max_line_padding_addition = 0;\n $this->calculated_line_height = 0;\n }", "title": "" }, { "docid": "acb776ceeb6292f4e1644f4ef0456ef8", "score": "0.48483306", "text": "protected function LineLabel($x, $y, $w, $h, &$style, &$surround)\n {\n $w2 = $w / 2;\n $h2 = $h / 2;\n $a = $style['tail_direction'] * M_PI / 180;\n\n // make sure line is long enough to not look like part of text\n $llen = max($style['font_size'], $style['tail_length']);\n\n // start at edge of text bounding box\n $w2a = $w2;\n $h2a = $w2 * tan($a);\n if(abs($h2a) > $h2) {\n $h2a = $h2;\n $w2a = $h2 / tan($a);\n }\n if(($a < M_PI && $h2a < 0) || ($a > M_PI && $h2a > 0)) {\n $h2a = -$h2a;\n $w2a = -$w2a;\n }\n \n $x1 = $x + $w2 + $w2a;\n $y1 = $y + $h2 + $h2a;\n $x2 = $llen * cos($a);\n $y2 = $llen * sin($a);\n $surround['d'] = \"M{$x1} {$y1}l{$x2} {$y2}\";\n return 'path';\n }", "title": "" }, { "docid": "fd5c36bf1eb698b16a78569fbda866b5", "score": "0.48378024", "text": "function imagepolyline($image, $points, $npoints, $color)\n{\n\tfor ($i=0; $i < ($npoints - 1); $i++) \n\t{ \n\t\timageline($image, $points[$i * 2], $points[$i * 2 + 1], $points[$i * 2 + 2], $points[$i * 2 + 3],\n\t\t$color); \n\t}\n}", "title": "" }, { "docid": "442ead1efe60847a462c9fbb0a45792e", "score": "0.48348796", "text": "function debug_line( $expression, $export = false )\n {\n \\O2System\\Gear\\Debugger::line( $expression, $export );\n }", "title": "" }, { "docid": "14b5660cd656822a672b5222d198b6a3", "score": "0.48163038", "text": "function add($data) {\n if(gettype($data) === \"array\") {\n foreach($data as $line) {\n $this->internalAddLine($line);\n }\n } else {\n $this->internalAddLine($data);\n }\n }", "title": "" }, { "docid": "0c483465e834d3c5650bdbef46e84306", "score": "0.48086622", "text": "public function leerLinea(){\n $linea = $this->limpiarLinea(reset($this->data));\n array_shift($this->data);\n return $linea;\n }", "title": "" } ]
3a167ac0ac2784fb847115892ac44cbb
Prepara e executa uma consulta
[ { "docid": "42baf69a2d906f4bf499a9fffa1f1219", "score": "0.0", "text": "public function select(string $rawQuery, bool $saveLog = false): array;", "title": "" } ]
[ { "docid": "d0e9d738a82d042f105f97897c1ef210", "score": "0.6886514", "text": "function prepararConsulta() {\n\t\t$campos = \"select id from imputaciones as i inner join productos as p on (p.id_produccion=i.id_orden_produccion) where i.id is not null \";\n\t\tif($this->id_usuario != \"\") {\n\t\t\t$condiciones .= sprintf(\" and i.id_usuario=%s\",\n\t\t\t\t$this->makeValue($this->id_usuario, \"int\"));\n\t\t}\n\t\tif($this->orden_produccion != \"\") {\n\t\t\t//$condiciones .= \" and p.codigo like '%\".$this->orden_produccion.\"%'\";\n\t\t\t$condiciones .= \" and p.num_serie like '%\".$this->orden_produccion.\"%'\";\n\t\t}\n\t\tif($this->tipo_trabajo != 0) {\n\t\t\t$condiciones .= sprintf(\" and tipo_trabajo=%s\",\n\t\t\t\t$this->makeValue($this->tipo_trabajo, \"int\"));\n\t\t}\n\t\tif($this->fecha_desde != \"\") {\n\t\t\t$condiciones .= \" and i.fecha >= '\".$this->fecha_desde.\"' \";\n\t\t}\n\t\tif($this->fecha_hasta != \"\"){\n\t\t\t$condiciones .= \" and i.fecha <= '\".$this->fecha_hasta.\"' \";\t\n\t\t}\n\t\t\n\t\t$ordenado = \" group by i.id_orden_produccion,i.id order by i.fecha DESC\";\n\t\t\n\t\t$this->consultaSql = $campos.$condiciones.$ordenado;\t\t\n\t}", "title": "" }, { "docid": "0e2d07dae8d791411d9c2c06b1f402eb", "score": "0.6845301", "text": "public function apagaconsulta(){\n if(isset($_REQUEST['consulta'])){\n $this->con->apagar($_REQUEST['consulta']);\n }\n }", "title": "" }, { "docid": "d36e9afc3e2895452f1119c47d53dc62", "score": "0.6643147", "text": "function consultar($query);", "title": "" }, { "docid": "978193d94272d2e9b7ef27a89ca3a6e1", "score": "0.65738136", "text": "public function executeQuery ();", "title": "" }, { "docid": "24e8a5044b798bc66ad7044f14a2abd1", "score": "0.65482", "text": "function prepararConsulta() {\n\t\t$consulta = \"select id_simulador from simuladores where simuladores.id_simulador is not null and simuladores.activo=1\";\n\n\t\tif($this->num_serie != \"\"){\n\t\t\t$consulta .= \" and numero_serie='\".$this->num_serie.\"'\";\n\t\t}\n\t\tif($this->id_almacen != \"\"){\n\t\t\t$consulta .= \" and id_almacen=\".$this->id_almacen;\n\t\t}\n else {\n if($_SESSION[\"AT_id_tipo_usuario\"] == 1){\n // Usuario Administrador Simumak\n $consulta .= \" and id_almacen in (select id_almacen from almacenes where activo=1 and id_sede=\".$this->id_sede.\")\";\n }\n else {\n $consulta .= \" and id_almacen in (select id_almacen from almacenes where activo=1 and id_sede=\" . $_SESSION[\"AT_id_sede\"] . \")\";\n }\n }\n\t\tif($this->ajuste == 0){\n\t\t\tif($this->estado != \"\"){\n\t\t\t\t$consulta .= \" and id_simulador in \n\t\t\t\t\t\t\t\t(select id_simulador from simuladores_estados where estado='\".$this->estado.\"' and activo=1)\";\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif($this->estado != \"\"){\n\t\t\t\t$consulta .= \" and id_simulador in \n\t\t\t\t\t\t\t\t(select id_simulador from simuladores_estados where estado='\".$this->estado.\"' and activo=1)\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$consulta .= \" and id_simulador in \n\t\t\t\t\t\t\t\t(select id_simulador from simuladores_estados where activo=1 and (estado='AVERIADO' or estado='EN REPARACION'))\";\t\t\n\t\t\t}\t\n\t\t}\t\n\n\t\t$utilizado_alguna_vez = \" and id_simulador in (select id_simulador from simuladores_estados group by id_simulador having count(id_simulador) > 1)\";\n\n\t\t$ordenado = \" order by simuladores.fecha_creado DESC\";\t\t\t\t\t\t\t\n\n\t\t$this->consultaSql = $consulta.$utilizado_alguna_vez.$ordenado.$this->paginacion;\n\t}", "title": "" }, { "docid": "a8e807cf0efebbe19021a7d0e22ca217", "score": "0.6546411", "text": "public function executeQuery();", "title": "" }, { "docid": "4ecc49ba7dd921efc00430355fd2f988", "score": "0.65237296", "text": "public abstract function consultar($sql);", "title": "" }, { "docid": "5b89500beff9b084333bdbaadaa86bed", "score": "0.64350414", "text": "function ejecutaConsulta($sql)\n{\n\n\t\t$miconexion=connectDB();\n\t\treturn $miconexion->query($sql);\n\n}", "title": "" }, { "docid": "c847aefce3bc49de71adfac39d7014be", "score": "0.64132166", "text": "public function Consultar($estado, $tipo){\n\n $retorno;\n $objetoAccesoDato = AccesoDatos::dameUnObjetoAcceso(); \n $consulta =$objetoAccesoDato->RetornarConsulta(\"SELECT * FROM pedidos WHERE estado='$estado' AND tipo= '$tipo' \");\n $consulta->execute(); \n $retorno = $consulta->fetchAll(); \n if($retorno != null){\n return $retorno;\n }\n else{\n return null;\n }\n\n\n\n\n\n}", "title": "" }, { "docid": "3397c423854173b451b7cd20a7a28bad", "score": "0.63970375", "text": "private function _query(){\n\t\t\t\t$this->handler = $this->factory->prepare($this->query_string, array(PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL));\n\t\t\t}", "title": "" }, { "docid": "3af7ac6e2076fbd861b28dcc72007a4e", "score": "0.63873494", "text": "function consultarDep(){\n\t\t$sql=\"SELECT *FROM departamento\";\n\t\treturn $this->ejecuta($sql);\n\t}", "title": "" }, { "docid": "bd6638b52cc6e7b4cb0063f71e332800", "score": "0.63728184", "text": "public function mdlConsultarEmpleado(){\n\n /*====================================================\n INSGRESAR LA CONSULTA, PUEDE SER SP O QUERY\n ====================================================*/ \n\n $sql = \"call SPConsultarempleado ( ? )\";\n\n /*====================================================\n INSTACIAR LA BASE DE DATOS\n ====================================================*/\n $conexion = new Conexion();\n $stmt = $conexion->conectar() -> prepare($sql);\n \n /*====================================================\n SE INGRESA EL CODIGO QUE SE DESEA CONSULTAR\n ====================================================*/\n\n $stmt -> bindParam ( 1, $this -> codEmpleados, PDO::PARAM_INT);\n\n $stmt -> execute();\n \n $resultSet = $stmt;\n return $resultSet;\n\n }", "title": "" }, { "docid": "ff7e5e7376dddce1006f68faa6fe790b", "score": "0.6368482", "text": "function execQuery(){\r\n\t\t// default fields must be added (if not yet)\r\n\t\tif(!$this->getModel()->isFieldsSet($this->owner->name))\r\n\t\t\t$this->getModel()->setQueryFields($this->owner->name);\r\n\t\t$this->getModel()->dsql($this->owner->name)->do_select();\r\n\t}", "title": "" }, { "docid": "69ef45138f8ef7b8323b77f2348be3ef", "score": "0.6363151", "text": "public function consultar(){\n $consulta = isset($_POST['consulta'])?$_POST['consulta']:\"\";\n if($consulta == \"\") return;\n return $this->con->consultar($consulta);\n }", "title": "" }, { "docid": "255136d2caf41c696d3b4372af148e31", "score": "0.6306616", "text": "function consultarEstudiantesPreinscritos() {\r\n $cadena_sql = $this->sql->cadena_sql(\"consultarEstudiantesPreinscritos\");\r\n return $registroDatos = $this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\r\n }", "title": "" }, { "docid": "7459fa91180153182e88f018d5b2babe", "score": "0.62811697", "text": "public function query($query){// abre o metodo \"query\" e recebe o parametro query(atributo) que vem de outras classes com o comando a ser execultado no banco dados, seja dml, dql, ou qualquer outro procedimento \n\t\t\t//echo \"O metodo query esta recebendo a seguinte query: \".$query.\"<br>\";//imprime qual o procedimento que ira ser executado no banco de dados\n\t\t\t//echo (empty($query) ? \"query vazia!<br>\" : \"query ocupada!<br>\");// imprime se o atributo query esta recebendo para execuçao no banco de dados\n\t\t\t$query = $this->conexao->prepare($query);//preparo o banco para receber a query \n\t\t\tif ($query->execute()){//se conseguir executar procedimento retorna a query\n\t\t\t\treturn $query;//retorno query\n\t\t\t\t//echo \"Procedimento feito com sucesso!\";//impreime que a execçao do comando ao banco de dads ocorreu bem\n\t\t\t} else {//senão imprime que houve erro ao executar a query e fornece as informaçoes do erro\n\t\t\t\t//echo \"Erro ao executar este procedimento!\";//imorime que ocorreu um erro ao executar o procedimento\n\t\t\t\t//echo \"<script>alert('nao deu certo')</script>\";\n\t\t\t\tprint_r($this->conexao->errorInfo());// imprime um array fornecendo imformaçoes deste erro\n\t\t\t}//fecha else\n\t\t}", "title": "" }, { "docid": "4969041302d9375616fc24ab7205e9e2", "score": "0.6270482", "text": "public function consulta()\n {\n try{\n $sql = \"CALL tipos_sangre_proc('consulta',NULL,NULL,NULL);\";\n $stmt = $this->_db->query($sql)->fetchAll(PDO::FETCH_ASSOC);\n return $stmt;\n\n }catch(PDOException $e){\n return $e->getMessage();\n }\n }", "title": "" }, { "docid": "ceee459812ef1c5408685206ae8e451e", "score": "0.6191848", "text": "function ejecutaConsulta($pais_origen,$seccion){\n require(\"configConexion.php\");\n\n //conexion a base de datos con la forma PDO\n try{ \n $conexion=new PDO(\"mysql:host=$db_host; dbname=$db_nombre\", $db_usuario, $db_pass);\n $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $conexion->exec(\"SET CHARACTER SET utf8\");\n $consulta=\"SELECT CÓDIGOARTÍCULO, NOMBREARTÍCULO, SECCIÓN, PRECIO, FECHA , IMPORTADO, PAÍSDEORIGEN from productos where PAÍSDEORIGEN = :pais_origen AND SECCIÓN= :seccion\";\n $result=$conexion->prepare($consulta);\n $result->execute(array(\":pais_origen\"=>$pais_origen , \":seccion\"=>$seccion));\n echo \"<table style='border:1px solid black;collapse:collapsed'>\";\n echo \"<hr><td>Código</td><td>Sección</td><td>Nombre </td><td>Precio </td><td>Fecha</td><td>Importado</td><td>Pais</td><td></th>\";\n \n while($row =$result->fetch(PDO::FETCH_ASSOC)){\n $codigo=$row[\"CÓDIGOARTÍCULO\"];\n $seccion=$row[\"SECCIÓN\"];\n $nombre=$row[\"NOMBREARTÍCULO\"];\n $precio=$row[\"PRECIO\"];\n $fecha=$row[\"FECHA\"];\n $importado=$row[\"IMPORTADO\"];\n $pais=$row[\"PAÍSDEORIGEN\"];\n echo \"<tr><td> $codigo </td><td> $seccion </td><td> $nombre </td><td> $precio </td><td> $fecha </td><td> $importado </td><td> $pais </td><td></tr>\";\n }\n echo \"</table>\";\n $result->closeCursor();\n }\n catch(Exception $e){\n echo \"Error: \".$e->getMessage();\n }finally{\n $conexion=null;\n } \n }", "title": "" }, { "docid": "5fd4e9b472a2f40e9b0413dcc0f6df3d", "score": "0.6187045", "text": "protected abstract function query();", "title": "" }, { "docid": "039a61b4c2a98898a9633301980b191c", "score": "0.6156307", "text": "function consultarProyectos(){\r\n $cadena_sql=$this->sql->cadena_sql($this->configuracion,$this->accesoOracle,\"proyectos\", '');\r\n return $resultado_est=$this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql,\"busqueda\");\r\n\r\n }", "title": "" }, { "docid": "7fe943743037e21a7d00409f63a572bb", "score": "0.6152655", "text": "function _executeQuery(){\n\t\t$query = &$this->_Query;\n\t\t$bind_ar = &$this->_BindAr;\n\t\t$options = &$this->_Options;\n\n\t\tforeach($bind_ar as &$value){\n\t\t\tif(is_object($value)){\n\t\t\t\t$value = $value->getId();\n\t\t\t}\n\t\t\tif(is_bool($value)){\n\t\t\t\t$value = $this->escapeBool4Sql($value);\n\t\t\t}\t\n\t\t}\n\n\t\t// toto odstranuje z SQL prikazu znak \\r, ktery zpusobuje problemy\n\t\t// na ihnedu toto resila fce remover...\n\t\t$query = str_replace(\"\\r\",\" \",$query);\n\n\t\t// nastaveni defaultnich hodnot v options\n\t\t$options[\"mode\"] = isset($options[\"mode\"]) ? $options[\"mode\"] : OCI_DEFAULT;\n\t\t$options[\"limit\"] = isset($options[\"limit\"]) ? (int)$options[\"limit\"] : null;\n\t\t$options[\"offset\"] = isset($options[\"offset\"]) ? (int)$options[\"offset\"] : null;\n\t\t$options[\"bind_values\"] = isset($options[\"bind_values\"]) ? (bool)$options[\"bind_values\"] : true;\n\t\t$options[\"execute_statement\"] = isset($options[\"execute_statement\"]) ? (bool)$options[\"execute_statement\"] : true;\n\t\t$options[\"clobs\"] = isset($options[\"clobs\"]) ? (array)$options[\"clobs\"] : array();\t\t\t// $options[\"clobs\"] = array(\":body\",\":perex\");\n\t\t$options[\"blobs\"] = isset($options[\"blobs\"]) ? (array)$options[\"blobs\"] : array();\t\t\t// $options[\"blobs\"] = array(\":binary_body\")\n\n\t\tif(isset($options[\"offset\"]) || isset($options[\"limit\"])){\n\t\t\tif(!isset($options[\"offset\"])){ $options[\"offset\"] = 0; }\n\t\t\t$_cond = array();\n\t\t\tif(isset($options[\"offset\"])){\n\t\t\t\t$_cond[] = \"rnum____>:offset____\";\n\t\t\t\t$bind_ar[\":offset____\"] = $options[\"offset\"];\n\t\t\t}\n\t\t\tif(isset($options[\"limit\"])){\n\t\t\t\t$_cond[] = \"rnum____<=:limit____\";\n\t\t\t\t$bind_ar[\":limit____\"] = $options[\"offset\"] + $options[\"limit\"];\n\t\t\t}\n\n\t\t\t// HACK: misto ROWNUM je tu pouzit ROW_NUMBER()\n\t\t\t// v 10g toto zacalo zlobit v pripade, ze $query obsahovalo rovnez omezeni na ROWNUM\n\t\t\t$query = \"\n\t\t\t\tSELECT * FROM (\n\t\t\t\t\tSELECT\n\t\t\t\t\t\tq____.*,\n\t\t\t\t\t\t-- ROWNUM AS rnum____\n\t\t\t\t\t\tROW_NUMBER() OVER(ORDER BY ROWNUM) AS rnum____\n\t\t\t\t\tFROM\n\t\t\t\t\t\t($query)q____\n\t\t\t\t) WHERE \".join(\" AND \",$_cond).\"\n\t\t\t\";\n\t\t}\n\t\n\t\t//if(preg_match(\"/(INSERT|UPDATE).*RETURNING/s\",$query)){\n\t\t//\techo $query.\"\\n\";\n\t\t//}\n\n\t\t$this->_freeLastOracleStatement();\n\n\t\t// parsovani dotazu\n\t\t$connection = $this->_getDbConnect();\n\t\t$stmt = OCIParse($connection,$query);\n\t\t$this->_LastOracleStatement = &$stmt;\n\t\tif(!$stmt){\n\t\t\t$this->_raiseDBError(\"OCIParse failed\");\n\t\t\treturn null;\n\t\t}\n\n\t\t// bindovani promennych\n\t\t$lobs = array();\n\t\tif($options[\"bind_values\"]){\n\t\t\tforeach(array_keys($bind_ar) as $key){\n\t\t\t\t//if(is_object($bind_ar[$key])){ $bind_ar[$key] = $bind_ar[$key]->getId(); }\n\t\t\t\t// bindovani large objektu\n\t\t\t\t// v podmince je zamerne $_typ=, aby doslo k priprazeni spravneho typu\n\t\t\t\tif((in_array($key,$options[\"blobs\"]) && $_type=OCI_B_BLOB) || (in_array($key,$options[\"clobs\"]) && $_type=OCI_B_CLOB)){\n\t\t\t\t\t$lobs[$key] = OCINewDescriptor($connection,OCI_D_LOB);\n\t\t\t\t\t$_stat = OCIBindByName($stmt,$key,$lobs[$key],-1,$_type);\n\t\t\t\t\tif(!$_stat){\n\t\t\t\t\t\t$this->_raiseDBError(\"bind of the >>$key<< with new descriptor failed\");\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t// bindovani normalnich hodnot\n\t\t\t\t$_stat = OCIBindByName($stmt,$key,$bind_ar[$key],-1);\n\t\t\t\tif(!$_stat){\n\t\t\t\t\t$this->_raiseDBError(\"bind of the >>$key<< with value >>$bind_ar[$key]<< failed\");\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// spusteni prikazu\n\t\tif($options[\"execute_statement\"]){\n\n\t\t\t$_stat = OCIExecute($stmt,$options[\"mode\"]);\n\t\t\tif(!$_stat){\n\t\t\t\t$this->_raiseDBError(\"the execution of the SQL query failed\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\t// ulozeni obsahu large objectu\n\t\t\tforeach(array_keys($lobs) as $key){\t\n\t\t\t\tif(strlen($bind_ar[$key])>0){\n\t\t\t\t\t$lob = &$lobs[$key];\n\t\t\t\t\t// PHP4 nezna metody write();\n\t\t\t\t\t$_stat = method_exists($lob,\"write\") ? $lob->write($bind_ar[$key]) : $lob->save($bind_ar[$key]);\n\t\t\t\t\tif(!$_stat){\n\t\t\t\t\t\t$this->_raiseDBError(\"can't save lob data into $key: \".$this->_getDbLastErrorMessage());\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $stmt;\n\t}", "title": "" }, { "docid": "2b2c2e0d677b4403c4fe2d87fc1e6558", "score": "0.60721505", "text": "public function query();", "title": "" }, { "docid": "2b2c2e0d677b4403c4fe2d87fc1e6558", "score": "0.60721505", "text": "public function query();", "title": "" }, { "docid": "2b2c2e0d677b4403c4fe2d87fc1e6558", "score": "0.60721505", "text": "public function query();", "title": "" }, { "docid": "2b2c2e0d677b4403c4fe2d87fc1e6558", "score": "0.60721505", "text": "public function query();", "title": "" }, { "docid": "2b2c2e0d677b4403c4fe2d87fc1e6558", "score": "0.60721505", "text": "public function query();", "title": "" }, { "docid": "2b2c2e0d677b4403c4fe2d87fc1e6558", "score": "0.60721505", "text": "public function query();", "title": "" }, { "docid": "63c7ef9d576c7462ec7ddb4a0e28d2e1", "score": "0.6054805", "text": "public function prepareQuery();", "title": "" }, { "docid": "add710f2e33b356035aa7f974dcc4a28", "score": "0.6042077", "text": "function query() {\n // $this->ensure_my_table();\n // Add the field.\n // $this->field_alias = $this->query->add_field($this->table_alias, $this->real_field);\n // $this->add_additional_fields();\n \n $this->field_alias = $this->real_field;\n }", "title": "" }, { "docid": "92b3cbccdb7f7b634d103cc39312d55f", "score": "0.60280824", "text": "public function ejecutarsql($consulta) {\n //parent::__construct(\"sql308.0fees.us\", \"0fe_15924545\", \"asde71.4\", \"0fe_15924545_manual\");\n parent::__construct(\"db4free.net\", \"usuario\", \"usuario\", \"basededatos\", 3307);\n parent::query(\"SET NAMES 'utf8'\");\n $retorno = parent::query($consulta);\n parent::close();\n return $retorno;\n }", "title": "" }, { "docid": "4e5b1c165598bfa2ac9a473292354142", "score": "0.6007788", "text": "public function getQuery($query){\n\n\t return $this->EjecutarConsulta($query);\n\t }", "title": "" }, { "docid": "10d49c1d0c6b730f9ca2cd2ac5b3db51", "score": "0.6004879", "text": "abstract protected function _initSelectQuery();", "title": "" }, { "docid": "4496f9124dffead7cb66a98dd8b69798", "score": "0.6001932", "text": "final public function prepareQuery() {}", "title": "" }, { "docid": "78f14d613ed0218740c5015dc2efee20", "score": "0.6000896", "text": "function ejecutaConsulta2($sql)\n{\n\n\t\t$miconexion=connectDB();\n\t\t$resultset= $miconexion->query($sql);\n\t\treturn $resultset->fetchColumn();\n\n}", "title": "" }, { "docid": "43fc773018cd290bec6f936ee4291f0e", "score": "0.5973096", "text": "function consultarPreinscripciones($datosEstudiante) {\r\n $cadena_sql=$this->sql->cadena_sql(\"consultarPreinscripciones\",$datosEstudiante);//echo $cadena_sql;exit;\r\n return $registroMaximo=$this->ejecutarSQL($this->configuracion,$this->accesoOracle,$cadena_sql,\"busqueda\" );\r\n\r\n }", "title": "" }, { "docid": "35ad0809b76db80c867616120c3cdb03", "score": "0.5965261", "text": "public function consulta($consulta){\r\n $resultado = $this->conexion->query($consulta); \r\n \r\n\t if(!$resultado){ \r\n\t\t echo 'ERROR EN CONSULTA MYSQL: ' . mysqli_connect_error(); \r\n\t\t exit; \r\n\t\t } \r\n\t\t return $resultado; \r\n }", "title": "" }, { "docid": "f0e068fff3cb21c876083171b93ca233", "score": "0.59480447", "text": "public function execProcedure()\n\t{\n\t\t$this->resultSet = $this->dbResource->queryMySql($this->strSqlQuery,'executar',$this->getFetchType());\t\t\n\t}", "title": "" }, { "docid": "3c8b505b937a0b5da0887dd433aa9677", "score": "0.594491", "text": "function consulta($Conexion_ID, $Where = \"\"){\r\n\r\n $SQL = \"SELECT id, sdescripcion FROM tipo_operacion WHERE \";\r\n\r\n if (!empty($Where)) {\r\n\r\n $SQL .= $Where;\r\n }\r\n\r\n print $SQL;\r\n\r\n//ejecutamos la consulta\r\n\r\n $this->Consulta_ID = @mysql_query($SQL, $Conexion_ID);\r\n\r\n if (!$this->Consulta_ID) {\r\n\r\n $this->Errno = mysql_errno();\r\n\r\n $this->Error = mysql_error();\r\n\r\n }\r\n\r\n/* Si hemos tenido éxito en la consulta devuelve el identificador de la conexión, sino devuelve 0 */\r\n\r\n return $this->Consulta_ID;\r\n\r\n}", "title": "" }, { "docid": "5c1fce0c2260df5881f772c0b52c7429", "score": "0.594036", "text": "public function readAll(){\n $q=\"select * from autores order by apellidos\";\n $stmt=parent::$conexion->prepare($q);\n try{\n $stmt->execute();\n }catch(PDOException $ex){\n die(\"Error al recuperar Todos los contactos: \".$ex->getMessage());\n }\n parent::$conexion=null; //cerramos la conexion\n return $stmt;\n\n\n }", "title": "" }, { "docid": "5aea709c6f96767aea24ede99bbf060c", "score": "0.592808", "text": "public function executeQuery()\r\n {\r\n if(empty($this->preparedStatement) || empty($this->preparedStatement->execute()))\r\n {\r\n $logMessage = new \\Curator\\Application\\Log(__CLASS__, __METHOD__);\r\n $logMessage->saveError(LANG\\ERROR_EXECUTE);\r\n }\r\n }", "title": "" }, { "docid": "24563604795121aece13169a23989415", "score": "0.5923968", "text": "public function makeQuery() {\n\t\t$this->query = $this->modx->newQuery($this->config['class']);\n\t\t$this->addTime('xPDO query object created');\n\t}", "title": "" }, { "docid": "7385fe4a004077e11d471334e5a64585", "score": "0.59237736", "text": "public function consultar($cedula){\n\t\t $this->objDatos->conectar();\n\t $sql = \"SELECT * FROM funcionario WHERE cedula='$cedula'\";\n\t $this->objDatos->ejecutar($sql);\n\t\t $this->objDatos->desconectar();\n\t\t \n\t\t \n\t \t return;\n \t}", "title": "" }, { "docid": "d51b10b430e8e075f59494b549117da2", "score": "0.5922003", "text": "public function applyQuery();", "title": "" }, { "docid": "895c49e48b4e2f47d03f71aa9958afee", "score": "0.5921105", "text": "function execute() {\r\n\t\t$masterSql = \"\";\r\n\t\tswitch ( $this->queryType ) {\r\n\t\t\r\n\t\t\tcase \"search\";\r\n\t\t\t\t$sql = $this->select();\r\n\t\t\t\t$this->tableName = $this->tableName.\"Search\";\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase \"select\":\r\n\t\t\t\t$sql = $this->select();\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase \"insert\":\r\n\t\t\t\t$sql = $this->insert();\r\n\t\t\t\t$masterSql = \"insert into masterID ( object_ID, tableName, authoroid ) \";\r\n\t\t\t\t$masterSql .= \"values ( '\".$this->object_ID.\"', '\".\r\n\t\t\t\t $this->tableName.\"', '\".$_REQUEST['authoroid'].\"' )\";\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase \"delete\":\r\n\t\t\t\t$sql = $this->delete();\r\n\t\t\t\t$masterSql = \"delete from masterid where object_ID = '\".$this->object_ID.\"'\";\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase \"update\":\r\n\t\t\t\t$sql = $this->update();\r\n\t\t\t\t$masterSql = \"update masterid set entryDate = '\".date('Y-m-d H:i:s').\r\n\t\t\t\t\t \"' where object_ID = '\".$this->object_ID.\"'\";\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\tif ( strlen($masterSql) > 0 ) {\r\n\t\t\t$this->dataManager->manageMasterID($masterSql);\r\n\t\t}\r\n\t\t$this->dataManager->testDescription($this->dataManager->scrub($sql));\r\n\t\t$result = $this->dataManager->execute($sql);\r\n\t\treturn $result;\r\n\t}", "title": "" }, { "docid": "c88afbe71b8771b5594a4fb62d6626e5", "score": "0.59154624", "text": "private function query()\n\t{\n\t\ttry{\n\t\t\t$sql = $this->createSelectQuery();\n\t\t\t$stmt = $this->conn->prepare($sql);\n\t\t\t$stmt->execute();\n\t\t\t$stmt->setFetchMode(PDO::FETCH_ASSOC);\n\t\t\t$this->flushValues();\n\t\t\treturn $stmt->fetchAll(); \n\t\t}\n\t\tcatch(Exception $e){\n\t\t\techo $e->getMessage();\n\t\t\texit;\n\t\t}\n\t}", "title": "" }, { "docid": "83e3ccf1366fea5494c9b039feece296", "score": "0.59005636", "text": "public abstract function ejecutar($sql);", "title": "" }, { "docid": "1fa02dce943712dba6a8e75cc26ffdbd", "score": "0.5883795", "text": "public function query( $sql ) {\r\n //Prepara uma consulta sql\r\n $this->stmt = $this->dbh->prepare( $sql );\r\n }", "title": "" }, { "docid": "96c40db9f6aa139ceddb93bd229f3548", "score": "0.5875318", "text": "public function selectQuery();", "title": "" }, { "docid": "131da0869669e65349d3f93af4053644", "score": "0.5862461", "text": "public function constructQuery();", "title": "" }, { "docid": "c8b794706d9351d3e56bc4b41b904ab5", "score": "0.58508617", "text": "function read(){\n \n // select all query\n $query = \"SELECT * FROM \".$this->table_name.\" WHERE `empresa_id` = 1 \";\n \n // prepare query statement\n $stmt = $this->conn->prepare($query);\n \n // execute query\n $stmt->execute();\n \n return $stmt;\n }", "title": "" }, { "docid": "fad844af05740812c92ddf734375e77b", "score": "0.5835876", "text": "function Execute()\n\t{\n\t\tif (!$this->DBAL) return;\n\t\tif (func_num_args () >= 1)\n\t\t{\n\t\t\t$args = func_get_args ();\n\t\t\tcall_user_func_array ( array (\n\t\t\t\t$this, \"Bind\" \n\t\t\t), $args );\n\t\t}\n\t\t$this->DBAL->QueryCount += 1;\n\t\t\n\t\t$this->DBAL->QueryTimeIn ();\n\t\t$this->Statement->execute ();\n\t\t$this->DBAL->QueryTimeOut ();\n\t\t//$this->Statement->store_result();\n\t\n\n\t}", "title": "" }, { "docid": "d6e1f28be724b42ea1052c85d6355f78", "score": "0.5833345", "text": "function executerequest($replace, $param = array())\n{\n //param2 = associations des élements de mon formulaire à ma table\nif(!empty($param)){\nforeach($param as $name=>$value){\n$param[$name]=htmlspecialchars($value);\n}\n}//1: filtrer les caractere speciaux pour eviter les injections de code\n\nglobal $pdo;// recuperer ma connection à ma base\n$result = $pdo->prepare($replace);\n$success = $result->execute($param);//2: éxecuté la requete\nvar_dump($pdo->errorInfo());\nif($success){\nreturn $result;\n}else{\nreturn false;\n}//3: si ca marche: youpiiii!!!!\n}", "title": "" }, { "docid": "5f8e1616898b88bf4781586860bf0935", "score": "0.5831778", "text": "public static function query()\n {\n }", "title": "" }, { "docid": "6af054627b4b9d0226655a07acd729f1", "score": "0.58236265", "text": "function DoQuery()\n {\n parent::DoQuery();\n }", "title": "" }, { "docid": "a44dbacd85f73daadf6e94c92c884f59", "score": "0.58227265", "text": "abstract protected function constructQuery();", "title": "" }, { "docid": "c4bd027c1d7d2bb2a847093011de9311", "score": "0.58019274", "text": "function consultar($id, $resultType = \\Application\\Constants\\ResultType::OBJETO)\n\t{\n\t\t$ParametrizarDAO = new ParametrizarDAO();\n\t\t$ParametrizarDAO->setEntityManager($this->getEntityManager());\n\t\t$reg = $ParametrizarDAO->consultar($id, $resultType);\n\t\treturn $reg;\n\t}", "title": "" }, { "docid": "c076b0a0689627adecc53ddbf555f815", "score": "0.5798498", "text": "public function query()\n\t{\n\t\techo \"Running query on database conenction...<br />\\n\";\n\t}", "title": "" }, { "docid": "20e80a64fc883dc6259c54630c886c30", "score": "0.5794632", "text": "function ejecutaConsulta($busqueda){\n require(\"configConexion.php\");\n\n //Recogida de parametros\n //$busqueda=$_POST[\"buscar\"];\n //conexion\n $conexion=mysqli_connect($db_host, $db_usuario, $db_pass, $db_nombre) or die(\"No se pudo conectar al servidor: \".mysqli_error());\n if (mysqli_connect_errno()){\n echo \"Error de conexión al servidor\";\n exit(); //Finalizar la ejecución de codigo pHp\n }\n mysqli_set_charset($conexion,\"utf8\");\n //query\n //$consulta=\"select * from productos where PAÍSDEORIGEN LIKE '%\" .$busqueda .\"%'\";\n $consulta=\"SELECT CÓDIGOARTÍCULO, SECCIÓN, NOMBREARTÍCULO, PRECIO, FECHA from productos where PAÍSDEORIGEN = ?\";\n echo \"$consulta<br><br>\";\n //$result=mysqli_query($conexion,$consulta);\n\n $result=mysqli_prepare($conexion,$consulta);\n \n if (!$result){\n echo \"Error en la consulta\";\n var_dump(mysqli_error($conexion));\n }\n else\n {\n //parametros\n // Si el tipo de dato del parámetro fuera un entero pondríamos una \"i\" y si fuera decimal una \"d\"\n mysqli_stmt_bind_param($result, \"s\", $busqueda);\n mysqli_stmt_execute($result);\n mysqli_stmt_store_result($result); \n //$contador=mysqli_stmt_affected_rows($result); //Para insert, update, delete\n $contador=mysqli_stmt_num_rows($result); //Para select\n $ok=mysqli_stmt_bind_result($result,$codigo,$seccion,$nombre, $precio,$fecha);\n echo \"Articulos encontrados: $contador<br><br>\";\n echo \"<table style='border:1px solid black;collapse:collapsed'>\";\n echo \"<tr><th>Código</th><th>Sección</th><th>Nombre </th><th>Precio </th><th>Fecha</th></tr>\";\n while (mysqli_stmt_fetch($result)){ \n echo \"<tr><td> $codigo </td><td> $seccion </td><td> $nombre </td><td> $precio </td><td> $fecha </td></tr>\";\n }\n echo \"</table>\";\n }\n // Liberar resultados\n /* cerrar sentencia */\n mysqli_stmt_close($result);\n // Cerrar la conexión\n mysqli_close($conexion);\n }", "title": "" }, { "docid": "68ffe88c28b2c6e79cc1114f59f338eb", "score": "0.57932454", "text": "public function listar(){\n // vamos criar uma variavel para guardar \n // a string da consulta do sql \n $query = \"Select * from produtos\";\n\n //preparar a execução da consulta \n // A Variavel stmt(Statement(contexto)) irá guardar \n // o resultado da execução da consulta\n\n $stmt = $this->conn->prepare($query);\n\n //vamos executar efetivamente a consulta\n $stmt->execute();\n\n //retornar os dados que foram selecionados\n\n return $stmt;\n}", "title": "" }, { "docid": "4257f6fb8928f92f78cb73c7ad0df035", "score": "0.5790577", "text": "function consultarDatosProyecto($cod_proyecto){\r\n $cadena_sql=$this->sql->cadena_sql($this->configuracion,$this->accesoOracle,\"datos_proyecto\", $cod_proyecto);\r\n return $resultado_est=$this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql,\"busqueda\");\r\n\r\n }", "title": "" }, { "docid": "93a2f293e359f0c234715bac19c1f68d", "score": "0.57847273", "text": "public function exec(){\n\t\t$fullStatement = $this->selectStatement . ' ' . $this->whereStatement . $this->otherStatements . ';';\n\t\t$result = $this->dbHandler->executeSelect($fullStatement, $this->whereArguments);\n\n\t\t//echo $fullStatement;\n\t\t//var_dump($this->whereArguments);\n\n\t\t$this->selectStatement = '';\n\t\t$this->whereStatement = '';\n\t\t$this->otherStatements = '';\n\t\t$this->whereArguments = null;\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "b67943b535805377d8b84f06af4f7b77", "score": "0.5776249", "text": "public function query() {}", "title": "" }, { "docid": "a3e00c1374c3182bd6b1cd266667eb5a", "score": "0.5729734", "text": "protected function executeQuery() {\n\n\t Log::debug('BaseModelController::executeQuery ' . $this->sql);\n\t \t return ORM::query($this->sql);\n\t }", "title": "" }, { "docid": "fcc98c29b60dfa594e96d7e6c259b74b", "score": "0.5728953", "text": "public function execute(){}", "title": "" }, { "docid": "3110cf912036d18dc1b441dd3ebdad3d", "score": "0.57258284", "text": "function ejecutar_sql($query,$lista_parametros=\"\",$ConexionBD=\"\",$ReplicaRecursiva=1,$EvitarLogSQL=0)\n { echo \"ERROR: Llamado a funcion obsoleta del framework ejecutar_sql(). En su lugar utilice PCO_EjecutarSQL() \"; }", "title": "" }, { "docid": "12945c2df1f6cecb4fdbc12d848579bd", "score": "0.5724775", "text": "public function showDataProc($id= null) \n{ \n try{\n$sql =\"SELECT * FROM pps\";\n \nif($id != NULL)\n{\n$sql.=\" WHERE idp_pps = ?\";\n}\n $consulta = $this->con->prepare($sql); \n \n if($id != NULL) //Si llega un id en especial se hace la asingacion del orden\n {\n $consulta->bindParam(1,$id);\n }\n \n $consulta->execute();\n $this->con=NULL;//cierra la conexion\n if($consulta->rowCount()>0)//mostrar o no el resultado de la consulta\n {\n return $consulta;\n }else{\n return false;\n }\n \n }catch(PDOException $e){//mensaje de error en caso de fallo\n print \"Error: \".$e->getMessage(); \n }\n}", "title": "" }, { "docid": "9051eb3da10edc98a9799dc8b213c668", "score": "0.5724249", "text": "private function obtener_consulta_datatable() {\n $this->db->from($this->table);\n $i = 0;\n foreach ($this->column_search as $item) { // Columna\n if ($_POST['search']['value']) { // Si el datatable envia Post para busqueda\n if ($i === 0) { // Primer Ciclo\n $this->db->group_start();\n $this->db->like($item, $_POST['search']['value']); // Si la busqueda completa \n } else {\n $this->db->or_like($item, $_POST['search']['value']); // Si la busqueda por fragmento\n }\n if (count($this->column_search) - 1 == $i) //last loop\n $this->db->group_end(); //cierre bracket\n }\n $i++;\n }\n\n if (isset($_POST['order'])) { // Aqui se procesa la orden\n $this->db->order_by($this->column_order[$_POST['order']['0']['column']], $_POST['order']['0']['dir']);\n } else if (isset($this->order)) {\n $order = $this->order;\n $this->db->order_by(key($order), $order[key($order)]);\n }\n }", "title": "" }, { "docid": "a0e5413c2aee4c4b6f2aebd32dd407df", "score": "0.57172114", "text": "public function ejecutarConsulta($sql = \"\",$values = array()){\n\t\tif($sql != \"\"){\n\t\t\t$consulta = $this->conexion->prepare($sql);\n\t\t\t$consulta->execute($values);\n\t\t\t$tabla_datos = $consulta->fetchAll(PDO::FETCH_ASSOC);\n\t\t\treturn $tabla_datos;\n\t\t}else{\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "6bf61e41d0a03a438c6ce2be45db0da9", "score": "0.57041854", "text": "function read(){\n \n // select all query\n $query = \"SELECT * FROM `facturas` WHERE `empresa_id` = 1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare($query);\n \n // execute query\n $stmt->execute();\n \n return $stmt;\n }", "title": "" }, { "docid": "0df30d69dc84e5a532e6dc74d632f5ba", "score": "0.5702628", "text": "public function fillData()\n {\n $this->OpenConnect(); \n $sql=\"CALL spLibrosById(\".$this->getId().\")\";\n \n $result=$this->link->query($sql);\n while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) \n {\n $this->setTitulo($row['titulo']);\n $this->setAutor($row['autor']);\n $this->setNumPag($row['numPag']);\n $this->setIdEditorial($row['idEditorial']); \n }\n mysqli_free_result($result); \n $this->CloseConnect();\n }", "title": "" }, { "docid": "24965567365050ac66d7db3b6c656de7", "score": "0.5699689", "text": "function executeQuery($query)\n{\n\n\t\n\n}", "title": "" }, { "docid": "02126d87b524533ec5dd49addc5873f7", "score": "0.569773", "text": "public function executeSqlQuery() {\n\t\t$this->result = $this->sqlConn->query($this->sqlString);\n\t}", "title": "" }, { "docid": "c6b94d48e7dbb053c614d4d29cbda830", "score": "0.5697086", "text": "public function consulta($sql = \"\", $show = 0, $objectQueLlama = \"\") {\n if ($show != 0)\n echo \"sql=$sql <br>\";\n\n if ($sql == \"\") {\n $this->Error = \"No ha especificado una consulta SQL\";\n return 0;\n }\n //ejecutamos la consulta\n //\techo \"Ejecuta consulta -- $sql <br />\";\n //if ($sql==\"SELECT table1.site_title2,table1.meta_description2,table1.meta_keywords2 FROM st_adm_siteconf AS table1\") $sql=\"SELECT table1.site_title2,table1.meta_description2,table1.meta_keywords2 FROM st_adm_siteconfa AS table1\";\n $this->Consulta_ID = mysql_query($sql, $this->Conexion_ID);\n $this->sql = $sql;\n if (!$this->Consulta_ID) {\n $this->Errno = mysql_errno();\n $this->Error = mysql_error();\n }\n if ($objectQueLlama != \"\") {\n if (strlen(trim($this->Error)) > 0) {\n $id_log = $this->loglogreporting(30, \"super\", 1, \"0\", $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] . ' : An error ocurred when ' . $sql . ' was execute - ' . ereg_replace(\"'\", \" \", $this->Error) . '.', \"Error SQL\", \"0\", \"\", \"\", \"Espanol\");\n if ($id_log == 0) {\n $form_cliente = WebPage::EnviaMail($title, '[HANSA] Log error', \"gaston@enbolivia.com\", $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] . ' : An error ocurred when ' . $sql . ' was execute - ' . ereg_replace(\"'\", \" \", $this->cn->Error) . '.', \"\"); //mail a usuari\n }\n $this->showErrorMessage('An error ocurred : ' . $id_log . '.', $objectQueLlama);\n }\n }\n /* Si hemos tenido éxito en la consulta devuelve \n el identificador de la conexión, sino devuelve 0 */\n return $this->Consulta_ID;\n }", "title": "" }, { "docid": "a90965d5b4c31a466347082866e20c84", "score": "0.5695606", "text": "abstract public function Query();", "title": "" }, { "docid": "ba5085a37581e35b58ed3629efc30113", "score": "0.5694844", "text": "public function query()\n {\n }", "title": "" }, { "docid": "6e5f6798f908bf3f881f0e4dfffab902", "score": "0.56932753", "text": "abstract protected function runQuery();", "title": "" }, { "docid": "473cffeb869d0fca2634421cbe26d23d", "score": "0.5690682", "text": "public function consultar($valor){\r\n $oRhIesBD = new RhIesBD();\r\n return $oRhIesBD->consultar($valor);\r\n }", "title": "" }, { "docid": "2cd09708eead9f611a40427f756ade14", "score": "0.5684131", "text": "public function executeQuery(SelectQueryInterface $query);", "title": "" }, { "docid": "1b6e833d103303c638bfce6977580dfe", "score": "0.56756324", "text": "Public function Query($query,&$datos){\n $consulta = $this->conexion->prepare($query);\n if($datos !== null){ \n if(!$this->VerificarArray($datos)) die('Parametros incorrectos para este metodo'); \n $c=1;\n foreach($datos as &$valor){ \n $consulta->bindParam($c, $valor);\n $c++;\n } \n return $consulta->execute(); \n }else{\n die('Parametros incorrectos para este metodo');\n } \n }", "title": "" }, { "docid": "2b725e615fcda728770d6154bbae9bae", "score": "0.5674861", "text": "function consultarDatosEstudiante($codEstudiante) {\r\n $cadena_sql = $this->sql->cadena_sql(\"consultaEstudiante\", $codEstudiante);\r\n return $registroEstudiante = $this->ejecutarSQL($this->configuracion, $this->accesoMyOracle, $cadena_sql, \"busqueda\");\r\n }", "title": "" }, { "docid": "c18ed923a8c3444385cbb466b36de7c1", "score": "0.56720394", "text": "function search(){\r\n $stmt = $this->conn->prepare(\"SELECT * FROM alocacao ORDER BY dataAlocacao\");\r\n $stmt->execute();\r\n return $stmt;\r\n}", "title": "" }, { "docid": "6048ed57a07538ff6d0abc87c5a734b1", "score": "0.5662534", "text": "protected function prepareExecute()\n\t{\n\t\tparent::prepareExecute();\n\t}", "title": "" }, { "docid": "eb63785121c7937e090fbbced51d30eb", "score": "0.5657463", "text": "function listarConsulta()\n {\n $this->procedimiento = 'rec.ft_reclamo_sel';\n $this->transaccion = 'REC_CONSULTA_SEL';\n $this->tipo_procedimiento = 'SEL';//tipo de transaccion\n //$this->setCount(false);\n //Definicion de la lista del resultado del query\n $this->captura('id_reclamo', 'int4');\n $this->captura('id_tipo_incidente', 'int4');\n $this->captura('id_subtipo_incidente', 'int4');\n $this->captura('id_medio_reclamo', 'int4');\n $this->captura('id_funcionario_recepcion', 'int4');\n $this->captura('id_funcionario_denunciado', 'int4');\n $this->captura('id_oficina_incidente', 'int4');\n $this->captura('id_oficina_registro_incidente', 'int4');\n $this->captura('id_proceso_wf', 'int4');\n $this->captura('id_estado_wf', 'int4');\n $this->captura('id_cliente', 'int4');\n $this->captura('estado', 'varchar');\n $this->captura('fecha_hora_incidente', 'timestamp');\n $this->captura('nro_ripat_att', 'int4');\n $this->captura('nro_hoja_ruta', 'int4');\n $this->captura('fecha_hora_recepcion', 'timestamp');\n $this->captura('estado_reg', 'varchar');\n $this->captura('fecha_hora_vuelo', 'timestamp');\n $this->captura('origen', 'varchar');\n $this->captura('nro_frd', 'varchar');\n $this->captura('correlativo_preimpreso_frd', 'int4');\n $this->captura('fecha_limite_respuesta', 'date');\n $this->captura('observaciones_incidente', 'text');\n $this->captura('destino', 'varchar');\n $this->captura('nro_pir', 'int4');\n $this->captura('nro_frsa', 'int4');\n $this->captura('nro_att_canalizado', 'int4');\n $this->captura('nro_tramite', 'varchar');\n $this->captura('detalle_incidente', 'text');\n $this->captura('pnr', 'varchar');\n $this->captura('nro_vuelo', 'varchar');\n $this->captura('id_usuario_reg', 'int4');\n $this->captura('fecha_reg', 'timestamp');\n $this->captura('usuario_ai', 'varchar');\n $this->captura('id_usuario_ai', 'int4');\n $this->captura('fecha_mod', 'timestamp');\n $this->captura('id_usuario_mod', 'int4');\n $this->captura('usr_reg', 'varchar');\n $this->captura('usr_mod', 'varchar');\n $this->captura('id_gestion', 'int4');\n $this->captura('id_motivo_anulado', 'int4');\n $this->captura('desc_nombre_medio', 'varchar');\n $this->captura('desc_nom_cliente', 'text');\n $this->captura('desc_nombre_incidente', 'varchar');\n $this->captura('desc_nombre_oficina', 'varchar');\n $this->captura('desc_oficina_registro_incidente', 'varchar');\n $this->captura('desc_sudnom_incidente', 'varchar');\n $this->captura('desc_nombre_funcionario', 'text');\n $this->captura('desc_nombre_fun_denun', 'text');\n $this->captura('revisado', 'varchar');\n $this->captura('transito', 'varchar');\n $this->captura('motivo_anulado', 'varchar');\n $this->captura('nro_guia_aerea', 'varchar');//\n //$this->captura('nombre_cargo', 'varchar');\n $this->captura('nombre_completo2', 'text');\n $this->captura('nro_cite', 'varchar');\n\n $this->setParametro('id_usuario', 'id_usuario', 'int4');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n //echo $this->consulta;exit;\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "title": "" }, { "docid": "a53124f553a93d5676048270082ad365", "score": "0.56498337", "text": "function consultaPorEstudiante($configuracion,$tema,$acceso_db)\r\n {\r\n\r\n\r\n $this->formularioConsultaHorario($configuracion,$tema, $acceso_db);\r\n\r\n /* #Consulta la informacion general del Plan de Estudios\r\n #$id es el id_carrera\r\n $this->cadena_sql=$this->sql->cadena_sql($configuracion,\"buscar_id\",$id);\r\n $registroPlan=$this->accesoGestion->ejecutarAcceso($this->cadena_sql,\"busqueda\");\r\n $this->mostrarDatosEstudiante($configuracion,$tema,$registroPlan);\r\n\r\n #Consulta los Espacios Academicos del plan de estudios\r\n $this->cadena_sql=$this->sql->cadena_sql($configuracion,\"consultaEspaciosPlan\",$id);\r\n $registroEspaciosPlan=$this->accesoGestion->ejecutarAcceso($this->cadena_sql,\"busqueda\");\r\n $totalEspacios=$this->accesoGestion->obtener_conteo_db($registroEspaciosPlan);\r\n\r\n #Muestra los niveles de un plan de estudios\r\n $this->mostrarHorarioEstudiante($configuracion,$tema,$registroEspaciosPlan,$totalEspacios);\r\n*/\r\n\r\n }", "title": "" }, { "docid": "c5cce824ee935b8add67bd58e49f926d", "score": "0.56422335", "text": "public function exec() {\n\t\t$dbConn = self::getDbConn();\n\t\t$this->result = $dbConn->query($this->sql);\n\n\t\t$this->numAffectedRows = $dbConn->affected_rows;\n\t\t$this->lastId = $dbConn->insert_id;\n\n\t\t$dbConn->close();\n\t}", "title": "" }, { "docid": "6850311076bd2093a8a2f5c67048dda1", "score": "0.5640697", "text": "public function execute(){\n if(!($this->resource = mysql_query($this->sql, $this->conexion))){\n return null;\n }\n $this->queries++;\n return $this->resource;\n }", "title": "" }, { "docid": "03e4c04859039cd7bb3746e4d8265c7e", "score": "0.5640054", "text": "function executeQuery($sql = \"\"){\n\t\t// ejecuta consulta Mysql\n\t\t$this-> resultado = mysql_query ($sql , $this-> Conexion_ID ) or $this-> err ($this-> resultado ) or $this-> err ();\n\t\treturn ($this-> resultado );\n/*\t\nfunction ejecutar_consulta($sql = \"\"){\n\tif ($sql == \"\") {\n\t echo 'consulta:'.$sql;\n\t\t$this->Error = \"No ha especificado una consulta SQL\";\n\t\treturn 0;\n\t}\n//ejecutamos la consulta\n\t$this->consulta_ID = @mysql_query($sql, $this->Conexion_ID);\n\techo 'Resultado: '.$this->consulta_id;\n\tif (!$this->consulta_ID) {\n\t\t$this->Errno = mysql_errno();\n\t\t$this->Error = mysql_error();\n\t}\n\n/* Si hemos tenido �xito en la consulta devuelve el identificador de la conexi�n, sino devuelve 0 */\n//\treturn $this->consulta_id;\n\t}", "title": "" }, { "docid": "06ced5ff4b578ab462ca6f2ba8b81ce5", "score": "0.56348777", "text": "function consultaRecibo($datos) {\n $cadena_sql = $this->sql->cadena_sql(\"consultar_recibo\", $datos);\n return $resultado = $this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\n }", "title": "" }, { "docid": "788eed7ac6b629dc015b4b933c5a0a19", "score": "0.56328255", "text": "function execute()\n\t{\n\t\t// establish a new table object\n\t\t$this->obj_table = New table;\n\n\t\t$this->obj_table->language\t= $_SESSION[\"user\"][\"lang\"];\n\t\t$this->obj_table->tablename\t= \"cdr_rate_tables\";\n\n\n\t\t// define all the columns and structure\n\t\t$this->obj_table->add_column(\"standard\", \"rate_table_name\", \"\");\n\t\t$this->obj_table->add_column(\"standard\", \"name_vendor\", \"vendors.name_vendor\");\n\t\t$this->obj_table->add_column(\"standard\", \"rate_table_description\", \"\");\n\n\t\t// defaults\n\t\t$this->obj_table->columns\t\t= array(\"rate_table_name\", \"name_vendor\", \"rate_table_description\");\n\t\t$this->obj_table->columns_order\t\t= array(\"rate_table_name\");\n\t\t$this->obj_table->columns_order_options\t= array(\"rate_table_name\", \"name_vendor\");\n\n\t\t// define SQL structure\n\t\t$this->obj_table->sql_obj->prepare_sql_settable(\"cdr_rate_tables\");\n\t\t$this->obj_table->sql_obj->prepare_sql_addfield(\"id\", \"cdr_rate_tables.id\");\n\t\t$this->obj_table->sql_obj->prepare_sql_addjoin(\"LEFT JOIN vendors ON vendors.id = cdr_rate_tables.id_vendor\");\n\n\t\t// acceptable filter options\n\t\t$structure[\"fieldname\"] \t\t= \"searchbox\";\n\t\t$structure[\"type\"]\t\t\t= \"input\";\n\t\t$structure[\"sql\"]\t\t\t= \"(rate_table_name LIKE '%value%' OR rate_table_description LIKE '%value%')\";\n\t\t$this->obj_table->add_filter($structure);\n\t\n\t\t$structure\t\t\t\t= form_helper_prepare_dropdownfromdb(\"name_vendor\", \"SELECT id, code_vendor as label, name_vendor as label1 FROM vendors ORDER BY name_vendor ASC\");\n\t\t$structure[\"sql\"]\t\t\t= \"cdr_rate_tables.id_vendor='value'\";\n\t\t$structure[\"options\"][\"search_filter\"]\t= \"yes\";\n\t\t$this->obj_table->add_filter($structure);\n\n\n\t\t// load options\n\t\t$this->obj_table->load_options_form();\n\n\t\t// fetch all the service information\n\t\t$this->obj_table->generate_sql();\n\t\t$this->obj_table->load_data_sql();\n\n\t}", "title": "" }, { "docid": "0d2bf7425b9cc15a6919b4ca110def85", "score": "0.56240225", "text": "function query();", "title": "" }, { "docid": "b35e766a6bfcbb4de1f9ffdce98c785a", "score": "0.56221086", "text": "public function createQuery();", "title": "" }, { "docid": "b35e766a6bfcbb4de1f9ffdce98c785a", "score": "0.56221086", "text": "public function createQuery();", "title": "" }, { "docid": "deb10d649f6c27162233c7a30f4c505d", "score": "0.56218594", "text": "public function executeSelectQuery($query){\n //put this in a try catch...\n $results = $this->db->query($query);\n //returns a result set\n return $results;\n \n }", "title": "" }, { "docid": "83ef17f4c4c0d42a056b59a1859a8a3a", "score": "0.56206095", "text": "function consultar($sql, $param=null){\n\t\t$stm= $this->connection->prepare($sql);\n\t\tif(!is_null($param)){\n\t\t\tforeach ($param as $key => $value) {\n\t\t\t\t$stm->bindValue(':'.$key, $value);\n\t\t\t}\n\t\t}\n\t\t$stm->execute();\n\t\t$data = $stm->fetchAll();\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "a6614c5ff44eb30609c3f8996a3f6da2", "score": "0.5606896", "text": "function execute() {\r\n /*\r\n * Basic Information Table\r\n */\r\n $this->settableName('logAdvance');\r\n $this->setPrimaryKeyName('logAdvanceId');\r\n /*\r\n * All the $_POST enviroment.\r\n */\r\n if (isset($_POST ['logAdvanceId'])) {\r\n $this->setLogAdvanceId($this->strict($_POST ['logAdvanceId'], 'numeric'));\r\n }\r\n if (isset($_POST ['logAdvanceText'])) {\r\n $this->setLogAdvanceText($this->strict($_POST ['logAdvanceText'], 'numeric'));\r\n }\r\n if (isset($_POST ['logAdvanceType'])) {\r\n $this->setLogAdvanceType($this->strict($_POST ['logAdvanceType'], 'numeric'));\r\n }\r\n if (isset($_POST ['logAdvanceComparision'])) {\r\n $this->setComparision($this->strict($_POST ['logAdvanceComparision'], 'numeric'));\r\n }\r\n /*\r\n * All the $_GET enviroment \r\n */\r\n if (isset($_GET ['leafId'])) {\r\n\r\n $this->setLeafId($this->strict($_GET ['leafId'], 'numeric'));\r\n }\r\n /**\r\n * All the $_SESSION enviroment.\r\n */\r\n if (isset($_SESSION ['staffId'])) {\r\n $this->setExecuteBy($_SESSION ['staffId']);\r\n }\r\n /**\r\n * TimeStamp Value.\r\n */\r\n if ($this->getVendor() == self::MYSQL) {\r\n $this->setExecuteTime(\"'\" . date(\"Y-m-d H:i:s\") . \"'\");\r\n } else if ($this->getVendor() == self::MSSQL) {\r\n $this->setExecuteTime(\"'\" . date(\"Y-m-d H:i:s\") . \"'\");\r\n } else if ($this->getVendor() == self::ORACLE) {\r\n $this->setExecuteTime(\"to_date('\" . date(\"Y-m-d H:i:s\") . \"','YYYY-MM-DD HH24:MI:SS')\");\r\n }\r\n }", "title": "" }, { "docid": "f34d25f064f8fd17418d72e8d92496ad", "score": "0.55997586", "text": "public function select($impresora){\n $id=$impresora->getId();\n\n try {\n $sql= \"SELECT `id`, `marca`, `modelo`, `serial`, `tipoConector`, `ipImpresora`, `observacion`, `estado`, `cargo_id`\"\n .\"FROM `impresora`\"\n .\"WHERE `id`='$id'\";\n $data = $this->ejecutarConsulta($sql);\n for ($i=0; $i < count($data) ; $i++) {\n $impresora->setId($data[$i]['id']);\n $impresora->setMarca($data[$i]['marca']);\n $impresora->setModelo($data[$i]['modelo']);\n $impresora->setSerial($data[$i]['serial']);\n $impresora->setTipoConector($data[$i]['tipoConector']);\n $impresora->setIpImpresora($data[$i]['ipImpresora']);\n $impresora->setObservacion($data[$i]['observacion']);\n $impresora->setEstado($data[$i]['estado']);\n $cargo = new Cargo();\n $cargo->setId($data[$i]['cargo_id']);\n $impresora->setCargo_id($cargo);\n\n }\n return $impresora; } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n return null;\n }\n }", "title": "" }, { "docid": "4e9ecf6a0b534d806666c092d60adede", "score": "0.5599547", "text": "public function execute()\n {\n $service = $this->getService();\n $context = $service->getOperationContext();\n $method = $context->incomingRequest()->getMethod();\n\n switch ($method) {\n case HTTPRequestMethod::GET():\n $this->executeGet();\n break;\n case HTTPRequestMethod::DELETE():\n $this->executeGet();\n $this->executeDelete();\n break;\n case HTTPRequestMethod::PUT():\n $this->executeGet();\n $this->executePut();\n break;\n case HTTPRequestMethod::POST():\n $this->executePost();\n break;\n default:\n throw ODataException::createNotImplementedError(Messages::onlyReadSupport($method));\n }\n\n // Apply $select and $expand options to result set, this function will be always applied\n // irrespective of return value of IDSQP2::canApplyQueryOptions which means library will\n // not delegate $expand/$select operation to IDSQP2 implementation\n $this->getExpander()->handleExpansion();\n }", "title": "" }, { "docid": "be34d1c95dad6202f99ffb51da8b916f", "score": "0.5597195", "text": "private function _query(){\n\t\t\t$this->handler = $this->factory->prepare($this->query_string, array(PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL));\n\n\t\t\treturn $this->handler;\n\t\t}", "title": "" }, { "docid": "9c764e248071fb9aa5c16740c5fc8950", "score": "0.5591798", "text": "public function query(){\n\n\t\t$this->view = 'index';\n\n\t\tGenerator::scaffold(&$this->form, $this->scaffold);\n\n\t\tif(!kumbia::is_model($this->source)){\n\t\t\tthrow new StandardFormException('No hay un modelo \"'.$this->source.'\" para hacer la operaci&oacute;n de consulta');\n\t\t\t$this->_create_model();\n\t\t\treturn $this->route_to('action: index');\n\t\t}\n\n\t\tif(isset($this->form['dataFilter'])) {\n\t\t\tif($this->form['dataFilter']){\n\t\t\t\t$dataFilter = $form['dataFilter'];\n\t\t\t} else {\n\t\t\t\t$dataFilter = \"1=1\";\n\t\t\t}\n\t\t} else {\n\t\t\t$dataFilter = \"1=1\";\n\t\t}\n\n\t\tif(!isset($this->form['joinTables'])) {\n\t\t\t$this->form['joinTables'] = \"\";\n\t\t\t$tables = \"\";\n\t\t} else {\n\t\t\tif($this->form['joinTables']) {\n\t\t\t\t$tables = \",\".$this->form['joinTables'];\n\t\t\t} else {\n\t\t\t\t$tables = \"\";\n\t\t\t}\n\t\t}\n\t\tif(!isset($this->form['joinConditions'])) {\n\t\t\t$this->form['joinConditions'] = \"\";\n\t\t\t$joinConditions = \"\";\n\t\t} else {\n\t\t\t$joinConditions = \"\";\n\t\t}\n\t\tif($this->form['joinConditions']) $joinConditions = \" and \".$this->form['joinConditions'];\n\n\t\t$modelName = kumbia::get_model_name($this->source);\n\n\t\tif(!$this->{$modelName}->is_dumped()){\n\t\t\t$this->{$modelName}->dump_model();\n\t\t}\n\n\t\t$query = \"select * from \".$this->form['source'].\"$tables where $dataFilter $joinConditions \";\n\t\t$source = $this->form['source'];\n\n\t\t$form = $this->form;\n\t\t$config = Config::read('environment.ini');\n\t\t$mode = $this->{$modelName}->get_mode();\n\t\tforeach($this->{$modelName}->attributes_names as $fkey){\n\t\t\tif(!isset($_REQUEST[\"fl_\".$fkey])){\n\t\t\t\t$_REQUEST[\"fl_\".$fkey] = \"\";\n\t\t\t}\n\t\t\tif(trim($_REQUEST[\"fl_\".$fkey])&&$_REQUEST[\"fl_\".$fkey]!='@'){\n\t\t\t\tif(!isset($form['components'][$fkey]['valueType'])){\n\t\t\t\t\t$form['components'][$fkey]['valueType'] = \"\";\n\t\t\t\t}\n\t\t\t\tif($form['components'][$fkey]['valueType']=='numeric'||$form['components'][$fkey]['valueType']=='date'){\n\t\t\t\t\tif($config->$mode->database->type!='oracle'){\n\t\t\t\t\t\t$query.=\" and $source.$fkey = '\".$_REQUEST[\"fl_\".$fkey].\"'\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif($form['components'][$fkey]['valueType']=='date'){\n\t\t\t\t\t\t\t$query.=\" and $source.$fkey = TO_DATE('\".$_REQUEST[\"fl_\".$fkey].\"', 'YYYY-MM-DD')\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$query.=\" and $source.$fkey = '\".$_REQUEST[\"fl_\".$fkey].\"'\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif($form['components'][$fkey]['type']=='hidden'){\n\t\t\t\t\t\t$query.=\" and $source.$fkey = '\".$_REQUEST[\"fl_\".$fkey].\"'\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif($form['components'][$fkey]['type']=='check'){\n\t\t\t\t\t\t\tif($_REQUEST[\"fl_\".$fkey]==$form['components'][$fkey]['checkedValue']){\n\t\t\t\t\t\t\t\t$query.=\" and $source.$fkey = '\".$_REQUEST[\"fl_\".$fkey].\"'\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif($form['components'][$fkey]['type']=='time'){\n\t\t\t\t\t\t\t\tif($_REQUEST[\"fl_\".$fkey]!='00:00'){\n\t\t\t\t\t\t\t\t\t$query.=\" and $source.$fkey = '\".$_REQUEST[\"fl_\".$fkey].\"'\";\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\tif(isset($form['components'][$fkey]['primary'])&&$form['components'][$fkey]['primary']){\n\t\t\t\t\t\t\t\t\t$query.=\" and $source.$fkey = '\".$_REQUEST[\"fl_\".$fkey].\"'\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$query.=\" and $source.$fkey like '%\".$_REQUEST[\"fl_\".$fkey].\"%'\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$this->query = $query;\n\n\t\t$_REQUEST['queryStatus'] = true;\n\t\t$_REQUEST['id'] = 0;\n\n\t\t$this->fetch(0);\n\n\t}", "title": "" }, { "docid": "6ece396d64a1278f51b0bc9783a52dde", "score": "0.5589375", "text": "private function read() {\n\t\tif (!empty($this -> _query))\n\t\t\t$this -> _query = ' WHERE ' . $this -> _query;\n\n\t\tif (!empty($this -> _order_field))\n\t\t\t$this -> _order_field = ' ORDER ' . $this -> _order_field . ' ' . $this -> _order_sort;\n\n\t\tif (!is_null($this -> _limit))\n\t\t\t$this -> _limit = ' LIMIT ' . $this -> _limit . ', ' . $this -> _limitQtd;\n\n\t\t$sql = 'SELECT ' . $this -> _campos . ' FROM `' . $this -> _table . '`' . $this -> _query . $this -> _order_field . $this -> _limit;\n\n\t\tif ($this -> _debug)\n\t\t\techo $sql;\n\n\t\tif ($result = parent::query($sql)) {\n\t\t\tif ($this -> _log) {\n\t\t\t\t$this -> logSql($sql);\n\t\t\t}\n\t\t\tif ($result -> num_rows) {\n\t\t\t\t$dados = new ArrayObject();\n\t\t\t\twhile ($row = $result -> fetch_assoc()) {\n\t\t\t\t\t$dados[] = $row;\n\t\t\t\t}\n\t\t\t\treturn $dados;\n\t\t\t}\n\t\t} else {\n\t\t\t$this -> _error = $this -> errno . ' ' . $this -> error . ' ' . $sql;\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "64019352fae1f4623e93839efaeb2315", "score": "0.5578161", "text": "function PCO_EjecutarSQL($query,$lista_parametros=\"\",$ConexionBD=\"\",$EvitarLogSQL=0)\n\t{\n\t\tif($ConexionBD==\"\")\n\t\t\tglobal $ConexionPDO;\n\t\telse\n\t\t\t$ConexionPDO=$ConexionBD;\n\n\t\tglobal $ModoDepuracion,$MotorBD;\n\t\tglobal $MULTILANG_ErrorTiempoEjecucion,$MULTILANG_Detalles,$MULTILANG_ErrorSoloAdmin,$MULTILANG_Archivo;\n\t\tglobal $PCO_Accion;\n\t\tglobal $PCOSESS_LoginUsuario,$_SeparadorCampos_,$DepuracionSQL;\n\n\t\t// Filtra la cadena antes de ser ejecutada\n\t\t$query=PCO_FiltrarCadenaSQL($query);\n\t\t\n\t\t//Agrega comentario al query con nombre del usuario si aplica\n\t\tif (@$PCOSESS_LoginUsuario!=\"\" && @$MotorBD==\"mysql\")\n\t\t $query=\"/*US={$PCOSESS_LoginUsuario}*/ \".$query;\n\n\t\ttry\n\t\t\t{\n\t\t\t\t$consulta = $ConexionPDO->prepare($query);\n\t\t\t\t//Cuando se reciben parametros entonces se asume recepcion de querys con interrogaciones ?\n\t\t\t\t//que deben ser preparados antes de ejecutarse con cada uno de los parametros recibidos\n\t\t\t\tif ($lista_parametros!=\"\")\n\t\t\t\t\t{\n\t\t\t\t\t\t$cantidad_parametros=substr_count($query,'?');\n\t\t\t\t\t\t$parametros=@explode($_SeparadorCampos_,$lista_parametros);\n\t\t\t\t\t\t// if ($cantidad_parametros!=count($parametros)) //La cantidad de parametros en query es diferente a los recibidos\n\t\t\t\t\t\t//Recorre cada parametro y toma su valor\n\t\t\t\t\t\tfor ($i=1;$i<=$cantidad_parametros;$i++)\n\t\t\t\t\t\t\t{\n /*\n //Si no recibe valor en el parametro hace el bind con vacio para al menos hacerlo valido\n if($parametros[$i-1] == \"\")\n $consulta->bindValue($i,''); // $consulta->bindValue($i,PDO::PARAM_NULL);\n else\n */\n $consulta->bindValue($i, $parametros[$i-1]);\n\t\t\t\t\t\t\t\t//echo 'Parametro '.$i.'='.$parametros[$i-1].\"<br>\"; //PARA DEPURACION\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t$consulta->execute();\n\n\t\t\t\t//Lleva el log a auditoria en caso de estar encendido\n\t\t\t\tif ($EvitarLogSQL==0)\n\t\t\t\t\tif ($DepuracionSQL==1)\n\t\t\t\t\t\tPCO_Auditar($query,\"SQLog:$PCOSESS_LoginUsuario\");\n\n\t\t\t\treturn $consulta;\n\t\t\t\t//return $consulta->fetchAll();\n\t\t\t}\n\t\tcatch( PDOException $ErrorPDO)\n\t\t\t{\n\t\t\t //Lleva el log de errores\n\t\t\t PCO_Auditar($query,\"SQLog:error\");\n\t\t\t $mensaje_final='';\n\t\t\t $detalles_conexion=' (CNX='.$ConexionPDO->getAttribute(PDO::ATTR_CONNECTION_STATUS).') ';\n\t\t\t\t//Muestra detalles del query solo al admin y si el modo de depuracion se encuentra activo\n\t\t\t\tif (PCO_EsAdministrador(@$PCOSESS_LoginUsuario))\n\t\t\t\t\t$mensaje_final.=$ErrorPDO->getMessage().'<br><b>'.$MULTILANG_Detalles.'</b>: '.@PCO_CompletarParametros($query,$parametros).$detalles_conexion.\"<br><b>$MULTILANG_Archivo</b>: \".$ErrorPDO->getFile().\" -> \".$ErrorPDO->getLine();\n\t\t\t\telse\n\t\t\t\t\t$mensaje_final.='<b>'.$MULTILANG_Detalles.'</b>: '.$detalles_conexion.$MULTILANG_ErrorSoloAdmin;\n\n\t\t\t\t//Presenta el mensaje sobre el HTML y como Emergente JS\n PCO_Mensaje($MULTILANG_ErrorTiempoEjecucion,$mensaje_final, '', 'fa fa-times fa-5x icon-red texto-blink', 'alert alert-danger alert-dismissible');\n\t\t\t\techo '<script type=\"\" language=\"JavaScript\"> alert(\"'.$MULTILANG_ErrorTiempoEjecucion.'\\\\n\\\\n'.$mensaje_final.'\");</script>';\n\t\t\t\t//Redirecciona segun la accion\n\t\t\t\tif ($PCO_Accion==\"Iniciar_login\")\n\t\t\t\t\techo '<form name=\"Acceso\" action=\"'.$ArchivoCORE.'\" method=\"POST\"><input type=\"Hidden\" name=\"PCO_Accion\" value=\"\"></form><script type=\"\" language=\"JavaScript\">\tdocument.Acceso.submit(); </script>';\n\t\t\t\treturn 1;\n\t\t\t}\n\t}", "title": "" } ]
eb1f96964a842242b9f8ad13240ace4b
Function to get the URL
[ { "docid": "ad1e8b4f82ab41d535342b82ad40427b", "score": "0.0", "text": "function show_Url ($options,$boxwidth,$boxheight) { \n //cObj wichtig für wrap\n $cObj = t3lib_div::makeInstance('tslib_cObj');\n $uid = $this->cObj->data['uid'];\n // Zufalsswert\n foreach ($this->config['url'] as $key=>$url) {\n \n $cssclass = 'option';\n $csswrap = $this->lconf['csswraptext'];\n // Only the first elemnt show\n if ($this->config['onlyfirstshow']==1) {\n $y++;\n if($y==1) {\n $cssclass = 'option';\n $csswrap = $this->lconf['csswraptext'];\n } else {\n $cssclass = 'hidden';\n $csswrap = '';\n }\n } elseif (intval($this->config['showmax'] > 0)) {\n $y++;\n if ($y <= intval($this->config['showmax'])) {\n $cssclass = 'option';\n } else {\n $cssclass = 'hidden';\n }\n }\n \n // make gallery\n if($this->config['gallery']==1) {\n $galleryid = $this->cObj->data['uid'];\n } else { \n $galleryid = $uid.'-'.$key;\n }\n \n $linkok = '<a rel=\"shadowbox['.$galleryid.'];'.$options.$boxwidth.$boxheight.'\" class=\"'.$cssclass.'\" title=\"'.$this->config['linkvalue'][$key].'\" href=\"'.$url.'\">'.$this->config['linkvalue'][$key].'</a>';\n $content.= $cObj->stdWrap($linkok,$csswrap);\n }\n return $content;\n }", "title": "" } ]
[ { "docid": "d9d99d743146a63558483de46d388cd7", "score": "0.8624874", "text": "function getURL ();", "title": "" }, { "docid": "aa2960af89b7ade87a9a2e1308c5e2fb", "score": "0.84811485", "text": "abstract public function getURL();", "title": "" }, { "docid": "811c4262e8979930adf861967dff2611", "score": "0.82489216", "text": "public function getURL(): string;", "title": "" }, { "docid": "2d97b75fb4739b35813c5431ec5dd383", "score": "0.8118299", "text": "public function getUrl();", "title": "" }, { "docid": "2d97b75fb4739b35813c5431ec5dd383", "score": "0.8118299", "text": "public function getUrl();", "title": "" }, { "docid": "2d97b75fb4739b35813c5431ec5dd383", "score": "0.8118299", "text": "public function getUrl();", "title": "" }, { "docid": "2d97b75fb4739b35813c5431ec5dd383", "score": "0.8118299", "text": "public function getUrl();", "title": "" }, { "docid": "2d97b75fb4739b35813c5431ec5dd383", "score": "0.8118299", "text": "public function getUrl();", "title": "" }, { "docid": "2d97b75fb4739b35813c5431ec5dd383", "score": "0.8118299", "text": "public function getUrl();", "title": "" }, { "docid": "2d97b75fb4739b35813c5431ec5dd383", "score": "0.8118299", "text": "public function getUrl();", "title": "" }, { "docid": "da95b6915674d6a302058cfbc3d29d9c", "score": "0.80693424", "text": "function getUrl();", "title": "" }, { "docid": "e6b74c299cb374017ca5da9fe24dab48", "score": "0.80020815", "text": "protected function getUrl(){\n return parse_url($_SERVER['REQUEST_URI'],PHP_URL_PATH);\n }", "title": "" }, { "docid": "9ef185d03fdbcc4a6e5bac9dbe3f58c9", "score": "0.7996855", "text": "public function url();", "title": "" }, { "docid": "9ef185d03fdbcc4a6e5bac9dbe3f58c9", "score": "0.7996855", "text": "public function url();", "title": "" }, { "docid": "9ef185d03fdbcc4a6e5bac9dbe3f58c9", "score": "0.7996855", "text": "public function url();", "title": "" }, { "docid": "9ef185d03fdbcc4a6e5bac9dbe3f58c9", "score": "0.7996855", "text": "public function url();", "title": "" }, { "docid": "9ef185d03fdbcc4a6e5bac9dbe3f58c9", "score": "0.7996855", "text": "public function url();", "title": "" }, { "docid": "a2d8fe3cf3f681116686155b38301258", "score": "0.7953396", "text": "public function get_url() {\n\t\treturn $this->url;\n\t}", "title": "" }, { "docid": "0407220603d38a71882a79bf97f4bb02", "score": "0.79248613", "text": "function getURL() \n\t{\n\t\treturn 'http://xx.nakahara21.net/'; \n\t}", "title": "" }, { "docid": "8434874b80f21c3a34d9d0d3c040228b", "score": "0.7917268", "text": "public function getRequestUrl();", "title": "" }, { "docid": "c724303aef5f6ec7476dfeb7c9d5c4ab", "score": "0.7908587", "text": "protected function getUrl()\n {\n $url = $this->path['url'];\n\n $uri = is_array($url) ? $url[0] : $url;\n $params = is_array($url) ? array_slice($url, 1) : null;\n\n if (Utils::isAbsoluteUrl($uri)) {\n return $uri;\n }\n\n return url($uri, $params);\n }", "title": "" }, { "docid": "f62078ce37cfd545390126657987529c", "score": "0.7907443", "text": "public function getUrl(){\r\n if (isset($_GET['url'])){\r\n \r\n //Cut the right spaces after slash\r\n $url = rtrim($_GET['url'],'/');\r\n \r\n //This will be read like url\r\n $url = filter_var($url, FILTER_SANITIZE_URL);\r\n \r\n //This function require one delimiter and the url (string)\r\n $url = explode('/', $url);\r\n \r\n return $url;\r\n } \r\n }", "title": "" }, { "docid": "36b2782ba1b7dcfa0ba04fac7d08e35a", "score": "0.7906925", "text": "public function getURL(){\n if(isset($_GET['url'])){\n $url = rtrim($_GET['url'],'/');\n $url = filter_var($url,FILTER_SANITIZE_URL);\n $url = explode('/',$url);\n return $url;\n }\n \n\n }", "title": "" }, { "docid": "43d3fdce4ec2d40bb325a1f2df967b9c", "score": "0.7888644", "text": "public function getUrl()\n\t{\n\t\treturn self::$baseUrl.$this->url;\n\t}", "title": "" }, { "docid": "0e695af1caf4ff18e29bbbbcd91957e2", "score": "0.7885691", "text": "public function url(): string\n {\n return $this->get(self::HTTP_URL);\n }", "title": "" }, { "docid": "4662d95963a627af6f03a8b513d7451a", "score": "0.7871198", "text": "public function getUrl()\n {\n /**\n * if it is set we will want to get rid of trailing /\n */\n if (isset($_GET['url'])) {\n $url = rtrim($_GET['url'], '/');\n $url = filter_var($url, FILTER_SANITIZE_URL);\n $url = explode('/', $url);\n return $url;\n }\n }", "title": "" }, { "docid": "49edc1b853a0900095641c7c7ba99b17", "score": "0.7869309", "text": "public function getUrl(){\n return parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);\n }", "title": "" }, { "docid": "ce69a819f79f1866066496ad1383dce9", "score": "0.7868869", "text": "public function getUrl()\n {\n if (isset($_GET['url'])) {\n // trim the url\n $url = rtrim($_GET['url'], '/');\n // sanatize the url\n $url = filter_var($url, FILTER_SANITIZE_URL);\n // trun into array\n $url = explode('/', $url);\n\n return $url;\n }\n }", "title": "" }, { "docid": "7dafc0a5706d7574c1b463c7e4f6e977", "score": "0.7867429", "text": "public function GetUrl () {\n\t\treturn $this->url;\n\t}", "title": "" }, { "docid": "846d6cc2f0bf3cef50ceb8472e038dce", "score": "0.7863505", "text": "abstract protected function getUrl();", "title": "" }, { "docid": "e43c9bfb3ca9d7486a427bf59cbf7714", "score": "0.7863213", "text": "public function getUrlO();", "title": "" }, { "docid": "a7903ac08f2f591b35767e1650736568", "score": "0.7858761", "text": "public function getURL()\n {\n return $this->get('URL');\n }", "title": "" }, { "docid": "a7903ac08f2f591b35767e1650736568", "score": "0.7858761", "text": "public function getURL()\n {\n return $this->get('URL');\n }", "title": "" }, { "docid": "25eb1c2dc5719043d8234aab3e268197", "score": "0.78540254", "text": "public function getUrl(){\n\t\t// Verificamos que URL contenga valores\n\t\tif(isset($_GET['url'])){\n\t\t\t// Sanitiza URL\n\t\t\t$url = rtrim($_GET['url'], '/'); // Elimina diagonales al final\n\t\t\t$url = filter_var($url, FILTER_SANITIZE_URL); // Elimina caracteres especiales\n\n\t\t\t// Separa valores de controlador, metodo y parametro (delimitados por /)\n\t\t\t$url = explode('/', $url);\n\t\t\treturn $url;\n\t\t}\n\t}", "title": "" }, { "docid": "1cf46ed2f8a097f3a943e26d6584f652", "score": "0.78479147", "text": "public function getURL()\n {\n if (is_string($this->url)) {\n return $this->url;\n }\n return \\mpf\\WebApp::get()->request()->createURL(isset($this->url[0]) ? $this->url[0] : 'home', isset($this->url[1]) ? $this->url[1] : null, (isset($this->url[2]) && is_array($this->url[2])) ? $this->url[2] : array(), isset($this->url[3]) ? $this->url[3] : ((isset($this->url[2]) && is_string($this->url[2])) ? $this->url[2] : null));\n }", "title": "" }, { "docid": "94ad1f7037d49b422445e04c215f62f9", "score": "0.78466547", "text": "function getUrl() {\n if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')\n $url = \"https://\";\n else\n $url = \"http://\";\n // Append the host(domain name, ip) to the URL.\n $url.= $_SERVER['HTTP_HOST'];\n\n // Append the requested resource location to the URL\n $url.= $_SERVER['REQUEST_URI'];\n\n return $url;\n }", "title": "" }, { "docid": "f9d6f7376d1622cc9cf26b72e930420e", "score": "0.784562", "text": "public static function url()\n\t{\n\t\t// HTTPs - protocol\n\t\t$protocol = Url::protocol();\n\t\t\n\t\t// :8080 - port\n\t\t$port = ($_SERVER[\"SERVER_PORT\"] === \"80\") ? \"\" : (\":\".$_SERVER[\"SERVER_PORT\"]);\n\t\t\n\t\t// Whole url HTTP:8080://something.com\n\t\t$url = $protocol . \"://\" . $_SERVER['HTTP_HOST'] . $port . $_SERVER['REQUEST_URI'];\n\t\t\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "7adea036c84396739941f0a29896420d", "score": "0.7836122", "text": "public function url(): string;", "title": "" }, { "docid": "7adea036c84396739941f0a29896420d", "score": "0.7836122", "text": "public function url(): string;", "title": "" }, { "docid": "a0cb19a4c6a6c852f90a5d410ec333e6", "score": "0.78135806", "text": "public function getUrl()\n {\n if (isset($_GET['url'])) {\n $url = rtrim($_GET['url'], '/');\n $url = filter_var($url, FILTER_SANITIZE_URL);\n $url = explode('/', $url);\n return $url;\n }\n }", "title": "" }, { "docid": "89ce9f3ef81766fb3865b11c412f5bb0", "score": "0.78030246", "text": "public function getSiteUrl();", "title": "" }, { "docid": "0d011feabeeac8419f8548da87e3046f", "score": "0.7802749", "text": "public function getUrl(){\n if(isset($_GET['url'])){\n $url = rtrim($_GET['url'], '/');\n $url = filter_var($url, FILTER_SANITIZE_URL);\n $url = explode('/', $url);\n return $url;\n }\n }", "title": "" }, { "docid": "d4852d2f26d37a43c77caea422a0f867", "score": "0.7801474", "text": "function getUrl() {\r\n $url = rtrim($_GET['url'], '/');\r\n // Saneo la url\r\n $url = filter_var($url, FILTER_SANITIZE_URL);\r\n // Troceo la url\r\n $url = explode('/', $url);\r\n \r\n return $url;\r\n }", "title": "" }, { "docid": "d92b45fec44052d19c8f3cbd1bfcae96", "score": "0.7773679", "text": "public static function returnURL()\n\t{\n\t\treturn self::$url;\n\t}", "title": "" }, { "docid": "82e903ab81725d2844f04c9f1eaa9a59", "score": "0.7771525", "text": "public static function getUrl()\n {\n return $_SERVER['REQUEST_URI'];\n }", "title": "" }, { "docid": "5305d7a22451ab2ff85cf2f0d5168fcc", "score": "0.7770983", "text": "public function getUrl(): string;", "title": "" }, { "docid": "5305d7a22451ab2ff85cf2f0d5168fcc", "score": "0.7770983", "text": "public function getUrl(): string;", "title": "" }, { "docid": "5305d7a22451ab2ff85cf2f0d5168fcc", "score": "0.7770983", "text": "public function getUrl(): string;", "title": "" }, { "docid": "38c0f4761041a32b3ff9fedfa16ea52b", "score": "0.7767327", "text": "abstract public function getUrl();", "title": "" }, { "docid": "38c0f4761041a32b3ff9fedfa16ea52b", "score": "0.7767327", "text": "abstract public function getUrl();", "title": "" }, { "docid": "dcc547007ae11fc9e54b99de4b3c7dd3", "score": "0.7755508", "text": "public function getUrl(){\n if(isset($_GET['url'])){\n $url = rtrim($_GET['url'], '/');\n $url = filter_var($url, FILTER_SANITIZE_URL);\n $url = explode('/', $url);\n return $url;\n }\n }", "title": "" }, { "docid": "507c666237416af79367262766b56725", "score": "0.7753472", "text": "function GetURL(){\n $url=\"http://\".$_SERVER['HTTP_HOST'].\":\".$_SERVER['SERVER_PORT'].$_SERVER['REQUEST_URI'];\n return $url;\n }", "title": "" }, { "docid": "39b38e151f5cc36867629a96a0121959", "score": "0.77473533", "text": "abstract public function url();", "title": "" }, { "docid": "cdc1196911517964b4d40617b90ecb72", "score": "0.77433133", "text": "public function getUrl()\n {\n return $this->getUrlInternal();\n }", "title": "" }, { "docid": "c00b1208cf8acf4481acceeeafd2d06f", "score": "0.77291554", "text": "function getURL() {\n\t global $config;\n\t return $config['rootUrl'] . '/get.php/' . $this->id;\n }", "title": "" }, { "docid": "58387d2df6e33089daca83cee4cb5ebd", "score": "0.7721514", "text": "public static function url()\n {\n return self::http_host() . @$_SERVER['REQUEST_URI'];\n }", "title": "" }, { "docid": "04daa27c7579127c69b59f1fd2d6736b", "score": "0.77121615", "text": "private function getURL(){\n if(!empty($_SERVER['REQUEST_URI'])){\n return trim($_SERVER['REQUEST_URI']);\n }\n }", "title": "" }, { "docid": "26ee43f2ea6e8802843b52409aa6823c", "score": "0.7666156", "text": "abstract function url();", "title": "" }, { "docid": "7bfb28105f1ef218cde2053d69f187b5", "score": "0.76653874", "text": "public function getURL()\n {\n return $_SERVER['REQUEST_URI'];\n }", "title": "" }, { "docid": "535c715e775b27dc8cf3bb75443b42d6", "score": "0.7661312", "text": "public function getUrl()\n\t{\n\t\t$uri = craft()->request->getPath();\n\t\treturn UrlHelper::getUrl($uri);\n\t}", "title": "" }, { "docid": "64267f84e72c2db5a3808e39651be9d0", "score": "0.7659884", "text": "function getUri();", "title": "" }, { "docid": "252f286ba96799c895509183faa47d4b", "score": "0.76588964", "text": "public function getUrl()\n {\n if (isset($_GET['url'])) {\n //Eliminare / din Url\n $url = rtrim($_GET['url'], '/');\n //Curatare url de charactere nepermise\n $url = filter_var($url, FILTER_SANITIZE_URL);\n //Punerea intr-un array valoarea dupa fiecare /\n $url = explode('/', $url);\n return $url;\n }\n }", "title": "" }, { "docid": "0398bca0e6ed1077bd53dc79066dac57", "score": "0.7658389", "text": "function getURL() {\n\t\treturn $this->url;\n }", "title": "" }, { "docid": "81529b0c11b77ae98d1b1b71361d4666", "score": "0.76564825", "text": "public function getUrl() {\n\t\t\t$this->target = str_replace($_SERVER['DOCUMENT_ROOT'], '', $this->target);\n\t\t\treturn $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['SERVER_NAME'].'/'.$this->target;\n\t\t}", "title": "" }, { "docid": "ae440d63433f76acc6fc03d00500bef2", "score": "0.76476955", "text": "public function getUrl() {\n\t\treturn $this->getLink('url');\n\t}", "title": "" }, { "docid": "a2e5945c8bda8ce49d89ec8bacc0735d", "score": "0.76432586", "text": "public function url() {\n\t\treturn $this->url;\n\t}", "title": "" }, { "docid": "8b0cdab06a8398d69bd872bf575df726", "score": "0.76362944", "text": "public function obtenerUri() {\n return $this->url;\n }", "title": "" }, { "docid": "9a23b17540611e0fca1f525748e8e9e0", "score": "0.761702", "text": "public function getUrl(): string\n {\n return $this->serverData['REQUEST_URI'];\n }", "title": "" }, { "docid": "7abcba56e2cc510cbb7e578bb48e98cc", "score": "0.76034254", "text": "public function getUrl()\n {\n return \"http://\" . getenv ( HTTP_HOST ) . $_SERVER['PHP_SELF'];\n }", "title": "" }, { "docid": "903f2ff5a1b644dd51b71d7f169ece79", "score": "0.7600498", "text": "protected function getUrl() {\n $partten = \"#([a-zA-Z0-9\\/]+)(\\?.*)?#\";\n $arg = preg_replace($partten, \"$1\", $_SERVER['REQUEST_URI']);\n return $arg;\n }", "title": "" }, { "docid": "357cc0580a9248a4ce28d0e511d85f31", "score": "0.7594875", "text": "public function getRequestUrl () {}", "title": "" }, { "docid": "9fa5239f61f34c4ea72afddc779279b5", "score": "0.75823206", "text": "public function getUrl() {\n\t\treturn $this->url;\n\t}", "title": "" }, { "docid": "9fa5239f61f34c4ea72afddc779279b5", "score": "0.75823206", "text": "public function getUrl() {\n\t\treturn $this->url;\n\t}", "title": "" }, { "docid": "9fa5239f61f34c4ea72afddc779279b5", "score": "0.75823206", "text": "public function getUrl() {\n\t\treturn $this->url;\n\t}", "title": "" }, { "docid": "5748ee9e24d88b44188fdce864060eca", "score": "0.7581322", "text": "public function getUrlC();", "title": "" }, { "docid": "dc6b5dfe45c7287cc37688fee057eb9e", "score": "0.7579026", "text": "private function getUrl()\n {\n return $this->url;\n }", "title": "" }, { "docid": "dcf28a7a8d0956e714f1829534ccb104", "score": "0.7577888", "text": "public function getURL() {\r\n\r\n\t\treturn $this->URL;\r\n\t}", "title": "" }, { "docid": "15ae3dbb230169c2461f114ec9baf65b", "score": "0.7552151", "text": "public function getURL()\n {\n return $this->url;\n }", "title": "" }, { "docid": "15ae3dbb230169c2461f114ec9baf65b", "score": "0.7552151", "text": "public function getURL()\n {\n return $this->url;\n }", "title": "" }, { "docid": "f8b372d922c97275a917842cdcad097b", "score": "0.7550051", "text": "public function getUrl() \n\t{\n\t return $this->url;\n\t}", "title": "" }, { "docid": "94cea306fae2d38b6e59515fd9095215", "score": "0.75485206", "text": "public function getURL() {\n\t\treturn $this->url;\n\t}", "title": "" }, { "docid": "94cea306fae2d38b6e59515fd9095215", "score": "0.75485206", "text": "public function getURL() {\n\t\treturn $this->url;\n\t}", "title": "" }, { "docid": "03ed52a63875073b894bd1f969d29a34", "score": "0.75476426", "text": "public function getURL()\n\t{\n\t\treturn $this->URL;\n\t}", "title": "" }, { "docid": "8a8d8f8eaeedd5e44bdc999ce022b0f5", "score": "0.75402194", "text": "public function getUrl()\n {\n return $this->base_url . $this->endpoint . $this->query_string;\n }", "title": "" }, { "docid": "f2f09dd0e9d3a4d1e29413d04c66ccb1", "score": "0.753878", "text": "public function httpUrl() {\n\t\treturn $this->url(true);\n\t}", "title": "" }, { "docid": "98ccf861a5359eb1623c237d05db4a4e", "score": "0.7536761", "text": "public function getUrl(){\r\n if(isset($_GET['url'])){\r\n $url = $_GET['url'];\r\n // Trim Url\r\n $url = rtrim($url, '/');\r\n // Filter Url\r\n $url = filter_var($url, FILTER_SANITIZE_URL);\r\n // Explode URL & Turn To An Array\r\n $url = explode('/', $url);\r\n if(isset($url[0])){\r\n if($url[0] == 'admin'){\r\n $url[1] = 'Admin_'.$url[1];\r\n unset($url[0]);\r\n $url = array_values($url);\r\n }\r\n }\r\n return $url;\r\n }\r\n }", "title": "" }, { "docid": "068ea5b6fd7106a940e5369e0bd3d597", "score": "0.7531497", "text": "public function getInstanceUrl();", "title": "" }, { "docid": "068ea5b6fd7106a940e5369e0bd3d597", "score": "0.7531497", "text": "public function getInstanceUrl();", "title": "" }, { "docid": "589538b8fb6950f008814506d733d698", "score": "0.7512741", "text": "public static function getURL() : string {\n\t\treturn (static::isSSL() ? 'https' : 'http') . \"://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]\";\n\t}", "title": "" }, { "docid": "5a28ba8edd93667df10ef3cb903d2acb", "score": "0.75055337", "text": "private function get_url()\n {\n if (get_option('permalink_structure') != '') {\n $url = site_url() . '/ftpress/' . $this->id;\n } else {\n $url = site_url() . '?ftpress=' . $this->id;\n }\n return $url;\n }", "title": "" }, { "docid": "c276274f0a8351f0d3da41a2a2b09061", "score": "0.750151", "text": "public function getUrl()\n {\n $format = \"%s/%s/%s/?%s\";\n $host = $this->getHostname();\n $service = $this->getService();\n $appid = $this->getAppId();\n $country = $this->getCountry();\n $params = $this->getParametersAsUrl(); \n return sprintf($format, $host, $service, $appid, $params);\n }", "title": "" }, { "docid": "e16f273c1e5c9cd2960306d4fee36a7b", "score": "0.74983454", "text": "public function getUrl()\n\t{\n\t return $this->url;\n\t}", "title": "" }, { "docid": "b51e0b3046e7a83193c132c38df2ff14", "score": "0.7498145", "text": "public function getURL()\n {\n return Config::get('URL') . 'sites/' . $this->sites_id . '/scans/' . $this->id . '/';\n }", "title": "" }, { "docid": "ff9f16a56877733de14011d17b5e37f0", "score": "0.74959284", "text": "public function getOurUrl() {\n if ($this->our_url) {\n return $this->our_url;\n }\n $url = explode('?', $_SERVER['REQUEST_URI'], 2);\n return $url[0];\n }", "title": "" }, { "docid": "41552eee59597853377b612a7d8dcd01", "score": "0.74957085", "text": "public function getUrl(): string {\n\t\treturn $this->url;\n\t}", "title": "" }, { "docid": "41552eee59597853377b612a7d8dcd01", "score": "0.74957085", "text": "public function getUrl(): string {\n\t\treturn $this->url;\n\t}", "title": "" }, { "docid": "ac767694a73d87f36950f8a9f480d650", "score": "0.74946386", "text": "public function getUrl() : string\n {\n return $this->history->current()->getUrl();\n }", "title": "" }, { "docid": "820e080ad9ca4843859611cbe0ca3d22", "score": "0.7487848", "text": "public function getUrl() {\n return $this->url_;\n }", "title": "" }, { "docid": "16c21d1d9a746d1d53df287b1ffb6565", "score": "0.74847674", "text": "public function getUri();", "title": "" }, { "docid": "16c21d1d9a746d1d53df287b1ffb6565", "score": "0.74847674", "text": "public function getUri();", "title": "" }, { "docid": "ee9fa19beb52a55a2ee993f726f77c65", "score": "0.7482252", "text": "public function getUrl()\r\n {\r\n return $this->_url;\r\n }", "title": "" } ]
966082ac42db000ab899d4f3e4d1ef0e
Test creating a user
[ { "docid": "24a949cb1b156b6db2d0843625b415f2", "score": "0.0", "text": "public function testDeleteUser() {\n // create data array\n $data = array(\n 'first_name' => 'Userfirstname',\n 'last_name' => 'Userlastname',\n 'full_name' => 'Userfirstname Userlastname',\n 'email' => 'someEmail@email.com',\n 'job_type' => 2\n );\n\n // Set post data\n $this->request->setMethod('POST')\n ->setPost($data);\n\n // Dispatch page request and ensure it's successful\n $this->dispatch('/staff/ajax/createvolunteer');\n $this->assertController(\"ajax\");\n $this->assertAction(\"createvolunteer\");\n $this->assertResponseCode(200);\n\n // Parse the response\n $response = Zend_Json::decode($this->getResponse()->getBody());\n\n\n $userId = $response['payload']['id'];\n $this->resetRequest()\n ->resetResponse();\n\n // Set get data\n $this->request->setMethod('GET')\n ->setPost(array(\n 'id' => $userId\n ));\n\n // Dispatch page request to retrieve the newly created user from the DB\n $this->dispatch('/staff/ajax/volunteers');\n $this->assertController(\"ajax\");\n $this->assertAction(\"volunteers\");\n $this->assertResponseCode(200);\n\n // Parse the response\n $response = Zend_Json::decode($this->getResponse()->getBody());\n $data['id'] = $userId;\n $data['comments'] = NULL;\n $userCreated = $response['payload'];\n \n \n \n $this->assertTrue($data == $userCreated);\n\n \n //Delete user\n // Reset the request and the response to do another dispatch\n $this->resetRequest()\n ->resetResponse();\n\n // Set post data\n $this->request->setMethod('POST')\n ->setPost(array(\n 'id' => $userId\n ));\n\n // Dispatch page request to clean up and delete the new volunteer created\n $this->dispatch('/staff/ajax/deleteuser');\n\n\n //Do another dispatch to check if this user is deleted\n $this->resetRequest()\n ->resetResponse();\n\n $this->request->setMethod('POST')\n ->setPost(array(\n 'id' => $userId\n ));\n\n // Dispatch page request to retrieve the newly created user from the DB\n $this->dispatch('/staff/ajax/volunteers');\n $this->assertController(\"ajax\");\n $this->assertAction(\"volunteers\");\n $this->assertResponseCode(200);\n\n // Parse the response\n $response = Zend_Json::decode($this->getResponse()->getBody());\n\n $this->assertEquals(count($response['payload']), 0);\n }", "title": "" } ]
[ { "docid": "271bd1eed836080720f16e9e4e7c02db", "score": "0.8539169", "text": "function test_createUser() {\n $username = \"nombredeusuario\";\n $password = \"password\";\n $email = \"direcciondecorreo@alum.us.es\";\n $genre = \"Femenino\";\n $autonomousCommunity = \"Madrid\";\n $age = 50;\n createUser($username, $password, $email, $genre, $autonomousCommunity, $age);\n $foundUser = getUser($username);\n $this->assertNotNull($foundUser);\n }", "title": "" }, { "docid": "5a483ab311ab23fe3fa06ec80ec67cad", "score": "0.8511004", "text": "public function testUserCreateUser()\n {\n // Reset to a factory db\n $this->resetDB();\n $this->adminLogin();\n\n // Create a user in the UI\n $this->visit('/user/create')\n ->see('First Name')\n ->see('Last Name')\n ->see('Email')\n ->see('Password')\n ->see('Company')\n ->see('Make a user!')\n ->type('John', 'first_name')\n ->type('Doe', 'last_name')\n ->type('testing@303software.com', 'email')\n ->type('123', 'password')\n ->type('303 Software', 'company')\n ->press('Make a user!')\n ->seePageIs('/user');\n\n // Verify in database\n $this->seeInDatabase('users', [\n 'first_name' => 'John',\n 'last_name' => 'Doe',\n 'email' => 'testing@303software.com',\n 'company' => '303 Software',\n ]);\n }", "title": "" }, { "docid": "cf995085b21f9d476f8dc21de1996ada", "score": "0.8342892", "text": "public function testCanCreateAnUser()\n {\n $user = new User('Gerardo Gomez', 100, '127.0.0.1');\n }", "title": "" }, { "docid": "3bd29cce82fa4f5320b630341efa9205", "score": "0.8272671", "text": "public function testCreateUser()\n {\n }", "title": "" }, { "docid": "23b48f31a3fecad35d0abb6e24aa0948", "score": "0.8234064", "text": "public function testCreateUser()\n {\n $newUser = User::CreateUser('tom@black.com', 'abc', 'random_name', 'random_surname', 'address');\n $this->assertFalse($newUser, 'User with this e-mail already exist in DB');\n $newUser = User::CreateUser('tom2@black.com', 'abc', 'random_name', 'random_surname', 'address');\n $this->assertInstanceOf(User::class, $newUser, 'Succesfull creation of new user');\n }", "title": "" }, { "docid": "b9dc31b095842fd00761117f9e0fdd84", "score": "0.8158712", "text": "public function testCreateNewUser()\n {\n $user = $this->createUser();\n //login necessari\n $this->login();\n //dd($this->convertTaskToArray($task));\n $this->json('POST', $this->uri, $anuser = $this->convertUserToArray($user))\n ->seeJson([\n 'created' => true,\n ])\n ->seeInDatabase('users', $anuser);\n }", "title": "" }, { "docid": "074416854540fc0ca1a1a4a8775ccce8", "score": "0.81481206", "text": "public function testCanCreateANewUserWithValidData(){\n $this->get('/');\n\n $email = 'doma@gmail.com';\n $password = 'password99';\n\n\n $this->post(USERS_ROUTE, [\n 'email' => $email,\n 'password' => $password\n ])->seeStatusCode(self::HTTP_CREATED)\n ->seeJson([\n 'data' => \"The user with email $email has been created.\"\n ]);\n\n //check that user is in the database\n $this->seeInDatabase('users', [\n 'email' => $email,\n ]);\n }", "title": "" }, { "docid": "6b5b4701d7fbc190037e7e200d96c913", "score": "0.81379825", "text": "public function testUserCreation()\n {\n $response = $this->json('POST', 'api/register', ['firstname' => 'mary',\n 'lastname' => 'jane',\n 'username' => 'mary',\n 'email' => 'mary@gmail.com',\n 'date_of_birth' => '12-10-1994',\n 'password' => '123456'\n ]);\n\n $response\n ->assertStatus(201)\n ->assertJson([\n 'created' => true,\n ]);\n }", "title": "" }, { "docid": "94f610c5792609c79af2fe4593f0e3e7", "score": "0.8125443", "text": "public function test_can_create_user()\n {\n $data = [\n 'name' => 'testuser',\n 'email' => 'testuser@test.com',\n 'password' => 'secret',\n 'c_password' => 'secret',\n 'role' => 'customer',\n ];\n\n $this->withoutExceptionHandling();\n\n $response = $this->json('POST', '/api/register', $data);\n\n $response->assertStatus(201);\n\n $response->assertJson(['user'=> [\n 'name' => 'testuser',\n 'email' => 'testuser@test.com',\n 'role' => 'customer',\n ]]);\n }", "title": "" }, { "docid": "50fcdc75ad181b1ff7b13921d1b25489", "score": "0.8121543", "text": "public function testCreateUser()\n {\n $postData = [\n 'name' => 'Devon Mark',\n 'address' => 'ABC Street',\n 'email' => 'abc@test.com',\n 'role_id' => 2,\n ];\n\n $response = $this->json('POST', '/api/v1/user', $postData);\n\n $response\n ->assertResponseStatus(200);\n\n $this->assertJson(json_encode([\n 'message' => 'User Created'\n ]));\n }", "title": "" }, { "docid": "95224ddb15df1f963a1c79f7d4a9e6cc", "score": "0.8099369", "text": "public function test_if_user_can_create()\n {\n $this->withoutExceptionHandling();\n $user = User::factory()->make([\n 'email' => 'admin@gmail.com'\n ]);\n $this->actingAs($user);\n $response = $this->post(route('register.user'), [\n 'name' => 'iodsigfid',\n 'email' => 'test@gmail.com',\n 'password' => 'password'\n ]);\n\n $this->assertCount(1, User::all()); \n }", "title": "" }, { "docid": "e301182a619e1d64639b79f2177ecb01", "score": "0.80877095", "text": "public function testCreated()\n {\n // Create a user\n $email = $this->faker->email;\n $user = $this->writedown->getService('api')->user()->create([\n 'email' => $email,\n 'password' => $this->faker->word,\n ]);\n\n // Check we have something\n $this->assertTrue($user['success']);\n $this->assertEquals($email, $user['data']->email);\n }", "title": "" }, { "docid": "bd27a575da120711d36a474231d7938b", "score": "0.8086975", "text": "public function testUserCreation()\n {\n $response = $this->client->post(\n $this->url,\n ['exceptions' => false]\n );\n $this->assertEquals(400, $response->getStatusCode());\n\n // Send request with name.\n $response = $this->client->post(\n $this->url,\n ['body' => ['name' => $this->faker->name]]\n );\n $this->assertEquals(201, $response->getStatusCode());\n }", "title": "" }, { "docid": "819a0cafc9deafa747585f5e901bcbc8", "score": "0.80602384", "text": "public function testAUserCanBeCreated()\n {\n $this->json(\n 'POST', '/api/v1/auth/register', [\n 'name' => 'Joromi',\n 'email' => 'joromi@foo.com',\n 'password' => 'joromo1236',\n ]\n )->assertStatus(Response::HTTP_CREATED);\n\n $this->assertDatabaseHas('users', [\n 'name' => 'Joromi',\n 'email' => 'joromi@foo.com',\n ]);\n }", "title": "" }, { "docid": "e435917090c5ce6a7720a233f8f8ba87", "score": "0.8033555", "text": "public function createUser();", "title": "" }, { "docid": "26fcc79b1207b88103df563de8a3e42c", "score": "0.800627", "text": "public function testCreate() {\n // Create\n $this->user->email = self::EMAIL;\n $this->user->create();\n\n // Assert\n $this->assertNotNull( $this->user->id );\n\n // Get\n $ph_user = $this->phactory->get( 'users', array( 'user_id' => $this->user->id ) );\n\n // Assert\n $this->assertEquals( self::EMAIL, $ph_user->email );\n }", "title": "" }, { "docid": "54f80c544efc35071739f1a7f91f3312", "score": "0.799237", "text": "public function create_new_user()\n {\n //arrange\n $userData = $this->getUserData();\n\n //act\n $user = User::factory()->create($userData);\n\n //assert\n $this->assertInstanceOf(User::class, $user, \"create a user model\");\n $this->assertDatabaseHas('users', $userData);\n\n }", "title": "" }, { "docid": "f2947011c3d4a5e1e2a44da2ac6eface", "score": "0.7961562", "text": "public function testCreateUser()\n {\n $user = User::create([\n 'name' => 'Mosab',\n 'email' => 'admin@admin.com',\n 'password' => bcrypt('123456'),\n 'verifyToken' => Str::random(20),\n 'status' => '0',\n ]);\n\n $this->assertEquals(\"Mosab\", $user->name);\n }", "title": "" }, { "docid": "fe0d02cf4f769aedf0353664ee1d6cb0", "score": "0.7879633", "text": "public function testUserCreation()\n {\n $response = $this->json('POST', '/api/register',[\n 'firstName' => 'Demo',\n 'lastName'=>'User',\n 'email'=>str_random(10) . '@test.com',\n 'password'=>'password',\n 'city'=>'Some City',\n 'state'=>'Some State',\n 'country'=>'US',\n 'location'=>'My Cool Location',\n 'zip'=>22222\n\n ]);\n $response = assertStatus(200)->assertJsonStructure([\n 'success'=>['token', 'name']\n ]);\n }", "title": "" }, { "docid": "4c929092696c10f994a1e7fd51dc8641", "score": "0.78770727", "text": "public function testRegisterCreateUser() {\n // Reset to a factory db\n $this->artisan('migrate:reset');\n $this->artisan('migrate');\n\n // Create a user in the UI\n $this->visit('/register/create')\n ->see('First Name')\n ->see('Last Name')\n ->see('Email')\n ->see('Password')\n ->see('Company')\n ->see('Create My Account')\n ->type('Angus', 'first_name')\n ->type('Young', 'last_name')\n ->type('dave@303software.com', 'email')\n ->type('123', 'password')\n ->type('303 Software', 'company')\n ->press('Create My Account')\n ->seePageIs('/register');\n\n // Verify in database\n $this->seeInDatabase('users', [\n 'first_name' => 'Angus',\n 'last_name' => 'Young',\n 'email' => 'dave@303software.com',\n 'company' => '303 Software',\n ]);\n }", "title": "" }, { "docid": "2500b0e581fcd4681997eff8cfacba81", "score": "0.7855189", "text": "function create_user($user);", "title": "" }, { "docid": "1b6547babc3c76b648935c0949130d09", "score": "0.78188473", "text": "public function createUser($user);", "title": "" }, { "docid": "20595ac0e31febb0b30628e584956ce7", "score": "0.7785902", "text": "public function testSaveUser() {\n\t}", "title": "" }, { "docid": "444a6c499d8e05327e1f740b19158486", "score": "0.77833974", "text": "public function test_a_new_user_creates_account_and_logs_in()\n {\n //a user being created through register page\n $this->post('/register', [\n 'name' => 'Erwin Angeles',\n 'email' => 'erwin@example.com',\n 'password' => 'Password123',\n 'password_confirmation' => 'Password123'\n ])->assertRedirect('/login');\n\n //Verifying user was created\n $this->assertTrue(User::where('email', '=', 'erwin@example.com')->exists());\n\n\n //Attempt to login using the email and password of the recently created user\n $response = $this->post('/login', [\n 'email' => 'erwin@example.com',\n 'password' => 'Password123'\n ])->assertRedirect('/user/profile');\n\n //Check that user logged in status is true after posting login\n $this->assertTrue(Auth::check());\n }", "title": "" }, { "docid": "cf8301116c39638afad9c22a3adf04fc", "score": "0.77264446", "text": "public function testCreateUser()\n\t{\n\t\t$data = $this->userArrayData;\n\t\t$result = $this->model->createUser($data);\n\n\t\t$this->assertTrue($result);\n\n\t\t$newEntity = $this->model->getEntity();\n\t\t$this->userArrayUpdate['id'] = $newEntity->getId();\n\t\tself::$lastID = $newEntity->getId();\n\t}", "title": "" }, { "docid": "d2ef0433807f62741a89adde0003b68e", "score": "0.7716491", "text": "public function testCreateUser()\n {\n $faker = Faker\\Factory::create();\n $username = $faker->username;\n $user = UsersController::getByName($username);\n $user = \\App\\User::find($user->id);\n $this->assertTrue($user->hasRole('user'));\n $this->assertFalse($user->hasRole('admin'));\n $this->seeInDatabase('users', ['username' => $username]);\n }", "title": "" }, { "docid": "8c4fc9cb1ea78209023fd2e96544dddb", "score": "0.77055496", "text": "public function testForUserCreation()\n {\n $new_user = factory('App\\User')->raw(); \n $response = $this->withHeaders([ \n 'X-Header' => 'Value',\n ])->json('POST', '/api/users', $new_user);\n\n $response\n ->assertStatus(200)\n ->assertJson([\n 'created' => true,\n ]);\n }", "title": "" }, { "docid": "81a56d3d55c4bcad94a09da1c244c3bf", "score": "0.7691438", "text": "public function testCreateUser()\n {\n $user = factory(\\App\\User::class)->create();\n $this->assertDatabaseHas('users', ['username' => $user->username]);\n }", "title": "" }, { "docid": "bc07cee95178028bca08a1d1ed82671a", "score": "0.768361", "text": "function testCreation() {\n $this->assertNull(UserController::login($this->test_good_username,\"wrong_password\"),\"UserController should throw an Exception when login() is called with bad details\");\n $this->assertIsA($user = UserController::login($this->test_good_username,$this->test_good_password),\"User\",\"Check that UserController returns a User when you log in.\");\n $this->assertEqual($user->get_username(),$this->test_good_username,\"Resulting user from login() should be the correct guy\");\n\n //Test the banned user\n $this->assertNull(UserController::login($this->test_banned_username,$this->test_banned_password),\"Check that UserController rejects a banned User\");\n\n //Test the inactive user\n $this->assertNull(UserController::login($this->test_inactive_username,$this->test_inactive_password),\"Check that UserController rejects a inactive User\");\n }", "title": "" }, { "docid": "6155692cddb911008af1318c93b3da33", "score": "0.7682976", "text": "public function testShouldStoreANewUserInTheDatabase()\n {\n $this->post('/api/v1/users/signup', [\n 'firstname' => 'Adebola',\n 'lastname' => 'Akinlabi',\n 'email' => 'adebola.akinlabi@gmail.com',\n 'password' => '1234'\n ]);\n\n // dd($res);\n $this\n ->seeStatusCode(201)\n ->seeJson(['status' => 'success'])\n ->seeInDatabase('users',['email' => 'adebola.akinlabi@gmail.com']);\n\n }", "title": "" }, { "docid": "3985542195307ae731a1f2d4b9e2b717", "score": "0.7670247", "text": "public function createUser()\n {\n $this->user = factory(\\Easel\\Models\\User::class)->create();\n }", "title": "" }, { "docid": "9aab6fb7f0578ca6f404d87e3315239a", "score": "0.76375633", "text": "public function testCreateUser()\n {\n $url = 'POST;http://username:password@127.0.0.1:18888/user';\n\n $action = Action::factory($url, ['name' => 'John', 'surname' => 'Doe']);\n\n $response = $action->exec();\n\n $this->assertEquals('John', $action->getResponse()->get('name'));\n $this->assertEquals(201, $action->getResult()->getStatusCode());\n }", "title": "" }, { "docid": "5f007ec4869c07c0c513390879cf064e", "score": "0.7596516", "text": "public function testRegisterNewUser()\n {\n $user = $this->getSavedUser();\n\n self::assertSame(\"Patrick\",$user->getFirstName());\n self::assertSame(\"Holtzman\",$user->getLastName());\n }", "title": "" }, { "docid": "abac0de0107a81cbc7ad41f1955c5110", "score": "0.75849944", "text": "public function testInsertUser()\n {\n /*\n -create manager and get $acces_token\n $response = $this->call('POST', '/user',['username' => 'test@email.com',\n 'password' => 'password'],[],[], ['Accept' => 'application/json',\n 'Validation' => 'Bearer'.$acces_token],[]);\n $this->assertEquals(200, $response->status(), 'Unexpected status');\n */\n }", "title": "" }, { "docid": "56a056e5a90ba42b28bcd5b9bc1b4046", "score": "0.7581088", "text": "public function testCreateUser()\n {\n $myDB = oxDb::getDB();\n\n $sUserID = $this->_aUsers[ $this->_aShops[ rand(0, count( $this->_aShops ) - 1 ) ] ][ rand( 0, count( $this->_aUsers[ 0 ] ) - 1 ) ];\n $oUser = oxNew( 'oxuser' );\n $oUser->Load( $sUserID );\n $oUser->delete();\n\n $oUser->createUser();\n\n // checking\n $sQ = 'select count(*) from oxuser where oxid = \"'.$oUser->getId().'\" ';\n $this->assertEquals( 1, $myDB->getOne( $sQ ) );\n\n }", "title": "" }, { "docid": "4e3890665dcd39d874bceca46d34605b", "score": "0.7551829", "text": "public function testSignUp()\n {\n // $response = $this->get('/api/user');\n // $response->assertSuccessful();\n // $response->assertViewIs('auth.login'); \n \n // User::create([\n // 'name' => 'John Doe',\n // 'email' => 'johnn@example.com',\n // 'password' => bcrypt('secret'),\n // ]);\n\n // Replacing above code with factories..\n // Factories will automatically take users from Database and check login..\n \n // $user = factory(User::class)->make();\n // $response = $this->actingAs($user)->get('/login');\n // $response->assertRedirect('/home');\n\n $user = factory(User::class)->create([\n 'password' => bcrypt($password = 'Admin@123'),\n ]);\n $response = $this->actingAs($user)->get('/login');\n $response->assertRedirect('/home');\n // $response->assertViewHas();\n // $this->assertAuthenticatedAs($user); \n }", "title": "" }, { "docid": "00bb346c1b80e127bc96d384efffc27c", "score": "0.75448", "text": "public function test_it_can_register_a_user()\n {\n $this\n ->postJson('/api/users', $this->user)\n ->assertStatus(201);\n }", "title": "" }, { "docid": "691b8eec2e7ff3d85a27d263202fa1bf", "score": "0.7533598", "text": "public function testCreate()\n {\n $data = [\n 'first_name' => 'test',\n 'last_name' => 'user',\n 'email' => 'my@email.com',\n 'gender' => 'male',\n 'birthdate' => '1990-05-06',\n 'password' => '123456'\n ];\n\n $repositoryMock = $this->getUserRepositoryMock();\n $repositoryMock->expects(self::once())->method('create')->with($data);\n\n $authServiceMock = $this->getAuthServiceMock();\n\n (new UserService($repositoryMock, $authServiceMock))->create($data);\n }", "title": "" }, { "docid": "90b58c4938626daa762f18151f210406", "score": "0.7526413", "text": "public function testUserInsert()\n {\n try {\n $data = '{\"first\":\"Andre\", \"last\":\"Jackson\", \"email\":\"dre.board@gmail.com\"}';\n $input = json_decode($data, true);\n\n $response = $this->runApp('POST', '/v1/users/add_user', $input);\n $this->assertEquals(201, $response->getStatusCode());\n $this->assertContains('{\"status\":\"success\",\"errors\":\"none\"}', (string)$response->getBody());\n\n } catch (\\Exception $e) {\n $this->fail();\n }\n }", "title": "" }, { "docid": "b44a8c636dd9792106367ea8ccca4818", "score": "0.75056386", "text": "public function testRegisterUserCreation() {\n\n $payload = [\n 'name' => \"Admin\",\n 'password' => \"admin\",\n 'role' => \"super-bawa\"\n ];\n\n $response = $this->json('POST', 'api/register', $payload);\n $response->dump();\n $response->assertStatus(401);\n }", "title": "" }, { "docid": "c11e6a13d745d62eb16e23184af664db", "score": "0.7492488", "text": "public function testCreateCorporateUser()\n {\n }", "title": "" }, { "docid": "054f8ac0c001bc209a0fe95e7fc517f2", "score": "0.74482477", "text": "public function testAdminViewCreateUser()\n {\n $admin = factory(User::class)->create();\n\n $this->browse(function (Browser $browser) use ($admin) {\n $browser->loginAs($admin)\n ->visit('/admin/users/create')\n ->assertSee('Create User');\n });\n }", "title": "" }, { "docid": "d62ae17a36fca3e07b873dcb0dbd8fff", "score": "0.7443643", "text": "private function createTestTakerUser() {\n\t\t$this->testTakerUserName = __CLASS__ . '_User_TestTakerTest';\n\t\t$this->testTakerUserPwd = md5 ( rand () );\n\t\t$taoUserRole = new \\core_kernel_classes_Resource ( INSTANCE_ROLE_BASEUSER );\n\t\t$taoUserClass = new \\core_kernel_classes_Class ( TAO_SUBJECT_CLASS );\n\t\t$this->testTakerUserRsc = \\tao_models_classes_UserService::singleton ()->addUser ( $this->testTakerUserName, $this->testTakerUserPwd, $taoUserRole, $taoUserClass );\n\t\t$this->assertInstanceOf ( \\core_kernel_classes_Resource::class, $this->testTakerUserRsc );\n\t}", "title": "" }, { "docid": "ad61a4665e8281df665bb6fcbb3a2621", "score": "0.7434026", "text": "public function createUser(/*UserDetails*/ $user);", "title": "" }, { "docid": "006ca0276656505dd9c27070994ae234", "score": "0.74321216", "text": "public function testUserSignup()\n {\n $response = $this->json('POST', '/api/signup', [\n 'name' => 'joe',\n 'email' => 'joe@test.com',\n 'password' => 'password',\n ]);\n\n // $data = $response->getData();\n $response\n ->assertStatus(201)\n ->assertJson([\n \"message\" => \"Successfully created user!\"\n ]);\n\n $this->assertDatabaseHas('users', [\n 'email' => 'joe@test.com'\n ]);\n }", "title": "" }, { "docid": "c962f7825faa899405f0fe18210f1f04", "score": "0.74276984", "text": "public function testItCanRegisterAnUser()\n {\n $userAttributes = User::factory(['email_verified_at' => null])->raw();\n $userAttributes = [\n 'name' => $userAttributes['name'],\n 'email' => $userAttributes['email'],\n 'password' => $userAttributes['password'],\n 'password_confirmation' => $userAttributes['password'],\n 'timezone' => $userAttributes['timezone'],\n ];\n\n $this->post(route('user.register'), $userAttributes)\n ->assertCreated();\n }", "title": "" }, { "docid": "76f591b78f2ceb28a5989b8bbb826165", "score": "0.7414569", "text": "public function testUserRegister()\n {\n User::create([\n 'name' => $this->data['name'],\n 'email' => $this->data['email'],\n 'password' => Hash::make($this->data['password']),\n 'phonenumber' => $this->data['phonenumber']\n ]);\n\n $this->assertDatabaseHas('users', [\n 'email' => $this->data['email'],\n ]);\n }", "title": "" }, { "docid": "f25d75f078ef27924ce4c3b9232d0b77", "score": "0.73866326", "text": "public function testCreate()\n {\n $client = $this->createAuthorizedClient();\n\n $firstName = 'First name';\n $lastName = 'Last name';\n $email = 'email@example.com';\n\n $requestContent = json_encode(array(\n 'user' => array(\n 'firstName' => $firstName,\n 'lastName' => $lastName,\n 'email' => $email\n )\n ));\n\n $client->request('POST',\n $this->url('api_users_create'),\n array(), array(),\n array('CONTENT_TYPE' => 'application/json'),\n $requestContent\n );\n\n $decoded = $this->getResponseData($client);\n\n $this->assertArrayHasKeys(\n array('user'),\n $decoded\n );\n\n $this->assertArrayHasKeys(\n array('id'),\n $decoded['user']\n );\n\n $this->assertGreaterThan(0, $decoded['user']['id'], 'Returned user id is probably not a number.');\n\n /** @var User $user */\n $user = $this->getRepo('AttendeeApiBundle:User')->find($decoded['user']['id']);\n\n $this->assertEquals($firstName, $user->getFirstName(), 'First name was not saved correctly.');\n $this->assertEquals($lastName, $user->getLastName(), 'Last name was not saved correctly.');\n $this->assertEquals($email, $user->getEmail(), 'Email was not saved correctly.');\n\n // cleanup\n $this->em()->remove($user);\n $this->em()->flush();\n }", "title": "" }, { "docid": "a501c489af3af373d337183ad4e986de", "score": "0.7382432", "text": "public function testCreate()\n {\n $userData = new User();\n $userData->setUsername('nick');\n $userData->setPassword('avengers');\n $userData->setEmail('nick@fury.com');\n\n $container = self::$kernel->getContainer();\n\n $em = $container->get('doctrine.orm.entity_manager');\n $em->persist($userData);\n $em->flush();\n\n $user = $container->get('doctrine')\n ->getRepository(User::class)->find(1);\n\n $this->assertNotNull($user);\n $this->assertSame('nick', $user->getUsername());\n $this->assertSame('nick@fury.com', $user->getEmail());\n $this->assertSame('avengers', $user->getPassword());\n }", "title": "" }, { "docid": "69eebcde96b199b17f299bc12f1b9da9", "score": "0.73755735", "text": "public function createUser($data);", "title": "" }, { "docid": "8a3d22d1b4a0e9679ce4cee912d938b6", "score": "0.7362451", "text": "public function testInsertUser()\n {\n //create a new user instance\n $user = new User();\n\n //assign new user name\n $user-> name = 'Kashish Agarwal';\n\n //assign the unique email for the new user\n $user->email='ka399@njit.edu';\n\n //assign the password for the new user. password will be stored in the encrypted format.\n $user->password= password_hash('123456',1);\n\n //test if the new user is saved in the database\n $this->assertTrue($user->save());\n }", "title": "" }, { "docid": "944dea42cb64000a7b2e21eed3046f2c", "score": "0.73595226", "text": "public function create(User $user)\n {\n\n }", "title": "" }, { "docid": "d3adb28a96f5f9875542a90f93df3b24", "score": "0.7347164", "text": "public function testAddUser()\n {\n //422\n $response = $this->post(\"admin/user/add\", []);\n $response->assertResponseStatus(422);\n $response->seeJsonStructure([\n \"firstname\",\n \"lastname\",\n \"mobile_number\",\n \"email\",\n \"birthdate\",\n \"gender\"\n ]);\n\n //Create user factory\n $user = factory(\\App\\Models\\User::class)->make();\n\n //200\n $response = $this->post(\"admin/user/add\", [\n \"firstname\" => $user->firstname,\n \"lastname\" => $user->lastname,\n \"mobile_number\" => $user->mobile_number,\n \"email\" => $user->email,\n \"birthdate\" => $user->birthdate,\n \"gender\" => $user->gender\n ]);\n \n $response->assertResponseStatus(200);\n $response->seeJsonStructure([\n 'message',\n 'model'\n ]);\n }", "title": "" }, { "docid": "57f8eafb8229a42c84e26776283996f2", "score": "0.734499", "text": "public function testUser()\n {\n \t$this->post('user', [\n \t\t\"_token\" => \"ulS0fVbFoFlVPEGu3DiiShur5XWrHJxpjNRceZOf\",\n \t\t\"name\" => \"Saaaaad\",\n \t\t\"email\" => \"saad@gmail.coom\",\n \t\t\"role\" => \"1\",\n \t\t\"password\" => \"123456\",\n \t\t\"password_confirmation\" => \"123456\"\n \t\t]);\n \t$this->assertDatabaseHas('users', ['email' => 'saad@gmail.coom']);\n \t$user = User::where('email', 'saad@gmail.coom')->get();\n \t$this->assertDatabaseHas('role_user', ['user_id' => $user[0]->id]);\n }", "title": "" }, { "docid": "76f7567fd6d3aa649fb3b93151dbeb60", "score": "0.73406607", "text": "public function testUserManagev1userregister()\n {\n\n }", "title": "" }, { "docid": "20f0b206d9e23cb13430ab0b5d776fc4", "score": "0.7328779", "text": "public function test_insert_user_to_database()\n {\n $user = \\App\\Models\\User::factory()->create();\n\n $this->assertDatabaseHas('users', [\n 'email' => $user->email\n ]);\n }", "title": "" }, { "docid": "eae1c8eeb657246699cf43996da061a7", "score": "0.7324066", "text": "public function testCreateUser()\n\t{\n\t\t$data = array(\n\t\t\t\t'Teacher' => array(\n\t\t\t\t\t\t'password' => Security::hash('rohit'),\n\t\t\t\t\t\t'email_address' => 'asdsad',\n\t\t\t\t\t\t'name' => 'Rohit',\n\t\t\t\t\t\t'school_id' => '1'));\n\t\t\t\n\t\t$result = $this->Teacher->createUser($data);\n\t\t$this->assertEquals($result,false);\n\n\t\t//Case 4 : Negative\n\t\t$data = array(\n\t\t\t\t'Teacher' => array(\n\t\t\t\t\t\t'password' => Security::hash('rohit'),\n\t\t\t\t\t\t'email_address' => 'asdsad@asu.edu',\n\t\t\t\t\t\t'name' => '',\n\t\t\t\t\t\t'school_id' => '1'));\n\t\t\t\n\t\t$result = $this->Teacher->createUser($data);\n\t\t$this->assertEquals($result,false);\n\n\t\t//Case 5 : Negative\n\t\t$data = array(\n\t\t\t\t'Teacher' => array(\n\t\t\t\t\t\t'password' => Security::hash('rohit'),\n\t\t\t\t\t\t'email_address' => 'asdsad@asu.edu',\n\t\t\t\t\t\t'name' => 'Rohit',\n\t\t\t\t\t\t'school_id' => ''));\n\t\t\t\n\t\t$result = $this->Teacher->createUser($data);\n\t\t$this->assertEquals($result,false);\n\n\t\t//Case 6 : Positive\n\t\t$data = array(\n\t\t\t\t'Teacher' => array(\n\t\t\t\t\t\t'password' => Security::hash('ASUrite'),\n\t\t\t\t\t\t'email_address' => 'asu@asu.edu',\n\t\t\t\t\t\t'name' => 'ASUrite',\n\t\t\t\t\t\t'school_id' => '3'));\n\t\t\t\n\t\t$result = $this->Teacher->createUser($data);\n\t\t$this->assertEquals($result,true);\n\t}", "title": "" }, { "docid": "aeb84b63052d360cafafa4f8faa8374b", "score": "0.73169345", "text": "public function testCreateUser(){\n $user = factory(\\App\\User::class)->create();\n\n $this->assertInstanceOf(\\App\\User::class, $user);\n $this->assertDatabaseHas('users', [\n 'id' => $user->id,\n 'email' => $user->email\n ]);\n Storage::disk('public')->assertExists('avatars/'.$user->avatar_url);\n $this->assertIsString($user->avatar);\n }", "title": "" }, { "docid": "e2737a67a9090f8bfd0a3679760768b4", "score": "0.7306272", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "c4f09019142311f61293a9302e4a5be0", "score": "0.73014843", "text": "public function test_test_user() {\n\t}", "title": "" }, { "docid": "787e5ef750d4e84b5e36035b3dc65a55", "score": "0.7300148", "text": "public function testAdminCanCreateUser(){\n\n $role = factory(Role::class)->create([\n 'name' => 'admin'\n ]);\n\n $user = factory(User::class)->create([\n 'email' => 'oluwaseyi@example.com',\n 'password' => bcrypt('testpass123'),\n 'role' => $role->id\n ]);\n\n $this->actingAs($user)\n ->post(route('user.store'), [\n 'name' => 'create user',\n 'email' => 'createuser@gmail.com',\n 'role' => $user->role,\n 'password' => '123123',\n 'password_confirmation' => '123123'\n ])\n ->assertResponseStatus(302)\n ->assertEquals(User::count(),2);\n }", "title": "" }, { "docid": "a1ea7dd387269124191fe1050edcb942", "score": "0.72907364", "text": "public function testAddUser()\n {\n }", "title": "" }, { "docid": "0cee97b7ad805ecc3f74f3d45ab5e9a4", "score": "0.72828054", "text": "public function testExistingUser()\n {\n Artisan::call('migrate');\n $users = factory('App\\User')->create();\n $response = $this->post('/submitForm', [\n 'email' => $users->email,\n ]);\n $response->\n assertStatus(200)->\n assertJson([\n 'emailExists' => true,\n ]);\n }", "title": "" }, { "docid": "d3b35dc9353a41057f49a3f47f988631", "score": "0.7279729", "text": "public function testUserinsert()\n {\n $user = factory(\\App\\User::class)->make();\n $this->assertDatabaseHas('users', [\"name\" => \"Steve Smith\"]);\n }", "title": "" }, { "docid": "4a8b87eb9d2cce8a20f17becb3239a9c", "score": "0.7270366", "text": "public function testCreate()\n {\n //create user\n $administrator = $this->CreateAdministrator();\n $lisUser = $this->CreateAdministratorUser($administrator);\n\n //now we have created adminuser set to current controller\n $this->controller->setLisUser($lisUser);\n $this->controller->setLisPerson($administrator);\n\n $this->request->setMethod('post');\n\n $this->request->getPost()->set(\"name\", \"Name vocation\");\n $this->request->getPost()->set(\"vocationCode\", uniqid());\n $this->request->getPost()->set(\"durationEKAP\", 120);\n\n $result = $this->controller->dispatch($this->request);\n $response = $this->controller->getResponse();\n\n $this->PrintOut($result, false);\n\n $this->assertEquals(200, $response->getStatusCode());\n $this->assertEquals(1, $result->success);\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" }, { "docid": "f50873c2fb7b03208dab353549d97dea", "score": "0.72630966", "text": "public function create(User $user)\n {\n //\n }", "title": "" } ]
05ed02343a56666c791343705eb34ca7
retrieve a single supply
[ { "docid": "b5ee3b69703e8e78fa97106c42cfcb2f", "score": "0.52984804", "text": "public function get($which)\n\t{\n $sql = sprintf(\"SELECT * from SUPPLIES where ID = %d\", $which);\n $query = $this->db->query($sql);\n $result = $query->result();\n $reset = reset($result);\n return $reset;\n\t}", "title": "" } ]
[ { "docid": "f60e28d628a8c1b1fb54cb063c558fe4", "score": "0.7132146", "text": "public function getSupply(){\n $command = new Command($this->host, self::BLOCKS_GET_SUPPLY,\"GET\", $this->enableCache, $this->cacheLifetime, $this->cacheFolder);\n $command->execute();\n return $this->convertAmountToFloat($command->getData(\"supply\"));\n }", "title": "" }, { "docid": "237fd5d6087c1ac95194684c3384bbd0", "score": "0.66972303", "text": "public function show(Supply $supply)\n {\n //\n }", "title": "" }, { "docid": "237fd5d6087c1ac95194684c3384bbd0", "score": "0.66972303", "text": "public function show(Supply $supply)\n {\n //\n }", "title": "" }, { "docid": "32e3f49447af0570d2e6dca3235c7d09", "score": "0.6538224", "text": "public function supply($supply)\n {\n return $this->setProperty('supply', $supply);\n }", "title": "" }, { "docid": "4d0788e4b3835943ed96a0cf9b7de7aa", "score": "0.64675283", "text": "public function show(Supply $supply)\n {\n return response()->json( new SupplyNutrientResource($supply) );\n }", "title": "" }, { "docid": "bbdf3052afa27d6f53727a552bdf8d79", "score": "0.631474", "text": "function item_get()\n {\n $key = $this->get('id');\n if (!$key)\n {\n $this->response($this->supplies->all(), 200);\n } else\n {\n $result = $this->supplies->get($key);\n if ($result != null)\n $this->response($result, 200);\n else\n $this->response(array('error' => 'Menu item not found!'), 404);\n }\n }", "title": "" }, { "docid": "a71d260c50a36beecfea3bfdc38baab0", "score": "0.6215767", "text": "public function getSupplier()\n {\n return $this->sendRequest('supplier');\n }", "title": "" }, { "docid": "34596b921be1cc51ff5c1c5f7a45cb06", "score": "0.6147756", "text": "public function SuppObj() {\n\tthrow new exception('Call SupplierRecord() instead.');\n\treturn $this->Engine()->Suppliers()->GetItem($this->ID_Supplier);\n }", "title": "" }, { "docid": "f3074d062fc36523dae135164dc73716", "score": "0.57778925", "text": "public function get_supply_items() {\n\t\treturn $this->supplies->group_by('supply_id')->find_all();\n\t}", "title": "" }, { "docid": "30395268a7c1456b8d6af3f8597513ff", "score": "0.5719478", "text": "function product() {\n\t\t\n\t\t$id = isset($this->passedArgs['id']) ? $this->passedArgs['id'] : null;\n\t\t$number = isset($this->passedArgs['number']) ? $this->passedArgs['number'] : null;\n\t\t$storeNumber = isset($this->passedArgs['store']) ? $this->passedArgs['store'] : 1;\n\t\t\n\t\tif ($id != null)\n\t\t\t$product = $this->Product->findById($id);\n\t\telse if ($number != null)\n\t\t\t$product = $this->Product->findByNumber($number);\n\n\t\tif (isset($product) && !empty($product)) {\n\t\t\t$this->__product($product, $storeNumber);\n\t\t\t\n\t\t\tif (isset($this->params['requested'])) {\n\t\t\t\treturn $product;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->redirect(\"/\");\n\t\t}\n\t}", "title": "" }, { "docid": "a5113bf9c020b8a532e7c725ebde21ce", "score": "0.570816", "text": "protected function _retrieve()\n {\n /* @var $stockItem Mage_CatalogInventory_Model_Stock_Item */\n $stockItem = $this->_loadStockItemById($this->getRequest()->getParam('id'));\n return $stockItem->getData();\n }", "title": "" }, { "docid": "82e091a5101f18ace192a9beaeb2ddc5", "score": "0.5705003", "text": "public function edit(Supply $supply)\n {\n //\n }", "title": "" }, { "docid": "82e091a5101f18ace192a9beaeb2ddc5", "score": "0.5705003", "text": "public function edit(Supply $supply)\n {\n //\n }", "title": "" }, { "docid": "bdea0a9ea7639a1dcf6d9111b23cfbf5", "score": "0.56411946", "text": "function getSupplier() {\n\t\treturn mofilmSupplier::getInstance($this->getSupplierID());\n\t}", "title": "" }, { "docid": "bb88bf27e87b92273babc2e473c9e6d1", "score": "0.5606235", "text": "public function getFirstOffer()\n {\n return $this->offers[0];\n }", "title": "" }, { "docid": "0bfb28706b36201f54b9ba24822d379d", "score": "0.5590195", "text": "public function getSupplier()\n\t{\n\t\treturn $this->supplier;\n\t}", "title": "" }, { "docid": "3dfe9e38fc5d7232fcbadb736a43af12", "score": "0.5579407", "text": "public static function supplyNeedsService()\n {\n return self::getService('inventorysuccess/service_supplyNeedsService');\n }", "title": "" }, { "docid": "f12eb9b1e80502e7ab37e282e48abe3f", "score": "0.55419534", "text": "public function getSupplyChannel()\n {\n return $this->supplyChannel instanceof ChannelResourceIdentifierBuilder ? $this->supplyChannel->build() : $this->supplyChannel;\n }", "title": "" }, { "docid": "de645e42edfdc96a3ca9e231083cc4c2", "score": "0.55287457", "text": "function getSupplierById($mid){\n\t\t\t$query=\"select * from Supplier where id=$mid\";\n\t\t\treturn $this->query($query);\n\t\t}", "title": "" }, { "docid": "5180f616583e7bd6239e9bb9b453ee59", "score": "0.5525947", "text": "public function getOne()\n {\n }", "title": "" }, { "docid": "b7e9441546460fed3c0247c2474136fd", "score": "0.55233836", "text": "function read_single(){\n \n // select all query\n $query = \"SELECT\n num As id, Supplement_id As supple, Supplier_ID As supplier, Description as descript, Cost_excl As cost_excl, Cost_incl As cost_incl,\n Min_levels As min_lvls, Current_stock_levels As cur_stock_lvls, Nappi_code As nappi\n FROM\n \" . $this->table_name . \" \n WHERE\n num= '\".$this->id.\"'\";\n \n // prepare query statement\n $stmt = $this->conn->prepare($query);\n \n // execute query\n $stmt->execute();\n return $stmt;\n }", "title": "" }, { "docid": "af07225065f8d449e9decae202f1dfb1", "score": "0.5494462", "text": "public function testRetrieve()\n {\n VCR::insertCassette('rates/retrieve.yml');\n\n $shipment = Shipment::create(Fixture::basicShipment());\n\n $rate = Rate::retrieve($shipment->rates[0]['id']);\n\n $this->assertInstanceOf('\\EasyPost\\Rate', $rate);\n $this->assertStringMatchesFormat('rate_%s', $rate->id);\n }", "title": "" }, { "docid": "b306e11de896adb4f9d9353caa97f50f", "score": "0.5482462", "text": "public function actionGetSupplier() {\n $itemid = Yii::app()->request->getParam('itemid');\n $l = array('id' => '');\n $list = Yii::app()->db->createCommand(\"select v.id,v.name,v.firm_name from vendor v,vendor_item_supply vs where vs.vendor_id=v.id and vs.purchase_item_id=$itemid\")->queryAll();\n if (!empty($list)) {\n echo CJSON::encode(array('items' => $list, 'item' => $l));\n } else {\n $l = array('id' => '1', 'name' => 'Open Market');\n echo CJSON::encode(array('item' => $l));\n }\n }", "title": "" }, { "docid": "e1bda029f76ebc76d22cf257aa33061f", "score": "0.5481275", "text": "function getOne();", "title": "" }, { "docid": "0ac5c4a8939f82378e37b257f10c1134", "score": "0.5471966", "text": "public function getProduct() {\r\n try {\r\n $sql = \"SELECT * FROM products WHERE sku=:sku\";\r\n $stmt = $this->db->prepare($sql);\r\n $data = [\r\n 'sku' => $this->_sku\r\n ];\r\n $stmt->execute($data);\r\n $result = $stmt->fetch(\\PDO::FETCH_ASSOC);\r\n return $result;\r\n } catch (Exception $e) {\r\n die(\"Greska u upitu!\");\r\n }\r\n }", "title": "" }, { "docid": "e47225a4dca7c132b012bda2fd1e5348", "score": "0.547058", "text": "public function retrieve();", "title": "" }, { "docid": "3f2abe1e0f29939811e90f98e6404c07", "score": "0.5421278", "text": "public function getDetails( ) {\n\t\t\n\t\treturn $this->db->get_row( \n\t\t\t$this->db->prepare( \"SELECT * FROM `{$this->products}` WHERE `productId` = '%d'\", $this->id ) \n\t\t);\n\t}", "title": "" }, { "docid": "2655df23a753da37df7a9c110c9b93cb", "score": "0.5417325", "text": "function GetOne($id) {\n\t\treturn $this -> db -> select('st.id as stid,st.name AS state,s.name as name,s.url as url,s.contact_no as contact_no,s.address as address,s.latitude as latitude,s.longitude as longitude,s.id as id,s.state as state_id') -> join('states st', 's.state = st.id', 'INNER') -> where('s.id', $id)->order_by('name','ASC') -> limit(1) -> get('stores s') -> result();\n\n\t}", "title": "" }, { "docid": "8bef6a1469cb5a06586792771027150e", "score": "0.53775406", "text": "public function show($id)\n {\n //\n $supplier = Supplier::findOrFail($id);\n return $supplier;\n }", "title": "" }, { "docid": "7eff3cb645444524344a124e138701b4", "score": "0.5349195", "text": "function single_get()\n { \n $id=(int) $this->get('id');\n $skill = $this->skill_model->read_specific_skills( $id );\n \n if($skill)\n {\n $this->response($skill, REST_Controller::HTTP_OK); // 200 being the HTTP response code\n }\n \n else\n {\n $this->response(NULL, REST_Controller::HTTP_NOT_FOUND);//Errors to be handled application side\n }\n }", "title": "" }, { "docid": "d860233158c5f017906b6af3f9da40ce", "score": "0.53449315", "text": "public function show($id)\n {\n $message = DB::table('supply')->where('id',$id)->first();\n return view('supply.show', compact('message'));\n }", "title": "" }, { "docid": "2844248acc8c3bdbd1cbd3b27b39319a", "score": "0.53224564", "text": "function readOne()\n {\n\n // query to read single record\n $query = \"SELECT\n *\n FROM\n \" . $this->table_name . \" where id = ?\";\n\n // prepare query statement\n $stmt = $this->db->prepare($query);\n\n // bind id of product to be updated\n $stmt->bindParam(1, $this->id);\n\n // execute query\n $stmt->execute();\n\n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n // set values to object properties\n $this->nomTrajet = $row['NomTrajet'];\n $this->date_heure = $row['Date_Heure'];\n $this->nombrePlace = $row['NombrePlace'];\n $this->voitureid = $row['VoitureId'];\n $this->conducteurId = $row['ConducteurId'];\n }", "title": "" }, { "docid": "345a4da867ac303d41547e9ff4401c7f", "score": "0.53191483", "text": "public function get_supplier()\n {\n $query = $this->db->query(\"SELECT * FROM tbl_supplier\");\n return $query->result();\n }", "title": "" }, { "docid": "b09fa94dadff84dd96334b0e0050969f", "score": "0.5297643", "text": "public function getSupplier()\n {\n return $this->hasOne(Supplier::className(), ['id' => 'id_supplier']);\n }", "title": "" }, { "docid": "98fef7f5f319895f7017031e22ff8ae7", "score": "0.5293836", "text": "protected function _getOfferFromRequest() \n\t{\n\t\t// ----------------------------------\n\t\t// \tOffer ID\n\t\t// ----------------------------------\n\n\t\t$offerId = $this->_getParam('id');\n\n\t\tif(!$offerId) {\n\t\t\tGTW_Messenger::getInstance()->addMessage('No Offer ID given.', 'notice');\n\t\t\t$this->_forward('browse');\n\t\t}\n\t\t\t\n\n\t\t// ----------------------------------\n\t\t// \tOffer\n\t\t// ----------------------------------\n\n\t\t$offer = $this->_offerService->getOfferById($offerId);\n\n\t\tif(!$offer) {\n\t\t\tGTW_Messenger::getInstance()->addMessage(\"Offer with ID '$offerId' not found.\", 'notice');\n\t\t\t$this->_forward('browse');\n\t\t}\n\n\t\treturn $offer;\n\t}", "title": "" }, { "docid": "ca61f092a04b4dd7a1a70014a20a4daf", "score": "0.52755755", "text": "private function getSupplierById($id)\n {\n return $this->suppliers()->find($id);\n }", "title": "" }, { "docid": "cbb8a977d97953a99d50c85cb6b878d7", "score": "0.5243169", "text": "function readOne(){\n \n // query to read single record\n $query = $query = \"SELECT * FROM \" . $this->table_name . \" p\n WHERE p.paechterID = ?\n LIMIT 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of product to be updated\n $stmt->bindParam(1, $this->paechterID);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->paechterID = $row['paechterID'];\n $this->huetteID = $row['huetteID'];\n $this->mail = $row['mail'];\n $this->telefonnummer = $row['telefonnummer'];\n $this->vorname = $row['vorname'];\n $this->nachname = $row['nachname'];\n }", "title": "" }, { "docid": "4e05be447356f7ffc1ad948f42f306b4", "score": "0.52336085", "text": "public function getASupplierById($supplier_id);", "title": "" }, { "docid": "c0a97588a40d33df64a0a96f5ef5769f", "score": "0.5220488", "text": "public function getSingle()\n {\n }", "title": "" }, { "docid": "723a923c90e583ea5fe6d5baeefb86e9", "score": "0.5214456", "text": "function getProduct();", "title": "" }, { "docid": "3ac2193de3ab13b58ac9b3c17a4dabff", "score": "0.52132404", "text": "function readOne(){\n $query = \"SELECT\n ID AS id\n\n FROM\n ESTUDIANTE\n \n WHERE\n id=:id\";\n \n\n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n\t$this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n \n // bind id of product to be updated\n $stmt->bindParam(':id', $this->id);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\t\n\treturn $stmt;\n}", "title": "" }, { "docid": "8586f4e582a43f6e9cefa9d47a5fd715", "score": "0.52111596", "text": "function readOne(){\n\n // query to read single record\n $query = \"SELECT * FROM \" . $this->table_name . \" WHERE idDoctor = ? LIMIT 0,1\";\n\n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n\n // bind id of product to be updated\n $stmt->bindParam(1, $this->idDoctor);\n\n // execute query\n $stmt->execute();\n\n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n // set values to object properties\n $this->idDoctor = $row['idDoctor'];\n $this->nombre = $row['nombre'];\n $this->apellidos = $row['apellidos'];\n $this->telefono = $row['telefono'];\n $this->email = $row['email'];\n }", "title": "" }, { "docid": "bddfcf538a9b96e18e1475f0c0ca53e9", "score": "0.5201001", "text": "public function show(Supply $supplier): View\n {\n return view('product::supply.view', ['item' => $supplier]);\n }", "title": "" }, { "docid": "90bc54016fa702bd4b0a9961a0633f5f", "score": "0.52008045", "text": "public static function retrieve($id=null)\n\t{\n\t\t$request = new Request();\n \n\t\tif( !is_null($id) )\n\t\t{\n\t\t\t$response = $request->get('buyer/' . $id);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$response = $request->all('buyer'); \n\t\t}\n\n\t return $response;\n\t}", "title": "" }, { "docid": "bb297ce3d1545d12aa1542c3177be282", "score": "0.5195117", "text": "public function getProduct();", "title": "" }, { "docid": "7db05b82629333ab72e49d8a80e88e35", "score": "0.5192462", "text": "public function action_get() {\n\t\t$redeem_id = $this->param('id');\n\t\t// Check if the redeem actually belongs to the current user\n\t\t$redeem = Model_Offer_Redeem::query()\n\t\t\t->where('id', $redeem_id)\n\t\t\t->where('user_id', $this->user_login->user_id)\n\t\t\t->get_one();\n\n\t\tif (! $redeem) {\n\t\t\treturn $this->_error_response(Code::ERROR_INVALID_REDEEM_ID);\n\t\t}\n\n\t\t$redeem_info = $this->_get_redeem_info($redeem);\n\t\t$output = array('meta' => array('error' => '', 'status' => 1), 'data' => array('redeem' => $redeem_info));\n\t\t$this->response($output);\n\t}", "title": "" }, { "docid": "b2d290d9c419cc2fbb856f4dec621a99", "score": "0.5190696", "text": "public function getSupplier($id)\n\t{\n\t\treturn $this->database->table(self::TABLE_NAME)\n\t\t\t->where(self::COLUMND_ID, $id)->fetch();\n\t}", "title": "" }, { "docid": "b9bba224774045c0c0120e6d1a5ef36b", "score": "0.5181016", "text": "public function single()\n {\n $this->execute();\n\n return $this->stmt->fetch();\n }", "title": "" }, { "docid": "f88e9f088c23cd2ef8e2715799fd8c24", "score": "0.5177006", "text": "public function get() {\n\t\t$args = func_get_args() ;\n\t\treturn $this->__call('get', $args) ;\n\t}", "title": "" }, { "docid": "38aca1cfa4160dbe9de52e21835cf6bd", "score": "0.5173008", "text": "public function get_one($id)\n {\n }", "title": "" }, { "docid": "ee035fdaca520abaa01b02a43bf092eb", "score": "0.51578224", "text": "function get($part) {\n // PARAM $part : part number\n\n $sql = \"SELECT * FROM `inventory_stock` WHERE `part_no`=?\";\n $stock = $this->fetch($sql, [$part]);\n return count($stock)==0 ? false : $stock[0] ;\n }", "title": "" }, { "docid": "06e20c0050641e516aaba27ba0e2b809", "score": "0.5157457", "text": "public function get_single($id);", "title": "" }, { "docid": "048f4ffcc08dc9095d9e8a08e0e1e1e3", "score": "0.5144963", "text": "public function retrieveById($identifier){\n return $this->model::where(\"id\", $identifier)->first();\n }", "title": "" }, { "docid": "0d99006b03e0ab5803acf4d86f21651e", "score": "0.51440483", "text": "public function getOne(){\n\n\t\t\t$producto = $this->db->query(\"SELECT * FROM pedidos WHERE id_pedido = '{$this->getId_pedido()}'\");\n\n\t\t\treturn $producto->fetch_object();\n\t\t}", "title": "" }, { "docid": "a6768857f40bb9403463b0231ba93737", "score": "0.5143595", "text": "public function show($id)\n {\n //\n return PickupDriverDetail::findOrFail($id);\n //$pickup_driver_detail = PickupDriverDetail::findOrFail($id);\n //return new PickupDriverDetailResource($pickup_driver_detail);\n }", "title": "" }, { "docid": "570733c28b7b305aeef4394efc51e1e6", "score": "0.5141518", "text": "private function getCard()\n {\n //Mix the decks\n shuffle($this->decks);\n //Get a card\n return $this->decks[0]->getCard();\n }", "title": "" }, { "docid": "f8cd8ffb4c4dcaeaa511262e9295e3c1", "score": "0.5139676", "text": "function edit($supplyId= NULL)\n\t{\n\t\tif($supplyId== NULL) show_error(\"You cannot access this page directly\");\n\n\t\t$s = new Supply();\n\t\t$s->get_by_id($supplyId);\n\t\tif(!$s->exists()) show_error('The supply you are trying to edit does not exist');\n\n\t\tif($this->input->server('REQUEST_METHOD') == 'POST')\n\t\t{\n\t\t\t$s->name = $this->input->post('name', TRUE);\n\t\t\t$s->price = $this->input->post('price', TRUE);\n\n\t\t\tif($s->save())\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('success', 'The Supply was successfully updated');\n\t\t\t\tredirect($this->uri->uri_string());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$data['errors'] = $s->error;\n\t\t\t}\n\t\t}\n\t\t$data['supply'] = $s;\n\t\t$data['heading']= 'Edit Supply';\n\t\t$this->load->view('supplies/edit',$data);\n\t}", "title": "" }, { "docid": "ff5bd48bfa0ed6b0d018e2f2a1306627", "score": "0.5134518", "text": "private function getMarket(): \\App\\Entity\\Building\n {\n \tif (!$this->market) {\n\t\t\t$market = $this->em->getRepository(\\App\\Entity\\Building::class)->findOneBy([\n\t\t\t\t\"base\" => $this->base,\n\t\t\t\t\"array_name\" => \"market\"\n\t\t\t]);\n\n\t\t\t$this->market = $market;\n\t\t}\n\n return $this->market;\n }", "title": "" }, { "docid": "a3d26f125af5286ec1951446127d2c35", "score": "0.51344013", "text": "public function single(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetch(PDO::FETCH_OBJ);\n\t}", "title": "" }, { "docid": "6fae746f394a6efc7440b6f496688795", "score": "0.5126449", "text": "public function getOne($id)\n { \n return Mfp_procurementPlan::where('mfp_procurement_id', $id)->first(); \n }", "title": "" }, { "docid": "7a7915b21fe32cce51a96cda4a13cf38", "score": "0.51195544", "text": "public function single(){\r\n $this->execute();\r\n return $this->stmt->fetch(PDO::FETCH_OBJ);\r\n }", "title": "" }, { "docid": "51295f42abef2f6bce8d3f4215c3aa73", "score": "0.5115275", "text": "public function getProduct()\n {\n return Mage::registry('product');\n }", "title": "" }, { "docid": "51295f42abef2f6bce8d3f4215c3aa73", "score": "0.5115275", "text": "public function getProduct()\n {\n return Mage::registry('product');\n }", "title": "" }, { "docid": "c7fd2bcf46ea90a48d2fd7422e9648c8", "score": "0.51088196", "text": "public function retrieve()\n {\n $this->setApiController(self::PLAN_URL . $this->lookupPlanId);\n\n return $this->sendGetRequest();\n }", "title": "" }, { "docid": "4e611e1f7035b9e9ad6dde6a73333ae6", "score": "0.5105243", "text": "function getProduct() {\n\t\t\treturn Mage::registry( 'product' );\n\t\t}", "title": "" }, { "docid": "1972c85792bdd83bdb67686683e86a96", "score": "0.5102927", "text": "public function getItem()\n {\n return $this->hasOne(CatalogProduct::className(), ['id' => 'item_id']);\n }", "title": "" }, { "docid": "b133309480cbab46dafbc1518379c2ec", "score": "0.51019436", "text": "function loadProductDetails() \n{\n if(isset($_GET['id']))\n {\n $id = $_GET['id'];\n $db = $GLOBALS['db'];\n $stmt = $db->query(\"SELECT * FROM drinks WHERE id = '$id'\");\n\n $product = $stmt->fetch(PDO::FETCH_ASSOC);\n\n if(!$product)\n {\n exit('Product does not exist!');\n }\n else\n {\n return $product;\n }\n }\n else\n {\n exit('Product does not exist!');\n }\n}", "title": "" }, { "docid": "2e62c32344545512f773a81e67d0ad27", "score": "0.5100344", "text": "public function single(){\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "617b1042ee117f01883b866e30902b85", "score": "0.5098987", "text": "function readOne(){\n $query = \"SELECT\n recipe_id, api_name, api_recipe_id, title, author, recipe_link\n FROM\n \" . $this->table_name . \"\n WHERE\n recipe_id = ?\";\n\n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n\n // bind id of product to be updated\n $stmt->bindParam(1, $this->recipe_id);\n\n // execute query\n $stmt->execute();\n\n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n // set values to object properties\n $this->recipe_id = $row['recipe_id'];\n $this->api_name = $row['api_name'];\n $this->api_recipe_id = $row['api_recipe_id'];\n $this->title = $row['title'];\n $this->author = $row['author'];\n $this->recipe_link = $row['recipe_link'];\n }", "title": "" }, { "docid": "3646c22b451590abc141235c3093d8df", "score": "0.509343", "text": "public function product()\n {\n return $this->product;\n }", "title": "" }, { "docid": "1903d3cb373162170246f6a17b54c58d", "score": "0.50931", "text": "function getItem($skuNumber) {\n $connection = connFulfillmentUser();\n try {\n $sql = 'SELECT \n skuNumber\n , partNumber\n , DESC1\n , DESC2\n , DESC3\n , DESC4\n , QOH2\n , PUT\n , SCOST\n , CAT\n , QPK\n , UNIT\n FROM itemsf\n WHERE skuNumber = :skuNumber';\n $stmt = $connection->prepare($sql);\n $stmt->bindValue(':skuNumber', $skuNumber, PDO::PARAM_INT);\n $stmt->execute();\n $item = $stmt->fetch(PDO::FETCH_ASSOC);\n $stmt->closeCursor();\n } catch (PDOException $ex) {\n return FALSE;\n }\n return $item;\n}", "title": "" }, { "docid": "78c2f82bdbcfdc98ad870b9afa39d6c6", "score": "0.5091353", "text": "private function get_course_info(){\n\t\t$pf = new WC_Product_Factory(); \n\t\t$gift_product = $pf->get_product( $this->id );\n\n\t}", "title": "" }, { "docid": "e65e52d4bb9247d7e605366d2c7b84c8", "score": "0.5090396", "text": "public function getProduct()\r\n {\r\n return Mage::registry('product');\r\n }", "title": "" }, { "docid": "0f3407843ee70e57e887168848b32e24", "score": "0.50845367", "text": "public static abstract function get_one(&$source);", "title": "" }, { "docid": "4fb1ed794aba2efd29e923d8b127f8e8", "score": "0.50809884", "text": "public function getSupplies()\n\t{\n\t\t$sql = sprintf(\"SELECT * from SUPPLIES\");\n $query = $this->db->query($sql);\n return $query->result();\n\t}", "title": "" }, { "docid": "8e6280205328cf1258bcc50e674448a8", "score": "0.5079849", "text": "protected function getCard()\n {\n return $this->fixtures->getReference('card-1');\n }", "title": "" }, { "docid": "ff9b0c64ddec7a35e52c707b474c0ec5", "score": "0.5074583", "text": "function readOne(){\n $query = \"SELECT * FROM \" . $this->table_name . \" AS p WHERE p.idProduct = ?\";\n\n $stmt = $this->conn->prepare($query);\n $stmt->bindParam(1, $this->idProduct);\n $stmt->execute();\n\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n $this->prodName = $row['prodName'];\n $this->price = $row['price'];\n $this->quantity = $row['quantity'];\n $this->type = $row['type'];\n $this->description = $row['description'];\n $this->image = $row['image'];\n $this->image2 = $row['image2'];\n $this->image3 = $row['image3'];\n $this->Category_idCategory = $row['Category_idCategory'];\n $this->User_idUser = $row['User_idUser'];\n\n }", "title": "" }, { "docid": "b26a28b054655f705270230ce6e5a959", "score": "0.50664556", "text": "public function fetchOne($id){\n $conn = Connection::getInstance();\n $query = $conn->prepare(\"select * from tbl_product where id=:id\");\n $query->execute(array(\"id\"=>$id));\n //tra ve mot ban ghi\n return $query->fetch();\n }", "title": "" }, { "docid": "8246aafc815bd1bcffb8c61b0a6639d1", "score": "0.5058519", "text": "public function getOneProduct($request, $response,$args)\n {\n $product_id = $args['product_id'];\n $product = $this->product->getProduct($product_id);\n if(!$product) {\n $response->getBody()->write(json_encode(false));\n return $response->withStatus(400);\n }\n\n $response->getBody()->write(json_encode($product));\n return $response->withStatus(200);\n }", "title": "" }, { "docid": "83132ff0a6ca6d6c3c525e12bb3f8bc2", "score": "0.5056846", "text": "function product_getType($item_number, $key) {\n $result = performApiRequest($key, 0, 'GET', 'art;WHERE `artikelnummer`=' . $item_number);\n if (sizeof($result) > 0) {\n return $result[0]->art;\n } else {\n return null;\n }\n}", "title": "" }, { "docid": "83e79c1e726f43a7c40adaff6811cbd8", "score": "0.50468487", "text": "public function getCostitem()\n {\n return Mage::registry('current_costitem');\n }", "title": "" }, { "docid": "efdd6e6d0b8f7579f9d5ec5d822a23d6", "score": "0.5039551", "text": "function CampCapacity($dbtable, $capacity_column_name, $connection, $camp_column_name, $camp_name){\n\t\t\t$query = \"SELECT $capacity_column_name FROM \". $dbtable . \" WHERE $camp_column_name='$camp_name'\";\n\t\t\t$result = mysqli_query($connection, $query) or die(mysqli_error($connection));\n\t\t\t$row = mysqli_fetch_array($result, MYSQLI_NUM); #only grabs first row\n\t\t\treturn $row[0];\n\t}", "title": "" }, { "docid": "15ba529ec0c632400bee99565fbd9086", "score": "0.5037352", "text": "public function getProduct()\n {\n return $this->getProducts()->getItemById($this->getProductId());\n }", "title": "" }, { "docid": "36084e650af85b61319413208b67e5d1", "score": "0.5033092", "text": "public function single(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetch(PDO::FETCH_ASSOC);\n\t}", "title": "" }, { "docid": "7d251d3da54700b473d23171459f0fe4", "score": "0.5026882", "text": "public function single() {\n $this->execute();\n return $this->statement->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "1cfdeeea5d2c992ca5fc7dee9b1a77b9", "score": "0.50258243", "text": "public function findOne()\r\n {\r\n return $this->adapter->findOne();\r\n }", "title": "" }, { "docid": "0f79687fcfbe3017427097d7ccc852b9", "score": "0.5025726", "text": "public function single(){\n \t\t$this->execute();\n \t\treturn $this->stmt->fetch(PDO::FETCH_ASSOC);\n\t}", "title": "" }, { "docid": "aaf2259846d68b27b04525a16ddbfad1", "score": "0.50187373", "text": "public function retrieve() {\n return self::execute(\"a288a83e-be1e-4f04-98d7-b5f7b6949cb5\",$this);\n }", "title": "" }, { "docid": "65bffcbf530c204012575a7bd8335d5b", "score": "0.50181836", "text": "public function single()\n {\n $this->execute();\n return $this->statment->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "1bbe2efc5b8785b91361ad2b2e1243bc", "score": "0.5016468", "text": "function get_item()\n\t{\n\t\t// if we have no id, or if id is empty\n\t\tif ( ! isset($_GET['id']) || empty($_GET['id']) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tglobal $database;\n\n\t\t$item = $database->get(\"items\", \"text\", [\n\t\t\t\"id\" => $_GET['id']\n\t\t]);\n\n\t\tif ( ! $item ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $item;\n\t}", "title": "" }, { "docid": "c2a0787fb7230f73848c8e2b0d68ca6f", "score": "0.5015715", "text": "public function retrieveById($identifier);", "title": "" }, { "docid": "c2a0787fb7230f73848c8e2b0d68ca6f", "score": "0.5015715", "text": "public function retrieveById($identifier);", "title": "" }, { "docid": "2c5a4265d02e64074f28a30c711e62b8", "score": "0.5009586", "text": "public function getlecturer ($id){\n $lecturersDetail = $this -> restfullDAO -> getlecturersById ($id );\n return $lecturersDetail [0];\n }", "title": "" }, { "docid": "c2a52a49c355afadc96bdca6fab1e313", "score": "0.50028354", "text": "function getProductInfo($invId)\n{\n $db = acmeConnect();\n $sql = 'SELECT * FROM inventory WHERE invId = :invId';\n $stmt = $db->prepare($sql);\n $stmt->bindValue(':invId', $invId, PDO::PARAM_INT);\n $stmt->execute();\n $prodInfo = $stmt->fetch(PDO::FETCH_ASSOC);\n $stmt->closeCursor();\n return $prodInfo;\n}", "title": "" }, { "docid": "1b87ad85aa661381321e014beb03a28b", "score": "0.49980485", "text": "public function retrieve($id);", "title": "" }, { "docid": "7fa8bdfb5fdc627ac8ef1425393c80df", "score": "0.499731", "text": "public function get(string $claim)\n {\n }", "title": "" }, { "docid": "b0cd580a55b24f903cc489d5eb201394", "score": "0.4995494", "text": "function item_get()\n {\n $key = $this->get('id');\n $result = $this->Receiving->get($key);\n if ($result != null)\n $this->response($result, 200);\n else\n $this->response(array('error' => 'Receiving item not found!'), 404);\n }", "title": "" }, { "docid": "80c188d20c5d8bcf3642913064eddf8b", "score": "0.49951628", "text": "public function editSupply(Request $request)\n {\n $supply=Supply::find($request->input('selected_supply_to_edit'));\n $supply->supplier_id=$request->input('edit_supplier_name');\n $supply->product_name=$request->input('edit_product_name');\n $supply->single_product_price=$request->input('edit_single_product_price');\n $supply->unit_id=$request->input('edit_unit_type');\n $supply->tax_percentage=$request->input('tax_percentage_edit');\n $supply->save();\n\n return redirect()->back();\n }", "title": "" }, { "docid": "0f1f7f1d5b5bd61bc685bc65cfd2d18e", "score": "0.49926683", "text": "function getProductByNumber($arg, $key) {\n $result = performApiRequest($key, 0, 'GET', '*;WHERE `artikelnummer`=' . $arg);\n if (sizeof($result) > 0) {\n return $result[0];\n } else {\n return null;\n }\n}", "title": "" }, { "docid": "e5553c5f93018eedc984f2989bbe2518", "score": "0.4990284", "text": "public function getCard()\n {\n \treturn Mage::registry('current_card');\n }", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "8dcf50dd27c265726958456310598f0e", "score": "0.0", "text": "public function update(Request $request, TransationDetail $transationDetail)\n {\n //\n }", "title": "" } ]
[ { "docid": "ae90a700efd6cf3cd7c51c1c4442503a", "score": "0.7658553", "text": "public function update(ResourceInterface $resource);", "title": "" }, { "docid": "d6a508508d13bb02f2a247e9bf196f78", "score": "0.71877676", "text": "function update ( $id, $resource ) {\r\n\r\n }", "title": "" }, { "docid": "8466495927f3bd478b5fd2d917f45f08", "score": "0.7099208", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "9a55d4f96f94897978c13d34337c1901", "score": "0.6808637", "text": "public function update(StoreResource $request, $id)\n {\n $input = $request->all();\n \n $resource = Resource::find($id);\n \n $resource->fill($input);\n \n $resource->save();\n\n // redirect\n Session::flash('message', 'Successfully saved resource!');\n return redirect('resources');\n }", "title": "" }, { "docid": "cce47cfb911f4e7678d10bb61eec6271", "score": "0.6523108", "text": "public function update(Request $request, Resource $resource)\n {\n $this->validate($request, [\n 'name' => 'required|max:255',\n ]);\n \n $resource->update($request->except(['_method', '_token']));\n \n flash('El recurso fue actualizado');\n \n return redirect()->route('resource.index');\n }", "title": "" }, { "docid": "1414dc19f0f4ccb3b9d9b0c2f9754c1a", "score": "0.64248925", "text": "public function update(Request $request, Storage $storage)\n {\n //\n $storage->update($request->all());\n\n return redirect()->route('storage.index');\n }", "title": "" }, { "docid": "8b641f5e241101e64f479c764289bfd7", "score": "0.64144814", "text": "public function update(Request $request, Resource $resource)\n {\n\n try {\n $this->validate($request, [\n 'name' => 'required|string|unique:resources,name,' . $resource->id,\n 'group' => 'required|exists:groups,id',\n \"description\" => \"nullable|string\"\n ]);\n $resource->name = $request->name;\n $resource->group_id = $request->group;\n $resource->description = $request->description;\n $resource->save();\n session()->flash('flash_success', 'Updated Successfully.');\n return Redirect::route('resources.index');\n } catch (ValidationException $exception) {\n return Redirect::back()->withErrors($exception->errors())->withInput();\n } catch (Exception $e) {\n session()->flash('flash_error', 'Something went wrong');\n return $e->getMessage();\n return Redirect::back();\n }\n }", "title": "" }, { "docid": "d131fb800138c5d8889803afda8ecf7b", "score": "0.62923384", "text": "public function updateResource(){\n\t\t$this->setTitle('Update resource');\n $this->name = $_POST['name'];\n $this->id = $_POST['resource_id'];\n $this->rate = $_POST['rate'];\n $this->description = $_POST['description'];\n $this->type = $_POST['type'];\n $this->loadModel('resource');\n\t\t$this->added_resource = $this->model->updateResources($this->id,$this->name,$this->rate,$this->description,$this->type);\n $this->render('resource/_bewerkt.tpl');\n\t}", "title": "" }, { "docid": "6644414d1c8deb86d17216b9f77e38da", "score": "0.62589455", "text": "public function updateStream($path, $resource, $config = null);", "title": "" }, { "docid": "35958bbf8b0dca0d5dcadddf00962ef1", "score": "0.6193939", "text": "public function update() {\n \t\t//Does the Resource object have an id?\n if ( is_null( $this->id ) ) trigger_error (\"Resource::update(): Attempt to update an Resource object that does not have its ID property set.\", E_USER_ERROR );\n\n\t\t//Update the Resource\n $conn = new mysqli( $DB_HOST, $DB_USERNAME, $DB_PASSWORD, $DB_NAME );\n $sql = \"UPDATE resources SET title=:?, summary=?, url=?, content=?, category=?, is_free=?, is_featured=?, is_favorite=?, date_created=? WHERE id = ?\";\n $st = $conn->prepare ( $sql );\n $st->bind_param( 'sssssiiisi', $this->title, $this->summary, $this->url, $this->content, $this->category, $this->is_free, $this->is_featured, $this->is_favorite, date(\"Y-m-d H:i:s\"), $this->id );\n\n $st->execute();\n $conn = null;\n}", "title": "" }, { "docid": "27fdfad09c0210d824e7b3fabe4e253e", "score": "0.6178334", "text": "public function update(Request $request, $id)\n {\n // if(Auth::user()->admin){\n $storage = Storage::findOrFail($id);\n $storage->name = $request->name;\n $storage->address = $request->address;\n $storage->save();\n Session::flash('success','You successfully updated storage!');\n// }\n// else{\n// Session::flash('error','You do not have enough permission!');\n// }\n return redirect()->route('storage.index');\n }", "title": "" }, { "docid": "a25688f30a6b62a181559b84d042105c", "score": "0.6148197", "text": "public function update(Request $request, $resource)\n {\n $this->authorize('update', $resource);\n\n $resource->load($this->with);\n\n $this->form()->setModel($resource)->save(function($data,$form) use (&$resource){\n $general = $data->pull('general'); \n $relations = $data->get('relations');\n\n $admin = \\Auth::guard('admin')->user();\n \n $resource->forceFill($general->toArray()); \n\n $this->event('updating', $resource); \n\n $resource->save(); \n\n $this->syncRelations($relations, $resource); \n\n $this->event('updated', $resource); \n\n return $resource;\n }); \n\n $this->checkOwner($resource);\n\n return $this->redirect($request, $resource); \n }", "title": "" }, { "docid": "9a5dcd97258a1dde56734d3bfd713b95", "score": "0.6116463", "text": "public function updateResource(Request $request, $id)\n {\n $validatedData = $request->validate(\n [\n 'title' => 'required',\n 'description' => 'required',\n 'uploadedfile' => 'mimes:flv,mp4,avi,wmv,3gp,mov,mkv,vob'\n ],\n [\n 'title.required' => 'Please enter video title.',\n 'description.required' => 'Please enter description.',\n 'uploadedfile.mimes' => 'Video format not supported.'\n ]\n );\n\n if($file = $request->hasFile('uploadedfile')) {\n \n $file = $request->file('uploadedfile') ; \n $fileName = $file->getClientOriginalName() ;\n $destinationPath = public_path().'/storage/resource' ;\n $file->move($destinationPath,$fileName);\n $resourceUpdate = DB::table('table_resources')->where([\n ['id','=',$id],\n ])->update(array(\n 'title' => $request->title,\n 'description' => $request->description,\n 'url' => $fileName\n ));\n if($resourceUpdate) {\n return redirect()->back()->with('message', 'Resource successfully updated.');\n } else {\n return redirect()->back()->withErrors(['Nothing changed. Please try again.']);\n }\n \n } else {\n $resourceUpdate = DB::table('table_resources')->where([\n ['id','=',$id],\n ])->update(array(\n 'title' => $request->title,\n 'description' => $request->description \n ));\n if($resourceUpdate) {\n return redirect()->back()->with('message', 'Resource successfully updated.');\n } else {\n return redirect()->back()->withErrors(['Nothing changed. Please try again.']);\n }\n\n }\n\n }", "title": "" }, { "docid": "7bfce29a195f384d1bcc21b603c792d2", "score": "0.6033452", "text": "public function update(Request $request, $id){\n\n $this->validate($request, $this->getValidationRules($request), $this->getValidationMessages($request));\n \n if($request->file('image')){\n $rules = [\n 'image' => 'image|mimes:jpg,jpeg,png'\n ];\n\n $this->validate($request, $rules);\n }\n\n \n try {\n $resource = Resource::withTrashed()->findOrFail($id); \n }catch (ModelNotFoundException $e){\n $errors = collect(['El recurso con ID '.$id.' no se encuentra.']);\n return back()\n ->withInput()\n ->with('errors', $errors);\n }\n $this->setResource($resource, $request);\n \n $resource->spaces()->detach();\n $resource->spaces()->attach($request->spaces);\n\n return redirect()->route('resources.index')\n ->with('session_msg', '¡El recurso, se ha editado correctamente!');\n }", "title": "" }, { "docid": "88d2a1e76ebbaa8bd165532adff21092", "score": "0.6013595", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $resource = Resource::where('product_id', $id)->first();\n\n $this->validate(request(), [\n 'category_id' => 'required',\n 'name' => 'required',\n 'short_name' => 'required',\n// 'article' => 'required',\n 'price' => 'required',\n 'collection_id' => 'required',\n 'atribut_id' => 'required',\n ]);\n\n $product->category_id = $request->get('category_id');\n $product->name = $request->get('name');\n $product->short_name = $request->get('short_name');\n// $product->article = $request->get('article');\n $product->price = $request->get('price');\n $product->collection_id = $request->get('collection_id');\n $product->atribut_id = $request->get('atribut_id');\n\n $method = __METHOD__;\n LogFile::ProductLog($product, $method);\n $product->save(); //Сохраняем изменения продукта\n\n return redirect('admin/products')->with('update', 'Продукт обновлен');\n }", "title": "" }, { "docid": "9349dc7f33c6326d0383abd536af6ce3", "score": "0.596908", "text": "public function updated(\n $resource = null,\n array $links = [],\n $meta = null,\n array $headers = []\n ): Response {\n return $this->getResourceResponse($resource, $links, $meta, $headers);\n }", "title": "" }, { "docid": "4e5acd860dcda74c61d836d96050b079", "score": "0.59593076", "text": "public function put(Storage $storage);", "title": "" }, { "docid": "215d42ed153b26bc9b49ae5c5951d499", "score": "0.5955367", "text": "public function update(StoragesUpdateRequest $request, $id)\n {\n $now = \\Carbon\\Carbon::now();\n $storage = Storage::find($id);\n $by_id = Auth::user()->id;\n\n $storage->fill([\n 'maker' => $request->maker,\n 'model_number' => $request->model_number,\n 'serial_number' => $request->serial_number,\n 'size' => $request->size,\n 'types' => $request->types,\n 'supported_os' => $request->supported_os,\n 'recovery_key' => $request->recovery_key,\n 'storage_password' => $request->storage_password,\n 'deleted_at' => $request->deleted_at === \"1\" ? $now : null,\n 'reason' => $request->reason,\n 'updated_by' => $by_id,\n ])\n ->save();\n\n return redirect()->route('storages.show', $storage->id)->with('information', 'レコードを更新しました。');\n }", "title": "" }, { "docid": "da49ecf5dc35b8e5edb8b21644469290", "score": "0.5939757", "text": "public function update(RespondentStoreRequest $request, $id)\n {}", "title": "" }, { "docid": "b96bbe109f16f366cfd72892d0d0be64", "score": "0.5903822", "text": "public function update(Request $Request, Resource $Resource)\n {\n\t\t\t$Actions = ($Request->actions)?:[1];\n\t\t\t$Action = \"0.\" . implode(\"\",array_replace(array_fill(1,max($Actions),0),array_fill_keys($Actions,1)));\n\t\t\t$Request->action = $Action;\n\t\t\t$UpdateArray = []; $Rules = Resource::ValidationRules(); $MyRules = [];\n\t\t\tforeach($Resource->FillableFields() as $Field){\n\t\t\t\tif($Field == \"code\") continue;\n\t\t\t\tif($Request->$Field != $Resource->$Field){\n\t\t\t\t\t$Resource->$Field = $UpdateArray[$Field] = $Request->$Field;\n\t\t\t\t\tif(isset($Rules[$Field])) $MyRules[$Field] = $Rules[$Field];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(empty($UpdateArray)) return redirect()->back()->with([\"info\"=>true,\"type\"=>\"info\",\"text\"=>\"No fields to update.\"]);\n\t\t\t$Validator = Validator::make($UpdateArray,$MyRules,Resource::ValidationMessages());\n\t\t\tif($Validator->fails()) return redirect()->back()->withErrors($Validator);\n\t\t\tif($Resource->status == \"ACTIVE\" && $Resource->save()) return redirect()->route('resource.index')->with([\"info\"=>true,\"type\"=>\"info\",\"text\"=>\"The Resource: \" . $Resource->displayname . \", updated successfully\"]);\n\t\t\treturn view(\"resource.error\");\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5890722", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "f78906153226222ee5bdfc9d13a06d23", "score": "0.58857", "text": "protected function save($resource) {\n if (isset($resource['public_id'])) {\n $this->collection->update(array('public_id' => $resource['public_id']), $resource, array('upsert' => TRUE));\n }\n }", "title": "" }, { "docid": "99960e81f0d443f90e5e0aa954abd481", "score": "0.5885372", "text": "public function update($id, Request $request) {\n $this->validate($request, isset($this->model->rules_update) ? $this->model->rules_update : $this->model->rules);\n\n ${$this->resource} = $this->model->findOrFail($id);\n\n $fillable_data = array_only($request->all(), $this->model->getFillable());\n\n App::setLocale(Helpers::getLang());\n\n ${$this->resource}->update($fillable_data);\n\n Admin::handleFileUpload('image', ${$this->resource}, 'image');\n\n return Redirect::route($this->view_path . '.index')->with('success', 'yeah');\n }", "title": "" }, { "docid": "a516665e3766b23c94ab33c5940aab8d", "score": "0.5874832", "text": "public function update(UpdateRequest $request, $id)\n {\n $data = $request->all();\n $product = Product::findOrFail($id);\n\n DB::beginTransaction();\n try {\n\n tap($product)->update($data);\n\n if ($request->hasFile('image')) {\n @unlink('products' . $product->image);\n $product->image = time() . '-' . $product->description . '.' . $request->file('image')\n ->getClientOriginalExtension();\n $request->file('image')->move('products', $product->image);\n }\n\n $product->save();\n\n $productResource = new ProductResource($product);\n\n DB::commit();\n return $this->responseSuccess([\n 'message' => trans('response.ProductController.update.success'),\n 'data' => $productResource,\n ]);\n } catch (\\Exception $exception) {\n DB::rollBack();\n return $this->responseError([\n 'message' => trans('response.ProductController.update.error'),\n 'errors' => $exception->getMessage(),\n ], Response::HTTP_INTERNAL_SERVER_ERROR);\n }\n }", "title": "" }, { "docid": "dbe374356cb114ab5e44b198d87b232f", "score": "0.58492017", "text": "public function put($resource, $data){\n $client = new Client([\n 'base_uri' => $this->baseUri\n ]);\n\n //Trim left slashes\n $resource = ltrim($resource,'/');\n\n //Cache miss call to API\n $res = $client->request('PUT', $resource, [\n 'json' => $data,\n 'headers' => [\n 'Authorization' => 'Bearer ' . $this->accessToken,\n 'User-Agent' => env('BASECAMP_AGENT')\n ]\n ]);\n\n //Get JSON payload\n $json = $res->getBody()->getContents();\n\n return json_decode($json);\n }", "title": "" }, { "docid": "0bb389e7c0c131b01dec97c33ec501e0", "score": "0.579422", "text": "public function update(Request $request, $id)\n {\n $resource = MyResource::find($id);\n if ($resource != null) {\n if ($resource->user->id == $request->user()->id || $request->user()->hasRole('Admin')) {\n $request->merge(['module_id' => $request->get('module_id')]);\n $request->validate(['title' => 'required|string', 'description' => 'nullable|string', 'google_drive' => 'nullable|url|max:255', 'publish_year' => 'required|numeric|digits:4|between:2008,' . date('Y'), 'module_id' => 'required|integer|exists:modules,id']);\n $resource->update($request->all());\n\n return redirect()->route('resources.index')\n ->with('success', 'Resource updated successfully');\n }\n return abort(401, 'You\\'re not allowed to edit this resource!');\n }\n return abort('404', 'User not found!');\n }", "title": "" }, { "docid": "7dec035d65557a5fa957575b344e390d", "score": "0.5787175", "text": "protected function saveResource(&$resource) {\n $this->getConfig()->set($resource['key'], $resource['value']);\n\n $resource['id'] = $resource['key'];\n }", "title": "" }, { "docid": "231bf07a63b0a16b02c083ef86c176fd", "score": "0.57833594", "text": "public function update(Request $request, $id)\n {\n $input=$request->file_path;\n if(isset($input)) {\n $File = $this->fileUpload($input);\n }\n else{\n $File = \"course_resource/default.jpg\";\n }\n\n\n $course_resources = CourseResource::whereId($id)->firstOrFail();\n $course_resources->course_id = $request->get('course_id');\n $course_resources->title = $request->get('title');\n $course_resources->description = $request->get('description');\n $course_resources->file_path = $File;\n\n\n $course_resources->save();\n return redirect(action('CourseResourcesController@edit', $course_resources->id))->with('status', 'The file has been updated!');\n }", "title": "" }, { "docid": "611dd800c7185eb18c8f75c9a8595a6c", "score": "0.57606536", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $product->name = $request->name;\n $product->rock = $request->rock;\n $product->weight = $request->weight;\n $product->carat = $request->carat;\n $product->stock = $request->stock;\n $product->price = $request->price;\n $product->color = $request->color;\n $product->category_id =Category::find($request->category_id)->id;\n\n if($request->hasFile(\"image\")){\n //delete old image and save new image\n unlink(storage_path('app/public/productImages/'. $product->src));\n $product->src=$request->image->hashName();\n $request->image->store(\"productImages\",\"public\");\n }\n \n if($product->save()){\n return redirect()->route('products.index');\n }else{\n return view(\"partials.error\");\n }\n }", "title": "" }, { "docid": "3b6c3aaa23b4fb918ebc093545c13dc6", "score": "0.57525045", "text": "public function update($entity);", "title": "" }, { "docid": "eaf18f66946228a152f8b83c6b49e31e", "score": "0.5747208", "text": "public function update($id, $data) {}", "title": "" }, { "docid": "ab7c78237c36ea0911a0a7aba52fe065", "score": "0.5722473", "text": "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $body = json_encode($json);\n $request = new Request('PUT', '/entities', [], $body);\n $response = $this->send($request);\n return $response;\n }", "title": "" }, { "docid": "94a50f00a1fdfc16d75925e06f8f3ece", "score": "0.5718023", "text": "public function update($resource, $id, array $data = [], array $fileData = [],\n array $options = []\n ) {\n $request = new Request(Request::UPDATE, $resource);\n $request->setId($id)\n ->setContent($data)\n ->setFileData($fileData)\n ->setOption($options);\n return $this->execute($request);\n }", "title": "" }, { "docid": "8d0a97cdf24a3e49996a055c1d6f9ee9", "score": "0.5674049", "text": "public function put($data);", "title": "" }, { "docid": "dd89d251e44d4f4288498c4f3fcdbd27", "score": "0.5669232", "text": "public function update(StoreQuestionRequest $request, Question $question)\n {\n $question->update($request->all());\n return (new QuestionResource($question))->response()->setStatusCode(Response::HTTP_OK);\n }", "title": "" }, { "docid": "07d0f77b1ff351c39ea339ec0c30336e", "score": "0.5668569", "text": "public function update(Request $request, $id)\n {\n $product=Product::find($id);\n $photo=$product->photo;\n if($request->file('photo')){\n $photo=$request->file('photo')->store('public/products');\n \\Storage::delete($product->photo);\n \n \n }\n $product->name=$request->name;\n $product->category_id=$request->category;\n $product->subcategory_id=$request->subcategory;\n $product->description=$request->description;\n $product->photo=$photo;\n $product->price=$request->price;\n $product->quantity=10;\n $product->update();\n notify()->success('Product Update Successfully!');\n return redirect('/product');\n }", "title": "" }, { "docid": "50feec899487537246234315718a4677", "score": "0.56560737", "text": "public function updated(Octocat $resource)\n {\n session()->flash('title', $resource->name);\n session()->flash('message', \"Octocat successfully updated\");\n session()->flash('type', 'success');\n }", "title": "" }, { "docid": "6310b8a0a92465d8b22379c86deeecd7", "score": "0.564211", "text": "public function put($resource, array $parameters = [], $headers = [])\n {\n return $this->request('PUT', $resource, [\n 'form_params' => $parameters,\n 'headers' => $headers,\n ]);\n }", "title": "" }, { "docid": "d31fe3056f944a65fa9ec19317300e44", "score": "0.5622648", "text": "public function update(Request $request)\n {\n \t$validator = Validator::make($request->all(), [\n 'title' => 'required',\n 'id' => 'required',\n 'url' => 'required'\n ]);\n if ($validator->fails()) {\n return redirect(route('manage-contractor-resources-edit', $request->id))\n ->withErrors($validator)\n ->withInput();\n }\n\n $info['title'] = $request->title;\n $info['url'] = $request->url;\n $info['chapter'] = $request->chapter;\n $info['description'] = $request->description;\n $id = $info['id'] =$request->id;\n if(!$id){ \n $request->session()->flash('error', \"Nothing to update (or) unable to update.\");\n return redirect(route('manage-contractor-resources'))->withInput();\n }\n if((new ContractorResource)->updateContractorResource($info)) {\n $request->session()->flash('success', \"Contractor Resource Updated Successfully.\");\n return redirect(route('manage-contractor-resources'));\n } else { \n $request->session()->flash('error', \"Nothing to update (or) unable to update.\");\n return redirect(route('manage-contractor-resources'))->withInput();\n }\n }", "title": "" }, { "docid": "45805699e2ef60790309007e165386e9", "score": "0.5617589", "text": "public function update(Request $request, $id)\n {\n if(count($request->all()) == 0)\n {\n return redirect()->route('home');\n }\n $item = Item::where('id', $id)->first();\n \n if($item)\n { $this->validate($request, [\n 'itemDescription' => ['required']\n ]); \n $item->itemDescription = $request->get('itemDescription');\n $item->inventoryID = $request->get('inventoryID');\n if($request->file('select_file'))\n { \n $this->validate($request, ['select_file' => 'image|mimes:jpeg,png,jpg,gif|max:2048']);\n $image = $request->file('select_file');\n $path = $image->store('stock', 's3');\n\n $item->photoUploadLink = $path;\n }\n $item->save();\n return redirect()->route('stock')->with('success','Stock was successfully updated.');\n }\n else{\n return redirect()->route('stock')->with('error','Unfortunately an error has occurred.');\n }\n }", "title": "" }, { "docid": "0ca7ba7cd4456dc2a52499c097eb460d", "score": "0.5611832", "text": "public function update(Request $request, Memory $memory)\n {\n \n }", "title": "" }, { "docid": "28ac32d59483ead96eb99c3920d2d977", "score": "0.56017566", "text": "public function update( Request $request, $id ) {\n if ( $request->hasFile( 'newphoto' ) ) {\n\n $file = $request->file( 'newphoto' );\n $file_name = time() . '.' . $file->extension();\n $file->move( public_path( 'backend/supplier/' ), $file_name );\n\n $supplier = Supplier::find( $id );\n\n $oldPhoto = $supplier->photo;\n\n if ( $oldPhoto ) {\n $photo_url = $oldPhoto;\n $part = explode( '/', $photo_url );\n $slicedArr = array_slice( $part, 3 );\n $photoStr = implode( '/', $slicedArr );\n unlink( $photoStr );\n }\n\n $supplier->name = $request->name;\n $supplier->email = $request->email;\n $supplier->address = $request->address;\n $supplier->phone = $request->phone;\n $supplier->shopname = $request->shopname;\n $supplier->photo = asset( \"backend/supplier/{$file_name}\" );\n $supplier->save();\n return $request;\n } else {\n $supplier = Supplier::find( $id );\n\n $supplier->name = $request->name;\n $supplier->email = $request->email;\n $supplier->address = $request->address;\n $supplier->phone = $request->phone;\n $supplier->shopname = $request->shopname;\n $supplier->photo = $request->photo;\n $supplier->save();\n return $request;\n }\n }", "title": "" }, { "docid": "a9e48624384796f4304eebd40f4ae1bc", "score": "0.5599046", "text": "public function update()\n {\n $id = Input::get('id');\n $obj = Product::find($id);\n if ($obj == null) {\n return view('404');\n }\n $obj->name = Input::get('name');\n $obj->images = Input::get('images');\n $obj->description = Input::get('description');\n $obj->price = Input::get('price');\n $obj->save();\n return redirect('/admin/product');\n }", "title": "" }, { "docid": "feafa85fd136a8bfa7378058dbef8934", "score": "0.55935574", "text": "public function update(StoreQuestion $request, Question $question)\n {}", "title": "" }, { "docid": "5583a1a1065b5e63099c0ebbfcc38083", "score": "0.55854446", "text": "public function modifyResource($uri,\n $sparql = \"\",\n $headers = [],\n $transaction = \"\") {\n $options = [];\n\n // Set content.\n $options['body'] = $sparql;\n\n // Set headers.\n $options['headers'] = $headers;\n $options['headers']['Content-Type'] = 'application/sparql-update';\n\n // Ensure uri takes transaction into account.\n $uri = $this->prepareUri($uri, $transaction);\n\n $response = $this->client->request(\n 'PATCH',\n $uri,\n $options\n );\n\n return null;\n }", "title": "" }, { "docid": "4016847dea9b55e59a4acd18600a30f5", "score": "0.55813426", "text": "public function update($request, $id);", "title": "" }, { "docid": "15b871253c843a97a53c3d5984ec74b9", "score": "0.5576059", "text": "public function update(Request $request, $id)\n {\n //\n $this->validate($request, [\n 'name' => 'required',\n 'price' => 'required',\n 'image_url' => 'image|nullable|max:1999'\n ]);\n\n $product = Product::find($id);\n $product->name = $request->input('name');\n $product->price = $request->input('price');\n $product->groups = $request->input('groups');\n $product->stocks = $request->input('stocks');\n $product->description = $request->input('description');\n //to handle file in updload this way if no new image added the image \n //wont be updated.\n if ($request->hasFile('image_url')){\n //to get the filename with ext\n $file = $request->file('image_url')->getClientOriginalName();\n //get file name\n $filename = pathinfo($file, PATHINFO_FILENAME);\n //get extensiopn\n $ext = $request->file('image_url')->getClientOriginalExtension();\n //new filename\n $fileNameToStore = $filename.'_'.time().'.'.$ext;\n #upload\n $path = $request->file('image_url')->storeAs('public/images', $fileNameToStore);\n }else{\n $fileNameToStore = $product->image_url;\n }\n $product->image_url= $fileNameToStore;\n $product->save();\n\n return redirect('/');\n }", "title": "" }, { "docid": "d30de7511ec7de74e32f94e01d31fafe", "score": "0.5566411", "text": "public function update(Request $r, $id){\n $prk = Portkey::find($id);\n $prk->name = $r->name;\n \n if(isset($r->image)){\n Storage::disk('portkeyMap')->delete($prk->image);\n $path = $r->file('image')->store('', 'portkeyMap');\n $prk->image = $path;\n }\n $prk->save();\n return redirect()->route('portkey.index');\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": "8f8dacf3ca2fb2c9044973cfcebc7c92", "score": "0.555745", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if(!empty($request->input('tags'))){\n $product->tags()->sync($request->input('tags'));\n }else {\n $product->tags()->detach();\n }\n\n //gestion sup image\n if($request->input('delete_picture')=='true'){\n if(!is_null($product->picture)) {\n Storage::delete($product->picture->uri);\n $product->picture->delete();\n }\n }\n\n //gestion de la modification image\n if(!is_null($request->file('thumbnail'))){\n if(!is_null($product->picture)) {\n Storage::delete($product->picture->uri);\n $product->picture->delete();\n }\n\n $im = $request->file('thumbnail');\n $ext = $im->getClientOriginalExtension();\n $uri = str_random(12).'.'.$ext;\n $picture = Picture::create([\n 'uri' => $uri,\n 'type' => $ext,\n 'size' => $im->getClientSize(),\n 'product_id' => $product->id\n ]);\n\n $request->file('thumbnail')->move(env('UPLOAD_PATH','./uploads'), $picture->uri);\n\n }\n\n $product->update($request->all());\n return redirect('product')->with(['message'=>'success']);\n }", "title": "" }, { "docid": "603c333c3d11c6ec2de9c240d7fa4363", "score": "0.55474466", "text": "public function update(Request $request, $id)\n {\n $image = $request->file('image')->store('product', 'public');\n $product = Product::find($id);\n\n $product->nombre = $request->input('nombre');\n $product->descripcion = $request->input('descripcion');\n $product->precio = $request->input('precio');\n $product->stock = $request->input('stock');\n $product->category_id = $request->input('category_id');\n $product->image = $image;\n \n $product->save();\n\n return redirect(\"/$product->id/showProduct\"); \n }", "title": "" }, { "docid": "7412cf8d4f3cd118bf4c8ef71352185b", "score": "0.5544467", "text": "public function update(Request $request, Restify $restify)\n {\n //\n }", "title": "" }, { "docid": "4c0ab51ecbeaff3788498a88d8e05dde", "score": "0.55394554", "text": "public function update($id) {\n \n }", "title": "" }, { "docid": "66139d48c34ab92a5f49f5d92e5064cc", "score": "0.55334014", "text": "public function put_products($productName)\n{\n $raw = file_get_contents('php://input');\n $newProduct = Product::fromJson($raw);\n\n $db = new DataStore();\n $db->beginTransaction();\n $oldProduct = Product::productByName($db, $productName);\n if (is_null($oldProduct))\n throw new RESTException('Product not found.', 404);\n\n $oldProduct->update($db, $newProduct);\n $db->commit();\n echo('Product ' . $productName . ' updated.');\n}", "title": "" }, { "docid": "45a4f9a4a649b70b7c4d70ad32264661", "score": "0.5530422", "text": "public function update(Request $request,$id)\n { \n $slider = Slider::find($id);\n //start image upload\n if($request->file('image') != \"\"){\n $_IMAGE = $request->file('image');\n $name = time().$_IMAGE->getClientOriginalName();\n $uploadPath = 'public/frontend/images/main-slider/';\n $_IMAGE->move($uploadPath,$name);\n $_imageUrl = $uploadPath.$name;\n\n //delete previous image\n if(!empty($slider->image)){\n try{\n unlink(\"$slider->image\");\n }\n catch(\\Exception $e){\n\n }\n finally{\n $flag = true; \n }\n }\n //store updated image\n $slider->image = $_imageUrl;\n\n }\n //end image upload\n $slider->type = $request->type;\n $slider->title = $request->title;\n $slider->sub_title = $request->sub_title;\n $slider->redirect_link = $request->redirect_link;\n $slider->active = $request->active;\n $slider->slider_order = $request->slider_order;\n $slider->save();\n\n return redirect('/admin/sliders')->with('success',' Data Updated');\n }", "title": "" }, { "docid": "0b10222182779f95692d101f822f75b6", "score": "0.55273986", "text": "public function update(Request $request, $id)\n {\n\n $slider=Slider::findorfail($id);\n $this->validate($request,[\n \"title\"=>\"required|max:100\",\n \"image\"=>\"nullable|image\"\n ]);\n\n $slider->name=$request->get(\"title\");\n if($request->hasFile(\"image\")){\n $old_location=public_path(\"images/slider/\".$slider->image_url);\n if(file_exists($old_location))\n unlink($old_location);\n\n $dblocation=uniqid(true).'.png';\n $location=public_path('images/slider/'.$dblocation);\n $file=$request->file(\"image\");\n Image::make($file)->encode(\"png\")->save($location);\n $slider->image_url=$dblocation;\n }\n\n $slider->save();\n Session::flash(\"success\",\"Slider has been updated\");\n\n return redirect()->back();\n\n\n }", "title": "" }, { "docid": "122628d1e06ea888611a75c166b89b4c", "score": "0.552677", "text": "public function patch($data) {\n if (isset($data['id']) && !is_numeric($data['id'])) {\n // Throw an error....\n return new ResourceResponse(\n [\n 'error' => t('You must provide an valid ID when updating a resource.'),\n ],\n ResourceResponse::HTTP_BAD_REQUEST\n );\n }\n $file_system_access_entity = entity_load('file_system_access', $data['id']);\n if (empty($file_system_access_entity)) {\n return new ResourceResponse(\n [\n 'error' => t('Resource not found.'),\n ],\n 404\n );\n }\n if (isset($data['entity_id']) && is_numeric($data['entity_id'])) {\n $file_system_access_entity->set('entity_id', $data['entity_id']);\n }\n if (isset($data['entity_type'])) {\n $file_system_access_entity->set('entity_type', $data['entity_type']);\n }\n if (isset($data['can_view']) && in_array($data['can_view'], [0, 1])) {\n $file_system_access_entity->set('can_view', $data['can_view']);\n }\n if (isset($data['can_write']) && in_array($data['can_write'], [0, 1])) {\n $file_system_access_entity->set('can_write', $data['can_write']);\n }\n if (isset($data['notify_of_upload']) && in_array($data['notify_of_upload'], [0, 1])) {\n $file_system_access_entity->set('notify_of_upload', $data['notify_of_upload']);\n }\n if (isset($data['user_id'])) {\n $file_system_access_entity->set('user_id', ['target_id' => $data['user_id']]);\n }\n // Save the FileSystemAccess Entity.\n $file_system_access_entity->save();\n // Return reponse.\n return new ModifiedResourceResponse(NULL, 202);\n }", "title": "" }, { "docid": "a82e18d865c6a0f13355d38c12c144b4", "score": "0.5523652", "text": "public function updateFilepath(){\n if(!empty($this->originalResource)){\n $this->setFilepath($this->getOriginalResource()->getIdentifier());\n }\n }", "title": "" }, { "docid": "c2ba30e945f68db8e69ec9299a2bf860", "score": "0.55200166", "text": "public function setResource($resource){\n $this->resource = $resource;\n }", "title": "" }, { "docid": "66fbae8975fea1c3ac6a3142735e3664", "score": "0.55114806", "text": "public function update(Request $request, $id)\n {\n $lens = Lens::find($id);\n\n File::delete(str_replace('public','storage',$lens->image));\n\n $lens->delete();\n\n $path = $request->file('image')->store('public');\n\n $lens = Lens::create($request->all());\n\n $lens->image = $path;\n $lens->update();\n\n return redirect()->route('lens.index');\n }", "title": "" }, { "docid": "265c7e4e1d9ccb8f2d919846c5c6d0e1", "score": "0.55072427", "text": "public function update($id, $input);", "title": "" }, { "docid": "70d4983ca950042ec52182066262a01f", "score": "0.55057055", "text": "public function update(Request $request, Product $product)\n {\n \n $product->name = $request->name;\n $product->price = $request->price;\n $product->description = $request->description;\n $product->featured = $request->featured;\n $product->image = $request->image;\n $product->category_id = $request->category_id;\n $product->brand_id = $request->brand_id;\n\n $product->save();\n\n return response([\n 'data' => new ProductResource($product)\n ],Response::HTTP_CREATED);\n }", "title": "" }, { "docid": "a1981e95d8e1e839e57300bff0e83269", "score": "0.5500746", "text": "abstract public function update_storage_site();", "title": "" }, { "docid": "012a18ea3549362ce2727f6242b46f5a", "score": "0.5497882", "text": "public function update(UpdateProductRequest $request, $id)\n {\n $products = Product::find($id);\n $path = null;\n $requestData = $request->all();\n if ($request->file('image')) {\n $path = $request->file('image')->store('public');\n @unlink('storage/'. $products->image);\n }\n if($request->hasFile('image')) {\n //\\File::delete($events->image);\n $requestData['image'] = $path;\n// $requestData['image'] = IdomNotification::uploadAndResize($request->file('image'));\n }\n\n\n\n\n// dd($data);\n $products->update($requestData);\n// $idoms->update($requestData);\n\n return redirect('/admin/products')->with('success','Item update successfully!');\n }", "title": "" }, { "docid": "631ec05d06376fc3d4e4c009809fbc97", "score": "0.54973245", "text": "public function update(SliderRequestUpdate $request, $id)\n {\n $slider=Slider::find($id);;\n $slider->TituloSlider=$request->TituloSlider;\n $slider->DescripcionSlider=$request->DescripcionSlider;\n $slider->EstadoSlider=$request->EstadoSlider;\n\n if ($request->file('file')) {\n \n Storage::disk('s3')->delete('sliders/'.$slider->file_name);\n\n $nameFile = $request->file('file');\n \n $newName = time().rand().'.'.$nameFile->getClientOriginalExtension();\n #Amazon\n\n $path = $nameFile->storeAs('sliders', $newName,'s3');\n Storage::disk('s3')->setVisibility($path, 'public');\n \n $slider->file_url=Storage::disk('s3')->url($path);\n $slider->file=$nameFile->getClientOriginalName();\n $slider->file_name=$newName;\n $slider->file_type=$nameFile->getClientOriginalExtension();\n\n }\n\n \n # $slider->file_url\n $slider->update();\n\n return $slider;\n }", "title": "" }, { "docid": "5ec7d4d96d210f32e09b80058c55a490", "score": "0.5496931", "text": "public function update(Request $request, $id){\n $product = Product::find($id);\n // dd($product);\n if($product){\n if($request->description){\n $product->description = $request->description;\n }\n if($request->name){\n $product->name = $request->name;\n }\n if($request->qty){\n $product->qty = $request->qty;\n }\n if($request->price){\n $product->price = $request->price;\n }\n if ($request->hasFile('image')) {\n $img_src = $request->file('image')->store('public/images');\n $product->image_src = $img_src;\n }\n\n return $product->save() ? 'product updated!' : 'could not update the product';\n }else{\n return 'product not found';\n }\n \n }", "title": "" }, { "docid": "ba09590827a6c41287d661376548ea80", "score": "0.5494963", "text": "public function update(Request $request, $client, $resource)\n\t{\n\t\t$resource = Resource::findBySlug($client, $resource);\n\n\t\tif (!$resource) {\n\t\t\treturn response(view('resources.404'), 404);\n\t\t}\n\n\t\t$resource->load('client');\n\t\t$client = $resource->client;\n\n\t\t$this->authorize('manage', $resource);\n\n\t\t$this->validate($request, [\n\t\t\t'name' => ['required', 'max:255'],\n\t\t\t'slug' => [\n\t\t\t\t'required',\n\t\t\t\t'max:255',\n\t\t\t\t'alpha_dash',\n\t\t\t\t'unique:resources,slug,'.$request->input('slug', $resource->slug).',slug,client_id,'.$resource->client->id,\n\t\t\t\t'not_in:create,destroy,edit,prune'\n\t\t\t],\n\t\t\t// 'metadata' => ['array'],\n\n\t\t\t'attachments' => ['array'],\n\t\t\t'uploads' => ['array'],\n\n\t\t\t'type' => ['required'],\n\n\t\t\t'client' => ['required', 'exists:clients,id'],\n\n\t\t\t'tags' => ['array'],\n\t\t\t'tags.*' => ['exists:tags,id'],\n\t\t]);\n\n\t\tif (($newClient = $request->input('client', $resource->client->id)) != $resource->client->id) {\n\t\t\t$client = Client::find($newClient);\n\t\t\t$resource->client()->associate($client);\n\t\t}\n\n\t\t$resource->name = $request->input('name');\n\t\t$resource->slug = $request->input('slug');\n\t\t$resource->metadata = $request->input('metadata', []);\n\n\t\t$attachments = $request->input('attachments', []);\n\n\t\tif ($request->hasFile('uploads')) {\n\t\t\t$uploads = $request->file('uploads');\n\t\t\t$attachments = array_merge($attachments, $uploads);\n\t\t}\n\n\t\t$resource->attachments = $attachments;\n\n\t\t// set type\n\t\tif (!($type = ResourceType::findBySlug($request->input('type')))) {\n\t\t\t$type = ResourceType::create([\n\t\t\t\t'name' => $request->input('type'),\n\t\t\t\t'slug' => str_slug($request->input('type')),\n\t\t\t]);\n\t\t}\n\n\t\t$resource->type()->associate($type);\n\n\t\t$resource->save();\n\n\t\t$resource->tags()->sync($request->input('tags', []));\n\n\t\treturn redirect()->route('clients.resources.show', ['client' => $resource->client->url, 'resource' => $resource->url])\n\t\t\t->with('alert-success', 'Resource updated!');\n\t}", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "96e3e53de207d1c0165b2f8d9b2e8bd8", "score": "0.5492371", "text": "public function update(Request $request, $id)\n {\n $book = Book::findOrFail($id);\n $path = Storage::putfile('public',$request->file('image'));\n $url = Storage::url($path);\n\n $book->title = $request->title;\n $book->price = $request->price;\n $book->image = $url;\n $book->subject = $request->subject;\n $book->author = $request->author;\n $book->pub_house = $request->pub_house;\n $book->description = $request->description;\n $book->update();\n\n return redirect()->route('land_page');\n }", "title": "" }, { "docid": "f34e0cee27ed61fcc8d340527f1d9673", "score": "0.5490983", "text": "#[Put('/{slug}', middleware: ['auth', 'can:update,slug'])]\n #[Operation(tags: ['Articles'], security: 'BearerToken')]\n #[RequestBody(factory: UpdateArticleRequestBody::class)]\n #[Response(factory: SingleArticleResponse::class, statusCode: 200)]\n #[Response(factory: ErrorValidationResponse::class, statusCode: 422)]\n public function update(Article $slug, UpdateArticleRequest $request): SingleArticleResource\n {\n $slug->update($request->input('article'));\n\n return new SingleArticleResource($slug->loadCount('favoritedBy'));\n }", "title": "" }, { "docid": "4d408504ca6fc63ae1c9b25f108a04b1", "score": "0.5490762", "text": "public function update(Request $request, $id)\n {\n $item = Item::find($id);\n $item->fill($request->all())->save();\n\n //file upload\n if($request->file('image_img')){\n $path = Storage::disk('public')->put('images/photos' , $request->file('image_img'));\n $item->fill(['image_img' => asset($path)])->save();\n }\n\n //tags\n $item->tags()->sync($request->get('tags'));\n\n return redirect()->route('item.index')->with('flash','Article actualizado correctamente.');\n }", "title": "" }, { "docid": "2f3b20927c08bdb57df533acda52a1fe", "score": "0.5490345", "text": "public function update(Request $request) {\n $this->validateItemInput($request);\n \n $item = Db::get()\n ->find(\n $this->classCall, $request->attributes->get('id')\n );\n if (!($item instanceof $this->classCall)) {\n $response = new Response('Trying to update non existing item.');\n $response->setStatusCode(400);\n return $response;\n }\n $oldPath = $item->path;\n $item->update($request->request->all());\n if ($oldPath !== $item->path) {\n $item->path = $this->getUniquePath($item->path);\n }\n Db::get()->persist($item);\n return $item;\n }", "title": "" }, { "docid": "eb69ca57c3bde9f06755b1a82e717baa", "score": "0.54793954", "text": "public function update(Request $request, $id)\n {\n $item = Item::findOrFail($id);\n \n $currentPhoto = $item->photo;\n if ($request->photo != $currentPhoto) {\n $name = time().'.' . explode('/',explode(':', substr($request->photo, 0, strpos($request->photo, ';')))[1])[1];\n\n \\Image::make($request->photo)->save(public_path('/img/item/').$name);\n $request->merge(['photo' => $name]);\n\n $itemPhoto = public_path('/img/item/').$currentPhoto;\n if (file_exists($itemPhoto)) {\n @unlink($itemPhoto);\n }\n }\n $item->update($request->all());\n \n return ['message' => 'Updated Success'];\n }", "title": "" }, { "docid": "ceac6ee3c36ec0367a2b9490feebe7a9", "score": "0.5478989", "text": "public function update(Request $request, $id)\n {\n\n $requestData = $request->all();\n $imagePaths = [];\n\n if ($request->hasFile('path')) {\n for ( $index = 0; $index < sizeof( $requestData['path']); $index++) {\n $imagePath = 'storage/' . $request->file('path')[$index]\n ->store('uploads', 'public');\n array_push($imagePaths, $imagePath);\n }\n }\n $image = Image::findOrFail($id);\n\n if (sizeof($imagePaths) === 0) {\n $requestData['path'] = $image->path;\n $image->update($requestData);\n }\n else {\n $oldImagePath = $image->path;\n $oldImagePath = str_replace(\"storage/\",storage_path('') . '/app/public/' , $oldImagePath);\n\n foreach ($imagePaths as $imagePath){\n\n $requestData['path'] = $imagePath;\n $image->update($requestData);\n }\n\n if(File::exists($oldImagePath)){\n File::delete($oldImagePath);\n }\n }\n\n\n\n return redirect('images/' . $request->get('post_id'))->with('flash_message', 'Image updated!');\n }", "title": "" }, { "docid": "6dbe9a80c3cc7c4c7214a73b919cb78b", "score": "0.54670787", "text": "public function update($request);", "title": "" }, { "docid": "2840f4acb2ccb4170d4557d937e25de4", "score": "0.5465156", "text": "public function update(Request $request, $id)\n {\n $data = Image::find($id);\n $all = $request->all();\n if(is_null($data))\n return response()->json(['error' => 'Resource introuvable'], 404);\n else\n {\n if(isset($all['url']))\n {\n $name = File::image($all['url']);\n if($name)\n {\n $all['url'] = $name;\n }else $all['url'] = $data->url;\n }\n\n $data->update($all);\n $data->categories()->sync($request->categories);\n $data->tags()->sync($request->tags);\n\n return response()->json(new ImageResource($data), 200);\n }\n }", "title": "" }, { "docid": "9080726c97000b95123e3a3548679cb5", "score": "0.5464735", "text": "public function update(Request $request, $id)\n {\n $this->slider = $this->slider->find($id);\n $rule =$this->slider->getRules('update');\n $request->validate($rule);\n $data = $request->except('image');\n\n if($request->image){\n $image_name = uploadImage($request->image,'slider','500x300');\n if($image_name){\n $data['image'] = $image_name;\n if($this->slider->image!= ''){\n deleteImage($this->slider->image,'slider');\n };\n }\n }\n $update = $this->slider->update($data);\n if($update){\n request()->session()->flash('success','Product has been updated');\n }else {\n request()->session()->flash('error','Product has not Been updated');\n\n }\n return redirect()->route('slider.index');\n\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.54586715", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.54586715", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.54586715", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "536db9f9519d6601d2b49cdcde95f013", "score": "0.5458005", "text": "public function update(Request $request, $id)\n {\n //\n $this->validate($request,[\n 'id_manufacture' => 'required',\n 'asset_tag' => 'required',\n 'id_category' => 'required',\n 'order_number' => 'required',\n 'qty' => 'required',\n 'min_qty' => 'required',\n 'id_location' => 'required'\n ]);\n $input = $request->all();\n $asset = Assets::find($id);\n if(!empty($input['image'])){\n Storage::delete(public_path('storage'),$asset->image);\n $input['image'] = time().'.'.$request->image->getClientOriginalExtension();\n $request->image->move(public_path('storage/assets/'), $input['image']);\n }else {\n $input = array_except($input, array('image'));\n }\n $input['created_by'] = Auth::user()->name;\n $asset->update($input);\n return redirect()->route('assets.index')->with(['success' => 'Asset updated successfully', 'class' => 'close']);\n }", "title": "" }, { "docid": "db3837780a308513dc99c922897e898e", "score": "0.54579574", "text": "public function update()\n {\n $this->delete();\n $this->save();\n }", "title": "" }, { "docid": "5f36cdc3217c7c251089de9b1597e8a0", "score": "0.54572374", "text": "public static function put(string $resource, array $body = []) {\r\n $response = self::getClient()->request(\r\n \"PUT\",\r\n self::createUrl($resource),\r\n self::createHeaders(!empty($body)),\r\n NullStripper::strip($body)\r\n );\r\n\r\n if (!self::isSuccessful($response)) {\r\n self::handleFailure($response);\r\n }\r\n return self::handleSuccess($response);\r\n }", "title": "" }, { "docid": "8f4a12a4a3962d1da8617ab2c1add338", "score": "0.5455601", "text": "public function update(Request $request, Product $product)\n {\n if($request->image != NULL) {\n #Image uploading\n $storedPath = $request->file('image')->store('public/products'); \n }\n \n \n #Update the current product\n $product->update([\n 'title' => $request->title,\n 'body' => $request->body,\n 'price' => auth()->user()->id == $product->user_id ? $request->price : $product->price,\n 'category' => $request->category,\n 'image_path' => $request->image != NULL ? $storedPath : $product->image_path,\n 'status' => $request->status\n ]);\n\n #Return back to list page\n return redirect('/products');\n }", "title": "" }, { "docid": "19323452d4f8b1e3cc766b966234512d", "score": "0.54551905", "text": "public function update($obj) {\n }", "title": "" }, { "docid": "236d64bd92646776ec0d62483983f6b1", "score": "0.5442009", "text": "public function update($id, $data)\n {\n try {\n $this->logger->info(\"Trying to update resource in database table\");\n $this->checkId($id);\n\n $putValues = $this->putValues($id, $data);\n\n $query = \"UPDATE guest.student SET name = :name, surname = :surname, indexno = :indexno, address = :address WHERE id = :id\";\n $stmt = $this->conn->prepare($query);\n\n $stmt->bindParam(\":id\", $id);\n $stmt->bindParam(\":name\", $putValues[\"name\"]);\n $stmt->bindParam(\":surname\", $putValues[\"surname\"]);\n $stmt->bindParam(\":indexno\", $putValues[\"indexno\"]);\n $stmt->bindParam(\":address\", $putValues[\"address\"]);\n\n $stmt->execute();\n echo \"Resource successfully updated\";\n $this->logger->info(\"Updating resource successful in database table\");\n\n } catch (InvalidIdException $e) {\n $this->logger->warning(\"ID doesn't exist in database table\");\n echo \"Error: \" . $e->getMessage();\n } catch (\\Exception $e) {\n $this->logger->warning(\"Error updating resource in database table\");\n echo \"Error updating resource: \" . $e->getMessage();\n }\n }", "title": "" }, { "docid": "a098fb5d396525d0b997679afe399e81", "score": "0.54363286", "text": "public function update(Request $request, $id)\n {\n\n $product = $this->productRepo->getById($id);\n $request_data = $request->except(['_method', '_token', 'photo', 'product_cats', 'ar', 'en']);\n\n $locale = $request->only('ar', 'en');\n $cats = $request->product_cats;\n\n\n if ($request->hasFile('photo')) {\n /*delete old photo*/\n $oldPath = public_path('/images/products/' . $product->photo);\n $oldThumbPPath = public_path('/images/products/thumb/' . $product->photo);\n File::delete($oldPath, $oldThumbPPath);\n\n $image = $this->upload($request->photo, 'products', true);\n $request_data['photo'] = $image;\n\n }\n\n $this->productRepo->updateData($id, $request_data, $locale, $cats);\n\n return redirect()->route('products.index')->with('update', 'data updated successfully');\n\n\n }", "title": "" }, { "docid": "78c9828cfb522a8b15c9e25aecac3a44", "score": "0.54266506", "text": "public function update(Request $request, $id)\n {\n $order = Order::findOrFail($id);\n $previous_qty = $order->quantity;\n $order->user_id = auth()->id();\n $order->product_id = $request['product_id'];\n $order->quantity = $request['quantity'];\n\n if ($order->save()) {\n Inventory::where('product_id', $order->product_id)->decrement('quantity', $order->quantity);\n Inventory::where('product_id', $order->product_id)->increment('quantity', $previous_qty);\n return new OrderResource($order);\n }\n }", "title": "" }, { "docid": "ecf201c555a1f2a407beb441493f659d", "score": "0.5425398", "text": "public function update(Request $request, $id)\n {\n //\n // dd($request);\n $this->validate($request, [\n 'name' => 'required',\n 'price' => 'required',\n 'point' => 'required',\n 'category' => 'required',\n 'image' => 'image|mimes:jpeg,png,jpg,gif|max:2048',\n ]);\n $new_name = \"\";\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $new_name = time() . '.' . $image->getClientOriginalExtension();\n Image::make($image)->resize(450, 400)->save(public_path('picture/product/' . $new_name));\n $out_of_stock = Out_of_stock::find($id);\n $out_of_stock->name = $request->get('name');\n $out_of_stock->price = $request->get('price');\n $out_of_stock->point = $request->get('point');\n $out_of_stock->category = $request->get('category');\n $oldpruductname = $out_of_stock->picture;\n $out_of_stock->picture = $new_name;\n Storage::delete('product/'.$oldpruductname);\n } else {\n $out_of_stock = Out_of_stock::find($id);\n $out_of_stock->name = $request->get('name');\n $out_of_stock->price = $request->get('price');\n $out_of_stock->point = $request->get('point');\n $out_of_stock->category = $request->get('category');\n }\n\n $out_of_stock->save();\n return back()->with('success', 'Edit data success');\n }", "title": "" }, { "docid": "4da53910fe95b40fc7708d69a5bc4caf", "score": "0.54252774", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'sub_title' => 'required',\n 'image' => 'required|mimes:jpeg,bmp,png'\n ]);\n $slider = Slider::find($id);\n $image = $request->file('image');\n $filename = $image->getClientOriginalName();\n $filename = time(). '.' . $filename;\n $path = 'upload/slider/'.$filename;\n $storage = Storage::disk('s3');\n $storage->put($path, fopen($image, 'r+'), 'public');\n\n $slider->title = $request->title;\n $slider->sub_title = $request->sub_title;\n $slider->image = $path;\n $slider->save();\n Toastr::success('Slider Successefully Updated!', 'Success', [\"positionClass\" =>\"toast-top-right\"]);\n return redirect()->route('slider.index');\n }", "title": "" }, { "docid": "a4ae1c30e150f5cf694572b68551bd23", "score": "0.5425028", "text": "public function update(Request $request, $id)\n {\n $this->validate($request,[\n 'title'=>'required',\n 'content'=>'required',\n 'date'=>'required',\n 'image'=>'required|image',\n ]);\n $product = Product::find($id);\n $product->edit($request->all());\n $product -> uploadImage($request->file('image'));\n $product->setCategory($request->get('category_id'));\n $product->toggleStock($request->get('in_stock'));\n\n return redirect()->route('products.index');\n }", "title": "" }, { "docid": "f08541062169cb53c21e52b58cdb2dcd", "score": "0.5424735", "text": "public function update(Request $request, $id)\n {\n //\n $id = $request->id;\n $store_edit = Store::find($id);\n $store_edit->store_name = $request->store_name;\n $store_edit->store_tel = $request->store_tel;\n $store_edit->store_type_id = $request->store_type;\n $store_edit->store_lineid = $request->store_line;\n $store_edit->store_contact = $request->store_contact;\n $store_edit->store_address = $request->store_address;\n $store_edit->store_detail = $request->store_detail;\n $store_edit->store_status = $request->store_status;\n $store_edit->store_tax_contact = $request->store_tax_contact;\n $store_edit->store_tax_name = $request->store_tax_name;\n $store_edit->store_tax_id = $request->store_tax_id;\n $store_edit->confirm = $request->confirm;\n $store_edit->store_lat = $request->store_lat;\n $store_edit->store_lng = $request->store_lng;\n $tmp = '';\n if($request->check_list){\n foreach($request->check_list as $key => $item){\n if($key == 0){\n $tmp = $item;\n }\n else{\n $tmp = $item.','.$tmp;\n } \n }\n }\n $store_edit->store_promotion = $tmp;\n $store_edit->store_status = $request->store_status;\n\n\n if($request->hasFile('storeimage')){\n Storage::disk('do_spaces')->delete('stores/'.$store_edit->store_image); \n $newFileName = uniqid().'.'.$request->storeimage->extension();//gen name\n $imageStore = $request->file('storeimage');\n $t = Storage::disk('do_spaces')->put('stores/'.$newFileName, file_get_contents($imageStore), 'public');\n $store_edit->store_image = $newFileName;\n }\n if($request->hasFile('storeimageline')){\n Storage::disk('do_spaces')->delete('stores/'.$store_edit->store_lineid_image);\n $newFileName = uniqid().'.'.$request->storeimageline->extension();//gen name\n $imageStoreLine = $request->file('storeimageline');\n $t = Storage::disk('do_spaces')->put('stores/'.$newFileName, file_get_contents($imageStoreLine), 'public');\n $store_edit->store_lineid_image = $newFileName;\n }\n if($request->hasFile('storeimagetax')){\n Storage::disk('do_spaces')->delete('stores/'.$store_edit->store_tax_image);\n $newFileName = uniqid().'.'.$request->storeimagetax->extension();//gen name\n $imageStoreTax = $request->file('storeimagetax');\n $t = Storage::disk('do_spaces')->put('stores/'.$newFileName, file_get_contents($imageStoreTax), 'public');\n $store_edit->store_tax_image = $newFileName;\n }\n $store_edit->save();\n return redirect()->route('store.index')->with('feedback' ,'แก้ไขข้อมูลเรียบร้อยแล้ว');\n }", "title": "" }, { "docid": "2ed05e577c404795cab2b1dde733d75c", "score": "0.5418497", "text": "public function update(Request $request, $id)\n {\n $datos = $request->except('_token','_method');\n\n if ($request->hasFile('foto')) {\n $artista = Artista::findOrfail($id);\n Storage::delete('public/uploads/'.$artista->id.'/'. $artista->foto);\n $datos['foto'] = $request->file('foto')->getClientOriginalName();\n $request->file('foto')->storeAs('public/uploads/'.$artista->id, $datos['foto']);\n }\n\n Artista::where('id','=',$id)->update($datos);\n return redirect('artista');\n }", "title": "" }, { "docid": "da9aacaea3d57116c579322deaba3198", "score": "0.5416959", "text": "public function update(Request $request, $id)\n {\n try {\n $result = $this->model->find($id);\n\n if ($result) {\n $inputs = $request->except('_token');\n\n if ($request->hasFile('image')) {\n $fileName = time() . '.' . $request->image->getClientOriginalExtension();\n $file = $request->file('image');\n\n Storage::put($this->dishImageStoragePath . $fileName, file_get_contents($file), 'public');\n\n $inputs['image'] = $fileName;\n\n if (isset($result->image) && $result->image) {\n if (Storage::exists($this->dishImageStoragePath . $result->image)) {\n Storage::delete($this->dishImageStoragePath . $result->image);\n }\n }\n }\n\n $isSaved = $result->update($inputs);\n\n if ($isSaved) {\n return redirect($this->moduleRoute)->with(\"success\", __($this->moduleName . \" updated!\"));\n }\n }\n return redirect($this->moduleRoute)->with(\"error\", __(\"Something went wrong, please try again later.\"));\n } catch (\\Exception $e) {\n return redirect($this->moduleRoute)->with('error', $e->getMessage());\n }\n }", "title": "" }, { "docid": "9909c434dfa1fa2de013b52dc098057a", "score": "0.54166603", "text": "public function updateProduct();", "title": "" }, { "docid": "83fd3d73dd82fcaecb92e078c534bdfe", "score": "0.54161036", "text": "public function update(Request $request, $id)\n {\n $data = array();\n $data['status'] = $request->status;\n \n \n $image = $request->newphoto;\n\n if ($image) {\n $position = strpos($image, ';');\n $sub = substr($image, 0, $position);\n $ext = explode('/', $sub)[1];\n\n $name = time().\".\".$ext;\n $img = Image::make($image)->resize(240,200);\n $upload_path = 'backend/supplier/';\n $image_url = $upload_path.$name;\n $success = $img->save($image_url);\n \n if ($success) {\n $data['photo'] = $image_url;\n $img = DB::table('patients')->where('id',$id)->first();\n $image_path = $img->photo;\n $done = unlink($image_path);\n $user = DB::table('patients')->where('id',$id)->update($data);\n }\n \n }else{\n $oldphoto = $request->photo;\n $data['photo'] = $oldphoto;\n $user = DB::table('patients')->where('id',$id)->update($data);\n }\n }", "title": "" }, { "docid": "fa90d4335b5457d60aed5f93219c9fb9", "score": "0.5414578", "text": "function update($resource_id,$options)\n\t{\n\t\t//allowed fields\n\t\t$valid_fields=array(\n\t\t\t//'resource_id',\n\t\t\t//'survey_id',\n\t\t\t'dctype',\n\t\t\t'title',\n\t\t\t'subtitle',\n\t\t\t'author',\n\t\t\t'dcdate',\n\t\t\t'country',\n\t\t\t'language',\n\t\t\t//'id_number',\n\t\t\t'contributor',\n\t\t\t'publisher',\n\t\t\t'rights',\n\t\t\t'description',\n\t\t\t'abstract',\n\t\t\t'toc',\n\t\t\t'subjects',\n\t\t\t'filename',\n\t\t\t'dcformat',\n\t\t\t'changed');\n\n\t\t//add date modified\n\t\t$options['changed']=date(\"U\");\n\t\t\t\t\t\n\t\t//remove slash before the file path otherwise can't link the path to the file\n\t\tif (isset($options['filename']))\n\t\t{\n\t\t\tif (substr($options['filename'],0,1)=='/')\n\t\t\t{\n\t\t\t\t$options['filename']=substr($options['filename'],1,255);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//pk field name\n\t\t$key_field='resource_id';\n\t\t\n\t\t$update_arr=array();\n\n\t\t//build update statement\n\t\tforeach($options as $key=>$value)\n\t\t{\n\t\t\tif (in_array($key,$valid_fields) )\n\t\t\t{\n\t\t\t\t$update_arr[$key]=$value;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//update db\n\t\t$this->db->where($key_field, $resource_id);\n\t\t$result=$this->db->update('resources', $update_arr); \n\t\t\n\t\treturn $result;\t\t\n\t}", "title": "" }, { "docid": "cc834cb0ddf4d709f9b0966aeba0c395", "score": "0.5407511", "text": "public function update(Request $request, Product $product)\n {\n\n if (Auth::id()==$product->user_id) {\n $product->update($request->all());\n\n return response([\n 'data'=>new ProductResource($product)\n ],Response::HTTP_CREATED); \n }\n\n \nelse {\n return response([\n 'error'=>'product doesnt belong to current user'\n ],Response::HTTP_NOT_FOUND); \n}\n // return response()->json(new ProductResource($product), 200); \n\n \n\n \n }", "title": "" } ]
8b993e045b97bab6193705e8a2ebf8a2
Returns true if this authentication plugin is "internal". Internal plugins use password hashes from Moodle user table for authentication.
[ { "docid": "b78869136669502159fb49c5aa5e0fdd", "score": "0.6391023", "text": "public function is_internal() {\n return false;\n }", "title": "" } ]
[ { "docid": "ea1196f6755c0b5402d0e171cd378d7f", "score": "0.71978974", "text": "private function internalAuth() {\n if ( $this->user->getPassword() == $this->plainPassword ) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "26c488e6a88a1d33cb9e77b760b84ff9", "score": "0.7100088", "text": "public function usingInternalAuthentication()\n {\n return $this->getAuthenticationType() == self::INTERNAL_AUTH;\n }", "title": "" }, { "docid": "9bbc67974ea046ee68d39b15bc811d6d", "score": "0.6751984", "text": "function login_internal ($username, $password) {\n\tglobal $auth_internal_username;\n\tglobal $auth_internal_password;\n\t\n\tif ($auth_internal_username == $username && $auth_internal_password == $password)\n\t\treturn TRUE;\n\telse\n\t\treturn FALSE;\n}", "title": "" }, { "docid": "4645afb06a7e186cd9f9ac6962381af2", "score": "0.6325229", "text": "function is_internal() {\n return false;\n }", "title": "" }, { "docid": "4645afb06a7e186cd9f9ac6962381af2", "score": "0.6325229", "text": "function is_internal() {\n return false;\n }", "title": "" }, { "docid": "5ea743dbae8f784291aef9ec72adeb32", "score": "0.6276325", "text": "function is_internal()\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "840c405d8b501e59ca48eca1f9856011", "score": "0.6180337", "text": "public function isInternal() {\n return $this->check('internal');\n }", "title": "" }, { "docid": "fd336d2d286ac4efcd373bb712a39c28", "score": "0.6127841", "text": "public function isInternal() {\n return isset($this->info['internal']);\n }", "title": "" }, { "docid": "226dfe540b3595f849a5c3767eea466b", "score": "0.61132777", "text": "public static function checkUserAuthentication()\r\n {\r\n self::_init();\r\n\r\n if (!self::_trackingValuesAreNotSet()) { //we have tracking valuse\r\n \r\n list($username, $password)= self::_getTrackingValues();\r\n \r\n $validUserName = ($username == self::$config['sgs_username']);\r\n $validPassWord = ($password == self::$config['sgs_password']);\r\n \r\n if ($validUserName && $validPassWord) {\r\n define('SGS_ADMIN', true);\r\n define('SGS_USER', false);\r\n define('SGS_USERNAME', $username);\r\n return true;\r\n }\r\n }\r\n\r\n \r\n define('SGS_ADMIN', false);\r\n define('SGS_USER', false);\r\n define('SGS_USERNAME', false);\r\n \r\n return false; \r\n }", "title": "" }, { "docid": "8d1614f7be2387a9609755d3636d8a1c", "score": "0.60428166", "text": "public function isPrivate()\n {\n return $this->needAuthentication;\n }", "title": "" }, { "docid": "d86b7f4ab459aa1a5dbc76a8f4ef65eb", "score": "0.5901861", "text": "protected function auth(){\n if($this->current_user) return true;\n\t\t$this->authenticate = new WaxAuthDb(array(\"encrypt\"=>true, \"db_table\"=>$this->user_table, \"session_key\"=>\"shape_user_cookie\"));\n\t\tif($this->current_user = $this->authenticate->get_user()) return true;\n\t\treturn false;\n }", "title": "" }, { "docid": "080075e960ed1b2dadf03a66b044d865", "score": "0.58990204", "text": "public static function loginEnabled()\n\t{\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "080075e960ed1b2dadf03a66b044d865", "score": "0.58990204", "text": "public static function loginEnabled()\n\t{\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "080075e960ed1b2dadf03a66b044d865", "score": "0.58990204", "text": "public static function loginEnabled()\n\t{\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "080075e960ed1b2dadf03a66b044d865", "score": "0.58990204", "text": "public static function loginEnabled()\n\t{\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "080075e960ed1b2dadf03a66b044d865", "score": "0.58990204", "text": "public static function loginEnabled()\n\t{\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "73307bdc5dc2115703f4e586fac63465", "score": "0.58629996", "text": "public function isInternal(): bool\n {\n return false;\n }", "title": "" }, { "docid": "37935976233b526a0d7903494e2357e3", "score": "0.5804013", "text": "function internal_share_access()\n {\n global $k, $external_share_view_as_internal;\n return ($k != \"\" && $external_share_view_as_internal && is_authenticated());\n }", "title": "" }, { "docid": "3204e85eb564d1331fae62c97c1e797b", "score": "0.58003455", "text": "private function _userAuthenticationIsDefined() {\r\n\t\t$result = false;\r\n\t\t\r\n\t\tif ($this->getFieldValue(AuthenticationPage::USERNAME_KEY) && $this->getFieldValue(AuthenticationPage::PASSWORD_KEY)) {\r\n\t\t\t$result = true;\r\n\t\t}\r\n\t\t\r\n\t\treturn $result;\r\n\t}", "title": "" }, { "docid": "7cc6583d96923c2ab6cc7aa992b63a54", "score": "0.5799106", "text": "public function isInternal();", "title": "" }, { "docid": "350265ff99ef375a50371b5a7bae1552", "score": "0.5779992", "text": "function isAccessible(){\n \t\tif ($this->conn_db){\n \t\t\treturn $this->conn_db->isAccessible($this->uid);\n \t\t}\n \t\telse{\n\t\t\t$this->conn_db = new $this->database_class();\n \t\t\treturn $this->conn_db->isAccessible($this->uid);\n \t\t}\n \t\t\n \t}", "title": "" }, { "docid": "14da546757c70867dd31d663ed5ed20d", "score": "0.5774881", "text": "public function loginAllowed() {\n if (!empty($this->loginPlugins)) {\n foreach ($this->loginPlugins as $class) {\n if ($class->loginAllowed()) {\n return TRUE;\n }\n }\n }\n\n return FALSE;\n }", "title": "" }, { "docid": "16efb707c19d2309c1b3d5dc3b00b3c0", "score": "0.5762848", "text": "public function authenticate()\r\n {\r\n $db = Codeli::getInstance()->getDB();\r\n\r\n $args = array(\r\n \":userid\" => $this->userId,\r\n \"::password\" => $this->password\r\n );\r\n $sql = \"SELECT uid FROM \" . SystemTables::USER .\r\n \" WHERE userid=':userid' and password='::password' LIMIT 1\";\r\n\r\n $result = $db->fetchObject($db->query($sql, $args));\r\n\r\n if (isset($result->uid) && valid($result->uid))\r\n {\r\n $this->uid = $result->uid;\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "5810bd7631999340fd70cffa8f2381da", "score": "0.57598615", "text": "public function isInternal(){}", "title": "" }, { "docid": "5810bd7631999340fd70cffa8f2381da", "score": "0.57598615", "text": "public function isInternal(){}", "title": "" }, { "docid": "64a2daadc5fb0c1b67a7b421e38b24c2", "score": "0.57559276", "text": "public static function loginEnabled()\n\t{\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "e381172f431e216111d5bd83cb0aa96e", "score": "0.5748054", "text": "function isBeLogin()\n {\n return is_array($GLOBALS['BE_USER']->user);\n }", "title": "" }, { "docid": "1b6c05c8e9a62f686e89b6590b6a1cbd", "score": "0.5740529", "text": "function pp_db_auth_check_login($username,$password) {\n\trequire_once('./wp-includes/user.php');\n\trequire_once('./wp-includes/pluggable.php');\n\t\n //Connect to external database\n\t$db = new PDO(get_site_option('pp_db_pdo_string'));\n\t$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t$db->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);\n \n\t//prepare the db for unicode queries\n\t//to pick up umlauts, non-latin text, etc., without choking\t\n\t#$utfquery = \"SET NAMES 'utf8'\";\n\t#$resultutf = db_functions($driver,\"query\",$resource,$utfquery); \n\n\t//Load the user's info from the DB\n\t$query = 'SELECT * FROM '.get_site_option('pp_db_table').' WHERE '.get_site_option('pp_db_namefield').' = ? LIMIT 1';\n\t$query = $db->prepare($query);\n\t$query->execute(array($username));\n\t$externalUser = $query->fetch();\n\t\n\t//Done with the database now\n\t$db = null;\n\t\n\t//If no user was found\n\tif (empty($externalUser)) {\n\t\tglobal $pp_error;\n\t\t$pp_error = \"notindb\";\n\t\t$username = NULL;\n\t\treturn;\n\t}\n\n\t//Check the password hash\n\t\n\t$dbPassword = $externalUser[get_site_option('pp_db_pwfield')];\n\n\t//do the password hash for comparing\n\tswitch(get_site_option('pp_db_enc')) {\n\t\tcase \"SHA1\" :\n\t\t\t$passwordCorrect = sha1($password) == $dbPassword;\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"MD5\" :\n\t\t\t$passwordCorrect = md5($password) == $dbPassword;\n\t\t\tbreak;\n\t\t\t\n case \"Custom\" : //right now defaulting to plaintext. People can change code here for their own special hash\n \t$passwordCorrect = pp_check_password_custom(get_site_option('pp_db_other_enc'), $username, $password, $dbPassword);\n break;\n\t}\n\t \n\tif ($passwordCorrect !== true) {\n\t\tglobal $pp_error;\n\t\t$pp_error = \"wrongpw\";\t\t\t\t\n\t\t$username = NULL;\n\t\treturn;\t\n\t}\n \n\t//Set the mapping of fields from the external db to the wordpress db\n\t$sqlfields = array();\n\t$sqlfields['first_name'] = get_site_option('pp_db_first_name');\n\t$sqlfields['last_name'] = get_site_option('pp_db_last_name');\n\t$sqlfields['user_url'] = get_site_option('pp_db_user_url');\n\t$sqlfields['user_email'] = get_site_option('pp_db_user_email');\n\t$sqlfields['description'] = get_site_option('pp_db_description');\n\t$sqlfields['aim'] = get_site_option('pp_db_aim');\n\t$sqlfields['yim'] = get_site_option('pp_db_yim');\n\t$sqlfields['jabber'] = get_site_option('pp_db_jabber'); \n\t$sqlfields['pp_db_role'] = get_site_option('pp_db_role');\n \n //Insert or update the user in wordpress\n\t$wordpressUser = array();\n\t$wordpressUser['user_login'] = $username;\n\t$wordpressUser['user_pass'] = $password;\n\t$wordpressUser['first_name'] = !empty($sqlfields['first_name']) ? $externalUser[$sqlfields['first_name']] : '';\n\t$wordpressUser['last_name'] = !empty($sqlfields['last_name']) ? $externalUser[$sqlfields['last_name']] : ''; \n\t$wordpressUser['user_url'] = !empty($sqlfields['user_url']) ? $externalUser[$sqlfields['user_url']] : '';\n\t$wordpressUser['user_email'] = !empty($sqlfields['user_email']) ? $externalUser[$sqlfields['user_email']] : '';\n\t$wordpressUser['description'] = !empty($sqlfields['user_email']) ? $externalUser[$sqlfields['description']] : '';\n\t$wordpressUser['aim'] = !empty($sqlfields['aim']) ? $externalUser[$sqlfields['aim']] : '';\n\t$wordpressUser['yim'] = !empty($sqlfields['yim']) ? $externalUser[$sqlfields['yim']] : '';\n\t$wordpressUser['jabber'] = !empty($sqlfields['jabber']) ? $externalUser[$sqlfields['jabber']] : '';\n\t\n\tif (!empty($sqlfields['first_name']) || !empty($sqlfields['last_name'])) {\n\t\t$wordpressUser['display_name'] = $externalUser[$sqlfields['first_name']].\" \".$externalUser[$sqlfields['last_name']]; \n\t}\n\t\t\n\tif (empty($wordpressUser['display_name'])) {\n\t\t$wordpressUser['display_name'] = $username;\n\t}\n\t\n\tif ($id = username_exists($username)) {\n\t\t//If user is already in wordpress, update\n\t\t$wordpressUser['ID'] = $id;\n\t\t wp_update_user($wordpressUser);\n\t} else {\n\t\t//Otherwise create a new user\t\t\n\t\twp_insert_user($wordpressUser);\n\t}\n}", "title": "" }, { "docid": "073891574fd6796abd651480d1c1c89a", "score": "0.5739916", "text": "private function databaseAuth() {\n $token = md5( $this->user->getSalt() . $this->plainPassword );\n\n if ( $this->user->getPassword() === $token ) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "2e5f720029c539cd30cce44b88426a48", "score": "0.57264245", "text": "function haveLogin() {\n return (isset($GLOBALS['isLogin']) && $GLOBALS['isLogin']);\n }", "title": "" }, { "docid": "f5dcaf4e00edd352d8cf0e79201b8663", "score": "0.57187456", "text": "private function userVerify() {\n\n // If Internal user - check config data for user\n if ( 1 == $this->authType ) {\n\n defined('APP_USER_LISTING') or\n die ('Configuration Setting: APP_USER_LISTING is not set.');\n\n $userListing = unserialize(APP_USER_LISTING);\n\n foreach ( $userListing as $key => $user ) {\n if ( $this->username === $user['username'] ) {\n $this->user = new user;\n $this->user->setEmail($user['email']);\n $this->user->setFirstName($user['firstName']);\n $this->user->setLastName($user['lastName']);\n $this->user->setPassword($user['password']);\n $this->user->setRole($user['role']);\n $this->user->setUsername($user['username']);\n\n return true;\n }\n }\n return false;\n }\n\n // Check database for user listing\n else {\n\n $sql = 'SELECT\n *\n FROM\n auth_user\n WHERE\n username = ? AND\n active = true';\n\n $dbObj = new db();\n $dbObj->dbPrepare( $sql );\n $dbObj->dbExecute( array( $this->username ) );\n\n $row = $dbObj->dbFetch( 'assoc' );\n\n if (true == $row['locked']) {\n $this->authMessage[] = 'Your account is locked, please contact customer support';\n\n return false;\n }\n\n if ( isset($row['username']) ) {\n $this->user = new user;\n $this->user->setEmail( $row['email'] );\n $this->user->setFirstName( $row['first_name'] );\n $this->user->setLastName( $row['last_name'] );\n $this->user->setPassword( $row['password'] );\n $this->user->setSalt( $row['salt'] );\n $this->user->setUsername( $row['username'] );\n\n $sql = 'SELECT\n ar.name\n FROM\n auth_user__auth_role auar\n JOIN\n auth_role ar ON auar.role_id = ar.id\n WHERE\n auar.user_id = ?';\n\n $dbObj = new db();\n $dbObj->dbPrepare( $sql );\n $dbObj->dbExecute( array( $row['id'] ) );\n\n $role = array();\n while ( $row = $dbObj->dbFetch( 'assoc' ) ) {\n if ( isset( $row['name'] ) ) {\n $role[] = $row['name'];\n }\n }\n\n $this->user->setRole($role);\n\n return true;\n }\n else {\n // This is an invalid application user\n return false;\n }\n }\n }", "title": "" }, { "docid": "794c3edc480603cd91b5337b41e37050", "score": "0.5694599", "text": "function auth($login, $passwd)\n{\n\tif (isset($login) &&\n\t\t$login !== \"\" &&\n\t\tisset($passwd) &&\n\t\t$passwd !== \"\" &&\n\t\tfile_exists(\"../private/passwd\"))\n\t{\n\t\t$passwd_file = file_get_contents(\"../private/passwd\");\n\t\t$passwd_database = unserialize($passwd_file);\n\t\tif (isset($passwd_database[$_POST['login']]) &&\n\t\t\t$passwd_database[$_POST['login']]['passwd'] === hash(\"whirlpool\", $_POST['passwd']))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "0ff3537fd8eaa24b7a9273568aeea4b5", "score": "0.5669251", "text": "public function isPrivate()\n {\n return $this->private && $this->user_id !== auth()->id()\n || $this->private && ! auth()->check() ? true : false;\n }", "title": "" }, { "docid": "8ff264c44ecec8cac4cd96455dd15c76", "score": "0.5662083", "text": "function check_auth()\r\n\t {\r\n\t $ci =& get_instance();\r\n\t return $ci->auth_model->is_logged_in();\r\n\t }", "title": "" }, { "docid": "f1badb3cd420c34ddc4687cec1c39f09", "score": "0.5650901", "text": "static function admin_connecter() {\n\n if (isset($_SESSION['password']) && isset($_SESSION['email'])) {\n return TRUE;\n } else {\n return FALSE;\n }\n }", "title": "" }, { "docid": "ae936c13e0b9a00bc8efc84af0f93f28", "score": "0.5647518", "text": "function is_admin()\r\n\t {\r\n\t $ci =& get_instance();\r\n\t return $ci->auth_model->is_admin();\r\n\t }", "title": "" }, { "docid": "c2b29a2ec3038ff9d9ce9376d60826b7", "score": "0.564468", "text": "public function isAuth(): bool;", "title": "" }, { "docid": "287081ea2b247ff46c17318e5336feee", "score": "0.56314033", "text": "protected function isInternalReadOnly()\n {\n $authService = $this->getServiceLocator()->get(\\ZfcRbac\\Service\\AuthorizationService::class);\n return (\n $authService->isGranted(RefData::PERMISSION_INTERNAL_USER)\n && !$authService->isGranted(RefData::PERMISSION_INTERNAL_EDIT)\n );\n }", "title": "" }, { "docid": "101fad626cb20af5a498097e826b383a", "score": "0.56273675", "text": "public function IsAdmin()\n {\n return $this->username === 'root';\n }", "title": "" }, { "docid": "9fc23bace94c72bbb28f51c5f47cf6fa", "score": "0.5626049", "text": "protected function passPrivateMode()\n {\n if (false == \\Phpfox::param('core.private_mode')\n and false == \\Phpfox::get('auth')->isLoggedIn()\n ) {\n return false;\n\n }\n return true;\n }", "title": "" }, { "docid": "592dc9047262ec5ac262d870f161f444", "score": "0.5621092", "text": "public function is_authenticated()\n {\n if($this->user_exists())\n {\n $user_key = $this->get_user_key();\n return $this->validate_password($user_key);\n\n } else {\n return false;\n }\n\n }", "title": "" }, { "docid": "1888e2b6de31e6a511055e7e0b561e8b", "score": "0.5601163", "text": "public function checkLogin() {\r\n return TRUE;\r\n }", "title": "" }, { "docid": "538c4c8a411596e30aca024ddd7471af", "score": "0.55901754", "text": "public function is_admin(): bool\n {\n if (session_status() === PHP_SESSION_NONE) {\n session_start();\n }\n if ($this->is_connected()) {\n $result = $this->membre->get_1Membre($this->get_connected_id());\n if ($result) {\n if ($result->idStat == 9) return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "9fc727a04d8e48cfdf0fce8fb5569d35", "score": "0.5584725", "text": "public function is_auth(){\n\t return $this->auth;\n }", "title": "" }, { "docid": "0c9eba3632ca86740422fac1ec198b47", "score": "0.5581882", "text": "public function is_admin()\n {\n return isset($this->authorized[$this->uniqname]);\n }", "title": "" }, { "docid": "1de6a88606a6e3479815fdfcacba3f62", "score": "0.5576623", "text": "public static function isAdmin()\n {\n return auth()->check() && auth()->user()->ticketit_admin;\n }", "title": "" }, { "docid": "876f7e316800635f6166eaabf07fe532", "score": "0.5576307", "text": "function yourls_is_private() {\n\tif (defined('YOURLS_PRIVATE') && YOURLS_PRIVATE == true) {\n\n\t\t// Allow overruling of particular pages\n\t\t$current = basename( $_SERVER[\"SCRIPT_NAME\"] );\n\n\t\tswitch( $current ) {\n\t\t\n\t\tcase 'yourls-api.php':\n\t\t\tif( !defined('YOURLS_PRIVATE_API') || YOURLS_PRIVATE_API != false )\n\t\t\t\treturn true;\n\t\t\tbreak;\n\t\t\t\t\n\t\tcase 'yourls-infos.php':\n\t\t\tif( !defined('YOURLS_PRIVATE_INFOS') || YOURLS_PRIVATE_INFOS !== false )\n\t\t\t\treturn true;\n\t\t\tbreak;\n\t\t\n\t\tdefault:\n\t\t\treturn true;\n\t\t\tbreak;\n\t\t}\n\t}\n\t\n\treturn false;\n}", "title": "" }, { "docid": "b4039144cec5159937de74b1baf3ab01", "score": "0.55551934", "text": "public function isInternal()\n {\n return false !== strpos($this->url, 'ppaction://');\n }", "title": "" }, { "docid": "6be90ed5e744e2c9e0bf88d759694bf6", "score": "0.55449295", "text": "function auth()\n\t{\n\t\tif(isset($_SESSION['can_login']) && $_SESSION['can_login'])\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "134059aa750aa5604dea83cbd8186ca7", "score": "0.55325454", "text": "abstract protected function isPasswordProtected(): bool;", "title": "" }, { "docid": "207ef2d51c1770deddfac65dd139323e", "score": "0.5529818", "text": "function is_admin() {\n if($this->admin == 'X' || $this->admin == 'x') {\n return true;\n } // end if\n\n return false;\n }", "title": "" }, { "docid": "314e8f9789f7588d72491b05562735e4", "score": "0.55287755", "text": "function isAuthenticate();", "title": "" }, { "docid": "35ae13b23407b2085f38e022a37e4166", "score": "0.5523871", "text": "public function isAuthentic();", "title": "" }, { "docid": "81676c1064bd7ec166a7ea62b3c57eb5", "score": "0.5522251", "text": "function is_passwd(string $string): bool\n{\n if (password_get_info($string)[\"algo\"]) {\n return true;\n }\n return (mb_strlen($string) >= CONF_PASSWD_MIN_LEN && mb_strlen($string) <= CONF_PASSWD_MAX_LEN ? true : false);\n}", "title": "" }, { "docid": "75d51771b686fcb79c210d5f3ed642a0", "score": "0.5521062", "text": "public function isPortalAdmin()\n {\n if (!Integration\\Bitrix24\\Service::isPortal() && !Integration\\Bitrix24\\Service::isCloud()) {\n return $this->isAdmin();\n }\n\n return $this->getObject()->canDoOperation('bitrix24_config', $this->id);\n }", "title": "" }, { "docid": "22a2316d1e5972cdfbd9f0cc8e5a7df8", "score": "0.5518151", "text": "public function userHasAuth(): bool\n {\n return Auth::check() && (\n Auth::user()->isSiteAdmin()\n || $this->id === Auth::user()->id\n );\n }", "title": "" }, { "docid": "059813e88d61705d2a6e5e14af48023c", "score": "0.551188", "text": "function verify_admin_master($clean, $mysqli)\n{\n $sql = \"SELECT password FROM User WHERE type = 'admin' AND username = '\" . $clean['username'] . \"' LIMIT 1;\";\n $result = $mysqli->query($sql);\n $hash = $result->fetch_row()[0];\n if (password_verify($clean['password'], $hash)) {\n return true;\n }\n return false;\n}", "title": "" }, { "docid": "f3786ff28f355c522efc609edf31c669", "score": "0.5492985", "text": "function islogin ($uname, &$passwd) {\r\n global $UNAME; global $PASSWDS;\r\n $passwd = cryptthis($passwd);\r\n foreach($UNAME as $index => $name) {\r\n if($name === $uname) {\r\n if($PASSWDS[$index] === $passwd){\r\n return TRUE;\r\n }\r\n return FALSE;\r\n }\r\n }\r\n return FALSE;\r\n }", "title": "" }, { "docid": "fe409d487aadc89509d720facf3a2830", "score": "0.5482811", "text": "public static function isLoggedParalelly() {\n\t\ttry {\n\t\t\tif (!self::isLogged()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (is_bool(self::$isLoggedParalelly)) {\n\t\t\t\treturn self::$isLoggedParalelly;\n\t\t\t}\n\t\t\treturn self::$isLoggedParalelly\t= self::isLoggedParalellyByID(self::getUserXTRecord()->id);\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\tthrow $e;\n\t\t}\n\t}", "title": "" }, { "docid": "7e6405f26c3525dd9080822d9523dd64", "score": "0.5481478", "text": "function authenticate() { \n return (TRUE);\n }", "title": "" }, { "docid": "457f2c0098101e5ce1f768b54eb7372d", "score": "0.5476527", "text": "public function is_admin_loged_in()\n\t{\n\t\treturn $this->session->userdata('admin_id') != FALSE;\n\t}", "title": "" }, { "docid": "2be66f5957e7fc6959b84624eb2f73ab", "score": "0.5469248", "text": "function user_login($username, $password) {\n // This plugin doesn't use usernames and passwords\n return false;\n }", "title": "" }, { "docid": "bd2d24b675c3e7d5e1e41c0424878bf6", "score": "0.5467888", "text": "protected static function check_not_logged_in_and_enabled() {\n // If they are already logged in, we don't need autologin.\n if (isloggedin() && !isguestuser()) {\n return false;\n }\n\n // Check if this plugin is enabled.\n return \\auth_saml2\\api::is_enabled();\n }", "title": "" }, { "docid": "36f69b17bd44dc2550190c06d81b2a08", "score": "0.5466088", "text": "public function checkAuth () {\n\t\t\t$login = $_POST['login'];\n\t\t\t$password = md5($_POST['password'].'password');\n// \t\t\t\tCheck autorization\n\t\t\tif (empty($_SESSION['auth'])) {\n// \t\t\t\t\tQuery database if the user is not logget in\n\t\t\t\t$result = $this->db->getUser($login, $password);\n// \t\t\t\t\t\tСheck admin\n\t\t\t\t\tif ($result[0][type] != 'none') {\n\t\t\t\t\t\tif (!empty($result)) {\n\t\t\t\t\t\t\t$_SESSION['auth'] = $login;\n\t\t\t\t\t\t\t$_SESSION['name'] = $result[0]['name'];\n\t\t\t\t\t\t\t$_SESSION['lastname'] = $result[0]['lastname'];\n\t\t\t\t\t\t\t$_SESSION['user_id'] = $result[0]['id'];\n\t\t\t\t\t\t\t$_SESSION['region'] = $result[0]['last_region'];\n\t\t\t\t\t\t\t$return = true;\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$return = false;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$return = true;\n\t\t\t}\n\n\t\t\treturn $return;\n\t\t}", "title": "" }, { "docid": "c86e027f1356f8821a3448d1a879c9e8", "score": "0.5459371", "text": "public function is_authenticated()\n {\n if(!isset($this->user) || $this->user['user_id'] == -1)\n self::getInstance();\n if(isset($this->user) && $this->user['user_id'] != -1)\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "f4500e299c40aabcf56af0e4576bd21d", "score": "0.54559463", "text": "private function check_login ()\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "857241c197c4c26a01610ce377f54abc", "score": "0.5448961", "text": "final public function isAuthenticated(): bool {\n\t\t// Always authenticated against non password protected shares\n\t\tif (!$this->isPasswordProtected()) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// If we are authenticated properly\n\t\tif ($this->session->get('public_link_authenticated_token') === $this->getToken() &&\n\t\t\t$this->session->get('public_link_authenticated_password_hash') === $this->getPasswordHash()) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Fail by default if nothing matches\n\t\treturn false;\n\t}", "title": "" }, { "docid": "900a23b71119fa5fbdcda228bbe61a78", "score": "0.54372954", "text": "protected function _isUserAuth()\n {\n return Mage::app()->getStore()->isAdmin()\n ? Mage::getSingleton('admin/session')->isLoggedIn()\n : Mage::getSingleton('customer/session')->isLoggedIn();\n }", "title": "" }, { "docid": "0949fd79cfd6ca79d53b9b51c349e5e0", "score": "0.5431206", "text": "public function transparent()\n {\n if (empty($_SERVER[$this->_params['username_header']])) {\n return false;\n }\n\n $username = $_SERVER[$this->_params['username_header']];\n\n // Remove scope from username, if present.\n $this->setCredential('userId', $this->_removeScope($username));\n\n // Set password for hordeauth login.\n switch ($this->_params['password_holder']) {\n case 'header':\n $this->setCredential('credentials', array(\n 'password' => $_SERVER[$this->_params['password_header']]\n ));\n break;\n\n case 'preferences':\n $this->setCredential('credentials', array(\n 'password' => $_SERVER[$this->_params['password_preference']]\n ));\n break;\n }\n\n return true;\n }", "title": "" }, { "docid": "9e98efd0bed7ad75c813ef32337dedea", "score": "0.54271847", "text": "public function isLoggedIn(){\n\t\tif(self::$loggedIn===false)\t{\n\t\t\tif(isset($_COOKIE['auth'])){\n\t\t\t\t$remote = Auth::decrypt($_COOKIE['auth']);\t\n\t\t\t\t$c_email = $this->conn->escape_string(urldecode(Auth::decrypt($_COOKIE['user'])));\n\t\t\t\n\t\t\t\tif(strlen($remote) === 64){\n\t\t\t\t\tself::$loginhash = $loginhash = hash('sha256',@$_SESSION[$remote].$this->ua);\n\t\t\t\t\t$q = self::$users->raw_query(\"SELECT *, CONCAT(firstname, ' ', lastname) AS name FROM {$this->usertable} WHERE loginhash = :loginhash AND email = :email\", array('loginhash' => $loginhash, 'email' => $c_email))->find_one();\n\n\t\t\t\t\tif($q !== false){\n\t\t\t\t\t\tself::$loggedIn = true;\n\t\t\t\t\t\tself::$user = $q->as_array();\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "83b3b9cbce9cea4bf1b079bc02ba8730", "score": "0.5427166", "text": "function can_change_password() {\n global $USER;\n return(is_enabled_auth('openid') && !empty($USER) && $USER->id > 0 &&\n property_exists($USER, 'auth') && $USER->auth == 'openid' &&\n ($this->config->auth_openid_allow_muliple == 'true' ||\n count_records('openid_urls', 'userid', $USER->id) > 1));\n }", "title": "" }, { "docid": "2bcd6160743a791d660b0f1abd94959f", "score": "0.5420751", "text": "public function authenticated()\n {\n // TODO: make this DB driven with api tokens and secret keys.\n // We did this so as to have at least one layer of protection, albeit a very weak one. - jhoward\n if ( isset(apache_request_headers()['Authorization'])):\n $auth = apache_request_headers()['Authorization'];\n $formattedAuth = substr($auth, strpos($auth, \" \")+1);\n $correctAuth = $this->apiUser . \":\" . $this->apiPass;\n if ((base64_decode($formattedAuth)) == $correctAuth):\n return true;\n else:\n return false;\n endif;\n else:\n return false;\n endif;\n }", "title": "" }, { "docid": "c1c5699c14420da14e50a37b940e2ed1", "score": "0.54055005", "text": "public function isAuthenticated(): bool\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2da87ce56b31d56a60c83620972bcdd1", "score": "0.5401759", "text": "function checkAccess () {\n if ($GLOBALS[\"pagedata\"][\"login\"] == 1) {\n if ($this->userid && $GLOBALS[\"user_show\"] == true) {\n return true;\n }\n else {\n return false;\n }\n }\n else {\n return true;\n }\n }", "title": "" }, { "docid": "e1104e73aa0ec1ff940b8b1b65d6e24f", "score": "0.5397969", "text": "function canLogin()\r\n\t{\r\n\t\t// get and set tries from db\r\n\t\tif ($this->status == 'active' && $this->tries_left) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "f5e8f367043b0b200f35f42f75f07825", "score": "0.539082", "text": "public function authenticate()\n\t{\n\t\treturn !$this->errorCode;\n\t}", "title": "" }, { "docid": "a663ae121f6bc96e3b7405ec1db8f8d1", "score": "0.53905004", "text": "public function hasPassword() {\n return $this->components['pass'] !== '';\n }", "title": "" }, { "docid": "13ecc6231d87c8c4bb335e93635c0350", "score": "0.53871447", "text": "function try_login()\r\n\t{\t\t\t\t\t\r\n\t\tif(!$this->try_item_login())\r\n\t\t{\r\n\t\t\tif(!$this->try_db_login())\r\n\t\t\t{\r\n\t\t\t\tif(installation::is_pageloc())\r\n\t\t\t\t{\r\n\t\t\t\t\treturn $this->try_pageloc_login();\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\treturn false;\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\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1dc750002e766c478bc71d3766aeff9a", "score": "0.53870964", "text": "function is_login() {\n global $_SESSION;\n global $global_login,$global_prv_key;\n\n if ((! empty($_SESSION['global_login'])) && (! empty($_SESSION['global_prv_key'])))\n return true;\n if ((! empty($global_login)) && (! empty($global_prv_key))) \n return true;\n return false;\n }", "title": "" }, { "docid": "19d7265c0b536c9808150cf9401fe78e", "score": "0.53794366", "text": "public function isLogin()\n\t{\n\t\treturn $this->getCurrentUser()->getStatus() == \n\t\t\t\\Hx\\Authenticate\\UserInterface::LOGIN;\n\t}", "title": "" }, { "docid": "70a0996091e33a20ba5177cd144523f8", "score": "0.5379399", "text": "function pp_db_show_password_fields() {\n\treturn 0;\n}", "title": "" }, { "docid": "54861d7d55b9298d5b1a9c6f7fdcc6d3", "score": "0.5374023", "text": "function CheckLogin()\n{\n\treturn isset($_GET['secret']) && $_GET['secret']== 'owned';\n}", "title": "" }, { "docid": "4c750ebad52cf72dec3e28152443735b", "score": "0.53739244", "text": "public function isAdmin()\n\t{\n\t\treturn ($this->status == 2);\n\t}", "title": "" }, { "docid": "9af1187d5db4d9c8142d9320e9e1c790", "score": "0.537189", "text": "function logincheck() {\n if ( is_user_logged_in() ) {\n return(true);\n } else {\n return(false);\n }\n }", "title": "" }, { "docid": "03e498902778c0991cc62e474403a2a0", "score": "0.53709924", "text": "public function is_active_login() {\n\t\treturn get_option( $this->setting_active_login, 0 );\n\t}", "title": "" }, { "docid": "93ca6abe1e92d45963ff4b1ae9bc175d", "score": "0.53701574", "text": "public static function check() {\n return \\Session::get('authUser') && \\Session::get('authIp') == $_SERVER['REMOTE_ADDR'];\n }", "title": "" }, { "docid": "6f2c606b581c49e215ac8769daf9e230", "score": "0.5367983", "text": "public function isAuthorized($_module) {\r\n $ok = FALSE;\r\n\r\n if ((int)$_SESSION['admin']['access'][strtolower($_module)] > 0) {\r\n $ok = TRUE;\r\n } else if ($_module == 'login') {\r\n $ok = TRUE;\r\n } else if ($_module == 'store' && $_SESSION['admin']['access']['configuration'] > 0) {\r\n $ok = TRUE;\r\n } else if ($_module == 'index' && $this->getPageContentsFilename() == 'main.php') {\r\n $ok = TRUE;\r\n } else if ($_module == 'customer_groups' && $_SESSION['admin']['access']['definitions'] > 0) {\r\n $ok = TRUE;\r\n } else if ($_module == 'orders_status' && $_SESSION['admin']['access']['definitions'] > 0) {\r\n $ok = TRUE;\r\n } else if ($_module == 'image_groups' && $_SESSION['admin']['access']['definitions'] > 0) {\r\n $ok = TRUE;\r\n } else if ($_module == 'weight_classes' && $_SESSION['admin']['access']['definitions'] > 0) {\r\n $ok = TRUE;\r\n } else if (stristr($_module, 'modules_') && $_SESSION['admin']['access']['modules'] > 0) {\r\n $ok = TRUE;\r\n } else if ($_module == 'services' && $_SESSION['admin']['access']['modules'] > 0) {\r\n $ok = TRUE;\r\n } else if ($_module == 'product_attributes' && $_SESSION['admin']['access']['modules'] > 0) {\r\n $ok = TRUE;\r\n }\r\n\r\n return $ok;\r\n }", "title": "" }, { "docid": "94c483b1fc9c6fe9766a5bf8d7d2da9a", "score": "0.5366402", "text": "public function IsEnabled() {\n\t\treturn $this->enabled && !empty($this->password);\n\t}", "title": "" }, { "docid": "64cf8a7b010aaeae49412e6446e922d9", "score": "0.53587437", "text": "function isLoggedIn( )\n\t{\n\t\tif($this->session['is_admin'])\n\t\t{\n\t\t\tdefine('SA_IS_ADMIN', 1);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdefine('SA_IS_ADMIN', 0);\n\t\t}\n\n\t\treturn ($this->session['uid'] ? true : false);\n\t}", "title": "" }, { "docid": "dbbf1d0250d2fbe841581bde05fc7ead", "score": "0.535556", "text": "function checkIfValidUserAndPasswordWithHttpBasicAuth()\r\n {\r\n $con = $this->dbHelper->connectToLocalDb();\r\n\r\n $myusername = mysqli_real_escape_string($con, $_SERVER['PHP_AUTH_USER']);\r\n $mypassword = mysqli_real_escape_string($con, $_SERVER['PHP_AUTH_PW']);\r\n //encrypt password\r\n $mypassword = md5($mypassword);\r\n\r\n $sql = \"\";\r\n $sql .= \"SELECT * \";\r\n $sql .= \"FROM members \";\r\n $sql .= \"WHERE username = '$myusername' \";\r\n $sql .= \" AND PASSWORD = '$mypassword' \";\r\n $sql .= \" AND active = 1 \";\r\n\r\n $result = $this->dbHelper->executeQuery($con, $sql);\r\n\r\n if ($result != FALSE) {\r\n $count = mysqli_num_rows($result);\r\n }\r\n mysqli_close($con);\r\n // Mysql_num_row is counting table row\r\n\r\n\r\n // If result matched $myusername and $mypassword, table row must be 1 row\r\n\r\n if ($count == 1) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "2a94d8ac14d4f8b07642351a02460f6b", "score": "0.5353747", "text": "function isLoggedIn()\n {\n $oSql = new cMySql();\n\n\n if (isset($_SESSION['user_id']) && isset($_SESSION['angemeldet']) && isset($_SESSION['login_remote_addr'])) {\n $aUser = $oSql->selectOne('login_credentials', ['id' => $_SESSION['user_id']]);\n\n if (is_array($aUser)) {\n\n if ($aUser['is_banned'] == 0) {\n if (self::checkRemoteAddr()) {\n if ($_SESSION['angemeldet'] == true) {\n //login ok\n\n return true;\n }\n }\n }\n }\n\n }\n\n return false;\n }", "title": "" }, { "docid": "4776fca6d36a938197d5fd356b98dbc8", "score": "0.53435636", "text": "public function isAuthenticated() {\n $this->debug->append(\"STA \" . __METHOD__, 4);\n if (@$_SESSION['AUTHENTICATED'] == true && ! $this->isLocked($_SESSION['USERDATA']['id']) && $this->getUserIp($_SESSION['USERDATA']['id']) == $_SERVER['REMOTE_ADDR'])\n return true;\n // Catchall\n $this->logoutUser();\n return false;\n }", "title": "" }, { "docid": "65f32ae2eebf2342084da9aa4295b04d", "score": "0.5343315", "text": "public static function checkAuth()\n {\n return phpCAS::checkAuthentication();\n }", "title": "" }, { "docid": "4c77b25f1620b1018e3a0ed0b61d62cf", "score": "0.53396934", "text": "protected function userCanAccessPlugin() {\n\t\t$this->loadSettings();\n\t\t$access = $this->settings['plugin_access'];\n\n\t\tif ( $access === 'super_admin' ) {\n\t\t\treturn is_super_admin();\n\t\t} else if ( $access === 'specific_user' ) {\n\t\t\treturn get_current_user_id() == $this->settings['allowed_user_id'];\n\t\t} else {\n\t\t\treturn current_user_can($access);\n\t\t}\n\t}", "title": "" }, { "docid": "c4621d654a9bea69e0958501136f1572", "score": "0.5325873", "text": "protected function canPassWithoutCheckingOTP() : bool\n {\n if (empty($this->getUser()->twoFactorAuth) || $this->getUser()->twoFactorAuth == null) {\n return true;\n }\n\n if ($this->verifyTwoFactorAuthentication()) {\n return true;\n }\n\n // Here we are checking the backup code.\n if ($this->checkBackupCode()) {\n $this->login();\n\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "963bba1edc48ee47123cf179ba87ebfa", "score": "0.5324864", "text": "function isSecured(): bool;", "title": "" }, { "docid": "5ca17499f90b24e9a1f5945947f6562a", "score": "0.5321398", "text": "function login() {\r\n\t\tglobal $DB;\r\n\t\t$sql = \"SELECT * FROM USERS WHERE PASSWORD='\".$this->password.\"' AND NAME='\".$this->name.\"' AND ENABLED = 1\";\r\n\t\t$q = new query($DB, $sql);\r\n\t\tif($r = $q->getrow()){\r\n\t\t\t$this->getById($r[\"ID\"]);\r\n\t\t\t$q->free();\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\t$q->free();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" } ]
7f0f38820b0edba22413783885169fa0
Draw an image to the provided coordinates.
[ { "docid": "4fbdaced9ec7229385b9d6e681468adf", "score": "0.7182407", "text": "public abstract function drawImage( MetaImage $image, $x, $y );", "title": "" } ]
[ { "docid": "e6583a661052e6c51b213f2605f6e50e", "score": "0.6532773", "text": "public function drawImage()\n {\n }", "title": "" }, { "docid": "3ff680a1135cb8b0d0e59177a5a73ca9", "score": "0.61993736", "text": "function wb_draw_image($target, $bitmap, $xpos = 0, $ypos = 0, $width = null, $height = null, $transparentcolor = null, $xoffset = null, $yoffset = null) {}", "title": "" }, { "docid": "441b4c976241d7fdb34acc599575e44b", "score": "0.59870064", "text": "function drawFromJPG($X, $Y, $FileName)\n\t{\n\t\t$this->drawFromPicture(3, $FileName, $X, $Y);\n\t}", "title": "" }, { "docid": "a90b17aa30d0ce7771d66821ea83bbdc", "score": "0.5891648", "text": "function drawFromPNG($X, $Y, $FileName)\n\t{\n\t\t$this->drawFromPicture(1, $FileName, $X, $Y);\n\t}", "title": "" }, { "docid": "600e31090a5d1b10c7c42559a0d873fa", "score": "0.5714255", "text": "public function draw();", "title": "" }, { "docid": "7d2f1522b20fe0cbae1f9f949c0de03e", "score": "0.56741476", "text": "public function draw($image, int $x, int $y): void\n {\n if ($this->getRotationAngle() !== 0) {\n if (!function_exists('imagerotate')) {\n throw new BCGDrawException('The method imagerotate doesn\\'t exist on your server. Do not use any rotation.');\n }\n\n $w = imagefontwidth($this->font) * strlen($this->text);\n $h = imagefontheight($this->font);\n $gd = imagecreatetruecolor($w, $h);\n imagefilledrectangle($gd, 0, 0, $w - 1, $h - 1, $this->backgroundColor->allocate($gd));\n imagestring($gd, $this->font, 0, 0, $this->text, $this->foregroundColor->allocate($gd));\n $gd = imagerotate($gd, $this->rotationAngle, 0);\n imagecopy($image, $gd, $x, $y, 0, 0, imagesx($gd), imagesy($gd));\n } else {\n imagestring($image, $this->font, $x, $y, $this->text, $this->foregroundColor->allocate($image));\n }\n }", "title": "" }, { "docid": "caac010d3b7688e8106bbed3fd80b34a", "score": "0.5541543", "text": "public function draw()\n\t{\n\t\t$this->image = imagecreatetruecolor($this->width, $this->height);\n\t\timagealphablending($this->image, true);\n\n\t\t$this->init_colors();\n\n\t\t// draw background + border\n\t\tif ($this->get_color('border_color'))\n\t\t{\n\t\t\timagefilledrectangle($this->image, 0, 0, $this->width, $this->height, $this->get_color('border_color')); // draw border\n\t\t\timagefilledrectangle($this->image, 1, 1, $this->width-2, $this->height-2, $this->get_color('background_color')); // draw background\n\t\t}\n\t\telse\n\t\t{\n\t\t\timagefilledrectangle($this->image, 0, 0, $this->width, $this->height, $this->get_color('background_color')); // draw background\n\t\t}\n\n\t\t// draw title\n\t\tif (!empty($this->title))\n\t\t{\n\t\t\t$box_points = imagettfbbox($this->font_size, 0, $this->font, $this->title);\n\t\t\t$textheight = $box_points[3]-$box_points[5];\n\t\t\t$textwidth = $box_points[4]-$box_points[6];\n\t\t\tutilities::imagestringbox($this->image, $this->font, $this->font_size, 0, $this->margin_top, $this->width, $this->margin_top+$textheight, ALIGN_CENTER, VALIGN_MIDDLE, 0, $this->title, $this->get_color('font_color2'));\n\t\t\t$this->margin_top += $textheight + 10;\n\n\t\t\t$this->add_occupied($this->width/2-$textwidth/2, $this->margin_top, $this->width/2+$textwidth/2, $this->margin_top+$textheight);\n\t\t}\n\t}", "title": "" }, { "docid": "73be5f7d12ecc69e4237792f8c169067", "score": "0.5345812", "text": "protected function drawImage()\n {\n\n if (!file_exists($this->imageFilePath)) {\n Utils::displayError(\"Unable to find local image\");\n }\n\n $this->setMemory();\n\n // Open the stored image from temp folder\n $image = $this->openImage();\n\n if ($image === false) {\n Utils::displayError('Unable to open image : ' . $this->imageFilePath);\n }\n\n // Get original width and height\n $imageWidth = imagesx($image);\n $imageHeight = imagesy($image);\n\n // Map the width and height to adjust\n $adjustedWidth = $this->newWidth;\n $adjustedHeight = $this->newHeight;\n\n if ($adjustedWidth == 0 && $adjustedHeight == 0) {\n $adjustedWidth = $imageWidth;\n $adjustedHeight = $imageHeight;\n }\n\n // Do not resize if the width is higher than the actual width\n if ($adjustedWidth > $imageWidth) {\n $adjustedWidth = $imageWidth;\n }\n\n if ($adjustedHeight > $imageHeight) {\n $adjustedHeight = $imageHeight;\n }\n\n\n\n if ($this->zoomCrop) {\n\n // generate new w/h if not provided\n if ($adjustedWidth > 0 && $adjustedHeight <= 0) {\n\n $adjustedHeight = $imageHeight * ($adjustedWidth / $imageWidth);\n\n } elseif ($adjustedHeight > 0 && $adjustedWidth <= 0) {\n\n $adjustedWidth = $imageWidth * ($adjustedHeight / $imageHeight);\n }\n\n } else {\n\n $factorWidth = ($adjustedWidth > 0) ? $adjustedWidth / $imageWidth : 0;\n $factorHeight = ($adjustedHeight > 0) ? $adjustedHeight / $imageHeight : 0;\n\n if ($adjustedWidth > $adjustedHeight) {\n $adjustedHeight = $imageHeight * $factorWidth;\n } else {\n $adjustedWidth = $imageWidth * $factorHeight;\n }\n\n }\n\n // Create a new true color image\n $canvas = imagecreatetruecolor($adjustedWidth, $adjustedHeight);\n imagealphablending($canvas, false);\n\n // Create a new transparent color for image\n $color = imagecolorallocatealpha($canvas, 0, 0, 0, 127);\n\n // Completely fill the background of the new image with allocated color.\n imagefill($canvas, 0, 0, $color);\n\n // Restore transparency blending\n imagesavealpha($canvas, true);\n\n if ($this->zoomCrop) {\n\n $sourceX = $sourceY = 0;\n\n $sourceWidth = $imageWidth;\n $sourceHeight = $imageHeight;\n\n $factorWidth = $imageWidth / $adjustedWidth;\n $factorHeight = $imageHeight / $adjustedHeight;\n\n // calculate x or y coordinate and width or height of source\n if ($factorWidth > $factorHeight) {\n\n $sourceWidth = round(($imageWidth / $factorWidth * $factorHeight));\n $sourceX = round(($imageWidth - ($imageWidth / $factorWidth * $factorHeight)) / 2);\n\n } elseif ($factorHeight > $factorWidth) {\n\n $sourceHeight = round(($imageHeight / $factorHeight * $factorWidth));\n $sourceY = round(($imageHeight - ($imageHeight / $factorHeight * $factorWidth)) / 2);\n\n }\n\n imagecopyresampled($canvas, $image, 0, 0, $sourceX, $sourceY, $adjustedWidth, $adjustedHeight, $sourceWidth, $sourceHeight);\n\n } else {\n\n imagecopyresampled($canvas, $image, 0, 0, 0, 0, $adjustedWidth, $adjustedHeight, $imageWidth, $imageHeight);\n\n }\n\n // Output image to browser based on mime type\n $this->showImage($canvas);\n\n // remove image from memory\n imagedestroy($canvas);\n\n }", "title": "" }, { "docid": "975e1bfea56b1f6733b3bafa709f2d99", "score": "0.53399986", "text": "protected function drawPixel($image, int $x, int $y, int $color = self::COLOR_FG): void\n {\n $scaleX = $this->scale * $this->scaleX;\n $scaleY = $this->scale * $this->scaleY;\n\n $xR = ($x + $this->offsetX) * $scaleX + $this->pushLabel[0];\n $yR = ($y + $this->offsetY) * $scaleY + $this->pushLabel[1];\n\n // We always draw a rectangle\n imagefilledrectangle(\n $image,\n $xR,\n $yR,\n $xR + $scaleX - 1,\n $yR + $scaleY - 1,\n $this->getColor($image, $color)\n );\n }", "title": "" }, { "docid": "59c2d4dc16c357290296b6ed9bfd85e1", "score": "0.5220137", "text": "public function plot($img, $x, $y, $value);", "title": "" }, { "docid": "2d29548e33659d106044e0bfdc35a56a", "score": "0.52016807", "text": "protected function createCanvas()\n {\n $w = 0;\n if($this->border instanceof Border){\n $w = $this->border->width();\n }\n\n $this->x += $w;\n $this->y += $w;\n\n $this->width = $this->x + $this->sideLength + $w;\n $this->height = $this->y + $this->sideLength + $w;\n $this->image = imagecreatetruecolor($this->width, $this->height);\n }", "title": "" }, { "docid": "ee4400960239bf4cf660a6761cd51202", "score": "0.51986444", "text": "final protected function _draw($image)\n {\n header(\"Content-type: image/png\");\n imagepng($image);\n imagedestroy($image);\n }", "title": "" }, { "docid": "733d8ff5e8821a6ec0fac9ee8dd98d11", "score": "0.5185342", "text": "public function image ()\n\t{\n\t\tgeoView::getInstance()->setRendered(true);\n\t\t\n\t\t//check to make sure one of methods exists\n\t\tif(! (function_exists('imagecreate') || function_exists('imagecreatetruecolor'))) {\n\t\t\techo 'Error: GD Library not found, or not up to date. The functions imagecreate() or imagecreatetruecolor() do not exist. The security image requires GD library to work. See the user manual for more information.';\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (!function_exists('imagejpeg') && !function_exists('imagegif') && !function_exists('imagepng') && !function_exists('imagewbmp')) {\n\t\t\techo 'Error: GD Library cannot create image, there is no jpeg, gif, png, or even bmp support.';\n\t\t\treturn;\n\t\t}\n\t\t$this->_init();\n\t\t\n\t\tif ($this->reg->useLines) { \n\t\t\t$lineCount = $this->reg->get('lines', 3);\n\t\t\tfor ($i = 0; $i < $lineCount; $i++) {\n\t\t\t\t$multx = ($i)? (50*floor($i/3-1) + rand(-10,10)): 0;\n\t\t\t\t$multy = (($i)? 20*floor($i%3-1): 0) + rand(-5,5);\n\t\t\t\t\n\t\t\t\t$x = $this->width/2 + $multx;\n\t\t\t\t$y = $this->height/2 + $multy;\n\t\t\t\t\n\t\t\t\t$this->_drawLines($x, $y, (($i)? 0: 1));\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tif ($this->reg->useGrid) {\n\t\t\t$this->_drawGrid();\n\t\t}\n\t\tif ($this->reg->useNoise) {\n\t\t\t$this->_drawNoise();\n\t\t}\n\t\t$this->_getFonts();\n\t\t\n\t\t$code = $this->_genChars();\n\t\t\n\t\tif (!$code) {\n\t\t\techo 'Error generating security code.';\n\t\t\treturn;\n\t\t}\n\t\t$this->_drawCode($code);\n\t\t\n\t\tif ($this->reg->useDistort) $this->_warpText();\n\t\t\n\t\t//apply transparencies\n\t\t$this->_applyTransparency();\n\t\t\n\t\t//make the image\n\t\timagecopymerge ($this->oImage, $this->tImage, 0,0,0,0,$this->width, $this->height,100);\n\t\t\n\t\t// apply blur, emboss, sketchy, negative filters\n\t\t$this->_applyFilters();\n\t\t\n\t\tif ($this->reg->useRefresh && $this->reg->refreshUrl) {\n\t\t\t$rImage = $this->_loadImageFromFile( $this->reg->refreshUrl );\n\t\t\tif ($rImage){\n\t\t\t\t$rWidth = imagesx( $rImage );\n\t\t\t\t$rHeight = imagesy( $rImage );\n\t\t\t\t\n\t\t\t\t$dst_x = $this->width - $rWidth;\n\t\t\t\t\n\t\t\t\timagecopy( $this->oImage, $rImage, $dst_x, 0, 0, 0, $rWidth, $rHeight );\n\t\t\t}\n\t\t}\n\t\t\n\t\timagerectangle($this->oImage,0,0,$this->width-1,$this->height-1,$this->black);\n\t\t\n\t\t$this->_setHeaders();\n\t\t\n\t\tif (function_exists(\"imagepng\")) {\n\t\t\t//prefer using png, it's most high tech\n\t\t\theader(\"Content-type: image/png\");\n\t\t\timagepng($this->oImage);\n\t\t} elseif (function_exists(\"imagegif\")) {\n\t\t\theader(\"Content-type: image/gif\");\n\t\t\timagegif($this->oImage);\n\t\t} elseif (function_exists(\"imagejpeg\")) {\n\t\t\theader(\"Content-type: image/jpeg\");\n\t\t\timagejpeg($this->oImage);\n\t\t} elseif (function_exists(\"imagewbmp\")) {\n\t\t\theader(\"Content-type: image/vnd.wap.wbmp\");\n\t\t\timagewbmp($this->oImage);\n\t\t}\n\t\t\n\t\t// free memory used in creating image\n\t\timagedestroy($this->oImage);\n\t\timagedestroy($this->tImage);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "af061609ec83588161ecad38a0e39cf0", "score": "0.5174492", "text": "function drawFromGIF($X, $Y, $FileName)\n\t{\n\t\t$this->drawFromPicture(2, $FileName, $X, $Y);\n\t}", "title": "" }, { "docid": "2d7ba00987ea618c2dced924945418c8", "score": "0.5075732", "text": "function image($params)\n {\n $x = $this->_getX($params['x']);\n $y = $this->_getY($params['y']);\n $filename = $params['filename'];\n $width = (isset($params['width']) ? $params['width'] : false);\n $height = (isset($params['height']) ? $params['height'] : false);\n $alignment = (isset($params['alignment']) ? $params['alignment'] : false);\n\n if (substr($filename, -4) == '.png') {\n $type = 'png';\n } elseif (substr($filename, -4) == '.jpg') {\n $type = 'jpeg';\n }\n\n $image = ps_open_image_file($this->_ps, $type, realpath($filename), '');\n $width_ = ps_get_value($this->_ps, 'imagewidth', $image);\n $height_ = ps_get_value($this->_ps, 'imageheight', $image);\n\n $outputWidth = ($width !== false ? $width : $width_);\n $outputHeight = ($height !== false ? $height : $height_);\n\n if (!is_array($alignment)) {\n $alignment = array('vertical' => 'top', 'horizontal' => 'left');\n }\n \n if (!isset($alignment['vertical'])) {\n $alignment['vertical'] = 'top';\n }\n \n if (!isset($alignment['horizontal'])) {\n $alignment['horizontal'] = 'left';\n }\n\n if ($alignment['horizontal'] == 'right') {\n $x -= $outputWidth;\n } elseif ($alignment['horizontal'] == 'center') {\n $x -= $outputWidth / 2;\n }\n\n if ($alignment['vertical'] == 'top') {\n $y += $outputHeight;\n } elseif ($alignment['vertical'] == 'center') {\n $y += $outputHeight / 2;\n }\n \n if (($width === false) && ($height === false)) {\n $scale = 1;\n } else {\n $scale = max(($height/$height_), ($width/$width_));\n } \n\n ps_place_image($this->_ps, $image, $x, $y, $scale);\n ps_close_image($this->_ps, $image);\n \n parent::image($params);\n }", "title": "" }, { "docid": "7234c37d1d777f4cb7e1b7a0ecfbf2bf", "score": "0.49866655", "text": "protected function fill()\n {\n if($this->color instanceof Color) {\n $fillColor = imagecolorallocate(\n $this->image,\n $this->color->red(),\n $this->color->green(),\n $this->color->blue()\n );\n\n imagefilledrectangle($this->image, $this->x, $this->y, $this->x + $this->sideLength, $this->y + $this->sideLength, $fillColor);\n }\n }", "title": "" }, { "docid": "6ea2583e2e0ac9a1c4768af1cb6282dd", "score": "0.49834168", "text": "public function draw(): void \n { \n try {\n $this->animation->draw($this->position);\n }\n catch (Exception $e) {\n LogManager::getInstance()->error($e);\n }\n }", "title": "" }, { "docid": "77cc915c55b9f7da135a9b540ee3dd93", "score": "0.49557284", "text": "function wb_draw_point($source, $xpos, $ypos, $color) {}", "title": "" }, { "docid": "9e905afc7c43e594e01b23068a9db892", "score": "0.4941438", "text": "public function cropImage($width, $height, $x, $y);", "title": "" }, { "docid": "1b17b9e4ccccee709c1976c19e5f2a9d", "score": "0.48355553", "text": "function place_image($file,$x,$y,$type='',$link='',$w=0,$h=0)\n{\n\tif(!isset($this->images[$file]))\n\t{\n\t\t//First use of image, get info\n\t\tif($type=='')\n\t\t{\n\t\t\t$pos=strrpos($file,'.');\n\t\t\tif(!$pos)\n\t\t\t\t$this->Error('Image file has no extension and no type was specified: '.$file);\n\t\t\t$type=substr($file,$pos+1);\n\t\t}\n\t\t$type=strtolower($type);\n\t\tif ($type == 'jpg' || $type == 'jpeg') {\n\t\t\t$info = $this->_parsejpg($file);\n\t\t} elseif ($type == 'png') {\n\t\t\t$info = $this->_parsepng($file);\n\t\t} elseif ($type == 'gif') {\n\t\t\t$info = $this->_parsegif($file);\n\t\t} else {\n\t\t\t$this->Error(\"Unsupported image type: \" . $type);\n\t\t}\n\t\t$info['i']=count($this->images)+1;\n\t\t$this->images[$file]=$info;\n\t}\n\telse\n\t\t$info=$this->images[$file];\n\t//Automatic width and height calculation if needed\n\tif($w==0 && $h==0)\n\t{\n\t\t//Put image at 72 dpi\n\t\t$w=$info['w'];\n\t\t$h=$info['h'];\n\t}\n\tif($w==0)\n\t\t$w=$h*$info['w']/$info['h'];\n\tif($h==0)\n\t\t$h=$w*$info['h']/$info['w'];\n\t$this->_out(sprintf('q %.2f 0 0 %.2f %.2f %.2f cm /I%d Do Q',$w,$h,$x,$y,$info['i']));\n\tif($link)\n\t\t$this->Link($x,$y,$w,$h,$link);\n}", "title": "" }, { "docid": "e31749b8a23478ccb7854af1823b81e3", "score": "0.47886214", "text": "abstract public function draw($side);", "title": "" }, { "docid": "9de9114895766943354c39defb29d419", "score": "0.47875646", "text": "function doImage()\n\t{\n\t\tif ($this->use_gd_font == true) {\n\t\t\t$this->iscale = 1;\n\t\t}\n\t\tif($this->use_transparent_text == true || $this->bgimg != \"\") {\n\t\t\t$this->im = imagecreatetruecolor($this->image_width, $this->image_height);\n\t\t\t$this->tmpimg = imagecreatetruecolor($this->image_width * $this->iscale, $this->image_height * $this->iscale);\n\n\t\t} else { //no transparency\n\t\t\t$this->im = imagecreate($this->image_width, $this->image_height);\n\t\t\t$this->tmpimg = imagecreate($this->image_width * $this->iscale, $this->image_height * $this->iscale);\n\t\t}\n\t\t\n\t\t$this->allocateColors();\n\t\timagepalettecopy($this->tmpimg, $this->im);\n\n\t\t$this->setBackground();\n\n\t\t$this->createCode();\n\n\t\tif (!$this->draw_lines_over_text && $this->num_lines > 0) $this->drawLines();\n\n\t\t$this->drawWord();\n\t\tif ($this->use_gd_font == false && is_readable($this->ttf_file)) $this->distortedCopy();\n\n\t\tif ($this->draw_lines_over_text && $this->num_lines > 0) $this->drawLines();\n\n\t\tif (trim($this->image_signature) != '')\t$this->addSignature();\n\n\t\t$this->output();\n\n\t}", "title": "" }, { "docid": "0ec0bef6a1cdd1ffc3e63e64b5a6099a", "score": "0.47779796", "text": "public function draw()\n {\n\n }", "title": "" }, { "docid": "701da1fae01c09afafe9fab960f32876", "score": "0.4774565", "text": "public function writeImage();", "title": "" }, { "docid": "0c80ecb3f28bd8f2192de07887019cf8", "score": "0.46981126", "text": "abstract protected function createImage();", "title": "" }, { "docid": "2bb1a81af5dffac1195a83dee8999cef", "score": "0.46953592", "text": "function GDImage($im, $x=null, $y=null, $w=0, $h=0, $link='')\n {\n ob_start();\n imagepng($im);\n $data = ob_get_clean();\n $this->MemImage($data, $x, $y, $w, $h, $link);\n }", "title": "" }, { "docid": "15e6e1e6cc51e229cb06b46910f1c6d3", "score": "0.46782896", "text": "public function draw($param)\n {}", "title": "" }, { "docid": "97dd7c22baf0f593a11f28e616960df4", "score": "0.46508136", "text": "protected function drawRectangle($image, int $x1, int $y1, int $x2, int $y2, int $color = BCGBarcode::COLOR_FG): void\n {\n $scaleX = $this->scale * $this->scaleX;\n $scaleY = $this->scale * $this->scaleY;\n\n if ($this->scale === 1) {\n imagefilledrectangle(\n $image,\n ($x1 + $this->offsetX) * $scaleX + $this->pushLabel[0],\n ($y1 + $this->offsetY) * $scaleY + $this->pushLabel[1],\n ($x2 + $this->offsetX) * $scaleX + $this->pushLabel[0],\n ($y2 + $this->offsetY) * $scaleY + $this->pushLabel[1],\n $this->getColor($image, $color)\n );\n } else {\n imagefilledrectangle($image, ($x1 + $this->offsetX) * $scaleX + $this->pushLabel[0], ($y1 + $this->offsetY) * $scaleY + $this->pushLabel[1], ($x2 + $this->offsetX) * $scaleX + $scaleX - 1 + $this->pushLabel[0], ($y1 + $this->offsetY) * $scaleY + $scaleY - 1 + $this->pushLabel[1], $this->getColor($image, $color));\n imagefilledrectangle($image, ($x1 + $this->offsetX) * $scaleX + $this->pushLabel[0], ($y1 + $this->offsetY) * $scaleY + $this->pushLabel[1], ($x1 + $this->offsetX) * $scaleX + $scaleX - 1 + $this->pushLabel[0], ($y2 + $this->offsetY) * $scaleY + $scaleY - 1 + $this->pushLabel[1], $this->getColor($image, $color));\n imagefilledrectangle($image, ($x2 + $this->offsetX) * $scaleX + $this->pushLabel[0], ($y1 + $this->offsetY) * $scaleY + $this->pushLabel[1], ($x2 + $this->offsetX) * $scaleX + $scaleX - 1 + $this->pushLabel[0], ($y2 + $this->offsetY) * $scaleY + $scaleY - 1 + $this->pushLabel[1], $this->getColor($image, $color));\n imagefilledrectangle($image, ($x1 + $this->offsetX) * $scaleX + $this->pushLabel[0], ($y2 + $this->offsetY) * $scaleY + $this->pushLabel[1], ($x2 + $this->offsetX) * $scaleX + $scaleX - 1 + $this->pushLabel[0], ($y2 + $this->offsetY) * $scaleY + $scaleY - 1 + $this->pushLabel[1], $this->getColor($image, $color));\n }\n }", "title": "" }, { "docid": "996a789fbb36da62e381c023143a01b4", "score": "0.4615812", "text": "function identicon_draw_shape($x,$y){ \r\n\t\t$index=$this->xy2symmetric($x,$y);\r\n\t\t$shape=$this->shapes[$this->shapes_mat[$index]];\r\n\t\t$invert=$this->invert_mat[$index];\r\n\t\t$rotation=$this->rot_mat[$index];\r\n\t\t$centers=$this->centers[$x][$y];\r\n\t\t$invert2=abs($invert-1);\r\n\t\t$points=$this->identicon_calc_x_y($this->square,$centers,0);\r\n\t\t$num = count($points) / 2;\r\n\t\timagefilledpolygon($this->im, $points, $num, $this->colors[$invert2]);\r\n\t\tforeach($shape as $subshape){\r\n\t\t\t$points=$this->identicon_calc_x_y($subshape,$centers,$rotation+$this->rotations[$x][$y]);\r\n\t\t\t$num = count($points) / 2;\r\n\t\t\timagefilledpolygon($this->im, $points, $num,$this->colors[$invert]);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "68758b0087e028256cd90dbf7ba322bd", "score": "0.46118575", "text": "public function draw($file=null) {\r\n\t\t\r\n\t\t//Start the fun!\r\n\t\t$this->final = new Imagick();\r\n\t\t\r\n\t\t//We want to block button which is ridiculously big\r\n\t\tif ($this->width() > $this->maxWidth) {\r\n\t\t\t$this->width($this->maxWidth);\r\n\t\t}\r\n\t\t\r\n\t\tif ($this->height() > $this->maxHeight) {\r\n\t\t\t$this->height($this->maxHeight);\r\n\t\t}\r\n\t\t\r\n\t\t$this->final->newImage($this->width(), $this->height(), $this->backgroundColor(), $this->imageType());\r\n\t\t\r\n\t\t$this->doGradient();\r\n\t\t$this->doText();\r\n\t\t$this->doGlossy();\r\n\t\t\r\n\t\t\r\n\t\tif (!empty($file)) {\r\n\t\t\t$this->final->writeImage($file);\r\n\t\t}else{\r\n\t\t\t//echo\r\n\t\t\t$this->final->trimImage(0);\r\n\t\t\t$mime = $this->imageType();\r\n\t\t\theader(\"Content-Type: image/{$mime}\");\r\n\t\t\techo $this->final;\r\n\t\t}\r\n\t\t\r\n\t\t//Cleanup\r\n\t\t$this->final->destroy();\r\n\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "18da8e75e0fa4bd0eca29ffdaa7fe605", "score": "0.4606338", "text": "public function draw(DrawableInterface $drawable, $style = null);", "title": "" }, { "docid": "8bc46a6a2b7062b0ed3faf9e17ed8a97", "score": "0.45874265", "text": "private function createCanvas(int $imgWidth, int $imgHeight)\n {\n if (function_exists('imagecreatetruecolor')) {\n $this->im = imagecreatetruecolor($imgWidth, $imgHeight);\n \n // @codeCoverageIgnoreStart\n } else {\n $this->im = imagecreate($imgWidth, $imgHeight);\n }\n\n // @codeCoverageIgnoreEnd\n }", "title": "" }, { "docid": "3254ebb0246561a2636ce92cedbf6dbe", "score": "0.45836216", "text": "function addImage($currentSlideName,$imgpath,$height,$width,$ofsetX,$ofsetY,$setname,$setdesc){\n $shape = $currentSlideName->createDrawingShape();\n $shape->setName($setname)\n ->setDescription($setdesc)\n ->setPath($imgpath)\n ->setHeight($height)\n ->setWidth($width)\n ->setOffsetX($ofsetX)\n ->setOffsetY($ofsetY);\n}", "title": "" }, { "docid": "e639594444bd9242853071d492c7320f", "score": "0.45725393", "text": "public function run(Image $image);", "title": "" }, { "docid": "db35e06ce5b4cbcc946c43e3354e1a21", "score": "0.4549273", "text": "function realImage($file,$x,$y,$w=0,$h=0,$type='',$link=''){\n\t\treturn parent::Image($file,$x,$y,$w,$h,$type,$link);\n\t}", "title": "" }, { "docid": "7a4bd0b90fd460dc0a36f2e35e3f4858", "score": "0.45231614", "text": "function drawLines()\n\t{\n\t\tfor ($line = 0; $line < $this->num_lines; ++$line) {\n\t\t\t$x = $this->image_width * (1 + $line) / ($this->num_lines + 1);\n\t\t\t$x += (0.5 - $this->frand()) * $this->image_width / $this->num_lines;\n\t\t\t$y = rand($this->image_height * 0.1, $this->image_height * 0.9);\n\t\t\t \n\t\t\t$theta = ($this->frand()-0.5) * M_PI * 0.7;\n\t\t\t$w = $this->image_width;\n\t\t\t$len = rand($w * 0.4, $w * 0.7);\n\t\t\t$lwid = rand(0, 2);\n\t\t\t \n\t\t\t$k = $this->frand() * 0.6 + 0.2;\n\t\t\t$k = $k * $k * 0.5;\n\t\t\t$phi = $this->frand() * 6.28;\n\t\t\t$step = 0.5;\n\t\t\t$dx = $step * cos($theta);\n\t\t\t$dy = $step * sin($theta);\n\t\t\t$n = $len / $step;\n\t\t\t$amp = 1.5 * $this->frand() / ($k + 5.0 / $len);\n\t\t\t$x0 = $x - 0.5 * $len * cos($theta);\n\t\t\t$y0 = $y - 0.5 * $len * sin($theta);\n\t\t\t \n\t\t\t$ldx = round(-$dy * $lwid);\n\t\t\t$ldy = round($dx * $lwid);\n\t\t\t \n\t\t\tfor ($i = 0; $i < $n; ++$i) {\n\t\t\t\t$x = $x0 + $i * $dx + $amp * $dy * sin($k * $i * $step + $phi);\n\t\t\t\t$y = $y0 + $i * $dy - $amp * $dx * sin($k * $i * $step + $phi);\n\t\t\t\timagefilledrectangle($this->im, $x, $y, $x + $lwid, $y + $lwid, $this->gdlinecolor);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "90c66760e339d4fe3483a74956bbd6e4", "score": "0.45143688", "text": "protected function drawText($image, int $x1, int $y1, int $x2, int $y2): void\n {\n foreach ($this->labels as $label) {\n $label->draw(\n $image,\n ($x1 + $this->offsetX) * $this->scale * $this->scaleX + $this->pushLabel[0],\n ($y1 + $this->offsetY) * $this->scale * $this->scaleY + $this->pushLabel[1],\n ($x2 + $this->offsetX) * $this->scale * $this->scaleX + $this->pushLabel[0],\n ($y2 + $this->offsetY) * $this->scale * $this->scaleY + $this->pushLabel[1]\n );\n }\n }", "title": "" }, { "docid": "a7ea96041fe3ee90f106e6f8bc6d20ea", "score": "0.4509568", "text": "protected function drawFilledRectangle($image, int $x1, int $y1, int $x2, int $y2, int $color = BCGBarcode::COLOR_FG): void\n {\n if ($x1 > $x2) { // Swap\n $x1 ^= $x2 ^= $x1 ^= $x2;\n }\n\n if ($y1 > $y2) { // Swap\n $y1 ^= $y2 ^= $y1 ^= $y2;\n }\n\n $scaleX = $this->scale * $this->scaleX;\n $scaleY = $this->scale * $this->scaleY;\n\n imagefilledrectangle(\n $image,\n ($x1 + $this->offsetX) * $scaleX + $this->pushLabel[0],\n ($y1 + $this->offsetY) * $scaleY + $this->pushLabel[1],\n ($x2 + $this->offsetX) * $scaleX + $scaleX - 1 + $this->pushLabel[0],\n ($y2 + $this->offsetY) * $scaleY + $scaleY - 1 + $this->pushLabel[1],\n $this->getColor($image, $color)\n );\n }", "title": "" }, { "docid": "704710171c5e3132e8b67618e1489735", "score": "0.4489557", "text": "public function renderImage($mode, $lat1, $lat2, $lon1, $lon2) {\n header(\"Content-type: image/png\");\n MyUtils::setIni(180, '1024M');\n\n $request = $this->getHttpRequest();\n $zoom = $request->getQuery(\"zoom\");\n\n $this->overlayRenderer = new OverlayRenderer($zoom);\n\n // not allowed mode -> set do default mode\n if(!$this->allowedMode($mode)) $mode = self::DEFAULT_MODE;\n\n // zoom is too small\n if($zoom < self::MIN_OVERLAY_ZOOM) {\n echo MyUtils::image2string($this->overlayRenderer->drawNone());\n exit;\n }\n\n // increase coords range, due to future crop\n $coords = new Coords($lat1, $lat2, $lon1, $lon2);\n $coords->increaseLatLngRange(self::INCREASE_LATLNG_RANGE_ABOUT);\n\n // params for image creation\n $params = array();\n switch($mode) {\n case self::MODE_SEARCH:\n $ssidmac = $request->getQuery(\"ssidmac\");\n if($ssidmac) {\n if(MyUtils::isMacAddress($ssidmac)) { $params['mac'] = urldecode($ssidmac); }\n else { $params['ssid'] = $ssidmac; }\n }\n $channel = $request->getQuery('channel');\n if ($channel != null && $channel != \"\") { $params['channel'] = intval($channel); }\n $security = $request->getQuery('security');\n if($security != null && $security != '') { $params['sec'] = intval($security); }\n $source = $request->getQuery('source');\n if($source != null && $source != \"\") {$params['id_source'] = intval($source);}\n break;\n case self::MODE_HIGHLIGHT:\n $by = $request->getQuery(\"by\");\n if (in_array($by, self::$MODE_HIGHLIGHT_ALLOWED_BY)) {\n $params['by'] = $by;\n $val = $request->getQuery(\"val\");\n $params['val'] = $val;\n }\n break;\n case self::MODE_ONE:\n $ssidmac = $this->getHttpRequest()->getQuery('ssid');\n if(MyUtils::isMacAddress($ssidmac)) { $params['mac'] = urldecode($ssidmac); }\n else { $params['ssid'] = $ssidmac; }\n break;\n default:\n break;\n }\n\n // generating cache key\n $key = MyUtils::generateCacheKey($mode,$coords,$zoom,$params);\n\n // try to find in cache\n if(self::CACHE_ON && $mode != self::MODE_CALCULATED) {\n $img = $this->cache->load($key);\n if($img != null) {\n echo $img;\n return;\n }\n }\n\n // get data and generate tile of overlay\n switch($mode) {\n case self::MODE_SEARCH:\n $params['coords'] = $coords;\n $nets = $this->oWifiManager->getNetsByParams($params,array('ssid,mac,latitude,longitude,id_source'));\n $img = $this->overlayRenderer->drawModeAll($coords, $nets);\n break;\n case self::MODE_HIGHLIGHT:\n if(!empty($params)) {\n $params['coords'] = $coords;\n $params[$params['by']] = $params['val'];\n unset($params['by']); unset($params['val']);\n $highlightedIds = $this->oWifiManager->getNetsByParams($params,array('id'));\n $allNets = $this->oWifiManager->getNetsByParams(array('coords'=>$params['coords']),array('id,ssid,mac,latitude,longitude,id_source'));\n $img = $this->overlayRenderer->drawModeHighlight($coords, $allNets, $highlightedIds);\n }\n else {\n $nets = $this->wifiManager->getAllNetsInLatLngRange($coords,array('latitude','longitude','ssid','mac','id_source'),true);\n $img = $this->overlayRenderer->drawModeAll($coords, $nets);\n }\n break;\n case self::MODE_ONE:\n $nets = $this->wifiManager->getNetsModeSearch($coords,$params);\n $img = $this->overlayRenderer->drawModeOne($coords,$nets);\n break;\n case self::MODE_CALCULATED:\n $net = $this->wifiManager->getWifiById($this->getHttpRequest()->getQuery('a'));\n $lat = $net->getLatitude();\n $lon = $net->getLongitude();\n\n $lat1 = doubleval($lat) - 0.003;\n $lat2 = doubleval($lat) + 0.003;\n $lon1 = doubleval($lon) - 0.003/2;\n $lon2 = doubleval($lon) + 0.003/2;\n\n $coordsNew = new Coords($lat1,$lat2,$lon1,$lon2);\n\n $nets = $this->wifiManager->getNetsModeSearch($coordsNew, array('mac'=>$net->getMac()));\n $nets2 = $this->wifiManager->getNetsModeSearch($coords,array('mac'=>$net->getMac()));\n $latt = 0; $lont = 0;\n foreach($nets as $net) {\n $latt += $net->getLatitude();\n $lont += $net->getLongitude();\n }\n $lat_avg = $latt / ((double)count($nets));\n $lon_avg = $lont / ((double)count($nets));\n $net = new Wifi();\n $net->setLatitude($lat_avg);\n $net->setLongitude($lon_avg);\n $img = $this->overlayRenderer->drawCalculated($coords,$nets2,$net);\n break;\n default:\n $nets = $this->wifiManager->getAllNetsInLatLngRange($coords,array('latitude','longitude','ssid','mac','id_source'),true);\n $img = $this->overlayRenderer->drawModeAll($coords, $nets);\n break;\n }\n\n $image = MyUtils::image2string($img);\n $img = null;\n\n // save generated image to cache\n if(self::CACHE_ON && $mode != self::MODE_CALCULATED) {\n $this->cache->save($key, $image, array(Cache::EXPIRE => time() + self::$cacheExpire[$zoom]));\n }\n echo $image;\n return;\n }", "title": "" }, { "docid": "074fa095a87941b0db0b911c05e0f39d", "score": "0.44883046", "text": "function ecopngmap($img, $left_margin, $right_margin, $top_margin, $bottom_margin, $left_end, $right_end, $imx,$imy)\n {\n $this->left_margin = $left_margin;\n $this->right_margin = $right_margin;\n $this->top_margin = $top_margin;\n $this->bottom_margin = $bottom_margin;\n $this->left_end = $left_end;\n $this->right_end = $right_end; \n $this->imx = $imx;\n $this->imy = $imy;\n // $this->fontfile = $fontfile;\n // $this->text_size = $text_size;\n // $this->line_size = $line_size;\n // $this->num_of_lines = $num_of_lines;\n // $this->dist_line = $dist_line;\n $this->img=$img;\n \n\t\t}", "title": "" }, { "docid": "02e1310ab30403db07ccf0cb17913411", "score": "0.44625103", "text": "public function addPixelate($_image)\n {\n $imagex = imagesx($_image);\n $imagey = imagesy($_image);\n $blocksize = 12;\n\n for ($x = 0; $x < $imagex; $x += $blocksize)\n {\n for ($y = 0; $y < $imagey; $y += $blocksize)\n {\n $rgb = imagecolorat($_image, $x, $y);\n imagefilledrectangle($_image, $x, $y, $x + $blocksize - 1, $y + $blocksize - 1, $rgb);\n }\n }\n\n return $_image;\n }", "title": "" }, { "docid": "c16184f1288bfd02d167d3e74c51c950", "score": "0.44622132", "text": "function draw() {\n echo \"Ellipse(\" . $this->getX() . \",\" . $this->getY() .\n \") diameterH=\" . $this->getHorizontalDiameter() . \" diameterV=\" . $this->getVerticalDiameter() . \"\\n\";\n }", "title": "" }, { "docid": "652240ab544267c4b55f8c2de41d7f0d", "score": "0.44552755", "text": "function combineImage( $image,$filename,$line,$x_loc,$y_loc )\n\t{\n\t\t$info = getimagesize($filename)\n\t\t\tor debugMode( $line,$php_errormsg );\n\n\t\tswitch( $info['mime'] )\n\t\t{\n\t\t\tcase 'image/jpeg' :\n\t\t\t\t$im_temp = @imagecreatefromjpeg($filename)\n\t\t\t\t\tor debugMode( $line,$php_errormsg );\n\t\t\t\tbreak;\n\n\t\t\tcase 'image/png' :\n\t\t\t\t$im_temp = @imagecreatefrompng($filename)\n\t\t\t\t\tor debugMode( $line,$php_errormsg );\n\t\t\t\tbreak;\n\n\t\t\tcase 'image/gif' :\n\t\t\t\t$im_temp = @imagecreatefromgif($filename)\n\t\t\t\t\tor debugMode( $line,$php_errormsg );\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tdebugMode( $line,'Unhandled image type: ' . $info['mime'] );\n\t\t}\n\n\t\t// Get the image dimentions\n\t\t$im_temp_width = imageSX( $im_temp );\n\t\t$im_temp_height = imageSY( $im_temp );\n\n\t\t// Copy created image into main image\n\t\t@imagecopy( $image,$im_temp,$x_loc,$y_loc,0,0,$im_temp_width,$im_temp_height )\n\t\t\tor debugMode( $line,$php_errormsg );\n\n\t\t// Destroy the temp image\n\t\tif( isset($im_temp) )\n\t\t{\n\t\t\t@imageDestroy( $im_temp )\n\t\t\t\tor debugMode( $line,$php_errormsg );\n\t\t}\n\t}", "title": "" }, { "docid": "fa6b271694d48fe58fd05826155275f9", "score": "0.44432727", "text": "private function freshImage(): void\n {\n $this->image = Image::canvas($this->x,$this->y, $this->colorize('background'));\n $this->snapshot();\n }", "title": "" }, { "docid": "8509f327b30993df268bdea2a53cb2d2", "score": "0.4425968", "text": "private function createImg()\n\t{\n\t\t$this->img = imagecreatetruecolor($this->width,$this->height);\n\t}", "title": "" }, { "docid": "d613a9452e52d9a185f0b539b62b22dd", "score": "0.44243175", "text": "public function draw($id);", "title": "" }, { "docid": "615779da5310fe514ec27f40d06eddf9", "score": "0.44122416", "text": "function apply()\n {\n $o = $this->_params;\n\n $d = $this->_image->getDimensions();\n $x = $o['padding'];\n $y = $o['padding'];\n $width = $d['width'] - (2 * $o['padding']);\n $height = $d['height'] - (2 * $o['padding']);\n\n if ($o['roundWidth'] > 0) {\n $this->_image->roundedRectangle($x, $y, $width, $height, $o['roundWidth'], $o['borderColor'], $o['fillColor']);\n } else {\n $this->_image->rectangle($x, $y, $width, $height, $o['borderColor'], $o['fillColor']);\n }\n }", "title": "" }, { "docid": "78aa9f86d97e63204463a9553b09f222", "score": "0.44090402", "text": "public function outputToScreen(){\n\t\theader(\"Content-Type: image/png\");\n\t\timagepng($this->image);\n\t}", "title": "" }, { "docid": "62df19e9922c62db77433c3c4c16c15e", "score": "0.44046384", "text": "public function square ($pixels) {\r\nif ($this->data === FALSE) return false;\r\n$width = $height = $pixels;\r\n$x = $y = 0;\r\n$size = $this->width;\r\nif ($this->height > $this->width) {\r\n$y = round(($this->height - $this->width) / 2);\r\n} elseif ($this->width > $this->height) {\r\n$x = round(($this->width - $this->height) / 2);\r\n$size = $this->height;\r\n}\r\n$this->image = ''; // to clean the slate if necessary\r\n$this->image = @imagecreatefromstring($this->data);\r\n$image = imagecreatetruecolor ($width, $height);\r\nif ($this->type == 'png') {\r\nimagealphablending ($image, false);\r\nimagesavealpha ($image, true);\r\n$transparent = imagecolorallocatealpha ($image, 255, 255, 255, 127);\r\nimagefilledrectangle ($image, 0, 0, $width, $height, $transparent);\r\n} else {\r\n$white = imagecolorallocate ($image, 255, 255, 255);\r\nimagefilledrectangle ($image, 0, 0, $width, $height, $white);\r\n}\r\nimagecopyresampled ($image, $this->image, 0, 0, $x, $y, $width, $height, $size, $size);\r\n$this->image = $image;\r\nreturn true;\r\n}", "title": "" }, { "docid": "7cd59c32776e4c3dacb6c00a64b5f45e", "score": "0.43945137", "text": "protected function doExecute()\n {\n\t\tif(!Folder::exists($this->imageFolder)) {\n\n\t\t\tJoomla\\Log\\Log::add('Cannot find or write to the images folder', Joomla\\Log\\Log::ERROR, 'Kike');\n\n\t\t\tthrow new \\RuntimeException('Cannot find or write to the images folder');\n\t\t}\n\t\t\n\t\t/*\n\t\t * Check if there are parameters.\n\t\t *\n\t\t * In case of, continue with image processing.\n\t\t *\n\t\t * Otherwise do nothing.\n\t\t*/\n\t\tif (isset($this->inputParams)) {\t\t\n\t\t\t\n\t\t\t$this->imageParams = explode('-', $this->inputParams);\n\t\t\t\n\t\t // Set the image dimensions\n\t\t $this->setImageDimensions();\n \n\t\t // Set the image resize method\n\t\t $this->setImageScale();\n\n\t\t // Set the image filter\n\t\t $this->setImageFilter();\n\t\t\t\t\n\t\t\t// Create and output the requested image\n\t\t\t$this->createImage($this->width,$this->height);\n\n\t\t} else {\n\n\t\t\t// Do nothing. Uncomment the next line to set a document body\n\t\t\t//$this->setBody(file_get_contents(JPATH_SITE.'/test.html'));\n\n\t\t}\n }", "title": "" }, { "docid": "51d96798569e263cd197ca3e85e95681", "score": "0.43874288", "text": "function drawFromPicture($PicType, $FileName, $X, $Y)\n\t{\n\t\tif (file_exists($FileName)) {\n\t\t\t# getPicInfo returns and array of 3 elements, but the \"Type\" is not used\n\t\t\tlist($Width, $Height) = $this->getPicInfo($FileName);\n\t\t\tif ($PicType == 1) {\n\t\t\t\t$Raster = imagecreatefrompng($FileName);\n\t\t\t} elseif ($PicType == 2) {\n\t\t\t\t$Raster = imagecreatefromgif($FileName);\n\t\t\t} elseif ($PicType == 3) {\n\t\t\t\t$Raster = imagecreatefromjpeg($FileName);\n\t\t\t} else {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\t$RestoreShadow = $this->Shadow;\n\t\t\tif ($this->Shadow) {\n\t\t\t\t$this->Shadow = FALSE;\n\t\t\t\tif ($PicType == 3) {\n\t\t\t\t\t$this->drawFilledRectangle($X + $this->ShadowX, $Y + $this->ShadowY, $X + $Width + $this->ShadowX, $Y + $Height + $this->ShadowY, [\"R\" => $this->ShadowR,\"G\" => $this->ShadowG,\"B\" => $this->ShadowB,\"Alpha\" => $this->Shadowa]);\n\t\t\t\t} else {\n\t\t\t\t\t$TranparentID = imagecolortransparent($Raster);\n\t\t\t\t\tfor ($Xc = 0; $Xc <= $Width - 1; $Xc++) {\n\t\t\t\t\t\tfor ($Yc = 0; $Yc <= $Height - 1; $Yc++) {\n\t\t\t\t\t\t\t$RGBa = imagecolorat($Raster, $Xc, $Yc);\n\t\t\t\t\t\t\t$Values = imagecolorsforindex($Raster, $RGBa);\n\t\t\t\t\t\t\tif ($Values[\"alpha\"] < 120) {\n\t\t\t\t\t\t\t\t$AlphaFactor = floor(($this->Shadowa / 100) * ((100 / 127) * (127 - $Values[\"alpha\"])));\n\t\t\t\t\t\t\t\t$this->drawAlphaPixel($X + $Xc + $this->ShadowX, $Y + $Yc + $this->ShadowY, $AlphaFactor, $this->ShadowR, $this->ShadowG, $this->ShadowB);\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$this->Shadow = $RestoreShadow;\n\t\t\timagecopy($this->Picture, $Raster, $X, $Y, 0, 0, $Width, $Height);\n\t\t\timagedestroy($Raster);\n\t\t}\n\t}", "title": "" }, { "docid": "3c007fa9cd031727b0ad7af0945ccfbc", "score": "0.43754166", "text": "public function cropAtPoint($x, $y, $width, $height) {\n if ($width > $this->width || $height > $this->height)\n throw new Exception('Invalid width or height.');\n \n if ($x < 0 || $y < 0)\n throw new Exception('Invalid top left coordinates.');\n \n $im = imagecreatetruecolor($width, $height);\n \n $this->handleTransparency($im);\n \n imagecopyresampled($im, $this->image, 0, 0, $x, $y, $width, $height, $width, $height);\n $this->image = $im;\n $this->width = $width;\n $this->height = $height;\n }", "title": "" }, { "docid": "ad8dee4bf6a5f339955938f2c1372480", "score": "0.43740255", "text": "function canvasResize($x, $y, $position = 'center',\n $color = array(255, 255, 255))\n {\n $this->new_x = $x;\n $this->new_y = $y;\n $trueColor = true;\n // creates image for temporary processing\n $newImg = $this->_createImage($this->new_x, $this->new_y, $trueColor);\n\n // resolve canvas color\n $options = array('canvasColor' => $color);\n $color = $this->_getColor('canvasColor', $options);\n\n // get color index (closest one if none)\n //$c = imagecolorresolve($this->imageHandle, $color[0],\n // $color[1], $color[2]);\n $c = imagecolorallocate($newImg, $color[0], $color[1], $color[2]);\n imagefill($newImg, 0, 0, $c);\n\n $startX = 0;\n $startY = 0;\n if ('center' == $position) {\n $startX = round(($this->new_x - $this->img_x) / 2);\n $startY = round(($this->new_y - $this->img_y) / 2);\n }\n\n ImageCopy($newImg, $this->imageHandle, $startX, $startY,\n 0, 0, $this->img_x, $this->img_y);\n $this->imageHandle = $newImg;\n $this->resized = true;\n\n // new image size (size of canvas)\n $this->img_x = $this->new_x;\n $this->img_y = $this->new_y;\n\n return true;\n }", "title": "" }, { "docid": "27b7191fb2438fe820dd2486ce1ea216", "score": "0.43734297", "text": "function wb_get_pixel($source, $xpos, $ypos) {}", "title": "" }, { "docid": "b9625fd1aa847cc6f5fe50e9d521b04c", "score": "0.4372799", "text": "private static function internalRender(\\GdImage $image, string $text, array $font, array $coords): void\n {\n [$coordX, $coordY] = $coords;\n [$file, $size, $color, $angle] = $font;\n\n \\imagettftext($image, $size, $angle, $coordX, $coordY, $color, $file, $text);\n }", "title": "" }, { "docid": "d7a2a5236aebb23f1368b70ca68442c3", "score": "0.43712053", "text": "public function output(){\n\t\t $width = 72;\n\t\t $height = 25;\n\t\t\n\t\t // create image\n\t\t $image = imagecreate($width, $height);\n\t\t\n\t\t $white = imagecolorallocate($image, 255, 255, 255);\n\t\t $black = imagecolorallocate($image, 0, 0, 0);\n\t\t\n\t\t // setup the image background\n\t\t imagefill($image, 0, 0, $black);\n\t\t\n\t\t // add string to the image\n\t\t imagestring($image, 4, 16, 5, self::$_code, $white);\n\t\t\n\t\t imagerectangle($image,0,0,$width-1,$height-1,$black);\n\t\t\n\t\t // setup the page headers\n\t\t header(\"Content-Type: image/jpeg\");\n\t\t\n\t\t // output the image to the browser\n\t\t imagejpeg($image);\n }", "title": "" }, { "docid": "72e887c0ed8309fa28fc82ee5f6d921f", "score": "0.4360497", "text": "public function drawArc($x, $y, $width, $height, $start, $end, array $colour);", "title": "" }, { "docid": "e1c10dee83474477e446fc24a8d4f725", "score": "0.43341666", "text": "public function draw ()\n {\n $this->_checkParams();\n $this->_matrix_table = $this->_prepareMatrixcode();\n }", "title": "" }, { "docid": "4f8be383a48959f69279f35006eb84e0", "score": "0.43318325", "text": "function SetPlotAreaPixels($x1 = NULL, $y1 = NULL, $x2 = NULL, $y2 = NULL)\n {\n $this->x_left_margin = $x1;\n $this->x_right_margin = isset($x2) ? $this->image_width - $x2 : NULL;\n $this->y_top_margin = $y1;\n $this->y_bot_margin = isset($y2) ? $this->image_height - $y2 : NULL;\n return TRUE;\n }", "title": "" }, { "docid": "24488ecfa822c3ea14a84d7297d64566", "score": "0.43275762", "text": "public function image();", "title": "" }, { "docid": "ce176860dcc24ab0f96195673cbb524e", "score": "0.43165955", "text": "protected function _sendImage()\n\t{\n\t\tif(!$this->image_redraw)\n\t\t{\n\t\t\t$this->_sendOrigImage();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif( !function_exists('imagecreatefromstring') && !function_exists('getimagesizefromstring') )\n\t\t\t{\n\t\t\t\t$this->_sendOrigImage();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t$img = imagecreatefromstring($this->image_data);\n\t\t\t\t\tif(false != $img)\n\t\t\t\t\t{\n\t\t\t\t\t\t$imagesize = getimagesizefromstring($this->image_data);\n\t\t\t\t\t\t$this->_sendRedrawnImage ($img, $imagesize[2]);\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$this->_sendOrigImage();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(Exception $e)\n\t\t\t\t{\n\t\t\t\t\t$this->_sendOrigImage();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fd190f51aa2474d93ec25a35611b3c4c", "score": "0.43114868", "text": "public static function render($parent) {\n if(!isset(self::$colorize)) {\n self::$colorize = function_exists('imagefilter') && defined('IMG_FILTER_COLORIZE');\n }\n \n # load source image (in order to get dimensions)\n $input_file = self::read($parent->get_input_file());\n\n # create object for destination image\n $output_file = imagecreatetruecolor( imagesx($input_file), imagesy($input_file) );\n $white_color = imagecolorallocate($output_file, 255, 255, 255);\n imagefill($output_file, 0, 0, $white_color);\n \n # do any necessary preprocessing & transformation of the coordinates\n $coordinates = $parent->get_coordinates();\n $max_rep = 0;\n $normal = array();\n foreach($coordinates as $pair) {\n # normalize repeated coordinate pairs\n $pair_key = \"{$pair[0]}x{$pair[1]}\";\n if(isset($normal[$pair_key])) {\n $normal[$pair_key][2]++;\n }\n else {\n $normal[$pair_key] = array($pair[0], $pair[1], 1);\n }\n # get the max repitition count of any single coord set in the data\n if($normal[$pair_key][2] > $max_rep) {\n $max_rep = $normal[$pair_key][2];\n }\n }\n $coordinates = array_values($normal);\n unset($normal);\n \n # load plot image (presumably greyscale)\n $plot_file = self::read($parent->get_plot_file());\n \n # calculate coord correction based on plot image size\n $plot_correct = array( (imagesx($plot_file) / 2), (imagesy($plot_file) / 2) );\n \n # colorize opacity for how many times at most a point will be repeated\n $colorize_percent = (99 / $max_rep);\n if($colorize_percent < 1) { $colorize_percent = 1; }\n \n # use built-in colorization if available\n if(self::$colorize) {\n imagefilter($plot_file, IMG_FILTER_COLORIZE, 255, 255, 255, ((128 * $colorize_percent) / 100));\n }\n else {\n self::colorize($plot_file, $colorize_percent);\n }\n \n # paste one plot for each coordinate pair\n foreach($coordinates as $pair) {\n $x = ($pair[0] - $plot_correct[0]);\n $y = ($pair[1] - $plot_correct[1]);\n \n # for how many times coord pair was repeated\n for($i = 0; $i < $pair[2]; $i++) {\n # paste plot, centered on given coords\n self::composite($output_file, $plot_file, $x, $y);\n }\n }\n \n # destroy plot file, as we don't need it anymore\n imagedestroy($plot_file);\n \n # open color lookup table\n $color_file = self::read($parent->get_color_file());\n \n # apply color lookup table\n $output_width = imagesx($output_file);\n $output_height = imagesy($output_file);\n $color_width = imagesx($color_file);\n $color_height = imagesy($color_file);\n \n $cached_colors = array();\n \n for($x = 0; $x < $output_width; $x++) {\n for($y = 0; $y < $output_height; $y++) {\n # calculate color lookup location\n $pixel_red = (imagecolorat($output_file, $x, $y) >> 16) & 0xFF;\n \n # cache colors as we look them up\n if(isset($cached_colors[$pixel_red])) {\n $lookup_color = $cached_colors[$pixel_red];\n }\n else {\n $color_offset = ($pixel_red / 255) * ($color_height - 1);\n $lookup_color = self::getcolor( imagecolorat($color_file, 0, $color_offset) );\n $cached_colors[$pixel_red] = $lookup_color;\n }\n \n # allocate and set new color from lookup table\n $new_color = imagecolorallocate($output_file, $lookup_color[0], $lookup_color[1], $lookup_color[2]);\n imagesetpixel($output_file, $x, $y, $new_color);\n imagecolordeallocate($output_file, $new_color);\n }\n }\n \n # overlay heatmap over source image\n if($parent->get_overlay() == True) {\n imagecopymerge($input_file, $output_file, 0, 0, 0, 0, $output_width, $output_height, $parent->get_opacity());\n imagedestroy($output_file);\n $output_file = $input_file;\n }\n \n # write destination image\n self::write($output_file, $parent->get_output_file());\n \n # return true if successful\n return True;\n }", "title": "" }, { "docid": "22e32fb43ae3e41f599a1a355d050d41", "score": "0.42962885", "text": "private function saveImage($image): void\n {\n ob_start();\n header(\"Content-type: image/png\");\n imagepng($image, \"circle.png\");\n ob_get_clean();\n }", "title": "" }, { "docid": "a587b657ad7d609c8f89975be11c3b43", "score": "0.42936105", "text": "public function index()\n {\n header(\"Content-Type: image/png;charset=utf-8\");\n //创建一个200*200像素的空白图形\n $img = imagecreatetruecolor(400,300);\n\n //设置椭圆的颜色\n $col_ellipse = imagecolorallocate($img, 255, 255, 255);\n\n //画一个椭圆\n imageellipse($img, 200, 150, 300, 200, $col_ellipse);\n\n //输出图像\n\n imagegif($img);\n\n imagedestroy($img);\n }", "title": "" }, { "docid": "a5502cab6a73afba5d753feeab334cee", "score": "0.4293271", "text": "function sexoIndefinido($im, $x1, $y1, $cor)\n{\n /* $x2 = $x1;\n $y2 = $y1 + 50;\n imageline($im, $x1, $y1, $x2, $y2, $cor); */\n // lozângulo\n $xa = $x1 - 18;\n $ya = $y1 + 68;\n imagefilledpolygon(\n $im,\n array(\n $xa, $ya, // 1\n $xa + 18, $ya + 18, // 2\n $xa + 36, $ya, // 3\n $xa + 18, $ya - 18, // 4\n ),\n 4,\n $cor\n );\n}", "title": "" }, { "docid": "a4850149571b58967b6ea3544b949353", "score": "0.42909706", "text": "function draw(): void\n {\n echo \"Draw Rectangle::draw()\";\n }", "title": "" }, { "docid": "25919cb5893bf1e56812024a27877282", "score": "0.42885485", "text": "public static function DrawDot( $path, $dots, $temp = FALSE, $width = 0, $height = 0 )\n {\n \t$image_path = $path;\n \t$temp_dir = $temp;\n \t$is_url = FALSE;\n\n \tif( filter_var( $path, FILTER_VALIDATE_URL ) ){\n\n \t\tif( $temp_dir ){\n \t\t\t$temp_dir = \"/\" . trim( $temp_dir, \"/\" ) . \"/\";\n \t\t}\n\n \t\t$url_info = parse_url( $path );\n \t\t$filename = basename( $url_info[ \"path\" ] );\n \t\t$image_path = $temp_dir . $filename;\n\n \t\t$image = @file_get_contents( $path );\n \t\t@file_put_contents( $image_path, $image );\n \t\t$is_url = TRUE;\n \t}\n\n \t$new_image_path = $temp_dir . md5( rand(1,19) . time() ) . \".jpg\";\n \tif( ! static::ConvertToJPG( $image_path, $new_image_path, $width, $height ) ){\n \t\treturn FALSE;\n \t}\n\n \t$image = imagecreatefromjpeg( $new_image_path );\n \t$ellipseColor = imagecolorallocate( $image, 255, 0, 0 );\n\n \tforeach( $dots as $dot ){\n \t\timagefilledellipse( $image, $dot->cx, $dot->cy, $dot->r, $dot->r, $ellipseColor );\n \t}\n\n \tunlink( $new_image_path );\n \timagejpeg( $image, $new_image_path );\n\n \treturn basename( $new_image_path );\n }", "title": "" }, { "docid": "1cae4802339fb239c8b237138c449bb0", "score": "0.428311", "text": "function StartPixel(){\r\n\r\n // The data starts 24 bits in (3 bytes)\r\n $this->PixelPointer['x'] = ($this->Width - 1) - 8;\r\n $this->PixelPointer['y'] = ($this->Height - 1);\r\n }", "title": "" }, { "docid": "cf0f574833b55c1fa3be7b3195881fba", "score": "0.42786276", "text": "function RotatedImage($file,$x,$y,$w,$h,$angle)\n{\n\t$this->Rotate($angle,$x,$y);\n\t$this->Image($file,$x,$y,$w,$h);\n\t$this->Rotate(0);\n}", "title": "" }, { "docid": "301571a4f7ee5cfd571d92e3f1880a25", "score": "0.42757475", "text": "public function draw(){\n $activeView = $this->getActiveView();\n if($activeView){\n $activeView->draw();\n }\n }", "title": "" }, { "docid": "f0769abb2e6c3c8d857d82e33e333ce3", "score": "0.4273882", "text": "public function setCropFromPixel(int $x = 0, int $y = 0, int $width = 0, int $height = 0): Imagine\n {\n $this->cropType = 'manual';\n\n $this->cropSize = array(\n 'x' => $x < 0 ? 0 : $x,\n 'y' => $y < 0 ? 0 : $y,\n 'width' => $width < 0 ? 0 : $width,\n 'height' => $height < 0 ? 0 : $height,\n );\n\n return $this;\n }", "title": "" }, { "docid": "e674c9171b1aea115128a2ec2e7d12cd", "score": "0.42661452", "text": "public function operateImage($src)\n {\n $info=getimagesize($src);\n $type=image_type_to_extension($info[2],false);\n $this->waterImageX=$info[0];\n $this->waterImageY=$info[1];\n $createImageType='imagecreatefrom'.$type;\n $this->waterImage=$createImageType($src);\n imagecopymerge($this->image,$this->waterImage,$this->imageX/2,$this->imageY/2,0,0,$this->waterImageX,$this->waterImageY,100);\n }", "title": "" }, { "docid": "f46b6048ce9835c5a3687979fcbc656a", "score": "0.42626336", "text": "public function crop($x, $y, $width, $height);", "title": "" }, { "docid": "f2edacceffd0efa2b3c7f74656219edb", "score": "0.42570373", "text": "public function getPixel(Coordinate $coordinate);", "title": "" }, { "docid": "632ae4f8cc98d189a1fc259e9833ea2d", "score": "0.42547044", "text": "public function addImage($image, $x, $y, $width, $height)\n {\n if (stripos(substr($image, -5), '.svg') !== false) {\n $this->pdf->ImageSvg($image, $x, $y, $width, $height);\n } else {\n $this->pdf->Image($image, $x, $y, $width, $height);\n }\n\n return $this;\n }", "title": "" }, { "docid": "1d89dd23fb44f205c1e5fb8db75b4217", "score": "0.4251591", "text": "public function draw()\n {\n throw new \\Exception('Not implementedImplement draw');\n }", "title": "" }, { "docid": "ce76bbd73491331da5431d4f8f39440a", "score": "0.4250403", "text": "public function draw(&$image, $drawingObject)\n {\n if ($image->isAnimated()) { // Ignore animated GIF for now\n return $this;\n }\n\n $image = $drawingObject->draw($image);\n\n return $this;\n }", "title": "" }, { "docid": "12f8dece7c8d45974a64d85fb0e49b16", "score": "0.4247402", "text": "function Image_Canvas($params)\n {\n if (isset($params['left'])) {\n $this->_left = $params['left'];\n }\n\n if (isset($params['top'])) {\n $this->_top = $params['top'];\n }\n\n if (isset($params['width'])) {\n $this->_width = $params['width'];\n }\n\n if (isset($params['height'])) {\n $this->_height = $params['height'];\n }\n \n $this->setDefaultFont($this->_defaultFont);\n }", "title": "" }, { "docid": "a9541f215128a24f5adc2d6c53ac497f", "score": "0.42469344", "text": "public function apply(Image $image);", "title": "" }, { "docid": "79a5df341d85655b7d05e0731916c6b5", "score": "0.4240658", "text": "function wb_draw_rect($target, $xpos, $ypos, $width, $height, $color, $filled = null, $linewidth = null, $linestyle = null) {}", "title": "" }, { "docid": "69e7758e62f7eb0b80969568773d1d3f", "score": "0.4239665", "text": "public function toCanvas()\n {\n printf('ctx.beginPath();\n ctx.arc(%d,%d,%d,0,2*Math.PI); \n ctx.stroke();', $this->getx(), -$this->gety(), 1);\n }", "title": "" }, { "docid": "0bd2a9483d8759e93d85256d5261162a", "score": "0.42342392", "text": "public function drawRectangle($x0, $y0, $x1, $y1, array $colour, $filled = false);", "title": "" }, { "docid": "1fae7250450e9c769498777e294f8b54", "score": "0.42322975", "text": "public function generateImages($arguments = null);", "title": "" }, { "docid": "b0458e785a708d4c23202c97d98abeef", "score": "0.42302665", "text": "public function setCrop($x, $y, $w, $h)\n\t{\n\t\t$this->image[\"targetx\"] = $x;\n\t\t$this->image[\"targety\"] = $y;\n\t\t$this->image[\"sizex\"] = $w;\n\t\t$this->image[\"sizey\"] = $h;\n\t}", "title": "" }, { "docid": "4f0231f00c66727cb5eeee0ac5ca9d88", "score": "0.42264557", "text": "function draw(){\n $this->build();\n echo $this->output;\n }", "title": "" }, { "docid": "4377308863b20ac4b967569bf489e4dc", "score": "0.42260674", "text": "protected function drawLines()\n {\n for ($line = 0; $line < $this->num_lines; ++ $line) {\n $x = $this->Width * (1 + $line) / ($this->num_lines + 1);\n $x += (0.5 - $this->frand()) * $this->Width / $this->num_lines;\n $y = mt_rand($this->Height * 0.1, $this->Height * 0.9);\n\n $theta = ($this->frand() - 0.5) * M_PI * 0.7;\n $w = $this->Width;\n $len = mt_rand($w * 0.4, $w * 0.7);\n $lwid = mt_rand(0, 2);\n\n $k = $this->frand() * 0.6 + 0.2;\n $k = $k * $k * 0.5;\n $phi = $this->frand() * 6.28;\n $step = 0.5;\n $dx = $step * cos($theta);\n $dy = $step * sin($theta);\n $n = $len / $step;\n $amp = 1.5 * $this->frand() / ($k + 5.0 / $len);\n $x0 = $x - 0.5 * $len * cos($theta);\n $y0 = $y - 0.5 * $len * sin($theta);\n\n $ldx = round(- $dy * $lwid);\n $ldy = round($dx * $lwid);\n\n for ($i = 0; $i < $n; ++ $i) {\n $x = $x0 + $i * $dx + $amp * $dy * sin($k * $i * $step + $phi);\n $y = $y0 + $i * $dy - $amp * $dx * sin($k * $i * $step + $phi);\n imagefilledrectangle($this->Image, $x, $y, $x + $lwid, $y + $lwid, $this->gdlinecolor);\n }\n }\n }", "title": "" }, { "docid": "39a6930396d7c356c574f189e0ea6c6d", "score": "0.42166075", "text": "function output() {\n if ($this->image_type == IMAGETYPE_JPEG) {\n imagejpeg($this->image);\n } elseif ($this->image_type == IMAGETYPE_GIF) {\n imagegif($this->image);\n } elseif ($this->image_type == IMAGETYPE_PNG) {\n imagepng($this->image);\n }\n }", "title": "" }, { "docid": "9f130e3882c98dfe124cbf3bc18ef5a5", "score": "0.4211277", "text": "public function create_image(){\n\n $command = new Command($this->options);\n\n $command->fire();\n\n echo ICR_URL.'includes/'.$this->options['output_image'].'.jpg';\n\n wp_die();\n\n }", "title": "" }, { "docid": "51d0e95d9cab869a1234c9710506781a", "score": "0.42066061", "text": "public function fill() {\n $line_numbers = imagesy($this->image);\n $line_width = imagesx($this->image);\n list($r1,$g1,$b1) = $this->hex2rgb($this->startcolour);\n list($r2,$g2,$b2) = $this->hex2rgb($this->endcolour);\n \n\t\t$r = 0;\n\t\t$g = 0;\n\t\t$b = 0;\n \n for ( $i = 0; $i < $line_numbers; $i=$i+1+$this->step ) {\n // old values :\n $old_r=$r;\n $old_g=$g;\n $old_b=$b;\n // new values :\n $r = ( $r2 - $r1 != 0 ) ? intval( $r1 + ( $r2 - $r1 ) * ( $i / $line_numbers ) ): $r1;\n $g = ( $g2 - $g1 != 0 ) ? intval( $g1 + ( $g2 - $g1 ) * ( $i / $line_numbers ) ): $g1;\n $b = ( $b2 - $b1 != 0 ) ? intval( $b1 + ( $b2 - $b1 ) * ( $i / $line_numbers ) ): $b1;\n if ( \"$old_r,$old_g,$old_b\" != \"$r,$g,$b\") {\n $fill = imagecolorallocate( $this->image, $r, $g, $b );\n\t }\n\n imagefilledrectangle($this->image, 0, $i, $line_width, $i+$this->step, $fill);\n }\n }", "title": "" }, { "docid": "3cd8f1e7b3681189ebd0f7925d5d5d56", "score": "0.41945943", "text": "function line($params)\n {\n $x0 = $this->_getX($params['x0']);\n $y0 = $this->_getY($params['y0']);\n $x1 = $this->_getX($params['x1']);\n $y1 = $this->_getY($params['y1']);\n if (isset($params['end0'])) {\n $angle = Image_Canvas_Tool::getAngle($x1, $y1, $x0, $y0);\n $this->drawEnd(\n array(\n 'end' => $params['end0'], \n 'x' => $params['x0'], \n 'y' => $params['y0'], \n 'angle' => $angle,\n 'color' => (isset($params['color0']) ? $params['color0'] : false),\n 'size' => $params['size0']\n )\n );\n } \n if (isset($params['end1'])) {\n $angle = Image_Canvas_Tool::getAngle($x0, $y0, $x1, $y1);\n //print \"<pre>\"; var_dump($params, $angle); print \"</pre>\";\n $this->drawEnd(\n array(\n 'end' => $params['end1'], \n 'x' => $params['x1'], \n 'y' => $params['y1'], \n 'angle' => $angle,\n 'color' => (isset($params['color1']) ? $params['color1'] : false),\n 'size' => $params['size1']\n )\n );\n } \n $this->_reset();\n }", "title": "" }, { "docid": "f180d25085b1f6926d544bb5edac14a1", "score": "0.4194434", "text": "protected function draw() {\r\n //$tmp = $this->getCount();\r\n $tmp = $this->numBezierPoints;\r\n while ((($tmp - 4) % 3) != 0) {\r\n $tmp++;\r\n }\r\n\r\n $p = Array();\r\n for ( $t = 0; $t < $this->getCount(); $t++) {\r\n $p[$t] = new TeePoint($this->calcXPos($t), $this->calcYPos($t));\r\n }\r\n\r\n // Copy last point to remainder (see limitation above) \r\n for ( $t = $this->getCount(); $t < $tmp; $t++) {\r\n $p[$t] = $p[$this->getCount() - 1];\r\n }\r\n\r\n $g = $this->chart->getGraphics3D();\r\n $g->getBrush()->setVisible(false);\r\n\r\n if (!$this->getLinePen()->getVisible())\r\n $g->getPen()->setColor(Color::TRANSPARENT());\r\n else\r\n $g->setPen($this->getLinePen());\r\n// }\r\n if ($this->chart->getAspect()->getView3D()) {\r\n $g->drawBeziers($this->getMiddleZ(), $p);\r\n } else {\r\n $g->drawBeziers($p);\r\n }\r\n\r\n // Draw pointers...\r\n if ($this->point->getVisible()) {\r\n for ($t = 0; $t < $this->getCount(); $t++) {\r\n $this->drawPointer($p[$t]->x, $p[$t]->y, $this->getValueColor($t), $t);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "ecc1cb855a092da50b2bec554a902e3a", "score": "0.41914108", "text": "protected function execute(InputInterface $input, OutputInterface $output)\n {\n $x = $input->getArgument('x');\n $y = $input->getArgument('y');\n $c = $input->getArgument('c');\n\n if (is_numeric($x) && is_numeric($y)) {\n // Get the Canvas helper.\n $helper = $this->getHelper('canvas');\n if ($helper->has()) {\n $canvas = $helper->getCanvas();\n $canvas->floodFill($x, $y, $c);\n }\n else {\n throw new \\LogicException('You must create a canvas before perform a flood fill');\n }\n }\n else {\n throw new \\InvalidArgumentException('x and y coordinates must be int values');\n }\n\n $output->writeln($canvas->render());\n }", "title": "" }, { "docid": "547d3ac182ce11e52c40040aaa75716e", "score": "0.41878825", "text": "public function draw($value = null);", "title": "" }, { "docid": "ce6b9fb1bd8627839675126a69919ff4", "score": "0.41799086", "text": "function RotatedImage($file,$x,$y,$w,$h,$angle)\n\t{\n\t\t$this->Rotate($angle,$x,$y);\n\t\t$this->Image($file,$x,$y,$w,$h);\n\t\t$this->Rotate(0);\n\t}", "title": "" }, { "docid": "0d544748df07157855991c8e69e9bf7f", "score": "0.41554552", "text": "function RotatedImage($file,$x,$y,$w,$h,$angle)\n{\n $this->Rotate($angle,$x,$y);\n $this->Image($file,$x,$y,$w,$h);\n $this->Rotate(0);\n}", "title": "" }, { "docid": "dd22fdb1b4cab3e53144aaf641f0674a", "score": "0.41494638", "text": "function setPosition($position) {\n if (!preg_match(\"/(?i)^(center|top|bottom|left|right|top-left|top-right|bottom-left|bottom-right)$/\", $position))\n throw new Error(create_invalid_value_message($position, \"setPosition\", \"image-to-image\", \"Allowed values are center, top, bottom, left, right, top-left, top-right, bottom-left, bottom-right.\", \"set_position\"), 470);\n \n $this->fields['position'] = $position;\n return $this;\n }", "title": "" }, { "docid": "63f89da716a55ad400a4c9004f6724fd", "score": "0.41483828", "text": "private function crop ($width, $height) {\n\t\t// Calculate the X, Y coordinates\n\t\t// to use for cropping the images.\n\t\t$cropX = ($this->targetWidth - $width) / 2;\n\t\t$cropY = ($this->targetHeight - $height) / 2;\n\t\t// Create new canvas with the proper\n\t\t// dimensions and the xy-coordinates.\n\t\t// This will crop the image to the\n\t\t// with the image (mostly) centered.\n\t\t$cropImage = $this->targetImage;\n\t $this->targetImage = imagecreatetruecolor($width , $height);\n\t imagecopyresampled($this->targetImage, $cropImage, 0, 0, $cropX, $cropY, $width, $height , $width, $height);\n\t}", "title": "" }, { "docid": "71f645ab72425b7ab4fd8a8900046fe8", "score": "0.41356164", "text": "public function ApplyMetricsToCanvas()\n\t{\n\t\t$destinationCanvas = @imageCreateTrueColor( $this->_metrics->frameWidth, $this->_metrics->frameHeight );\n\n\t\t$backColor = imagecolorallocate( $destinationCanvas, 255, 255, 255 );\n\n\t\tif( $this->_metrics->sourceFormat == 3 )\n\t\t{\n\t\t\t$backColor = imagecolorallocatealpha( $destinationCanvas, 255, 255, 255, 127 );\n\t\t\timagealphablending( $destinationCanvas, true );\n\t\t\timagesavealpha( $destinationCanvas, true );\n\t\t}\n\n\t\timagefill( $destinationCanvas, 1, 1, $backColor );\n\n\t\t@imageCopyResampled(\n\t\t\t$destinationCanvas,\n\t\t\t$this->GetCanvas(),\n\t\t\t$this->_metrics->offsetX, $this->_metrics->offsetY, 0, 0,\n\t\t\t$this->_metrics->scaleWidth, $this->_metrics->scaleHeight,\n\t\t\t$this->_metrics->sourceWidth, $this->_metrics->sourceHeight );\n\n\t\t$this->SetCanvas( $destinationCanvas );\n\n\t\t$this->_metrics->Commit();\n\t}", "title": "" }, { "docid": "b91424724bb5db6fa756c4f7ecc1c2ca", "score": "0.41301936", "text": "function RotatedImage($file, $x, $y, $w, $h, $angle)\r\n{\r\n $this->Rotate($angle, $x, $y);\r\n $this->Image($file, $x, $y, $w, $h);\r\n $this->Rotate(0);\r\n}", "title": "" }, { "docid": "9538c230bd431fa2acc4cc8d69faa81f", "score": "0.41295195", "text": "public function crop($x, $y, $width, $height, $saveAsNewFile = false);", "title": "" } ]
c4fee7d512a28a08feb096a893bf1d07
TODO: Your mock expectations here
[ { "docid": "f151ff24b06521e862f7dcfc3ab5c8bf", "score": "0.0", "text": "public function testQuery226()\n{\n\n // Traversed conditions\n // if ($this->debug) == true (line 85)\n // if ($this->timeout) == false (line 89)\n // if (!$fp) == false (line 94)\n // while (!\\feof($fp)) == true (line 103)\n // if (!$gotFirstLine) == false (line 105)\n // if (\\trim($line) == '') == false (line 113)\n // if (!$gettingHeaders) == true (line 116)\n // if ($this->debug) == false (line 120)\n // while (!\\feof($fp)) == false (line 103)\n // if ($this->debug) == false (line 124)\n // if (!$this->message->parse()) == false (line 130)\n // if ($this->message->messageType == 'fault') == false (line 137)\n\n $actual = $this->iXR_Client->query();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" } ]
[ { "docid": "85ef50192ae1460d9c425ef3f1a6484e", "score": "0.6643214", "text": "public function testOrderCaptureGet()\n {\n }", "title": "" }, { "docid": "ff6fc44e8c9705f345dd2eabf5ad2bb1", "score": "0.6253914", "text": "public function testOutputsGet()\n {\n }", "title": "" }, { "docid": "9189da4b7b4bba7dab2ab8d244e94519", "score": "0.623339", "text": "public function testOrderCapturePost()\n {\n }", "title": "" }, { "docid": "419beae14deeda29afb65b593d01b2aa", "score": "0.6140137", "text": "public function testPublisherSuggestionsGet()\n {\n }", "title": "" }, { "docid": "b5d7eba87655f863083ceba4a542f7e3", "score": "0.6090099", "text": "public function test_getDuplicateInventoryStorageActivityById() {\n\n }", "title": "" }, { "docid": "d27083603ef7a021d36fb77e67b61f03", "score": "0.60442275", "text": "public function testPostFaxes()\n {\n }", "title": "" }, { "docid": "95c751d8edd0c672289f074181020caf", "score": "0.6029079", "text": "public function testFaxJobIdStatusGet()\n {\n }", "title": "" }, { "docid": "feb7131d6ef49fa85ce8b7f60b915526", "score": "0.600769", "text": "abstract function getInstanceMock();", "title": "" }, { "docid": "b4a1bd22506d1631baef52dd183d674f", "score": "0.5992625", "text": "public function testFileGeneratePreviewGet()\n {\n }", "title": "" }, { "docid": "157437020b7b1dc94371390ece1b6022", "score": "0.599084", "text": "public function testFaxDocumentIdCostsGet()\n {\n }", "title": "" }, { "docid": "fc4fc30570e7d46c4301ab9d1a04f99e", "score": "0.5980381", "text": "function mockDraft()\r\n {\r\n \r\n }", "title": "" }, { "docid": "7d6bbe640f3fa079fd0284b40096661c", "score": "0.5967884", "text": "public function testFrom()\n {\n }", "title": "" }, { "docid": "0429016e56c547242369fd7ab942c0d6", "score": "0.5963332", "text": "public function testGetAuthorizedInfo()\n {\n }", "title": "" }, { "docid": "35e5167dc4fb254c08b020f406d9a1a8", "score": "0.5963084", "text": "public function testReadIdentity()\n {\n\n }", "title": "" }, { "docid": "b39c6f493b19d92033c51de6e94ed34e", "score": "0.596046", "text": "public function testCurrentItemPostStructure()\n {\n }", "title": "" }, { "docid": "9b2ac5df6ea4c47a50f7541e7ea78e65", "score": "0.5949258", "text": "public function testGetOrganizationDevicesStatuses()\n {\n }", "title": "" }, { "docid": "c58d922979e66d796e6d101ec88d4c7d", "score": "0.5949188", "text": "public function test_getInventoryStorageActivityById() {\n\n }", "title": "" }, { "docid": "4dce03e4d5fc53027af57216afd5d1e6", "score": "0.5934068", "text": "public function testGetClientHoldingUsingGet()\n {\n }", "title": "" }, { "docid": "9f872f1bd4addf78079fe8a28c33e3b7", "score": "0.5927895", "text": "public function testFaxHistoryGet()\n {\n }", "title": "" }, { "docid": "669d5999b612decfd5c8df07821a0391", "score": "0.5909312", "text": "public function testRetrieveListLog()\n {\n }", "title": "" }, { "docid": "84b8862807d1d9683b5050e5052a5ed8", "score": "0.5909144", "text": "public function testGetOrganizationDevices()\n {\n }", "title": "" }, { "docid": "e3548cb5748df1304ca9042bb02acff0", "score": "0.59013987", "text": "public function testCompanyGetSettingsByKey()\n {\n }", "title": "" }, { "docid": "489a0bb4072e64b6258655c33c41cf43", "score": "0.5898435", "text": "public function testGetProfileManagementRequest()\n {\n }", "title": "" }, { "docid": "444279a87d91df1406a9673ce24f2dff", "score": "0.58935183", "text": "public function testFileReceiptTransactionIdGet()\n {\n }", "title": "" }, { "docid": "f9ff5ce00c5351af8420df4795e682ba", "score": "0.5887278", "text": "public function testSalesActivitiesStatusesGet()\n {\n\n }", "title": "" }, { "docid": "ecb0cfcdc7911cc7b49b72685e6709e4", "score": "0.5886653", "text": "public function testRetrieveLog()\n {\n }", "title": "" }, { "docid": "f6662aa1b28b4ddbe0af965223781f8c", "score": "0.58855635", "text": "public function testOrderRefundGet()\n {\n }", "title": "" }, { "docid": "22a09232f2115425828365f7b9632712", "score": "0.58761805", "text": "public function test_getInventoryStorageActivityByFilter() {\n\n }", "title": "" }, { "docid": "e7f238d57a8636772752957953ff0e4c", "score": "0.5869222", "text": "public function testOutputsPost()\n {\n }", "title": "" }, { "docid": "991958ce4b0a5e317260b86e43a5bfb6", "score": "0.5868111", "text": "public function testGetRTPClientBankLinksUsingGet()\n {\n }", "title": "" }, { "docid": "5ef94fe170363da2a223764e79ffd081", "score": "0.5868063", "text": "public function testUserCidTransferHistoryGet()\n {\n }", "title": "" }, { "docid": "72651d3f1997867606d0778dc5ef6788", "score": "0.5863817", "text": "public function testUserCidLogGet()\n {\n }", "title": "" }, { "docid": "870e9e1c865a6f6a8d736ea9f9fea8a9", "score": "0.58568984", "text": "public function testGetClientGoalOverviewUsingGet()\n {\n }", "title": "" }, { "docid": "de8723a14aff02064d8c48e8e705329b", "score": "0.5855546", "text": "public function testSalesActivitiesStatusesIdGet()\n {\n\n }", "title": "" }, { "docid": "01601604a8361ac1f02434f9ef8b05b3", "score": "0.5853768", "text": "public function testGetTommorowsBookings()\n {\n\n }", "title": "" }, { "docid": "1e22d58a70407f6892f1d4c79e3dc933", "score": "0.5853048", "text": "public function testGetMediaCacheStoreList()\n {\n\n }", "title": "" }, { "docid": "1c2054aaa528d8f429885a0ece83ae9d", "score": "0.5846668", "text": "public function testGetSubmissionStatus()\n {\n }", "title": "" }, { "docid": "f3bd045cd795ccdfefc0cc2e69b5f8fa", "score": "0.58447474", "text": "public function testGetSubmissionDetails()\n {\n }", "title": "" }, { "docid": "b2b04104256c595952337dcee87e37b4", "score": "0.5842323", "text": "public function testReadGroup()\n {\n\n }", "title": "" }, { "docid": "934f89fc135322d8918cd05c1f2cbf1b", "score": "0.5830713", "text": "public function testGetMessagingSticker()\n {\n }", "title": "" }, { "docid": "a745e0438309ee60c9dc2ffd2f573cf7", "score": "0.5828883", "text": "public function testReadUser()\n {\n\n }", "title": "" }, { "docid": "4a71d991832d2731b9419c8f5439140e", "score": "0.5827253", "text": "public function testGetFleetHosLogs()\n {\n }", "title": "" }, { "docid": "900b10a3bfaf0f99d58aa67a14981868", "score": "0.5825133", "text": "public function testGetItemById()\n {\n }", "title": "" }, { "docid": "15e5ad93cb3480313d03ff2cd4e513fc", "score": "0.5823657", "text": "public function testListingsList()\n {\n }", "title": "" }, { "docid": "6482cda50426c0ca613068c75d18eee8", "score": "0.58229995", "text": "public function testGetFleetHosAuthenticationLogs()\n {\n }", "title": "" }, { "docid": "3b21d0a0d791af24fdefd40881b85dd8", "score": "0.58204705", "text": "public function testGetRTPBankLinkUsingGet()\n {\n }", "title": "" }, { "docid": "52f314aad03e4dfdbe0c2a8ddf56737b", "score": "0.5818763", "text": "public function testBookingGetMessages()\n {\n }", "title": "" }, { "docid": "a6da6f59e04441d224f51cbffbb00b1a", "score": "0.581605", "text": "public function testBookingGetBookingByExternalReferenceId()\n {\n }", "title": "" }, { "docid": "35bb0c34698e993fb7a165db7ad509d1", "score": "0.5810441", "text": "public function testGetTeamSocialMedia()\n {\n }", "title": "" }, { "docid": "5ec46157e244ef638fa605ba518d961b", "score": "0.5809575", "text": "abstract protected function getCreateMockData();", "title": "" }, { "docid": "ad5c8a34069ac9d6f4a746b06ca930f4", "score": "0.5797151", "text": "public function testGetFleetHosLogsSummary()\n {\n }", "title": "" }, { "docid": "409f3a77c541988cde949bca633bca22", "score": "0.5792331", "text": "abstract public function expectations();", "title": "" }, { "docid": "d328df371a443f4b7ff8ef1d13c2cbda", "score": "0.57903016", "text": "public function testGetRegistrationRequest()\n {\n }", "title": "" }, { "docid": "92f3dac395324442f0b143468b53c7bf", "score": "0.5788922", "text": "public function testGetFollow()\n {\n }", "title": "" }, { "docid": "c9a37ef533e5d465c28c11125c04bf88", "score": "0.5787685", "text": "public function testProjectProjectsIdContactsGet()\n {\n\n }", "title": "" }, { "docid": "0d217fedd4d2ceae49421ad5abf526eb", "score": "0.57870317", "text": "public function fake();", "title": "" }, { "docid": "81ab592aa25ae075e0ad11961f80dc38", "score": "0.57857466", "text": "public function testGetQueueItem()\n {\n }", "title": "" }, { "docid": "8348b91540ee478579c352b939bb449e", "score": "0.57854766", "text": "public function testGetOrderTrackUsingGet()\n {\n }", "title": "" }, { "docid": "38bbc5d6add4ba97504bb0effc7a8bb4", "score": "0.5783342", "text": "public function testTransactionsGet()\n {\n }", "title": "" }, { "docid": "cfcfe1cf300cc4cacb281a7e4d07d74f", "score": "0.57733846", "text": "public function testUserCidRatingHistoryGet()\n {\n }", "title": "" }, { "docid": "57ed2fc283c05c58fce3db49cf39b76f", "score": "0.5772469", "text": "public function testGetOrganizationDevicesUplinksLossAndLatency()\n {\n }", "title": "" }, { "docid": "69461d8859f604313945c024e7693d39", "score": "0.5768457", "text": "public function testReadOAuthClient()\n {\n\n }", "title": "" }, { "docid": "8ae761105b575253bac8e23573004d3d", "score": "0.57671106", "text": "public function testGetOrderTrackAllUsingGet()\n {\n }", "title": "" }, { "docid": "01bc43394a306fa8ba20eb1ae2b9738b", "score": "0.5763673", "text": "public function testWatchUserList()\n {\n\n }", "title": "" }, { "docid": "258c2b7c712bc14dd44c26a511479567", "score": "0.5762273", "text": "public function testEnvelopeApprovalHistory()\n {\n }", "title": "" }, { "docid": "117b47ab6822441d44f0d4edafb29ce3", "score": "0.57590854", "text": "public function testUserCidExamHistoryGet()\n {\n }", "title": "" }, { "docid": "3e40dc1d0af58cea44695f1deb16583b", "score": "0.5758926", "text": "public function testPlaceOrder()\n {\n\n }", "title": "" }, { "docid": "3c16af6e0601860c42b5a3a7745b5a43", "score": "0.5758271", "text": "public function testGetDocumentUsingGet()\n {\n }", "title": "" }, { "docid": "40a02e053112200e604be6fe6ace44c1", "score": "0.575675", "text": "public function testSalesActivitiesStatusesCountGet()\n {\n\n }", "title": "" }, { "docid": "89bfdc36dae5561240e21a5743517195", "score": "0.5756189", "text": "public function testPutMediaCacheStoreAction()\n {\n\n }", "title": "" }, { "docid": "c91790459365842445a469d5375167d1", "score": "0.5753854", "text": "public function testDownloadStatus()\n {\n }", "title": "" }, { "docid": "ef3d78c8dca758dbae267f5f3f29e216", "score": "0.575231", "text": "public function testArchiveProduct()\n {\n }", "title": "" }, { "docid": "fd63e0b4d576cb8388a04e1650994057", "score": "0.57495815", "text": "public function testProjectProjectsIdContactsContactIdGet()\n {\n\n }", "title": "" }, { "docid": "7542c5f17ad58c1ac1787dfd84931d96", "score": "0.5747969", "text": "public function testGetUserPendingInvitations()\n {\n }", "title": "" }, { "docid": "f4db5f32fb97b23769fcbba7c6790053", "score": "0.5746946", "text": "public function testGetListOfAdditionalServicesDefinitionsUsingGET()\n {\n }", "title": "" }, { "docid": "5a3094952808a107bc8b18200eb2f695", "score": "0.5746375", "text": "public function testTransactionTransactionIdGet()\n {\n }", "title": "" }, { "docid": "7f4aaad9bda5deabd828ec0677edb6f6", "score": "0.57452524", "text": "public function testAttachAccommodation()\n {\n\n }", "title": "" }, { "docid": "71c79b7823e1d2ca85db5508f02aeac1", "score": "0.5741722", "text": "public function testGetContact()\n {\n }", "title": "" }, { "docid": "2c0ff5bfbae920c179850da32b516195", "score": "0.5739518", "text": "public function test_getDuplicateZoneById() {\n\n }", "title": "" }, { "docid": "6e24236e2a59eb7cd664963163cea0a1", "score": "0.5737573", "text": "public function testListIdentity()\n {\n\n }", "title": "" }, { "docid": "4a77f3415074eb03e38fc6ddb1ba9627", "score": "0.5735116", "text": "public function before() {}", "title": "" }, { "docid": "ef88c6e49a6bd1e87406ec5f7c6d56ce", "score": "0.57344025", "text": "public function testGetTodaysBookings()\n {\n\n }", "title": "" }, { "docid": "f21d0190211ba3778d98777adc9e14dc", "score": "0.57312626", "text": "public function testGetAttributes()\n {\n }", "title": "" }, { "docid": "f21d0190211ba3778d98777adc9e14dc", "score": "0.57312626", "text": "public function testGetAttributes()\n {\n }", "title": "" }, { "docid": "6a07c179b45289802e26b062c05da823", "score": "0.5728554", "text": "public function testGetSensorsHistory()\n {\n }", "title": "" }, { "docid": "5c18fa38b4e2fcb34fe557931202d3d4", "score": "0.5717644", "text": "public function test_getInventoryStorageActivityTags() {\n\n }", "title": "" }, { "docid": "500cc8fc418ed724a5c83285778f8a56", "score": "0.57169724", "text": "public function testGetAPIResources()\n {\n\n }", "title": "" }, { "docid": "54688097d6b62415c415efd4fb28d448", "score": "0.5715428", "text": "public function test_addInventoryStorageActivityAudit() {\n\n }", "title": "" }, { "docid": "dc30dbbe6318df900b08342194dcbc7d", "score": "0.57134765", "text": "public function testGetStreamFileConfigAdv()\n {\n\n }", "title": "" }, { "docid": "bc881d171690aba4d7555ceefcaa8415", "score": "0.5713227", "text": "public function testGetEnvelopeByUuid()\n {\n }", "title": "" }, { "docid": "159b875867688858e88cc24e434b8351", "score": "0.5709405", "text": "public function testGetProductById()\n {\n }", "title": "" }, { "docid": "63d4cd176c28bf1a094db906847915e2", "score": "0.5708412", "text": "public function testGetClientHydroUsingGet()\n {\n }", "title": "" }, { "docid": "e27f92b2fbbf54b7ea9a7ba9b5ee8920", "score": "0.5708124", "text": "public function testPostStreamFileConfig()\n {\n\n }", "title": "" }, { "docid": "cb7ff919a0f8d02c7324225faaa3bafb", "score": "0.5703675", "text": "public function testUserCidTrainingRecordsGet()\n {\n }", "title": "" }, { "docid": "6be3c9e57eecdba133aa791d59d33630", "score": "0.5703107", "text": "public function testGetAppConfigSalesChannel()\n {\n }", "title": "" }, { "docid": "ac7a867e5c1a478452b8c408f6edab35", "score": "0.5700282", "text": "public function testGetMachinesHistory()\n {\n }", "title": "" }, { "docid": "da3eb403a17f18789458cd6d1117ceb4", "score": "0.5696839", "text": "public function testFilterBookings()\n {\n\n }", "title": "" }, { "docid": "b5ee8fe1c641c4ec4fb5f4e393577fa5", "score": "0.56967497", "text": "public function testUseragentListsGet()\n {\n }", "title": "" }, { "docid": "fc978fa073c6f4829aaaee312ca13c8e", "score": "0.56924736", "text": "public function testGetListOfRtpTransfersUsingGet()\n {\n }", "title": "" }, { "docid": "24929baf371ec123555ab97be70ab09c", "score": "0.56916803", "text": "public function testGetLead()\n {\n }", "title": "" }, { "docid": "b2cf65b4ecebc2c6b5afd36b0201d045", "score": "0.56904685", "text": "public function testBookingGetFutureBookings()\n {\n }", "title": "" } ]
ec432ecd5c90175aeddd700d48277e31
pr Convenience debugging function
[ { "docid": "c674664b2d558951889f3606f0d60f44", "score": "0.6351239", "text": "function pr($data) {\n echo \"<pre>\";\n print_r($data);\n echo \"</pre>\";\n}", "title": "" } ]
[ { "docid": "b6338660dd3abd5b1ca95be1f9c405b9", "score": "0.72628057", "text": "function printPR($pr) {\n if(getenv('PROFILER')) {\n echo PHP_EOL;\n echo debug_backtrace()[1]['class'].'::'.debug_backtrace()[1]['function'].' profiling:'.PHP_EOL;\n foreach($pr->results as $r) { echo ' '.$r.PHP_EOL; }\n echo PHP_EOL; \n }\n}", "title": "" }, { "docid": "fb62290fdcd8f7d90321522488557bbe", "score": "0.7164815", "text": "function _pr($string) {\n echo '<pre>';\n print_r($string);\n die();\n}", "title": "" }, { "docid": "fde57557ba55bac39256fc1be681680e", "score": "0.702667", "text": "function debug($arg)\r\n{\r\n\techo \"<pre>\";print_r($arg); echo \"</pre>\";\r\n}", "title": "" }, { "docid": "5328a4a99eedeabc5013a1e8a93f20a2", "score": "0.68852997", "text": "private function debug($str)\n {\n }", "title": "" }, { "docid": "0c31a6a1f05afa3d218bc468844455c6", "score": "0.6846216", "text": "function dbug(){\n\t$opts=func_get_args();\n\t//call_user_func_array('freepbx_debug',$opts);\n\t$dump=0;\n\t//sort arguments\n\tswitch(count($opts)){\n\t\tcase 1:\n\t\t\t$msg=$opts[0];\n\t\tbreak;\n\t\tcase 2:\n\t\t\tif(is_array($opts[0])||is_object($opts[0])){\n\t\t\t\t$msg=$opts[0];\n\t\t\t\t$dump=$opts[1];\n\t\t\t}else{\n\t\t\t\t$disc=$opts[0];\n\t\t\t\t$msg=$opts[1];\n\t\t\t}\n\t\tbreak;\n\t\tcase 3:\n\t\t\t$disc=$opts[0];\n\t\t\t$msg=$opts[1];\n\t\t\t$dump=$opts[2];\n\t\tbreak;\t\n\t}\n\tif($disc){$disc=' \\''.$disc.'\\':';}\n\t$txt=date(\"Y-M-d H:i:s\").$disc.\"\\n\"; //add timestamp\n\tdbug_write($txt,1);\n\tif($dump==1){//force output via var_dump\n\t\tob_start();\n\t\tvar_dump($msg);\n\t\t$msg=ob_get_contents();\n\t\tob_end_clean();\n\t\tdbug_write($msg.\"\\n\");\n\t}elseif(is_array($msg)||is_object($msg)){\n\t\tdbug_write(print_r($msg,true).\"\\n\");\n\t}else{\n\t\tdbug_write($msg.\"\\n\");\n\t}\n}", "title": "" }, { "docid": "f049ae5e25eff6d9725cd719f5e1fb82", "score": "0.6820408", "text": "function pr($var)\n {\n $template = '<pre class=\"pr\">%s</pre>';\n printf($template, trim(print_r($var, true)));\n }", "title": "" }, { "docid": "48e0648abf37a31f3bb1c314502b5f78", "score": "0.6721206", "text": "function debug() {\n\t\tglobal $synd_config;\n\t\tif (!isset($_SERVER['REMOTE_ADDR'], $synd_config['debug_allowed_ips'][$_SERVER['REMOTE_ADDR']]))\n\t\t\treturn;\n\n\t\t$args = func_get_args();\n\t\t$args = debug_fixup($args);\n\t\ttrigger_error(null, E_USER_WARNING);\n\t\tprint '<pre>';\n\n\t\tif (is_array($args)) {\n\t\t\tforeach ($args as $arg) {\n\t\t\t\tprint_r($arg);\n\t\t\t\tprint ' ';\n\t\t\t}\n\t\t}\n\n\t\tprint '</pre><br />';\n\t\tflush();\n\t}", "title": "" }, { "docid": "cda4f05746db771a1a8089a54e14ec38", "score": "0.6694135", "text": "function printr($var){ echo '<pre>'; print_r($var); echo '</pre>'; }", "title": "" }, { "docid": "0d28a1d0bd9f6f977fa87d003a2efa34", "score": "0.6663902", "text": "public function debug()\n\t{\n\t\t$a = func_get_args();\n\t\t$this->vdebug(get_class($this), $a);\n\t}", "title": "" }, { "docid": "8769597e7b16e0aae8a2a39cab057614", "score": "0.66444993", "text": "function debug($debug_var){\n \techo \"<pre id='debug'>\";\n\t var_dump($debug_var);\n\techo \"</pre>\";\n }", "title": "" }, { "docid": "0cc9533048a937772994274ee05864b6", "score": "0.6615058", "text": "public function debug()\n\t{\n\t\t$a = func_get_args();\n\t\t$this->model->vdebug(get_class($this), $a);\n\t}", "title": "" }, { "docid": "32be1d89680cd34d114895113a441186", "score": "0.6577208", "text": "function pr($data) {\n\techo \"<pre>\";\n\tvar_dump($data);\n\techo \"</pre>\";\n}", "title": "" }, { "docid": "5183a8eecbf003c6e8ec5ed4a5d66dd6", "score": "0.657282", "text": "function ppr( $data, $return = false ) {\n\n $debug = debug_backtrace();\n // if it doesn't look like we are in a web environment, display in a more command line friendly way...\n if(!isset($_SERVER['HTTP_HOST'])) {\n $str = print_r($data, true) . \"\\nCalled From: \". $debug[0]['file'] .' line '. $debug[0]['line'] .\"\\n\\n\";\n\n // web - wrap in pre\n } else {\n $str = '<pre>' . print_r($data, true) . '<br>Called From: '. $debug[0]['file'] .' line '. $debug[0]['line'] .'</pre>';\n }\n\tif( $return ) {\n\t\treturn $str;\n\t}\n\techo $str;\n}", "title": "" }, { "docid": "fa999d9de47a8eb1fae23721f42997f5", "score": "0.6570964", "text": "function pr($stack, $stop_execution = true) {\n\t\t\t\t\t\t\t\t$formatted = '<pre>' . var_export( (array)$stack, 1 ) . '</pre>';\n\n\t\t\t\t\t\t\t\tif ($stop_execution) {\n\t\t\t\t\t\t\t\t\texit( $formatted );\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn $formatted;\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "ec3859d8a66839d9e84a017c08df7138", "score": "0.6530405", "text": "function debug($string, $file='', $line='', $class='') {\n\techo $file ? basename($file).\": \" : '';\n\techo $class ? $class.\": \" : '';\n\techo $line ? $line.\": \" : '';\n\techo $string.\"\\n\";\n}", "title": "" }, { "docid": "43c32abf60a3d2e3be219a4796b17db8", "score": "0.65299714", "text": "function dbg($x, $msg=\"\") {\n $m=htmlspecialchars($msg);\n $z=(php_sapi_name() == \"cli\") ? print_r($x, true) : htmlspecialchars(print_r($x, true));\n $log = debug(null);\n $debug = (!empty($log)) ? join(\"\\n\", $log) : \"\";\n $debug = (debug(null)===null) ? debug(null) : [];\n echo \"<pre>\\n[$m]\\n$z\\n$debug\\nTRACE: \" . trace(RETURN_LOG). \"\\n\";\n die(\"\\nFIN\");\n}", "title": "" }, { "docid": "df9828d72c0b6d8c708183a8330d0192", "score": "0.652517", "text": "public static function debug () \n\t{\n\t\tself::$args = func_get_args();\n\n\t\tprint_r('<pre style=\"z-index: 1000;\">');\n\t\tforeach (Wmonou::$args as $arg) {\n\t\t\tprint_r($arg);\t\t\t\n\t\t}\n\t\tprint_r('</pre>');\n\t}", "title": "" }, { "docid": "bf57c780d8e032edb94b50f9e145e09c", "score": "0.6515522", "text": "function pr($data)\n{\n\t$data = Str::safe($data, true);\n\n\techo \"<pre>\\n\" . print_r($data, true) . '</pre>';\n}", "title": "" }, { "docid": "575f9bed6b89d73a8fd783d3315a7648", "score": "0.64897525", "text": "function debug($var){\n echo '<pre>';\n var_dump($var);\n echo '</pre>';\n}", "title": "" }, { "docid": "f768846a7c8ec7312fc6121b25026039", "score": "0.6469867", "text": "function debug($var)\n{\n echo \"<pre>\";\n var_dump($var);\n echo \"</pre>\";\n}", "title": "" }, { "docid": "e73908e7d03a7a390b1ee14a4aa5a9ac", "score": "0.6453324", "text": "function power_dump()\n{\n\tlist($callee) = debug_backtrace();\n\t$arguments = func_get_args();\n\t$total_arguments = count($arguments);\n\n\techo '<fieldset style=\"background:white url(http://www.hiarchive.co.uk/images/binfordtools.gif) 5px right no-repeat; border:2px red solid; padding:5px\">';\n\techo '<legend style=\"background:lightgrey; padding:5px;\">'.$callee['file'].' @ line: '.$callee['line'].'</legend><pre>';\n\n\tforeach ($arguments as $argument)\n\t{\n\t\techo '<br/><strong>Debug #1 of '.$total_arguments.'</strong>: ';\n\t\tvar_dump($argument);\n\t}\n\n\techo \"</pre>\";\n\techo \"</fieldset>\";\n}", "title": "" }, { "docid": "8a185d34a8f1160b97a4eb4dce5cfa4a", "score": "0.6449661", "text": "public function debug(){\r\n print_r($this->nom);\r\n print_r($this->datecreation);\r\n print_r($this->datedissolution);\r\n print_r($this->soldecompte);\r\n print_r($this->logo);\r\n \r\n }", "title": "" }, { "docid": "ad3ee9fc75bdc7bb9f32beac46b925e0", "score": "0.64369357", "text": "function debug($param){\n echo '<br><pre>';\n echo \"[Debug] Contenu :\";\n print_r($param);\n echo '</pre>';\n}", "title": "" }, { "docid": "e91dce55af4d5334fbca1f0d7c593775", "score": "0.64362717", "text": "function debugPrint($data) {\n echo '<pre> ';\n print_r($data);\n echo ' </pre>';\n }", "title": "" }, { "docid": "b2ead7cce6fac6d89192978c4bb5edf1", "score": "0.6423429", "text": "function debug($str)\n{\n if (DEBUG) {\n echo $str.PHP_EOL;\n }\n}", "title": "" }, { "docid": "98593eef32833b64e9778af441837c2b", "score": "0.64197636", "text": "function pr($data)\n{\n\tif( ENVIRONMENT !== \"production\" || isIntranetIp() ) \n\t{\n\t\techo \"<pre>\";\n\t\tprint_r($data);\n\t\techo \"</pre>\";\n\t}\n}", "title": "" }, { "docid": "9d9fe20bae85da38e7e7a303fba80b40", "score": "0.6399354", "text": "function debug()\n{\n echo '<pre>';\n call_user_func_array('var_dump', func_get_args());\n echo '</pre>';\n}", "title": "" }, { "docid": "3b853f73bc434be41cf5c7cb129549af", "score": "0.6395943", "text": "protected function debug($a)\n {\n echo '<pre>';\n print_r($a);\n echo '</pre>';\n }", "title": "" }, { "docid": "d7eab079aead97af4f46cabf71f0bd94", "score": "0.6376959", "text": "public function debug() \n {\nnew Debug_HackerConsole_Main(true);\n\n// Dump string values.\nfor ($i=0; $i<10; $i++) {\n\t$sp = str_repeat(' ', $i);\n\tDebug_HackerConsole_Main::out(\n\t\t\"$sp\\ti=$i\", \"Counting\", \"#008800\"\n\t);\n}\n\n// Output to default group.\nDebug_HackerConsole_Main::out(\"Usual message\");\n\n// Dump random structure.\nDebug_HackerConsole_Main::out($_SERVER, \"Input\");\n\n\n\n\n }", "title": "" }, { "docid": "fffa4a4b6dd7e079f6ddfb3d559c2af5", "score": "0.63709664", "text": "abstract public function exportDebug();", "title": "" }, { "docid": "e85fe03f1494f6b65e6e26b31150032e", "score": "0.6364398", "text": "public static function debug()\n {\n header('Content-Type: text/plain');\n foreach (func_get_args() as $arg) {\n var_export($arg);\n echo PHP_EOL;\n }\n exit('-- debug --');\n }", "title": "" }, { "docid": "7f87e988418666f16b2721bc0f82f48d", "score": "0.6362789", "text": "function print_debug($text){\n echo \"\\n<!-- START DEBUG OUTPUT --><pre>\";\n print_r($text);\n echo \"</pre><!-- END DEBUG OUTPUT -->\\n\";\n}", "title": "" }, { "docid": "437d0a662cee25a987ef0019e5e4b093", "score": "0.6351208", "text": "function dump_debug($var) {\n\t\techo \"<pre>\";\n\t\tvar_dump($var);\n\t\techo \"</pre>\";\n\t}", "title": "" }, { "docid": "5b16d84f1cc13bf0a67ff6d80631a9dc", "score": "0.63338894", "text": "function debug( $code ) {\n printf( '<pre>%s</pre>', print_r( $code, true ) );\n // die;\n}", "title": "" }, { "docid": "f35f6c56bbcab454d037e448ac1c8d0a", "score": "0.63136667", "text": "function debug($var) {\n\techo \"<pre>\";\n\tvar_dump($var);\n\techo \"</pre>\";\n}", "title": "" }, { "docid": "0454686361beca41f3474a0dd9a745d6", "score": "0.6305433", "text": "public static function debug()\n\t{\n\t\tif (func_num_args() === 0)\n\t\t\treturn;\n\n\t\t// Get all passed variables\n\t\t$variables = func_get_args();\n\n\t\t$output = array();\n\t\tforeach ($variables as $var)\n\t\t{\n\t\t\t$output[] = Kohana::_dump($var, 1024);\n\t\t}\n\n\t\treturn '<pre class=\"debug\">'.implode(\"\\n\", $output).'</pre>';\n\t}", "title": "" }, { "docid": "63bdcf4e7873ef53895574a37eec4c6e", "score": "0.63040894", "text": "public function debugDumpParams();", "title": "" }, { "docid": "b0ac2ba860697ffadeeb2c0b678b26e8", "score": "0.6301673", "text": "public static function debug()\r\n {\r\n \t$args = func_get_args();\r\n \treturn CLog::getInstance()->writeLog(self::LOG_LEVEL_DEBUG, $args);\r\n }", "title": "" }, { "docid": "4a2ea4ba2e899e2842f6c60eb1ab600f", "score": "0.6300849", "text": "function dd($value, $pr = false)\n {\n if ($pr) {\n die(print_r($value));\n }\n die(var_dump($value));\n }", "title": "" }, { "docid": "9b53ac9e495bc1b453ce8bf4e12bc271", "score": "0.6295273", "text": "function dumpvar($x)\n{ print \"\\n\".Strings::debugStr($x,null); }", "title": "" }, { "docid": "f68a62d3c104d1ac19f71ebc72ffd25d", "score": "0.6294751", "text": "function debug($arr)\n{\n echo '<pre>' . print_r($arr,true) . '</pre>';\n}", "title": "" }, { "docid": "9590cc0586e54974b8075f419386ae32", "score": "0.6282624", "text": "function logDebug()\n{\n $args = func_get_args();\n $filename = Debugger::getFilename();\n\n $dbg = Debugger::getInstance($filename);\n call_user_func_array([$dbg, 'write'], $args);\n return $args[0];\n}", "title": "" }, { "docid": "7020b8b4ca5f4648fe8b542ade9107dd", "score": "0.6272419", "text": "function debug($message) {\n echo \"[+] \" . $message . \"\\n\";\n}", "title": "" }, { "docid": "1b4ac09716f3cedba9af902f4dc497c8", "score": "0.6265197", "text": "public function prf($param,$path='debug/')\n\t{\n\t\t$style = is_bool($param) ? 1 : 0;\n\t\tif($style){\n\t\t\t$outStr = \"\\r\\n\";\n\t\t\t$outStr .='<------------------------------------------------------------------------';\n\t\t\t$outStr .= \"\\r\\n\";\n\t\t\t$outStr .= date('Y-m-d H:i:s',time());\n\t\t\t$outStr .= \"\\r\\n\";\n\t\t\t$outStr .= $param == TRUE ? 'bool:TRUE' : 'bool:FALSE';\n\t\t\t$outStr .= \"\\r\\n\";\n\t\t}else{\n\t\t\t$outStr = \"\\r\\n\";\n\t\t\t$outStr .='<------------------------------------------------------------------------';\n\t\t\t$outStr .= \"\\r\\n\";\n\t\t\t$outStr .= date('Y-m-d H:i:s',time());\n\t\t\t$outStr .= \"\\r\\n\";\n\t\t\t$outStr .= print_r($param,1);\n\t\t\t$outStr .= \"\\r\\n\";\n\t\t}\n\n\t\t$backTrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);\n\t\tunset($backTrace[0]['args']);\n\t\t$outStr .= print_r($backTrace[0],1);\n\t $outStr .='------------------------------------------------------------------------>';\n\t\t$outStr .= \"\\r\\n\";\n\t\t$path .= date('Y-m-d',time());\n\t\tfile_put_contents($path.'-log.txt',$outStr,FILE_APPEND);\n\t}", "title": "" }, { "docid": "015403dc0c60beda7ab46e4eb0172b0c", "score": "0.6234175", "text": "function debug($param) {\n\techo '<div id=\"debug\" style=\"margin-top: 70px; border: red 1px solid;\">';\n\t\techo '<pre>'; \n\t\t\tprint_r($param);\n\t\techo '</pre>';\n\techo '</div>';\n}", "title": "" }, { "docid": "38c01b74be74825b4afe3907fc970d56", "score": "0.62297165", "text": "function debug($data){\n echo '<pre>';\n print_r($data);\n echo '</pre>';\n}", "title": "" }, { "docid": "118a0201c26b8230c018c6ca0b248cf1", "score": "0.62266016", "text": "function pr($arr)\r\n{\r\n\techo '<pre>';\r\n\tprint_r($arr);\r\n\techo '</pre>';\r\n}", "title": "" }, { "docid": "57544ae006e926b8e46f085ae2284958", "score": "0.62223893", "text": "static public function pr($data){\n\t\techo \"<pre>\";\n\t\tprint_r($data);\n\t\techo \"</pre>\";\n\t}", "title": "" }, { "docid": "1a7c266f97dd7ad27be5a595603f39df", "score": "0.62198526", "text": "function dbg($val) {\n\tprint '<pre class=\"cms debug\">';\n\tprint_r($val);\n\tprint '</pre>';\n}", "title": "" }, { "docid": "0560c2f53445882f7a7c1f07029fd082", "score": "0.6212877", "text": "function d()\n {\n if (!in_array(\\Mizmoz\\App\\App::getInstance()->platform(), ['development', 'testing'])) {\n // Only show messages on development platform in case any get left in the code on production... as if?! :|\n return;\n }\n\n $e = new Exception();\n $trace = $e->getTrace();\n $cli = (php_sapi_name() === 'cli');\n\n if (isset($trace[2]) && ($trace[2]['function'] == 'dt')) {\n var_dump($trace);\n } else {\n $trace = (isset($trace[1]['file']) ? $trace[1] : $trace[2]);\n\n echo ($cli\n ? ' ' . $trace['file'] . ':' . $trace['line']\n : \"<pre><font color='#55aaaa'>\" . $trace['file'] . ':' . $trace['line'] . \"</font></pre>\"\n ) . PHP_EOL;\n }\n\n if (!$cli) {\n echo '<pre>';\n }\n\n call_user_func_array('var_dump', func_get_args()) . PHP_EOL;\n\n if (!$cli) {\n echo '</pre><hr />';\n }\n }", "title": "" }, { "docid": "380bd7bdf5da2c0e31a8621ad112a15f", "score": "0.61976135", "text": "function debug_ap($ap) \n\t{\n\t\tif (DEBUG_LEVEL>0)\n\t\t{\n\t\t\techo \"[Network]\\n\";\n\t\t\techo \"Vendor name:\".$ap[\"vendor\"].\"\\n\";\n\t\t\techo \"SSID:\".$ap[\"ssid\"].\"\\n\";\n echo \"Coordinates:\".$ap[\"coords\"].\"\\n\";\n\t\t\techo \"Encryption:\".$ap[\"encryption\"].\"\\n\";\n\t\t\techo \"MAC:\".$ap[\"mac_addr\"].\"\\n\";\n\t\t\techo \"Frequency:\".$ap[\"frequency\"].\"\\n\\n\";\n\t\t}\n\t}", "title": "" }, { "docid": "9abac009849016770e5ffed54158b013", "score": "0.61955774", "text": "public function debug(){\n echo \"<pre><code>\";\n var_dump($this);\n echo \"</code></pre>\";\n }", "title": "" }, { "docid": "c984658b415c7fc7e39131db42042f41", "score": "0.6193221", "text": "function debug($arr){\n echo \"<pre>\" . print_r($arr, true) . \"</pre>\";\n}", "title": "" }, { "docid": "9805fb85e202794d6a7983ec8bea95e0", "score": "0.61863196", "text": "function __debug($var) {\n echo \"<pre>\\n\";\n if (is_string($var)) {\n $var = protegerAffichage($var);\n }\n var_dump($var);\n echo \"</pre>\\n\";\n}", "title": "" }, { "docid": "74826f9a1aadd7db0f4e06205b8f949b", "score": "0.61792624", "text": "function debug( $thingie ){\n\tvar_dump( $thingie );\n\texit;\n}", "title": "" }, { "docid": "bc306b5d19da7ad3238dc3cb0cd71c28", "score": "0.6160613", "text": "function aprint($print){\n\techo '<pre>';\n\tprint_r($print);\n\techo '</pre>';\n}", "title": "" }, { "docid": "7bd7b72c4bb63a59374886e6f2372402", "score": "0.6154044", "text": "public function getDebug()\n {\n }", "title": "" }, { "docid": "f6814fba0816171ea38bdc9bdd8eb6af", "score": "0.6140919", "text": "function stdout($info,$exit=false)\n{\n $bt = debug_backtrace();\n $caller = array_shift($bt);\n\n $summary=\"\";\n\n if(isset($caller['file']) && isset($caller['line'])) {\n $summary=$caller['file'].':'.$caller['line'].\"\\n\";\n }\n\n\n if (PHP_SAPI === 'cli') {\n print_r($info);\n echo \"\\n\";\n } else {\n print '<pre style=\"padding: 1em; margin: 1em 0;\">';\n echo \"$summary\";\n if(func_num_args() < 2) {\n print_r($info);\n } else {\n print_r($info);\n //print_r(func_get_args());\n }\n print '</pre>';\n }\n\n if($exit) {exit();}\n}", "title": "" }, { "docid": "efeea109ea011e18a482be1eb22fbf14", "score": "0.61407506", "text": "public static function debug($info)\n {\n echo '<pre>'; print_r($info); echo '</pre>';\n }", "title": "" }, { "docid": "54dd8c4e60731164ab81a954244862ea", "score": "0.61394304", "text": "function pre_print_e ($r)\n{\n\tprint('<pre>');\n\tprint_r($r);\n\tprint('</pre>');\n\texit;\n}", "title": "" }, { "docid": "8bab1e60a48f695889413cc24a27a3a4", "score": "0.6125646", "text": "function debug($str) {\n if ((isset($_GET['debug']) and $_GET['debug'] == 'on') or \n (isset($_GET['verbose']) and $_GET['verbose'] == 'on')) {\n print(\"\\n<pre>$str</pre>\");\n }\n}", "title": "" }, { "docid": "23fc6c08e2c5b179fd9d893911896c97", "score": "0.6123608", "text": "protected function debugState()\n {\n //$this->debug('Code: '.$this->code);\n $this->debug('Input: '.implode('', $this->input));\n $this->debug('PC: '.$this->pc);\n $this->debug('Memory: '.implode('', $this->memory).', Bytes: '.implode('', array_map([$this,'getCharCodeDebug'], $this->memory)));\n $this->debug('Mp: '.$this->mp);\n $this->debug('Result: '.implode('', $this->result));\n }", "title": "" }, { "docid": "0af01b4399cf423107a78ee311e8967c", "score": "0.61144155", "text": "function dbg() {\n global $deb_inDebug, $deb_circular, $deb_circular2,$deb_level;\n $globals = new deb_globals;\n $deb_circular = array();\n $deb_circular2 = array();\n $deb_level = 0;\n $arg_list = func_get_args();\n foreach ($arg_list as $arg) {\n $globals->deg_list->del_addItem($arg);\n }\n $globals->deg_output();\n print PHP_EOL.'<br>';\n if ($globals->deg_exit!==FALSE) {\n exit;\n }\n}", "title": "" }, { "docid": "1687bb57d952087370eeef8ddd4ced1f", "score": "0.6110821", "text": "function var_dump_html($desc, $var) {\n if ($_GET['debug'] == 'on' or\n $_GET['dev'] == 'on') {\n var_dump(\"\\n<br>\" .\n \"<div align='left'>\" .\n \"<pre>$desc\",$var,\"</div>\");\n }\n}", "title": "" }, { "docid": "ae0ef4332133f2993d82b0f446dfe7a4", "score": "0.6107485", "text": "function _pr($input, $pre=true){\n\t\tif($pre) echo '<pre>';\n\t\tif(is_array($input) || is_object($input)){ \n\t\t\tprint_r($input); \n\t\t}else{ \n\t\t\tif(is_bool($input)) var_dump($input);\n\t\t\telse echo $input;\n\t\t\tif($pre == false) echo '<br>';\n\t\t}\n\t\tif($pre) echo '</pre>';\n\t}", "title": "" }, { "docid": "47903eb48ca0c58b706913a6af6b7802", "score": "0.61028826", "text": "function debug_r($arr)\n\t{\n\t\tif(DEBUG)\n\t\t{\n\t\t\techo '<pre>';\n\t\t\tprint_r($arr);\n\t\t\techo '</pre>';\n\t\t}\n\t}", "title": "" }, { "docid": "7ceeb509de5bab6dbe67ec5f86201bc6", "score": "0.60968363", "text": "private function dbg_dump($msg) {\n return;\n var_dump($msg);\n }", "title": "" }, { "docid": "11847cf012f132c4a86be6ea5b56b4fa", "score": "0.6087095", "text": "function dump(){\n\t$args = func_get_args();\n\t$out = array();\n\tforeach($args as $arg){\n\t\t$out[] = print_r($arg, True);\n\t}\n\t$out = implode(\"<br />\", $out);\n\treturn \"<pre>{$out}</pre>\";\n}", "title": "" }, { "docid": "970f1f2c73db8f1933d2a5230ac0cc9f", "score": "0.6082956", "text": "public function debug()\n {\n echo implode(\"\\r\\n\", $this->debug);\n }", "title": "" }, { "docid": "3510d74e9d0ce831c932cf6ac79e4cb4", "score": "0.60805434", "text": "function debug($var) {\n\t\t$bt = debug_backtrace();\n\t\t$caller = array_shift($bt);\n\t\techo '<strong>' . $caller['file'] . ' on line: ' . $caller['line'] . '</strong>';\n\t\techo '<pre>';print_r($var);exit;\n\t}", "title": "" }, { "docid": "70c4f7b84cd3b51d73fb60c13da95300", "score": "0.60699624", "text": "public function debugConsole($data) {\n var_dump($data);\n echo \"<br />\";\n }", "title": "" }, { "docid": "d17de0b632c3aa2e5f2e7e2293848421", "score": "0.6066603", "text": "public function debugAction()\n {\n Sys_Debug::dumpDie( \"Sample debug message\" );\n\n }", "title": "" }, { "docid": "3442e9e793e076bf26184ae5052a1bef", "score": "0.6053559", "text": "function dbg($debug, $text) {\n\t\tif($debug)\n\t\t\techo ShellColours::BLUE . \" [ deb ] $text\" . ShellColours::Z . \"\\n\";\n\t}", "title": "" }, { "docid": "32dac647c127a0a7ef03f7e955ff5d85", "score": "0.6052703", "text": "public function actionDebug()\n {\n /**\n * @var ContractSign $cs\n */\n $wxService = new WxService();\n BDataHelper::print_r($wxService->getData());\n }", "title": "" }, { "docid": "4f66e86c4e8093651224f8d61c806fee", "score": "0.6029514", "text": "function pprint($something) {\n\techo '<pre>';\n\tprint_r($something);\n\techo '</pre>';\n}", "title": "" }, { "docid": "7090f1a73394a3baede079abd3e53cd0", "score": "0.60244924", "text": "function debug($element){\n echo \"<pre>\".print_r($element, true).\"</pre>\";\n}", "title": "" }, { "docid": "31983087de5df8a2982f0ff25cc74645", "score": "0.60222125", "text": "function debug_to_console($data) {\r\n $output = $data;\r\n if (is_array($output))\r\n $output = implode(',', $output);\r\n\r\n echo \"<script>console.log('Debug Objects: \" . $output . \"' );</script>\";\r\n }", "title": "" }, { "docid": "57c7497e7d590420a1d12f9ad91b0026", "score": "0.6012228", "text": "function zdebug ($n,$v) {\n\t$x = 1;\n\tif ($x==1) {\n\t\techo \"<font color='green'>\".$n . \" = [\".$v.\"]</font><br>\"; \n\t}\n}", "title": "" }, { "docid": "addd30625aa6635f841d8b836eec7295", "score": "0.6006823", "text": "public function dbgRecord()\n {\n $args = func_get_args();\n if ($this->level > 0) {\n // write trace in a file\n $when = date('[j-M-y h:i:s] ');\n $etime = $this->getElapsedTime();\n $memory = sprintf(\"%.2fMb\", memory_get_usage()/(1024*1024)) . ' > ';\n $nba = count($args);\n $result = implode(' ', array($when, $etime, $memory));\n if ($nba > 1) {\n $result.= $args[1] . ' : ';\n }\n $result .= (is_array($args[0]) ? print_r($args[0], true) : $args[0]) . \"\\n\";\n\n fwrite($this->dbgFd, $result);\n }\n }", "title": "" }, { "docid": "19ec5bce472c531452d4be6dca01b767", "score": "0.60053533", "text": "function dumpp($data){\r\n echo '<pre>';print_r($data);die;\r\n}", "title": "" }, { "docid": "404ffb0ae70390a986b2311912bc0536", "score": "0.6004592", "text": "function debug($item) {\n\n $trace = debug_backtrace();\n\n if (is_bool($item)) {\n $dbg = $item ? 'true' : 'false';\n } else {\n $dbg = str_replace('<', '&lt;', str_replace('>', '&gt;', print_r($item, true)));\n }\n\n echo '<strong>' . gettype($item) . ' in ' . $trace[0]['file'] . \"\\n\" . ' line '.$trace[0]['line'].'</strong>';\n echo '<pre class=\"debug\">' . \"\\n\" . $dbg . \"\\n\" . '</pre>';\n\n ob_flush();\n}", "title": "" }, { "docid": "4b6b60c0a099b51330488743ab3e1b79", "score": "0.59975004", "text": "function dbg($txt, ...$vars){\n//\t$log = [date('Y-m-d H:i:s')];\n\t$log= [];\n if(!is_string($txt)){\n \tarray_unshift($vars, $txt);\n }else{\n $log[] = $txt;\n }\n $log[] = join(' ', array_map('json_encode', $vars));\n\terror_log(join(' ', $log));\n}", "title": "" }, { "docid": "1f61cac6d1fcae067e5aafa870e0a706", "score": "0.59952027", "text": "function p($str) { print($str); }", "title": "" }, { "docid": "ce3b3c3d8fc2bf059708e76370784f87", "score": "0.5991219", "text": "function pa($mixed, $stop = false) {\n $ar = debug_backtrace();\n $key = pathinfo($ar[0]['file']);\n $key = $key['basename'] . ':' . $ar[0]['line'];\n $print = array($key => $mixed);\n echo( '<pre>' . (print_r($print, 1)) . '</pre>' );\n if ($stop == 1)\n exit();\n}", "title": "" }, { "docid": "0625d594583b819b66403da3f7a1cd0f", "score": "0.5972642", "text": "function debug($i)\n\t{\n\t\techo '<pre>';\n\t\tprint_r($i);\n\t\techo '</pre>';\n\t}", "title": "" }, { "docid": "bad17536e61ca76ca93853e0e7b45173", "score": "0.59659064", "text": "public function p($msg,$var='',$file='',$line='')\n {\n if (!$this->debugflag) return;\n if (!empty($file)) $file = basename($file);\n $out = 'DEBUG: ';\n if (!empty($file)) $out .= $file;\n if (!empty($line)) $out .= '@'.$line;\n $out .= ': '.$msg.PHP_EOL;\n if (FALSE === $var) {\n $out .= 'FALSE';\n } elseif (NULL === $var) {\n $out .= 'NULL';\n } elseif (0 === $var) {\n $out .= $var.' (zero)';\n } elseif (!empty($var)) {\n if (is_array($var) || is_object($var)) {\n\tif ($this->nohtml) {\n\t $out .= print_r($var,true);\n\t} else {\n\t $out .= '<pre>' . htmlspecialchars(print_r($var,true)) . '</pre>';\t\t\t\t\n\t}\n } else {\n\t$out .= htmlspecialchars($var);\n }\n $out .= PHP_EOL;\n }\n if ($this->hold) {\n $this->heldmessages[] = $out; // hold message until later\n } else {\n if ($this->nohtml) {\n\techo $out;\n } else {\n\techo $this->prefix.PHP_EOL;\n\techo $out;\n\techo $this->suffix.PHP_EOL;\n }\n }\n\n if ($this->errorlog != \"-1\") {\n if (is_string($this->errorlog)){\n\terror_log($out,3,$this->errorlog);\n } else {\n\terror_log($out);\n }\n }\n }", "title": "" }, { "docid": "e32aa191a92ff463cdc997a718dae646", "score": "0.5961315", "text": "function debug($string){\n\t\tif ($this->debugLevel > 0) {\n\t\t\t$this->appendDebug($this->getmicrotime().' '.get_class($this).\": $string\\n\");\n\t\t}\n\t}", "title": "" }, { "docid": "35509d992f32606348fe3693099ef5bd", "score": "0.5955471", "text": "function rwmb_debug_print()\n{\n\tglobal $rwmb_debug;\n\tif ( ! $rwmb_debug || ( is_user_logged_in() && is_user_admin() ) )\n\t\treturn;\n\n\t$html = '<h3>' . __( 'RW_Meta_Box Debug:', 'rwmb' ) . '</h3><pre>';\n\tforeach ( $rwmb_debug as $debug )\n\t{\n\t\t$html .= \"{$debug}<hr />\";\n\t}\n\t$html .= '</pre>';\n\n\tdie( $html );\n}", "title": "" }, { "docid": "bbb814774947e889cc2a8f08ee411948", "score": "0.5937464", "text": "function print_pre($msg){\n echo \"<pre>\";\n print_r($msg);\n echo \"</pre>\";\n}", "title": "" }, { "docid": "361504f6cf05167e675375669b2b01ea", "score": "0.5930164", "text": "public function debug($message){ }", "title": "" }, { "docid": "7ab6d65a2384fa396388afc83f07efef", "score": "0.59226465", "text": "function debug($var) {\n $debug = debug_backtrace();\n echo '<p>&nbsp;</p><p><a href=\"#\" onclick=\"$(this).parent().next(\\'ol\\').slideToggle(); return false;\">\n\t\t<strong>' . $debug[0]['file'] . ' </strong> l.'\n . $debug[0]['line'] . '</a></p>';\n echo '<ol style=\"display:none;\">';\n foreach ($debug as $k => $v) {\n if ($k > 0) {\n echo '<li><strong>' . $v['file'] . '</strong> l.' . $v['line'] . '</li>';\n }\n }\n echo '</ol>';\n echo '<pre>';\n print_r($var);\n echo '<pre>';\n}", "title": "" }, { "docid": "96743dc48a0ceba7bb90b8c1bb2eb7f8", "score": "0.59184825", "text": "public function callsDebug()\n {\n Debug::_log($this);\n }", "title": "" }, { "docid": "f875a41e28135adaf6b8d12958e37b60", "score": "0.5913328", "text": "function debug_to_console( $data ) {\n $output = $data;\n if ( is_array( $output ) )\n $output = implode( ',', $output);\n\n echo \"<script>console.log( 'Debug Objects: \" . $output . \"');</script>\";\n}", "title": "" }, { "docid": "54f49ef1fea0078491fea7f7329550a7", "score": "0.5907667", "text": "function rwmb_debug( $input, $print_or_export = 'print' )\n{\n\tglobal $rwmb_debug;\n\n\t$html = 'print' === $print_or_export ? print_r( $input, true ) : var_export( $input, true );\n\n\treturn $rwmb_debug[] = $html;\n}", "title": "" }, { "docid": "6911f628bfda56c004e0a0d33ea97ae3", "score": "0.5907157", "text": "protected function backtrace(){\n\t\n\t\t$backtrace = debug_backtrace();\n\t\t\n\t\tif( $backtrace[2]['function'] == 'pp' )\n\t\t\t$arToPrint = $backtrace[2 + self::TRACE_DEPTH]; // run as a function\n\t\telse\n\t\t\t$arToPrint = $backtrace[1 + self::TRACE_DEPTH]; // run as a method\n\n\t\techo '<div class=\"pp_mark\">'.$arToPrint['file'].' <span title=\"Line number\">'.$arToPrint['line'].'</span></div>';\n\t\n\t}", "title": "" }, { "docid": "5562c03b856fe628f1d4b59178d8f7ed", "score": "0.5899705", "text": "function debug($value){\n echo '<pre>';\n var_dump($value);\n echo '</pre>';\n\n }", "title": "" }, { "docid": "450defa07a13e8fb18097ff2f971d75e", "score": "0.5898012", "text": "function print_debug($data, $die_immediately = true)\n {\n echo '<pre>';\n print_r($data);\n echo '</pre>';\n if ($die_immediately) {\n die();\n }\n }", "title": "" }, { "docid": "76d7633696c2584cde18eb9351cf619c", "score": "0.58939314", "text": "function pr($variable)\n {\n for ($i = 1; $i <= func_num_args(); $i++) {\n echo \"<pre>============\\n <br>\";\n print_r($variable);\n echo \"\\n<br>============\\n <br></pre>\";\n }\n }", "title": "" }, { "docid": "a10dfb73838043f4762d17d283846794", "score": "0.58845395", "text": "public static function Debug($msg) {\n\t if(DEBUG) {\n\t print $msg;\n\t print CMD_LINE ? \"\\n\" : \"<BR>\";\n\t }\n\t}", "title": "" }, { "docid": "dabea18d4aece027ff767107e85a4058", "score": "0.58804023", "text": "function debug() {\n // turn on errors\n error_reporting(E_ALL);\n ini_set('display_errors', true);\n}", "title": "" } ]
2488c6cc6199fcf57f062fc5d1d4e2ad
Set view object, this filter is applied to
[ { "docid": "b9fdb42c7d93c53b4fd03308f5204696", "score": "0.6416377", "text": "public function setView($view)\n {\n if ($view instanceof Zend_View) {\n $this->_view = $view;\n }\n }", "title": "" } ]
[ { "docid": "418214ca452157cd913094c52d388fa5", "score": "0.7278154", "text": "public function setView ();", "title": "" }, { "docid": "8c4354ba4595a3f9acbbaddd7edcb54c", "score": "0.70327896", "text": "abstract protected function doSetupViewWithFilters();", "title": "" }, { "docid": "1e8b5cc1b994de4ca0068734fda51b95", "score": "0.6961974", "text": "private function setView()\n {\n $this->view->type = $this->request->getRequestedResource();\n }", "title": "" }, { "docid": "5714d1b2a9e4b0aebc4605f494e0c0bd", "score": "0.6909208", "text": "function setView($view) {\n\t\t$this->View = $view;\n\t}", "title": "" }, { "docid": "07bc0ef59234afe46dc13a700703a65e", "score": "0.6770616", "text": "public function setView(One_View $view)\n\t{\n\t\t$this->view = $view;\n\t}", "title": "" }, { "docid": "b88b9ce139f684470983bca5ad512cc8", "score": "0.6543815", "text": "public function setView($view) {\n\t\t$this->view = $view;\n\t}", "title": "" }, { "docid": "05574b922bac36e6f86c2c4120badf39", "score": "0.65341103", "text": "public function setView($view)\r\n {\r\n $this->view = $view;\r\n }", "title": "" }, { "docid": "119bf74ba2d77ed7d424ac6b10658211", "score": "0.65163624", "text": "public function setView($view)\n\t{\n\t\t$this->view = $view;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "930a1f6e9b1f852334d5b67eb54e7c88", "score": "0.65149176", "text": "public function setView($view)\n {\n\n $this->view = $view;\n \n }", "title": "" }, { "docid": "3f77de58e00451801b01d19cf2db0a43", "score": "0.6510949", "text": "public function setView(View $view)\r\n {\r\n $this->view = $view;\r\n return $this;\r\n }", "title": "" }, { "docid": "712f7a0780ede4802d39d3c5d79a053d", "score": "0.6504264", "text": "public function setView($view)\n {\n $this->_view = $view;\n }", "title": "" }, { "docid": "766a39550faa99a50ff3b8b57183524f", "score": "0.64982706", "text": "public function setView(View $view)\n\t{\n\t\t$this->_view = $view;\n\t}", "title": "" }, { "docid": "71f56a39b3cc1d014c587418978451e7", "score": "0.6494758", "text": "final protected function setActionView($view){\n $this->ActionView = $view;\n return\n $this;\n }", "title": "" }, { "docid": "f849fd6bef0cfbf6a12f8ea37234f03a", "score": "0.64684886", "text": "public function setView($view)\n {\n $this->view = $view;\n return $this;\n }", "title": "" }, { "docid": "15c28209c53e926c6c96b0a5b041d95b", "score": "0.6456458", "text": "private function setView(){\n\t\t$class = '\\views\\\\' . $this->controllerName . 'View';\n\t\tif(class_exists($class)){\n\t\t\t$this->view = new $class();\n\t\t}\n\t\telse{\n\t\t\t$this->view = new \\core\\AppView();\n\t\t}\n\t\t$this->controller->setView($this->view);\n\t}", "title": "" }, { "docid": "8eb9b0349bb8917bbca5a3843b893f2e", "score": "0.6437205", "text": "public function setView($view)\n\t{\n\t\t$this->view = $view;\n\t}", "title": "" }, { "docid": "69ecf1563ea20e5f220d86bb2c375762", "score": "0.63850623", "text": "function __construct($view_object=null)\n\t\t{\n\t\t\tif(is_object($view_object))\n\t\t\t\tself::$viewobj = $view_object;\n\t\t\telse\n\t\t\t\tself::$viewobj = null;\n\t\t}", "title": "" }, { "docid": "ac4ca20e6bf880d69dc060868d386d27", "score": "0.63604975", "text": "public function setView($view)\n {\n $this->view = $view;\n\n return $this;\n }", "title": "" }, { "docid": "faad993defa2a1f9c9eb29db42b1178c", "score": "0.6345484", "text": "protected function setView($view)\n {\n $this->_view = $view;\n\n return $this;\n }", "title": "" }, { "docid": "48c091218a3b3bd49d3ee36735fb404a", "score": "0.6326449", "text": "public static function view($view_object) \n\t\t{\n\t\t\treturn new self($view_object);\n\t\t}", "title": "" }, { "docid": "fa51697e749c201700721f5ee86a9dee", "score": "0.630547", "text": "public function setView(Zend_View_Interface $view)\n {\n $this->view = $view;\n $this->model = $view->model;\n if (isset($view->templateData)) {\n $this->templateData = $view->templateData;\n }\n $this->resourceUri = (string)$view->resourceUri;\n }", "title": "" }, { "docid": "ac1acf4ca889b49e90e088a2aa5f23d8", "score": "0.62982017", "text": "public function setView($view)\n {\n if(!is_object($view)) throw new ViewException(\"View is not an object!\", 1);\n $this->view = $view;\n\n return $this;\n }", "title": "" }, { "docid": "170d41ea3ac122a992b6c056ab74a6d8", "score": "0.6279057", "text": "public function setView(AnimusView $view) {\n $this->log(\"Entering method \".__METHOD__);\n $this->log(\"Exiting method \".__METHOD__);\n $this->_view = $view;\n }", "title": "" }, { "docid": "88442ac270fb9140f53e58c14b4bbb7c", "score": "0.62707555", "text": "public function setView(Renderer $view);", "title": "" }, { "docid": "dd6a6a2a10a0f673de9f12891e0df748", "score": "0.62454027", "text": "protected function setView()\n {\n $this->view = new Template();\n }", "title": "" }, { "docid": "43fda93266443de9dec7bd24f837e690", "score": "0.62276673", "text": "public function setView(Zend_View_Interface $view) {\n\t\t$this->_view = $view;\n\t}", "title": "" }, { "docid": "4db16c511b645a46aa7874d2114c8404", "score": "0.6220142", "text": "public function set_view($view)\n\t{\n\t\t$this->_options['view'] = $view;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "8811430dd3a5d7b7d63f9fe930ebc134", "score": "0.620849", "text": "public function setView()\r\n {\r\n $this->view->header = $this->getHeader();\r\n $this->view->subHeader = $this->getSubHeader();\r\n $this->view->content = $this->getContent();\r\n if (empty($this->view->hrClasses)) {\r\n $this->view->hrClasses = $this->getHRClasses();\r\n }\r\n }", "title": "" }, { "docid": "6fb9851c0791c2f5d45ab03abc88064d", "score": "0.61992323", "text": "public function onViewFilter() {\n\n $this->getObLista();//Substituir por backbone.js\n $filtro = $_POST;\n\n $this->obLista->setFiltro($filtro);\n\n }", "title": "" }, { "docid": "d061f840fd96c409d2481e3c05980910", "score": "0.61860484", "text": "public function __construct($view){\n\t\t$this->view = $view;\n\t}", "title": "" }, { "docid": "e3341126a84e59b1f813095cc29abaec", "score": "0.61810017", "text": "public function setView($view) \n {\n $this->_currentView = $view;\n }", "title": "" }, { "docid": "7cf23088bfc2e6079a62741b75705b4e", "score": "0.6174872", "text": "public function __construct($view) {\n $this->view = $view;\n }", "title": "" }, { "docid": "0545f6c8d7ca4664579a01b5516ca86b", "score": "0.61491233", "text": "public function setView (Zend_View_Interface $view)\r\n {\r\n $this->view = $view;\r\n }", "title": "" }, { "docid": "f31a51e49e8acf9acbd88c78b92304ad", "score": "0.61480606", "text": "public function setView(Zend_View_Interface $view) {\n\t\t$this->view = $view;\n\t}", "title": "" }, { "docid": "f31a51e49e8acf9acbd88c78b92304ad", "score": "0.61480606", "text": "public function setView(Zend_View_Interface $view) {\n\t\t$this->view = $view;\n\t}", "title": "" }, { "docid": "babfa8a4312c2652d246f75537beba6e", "score": "0.6137217", "text": "public function setView (Zend_View_Interface $view) {\n $this->view = $view;\n }", "title": "" }, { "docid": "1ce284b146b9144c4547b65fd1e89317", "score": "0.6133405", "text": "public function __construct($view)\n\t{\n\t\t$this->_view = $view;\n\t}", "title": "" }, { "docid": "361659e4d3db45c43e5ccf1421456d77", "score": "0.6123667", "text": "public function setView(Zend_View_Interface $view) {\r\n\t\t$this->view = $view;\r\n\t}", "title": "" }, { "docid": "361659e4d3db45c43e5ccf1421456d77", "score": "0.6123667", "text": "public function setView(Zend_View_Interface $view) {\r\n\t\t$this->view = $view;\r\n\t}", "title": "" }, { "docid": "361659e4d3db45c43e5ccf1421456d77", "score": "0.6123667", "text": "public function setView(Zend_View_Interface $view) {\r\n\t\t$this->view = $view;\r\n\t}", "title": "" }, { "docid": "361659e4d3db45c43e5ccf1421456d77", "score": "0.6123667", "text": "public function setView(Zend_View_Interface $view) {\r\n\t\t$this->view = $view;\r\n\t}", "title": "" }, { "docid": "361659e4d3db45c43e5ccf1421456d77", "score": "0.6123667", "text": "public function setView(Zend_View_Interface $view) {\r\n\t\t$this->view = $view;\r\n\t}", "title": "" }, { "docid": "361659e4d3db45c43e5ccf1421456d77", "score": "0.6123667", "text": "public function setView(Zend_View_Interface $view) {\r\n\t\t$this->view = $view;\r\n\t}", "title": "" }, { "docid": "32eeb78eb1b67384156e4e391f9f9eb8", "score": "0.6111792", "text": "public function setView(Zend_View_Interface $view)\n {\n $this->view = $view;\n $this->resourceUri = (string)$view->resourceUri;\n }", "title": "" }, { "docid": "a8bff6c4c3305b0b063ecf0669864109", "score": "0.60949564", "text": "public function setView (Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "a8bff6c4c3305b0b063ecf0669864109", "score": "0.60949564", "text": "public function setView (Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "a8bff6c4c3305b0b063ecf0669864109", "score": "0.60949564", "text": "public function setView (Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "a8bff6c4c3305b0b063ecf0669864109", "score": "0.60949564", "text": "public function setView (Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "a8bff6c4c3305b0b063ecf0669864109", "score": "0.60949564", "text": "public function setView (Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "a8bff6c4c3305b0b063ecf0669864109", "score": "0.60949564", "text": "public function setView (Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "a8bff6c4c3305b0b063ecf0669864109", "score": "0.60949564", "text": "public function setView (Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "a8bff6c4c3305b0b063ecf0669864109", "score": "0.60949564", "text": "public function setView (Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "a8bff6c4c3305b0b063ecf0669864109", "score": "0.60949564", "text": "public function setView (Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "a8bff6c4c3305b0b063ecf0669864109", "score": "0.60949564", "text": "public function setView (Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "a8bff6c4c3305b0b063ecf0669864109", "score": "0.60949564", "text": "public function setView (Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "a8bff6c4c3305b0b063ecf0669864109", "score": "0.60949564", "text": "public function setView (Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "a8bff6c4c3305b0b063ecf0669864109", "score": "0.60949564", "text": "public function setView (Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "58670b0acc49066d61daa1c14b99d6a6", "score": "0.6080791", "text": "public function setView(Zend_View_Interface $view = null)\n {\n $this->_view = $view;\n return $this;\n }", "title": "" }, { "docid": "70d99b1e802663a84fc7c51be83ad6f4", "score": "0.60742164", "text": "function __construct($view)\n\t{\n\t\t$this->view = $view;\n\t}", "title": "" }, { "docid": "e5349025fd662a206425c3d06737184c", "score": "0.6058943", "text": "public function setView(Zend_View_Interface $view) {\r\n $this->view = $view;\r\n }", "title": "" }, { "docid": "982abc71bbfe65f5bfab929a581166ca", "score": "0.6021062", "text": "public function setView(Zend_View_Interface $view)\r\n {\r\n $this->view = $view;\r\n }", "title": "" }, { "docid": "45ec3e7649d64ad61c9a90b84277a051", "score": "0.60022664", "text": "public function setView(Zend_View_Interface $view) {\n $this->view = $view;\n }", "title": "" }, { "docid": "45ec3e7649d64ad61c9a90b84277a051", "score": "0.60022664", "text": "public function setView(Zend_View_Interface $view) {\n $this->view = $view;\n }", "title": "" }, { "docid": "1bb4bd954694c70e08e3bcd574054eb1", "score": "0.5994044", "text": "public function setView(View $view = null)\n {\n if (!$view instanceof View) {\n $view = new View();\n }\n\n $this->_view = $view;\n\n return $this;\n }", "title": "" }, { "docid": "97de0a4605cc067df15656b2c447b818", "score": "0.59931564", "text": "public function set_view($view, $listorphan = true) {\n $this->view = $view;\n $this->listorphan = $listorphan;\n }", "title": "" }, { "docid": "47a9b891b898e3faeee8cb7c85dc1581", "score": "0.5991681", "text": "public function setview($args) {\n $this->view = $args;\n }", "title": "" }, { "docid": "39ae4e3c5adf4748fdfcd340f7901e8c", "score": "0.5983004", "text": "public function setView(Zend_View_Interface $view = null)\n {\n $this->_view = $view;\n\n return $this;\n }", "title": "" }, { "docid": "441f382e8dc36a184e46e76e1ab9ccea", "score": "0.59726435", "text": "function __construct() {\n $this->view = new View();\n }", "title": "" }, { "docid": "441f382e8dc36a184e46e76e1ab9ccea", "score": "0.59726435", "text": "function __construct() {\n $this->view = new View();\n }", "title": "" }, { "docid": "441f382e8dc36a184e46e76e1ab9ccea", "score": "0.59726435", "text": "function __construct() {\n $this->view = new View();\n }", "title": "" }, { "docid": "d7ac2877b0403b3b99e0e3e8d14d61cb", "score": "0.59680176", "text": "public function setView(Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "d7ac2877b0403b3b99e0e3e8d14d61cb", "score": "0.59680176", "text": "public function setView(Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "d7ac2877b0403b3b99e0e3e8d14d61cb", "score": "0.59680176", "text": "public function setView(Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "d7ac2877b0403b3b99e0e3e8d14d61cb", "score": "0.59680176", "text": "public function setView(Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "d7ac2877b0403b3b99e0e3e8d14d61cb", "score": "0.59680176", "text": "public function setView(Zend_View_Interface $view)\n {\n $this->view = $view;\n }", "title": "" }, { "docid": "4c3be75c4d7a5720dc3f0a703328ef3a", "score": "0.5928063", "text": "public function __construct(){\n\t\t$this->view = new V();\n\t}", "title": "" }, { "docid": "0c31f5f4dbbd47862f3185a2b6e22a35", "score": "0.5928044", "text": "public function getViewObject() {\n\t\treturn $this->_viewObject;\n\t}", "title": "" }, { "docid": "02ac835747aee8f31166181909204d7d", "score": "0.59274167", "text": "function __construct()\r\n {\r\n $this->view = new View();\r\n }", "title": "" }, { "docid": "72e706abf2fc509c1f75fd2491811fd0", "score": "0.59263813", "text": "public function __construct() {\n $this->view = new View();\n }", "title": "" }, { "docid": "cf5517541793768c2ef9d11d12857808", "score": "0.5925772", "text": "public function setView(View $view = null)\n {\n if (!$view instanceof View) {\n $bootstrap = Front::getInstance()->getBootstrap();\n if ($bootstrap->hasResource('view')) {\n $view = $bootstrap->getResource('view');\n }\n else {\n $view = new View();\n }\n }\n\n $this->_view = $view;\n\n return $this;\n }", "title": "" }, { "docid": "368fd30e647549ebf40b4beb6cacb25c", "score": "0.5925525", "text": "public function __construct() {\n $this->view = new View();\n }", "title": "" }, { "docid": "7182c54f43b756e1863a2a387c8652fe", "score": "0.5916831", "text": "public function setView(string $sViewName = ''): object\n {\n $this->sDisplayView = $sViewName;\n return $this;\n }", "title": "" }, { "docid": "3c32d4f0af41e5d5bac5436ed9e8c01b", "score": "0.5913346", "text": "public function __construct(){\n $this->view = new View();\n }", "title": "" }, { "docid": "c36ebc71cd5adb1c2f49ef295b2ef2d5", "score": "0.5909887", "text": "protected function setViewData(View $view)\n {\n $view->name = $this->getName();\n $view->value = $this->getValue();\n $view->label = $this->getLabel();\n $view->error = $this->getError();\n $view->type = $this->getType();\n $view->properties = $this->properties;\n }", "title": "" }, { "docid": "2add455174e913809cf2ed024d3e83ff", "score": "0.5909047", "text": "function __construct()\n {\n $this->view = new View();\n }", "title": "" }, { "docid": "4299b223fd291e43330a8efdae86dcfa", "score": "0.5907535", "text": "public function setInitView($initView);", "title": "" }, { "docid": "0e4a8322638438daf02357204d12867d", "score": "0.59070003", "text": "protected function _set_listo_view()\n {\n if ($this->listo_view != '')\n {\n $this->listo->set_view($this->listo_view);\n }\n }", "title": "" }, { "docid": "9f9b6a628ea623ef5e39ed38ea338fe4", "score": "0.5896416", "text": "function __construct()\n {\n $this->view = new View;\n }", "title": "" }, { "docid": "fe2e2702b20dc3f98293731720ce47c3", "score": "0.58791995", "text": "function setView() {\n\t\t$this->view_data = $this->getViewData();\n\t\t$template = $this->get404Template() . 'tpl';\n\t\tif ( \n\t\t\tis_object( $this->view_data ) && \n\t\t\tproperty_exists( $this->view_data, 'template' ) && \n\t\t\t!empty( $this->view_data->template )\n\t\t) {\n\t\t\t$template_file = $this->getTemplateDir() . '/' . $this->view_data->template . '.tpl';\n\t\t\t$template = file_exists( $template_file ) ?\n\t\t\t\t$this->view_data->template . '.tpl':\n\t\t\t\t'string: '. $this->view_data->template;\n\t\t}\n\t\t$this->View = $this->Smarty->createTemplate( $template );\n\t}", "title": "" }, { "docid": "006fa9afd9f0952b861dbaafcbe6e884", "score": "0.5856005", "text": "protected function _initView()\n {\n }", "title": "" }, { "docid": "e75b2297246bc50f4bc4495fff01353a", "score": "0.5817243", "text": "public function getView() {}", "title": "" }, { "docid": "23f5cb80f8fca7e3b7e194d28c1e3e10", "score": "0.5803056", "text": "public function __construct()\n {\n $this->view = view();\n }", "title": "" }, { "docid": "9938077150d47bedec612ccb2533990d", "score": "0.5794518", "text": "public function setView(ViewInterface $view) {\n $this->view = $view;\n }", "title": "" }, { "docid": "8bf43bf6ad7b2c0ecc3e8ecdda78e19b", "score": "0.57918835", "text": "function getView();", "title": "" }, { "docid": "8bf43bf6ad7b2c0ecc3e8ecdda78e19b", "score": "0.57918835", "text": "function getView();", "title": "" }, { "docid": "2bc8c5c1f8350dca25a6212330a74b12", "score": "0.5771498", "text": "protected function initViewClass() {\n\t\tif($this->viewClass === null) {\n\t\t\t$viewClassName= $this->view;\n\t\t\tkataUse($viewClassName);\n\t\t\t$this->viewClass= new $viewClassName($this);\n\t\t}\n\t}", "title": "" }, { "docid": "b5ec45544357c1fcaf713fb1537db4b4", "score": "0.5770499", "text": "public function setView($var)\n {\n GPBUtil::checkBool($var);\n $this->view = $var;\n\n return $this;\n }", "title": "" }, { "docid": "e157e7d018c08338406424b97a492c97", "score": "0.57514876", "text": "public function init($obj){\n\t\t\tCoreUtils::validate_user_session();\n\t\t\t$this->model = $obj;\n\t\t\t$this->view = new View($this->model);\n\t\t\t$this->view_processor = new ViewProcessor($this->view);\n\t\t}", "title": "" }, { "docid": "833ec64f32f98e34ef100d094a3b429e", "score": "0.5746291", "text": "public function initializeView() {}", "title": "" }, { "docid": "833ec64f32f98e34ef100d094a3b429e", "score": "0.5746291", "text": "public function initializeView() {}", "title": "" } ]
00e0c3fd041c6ef062dec69b04f313c1
Returns the current status of a notification. Options: active, deactivated, future, expired.
[ { "docid": "585e05aa40e21403f37e8e18b69ba7c3", "score": "0.0", "text": "public function get_notification_status( $post_id ) {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->get_var( $wpdb->prepare( \"SELECT\n\t\t\tIF ( 'publish' != posts.post_status, 'pending', IF ( wpc_nf_deact.meta_value IS NOT NULL AND wpc_nf_deact.meta_value != '', 'deactivated', IF ( wpc_nf_edt.meta_value IS NOT NULL AND CONVERT( wpc_nf_edt.meta_value, DATETIME ) <= NOW(), 'expired', IF ( wpc_nf_sdt.meta_value IS NOT NULL AND CONVERT( wpc_nf_sdt.meta_value, DATETIME ) > NOW(), 'future', 'active' ) ) ) )\n\t\t\tFROM {$wpdb->posts} posts\n\t\t\tLEFT JOIN {$wpdb->postmeta} wpc_nf_deact ON wpc_nf_deact.post_id = posts.ID AND wpc_nf_deact.meta_key = 'wpc_notif_deactivate'\n\t\t\tLEFT JOIN {$wpdb->postmeta} wpc_nf_sdt ON wpc_nf_sdt.post_id = posts.ID AND wpc_nf_sdt.meta_key = 'wpc_notif_start_dt'\n\t\t\tLEFT JOIN {$wpdb->postmeta} wpc_nf_edt ON wpc_nf_edt.post_id = posts.ID AND wpc_nf_edt.meta_key = 'wpc_notif_end_dt'\n\t\t\tWHERE %d = posts.ID AND 'notification' = posts.post_type\", $post_id ) );\n\t}", "title": "" } ]
[ { "docid": "b90969403530480c021800fde4a00dc2", "score": "0.7058077", "text": "public function getStatus()\n {\n return $this->status->get();\n }", "title": "" }, { "docid": "63f31fc257b217de1c9dd3b81ac3009d", "score": "0.6829025", "text": "public function getStatus()\n {\n return $this->getValueObject('status');\n }", "title": "" }, { "docid": "79f8eab47fc348cb74e5a2477e2e320d", "score": "0.68099356", "text": "public function getStatus()\n {\n return $this->getData(self::STATUS_KEY);\n }", "title": "" }, { "docid": "4d8d0bb7460167465b80558472d8db41", "score": "0.6753885", "text": "function get_status()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_STATUS);\r\n }", "title": "" }, { "docid": "d50d19b2e72695e5540a94269a4afeb3", "score": "0.6719853", "text": "function get_status() {\n return $this->status;\n }", "title": "" }, { "docid": "31b51774d9f1caa32eff8ac39808071c", "score": "0.67164296", "text": "public function get_status()\n {\n return $this->get_default_property(self::PROPERTY_STATUS);\n }", "title": "" }, { "docid": "f00ed9b023dac3e3d50d2cf8165d3027", "score": "0.67146504", "text": "public function getStatus()\n {\n return $this->_coreRegistry->registry('status');\n }", "title": "" }, { "docid": "1584e6ae7ca2d3a2accbb051d871314a", "score": "0.6702462", "text": "public function getStatus()\n {\n return $this->command('ActionStatus')->get($this->id);\n }", "title": "" }, { "docid": "8719c942501d5312f4da850353ff393f", "score": "0.6675336", "text": "function get_status()\n {\n return $this->status;\n }", "title": "" }, { "docid": "f6cac7ae2dff5dd783b63e5590d3130b", "score": "0.6670556", "text": "public function get_status() {\n \n return $this->status;\n\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.66514033", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "83c027a1627befc6d9c49da03e9dbb97", "score": "0.6644149", "text": "public function get_status() {\n\n return $this->status;\n\n }", "title": "" }, { "docid": "ee59732b8fbf243f0bc0d856664547ad", "score": "0.6642401", "text": "public function getStatus() {\n return $this->status;\n }", "title": "" }, { "docid": "b862f34049b2889d54f5a470bb77d269", "score": "0.6639401", "text": "public function getStatus()\n {\n return $this->helper->getStatusLabel($this->_getEmail());\n }", "title": "" }, { "docid": "57e5d39c82f5ddbd0c2e99bede52cace", "score": "0.6625642", "text": "public function get_status() { return $this->status; }", "title": "" }, { "docid": "119d9bcfa874933298edcde0738b4177", "score": "0.662333", "text": "public function status ()\n {\n if (! isset ($this->_status))\n {\n $this->_status = $this->_make_status ();\n }\n return $this->_status;\n }", "title": "" }, { "docid": "223c6b5b9e2884daaf6465e0d37d6144", "score": "0.6619198", "text": "public function getStatus()\n\t{\n\t\t$status = parent::getStatus();\n\n\t\tif ($status == static::ENABLED && $this->postDate)\n\t\t{\n\t\t\t$currentTime = DateTimeHelper::currentTimeStamp();\n\t\t\t$postDate = $this->postDate->getTimestamp();\n\t\t\t$expiryDate = ($this->expiryDate ? $this->expiryDate->getTimestamp() : null);\n\n\t\t\tif ($postDate <= $currentTime && (!$expiryDate || $expiryDate > $currentTime))\n\t\t\t{\n\t\t\t\treturn static::LIVE;\n\t\t\t}\n\t\t\telse if ($postDate > $currentTime)\n\t\t\t{\n\t\t\t\treturn static::PENDING;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn static::EXPIRED;\n\t\t\t}\n\t\t}\n\n\t\treturn $status;\n\t}", "title": "" }, { "docid": "12060e6bcb73c1037ca607744731364a", "score": "0.6617933", "text": "public function getStatus() {\n return $this->status;\n }", "title": "" }, { "docid": "12060e6bcb73c1037ca607744731364a", "score": "0.6617933", "text": "public function getStatus() {\n return $this->status;\n }", "title": "" }, { "docid": "12060e6bcb73c1037ca607744731364a", "score": "0.6617933", "text": "public function getStatus() {\n return $this->status;\n }", "title": "" }, { "docid": "12060e6bcb73c1037ca607744731364a", "score": "0.6617933", "text": "public function getStatus() {\n return $this->status;\n }", "title": "" }, { "docid": "12060e6bcb73c1037ca607744731364a", "score": "0.6617933", "text": "public function getStatus() {\n return $this->status;\n }", "title": "" }, { "docid": "12060e6bcb73c1037ca607744731364a", "score": "0.6617933", "text": "public function getStatus() {\n return $this->status;\n }", "title": "" }, { "docid": "12060e6bcb73c1037ca607744731364a", "score": "0.6617933", "text": "public function getStatus() {\n return $this->status;\n }", "title": "" }, { "docid": "12060e6bcb73c1037ca607744731364a", "score": "0.6617933", "text": "public function getStatus() {\n return $this->status;\n }", "title": "" }, { "docid": "0b1578266f96f771cfeff85c6dd9d2c3", "score": "0.6603784", "text": "function getStatus()\n {\n return $this->status;\n }", "title": "" } ]
4d43a98bf90f7f0db838aef0a7848712
Search the notes and worktime for a date
[ { "docid": "65d526bf93f067df69a1b22df740ade9", "score": "0.6617404", "text": "public function searchWorktime($date) {\n\n //expolde the date string format D.M.Y\n $date = explode('.', $date);\n\n //set the start/end timestamps for the day\n $start = mktime(0, 0, 0, $date[1], $date[0], $date[2]);\n $end = mktime(23, 59, 59, $date[1], $date[0], $date[2]);\n\n $workNotesCustom = $this->ticketresponseRepository->findPerDate($start, $end, 2, $this->user);\n $workNotesInternal = $this->ticketresponseRepository->findPerDate($start, $end, 3, $this->user);\n\n $time['custom'] = 0;\n $time['internal'] = 0;\n if ($workNotesCustom[0]) {\n foreach ($workNotesCustom as $noteCustom) {\n\n $time['custom'] = $time['custom'] + $noteCustom->getTrTime();\n }\n }\n if ($workNotesInternal[0]) {\n foreach ($workNotesInternal as $noteInternal) {\n\n $time['internal'] = $time['internal'] + $noteInternal->getTrTime();\n }\n }\n $time['total'] = $time['custom'] + $time['internal'];\n return $time;\n }", "title": "" } ]
[ { "docid": "9ef8bab63c92f7fd2a126d9403a1d684", "score": "0.5859247", "text": "public function process_date() {\n\t\t$from = $this->security->xss_clean($this->input->post(\"from\"));\n\t\t$to = $this->security->xss_clean($this->input->post(\"to\"));\n\t\t$result = $this->lead->search_by_date($from,$to);\n\t\t$this->load->view(\"partials/search\", $result);\n\t}", "title": "" }, { "docid": "00164734433ae383a8f66e4f522f3a59", "score": "0.584485", "text": "function find_staff_movement_details_at_specific_date($link,$dt)\n{\n\t$sql='select * from staff_movement where staff_id=\\''.$_SESSION['login'].'\\'';\n\tif(!$result=mysqli_query($link,$sql)){return FALSE;}\n\t\n\twhile($ra=mysqli_fetch_assoc($result))\n\t{\t\t\n\t\tif(strlen($ra['to_date'])==0)\n\t\t{\n\t\t\t$tdate=date(\"Y-m-d\");\n\t\t\t//echo '<h1>'.$tdate.'</h1>';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$tdate=$ra['to_date'];\n\t\t}\n\n\t\tif(if_in_interval($dt,$ra['from_date'],$tdate)==0)\n\t\t{\n\t\t\treturn $ra;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "c37d4454ae7ed51afd296aa1ab16cc5f", "score": "0.5713616", "text": "function searchByDate($get, $post)\n{\n $date1 = $post['date1'];\n $date2 = $post['date2'];\n\n $tournamentsTools = new Utils\\TournamentsTools();\n $tournamentsInRangeDate = $tournamentsTools->getTournamentsInRangeDate($date1, $date2);\n echo $tournamentsInRangeDate;\n}", "title": "" }, { "docid": "4448e6cae80a2d07819c64fac471da31", "score": "0.5514888", "text": "public function whereDate();", "title": "" }, { "docid": "ff31d3008c95f661352b97c45cb3598f", "score": "0.5482762", "text": "public function search(Request $request) {\n $constraints = [\n 'workdate' => $request['hiredDate']\n ];\n\n $timelog = $this->doSearchingQuery($constraints);\n return view('system-mgmt/timelog/index', ['hours' => $timelog, 'searchingVals' => $constraints]);\n }", "title": "" }, { "docid": "492127888fb4bf6fa5cc63a527f2ead7", "score": "0.5423046", "text": "public function timeDayAction() {\n \n if ($this->request->hasArgument('date')) {\n $date = $this->request->getArgument('date');\n } else {\n $date = date(\"d.m.Y\");\n }\n $headlineDate = $date;\n //set the start/end timestamps for the day\n $date = explode('.', $date);\n $start = mktime(0, 0, 0, $date[1], $date[0], $date[2]);\n $end = mktime(23, 59, 59, $date[1], $date[0], $date[2]);\n\n $workNotesCustom = $this->ticketresponseRepository->findPerDate($start, $end, 2, $this->user);\n $workNotesInternal = $this->ticketresponseRepository->findPerDate($start, $end, 3, $this->user);\n\n $time['custom'] = 0;\n $time['internal'] = 0;\n if ($workNotesCustom[0]) {\n foreach ($workNotesCustom as $noteCustom) {\n $time['custom'] = $time['custom'] + $noteCustom->getTrTime();\n $this->calculateTime($noteCustom);\n }\n }\n if ($workNotesInternal[0]) {\n foreach ($workNotesInternal as $noteInternal) {\n\n $time['internal'] = $time['internal'] + $noteInternal->getTrTime();\n $this->calculateTime($noteInternal);\n }\n }\n $time['total'] = $time['custom'] + $time['internal'];\n\n\n //buid the date navigation\n $todayTimestamp = mktime(0, 0, 0, $date[1], $date[0], $date[2]);\n $yesterday = $todayTimestamp - 86400;\n $tomorrow = $todayTimestamp + 86400;\n \n $dayNavi['actual'] = $todayTimestamp;\n $dayNavi['next'] = date(\"d.m.Y\", $tomorrow);\n $dayNavi['prev'] = date(\"d.m.Y\", $yesterday);\n \n // \\TYPO3\\CMS\\Extbase\\Utility\\DebuggerUtility::var_dump($workNotesInternal);\n $this->view->assign('date', $headlineDate);\n $this->view->assign('workNotesInternal', $workNotesInternal);\n $this->view->assign('workNotesCustom', $workNotesCustom);\n $this->view->assign('dayNavi', $dayNavi);\n $this->view->assign('mainmenu', 2);\n $this->view->assign('topmenu', 4);\n }", "title": "" }, { "docid": "3b775443bcd7104cf1a1d9d0d45d6254", "score": "0.53702664", "text": "static function searchDate(int $microsite_id, string $date = null) {\n \n $datenow = Carbon::now(); \n $yesterday = $datenow->copy()->subDay();\n $dateyesterday = $yesterday->toDateString();\n $nextday = $datenow->copy()->addDay();\n $datenextday = $nextday->toDateString();\n \n $dateIni = $date;\n $date = (strcmp($date, $datenow->toDateString()) == -1 || is_null($date))? $datenow->toDateString():$date;\n \n if(is_null($dateIni) || strcmp($dateIni, $yesterday->toDateString()) == 0){ // SI ES LA FEHCA DE HOY BUSCAR HORARIOS DE MADRUGADA DE AYER\n \n $datetimeEnd = \"CONCAT('$date ', end_time)\"; \n /* turnos de Ayer en el calendario */\n $lastTurn = res_turn_calendar::fromMicrosite($microsite_id, $dateyesterday, $dateyesterday)->orderBy('start_date');\n $lastTurn = $lastTurn->whereRaw(\"start_time > end_time\")->whereRaw(\"$datetimeEnd >= ?\", [$datenow->toDateTimeString()]);\n $lastTurn = $lastTurn->get(); \n /* turnos de Ayer en eventos */\n $eventFree = ev_event::eventFreeActive($dateyesterday, $dateyesterday)->select('*', DB::raw(\"DATE_FORMAT(ev_event.datetime_event, '%Y-%m-%d') AS start_date\"));\n $eventFree = $eventFree->where('ms_microsite_id', $microsite_id)->whereHas('turn', function($query) use($date, $datenow){\n $datetimeEnd = \"CONCAT('$date ', hours_end)\";\n return $query->whereRaw(\"hours_ini > hours_end\")->whereRaw(\"$datetimeEnd >= ?\", [$datenow->toDateTimeString()]);\n })->with(['turn'])->whereRaw(\"DATE_FORMAT(ev_event.datetime_event, '%Y-%m-%d') = ?\", [$dateyesterday])->orderBy('datetime_event')->get();\n \n if($lastTurn->count() >0 || $eventFree->count() > 0){\n return $yesterday;\n }\n }\n \n // Buscar el turno en la fecha.\n $datetimeEnd = \"IF(end_time > start_time ,CONCAT('$date ', end_time), CONCAT('$datenextday ', end_time))\"; \n $turncalendar = res_turn_calendar::fromMicrosite($microsite_id, $date, $date)->select(\"*\", DB::raw(\"$datetimeEnd AS datetime_end\"), DB::raw(\"'$date' AS start_date\"))->whereRaw(\"$datetimeEnd >= ?\",[$datenow->toDateTimeString()])->orderBy('datetime_end')->first();\n \n if(!$turncalendar){\n // Buscar el turno mas proximos.\n $turncalendar = res_turn_calendar::fromMicrositeActives($microsite_id, $date)->orderBy('start_date')->first(); \n } \n // Buscar el turno de eventos en la fecha.\n $eventFree = ev_event::eventFreeActive($date, $date)->select('*', DB::raw(\"DATE_FORMAT(ev_event.datetime_event, '%Y-%m-%d') AS start_date\"))->where('ms_microsite_id', $microsite_id)->with('turn')->orderBy('datetime_event')->first();\n if(!$eventFree){\n // Buscar el turno de eventos mas proximos.\n $eventFree = ev_event::eventFreeActive($date)->select('*', DB::raw(\"DATE_FORMAT(ev_event.datetime_event, '%Y-%m-%d') AS start_date\"))->where('ms_microsite_id', $microsite_id)->with('turn')->orderBy('datetime_event')->first();\n }\n \n if($turncalendar || $eventFree){\n $dateSearch = Carbon::parse($date);\n \n if($turncalendar && $eventFree){\n $dateCalendar = Carbon::parse($turncalendar->start_date);\n $diffCal = $dateSearch->diffInDays($dateCalendar); \n $dateEvent = Carbon::parse($eventFree->start_date);\n $diffEv = $dateSearch->diffInDays($dateEvent);\n \n if($diffCal <= $diffEv){\n return $dateCalendar;\n }else{\n return $dateEvent;\n }\n \n }else if($turncalendar){\n return Carbon::parse($turncalendar->start_date);\n }else if($eventFree){\n return Carbon::parse($eventFree->start_date);\n } \n// return [$turncalendar, $eventFree, $dateCalendar, $dateEvent, $startDateTurnCalendar, $startDateTurnEvent];\n } \n return false;\n }", "title": "" }, { "docid": "95a341e23d42fb3355a806b37fc4be13", "score": "0.5274788", "text": "public function whereDay();", "title": "" }, { "docid": "2261169cab701d987a972c1bf7f20e94", "score": "0.5256584", "text": "protected function workDial($date) {\n\t\t$work = Work::find()->select('id')\n\t\t\t\t->andWhere(['status' => [Work::STATUS_TODO, Work::STATUS_BUSY]]);\n\t\tif($date)\n\t\t\t$work->andWhere($date);\n\t\t\n\t\t$work_lines = new Query();\n\t\t$work_lines->from(['work_line', 'document_line'])\n\t\t\t\t\t->select([\n\t\t\t\t\t\t\t'total_count' => 'sum(document_line.quantity)',\n\t\t\t\t\t\t\t'status' => 'work_line.status',\n\t\t\t\t\t\t\t'status_order' => 'ELT(FIELD(work_line.status,\"TODO\", \"BUSY\", \"WARN\", \"DONE\"),1,2,3,4)'\n\t\t\t\t\t\t])// Wow.\n\t\t\t\t\t->andWhere('work_line.document_line_id = document_line.id')\n\t\t\t\t\t->andWhere(['work_id' => $work])\n\t\t\t\t\t->groupBy('work_line.status')\n\t\t\t\t\t->orderBy('status_order');\n\t\t\t\t\t\t\n\t\treturn $work_lines;\t\t\n\t}", "title": "" }, { "docid": "f3fa51f10a02835753408e5c5dc3e146", "score": "0.5227831", "text": "public function searchByDate(string $f1,$f2){\n\n$date1= new DateTime($f1);\n$date2= new DateTime($f2);\n$diff = $date1->diff($date2);\n$total= $diff->days;\n if ($total<=31)\n {\n $fechaComoEntero = strtotime($date1);\n $ano=date(\"Y\",$fechaComoEntero);\n $mes=date(\"m\",$fechaComoEntero);\n $dia=date(\"d\",$fechaComoEntero);\n $val=dia.\"-\".mes.\"-\".ano;\n $fechaA=date($val);\n $dia=5;\n $v='+'.$dia.' '.'day';\n $nuevaFecha = date(\"d-m-Y\", strtotime($fechaA,\"+ 5 days\"));\n\n\n return $nuevaFecha;\n }\n\n}", "title": "" }, { "docid": "8fd0654e2f4cdf7324d295abec37354c", "score": "0.5217072", "text": "public function get_search_date($date){\n\t\t$expl_date = explode('/', $date);\n\t\treturn $expl_date[2].'-'.$expl_date[1];\n\t}", "title": "" }, { "docid": "c5b423fec3d14291ccb5aa212be8e2a1", "score": "0.50903773", "text": "public function search($date) {\n\n\t\t\t$q = 'SELECT a.*,\n\t\t\t\t\tp.patient_id,\n\t\t\t\t\tp.patient_id_number,\n\t\t\t\t\tCONCAT(p.patient_name, \" \", p.patient_last_name) AS patient_fullname,\n\t\t\t\t\ts.store_id,\n\t\t\t\t\ts.store_name\n\t\t\t\tFROM\n\t\t\t\t\tnunu_agenda AS a,\n\t\t\t\t\tnunu_patients AS p,\n\t\t\t\t\tnunu_stores AS s\n\t\t\t\tWHERE\n\t\t\t\t\ta.agenda_patient_id = p.patient_id AND\n\t\t\t\t\ta.agenda_store = s.store_id AND\n\t\t\t\t\ta.agenda_date = \"' . $date . '\"\n\t\t\t\tORDER BY\n\t\t\t\t\ta.agenda_time ASC;'\n\t\t\t;\n\n\t\t\t$query = $this->db->query($q);\n\n\t\t\treturn $query->result_array();\n\t\t}", "title": "" }, { "docid": "90c19c541173106ed01c9fe327454c67", "score": "0.508278", "text": "public function recieveDate($date)\n { \n $row = $this->getTimetables();\n foreach($row as $res)\n {\n if($res['date'] == $date)\n { \n $date1 = $res['date'];\n $newDate = date(\"l, F d\", strtotime($date1));\n echo '<h2>'.$newDate.'</h2>'; \n break; \n }\n }\n return $newDate;\n }", "title": "" }, { "docid": "4fa615e6d6786cc765202471e8045a6f", "score": "0.50411564", "text": "public function whereTime();", "title": "" }, { "docid": "5d3c89cb3ae2ae1842df851fcbf23579", "score": "0.49873218", "text": "public function workingDay($time)\n {\n return $this->workingDays->first()->work->$time;\n }", "title": "" }, { "docid": "d88efea1145d20cb6108e66db2fbf05d", "score": "0.49772874", "text": "public function findDate()\n {\n $matches = array();\n $translate = array('Januar'=>'01.', 'Februar'=>'02.','März'=>'03.','April'=>'04.','Mai'=>'05.','Juni'=>'06.','Juli'=>'07.','August'=>'08.','September'=>'09.','Oktober'=>'10.','November'=>'11.','Dezember'=>'12.');\n\n //Findet Muster wie Bern, 20.12.2012\n if (preg_match(\"/([a-z]*,)([\\\\n ])([0-3][0-9][\\\\.-][01][0-9][\\\\.-][12]?[0-9]?[0-9]{2})([ \\\\n])/uis\", $this->_documentText, $matches) > 0) {\n if (DEBUG_LEVEL == 1)\n echo \"DATUM: $matches[3]\\n\";\n $this->_documentDate = date('Y-m-d H:i:s', strtotime($matches[3]));\n return $this;\n }\n\n //Findet Muster wie Luzern, 30. Juli 2012\n if (preg_match(\"/([a-z]*, )([0-3][0-9][\\\\.,-] (Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember) [12]?[0-9]?[0-9]{2})/uis\", $this->_documentText, $matches) > 0) {\n $matches[2] = strtr($matches[2],',','.');\n $matches[2] = strtr($matches[2], $translate);\n $matches[2] = str_replace(' ', '', $matches[2]);\n if (DEBUG_LEVEL == 1)\n echo \"DATUM: $matches[2]\\n\";\n $this->_documentDate = date('Y-m-d H:i:s', strtotime($matches[2]));\n return $this;\n }\n\n //Findet Muster wie ***datum: 01.01.2012\n if (preg_match(\"/(datum: *)([\\\\n ])([0-3][0-9][\\\\.,-] ?[01][0-9][\\\\.,-]([12][0-9][0-9]{2}|[1-9][0-9]))([ \\\\n])/uis\", $this->_documentText, $matches) >0) {\n $matches[3] = strtr($matches[3],',','.');\n if (DEBUG_LEVEL == 1)\n echo \"DATUM: $matches[3]\\n\";\n $this->_documentDate = date('Y-m-d H:i:s', strtotime($matches[3]));\n return $this;\n }\n\n //Findet Muster wie ***datum: 30. Juli 2012\n if (preg_match(\"/(datum: *)([\\\\n ])([0-3][0-9][\\\\.,-] (Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember) [12]?[0-9]?[0-9]{2})/uis\", $this->_documentText, $matches) > 0) {\n $matches[3] = strtr($matches[3],',','.');\n $matches[3] = strtr($matches[3], $translate);\n $matches[3] = str_replace(' ', '', $matches[3]);\n if (DEBUG_LEVEL == 1)\n echo \"DATUM: $matches[3]\\n\";\n $this->_documentDate = date('Y-m-d H:i:s', strtotime($matches[3]));\n return $this;\n }\n\n\n //Findet generelles Datumsmuster\n if (preg_match(\"/([ \\\\n])([0-3][0-9][\\\\.,-][0-1][0-9][\\\\.,-][12]?[0-9]?[0-9]{2})([ \\\\n])/ui\", $this->_documentText, $matches) > 0) {\n $matches[2] = strtr($matches[2],',','.');\n if (DEBUG_LEVEL == 1)\n echo \"DATUM: $matches[2]\\n\";\n $this->_documentDate = date('Y-m-d H:i:s', strtotime(trim($matches[2])));\n return $this;\n }\n\n //Falls kein Datum gefunden wurde, wird das aktuelle Datum gesetzt\n $this->_documentDate = date('Y-m-d H:i:s', time());\n if (DEBUG_LEVEL == 1)\n echo \"DATUM: \" . date('d.m.Y') . \"\\n\";\n return $this;\n }", "title": "" }, { "docid": "ea48f4472b342cc0aef5cddcc6a797f3", "score": "0.4912122", "text": "function get_work_desired_search() {\n $work_desired = array(\n\t\t'0' => elgg_echo('edujobs:search:select'),\n\t\t'edujobs:add:fulltime'=>elgg_echo('edujobs:add:fulltime'),\n\t\t'edujobs:add:parttime'=>elgg_echo('edujobs:add:parttime'),\n );\n \n return $work_desired;\n}", "title": "" }, { "docid": "dbf9731f53ea2486ec3c6a3c54d20cd8", "score": "0.49092767", "text": "function search( $first_name = null, $last_name = null, $department_id = null, $unit_id = null, $datestamp_start = null, $datestamp_end = null, $code = null, $attendance_issue = null, $gate_code = null, $employee_confirmed = null, $superior_confirmed = null\n )\n {\n global $prefix;\n $start_time = \" 00:00:00\";\n $end_time = \" 23:59:59\";\n if ( is_null( $datestamp_start ) || empty( $datestamp_start ) )\n {\n $start_time = '';\n }\n if ( is_null( $datestamp_end ) || empty( $datestamp_end ) )\n {\n $end_time = '';\n }\n return $this->search_advanced\n (\n array\n (\n 'first_name' => array( 'table' => $prefix . \"employee\", 'label' => 'first_name', 'value' => '' ),\n 'last_name' => array( 'table' => $prefix . \"employee\", 'label' => 'last_name', 'value' => '' ),\n 'department_id' => array( 'table' => $prefix . \"department\", 'label' => 'name', 'value' => array( array( 'label' => 'department_id', 'attachment' => 'and', 'operator' => '=', 'value' => $department_id ) ) ),\n 'unit_id' => array( 'table' => $prefix . \"unit\", 'label' => 'name', 'value' => array( array( 'label' => 'unit_id', 'attachment' => 'and', 'operator' => '=', 'value' => $unit_id ) ) ),\n 'timestamp' => array( 'table' => $prefix . 'attendance', 'label' => 'timestamp', 'value' => array( array( 'label' => 'timestamp', 'attachment' => 'and', 'operator' => '>=', 'value' => $datestamp_start . $start_time ), array( 'label' => 'timestamp', 'attachment' => 'and', 'operator' => '<=', 'value' => $datestamp_end . $end_time ) ) ),\n 'code' => $code,\n 'attendance_string1' => $attendance_issue,\n 'gate_code' => $gate_code,\n 'employee_confirmed' => $employee_confirmed,\n 'employee_comments' => '',\n 'superior_confirmed' => $superior_confirmed,\n 'superior_comments' => '',\n 'employee_id' => array( 'table' => $prefix . 'attendance', 'label' => 'employee_id', 'value' => array( array( 'label' => 'employee_id', 'attachment' => 'and', 'operator' => '=', 'value' => $last_name ), array( 'label' => 'employee_id', 'attachment' => 'and', 'operator' => '=', 'value' => $first_name ) ) ),\n $this->id => ''\n ), array( 'join_type' => 1, 'enable_where' => 1, 'orderBy' => $prefix . 'unit.name ASC, ' . $prefix . 'department.name ASC, ' . $prefix . 'employee.first_name ASC, ' . $prefix . 'employee.last_name ASC, ' . $prefix . 'attendance.timestamp ASC ' )\n );\n }", "title": "" }, { "docid": "c6341de749980ea6e0dd0bd34ca2d140", "score": "0.49045223", "text": "function dbSearchNews($keywords,$startDate, $endDate)\n{\n global $glbDbName;\n $db = new SQLite3($glbDbName, SQLITE3_OPEN_CREATE | SQLITE3_OPEN_READWRITE);\n // $statement = $db->prepare('SELECT * FROM news WHERE title LIKE \"%:title%\" AND time BETWEEN DATE (\":startDate\") AND DATE(\":endDate\") ');\n\n $sqlStatment = 'SELECT * FROM news WHERE ((title LIKE \"%%%s%%\") OR (content LIKE \"%%%s%%\")) AND time BETWEEN DATE (\"%s\") AND DATE(\"%s\")';\n $sqlStatment = sprintf($sqlStatment,$keywords,$keywords, $startDate,$endDate);\n //return $sqlStatment;\n\n $statement = $db->prepare($sqlStatment); // AND time BETWEEN DATE (\":startDate\") AND DATE(\":endDate\") ');\n\n //$statement = $db->prepare('SELECT * FROM news WHERE title LIKE \"%%:title%%\"'); // AND time BETWEEN DATE (\":startDate\") AND DATE(\":endDate\") ');\n\n //$statement->bindValue(':title', '3');\n // $statement->bindValue(':startDate', $startDate);\n // $statement->bindValue(':endDate', $endDate);\n $result = $statement->execute();\n $newsList = array();\n while($row = $result->fetchArray()) {\n $news = new News($row[\"id\"],$row[\"title\"],$row[\"time\"],$row[\"content\"],$row[\"userId\"],$row[\"author\"]);\n array_push($newsList,$news);\n }\n $db->close();\n return $newsList;\n}", "title": "" }, { "docid": "157da5f47380b4e04b1b0c5478781115", "score": "0.4892676", "text": "protected function logSearchTimes()\n {\n $lines = array();\n foreach ($this->time as $time) {\n $microTime = explode(' ', $time['microtime']);\n $lines[] = $time['name'] . ':' . date('Y-m-d H:i:s', $microTime[1]) . ' msec ' . $microTime[0];\n }\n $this->logRepository->log(implode(chr(10), $lines), time());\n }", "title": "" }, { "docid": "9c39fae3590d539147e3c809fa211951", "score": "0.48749697", "text": "function search_by_date_query( $args ) {\n \n if( adverts_request( 'posted_range' ) ) {\n \n $date_query = null;\n $ct = current_time( \"timestamp\", 1 );\n \n switch( adverts_request( 'posted_range' ) ) {\n case \"today\":\n $date_query = array( \n \"after\" => date(\"Y-m-d 00:00:00\", current_time( \"timestamp\", 1 ) )\n );\n break;\n case \"since-yesterday\":\n $date_query = array( \n \"after\" => date(\"Y-m-d 00:00:00\", strtotime( \"yesterday\", $ct ) )\n );\n break;\n case \"less-than-7-days-ago\":\n $date_query = array( \n \"after\" => date(\"Y-m-d 00:00:00\", strtotime( \"today -7 days\", $ct ) )\n );\n break;\n case \"less-than-30-days-ago\":\n $date_query = array( \n \"after\" => date(\"Y-m-d 00:00:00\", strtotime( \"today -30 days\", $ct ) )\n );\n break;\n \n }\n \n if($date_query) {\n $args[\"date_query\"] = $date_query;\n }\n }\n \n return $args;\n}", "title": "" }, { "docid": "0045e1011a98958b14af58638f8e7d79", "score": "0.4868583", "text": "function getByScvngrTimestamp($date_str) {\r\n\t\t$date_str = preg_replace('/\\.[^.]+$/','', $date_str);\t\t\r\n\t\t$date = date('Y-m-d H:i:s', strtotime($date_str));\t// convert to date object for search\r\n\t\t\r\n\t\treturn $this->getByDate($date);\t\r\n\t}", "title": "" }, { "docid": "2c791035e39d0a96381bc0fc55cd046b", "score": "0.48348102", "text": "function getDates();", "title": "" }, { "docid": "6473e109a898a95383f70a19f2e3ef9c", "score": "0.4827504", "text": "public function getSearchTime() {\n\t\treturn $this->searchTime;\n\t}", "title": "" }, { "docid": "82fe0c9ecae4ebb895fc1dae90289057", "score": "0.4818222", "text": "function getPromotionDetailByDate($room_type_id, $date, $promotion_details){\r\n\r\n $promotion_detail = '';\r\n\r\n foreach ($promotion_details as $value) {\r\n\r\n $value['start_date'] = date('Y-m-d', strtotime($value['start_date']));\r\n\r\n $value['start_date'] = $value['start_date'] == ''? $value['start_date'] : date('Y-m-d', strtotime($value['start_date']));\r\n\r\n if ($room_type_id == $value['room_type_id'] && ($date >= $value['start_date']) && ($value['end_date'] == '' || $date <= $value['end_date'])){\r\n\r\n if ($value['is_specific_dates'] == 0 || in_array($date, $value['specific_dates'])){\r\n\r\n $promotion_detail = $value;\r\n\r\n break;\r\n\r\n }\r\n\r\n }\r\n }\r\n\r\n\r\n return $promotion_detail;\r\n }", "title": "" }, { "docid": "6003c3f98134bbfc6a9404b908c23df0", "score": "0.48133993", "text": "public function search_by_date($date, $state = 'published') {\n//\t\tKohana::$log->add(Kohana::DEBUG,\n//\t\t\t'Executing Model_Blog_Search::search_by_date');\n\n\t\t// Get date ranges\n\t\t$data = explode('/', $date, 2);\n\t\tif (isset($data[1]) AND ! empty($data[1]))\n\t\t{\n\t\t\t$begin = strtotime($data[0].'-'.$data[1].'-01');\n\t\t\t$end = strtotime('+1 month', $begin);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$begin = strtotime($data[0].'-01-01');\n\t\t\t$end = strtotime('+1 year', $begin);\n\t\t}\n\n\t\t$query = DB::select()->where('state', '=', $state)\n\t\t\t->where('date', '>=', $begin)\n\t\t\t->where('date', '<', $end)\n\t\t\t->order_by('id', 'DESC')\n\t\t\t->order_by('date', 'DESC');\n\t\t$limit = $this->limit;\n\n\t\t$this->total = DB::select(DB::expr('COUNT(*) AS count'))\n\t\t\t->from('articles')\n\t\t\t->where('state', '=', $state)\n\t\t\t->where('date', '>=', $begin)\n\t\t\t->where('date', '<', $end)\n\t\t\t->execute()->get('count');\n\n\t\t$this->pagination->setup(array(\n\t\t\t'total_items' => $this->total,\n\t\t\t'items_per_page' => $limit,\n\t\t));\n\t\t$query->offset($this->pagination->offset);\n\n\t\treturn $this->load($query, $limit);\n\t}", "title": "" }, { "docid": "9fad33f584d2b82739a1315cf159df0c", "score": "0.4802783", "text": "function findnextworkingday($created_date,$casedata=NULL)\n\t{\n\t\t$res=$this->Casesmodel->get_holiday(@$created_date,@$casedata['country_id'],@$casedata['zone_id'],@$casedata['center_id']);\n\t\t$holiday_arr = array();\n\t\tif(!empty($res))\n\t\t{\n\t\t\tforeach($res as $k=>$v)\n\t\t\t$holiday_arr[] = $v['holiday_date'];\n\t\t}\n\t\t$holiday_arr = array_unique($holiday_arr);\n\t\t\n\t\t$weekOFarr = $this->Commonfunmodel->weeklyoff(@$casedata['country_id'],@$casedata['zone_id'],@$casedata['center_id'],@$casedata['subcenter_id']);\n\t\t$day_str = array();\n\t\tif(!empty($weekOFarr))\n\t\t{\n\t\t\t$week_days = lang('week_days_arr');\n\t\t\tforeach($weekOFarr as $k=>$v)\n\t\t\t{\n\t\t\t\t$s = array_search($v,$week_days);\n\t\t\t\t$day_str[] = $s;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(array_search(date(\"N\",strtotime($nextday)),$day_str)!==false || array_search(date(\"Y-m-d\",strtotime($nextday)),$holiday_arr)!==false)\n\t\t{\n\t\t\t$this->findnextworkingday($nextday,$casedata);\n\t\t}else{\n\t\t\t\n\t\t\t//echo $nextday;die();\n\t\t\treturn $nextday;\n\t\t}\n\t\t//echo '<pre>';print_r($holiday_arr);print_r($day_str);die();\n\t}", "title": "" }, { "docid": "7136e91202206583d9bad6b47eff8f42", "score": "0.48014498", "text": "function rsvpmaker_calendar_where($where) {\n\nglobal $startday;\n\nif(isset($_REQUEST[\"cm\"]))\n\t$d = \"'\".$_REQUEST[\"cy\"].\"-\".$_REQUEST[\"cm\"].\"-01'\";\nelseif(isset($startday) && $startday)\n\t{\n\t\t$t = strtotime($startday);\n\t\t$d = \"'\".date('Y-m-d',$t).\"'\";\n\t}\nelseif(isset($_GET[\"startday\"]))\n\t{\n\t\t$t = strtotime($_GET[\"startday\"]);\n\t\t$d = \"'\".date('Y-m-d',$t).\"'\";\n\t}\nelse\n\t$d = ' CURDATE() ';\n\n\treturn $where . \" AND meta_value > \".$d.' AND meta_value < DATE_ADD('.$d.', INTERVAL 5 WEEK) ';\n}", "title": "" }, { "docid": "e18342de2af5a10210ca321a58f7858c", "score": "0.47877413", "text": "public function findOpen() {\n $sqlDate = date(\"Y-m-d\", strtotime(\"-7 days\"));\n $sql = $this->baseSql.\" and vih.whsedate >= '$sqlDate' \";\n $location = $this->eMgr->createQuery($sql)->getArrayResult();\n return $location;\n }", "title": "" }, { "docid": "5ddc31747da621c58b741017deb3e5ad", "score": "0.4772384", "text": "public function search_notes_page(Page $page) {\n\t\t$html = '<form method=\"GET\" action=\"'.make_link(\"post/list/note=\").'\">\n\t\t<input placeholder=\"Search Notes\" type=\"text\" name=\"search\"/>\n\t\t<input type=\"submit\" style=\"display: none;\" value=\"Find\"/>\n\t\t</form>';\n\t\n\t\t$page->set_title(html_escape(\"Search Note\"));\n\t\t$page->set_heading(html_escape(\"Search Note\"));\n $page->add_block(new Block(\"Search Note\", $html, \"main\", 10));\n\t}", "title": "" }, { "docid": "3c28a7e1166c2587ad2ddcb5e5da9151", "score": "0.47616702", "text": "public function setSearchTime($time) {\n\t\tif (!isset($time)) {return;}\n\t\t$this->searchTime = $time;\n//\t\t$this->getBy = self::GET_BY_TIME;\n\t}", "title": "" }, { "docid": "4dc2fc8d560705fcc2fa6134935aff43", "score": "0.47615525", "text": "function ListQuery($searchObj, $orderBy, $howOrderBy, $masterTable, $masterKeysReq, $selectedRecord, $pageSize, $myPage, &$pageObject)\n{\n\n\t\t$dateStart = array( $_SESSION[\"yr\"], $_SESSION[\"mon\"], $_SESSION[\"days\"], 0, 0, 0 );\n$dateEnd = calendar_adddays($dateStart, 1);\n$strWhereClause = calendar_getSearchWhereClause($pageObject);\n$rawevents = calendar_getListOfEventsInRange( $dateStart, $dateEnd, $strWhereClause, $pageObject->connection );\n$events = calendar_sortEvents($dateStart, $dateEnd, $rawevents );\n$DayKey = date2db( $dateStart );\n$event = $events[$DayKey];\nreturn $event;\n;\t\t\n}", "title": "" }, { "docid": "eaf3c94cf9f739bff04ad7065c7c636d", "score": "0.47495213", "text": "public function search2($date, $team)\n {\n $data = $date;\n $equip = $team;\n\n if ($equip == 0)\n {\n $timelogs = Timelog::join('workers', 'timelogs.dni', '=', 'workers.dni')\n ->where('timelogs.data', $data)\n ->select('timelogs.*', 'workers.nom', 'workers.cognoms', 'workers.id as idworker')\n ->simplePaginate(10);\n }\n else\n {\n $timelogs = Timelog::join('workers', 'timelogs.dni', '=', 'workers.dni')\n ->where('workers.equip', $equip)\n ->where('timelogs.data', $data)\n ->select('timelogs.*', 'workers.nom', 'workers.cognoms', 'workers.id as idworker')\n ->simplePaginate(10);\n }\n return view('timelogs.teamedit', compact('timelogs', 'data', 'equip'));\n }", "title": "" }, { "docid": "6265fc4f482823a25f2f890d166df5ee", "score": "0.47475517", "text": "private function coWorkerHasLoggedTimeEntryToday(Arbeitszeit $workTimeObj){\n\t\t\t# AND IF SO, INFORM HIM THAT HE CAN ONLY LOG HIS TIME ENTRY ONCE PER DAY....\n\t\t\t$conn = $this->entityManager->getConnection();\n\t\t\t$timeLogDate = $workTimeObj->getArbeitszeitDate()->format(\"Y-m-d\");\n\t\t\t$sql = \" SELECT COUNT(`abz`.`Arbeitszeit_id`) FROM `Arbeitszeit` AS `abz` \";\n\t\t\t$sql .= \" WHERE DATE(`abz`.`Arbeitszeit_date`) =:WK_DATE \";\n\t\t\t$sql .= \" AND `abz`.`Arbeitszeit_ma` =:WK_ID \";\n\t\t\t$statement = $conn->prepare($sql);\n\t\t\t$statement->execute([':WK_DATE'=>$timeLogDate, ':WK_ID'=>$workTimeObj->getArbeitszeitMa()]);\n\t\t\t$result = $statement->fetchColumn();\n\t\t\treturn (int)$result;\n\t\t}", "title": "" }, { "docid": "28debbc01551f7405f1ed4274f2f26e4", "score": "0.47440508", "text": "function getByDate($date) {\r\n\t\t$result = $this->find('first', \r\n\t\t\tarray('conditions' => array(\r\n \t\t\t\t\"Week.start_date <\" => $date,\r\n \t\t\t\t\"Week.end_date >\" => $date\r\n\t\t\t)\r\n\t\t));\r\n\t\t\r\n\t\t$this->set($result);\r\n\t\treturn $result;\t\t\t\r\n\t}", "title": "" }, { "docid": "3c114a395c88ec5413dbe03b688dd22f", "score": "0.473958", "text": "public static function getSearchDate($searchField,$params){\n $searchDate = '<li>';\n $searchDate .= \"<label>{$searchField['title']}:</label>\";\n $searchDate .= '<input type=\"date\" name=\"'.$searchField['name'].'\" value=\"'.$params[$searchField['name']].'\" readonly=\"true\"/>';\n $searchDate .= '</li>';\n return $searchDate;\n }", "title": "" }, { "docid": "e8102b46ad7d0aa4fe158bb8267e5a3e", "score": "0.47248557", "text": "function getToDoWeekDates($stStartDate, $stEndDate,$strDaySelected) {\r\n\t\r\n\tif($stStartDate && $stEndDate && $strDaySelected) {\r\n\t\t\r\n\t\t// explode both dates\r\n\t\t$arStartDate = explode(\"-\",$stStartDate);\r\n\t\t$arEndDate = explode(\"-\",$stEndDate);\r\n\r\n\t\t$m = $arStartDate[1];\r\n\t\t$d = $arStartDate[2];\r\n\t\t$yy = $arStartDate[0];\r\n\r\n\t \t$m1 = $arEndDate[1];\r\n\t \t$d1 = $arEndDate[2];\r\n\t \t$yy1 = $arEndDate[0];\r\n\r\n\t\t// convert to timestamp to get diff. b/w dates\r\n\t\t$stDate = mktime(0,0,0,$m,$d,$yy) ;\r\n\t\t$enDate = mktime(0,0,0,$m1,$d1,$yy1) ;\r\n\r\n\t\t$dateDiff = $enDate - $stDate;\r\n\t\t$fullDays = floor($dateDiff/(60*60*24));\r\n\t\r\n\t\t//get the date ($nxtDay) as per user selection day strDaySelected and exit from the loop.\t\t\r\n\t\tfor($j=0;$j<7;$j++) {\r\n\t\t\t$jd = cal_to_jd(CAL_GREGORIAN,$m,$d+$j,$yy);\t\r\n\t\t\t$strDay =jddayofweek($jd,1);\t\t\r\n\t\t\tif($strDay == $strDaySelected) {\r\n\t\t\t\t$nxtDay = date(\"Y-m-d\",mktime(0, 0, 0, $m,$d+$j,$yy));\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} // for\r\n\t\t\r\n\t\t// explode again to get other dates in array by adding 7 more days\t\t\r\n\t\t$arNewDate = explode(\"-\",$nxtDay);\t\t\r\n\t\t\t\r\n\t\tfor($k=0;$k<$fullDays;$k=$k+7) {\t\t\t\t\t\t\r\n\t\t\t$stMKTime = mktime(0,0,0,$arNewDate[1],$arNewDate[2]+$k,$arNewDate[0]);\r\n\t\t\t$stNewDate = date(\"Y-m-d\",$stMKTime);\r\n\t\t\t// check that the date we need to get b/w start and end dates.\r\n\t\t\tif($stMKTime < $enDate) \r\n\t\t\t\t$stDates[] = $stNewDate;\r\n\t\t}\r\n\t\t\r\n\t\t// return all dates\r\n\t\treturn $stDates;\r\n\t}\r\n}", "title": "" }, { "docid": "a88c70dea4a95e70a2c333b48e2abdb4", "score": "0.47242558", "text": "function findSpecificTweets($searchWord) {\r\n global $connDB;\r\n $start=microtime(TRUE);\r\n $sql=\" SELECT tweetText FROM tweets\r\n JOIN users on tweets.userId = users.userId\r\n WHERE tweetText LIKE '%\".$searchWord.\"%'\r\n AND (tweets.postedDate BETWEEN '2003-01-01 00:00:00' AND '2010-12-31 23:59:59')\r\n AND (Users.signupDate BETWEEN '2000-01-01 00:00:00' AND '2000-12-31 23:59:59')\";\r\n\r\n $result=$connDB->query($sql);\r\n $end=microtime(TRUE);\r\n $timeNeeded=$end-$start;\r\n\r\n if ($result->num_rows > 0) {\r\n while($row = $result->fetch_assoc()) {\r\n echo $row[\"tweetText\"] . \"<br />\" ;\r\n }\r\n }\r\nreturn round($timeNeeded,7);\r\n}", "title": "" }, { "docid": "63658888b928577fa7ba8d2a830fef40", "score": "0.47137594", "text": "function res2search($resObj, $linkonly=true, $title='') {\n if(!$resObj) return ''; \n //$in = escape_uri($resObj->num_days ? strip_time($resObj->checkin) : $resObj->checkin);\n //$out = escape_uri($resObj->num_days ? strip_time($resObj->checkout) : $resObj->checkout);\n $in = escape_uri(strip_time($resObj->checkin));\n $out = escape_uri(strip_time($resObj->checkout));\n\n\n if($resObj->event_type == EVENT_TYPE_TICKET) { // this is a ticket, show ticket page\n $qs = \"t=$resObj->property_type&id=$resObj->apt_id&start=$in&ng=$resObj->num_guests\";\n if($agent_id = $resObj->agent_id) $qs .= \"&agid=$agent_id\";\n\n $link = get_page_link(PAGE_TICKET).'?'.$qs;\n \n } else {\n $qs = \"t=$resObj->property_type&in=$in&ng=$resObj->num_guests\";\n if($agent_id = $resObj->agent_id) $qs .= \"&agid=$agent_id\";\n \n if($catering_id = $resObj->catering_id) $qs .= \"&catering=$catering_id\";\n \n if($sn = $resObj->sn) $qs .= \"&sn=$sn\"; // search was for one particular property\n else $qs .= \"&search=Search\"; // search all\n \n if($resObj->num_days > 0) {\n $nd = $resObj->num_days;\n $qs .= \"&nd=$resObj->num_days&out=$out\";\n } else if($resObj->num_hours > 0) {\n $in_time = strip_date($resObj->checkin);\n $nh = clean_num($resObj->num_hours);\n $qs .= \"&nh=$nh&time=\".hm2dectime($in_time);\n }\n $city_dir = city_dir($resObj->city_id);\n\n $property_link = get_page_link(property_page_type($resObj->property_type), true, '', '', $city_dir);\n //echo(\"city_dir=$city_dir<br>\");\n //$property_link = site_page_link($_SESSION['siteObj'], property_page_type($resObj->property_type)); // property_page_type($resObj->property_type), true, '', '', $city_dir);\n\n if(!$property_link) return '';\n $link = $property_link.'?'.$qs;\n }\n \n if($linkonly) return $link; // link only - no html\n \n // return full link\n if(!$title) $title = phrase('search', CAPITALIZE);\n return html_link($link, $title);\n}", "title": "" }, { "docid": "af7b117996fd71c47cadeea085886527", "score": "0.47089222", "text": "public function findEventsByDate($date);", "title": "" }, { "docid": "0247e7be99c165986d0d8f0f01de820c", "score": "0.4702466", "text": "public function getDateMatch()\n {\n return $this->dateMatch;\n }", "title": "" }, { "docid": "a29a369c35e37270ad1d7d0a6b5f3f2c", "score": "0.46871704", "text": "public function load_by_date($date) {\n//\t\tKohana::$log->add(Kohana::DEBUG,\n//\t\t\t'Executing Model_Blog_Search::load_by_date');\n\n\t\tlist($year, $month, $day) = explode('/', $date, 3);\n\t\t$begin = strtotime($year.'-'.$month.'-'.$day);\n\t\t$end = strtotime('+1 day', $begin);\n\n\t\t$query = DB::select()\n\t\t\t->where('date', '>=', $begin)\n\t\t\t->where('date', '<', $end);\n\n\t\treturn $this->load($query, 1);\n\t}", "title": "" }, { "docid": "eb718ace60dfe346d2b23d620cacdb20", "score": "0.4681049", "text": "function get_related_dates($projectname, $basedate)\n{\n include(\"cdash/config.php\");\n require_once(\"cdash/pdo.php\");\n\n $dates = array();\n\n $db = pdo_connect(\"$CDASH_DB_HOST\", \"$CDASH_DB_LOGIN\", \"$CDASH_DB_PASS\");\n pdo_select_db(\"$CDASH_DB_NAME\", $db);\n\n $dbQuery = pdo_query(\"SELECT nightlytime FROM project WHERE name='$projectname'\");\n if(pdo_num_rows($dbQuery)>0)\n {\n $project = pdo_fetch_array($dbQuery);\n $nightlytime = $project['nightlytime'];\n //echo \"query result nightlytime: \" . $nightlytime . \"<br/>\";\n }\n else\n {\n $nightlytime = \"00:00:00\";\n //echo \"default nightlytime: \" . $nightlytime . \"<br/>\";\n }\n\n if(!isset($basedate) || strlen($basedate)==0)\n {\n $basedate = gmdate(FMT_DATE);\n }\n\n // Convert the nightly time into GMT\n $nightlytime = gmdate(FMT_TIME,strtotime($nightlytime));\n\n $nightlyhour = time2hour($nightlytime);\n $nightlyminute = time2minute($nightlytime);\n $nightlysecond = time2second($nightlytime);\n $basemonth = date2month($basedate);\n $baseday = date2day($basedate);\n $baseyear = date2year($basedate);\n\n $dates['nightly+2'] = gmmktime($nightlyhour, $nightlyminute, $nightlysecond,\n $basemonth, $baseday+2, $baseyear);\n $dates['nightly+1'] = gmmktime($nightlyhour, $nightlyminute, $nightlysecond,\n $basemonth, $baseday+1, $baseyear);\n $dates['nightly-0'] = gmmktime($nightlyhour, $nightlyminute, $nightlysecond,\n $basemonth, $baseday, $baseyear);\n $dates['nightly-1'] = gmmktime($nightlyhour, $nightlyminute, $nightlysecond,\n $basemonth, $baseday-1, $baseyear);\n $dates['nightly-2'] = gmmktime($nightlyhour, $nightlyminute, $nightlysecond,\n $basemonth, $baseday-2, $baseyear);\n\n // Snapshot of \"now\"\n //\n $currentgmtime = time();\n $currentgmdate = gmdate(FMT_DATE, $currentgmtime);\n\n // Find the most recently past nightly time:\n //\n $todaymonth = date2month($currentgmdate);\n $todayday = date2day($currentgmdate);\n $todayyear = date2year($currentgmdate);\n $currentnightly = gmmktime($nightlyhour, $nightlyminute, $nightlysecond,\n $todaymonth, $todayday, $todayyear);\n while ($currentnightly>$currentgmtime)\n {\n $todayday = $todayday - 1;\n $currentnightly = gmmktime($nightlyhour, $nightlyminute, $nightlysecond,\n $todaymonth, $todayday, $todayyear);\n }\n\n $dates['now'] = $currentgmtime;\n $dates['most-recent-nightly'] = $currentnightly;\n $dates['today_utc'] = $currentgmdate;\n $dates['basedate'] = gmdate(FMT_DATE, $dates['nightly-0']);\n\n // CDash equivalent of DART1's \"last rollup time\"\n if ($dates['basedate'] === $dates['today_utc'])\n {\n // If it's today, it's now:\n $dates['last-rollup-time'] = $dates['now'];\n }\n else\n {\n // If it's not today, it's the nightly time on the basedate:\n $dates['last-rollup-time'] = $dates['nightly-0'];\n }\n\n return $dates;\n}", "title": "" }, { "docid": "b4b0fb76ea352ed5fca0d5c9ee244209", "score": "0.46784982", "text": "function get_news($start_time, $end_time,$section,$term) {\n\t\theader(\"Content-type: text/json\");\n\t\t$section = urlencode($section);\n\t\t$term = urlencode($term);\n\t\t$json = get_url_output('http://content.guardianapis.com/search?q='. $term .'&section='. $section .'&from-date='. $start_time .'&to-date='. $end_time .'&order-by=relevance&format=json');\n\t\t$json_obj = JSON_decode($json,true);\n\t\t//print_r($json_obj[\"response\"][\"results\"][0][\"webTitle\"]);\n\t\t$titles_array = array();\n\t\t$url_array= array();\n\t\tfor($i=0;$i<count($json_obj[\"response\"][\"results\"]);$i++){\n\t\t\t$titles_array[] = $json_obj[\"response\"][\"results\"][$i][\"webTitle\"];\n\t\t\t$url_array[] = $json_obj[\"response\"][\"results\"][$i][\"webUrl\"];\n\t\t\t$date_array[] = $json_obj[\"response\"][\"results\"][$i][\"webPublicationDate\"];\n\t\t}\n\t\tfor($i=0;$i<count($json_obj[\"response\"][\"results\"]);$i++){\n\t\t\t$ret_me[] = array($titles_array[$i] , $url_array[$i] , $date_array[$i]);\n\t\t}\n\t\tif(isset($ret_me)) {\n\t\t\treturn($ret_me);\n\t\t}\n\t\telse {\n\t\t\treturn(null);\n\t\t}\n\t}", "title": "" }, { "docid": "420886a4ac7fc21918b6ef5d6cd6e6ea", "score": "0.4665859", "text": "private function _date()\n {\n return (new Hexpress())->find(function($hex) { $hex->has($this->day())->with($this->month())->with($this->year()); }, 'date');\n }", "title": "" }, { "docid": "151c626db217eddc85349e525325a590", "score": "0.46600628", "text": "public function getlistAttendaceWithDate($date);", "title": "" }, { "docid": "b4fd64a0a5977ec592c4f3114ec54971", "score": "0.46564227", "text": "function findStationsSpecificDate($city,$date){\r\n $stations_list=mysql_query(\"SELECT DISTINCT devices.name,measurements.date\r\n \tFROM devices JOIN cities ON devices.fk_city = cities.pk_city JOIN sensors ON devices.pk_device=sensors.fk_device JOIN\r\n \tsensortypes ON sensors.fk_sensortype=sensortypes.pk_sensortype JOIN measurements ON\r\n \tsensors.pk_sensor=measurements.fk_sensor\r\n \tWHERE cities.name='$city' AND measurements.date BETWEEN '$date' -86400000 AND '$date'\");\r\n\r\n $array_stations = array();\r\n\r\n\twhile($row = @mysql_fetch_assoc($stations_list))\r\n\t{\r\n\r\n\t\t $row[\"name\"] = utf8_encode($row[\"name\"]);\r\n\t\t array_push($array_stations, $row[\"name\"]);\r\n\r\n\t}\r\n\treturn $array_stations;\r\n}", "title": "" }, { "docid": "d695de4fa2cf728e109b09fe450b3c8a", "score": "0.46500736", "text": "function get_start_working_search() {\n $start_working = array(\n\t\t'0' => elgg_echo('edujobs:search:select'),\n\t\t'edujobs:add:month01' => elgg_echo('edujobs:search:month01'),\n\t\t'edujobs:add:month13' => elgg_echo('edujobs:search:month13'),\n\t\t'edujobs:add:month49' => elgg_echo('edujobs:search:month49'),\n );\n \n return $start_working;\n}", "title": "" }, { "docid": "bdd11fc306394a88b5a02466f8c7e8e4", "score": "0.4647783", "text": "public function is_todays_work_over(){\n // get username(userid) of currently logged in user\n $userid = Session::get(\"username\");\n\n // get date today\n $today = strftime(\"%Y-%m-%d\", time());\n // get last number of the string\n $str = explode(\"-\", $today);\n\n $last_no = $str[count($str) - 1];\n $last_no++;\n\n $end_of_the_day = $str[0] . \"-\" . $str[1] . \"-\" . $last_no;\n\n $result = Model_Attendance::find(\"all\", array(\n \"where\" => array(\n array(\"userid\", \"=\", $userid),\n array(\"timein\", \">=\", $today),\n array(\"timeout\", \"<\", $end_of_the_day),\n )\n ));\n\n // if count <= 0 then no record in attendance\n // and work have not started, retur false\n if(count($result) <= 0){\n\n return false;\n\n }else {\n // get info\n $attendance = array_shift($result);\n return ($attendance->status == \"Present\") ? true : false;\n\n }\n }", "title": "" }, { "docid": "bd086f805b7374da27b540761db23000", "score": "0.4646822", "text": "public function loadArrayBydateIdentified($searchTerm) {\n global $connection;\n $returnvalue = array();\n $operator = \"=\";\n // change to a like search if a wildcard character is present\n if (!(strpos($searchTerm,\"%\")===false)) { $operator = \"like\"; }\n if (!(strpos($searchTerm,\"_\")===false)) { $operator = \"like\"; }\n $sql = \"SELECT detid FROM omoccurdeterminations WHERE dateIdentified $operator '$searchTerm'\";\n $preparedsql = \"SELECT detid FROM omoccurdeterminations WHERE dateIdentified $operator ? \";\n if ($statement = $connection->prepare($preparedsql)) { \n $statement->bind_param(\"s\", $searchTerm);\n $statement->execute();\n $statement->bind_result($id);\n while ($statement->fetch()) { ;\n $obj = new omoccurdeterminations();\n $obj->load($id);\n $returnvalue[] = $obj;\n }\n $statement->close();\n }\n return $returnvalue;\n }", "title": "" }, { "docid": "a4c49affaf9fa99ad12ccdaa48ee79c7", "score": "0.46409145", "text": "public function report(){\n\t\t\n\t\t$navBar = $this->navBar();\n\t\t$lang = \"En\";\n\t\tif (isset($_SESSION[\"user_settings\"][\"language\"])){\n\t\t\t$lang = $_SESSION[\"user_settings\"][\"language\"];\n\t\t}\n\t\t\n\t\t$isrequest = $this->request->getParameterNoException('is_request');\n\t\tif ($isrequest == \"y\"){\n\t\t\n\t\t\t// get the form parameters\n\t\t\t$searchDate_start = $this->request->getParameterNoException('searchDate_start');\n\t\t\t$searchDate_end = $this->request->getParameterNoException('searchDate_end');\n\t\t\t\n\t\t\tif ($searchDate_start != \"\"){\n\t\t\t\t$searchDate_start = CoreTranslator::dateToEn($searchDate_start, $lang);\n\t\t\t}\n\t\t\tif ($searchDate_end != \"\"){\n\t\t\t\t$searchDate_end = CoreTranslator::dateToEn($searchDate_end, $lang);\n\t\t\t}\n\t\t\t\n\t\t\tif ($searchDate_start == \"\" || $searchDate_end == \"\"){\n\t\t\t\t$errormessage = \"You must specify a start date and an end date\";\n\t\t\t\t$this->generateView ( array (\n\t\t\t\t\t\t'navBar' => $navBar,\n\t\t\t\t\t\t'errorMessage' => $errormessage\n\t\t\t\t) );\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t// convert start date to unix date\n\t\t\t$tabDate = explode(\"-\",$searchDate_start);\n\t\t\t$date_debut = $tabDate[2].'/'.$tabDate[1].'/'.$tabDate[0];\n\t\t\t$searchDate_s= mktime(0,0,0,$tabDate[1],$tabDate[2],$tabDate[0]);\n\t\t\t\n\t\t\t// convert end date to unix date\n\t\t\t$tabDate = explode(\"-\",$searchDate_end);\n\t\t\t$date_fin = $tabDate[2].'/'.$tabDate[1].'/'.$tabDate[0];\n\t\t\t$searchDate_e= mktime(0,0,0,$tabDate[1],$tabDate[2]+1,$tabDate[0]);\n\t\t\t\n\t\t\tif( $searchDate_e <= $searchDate_s){\n\t\t\t\t$errormessage = \"The start date must be before the end date\";\n\t\t\t\t$this->generateView ( array (\n\t\t\t\t\t\t'navBar' => $navBar,\n\t\t\t\t\t\t'errorMessage' => $errormessage,\n\t\t\t\t\t\t'searchDate_start' => $searchDate_start,\n\t\t\t\t\t\t'searchDate_end' => $searchDate_end\n\t\t\t\t) );\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t$champ = $this->request->getParameterNoException('champ');\n\t\t\t$type_recherche = $this->request->getParameterNoException('type_recherche');\n\t\t\t$text = $this->request->getParameterNoException('text');\n\t\t\t$contition_et_ou = $this->request->getParameterNoException('condition_et_ou');\n\t\t\t$entrySummary = $this->request->getParameterNoException('summary_rq');\n\t\t\t\n\t\t\t//print_r($champ);\n\t\t\t//print_r($type_recherche);\n\t\t\t//print_r($text);\n\t\t\t\n\t\t\t$reportModel = new SyReport();\n\t\t\t$table = $reportModel->reportstats($searchDate_s, $searchDate_e, $champ, $type_recherche, $text, $contition_et_ou);\n\t\t\t\n\t\t\t//print_r($table);\n\t\t\t\n\t\t\t$outputType = $this->request->getParameterNoException('output');\n\t\t\t\n\t\t\tif ($outputType == 1){ // only details\n\t\t\t\t$this->generateView ( array (\n\t\t\t\t\t\t'navBar' => $navBar,\n\t\t\t\t\t\t'searchDate_start' => $searchDate_start,\n\t\t\t\t\t\t'searchDate_end' => $searchDate_end,\n\t\t\t\t\t\t'champ' => $champ,\n\t\t\t\t\t\t'type_recherche' => $type_recherche,\n\t\t\t\t\t\t'text' => $text,\n\t\t\t\t\t\t'summary_rq' => $entrySummary,\n\t\t\t\t\t\t'output' => $outputType,\n\t\t\t\t\t\t'table' => $table\n\t\t\t\t) );\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if ($outputType == 2){ // only summary\n\t\t\t\t\n\t\t\t\t$summaryTable = $reportModel->summaryseReportStats($table, $entrySummary);\n\t\t\t\t$this->generateView ( array (\n\t\t\t\t\t\t'navBar' => $navBar,\n\t\t\t\t\t\t'searchDate_start' => $searchDate_start,\n\t\t\t\t\t\t'searchDate_end' => $searchDate_end,\n\t\t\t\t\t\t'champ' => $champ,\n\t\t\t\t\t\t'type_recherche' => $type_recherche,\n\t\t\t\t\t\t'text' => $text,\n\t\t\t\t\t\t'summary_rq' => $entrySummary,\n\t\t\t\t\t\t'output' => $outputType,\n\t\t\t\t\t\t'summaryTable' => $summaryTable\n\t\t\t\t) );\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if ($outputType == 3){ // details and summary\n\t\t\t\t$summaryTable = $reportModel->summaryseReportStats($table, $entrySummary);\n\t\t\t\t$this->generateView ( array (\n\t\t\t\t\t\t'navBar' => $navBar,\n\t\t\t\t\t\t'searchDate_start' => $searchDate_start,\n\t\t\t\t\t\t'searchDate_end' => $searchDate_end,\n\t\t\t\t\t\t'champ' => $champ,\n\t\t\t\t\t\t'type_recherche' => $type_recherche,\n\t\t\t\t\t\t'text' => $text,\n\t\t\t\t\t\t'summary_rq' => $entrySummary,\n\t\t\t\t\t\t'output' => $outputType,\n\t\t\t\t\t\t'table' => $table,\n\t\t\t\t\t\t'summaryTable' => $summaryTable\n\t\t\t\t) );\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if ($outputType == 4){ // details csv\n\t\t\t\t$this->exportDetailsCSV($table, $lang);\n\t\t\t\treturn;\t\n\t\t\t}\n\t\t\telse if ($outputType == 5){ // summary csv\n\t\t\t\t$summaryTable = $reportModel->summaryseReportStats($table, $entrySummary);\n\t\t\t\t$this->exportSummaryCSV($summaryTable, $lang);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->generateView ( array (\n\t\t\t\t'navBar' => $navBar\n\t\t) );\n\t}", "title": "" }, { "docid": "3da31b69eb9d322470aff31f2fde0d45", "score": "0.46380654", "text": "public function getFind($type = 24){\n\t\t$search_time = 86400;\n\t\tif($type == 30){\n\t\t\t$search_time = 2592000;\n\t\t}\n\t\treturn $this->where('%d < unix_timestamp(time)',(time() - $search_time))->order('agree - unagree desc')->limit(30)->select();\n\t}", "title": "" }, { "docid": "50736d0db65cae7c0f7c097dd9fa6958", "score": "0.46346727", "text": "function start_date ();", "title": "" }, { "docid": "5d850e787e3c67a14cb6da578b3e4238", "score": "0.4634182", "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": "73b6dcfe3b6c423ebe7d12ba9de759ec", "score": "0.46331966", "text": "public function getInformazioniFilterByDate($conn, $date){\n\t\t\t//preparo lo statement che mi ricava tutte le informazioni \n\t\t\t$sth = $conn->prepare(\"select * from Informazione where data_inizio >= :data_inizio or data_fine >= :data_fine limit 1\");\n\t\t\t$sth->bindParam(':data_inizio', $date, PDO::PARAM_STR);\n\t\t\t$sth->bindParam(':data_fine', $date, PDO::PARAM_STR);\n\t\t\t$sth->execute();\n\t\t\treturn $sth; \n\t\t}", "title": "" }, { "docid": "bf30dd4a3fca1fb2e5739ec27e3bb4fe", "score": "0.4632059", "text": "public function getRecordDatabyDate($date)\n\t{\t$user_id = $this->session->userdata('id');\n\t\tif($date) {\n\t\t\t$selected_date= strtotime($date);\n\t\t\t\n\t\t\t$sql = \"SELECT * FROM records \n\t\t\tINNER JOIN users ON users.id = records.user_id\n\t\t\tINNER JOIN records_item ON records.r_id=records_item.record_id\n\t\t\tINNER JOIN games ON records.game_id = games.id\n\t\t\tWHERE records.date_added = ? and records.user_id =?\n\t\t\tORDER BY records.r_id DESC\";\n\t\t\t$query = $this->db->query($sql, array($selected_date, $user_id));\n\t\t\t$result = $query->result_array();\t\n\n\n\t\t\treturn $result;\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "c698862aa971ea8aaf642060c9064175", "score": "0.4631527", "text": "function hasWorks($idCustomer,$company) {\n\n // utilizamos el metodo, facilitándole fechas que abarquen todo el periodo de uso\n $result=getWorksByCustomerAndDates($company,$idCustomer,\"2014-01-01\",\"2099-12-31\");\n\n if ($result==false) return false;\n\n return true;\n}", "title": "" }, { "docid": "a27d33b110c8541b543903b1f9fb563d", "score": "0.46269563", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\n $criteria->compare('id',$this->id);\n $criteria->compare('text',$this->text,true);\n if (!empty($this->filterDate)) {\n /*$begDate = date_create_from_format('Y-m-d', $this->filterDate);\n $begDate->setTime(0, 0, 0); //время в ноль, а то ставится текущее\n $endDate = date_create_from_format('Y-m-d', $this->filterDate);\n $endDate->setTime(0, 0, 0);\n $interval = new DateInterval('P1D'); //интервал = 1 день\n $endDate->add($interval); //прибавляем этот интервал \n\n $begDate = strtotime($begDate->date); //($this->filterDate);\n $endDate = strtotime($endDate->date); //($this->filterDate);\n */\n $begDate = strtotime($this->filterDate);\n $endDate = $begDate + 24 * 60 * 60;\n $criteria->addBetweenCondition('created', $begDate, $endDate);\n }\n $criteria->compare('owner', $this->owner);\n $criteria->compare('is_alert', $this->is_alert);\n $criteria->compare('post_identity', $this->post_identity);\n $criteria->order = 'created DESC';\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n 'pagination'=>array(\n 'pageSize'=>50,\n ), \n ));\n }", "title": "" }, { "docid": "4c5662977799f4da83dcf724f6aa8c80", "score": "0.46225572", "text": "function format_date_search($date) {\n $dd1 = explode(\"-\", $date);\n $new_date = $dd1[2] . \"-\" . $dd1[1] . \"-\" . $dd1[0];\n return $new_date;\n}", "title": "" }, { "docid": "4ab5758a3a04e0f82ac6ad8545f37d82", "score": "0.46193305", "text": "function get_posts_for_day($date)\n {\n $given = date('Y-m-d 23:59:59', strtotime($date));\n $past = date('Y-m-d 00:00:00', strtotime($date));\n\n $this->db->where('registerTime >', $past);\n $this->db->where('registerTime <', $given);\n\n return $this->db->get($this->_table_name);\n }", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.46051863", "text": "public function search();", "title": "" }, { "docid": "48c2f30c168db2a3448d6e4f1a291a45", "score": "0.4600821", "text": "function WLMSchedContentWhere($where){\n global $wpdb,$WishListMemberInstance;\n $wpm_current_user=wp_get_current_user();\n $table1 = $wpdb->prefix.\"posts\";\n $table2 = $wpdb->prefix.\"wlcc_contentsched\";\n $w = $where;\n if(!$wpm_current_user->caps['administrator']){ // disregard content schedule for admin\n //filter the post thats not to be shown\n $arr = $this->GetSchedContent();\n $sched_posts = array_keys($arr);\n $qsched = count($sched_posts) > 0 ? \" AND $table1.ID NOT IN (\" .implode(',',$sched_posts).\")\" :\"\";\n //get permalink structure\n $permalink_structure = get_option('permalink_structure');\n if(is_single() && preg_match('/year|month|day/i',$permalink_structure)){\n //remove the date in query\n $w = trim(preg_replace('/\\s+/', ' ', $w)); //removes new line and extra whitespaces, it causes regex not to work properly\n $x = preg_replace(\"/.*(YEAR|MONTH|DAYOFMONTH|HOUR|MINUTE|SECOND)(.*?)(\\s+AND)/\",\"\",$w);\n if ( $x != $w ) {\n $w = \" AND \" .$x;\n }\n }\n $w .= $qsched .\" \";\n }\n return $w;\n }", "title": "" }, { "docid": "10b07f287142e48a5d99a4bda99c99be", "score": "0.45944235", "text": "function getTimeBooked($data){\r\n\t\t$results=array();\r\n\t\t\r\n\t\t$data=$this->find('all',array(\r\n\t\t\t\t\t\t\t\t\t'contain'=>false,\r\n\t\t\t\t\t\t\t\t 'conditions'=>\r\n\t\t\t\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\t\t\t'Booking.time like'=>$data['Booking']['time'].'%',\r\n\t\t\t\t\t\t\t\t\t\t'Booking.room_id'=>$data['Booking']['room_id']\r\n\t\t\t\t\t\t\t\t\t)));\r\n\t\t\t\t\t\t\t\t\t\r\n\t\tforeach($data as $dt){\r\n\t\t\t$ay=explode(' ',$dt['Booking']['time']) ;\r\n\t\t\t$results[]= $ay[1];\r\n\t\t}\r\n\t\t\r\n\t\treturn $results;\r\n\t}", "title": "" }, { "docid": "819ca4d8a32943a5b3461d25d1779e56", "score": "0.45820192", "text": "public function searchParticulerAppointment(Request $request){\n $this->validate($request,[\n 'from_date'=>'required',\n 'to_date'=>'required',\n 'doctor_id'=>'required',\n ]);\n\n $from_date=date('Y-m-d',strtotime($request->from_date));\n $to_date=date('Y-m-d',strtotime($request->to_date));\n $appointments=Appointment::where(['doctor_id'=>$request->doctor_id,'payment_status'=>1,'already_treated'=>0])->get();\n $appointments=$appointments->whereBetween('date', array($from_date, $to_date));\n return view('doctor.appointment.ajax-particular-appointment',compact('appointments'));\n }", "title": "" }, { "docid": "45579274b1e65ef0a16811cc9157a792", "score": "0.4578108", "text": "function dateFilter($filter = '')\n\t{\n\t\t$vars = null;\n\t\tpreg_match('/(open-upcoming|upcoming|today|overdue|date|enddate)([-\\\\/.0-9]*)/',$filter,$vars);\n\t\t$filter = $vars[1];\n\n\t\tif (isset($vars[2]) && !empty($vars[2]) && ($date = preg_split('/[-\\\\/.]/',$vars[2])))\n\t\t{\n\t\t\t$today = mktime(-$this->tz_offset,0,0,intval($date[1]),intval($date[2]),intval($date[0]));\n\t\t\t$tomorrow = mktime(-$this->tz_offset,0,0,intval($date[1]),intval($date[2])+1,intval($date[0]));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$now = getdate(time()-60*60*$this->tz_offset);\n\t\t\t$tomorrow = mktime(-$this->tz_offset,0,0,$now['mon'],$now['mday']+1,$now['year']);\n\t\t}\n\t\tswitch ($filter)\n\t\t{\n\t\t\tcase 'open-upcoming':\n\t\t\t\treturn \"AND (info_startdate >= $tomorrow OR NOT (info_status IN ('done','billed','cancelled','deleted','template','nonactive','archive')))\";\n\t\t\tcase 'upcoming':\n\t\t\t\treturn \" AND info_startdate >= $tomorrow\";\n\t\t\tcase 'today':\n\t\t\t\treturn \" AND info_startdate < $tomorrow\";\n\t\t\tcase 'overdue':\n\t\t\t\treturn \" AND (info_enddate != 0 AND info_enddate < $tomorrow)\";\n\t\t\tcase 'date':\n\t\t\t\tif (!$today || !$tomorrow)\n\t\t\t\t{\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t\t\treturn \" AND ($today <= info_startdate AND info_startdate < $tomorrow)\";\n\t\t\tcase 'enddate':\n\t\t\t\tif (!$today || !$tomorrow)\n\t\t\t\t{\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t\t\treturn \" AND ($today <= info_enddate AND info_enddate < $tomorrow)\";\n\t\t\tcase 'limit':\n\t\t\t\treturn \" AND (info_modified >= $today OR NOT (info_status IN ('done','billed','cancelled')))\";\n\t\t}\n\t\treturn '';\n\t}", "title": "" }, { "docid": "9f6c949af9011b716f286ba2cf684e51", "score": "0.45684367", "text": "protected static function fixWorkingDays()\n\t{\n\t\t$dbo = JFactory::getDbo();\n\n\t\t$q = $dbo->getQuery(true)\n\t\t\t->select('*')\n\t\t\t->from($dbo->qn('#__vikappointments_emp_worktime'));\n\n\t\t$dbo->setQuery($q);\n\t\t$dbo->execute();\n\n\t\tif (!$dbo->getNumRows())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\t$wdays = $dbo->loadObjectList();\n\n\t\tforeach ($wdays as $wd)\n\t\t{\n\t\t\tif ($wd->id_service == -1)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tforeach ($wdays as $inner)\n\t\t\t{\n\t\t\t\tif ($wd->id == $inner->id || $inner->id_service != -1)\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (self::matchWorkingDays($wd, $inner))\n\t\t\t\t{\n\t\t\t\t\t$wd->parent = $inner->id;\n\t\t\t\t\t$dbo->updateObject('#__vikappointments_emp_worktime', $wd, 'id');\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bcf6685b229cad6b5e83fe80f9b1a0d0", "score": "0.45659566", "text": "function getByDate($date){\n\t // $sql = \"select w.word,w.definition,w.examples, tr.WORD_TRANSLATION from wd_words w\n\t\t// LEFT JOIN wd_translations tr on w.word_id = tr.word_id\n\t\t// where tr.lang_id_to = 2 LIMIT 1\";\n\t\t// return $this->db->get_where('words', array('date_published' => $date, 'is_active' => 1 ))->row_array();\t\t\n\t$this->db->select('wd_words.word_id,word, definition,examples,word_translation,word_type');\n\t$this->db->join('wd_translations', 'wd_translations.word_id = wd_words.word_id', 'left');\n\t$this->db->join('wd_word_types', 'wd_word_types.word_type_id = wd_words.word_type_id and wd_word_types.is_active = 1', 'left');\n\t$this->db->where(array('date_published' => $date, 'wd_words.is_active' => 1,'lang_id_to' => 2 ));\t\n\treturn $this->db->get('words')->row_array();\n }", "title": "" }, { "docid": "8738a3478dd44b9d79669220cb88e41d", "score": "0.4565791", "text": "function GetCurrentTermNumber($TermNumbers){\n date_default_timezone_set('America/Los_Angeles'); //Woo West Coast\n $date = date('Y-m-d');\n $curTermNumber = new TermNumber();\n foreach ($TermNumbers as $tempTermNumber) {\n if ($tempTermNumber->StartDate < $date && $tempTermNumber->EndDate > $date) { //TODO: Return on find\n $curTermNumber=$tempTermNumber;\n }\n }\n return $curTermNumber;\n}", "title": "" }, { "docid": "feaca225c993d9f369681ed9556ebd08", "score": "0.4556192", "text": "public function search(){\n\t\t$this->layout = false;\t\t\n\t\t$q = trim(Sanitize::escape($_GET['q']));\t\n\t\t\tif(!empty($q)){\n\t\t\t\t$options = array(\t\n\t\t\t\t\tarray('table' => 'req_resume',\n\t\t\t\t\t\t'alias' => 'ReqResume',\t\t\t\t\t\n\t\t\t\t\t\t'type' => 'LEFT',\n\t\t\t\t\t\t'conditions' => array('`ReqResume`.`resume_id` = `Resume`.`id`')\n\t\t\t\t\t),\n\t\t\t\t\tarray('table' => 'requirements',\n\t\t\t\t\t\t'alias' => 'Position',\t\t\t\t\t\n\t\t\t\t\t\t'type' => 'LEFT',\n\t\t\t\t\t\t'conditions' => array('`Position`.`id` = `ReqResume`.`requirements_id`')\n\t\t\t\t\t),\n\t\t\t\t\tarray('table' => 'clients',\n\t\t\t\t\t\t'alias' => 'Client',\t\t\t\t\t\n\t\t\t\t\t\t'type' => 'LEFT',\n\t\t\t\t\t\t'conditions' => array('`Client`.`id` = `Position`.`clients_id`')\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t// execute only when the search keywork has value\t\t\n\t\t\t$this->set('keyword', $q);\n\t\t\t/*\n\t\t\t$start = date('Y-m-d H:i:s', strtotime('-6 month'));\n\t\t\t$end = date('Y-m-d', strtotime('+1 day'));\n\t\t\t// last year condition\n\t\t\t$date_cond = array('or' => array(\"Resume.created_date between ? and ?\" => \n\t\t\t\t\tarray($start, $end)));\n\t\t\t*/\n\t\t\t$this->Resume->unBindModel(array('belongsTo' => array('Creator')));\n\t\t\t$data = $this->Resume->find('all', array('fields' => array('ResLocation.location',\"concat(first_name, ' ', last_name) as first_name\",'present_employer','Resume.code',\n\t\t\t'Client.client_name','present_location','native_location'),'group' => array('ResLocation.location','first_name','present_employer','Client.client_name','present_location','native_location'), 'conditions' => \tarray(\"OR\" => array ('ResLocation.location like' => '%'.$q.'%',\n\t\t\t'first_name like' => '%'.$q.'%', 'Client.client_name like' => '%'.$q.'%', 'present_employer like' => '%'.$q.'%','code like' => '%'.$q.'%',\n\t\t\t'present_location like' => '%'.$q.'%','native_location like' => '%'.$q.'%'), 'AND' => array('Resume.is_deleted' => 'N')),\n\t\t\t'joins' => $options));\t\t\n\t\t\t$this->set('results', $data);\n\t\t}\n }", "title": "" }, { "docid": "af22d4a154fa1acc910daf4b51401421", "score": "0.45541775", "text": "public static function getPostsByDate($searchString)\n {\n $date_pattern1 = \"/([0-9]{1,2})-([0-9]{1,2})-([0-9]{4})/i\";\n\n // if date entered in format mm-dd-yyyy or m-d-yyyy reformat to yyyy-mm-dd or yyyy-m-d for searching posts\n if(preg_match($date_pattern1, $searchString, $matches)) {\n //dd($matches);\n $searchString = $matches[3] . \"-\" . $matches[1] . \"-\" . $matches[2];\n }\n \n //dd($searchString);\n $postsDates = Posts::whereDate('created_at', date($searchString))->orderBy('created_at', 'desc')->get()->toArray();\n\n //dd($postsDates);\n return PostController::buildPosts($postsDates);\n }", "title": "" }, { "docid": "a66a430f48562984b512a729f9e67526", "score": "0.4545415", "text": "public function check_date_for_result_enter ($exam) {\n $exam_data = $this->get_exam($exam);\n date_default_timezone_set('Asia/Colombo');\n $row_date_srting = $exam_data->row()->date.' '.$exam_data->row()->time;\n $date = date_create_from_format('m/d/Y H:i:s', $row_date_srting);\n\n $formated_date = date_format($date, 'Y-m-d H:i:s');\n $date_now = date(\"Y-m-d H:i:s\");\n \n if ($formated_date < $date_now) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "aaf6cbbcb84aed5b54b0b445afb13668", "score": "0.4540518", "text": "function getAllToday( $mydirname , $limit4sql=0, $start4sql=0, $caldate, $asobject=true, $gpermited=false)\n\t{\n\t\t$gperm =& BulletinGP::getInstance($mydirname) ;\n\n\t\t$limit4sql = intval($limit4sql);\n\t\t$start4sql = intval($start4sql);\n\n\t\tif( preg_match('/([0-9]{4})-([0-9]{2})-([0-9]{2})/', $caldate, $datearr) ){\n\t\t\t$year = $datearr[1];\n\t\t\t$month = $datearr[2];\n\t\t\t$day = $datearr[3];\n\t\t\t$startday4sql = mktime(0,0,0,$month,$day,$year);\n\t\t\t$endday4sql = mktime(0,0,0,$month,$day+1,$year);\n\n\t\t\t$criteria = array();\n\t\t\t$criteria[] = \"published > 0\";\n\t\t\t$criteria[] = \"published <= \".time();\n\t\t\t$criteria[] = \"(expired = 0 OR expired > \".time().\")\";\n\t\t\t$criteria[] = \"$startday4sql <= published\";\n\t\t\t$criteria[] = \"published < $endday4sql\";\n//ver3.0\n\t\t\tif (!$gperm->group_perm(2)){\n\t\t\t\t$criteria[] = \"type > 0\";\n\t\t\t}\n\n\t\t\tif( $gpermited ){\n\t\t\t\t$gperm =& BulletinGP::getInstance($mydirname) ;\n\t\t\t\t$can_read_topic_ids = $gperm->makeOnTopics('can_read');\n\t\t\t\t$criteria[] = \"topicid IN (\".implode(',',$can_read_topic_ids).\")\";\n\t\t\t}\n\n\t\t\treturn Bulletin::getAll( $mydirname , $criteria, $asobject, \"published DESC\", $limit4sql, $start4sql);\n\t\t}else{\n\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "af5107d451b78b0732585d3f157098ab", "score": "0.45373106", "text": "function _getInfo() {\r\n\t\tglobal $database, $zoom;\r\n\t\t$database->setQuery(\"SELECT cmtcontent, date_format(cmtdate, '%Y-%m-%d %H:%i:%s') AS date, cmtname FROM #__zoom_comments WHERE cmtid=\".$this->_id);\r\n\t\t$this->_result = $database->query();\r\n\t\tif (mysql_num_rows($this->_result)) {\r\n\t\t\twhile($row = mysql_fetch_object($this->_result)){\r\n\t\t\t\t$this->_name = stripslashes($row->cmtname);\r\n\t\t\t\t$this->_comment = stripslashes($row->cmtcontent);\r\n\t\t\t\t//$this->_date = $row->date;\r\n\t\t\t\t$this->_date = $zoom->convertDate($row->date);\r\n\t\t\t}\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": "23aa32d3c3313b3d3f1cc8a7791b9554", "score": "0.45355907", "text": "function searchResult($date, $vendor)\n\t{\n\t\tdbConnect();\n\t\t\n\t\t// date format might have issue\n\t\t$results = DB::query(\"SELECT resultnumber, prize FROM result WHERE resultdate = %s AND vendor = %d\", $date, $vendor);\n\t\t\n\t\t/*\n\t\tforeach ($results as $row)\n\t\t{\n\t\t echo \"Number: \" . $row['resultnumber'] . \"\\n\";\n\t\t echo \"Prize: \" . $row['prize'] . \"\\n\";\n\t\t echo \"-------------\\n\";\n\t\t}\n\t\t*/\n\t\t\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "8526a12ec523ecf35aa41d63e46a4305", "score": "0.45354843", "text": "function is_working_day($date = 'now')\r\n{\r\n if (!is_numeric($date))\r\n $time = strtotime($date);\r\n else\r\n $time = $date;\r\n \r\n $dayOfWeek = (int) date('w', $time);\r\n $year = (int) date('Y', $time);\r\n\r\n #sprawdzenie czy to nie weekend\r\n if ($dayOfWeek == 6 || $dayOfWeek == 0) {\r\n return false;\r\n }\r\n\r\n #lista swiat stalych\r\n $holiday = array('01-01', '01-06', '05-01', '05-03', '08-15', '11-01', '11-11', '12-25', '12-26');\r\n\r\n #dodanie listy swiat ruchomych\r\n #wialkanoc\r\n $easter = date('m-d', easter_date($year));\r\n $easter_time = strtotime($year . '-' . $easter);\r\n #poniedzialek wielkanocny\r\n $easterSec = date('m-d', strtotime('+1 day', $easter_time));\r\n #boze cialo\r\n $cc = date('m-d', strtotime('+60 days', $easter_time));\r\n #Zesłanie Ducha Świętego\r\n $p = date('m-d', strtotime('+49 days', $easter_time));\r\n\r\n $holiday[] = $easter;\r\n $holiday[] = $easterSec;\r\n $holiday[] = $cc;\r\n $holiday[] = $p;\r\n\r\n $md = date('m-d', $time);\r\n if (in_array($md, $holiday)) return false;\r\n\r\n return true;\r\n}", "title": "" }, { "docid": "dca880b2cbf2632760ee1f934fbc0b02", "score": "0.4534571", "text": "function formatoFechaAfterFind($cadenaFecha) {\n return date('d-m-Y', strtotime($cadenaFecha));\n}", "title": "" }, { "docid": "807ffe6493da5f69dc8af241418e71f7", "score": "0.45269245", "text": "public function scopeWhereDateIs($query, $search)\n {\n return $query->when($search, function ($q) use ($search) {\n return $q->where('date', Carbon::parse($search)->format('Y-m-d'));\n });\n }", "title": "" }, { "docid": "9227981cc838fad5280e4c13169951d7", "score": "0.45235837", "text": "function find_record($key, $values)\n\t {\n\t\t $record = '';\n\t\t if(count($values))\n\t\t {\n\t\t\t foreach($values as $index => $val)\n\t\t\t {\n\t\t\t\t if($val->available_day == $key)\n\t\t\t\t\t $record = $val;\n\t\t\t }\n\t\t }\n\t\t return $record;\n\t }", "title": "" }, { "docid": "758f16b59fe5dc0bb2ff9f83d829d267", "score": "0.4518612", "text": "function monitor_critere_diff_xx($format, $idb, &$boucles, $crit, $date){\n\t$boucles[$idb]->where[] = array(\"'>='\", \"maj\", '\"' . sql_quote($date) . '\"');\n}", "title": "" }, { "docid": "868d66623fba29cf8cdb56ec2673e4f6", "score": "0.45066068", "text": "protected function processDates($date1, $date2, $when1, $when2)\n\t{\n\t\t// Clean up the inputs.\n\t\t$date1 = JString::trim(JString::strtolower($date1));\n\t\t$date2 = JString::trim(JString::strtolower($date2));\n\t\t$when1 = JString::trim(JString::strtolower($when1));\n\t\t$when2 = JString::trim(JString::strtolower($when2));\n\n\t\t// Get the time offset.\n\t\t$offset = JFactory::getApplication()->getCfg('offset');\n\n\t\t// Array of allowed when values.\n\t\t$whens = array('before', 'after', 'exact');\n\n\t\t// The value of 'today' is a special case that we need to handle.\n\t\tif ($date1 === JString::strtolower(JText::_('COM_FINDER_QUERY_FILTER_TODAY')))\n\t\t{\n\t\t\t$today = JFactory::getDate('now', $offset);\n\t\t\t$date1 = $today->format('%Y-%m-%d');\n\t\t}\n\n\t\t// Try to parse the date string.\n\t\t$date = JFactory::getDate($date1, $offset);\n\n\t\t// Check if the date was parsed successfully.\n\t\tif ($date->toUnix() !== null)\n\t\t{\n\t\t\t// Set the date filter.\n\t\t\t$this->date1 = $date->toSQL();\n\t\t\t$this->when1 = in_array($when1, $whens) ? $when1 : 'before';\n\t\t}\n\n\t\t// The value of 'today' is a special case that we need to handle.\n\t\tif ($date2 === JString::strtolower(JText::_('COM_FINDER_QUERY_FILTER_TODAY')))\n\t\t{\n\t\t\t$today = JFactory::getDate('now', $offset);\n\t\t\t$date2 = $today->format('%Y-%m-%d');\n\t\t}\n\n\t\t// Try to parse the date string.\n\t\t$date = JFactory::getDate($date2, $offset);\n\n\t\t// Check if the date was parsed successfully.\n\t\tif ($date->toUnix() !== null)\n\t\t{\n\t\t\t// Set the date filter.\n\t\t\t$this->date2 = $date->toSQL();\n\t\t\t$this->when2 = in_array($when2, $whens) ? $when2 : 'before';\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3d53ec22ca7fd11e8a22cb6d10138981", "score": "0.4504775", "text": "public function get_date_info($view, $date_time){\n\t\t$str = \"\";\n\n\t\tglobal $current_user;\n\t\t$dateFormat = $current_user->getUserDateTimePreferences();\n\n\t\tif($view == 'month'){\n\t\t\tfor($i=0; $i<strlen($dateFormat['date']); $i++){\n\t\t\t\tswitch($dateFormat['date']{$i}){\n\t\t\t\t\tcase \"Y\":\n\t\t\t\t\t\t$str .= \" \".$date_time->year;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"m\":\n\t\t\t\t\t\t$str .= \" \".$date_time->get_month_name();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}else\n\t\t\tif($view == 'week' || $view == 'shared') {\n\t\t\t\t$first_day = $date_time;\n\n\t\t\t\t$first_day = CalendarUtils::get_first_day_of_week($date_time);\n\t\t\t\t$last_day = $first_day->get(\"+6 days\");\n\n\t\t\t\tfor($i=0; $i<strlen($dateFormat['date']); $i++) {\n\t\t\t\t\tswitch($dateFormat['date']{$i}){\n\t\t\t\t\t\tcase \"Y\":\n\t\t\t\t\t\t\t$str .= \" \".$first_day->year;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"m\":\n\t\t\t\t\t\t\t$str .= \" \".$first_day->get_month_name();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"d\":\n\t\t\t\t\t\t\t$str .= \" \".$first_day->get_day();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$str .= \" - \";\n\t\t\t\tfor($i=0; $i<strlen($dateFormat['date']); $i++) {\n\t\t\t\t\tswitch($dateFormat['date']{$i}) {\n\t\t\t\t\t\tcase \"Y\":\n\t\t\t\t\t\t\t$str .= \" \".$last_day->year;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"m\":\n\t\t\t\t\t\t\t$str .= \" \".$last_day->get_month_name();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"d\":\n\t\t\t\t\t\t\t$str .= \" \".$last_day->get_day();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else if($view == 'day'){\n\t\t\t\t\t$str .= $date_time->get_day_of_week().\" \";\n\n\t\t\t\t\tfor($i=0; $i<strlen($dateFormat['date']); $i++){\n\t\t\t\t\t\tswitch($dateFormat['date']{$i}){\n\t\t\t\t\t\t\tcase \"Y\":\n\t\t\t\t\t\t\t\t$str .= \" \".$date_time->year;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"m\":\n\t\t\t\t\t\t\t\t$str .= \" \".$date_time->get_month_name();\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"d\":\n\t\t\t\t\t\t\t\t$str .= \" \".$date_time->get_day();\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}else if($view == 'year') {\n\t\t\t\t$str .= $date_time->year;\n\t\t\t}else{\n\t\t\t\tsugar_die(\"echo_date_info: date not supported\");\n\t\t\t}\n\t\treturn $str;\n\t}", "title": "" }, { "docid": "390461eb05946ef589f0ac2800259c35", "score": "0.45001316", "text": "function blog_search()\r\n\t{\r\n\t\t$SERVICE_URL = \"http://api.technorati.com/search?key=6bf0a6ff8f7ca38ec63519abd90b4fa3&query=\";\r\n\r\n\t\t//elaborar el url adecuado para este servicio\r\n\t\t\r\n\t\t$peticion_url = $this->elaborar_url($SERVICE_URL);\r\n\t\t\r\n\t\t//conectarse y obtener la respuesta en formato nativo\r\n\t\t\r\n\t\t$this->respuesta_raw = $this->buscar($peticion_url);\t\t//TODO: validar una respuesta exitosa\r\n\t\t\r\n\t\t//transformar la respuesta raw a finjira\r\n\t\t\r\n\t\t$this->respuesta_findjira = $this->web_parse();\t\t\t\t//web_parse utiliza respuesta_raw para transformarla\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b2ffe7f5691b12c55e6a6d5185e099ec", "score": "0.4497452", "text": "public function actionGetDates() {\n $time = \\Yii::$app->request->post('time');\n if (empty($time)) {\n echo 'n/a';\n return;\n }\n $dates = TaskRunner::getRunDates($time);\n if (empty($dates)) {\n echo \\Yii::t('cron', 'Invalid expression');\n return;\n }\n echo '<ul>';\n foreach ($dates as $d) {\n /**\n * @var \\DateTime $d\n */\n echo '<li>' . $d->format('Y-m-d H:i:s') . '</li>';\n }\n echo '</ul>';\n }", "title": "" }, { "docid": "c8761488c5cdfe58404653fa3a2aea69", "score": "0.449477", "text": "function display_date_metadata( $content ) {\n $id = get_the_id();\n $current_content_type = get_post_type( $id ); // whether it’s a post or a page.\n $post_page_url = get_permalink( $id ); // published dates often have a url hyperlink.\n //$original_time = get_the_time( 'U' ); // raw time for comparison, not needed.\n //$modified_time = get_the_modified_time( 'U' ); // modified times are provided without delay.\n //if ( $modified_time >= $original_time + 86400 ) {\n $updated_time = get_the_modified_time('H:i'); // time for the tooltip.\n $updated_day = get_the_modified_time('d/m/Y'); // French numeric date format.\n $updated_iso8601 = get_the_modified_time( 'Y-m-d\\TH:i:sO' ); // for the time argument.\n $date_tag_content = \"\\r\\n\\r\\n<p class=\\\"$current_content_type-last-modified\\\">Mis à jour le <a href=\\\"$post_page_url\\\" time=\\\"$updated_iso8601\\\" title=\\\"$updated_time\\\">$updated_day</a>\";\n //}\n if ( $current_content_type == 'post' ) { // posts’ published date is already present.\n $date_tag_content .= \"</p>\\r\\n\\r\\n\"; // close the tag.\n $content = $date_tag_content . $content; // modified date inserted before content.\n }\n else if ( $current_content_type == 'page' ) { // pages are lacking the published date.\n $published_time = get_the_time('H:i');\n $published_day = get_the_time('d/m/Y');\n $published_iso8601 = get_the_time( 'Y-m-d\\TH:i:sO' );\n $date_tag_content .= \"<br />\\r\\nPublié le <a href=\\\"$post_page_url\\\" time=\\\"$published_iso8601\\\" title=\\\"$published_time\\\">$published_day</a></p>\\r\\n\\r\\n\";\n $content .= $date_tag_content; // both dates are appended below.\n }\n return $content;\n}", "title": "" }, { "docid": "dd75a5c127aaa4cd35cad2cbf351da01", "score": "0.44926164", "text": "function filter_where( $where = '' ) {\n\t $currentissue = 'issue-21';\n\t $issuestart = xydac_cloud('volume',$currentissue,'issue-start');\n\t $issueend = xydac_cloud('volume','2012-04-13','issue-end');\n\t $where .= \" AND post_date >= '$issuestart' AND post_date < '$issueend'\";\n\t return $where;\n }", "title": "" }, { "docid": "c4f598d45eaed788821fb74a762246c7", "score": "0.4488577", "text": "public function getProjectNotes($client_project_id = null, $query = null, $user_id = null)\r\n {\r\n\r\n $this->unbindProjectModels();\r\n\r\n if ($user_id == null)\r\n {\r\n\r\n $conditions = array(\r\n 'ClientProject.id' => $client_project_id,\r\n 'OR' => array(\r\n 'Note.content LIKE ' => '%' . $query . '%',\r\n )\r\n );\r\n } else\r\n {\r\n\r\n $conditions = array(\r\n array(\r\n 'OR' => array(\r\n 'Note.content LIKE ' => '%' . $query . '%',\r\n )\r\n ),\r\n array(\r\n 'OR' => array(\r\n 'ClientProject.user_id LIKE ' => $user_id,\r\n 'ClientProject.project_author_id LIKE ' => $user_id,\r\n 'ClientProject.account_manager_id LIKE ' => $user_id,\r\n )\r\n ),\r\n );\r\n }\r\n\r\n return $this->find('all', array(\r\n 'conditions' => $conditions,\r\n 'joins' => array(\r\n array(\r\n 'table' => 'client_project_notes',\r\n 'alias' => 'Note',\r\n 'type' => 'left',\r\n 'conditions' => 'Note.project_id = ClientProject.id',\r\n ),\r\n ),\r\n 'fields' => array(\r\n 'ClientProject.id',\r\n 'Note.id',\r\n 'Note.project_id',\r\n 'Note.content',\r\n )\r\n ));\r\n }", "title": "" }, { "docid": "7ddb75da0cfd146f63a1b47d2bef36c8", "score": "0.44851214", "text": "private function criteria(){\n \t$id = $this->input->get_post('id', true);\n \t$time = $this->input->get_post('dt', true);\n \t$ip = $this->input->get_post('ip', true);\n \t$class = $this->input->get_post('cl', true);\n \t$subject = $this->input->get_post('su', true);\n $modified = explode(' - ', $time);\n $to = null; $from = null;\n if(!empty($class) && !is_array($class)){\n \t$class = explode(',', $class);\n }\n \n if(!empty($subject) && !is_array($subject)){\n \t$subject = explode(',', $subject);\n }\n\n $criteria = \" where `deleted` = 0 \";\n if(!empty($id)){\n \t$criteria .= \" AND `id` = '\".addslashes($id).\"' \";\n }\n if(is_array($modified)){\n if(count($modified) === 2){\n $from = $modified[0];\n $to = $modified[1];\n }\n if(count($modified) === 1){\n $from = $modified[0];\n }\n }\n if(!empty($from)){\n $from = date('Y-m-d', strtotime($from));\n $criteria .= \" AND `modified` >= '$from 00:00:00' \";\n }\n if(!empty($to)){\n $to = date('Y-m-d', strtotime($to));\n $criteria .= \" AND `modified` <= '$to 23:59:59' \";\n }\n if(!empty($ip)){\n \t$criteria .= \" AND `ipaddress` like '%\".addslashes($ip).\"%' \";\n }\n if(is_array($subject) && count($subject)){\n \t$tmpString = '';\n \tforeach($subject as $item){ $tmpString .= ($tmpString == \"\" ? \"\" : \",\").\"'$item'\"; }\n \t$criteria .= \" AND subject IN($tmpString) \";\n }\n if(is_array($class) && count($class)){\n \t$tmpString = '';\n \tforeach($class as $item){ $tmpString .= ($tmpString == \"\" ? \"\" : \",\").\"'$item'\"; }\n \t$criteria .= \" AND class IN($tmpString) \";\n }\n return $criteria;\n }", "title": "" }, { "docid": "b4a9e59a6709f2fd12c062d4e3233920", "score": "0.44791293", "text": "public function postSearchDate(Request $request)\n {\n $date['check_in'] = Request()->input('check_in');\n $date['check_out'] = Request()->input('check_out');\n //using function in booking repository to retrieve properties not booked within desired date range\n $properties = $this->propertyRepository->searchByDate($date);\n //return page with the results of the search\n return view('results', ['properties' => $properties]);\n }", "title": "" }, { "docid": "f9f1e221c1a21da0740e01828038eeae", "score": "0.44752902", "text": "public function filterByDate($query, $keyword, $dataBaseField = 'agronomic_date')\n {\n //Filter value \n $start = self::parseDate($keyword, $type = 'start');\n $end = self::parseDate($keyword, $type = 'end');\n //Empty search\n if(is_null($start) && is_null($end)){\n return $query;\n }\n //The query \n return $query->when($end === 'exact_search', function($query) use($dataBaseField, $start) { \n //Exact search (when the end date is null and want only the results for this date)\n return self::exactSearch($dataBaseField, $query, $start);\n })->when((!is_null($start) && !is_null($end)), function($query) use($dataBaseField, $start, $end) {\n //Search start and end\n return $query->whereBetween($dataBaseField, [\n self::formatDate($start, $type = 'start'),\n self::formatDate($end, $type = 'end')\n ]);\n })->when((!is_null($start) && is_null($end)), function($query) use($dataBaseField, $start) {\n //Only start >=\n return $query->where($dataBaseField, '>=', self::formatDate($start, $type = 'start'));\n })->when((is_null($start) && !is_null($end)), function($query) use($dataBaseField, $end) {\n //Only end <=\n return $query->where($dataBaseField, '<=', self::formatDate($end, $type = 'end'));\n });\n }", "title": "" }, { "docid": "d00203ca2a7954b8fab925946415e8d4", "score": "0.44751027", "text": "public function findByDateStaffVehicle($date, $staff, $vehicle)\n {\n $date = explode(' ', $date);\n\n return $this->createQueryBuilder('v')\n ->where('v.dateCheckup LIKE :date')\n ->andWhere('v.staff = :staff')\n ->andWhere('v.vehicle = :vehicle')\n ->andWhere('v.suppressed = 0')\n ->setParameter('date', $date[0] . '%')\n ->setParameter('staff', $staff)\n ->setParameter('vehicle', $vehicle)\n ->getQuery()\n ->getOneOrNullResult()\n ;\n }", "title": "" }, { "docid": "be013312ed15387887748192c54c796c", "score": "0.447385", "text": "function Search() {\r\n $details_course = '';\r\n $course = new Course(\"Course\");\r\n foreach ($course->getBookings() as $booking){\r\n \r\n if ($booking->start == $_POST['ddTime'] && $booking->day == $_POST['ddDay'])\r\n {\r\n $details_course .= $this->singleBooking($booking);\r\n }\r\n }\r\n \r\n $details_period='';\r\n $period = new Period(\"Period\");\r\n foreach ($period->getBookings() as $booking){\r\n \r\n if ($booking->start == $_POST['ddTime'] && $booking->day == $_POST['ddDay'])\r\n {\r\n $details_period .= $this->singleBooking($booking);\r\n }\r\n } \r\n \r\n $details_week = '';\r\n $week = new Week(\"Week\");\r\n foreach ($week->getBookings() as $booking){\r\n \r\n if ($booking->start == $_POST['ddTime'] && $booking->day == $_POST['ddDay'])\r\n {\r\n $details_week .= $this->singleBooking($booking);\r\n }\r\n } \r\n\r\n // Present this burger\r\n $this->data['details_course'] = $details_course;\r\n $this->data['details_period'] = $details_period;\r\n $this->data['details_week'] = $details_week;\r\n \r\n $this->data['ddDay'] = $_POST['ddDay'];\r\n $this->data['ddTime'] = $_POST['ddTime'];\r\n \r\n $this->data['pagebody'] = 'search';\r\n $this->render();\r\n }", "title": "" }, { "docid": "5390e6d9acf9c09cf9c2038ccf770a97", "score": "0.4465316", "text": "function day($ask,$date){\r\nglobal $EVENTS_TB,$CAT_TB,$USER_TB,$mth,$week,$m,$d,$y,$viewweekok,$viewcalok,$viewdayok,$allowsearch,$searchdayok,$popupevent,$popupeventwidth,$popupeventheight,$calstartyear,$caladvanceyear,$addeventok,$userview,$userlogin,$userid,$addeventwin_w,$addeventwin_h,$shortdesclen,$catview,$ugroup,$uname,$showuserentry,$publicview,$dayview_w,$notimeentry ;\r\n\r\nif (!isset($yda))\r\n $yda = '';\r\n\r\nif ($viewdayok==1){\r\n\r\nif (!$date){\r\n $year = $y;\r\n $month = $m;\r\n $day = $d;\r\n }\r\nelse{\r\n $year = substr($date,0,4);\r\n $month = substr($date,5,2);\r\n $day = substr($date,8,2);\r\n }\r\n\r\n$we = mktime(0,0,0,$month,$day,$year);\r\n$we = strftime(\"%w\",$we);\r\n$we++;\r\n\r\n// variables with exact digit without the leading 0 used for query and accessing array\r\n$vdm = $month;\r\nif (substr($vdm,0,1) == \"0\"){\r\n $vdm = str_replace(\"0\",\"\",$vdm);\r\n }\r\n$vda = $day;\r\nif (substr($vda,0,1) == \"0\"){\r\n $vda = str_replace(\"0\",\"\",$vda);\r\n }\r\n\r\n$weeknumber = weekNumber($day,$month,$year);\r\nif ($year>($y+$caladvanceyear)) $weeknumber = 53 ;\t// to ensure weeks cannot go beyond restricted dates\r\nif ($year<($calstartyear)) $weeknumber = 1 ;\t// to ensure weeks cannot go beyond restricted dates\r\n\r\necho \"<table border=0 width=$dayview_w cellspacing=0 align=center class=headerfont><tr><td align=left>\".translate(\"Events for day\");\r\necho \": \".$week[$we].\" \".$day.\" \" ;\r\nif (($year<=($y+$caladvanceyear))&&($year>=($calstartyear))) {\r\n\tif ($viewcalok==1) echo \"<a class=headerfont href='calendar.php?op=cal&month=\".$vdm.\"&year=\".$year.\"&catview=$catview'>\" ;\r\n\t}\r\necho $mth[$vdm];\r\nif (($year<=($y+$caladvanceyear))&&($year>=($calstartyear))) { \r\n\tif ($viewcalok==1) echo \"</a>\" ; \r\n\t}\r\necho \" \".$year.\" &nbsp; &nbsp; \" ;\r\nif ($viewweekok==1) echo \"<a href='cal_week.php?op=week&date=\".date(\"Y-m-d\", mktime(0,0,0,$month,$day,$year)).\"&catview=$catview'><img src=\\\"images/week.gif\\\" border=0 alt='\".translate(\"View week\").\" $weeknumber\".\"' width=16 height=16/></a>\" ;\r\n\r\n\t$weekday = date (\"w\", mktime(12,0,0,$vdm,$vda,$year));\r\n\t$weekday++;\r\n\r\nif ((($publicview==1)&&($uname!=\"\"))||($publicview==0)) {\r\n if ($addeventok==1){\r\n echo \" &nbsp; <a href='#$week[$weekday]' onclick=\\\"Javascript:wopen('cal_addevent.php?op=eventform&add_day=$day&add_month=$month&add_year=$year&catview=$catview','popupwin',\".$addeventwin_w.\",\".$addeventwin_h.\",'yes');\\\"><img src='images/plus.gif' border=0 valign=middle alt='\".translate(\"Add Event\").\"' width=11 height=11/></a>\" ;\r\n }\r\n}\r\n\r\necho \"</td>\" ;\r\necho \"<td align=right><div class=menufont>\" ;\r\n\r\n// display previous day and next day navigation\r\nif (($year > $calstartyear) || (($vdm > 1)&&($year == $calstartyear)) || (($vdm == 1)&&($year == $calstartyear)&&($vda>1))) {\r\n echo \"<a href=\\\"cal_day.php?op=day&date=\".date(\"Y-m-d\", mktime(0,0,0,$month,$day-1,$year)).\"&catview=$catview\r\n\\\"><< \".translate(\"Previous day\").\"</a> &nbsp; \" ;\r\n}\r\nelse echo \"&nbsp;\" ;\r\n$calendyear = $y + $caladvanceyear ;\r\nif (($year < $calendyear) || (($vdm < 12)&&($year == $calendyear)) || (($vdm == 12)&&($year == $calendyear)&&($vda<31))) {\r\n echo \"<a href=\\\"cal_day.php?op=day&date=\".date(\"Y-m-d\", mktime(0,0,0,$month,$day+1,$year)).\"&catview=$catview\\\">\".translate(\"Next day\").\" >></a> &nbsp; <br/>\";\r\n}\r\nelse echo \"&nbsp;\" ;\r\necho \"</div></td></tr></table>\";\r\n\r\n$query = \"select id,user,title,description,url,email,cat_name,starttime,endtime,day,month,year from \".$EVENTS_TB.\" left join \".$CAT_TB.\" on \".$EVENTS_TB.\".cat=\".$CAT_TB.\".cat_id where day='$vda' and month='$vdm' and year='$year' and approved='1'\";\r\n\r\nif ($catview!=0) $query = $query.\" and \".$EVENTS_TB.\".cat=$catview\";\r\n\r\nif (($userview==1)&&($userlogin==1)) { // user view user specific events only\r\n if ($ugroup!=0) {\r\n\t$query = $query. \" and user='\".$uname.\"'\" ;\r\n }\r\n }\r\n\r\n$query = $query.\" order by starttime,title ASC\" ;\r\n$result = mysql_query($query);\r\necho \"<table width=$dayview_w class=dayevent cellspacing=0 align=center><tr><td align=left>\" ;\r\nif (mysql_num_rows($result)!=0) {\r\n while ($row = mysql_fetch_object($result)){\r\n if ($notimeentry==0) {\r\n\t if ($row->starttime=='') echo \"<li>\" ;\r\n\t else showtime($row->starttime,$row->endtime,0);\r\n\t}\r\n\telse echo \"<li>\";\r\n\techo \"<b>\" ;\r\n\techo stripslashes($row->title) ;\r\n\tif (($showuserentry==1)&&($uname!=\"\")) echo \" &nbsp;&lt;\".$row->user.\"&gt;\" ;\r\n\techo \"</b>\";\r\n\tif (($notimeentry==1)||($row->starttime=='')) echo \"</li>\";\r\n\telse echo \"<br/>\";\r\n echo translate(\"Category\").\" : \".stripslashes($row->cat_name).\"<br/>\";\r\n\t$de = $row->description;\r\n// $de = str_replace(\"<br />\",\"\",$row->description);\r\n echo substr(stripslashes($de),0,$shortdesclen) ;\r\n if (($row->email!=\"\")||($row->url!=\"\")||(strlen($de)>$shortdesclen)) echo \" ...\\n\";\r\n else echo \"\\n\" ;\r\n echo \"<br/>\";\r\n if ($popupevent == 1)\r\n echo \"<div class=menufont><a href=\\\"Javascript:void(0);\\\" onclick=\\\"Javascript:popup(\".$row->id.\");\\\">\" ;\r\n else\r\n echo \"<div class=menufont><a href=cal_event.php?id=\".$row->id.\">\";\r\n echo translate(\"Read more\").\"</a></div>\";\r\n echo \"<hr/>\";\r\n }\r\n}\r\nelse echo \"&nbsp;<br/>\" ;\r\necho \"</td></tr></table>\" ;\r\n\r\n\r\n// this is for the goto day redirection javascript\r\necho \"<script language=\\\"JavaScript\\\" type=\\\"text/JavaScript\\\">\\n\" ;\r\necho \"\\tfunction gotoday(selectopt) {\\n\" ;\r\necho \"var geti = '1' ;\\n\" ;\r\necho \"for (i=0;i<selectopt.options.length;i++) {\\n\" ;\r\necho \"\\tif (selectopt.options[i].selected) {\\n\" ;\r\necho \"\\t\\tgeti = selectopt.options[i].value ;\\n\" ;\r\necho \"\\t\\tbreak ;\\n\" ;\r\necho \"\\t}\\n\" ;\r\necho \"}\\n\\n\" ;\r\necho \"\\t\\tswitch (geti) { \\n\" ;\r\n$dateinmonth = date(\"t\", mktime(0,0,0,$month,$day,$year)) ;\r\nfor ($i=1;$i<=$dateinmonth;++$i) {\r\n echo \"case \\\"\".$i.\"\\\" : { window.location.href='cal_day.php?op=day&date=\" ;\r\n echo date(\"Y-m-d\", mktime(0,0,0,$month,$i,$year)) ;\r\n echo \"&catview=$catview' ; break ;} \\n\" ;\r\n}\r\necho \"default : { window.location.href='cal_day.php?op=day&date=\".date(\"Y-m-d\", mktime(0,0,0,$month,$day,$year)).\"&catview=$catview' ; break;} \\n\" ;\r\necho \"\\t\\t}\\n\" ;\r\necho \"\\t}\\n\" ;\r\necho \"</script>\" ;\r\n\r\n\r\n// display form functions\r\necho \"<table border=0 width=$dayview_w align=center><tr><td align=left width=34%>&nbsp;</td>\" ;\r\necho \"<td align=center valign=middle width=33%>\" ;\r\necho \"<form><div class=menufont>\\n\";\r\necho \"<b>\".translate(\"Go to day\").\" </b>\" ;\r\n// get week number\r\necho \"<select name=goday onchange=\\\"javascript:gotoday(this);\\\"\" ;\r\nif (($year>($y+$caladvanceyear))||($year<($calstartyear))) echo \" disabled\" ;\r\necho \">\\n\";\r\nfor($i=1;$i<=$dateinmonth;$i++){\r\n echo \"\\t<option value=\".$i ;\r\n if ($day==$i) echo \" selected \" ;\r\n echo \">\".$i.\"\\n\";\r\n}\r\necho \"</select>\\n\";\r\n\r\nif ($viewweekok==1) {\r\n echo \"<b>\".translate(\"or week\").\" </b>\" ;\r\n // get week number\r\n echo \"<select name=goweek onchange=\\\"javascript:gotoweek(this);\\\">\\n\";\r\n for($i=1;$i<53;$i++){\r\n echo \"\\t<option value=\".$i ;\r\n if ($weeknumber==$i) echo \" selected \" ;\r\n echo \">\".$i.\"\\n\";\r\n }\r\n\r\nif (showWeek53($year)>52)\r\n {\r\n for($i=53;$i<=showWeek53($year);$i++){\r\n echo \"\\t<option value=\".$i ;\r\n if ($weeknumber==$i) echo \" selected \" ;\r\n echo \">\".$i.\"\\n\";\r\n }\r\n }\r\necho \"</select>&nbsp;&nbsp;\\n\";\r\n}\r\necho \"</div></form>\" ;\r\necho \"</td>\" ;\r\necho \"<td align=right valign=middle width=33%>\" ;\r\nif (($allowsearch==1)&&($searchdayok == 1)) search();\r\necho \"</td></tr></table>\" ;\r\n\r\n}\r\nelse {\r\n echo \"<br/><div class=titlefont>\".translate(\"disabled\").\".</div>\" ;\r\n }\r\n}", "title": "" }, { "docid": "9f97e5fb7faf6be4838df811837eb5fc", "score": "0.44578502", "text": "private function validateWorkout($additionalInfo) {\n\t\t$dateArray = $additionalInfo->date;\n\t\t$dateStr = $dateArray['year'] . '-' . $dateArray['month'] . '-' . $dateArray['day'];\n\t\tif(strtotime(date('m/d/y', time())) < strtotime($dateStr)) {\n\t\t\terror_log('date is in the future');\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a0529eadeb59c06143898fb1e552f574", "score": "0.44552872", "text": "public function getSpecialFromDate();", "title": "" }, { "docid": "d77c2832cf360b0ad1a9e8093f153f99", "score": "0.445495", "text": "function find_date( $string ) {\n\t//Define month name:\n\t$month_names = array( \n\t\t\"january\",\n\t\t\"february\",\n\t\t\"march\",\n\t\t\"april\",\n\t\t\"may\",\n\t\t\"june\",\n\t\t\"july\",\n\t\t\"august\",\n\t\t\"september\",\n\t\t\"october\",\n\t\t\"november\",\n\t\t\"december\"\n\t);\n\t$month_number=$month=$matches_year=$year=$matches_month_number=$matches_month_word=$matches_day_number=\"\";\n\t\n\t//Match date: 01/01/2015\n\tpreg_match(\"/(0[1-9]|1[012])[- \\/.](0[1-9]|[12][0-9]|3[01])[- \\/.](19|20)\\d\\d/\", $string, $matches);\n\n\t\techo \"<pre>\"; print_r($matches);\n\tif($matches){\n\t}\n\n\t//Match dates: 01/01/2012 or 30-12-11 or 1 2 1985\n\tpreg_match( '/([0-9]?[0-9])[\\.\\-\\/ ]?([0-1]?[0-9])[\\.\\-\\/ ]?([0-9]{2,4})/', $string, $matches );\n\tif ( $matches ) {\n\t\tif ( $matches[1] )\n\t\t\t$day = $matches[1];\n\t\tif ( $matches[2] )\n\t\t\t$month = $matches[2];\n\t\tif ( $matches[3] )\n\t\t\t$year = $matches[3];\n\t}\n\t//Match month name:\n\tpreg_match( '/(' . implode( '|', $month_names ) . ')/i', $string, $matches_month_word );\n\tif ( $matches_month_word ) {\n\t\tif ( $matches_month_word[1] )\n\t\t\t$month = array_search( strtolower( $matches_month_word[1] ), $month_names ) + 1;\n\t}\n\t//Match 5th 1st day:\n\tpreg_match( '/([0-9]?[0-9])(st|nd|th)/', $string, $matches_day );\n\tif ( $matches_day ) {\n\t\tif ( $matches_day[1] )\n\t\t\t$day = $matches_day[1];\n\t}\n\t//Match Year if not already setted:\n\tif ( empty( $year ) ) {\n\t\tpreg_match( '/[0-9]{4}/', $string, $matches_year );\n\t\tif ( $matches_year[0] )\n\t\t\t$year = $matches_year[0];\n\t}\n\tif ( ! empty ( $day ) && ! empty ( $month ) && empty( $year ) ) {\n\t\tpreg_match( '/[0-9]{2}/', $string, $matches_year );\n\t\tif ( $matches_year[0] )\n\t\t\t$year = $matches_year[0];\n\t}\n\t//Leading 0\n\tif ( 1 == strlen( $day ) )\n\t\t$day = '0' . $day;\n\t//Leading 0\n\tif ( 1 == strlen( $month ) )\n\t\t$month = '0' . $month;\n\t//Check year:\n\tif ( 2 == strlen( $year ) && $year > 20 )\n\t\t$year = '19' . $year;\n\telse if ( 2 == strlen( $year ) && $year < 20 )\n\t\t$year = '20' . $year;\n\t$date = array(\n\t\t'year' \t=> $year,\n\t\t'month' => $month,\n\t\t'day' \t=> $day\n\t);\n\t//Return false if nothing found:\n\tif ( empty( $year ) && empty( $month ) && empty( $day ) )\n\t\treturn false;\n\telse\n\t\treturn $date;\n}", "title": "" }, { "docid": "33ba32bc588abf48530ec0efee527960", "score": "0.44541413", "text": "public function createwoPoSearchAction()\n\t{\n\t\t$ItemID = $this->params->requests->getParam('cwpo_filter_ref_item', 0);\n\t\t$LineID = $this->params->requests->getParam('cwpo_filter_ref_line', 0);\n\t\t$start = $this->params->requests->getParam('cwpo_filter_start', '');\n\n\t\t$this->html->ProductionOrder = $this->_production->getProductionOrdersForCreateWorkOrders(\n\t\tQss_Lib_Date::displaytomysql($start), $LineID, $ItemID);\n\t\t$this->html->date = $start;\n\t}", "title": "" }, { "docid": "0802b50bc4b282c687eb9e9ce737457e", "score": "0.44531998", "text": "private function obsDay()\n {\n return (new Hexpress())->maybe($this->CFWS())->has(new Character('(?P>day)'))->with($this->CFWS());\n }", "title": "" }, { "docid": "3da9566df3a90695cb58a43de74cfe6c", "score": "0.4451304", "text": "public function search()\n {\n $day = $_POST['search_day'];\n $slot = $_POST['search_slot'];\n $timesResultArray = array();\n $daysResultArray = array();\n $coursesResultArray = array();\n $searchResultsArray = array();\n if (!empty($day) && !empty($slot))\n {\n $bookingFromTimesFacet = $this->timetable->findBookingsUsingTimesFacet($day, $slot);\n $bookingFromDaysFacet = $this->timetable->findBookingsUsingDaysFacet($day, $slot);\n $bookingFromCoursesFacet = $this->timetable-> findBookingsUsingCoursesFacet($day, $slot);\n \n if ($bookingFromTimesFacet != NULL && $bookingFromDaysFacet != NULL && $bookingFromCoursesFacet != NULL)\n {\n if ($bookingFromTimesFacet->time == $bookingFromDaysFacet->time && $bookingFromTimesFacet->time == $bookingFromCoursesFacet->time &&\n $bookingFromTimesFacet->day == $bookingFromDaysFacet->day && $bookingFromTimesFacet->day == $bookingFromCoursesFacet->day &&\n $bookingFromTimesFacet->course == $bookingFromDaysFacet->course && $bookingFromTimesFacet->course == $bookingFromCoursesFacet->course &&\n $bookingFromTimesFacet->room == $bookingFromDaysFacet->room && $bookingFromTimesFacet->room == $bookingFromCoursesFacet->room &&\n $bookingFromTimesFacet->instructor == $bookingFromDaysFacet->instructor && $bookingFromTimesFacet->instructor == $bookingFromCoursesFacet->instructor &&\n $bookingFromTimesFacet->type == $bookingFromDaysFacet->type && $bookingFromTimesFacet->type == $bookingFromCoursesFacet->type)\n {\n $bookingFromTimesFacet->facet = \"all\";\n $searchResultsArray[] = $bookingFromTimesFacet; \n $this->data['message'] = \"BINGO\";\n }\n else\n {\n $bookingFromTimesFacet->facet = \"times\";\n $searchResultsArray[] = $bookingFromTimesFacet;\n $bookingFromDaysFacet->facet = \"days\";\n $searchResultsArray[] = $bookingFromDaysFacet;\n $bookingFromCoursesFacet->facet = \"courses\";\n $searchResultsArray[] = $bookingFromCoursesFacet;\n $this->data['message'] = \"Inconsistent data found\";\n }\n }\n else if ($bookingFromTimesFacet == NULL && $bookingFromDaysFacet == NULL && $bookingFromCoursesFacet == NULL)\n {\n $this->data['message'] = \"No booking found\";\n }\n else \n {\n if ($bookingFromTimesFacet != NULL)\n {\n $bookingFromTimesFacet->facet = \"times\";\n $searchResultsArray[] = $bookingFromTimesFacet;\n }\n if ($bookingFromDaysFacet != NULL)\n {\n $bookingFromDaysFacet->facet = \"days\";\n $searchResultsArray[] = $bookingFromDaysFacet;\n }\n if ($bookingFromCoursesFacet != NULL)\n {\n $bookingFromCoursesFacet->facet = \"courses\";\n $searchResultsArray[] = $bookingFromCoursesFacet;\n }\n $this->data['message'] = \"Inconsistent data found\";\n }\n }\n else\n {\n $this->data['message'] = \"You must select both a day and a slot!\"; \n }\n $this->data['search_results'] = $searchResultsArray;\n $this->index(); \n }", "title": "" }, { "docid": "4fe05223112a278930de8340497d97f1", "score": "0.44468302", "text": "function listall(&$db) { //####LISTALL_LISTALL_LISTALL_LISTALL_LISTALL_LISTALL_LISTALL_####\n\n// List all records in date range\n $fromdate = FormatDateForSQL($_POST['FromDate']);\n $todate = FormatDateForSQL($_POST['ToDate']);\n\t$sql = \"SELECT calendardate,\n\t daynumber,\n\t manufacturingflag,\n\t DAYNAME(calendardate) as dayname\n\t\tFROM mrpcalendar\n\t\tWHERE calendardate >='$fromdate'\n\t\t AND calendardate <='$todate'\";\n\n\t$ErrMsg = _('The SQL to find the parts selected failed with the message');\n\t$result = DB_query($sql,$db,$ErrMsg);\n\t\t\n\techo \"</br><center><table border=1>\n\t\t<tr BGCOLOR =#800000>\n\t\t <th>\" . _('Date') . \"</th>\n\t\t\t<th>\" . _('Manufacturing Date') . \"</th>\n\t\t</tr></font>\";\n $ctr = 0;\n\twhile ($myrow = DB_fetch_array($result)) {\n\t $flag = _('Yes');\n\t if ($myrow['manufacturingflag'] == 0) {\n\t $flag = _('No');\n\t }\n\t\tprintf(\"<tr><td>%s</td>\n\t\t\t\t<td>%s</td>\n\t\t\t\t<td>%s</td>\n\t\t\t\t</tr>\",\n\t\t\t\tConvertSQLDate($myrow[0]),\n\t\t\t\t_($myrow[3]),\n\t\t\t\t$flag);\n\t} //END WHILE LIST LOOP\n\t\n\techo '</table></center>';\n echo '</br></br>';\n unset ($ChangeDate);\n display($db,$ChangeDate);\n\n\n\n}", "title": "" }, { "docid": "727b7756e873a507eeec984053412eb7", "score": "0.4436668", "text": "public function findDate(int $nbSeconds)\n {\n if($nbSeconds >= 0) {\n $interval = DateInterval::createFromDateString($nbSeconds . 'seconds');\n $findDate = $this->getStart()->add($interval);\n } else {\n $nbSeconds = -$nbSeconds;\n $interval = DateInterval::createFromDateString($nbSeconds . 'seconds');\n $findDate = $this->getStart()->sub($interval);\n }\n return 'Doc a été retrouvé, nous sommes le ' . $findDate->format('d/m/Y') . '<br/>';\n }", "title": "" } ]
fc91233738042d7da8fd5aebfb149923
/ Initialize action controller here
[ { "docid": "2274027479eb91f70623cb31eb23e4c5", "score": "0.0", "text": "public function init() {\n\t\t$this->view->placeholder('actionmenu')->append('<a href=\"' . $this->view->url(array('controller' => 'game', 'action' => 'add'), 'default') . '\">Add</a>');\n\t}", "title": "" } ]
[ { "docid": "6bf98b7e3493ef421c50e34e974aa238", "score": "0.7727847", "text": "public function initializeAction() {\n\t}", "title": "" }, { "docid": "57a7624010c31d13bc382a0ded13c4c5", "score": "0.7626292", "text": "protected function init()\n {\n\n $path = $this->request->getUri()->getPath();\n $pathsBroken = explode('/', $path);\n $controllerPath = $actionPath = 'index';\n if (!empty($pathsBroken[1])) {\n $controllerPath = $pathsBroken[1];\n }\n if (!empty($pathsBroken[2])) {\n $actionPath = $pathsBroken[2];\n }\n $this->setControllerObject($controllerPath);\n $this->setControllerAction($actionPath);\n\n }", "title": "" }, { "docid": "0d124df0c552ea35d2dc1dcd0196289b", "score": "0.7593484", "text": "public function init() {\n\t\t$this->_action = new Default_Model_Action;\n\t}", "title": "" }, { "docid": "595bac98a1e6dffb846ba8d8a2323161", "score": "0.7580921", "text": "function __construct($controller,$action)\n {\n $this->_controller=$controller;\n $this->_action=$action;\n }", "title": "" }, { "docid": "0e4d8e81c003a5155bdca376b3c35fb7", "score": "0.7570082", "text": "public function init()\n {\n // extend this t' initialise th' controller\n }", "title": "" }, { "docid": "5a5890435be48ee2cebbf57f0f5be0a9", "score": "0.7548679", "text": "public function __construct($controller, $action){\n $this->_controller = $controller;\n $this->_action = $action;\n $this->request = new Input();\n // $this->view = new View();\n }", "title": "" }, { "docid": "30abb96a0feff360d03507318febc466", "score": "0.7545845", "text": "public function __construct ()\n {\n $this->_controller = get_class($this);\n $this->_action = $_REQUEST['action'];\n $this->_layout = 'default';\n if (! strlen($this->_action)) {\n $this->_action = 'index';\n }\n $actionName = $this->_action . 'Action';\n if (method_exists($this, $actionName)) {\n $this->_view = $this->_action;\n $this->init();\n $this->$actionName();\n } else {\n throw new Exception_Action(\"Invalid Action $actionName called\");\n }\n }", "title": "" }, { "docid": "a50dc0be51ecd88debafb857a24d2816", "score": "0.7540251", "text": "public function __construct($controller,$action) {\n\t\tparent::__construct($controller, $action);\n\t\t\n\t}", "title": "" }, { "docid": "53e2733b1210e05b42b65ad01b9876d8", "score": "0.75068057", "text": "public function init()\n\t{\n\t\t$this->view = new View();\n\t $this->request = \\Symfony\\Component\\HttpFoundation\\Request::createFromGlobals();\n\t\t$this->view->settings->action = $this->action;\n\t\t$this->view->settings->controller = strtolower(str_replace('Controller', '', get_class($this)));\n\t}", "title": "" }, { "docid": "bc8bfc80686c80ddbd00b9830eb392c0", "score": "0.7501351", "text": "protected function initializeController() {\t\t\n\t\t$this->articleRepository = $this->container->getInstance('Tx_Mvcnews_Domain_Model_ArticleRepository');\n\t}", "title": "" }, { "docid": "b2e207c7766af18b12e8e8bff2706a36", "score": "0.74859905", "text": "protected function initializeAction()\n\t{\n\t\t$this->nj_domain_model = \"Header\";\n\t\t$this->nj_domain = strtolower($this->nj_domain_model);\n\t\tparent::init($this->nj_domain_model);\n\t}", "title": "" }, { "docid": "86cb38c83f9ac0176e4e68a8ffe6d7bf", "score": "0.74764353", "text": "public function initializeAction()\n {\n parent::initializeAction();\n //todo check if $this->settings['switchableControllerActions'] really is needed\n $cObj = $this->configurationManager->getContentObject();\n if($cObj && isset($cObj->data['uid'])){\n $pluginConfiguration = $this->div->getPluginConfiguration($cObj->data['uid']);\n $this->settings['switchableControllerActions'] = $pluginConfiguration['switchableControllerActions'];\n }\n }", "title": "" }, { "docid": "d0df5f24f79a06e09861c36d84a9da39", "score": "0.74567777", "text": "protected function initializeAction()\n {\n $this->nj_domain_model = \\N1coode\\NjCollection\\Utility\\General::getShortClassName(__CLASS__);\n\t\t$this->init();\n }", "title": "" }, { "docid": "4bf23ff6e7722986b40cb954ae4ff51b", "score": "0.7437709", "text": "public function init()\n {\n $controller = isset($_GET['c']) ? $_GET['c'] : 'index';\n if (array_key_exists($controller, $this->controllers)) {\n $this->callAction($this->controllers[$controller], $this->getAction());\n } else {\n $this->callAction(FrontController::DEFAULT_CONTROLLER);\n }\n }", "title": "" }, { "docid": "0f07b556cfa060fc1a95a9234ba8a587", "score": "0.74275666", "text": "function __construct($controller, $action) {\n $this->_controller = $controller;\n $this->_action = $action;\n }", "title": "" }, { "docid": "94b94d25bbe7c313f289e6d26302b5ba", "score": "0.7385681", "text": "public function __construct()\n\t{\n\t\t$router = framewerk_RouterFactory::getRouter();\n\n\t\t// Instantiate the controller\n\t\t$controller_name = $router->getController();\n\t\t$class_name = 'controller_' . $controller_name;\n\n\t\t$controller = new $class_name;\n\n\t\t$action_name = $router->getAction();\n\n\t\t// Else, try and call the action sent in request string. If that does not exist, try and get the controllers default action\n\t\t$action = is_callable(array($controller, $action_name)) ? $action_name : $controller->default_action;\n\t\t\n\t\tif(!$action)\n\t\t{\n\t\t\theader(\"HTTP/1.0 404 Not Found\");\n\t\t\texit;\n\t\t}\n\n\t\t// Set some view defaults. Templates are mapped to ControllerName/actionName.tpl.php\n\t\t$controller->view->setController($controller_name);\n\t\t$controller->view->setAction($action);\n\t\t$controller->view->setRequestId($router->getRequestId());\n\n\t\t// Does this action have a definition in the controller?\n\t\t$action_definition_name = $action_name.'_definition';\n\n\t\tif(isset($controller->$action_definition_name))\n\t\t{\n\t\t\t$action_definition = $controller->$action_definition_name;\n\n\t\t\t$request_data = $router->getRequestData($action_definition['data_source']);\n\n\t\t\t// If data_source is empty, do not create the request object\n\t\t\t// This allows actions to actually check whether an action should be performed, or just view.\n\t\t\tif(!empty($request_data)) $controller->request = new framewerk_Request($action_definition, $request_data);\n\t\t}\n\n\t\t// Pass input data back to the view - before action, so action can overwrite if needed\n\t\tif($controller->request && Config::populateViewWithRequestData())\n\t\t{\n\t\t\t$controller->view->setData($controller->request->input_data_objects);\n\t\t}\n\n\n\t\t// Call the action\n\t\t$controller->$action();\n\n\t\t/*\n\t\t// Check for invalid / invalidated data, create notices\n\t\tif($controller->request)\n\t\t{\n\t\t\tif(!$controller->request->isValid())\n\t\t\t{\n\t\t\t\tforeach($controller->request->getInvalidObjects() as $field_name => $input_data_object)\n\t\t\t\t{\n\t\t\t\t\t// If this field has a message\t\t\t\t\t\n\t\t\t\t\tif( ($message = $input_data_object->getError()) ) $controller->view->setNotice($message, framewerk_Notice::TYPE_ERROR, $field_name);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t*/\n\n\t\t// Render the view.\n\t\t$controller->view->render();\n\t}", "title": "" }, { "docid": "17234a2f1db8bbd3a60ef05d163afcca", "score": "0.73785454", "text": "public function init()\n {\n // Initialize action controller here\n $this->_submittedButton = $this->_getParam(self::SUBMIT_BUTTON);\n\n // Load the shared translation adapter from the zend registry\n $this->adapter = Zend_Registry::get('Zend_Translate');\n }", "title": "" }, { "docid": "57c75b137fb71f38d551b64635f226ad", "score": "0.7347326", "text": "public function __construct()\n {\n // Prepare the action for execution, leveraging constructor injection.\n }", "title": "" }, { "docid": "57c75b137fb71f38d551b64635f226ad", "score": "0.7347326", "text": "public function __construct()\n {\n // Prepare the action for execution, leveraging constructor injection.\n }", "title": "" }, { "docid": "a96c715445caaaa38c1fbc499ab92edc", "score": "0.7313549", "text": "public function init()\n {\n $this->_arrParam = $this->_request->getParams();\n\n //Duong dan cua Controller\n $this->_currentController = '/' . $this->_arrParam['module']\n . '/' . $this->_arrParam['controller'];\n\n //Duong dan cua Action chinh\n $this->_actionMain = '/' . $this->_arrParam['module']\n . '/' . $this->_arrParam['controller']\t. '/index';\n\n\n $this->view->arrParam = $this->_arrParam;\n $this->view->currentController = $this->_currentController;\n $this->view->actionMain = $this->_actionMain;\n\n }", "title": "" }, { "docid": "177e37d6a2a7a6a86cc464124f973576", "score": "0.73009264", "text": "protected function initializeAction() {\n\n\t\t// Language inclusion\n\t\tglobal $LANG;\n\t\t$LANG->includeLLFile(\"EXT:taxonomy/Resources/Private/Language/locallang.xml\");\n\n\t\t// Initialize Repository\n\t\t$this->conceptRepository = t3lib_div::makeInstance('Tx_Taxonomy_Domain_Repository_ConceptRepository');\n\n\t\t// Initilize properties\n\t\t$this->template = t3lib_div::makeInstance('template');\n\t\t$this->pageRenderer = $this->template->getPageRenderer();\n\t\t\n\t\t// Defines CSS + Javascript resource file\n\t\t$this->javascriptPath = t3lib_extMgm::extRelPath('taxonomy') . 'Resources/Public/JavaScript/';\n\t\t$this->stylesheetsPath = t3lib_extMgm::extRelPath('taxonomy') . 'Resources/Public/Media/StyleSheets/';\n\t\t$this->imagePath = t3lib_extMgm::extRelPath('taxonomy') . 'Resources/Public/Icons/';\n\n\t\t$this->loadStylesheets();\n\t\t$this->loadJavascript();\n\t}", "title": "" }, { "docid": "00c809c1d61e2c387d5be786e4e5254f", "score": "0.7279361", "text": "public function init() {\n if ( null == $currentAction )\n $postedAction = $_POST[ Router::ACTION_FORM_VAR_NAME ];\n else\n $postedAction = $this->app->getCurrentAction()->getName();\n \n // Action Controller and Validation\n // Default page: List\n if ( empty( $postedAction ) ) {\n $this->currentAction = $this->getAction( $this->defaultActionName ); //default action\n } else {\n // Validates if actions exists\n if ( array_key_exists( $postedAction, $this->routes() ) ) {\n $this->currentAction = $this->getAction( $postedAction );\n \n } else {\n $this->addAction( \"404\" );\n $this->app->setErrorMessage( $postedAction );\n $this->currentAction = $this->getAction( \"404\" );\n \n }\n \n }\n \n // Specif set the Primary Key of the data being manipulated\n $this->currentAction->setPk( $_POST[ Router::PK_FORM_VAR_NAME ] );\n \n // Should pass only non framework data, but mabe later\n $this->currentAction->setFieldValues( $_POST );\n \n // Calls the execute command of the current action\n $this->currentAction->execute();\n \n // Executes a redirection if configured\n if ( null != $this->currentAction->getRedirectActionName() ) {\n $this->currentAction = $this->getAction( $this->currentAction->getRedirectActionName() );\n $this->currentAction->execute();\n }\n \n }", "title": "" }, { "docid": "54ef05f75b95b183d709373c26018e23", "score": "0.72723466", "text": "protected function initializeAction() {\n\t\t$this->categorieRepository = t3lib_div::makeInstance('Tx_Extbasenews_Domain_Repository_CategorieRepository');\n\t}", "title": "" }, { "docid": "3023ad9c5aec141030cb0553fced5c31", "score": "0.726585", "text": "Protected Function initializeAction() {\n\t\t$this->associationRepository =& t3lib_div::makeInstance('Tx_EcAssociation_Domain_Repository_AssociationRepository');\n\t\t$this->userRepository =& t3lib_div::makeInstance('Tx_Extbase_Domain_Repository_FrontendUserRepository');\n\t}", "title": "" }, { "docid": "5289d69f9bdc993d46a5b5a133a834ce", "score": "0.7255666", "text": "public function __construct(){\n \n //Setup sessions\n Session::start();\n \n //Get controller, action & params from user\n $this->splitUrl();\n \n // check for the controller.. Does it exist?\n $controllerFile = './application/controllers/' . (($this->area) ? $this->area . '/' : '') . $this->controller . '.php';\n \n if(file_exists($controllerFile)){\n //if so, load the controller and create a new object\n require($controllerFile);\n $this->controller = new $this->controller();\n \n //Now check for an action\n if(method_exists($this->controller, $this->action)){\n call_user_func_array(array($this->controller, $this->action), $this->params);\n } else {\n //Fallback to the default index action\n //$this->controller->index();\n //die(\"Invalid URL (1)\");\n Redirect::to(404);\n }\n } else {\n //Invalid URL.. Show 404? \n //die(\"Invalid URL (2)\");\n Redirect::to(404);\n }\n \n }", "title": "" }, { "docid": "debb8eb06bab1df8816a3468c4dc265d", "score": "0.72423685", "text": "function action_init() {\n\t}", "title": "" }, { "docid": "c44d279be83455105f8ccebdae7eefc8", "score": "0.7234054", "text": "public function __construct(){\n $this->routeArray = app('request')->route()->getAction();\n $this->controllerAction = class_basename($this->routeArray['controller']);\n }", "title": "" }, { "docid": "ff29961b6417d67abf7f4d11e5c058db", "score": "0.72338855", "text": "protected function initializeAction() {\n\t\t$this->eventRepository = t3lib_div::makeInstance('Tx_CalendarDisplay_Domain_Repository_EventRepository');\n\t\t$this->resourceRepository = t3lib_div::makeInstance('Tx_CalendarDisplay_Domain_Repository_ResourceRepository');\n\t\t$this->resourceCategoryRepository = t3lib_div::makeInstance('Tx_CalendarDisplay_Domain_Repository_ResourceCategoryRepository');\n\t\t$this->feUserRepository = t3lib_div::makeInstance('Tx_CalendarDisplay_Domain_Repository_FeUserRepository');\n\t}", "title": "" }, { "docid": "a0cfe54411fdd83cab02e78ab7b5f52f", "score": "0.7202668", "text": "public function __construct($controller,$action) {\n\t\t\tparent::__construct($controller, $action);\n\t\t\t\n\t\t\t// Load models\n\t\t\t$this->load_model('User');\n\t\t}", "title": "" }, { "docid": "6ad59d21a05e774e8875da1ec67bf28d", "score": "0.719852", "text": "public function __construct($controller, $action)\r\n {\r\n parent::__construct($controller, $action);\r\n // Load models\r\n $this->load_model('Document');\r\n }", "title": "" }, { "docid": "2b3469208f4df91d755d97d9b6ac9b2d", "score": "0.71939474", "text": "public function __construct()\n\t{\n\t\t// Hook into routing right after controller object is created\n\t\tEvent::add('system.post_controller', array($this, 'add'));\n\t}", "title": "" }, { "docid": "f9e50ef2960983b6b1d4a91ee2caca23", "score": "0.71808314", "text": "public function action_init()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "16c8747c53a279d24cb7c1fdef842aea", "score": "0.7136601", "text": "public function __construct()\n\t{\n\t\t// construct Controller\n\t\tparent::__construct();\n\t\t// Parse default data about app\n\t\t$this->data['App'] = $this->App;\n\t}", "title": "" }, { "docid": "4bab1d1296db83c99d9efef461c9e1d0", "score": "0.71300524", "text": "public function init()\n\t{\n\t\t$this->view->assign(array (\n\t\t\t'controllerName' => $this->getRequest()->getControllerName(),\n\t\t));\n\t}", "title": "" }, { "docid": "3b4994ddad2c380dd4ff7125ff472aa8", "score": "0.71283317", "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\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$template_path = TEMPLATE_PATH . \"/admin/system\";\n\t\t$this->loadTemplate($template_path, 'template.ini', 'template');\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;\n\t}", "title": "" }, { "docid": "00e990a49f869d8070b42dbd0b8bc8b7", "score": "0.71186215", "text": "function __construct(){\n\t\t$this->request = new Request(); \n\t\tRouter::parse($this->request->url,$this->request); \n \n\t\t$controller = $this->loadController();\n $action = $this->request->action;\n\t\tif($this->request->prefix){\n\t\t\t$action = $this->request->prefix.'_'.$action;\n\t\t}\n \n \n $par=true;\n foreach($this->request->params as $k=>$v){\n $v=filter_var($v,FILTER_VALIDATE_INT);\n if($v===false){\n $par=false;\n }\n }\n if(($this->request->action=='confirm')&&($this->request->controller=='users')){\n $par=true ; \n }\n if(($this->request->action=='index')&&($this->request->controller=='users')){\n $par=true ; \n }\n if($par===true){\n call_user_func_array(array($controller,$action),$this->request->params); \n \n }\n else{\n $this->error($controller->s['l_error']) ;\n }\n\t\t\n \n //modifier cette partie pour avoir un appel direct au model sans l'intermédiare du controlleur\n \n $this->aclick($this->request);\n \n if ($this->request->norend==false)\n {\n \n $controller->render($action); \n }\n \n \n\t\t\n\t}", "title": "" }, { "docid": "af2405fd3fde2fe7b418737a93ffac09", "score": "0.7107492", "text": "protected function initializeAction() {\r\n\t\t$this->opengraphRepository = t3lib_div::makeInstance('Tx_In2facebook_Domain_Repository_OpengraphRepository');\r\n\t}", "title": "" }, { "docid": "eff590ca71f6b216434996cc0a979f58", "score": "0.7106956", "text": "protected function initializeAction()\n\t{\n\t\tparent::init('Blog');\n\t}", "title": "" }, { "docid": "a22695f56666815e1141f47adac33487", "score": "0.70945734", "text": "public function __construct($controller, $action)\r\n\t{\r\n\t\t\r\n\t\tif (isset($_SESSION['user_id'])) $this->user_id = $_SESSION['user_id'];\r\n\r\n\t\t$this->controller = $controller;\r\n\t\t$this->action = $action;\r\n\t\t\r\n\t\t$this->tools = Helper_Functions::getInstance();\r\n\t}", "title": "" }, { "docid": "36f10fe19ad1967c6d91d05e14a3e9ca", "score": "0.708578", "text": "public function __construct() {\n if(!empty(App::post('uid'))) {\n App::setUID(App::post('uid'));\n }\n if(!empty(App::get('lang')) || !empty(App::post('lang'))) {\n Translator::setLanguage(App::get('lang') ?? App::post('lang'));\n }\n if(!empty(App::get('r'))) {\n $url = \"/\".App::get('r');\n } else { // Pretty URL\n $uri = substr($_SERVER['REQUEST_URI'],0,strpos($_SERVER['REQUEST_URI'].'?','?'));\n $url = str_replace($_SERVER['BASE'], '', $uri);\n }\n // Uppercase char with prefix _\n $url = str_replace(\" \",\"\",ucwords(str_replace(\"_\", \" \", $url)));\n $controllerName = ucfirst(substr($url,1,strpos($url.\"/\",\"/\",1)-1));\n if (!empty($controllerName)) {\n $controllerNameLength = strlen($controllerName)+2;\n $actionName = 'action' . ucfirst(substr($url,$controllerNameLength,strpos($url.\"/\",\"/\",$controllerNameLength)-1));\n $actionName = ($actionName!='action') ? $actionName : 'index';\n } else {\n $controllerName=ucfirst(App::params('defaultController'));\n $actionName='index';\n }\n $controllerName = 'app\\\\controllers\\\\' . $controllerName . 'Controller';\n \n if (class_exists($controllerName)) {\n $controller = new $controllerName();\n if (@method_exists($controller,$actionName)) {\n $controller->$actionName();\n } elseif (@method_exists($controller,'index')) {\n Log::add(\"errorsFile\",__METHOD__, \"Controller $controllerName has no action $actionName\");\n $controller->index();\n } else {\n Log::add(\"errorsFile\",__METHOD__, \"Controller $controllerName has no Index action\");\n }\n } else {\n http_response_code(404);\n if (file_exists(self::$error404Page)) {\n include self::$error404Page;\n }\n die();\n }\n }", "title": "" }, { "docid": "364ff26e89c5abc4ca09b896b22cfd42", "score": "0.7079327", "text": "public function __construct()\n {\n parent::__construct();\n parent::controller();\n }", "title": "" }, { "docid": "5ee037c10be1543297e78b6e61dc8d1d", "score": "0.70482826", "text": "protected function _initControllers()\n\t{\n\t\treturn;\n\t}", "title": "" }, { "docid": "40aa3e55f466a70b4d7d373b77f01f33", "score": "0.7045323", "text": "public function __construct()\n { \n // Hook into routing\n Event::add('system.pre_controller', array($this, 'add'));\n }", "title": "" }, { "docid": "2b3e7e60bff75547c0cce8f270b153ae", "score": "0.69965917", "text": "public function __construct($controller,$action) {\n\t\tparent::__construct($controller, $action);\n\t\t$this->db = new \\Application\\Facade();\n\n\t\t\n\t}", "title": "" }, { "docid": "8bc30ee0e98051d65e0b3098127846c3", "score": "0.69814324", "text": "public function __construct() {\n \n # Makke ure the base controller construct gets called\n parent::__construct();\n \t}", "title": "" }, { "docid": "854695285b8e0fb6f99409ce31189c4f", "score": "0.697932", "text": "public function __construct()\n\t{\n\t\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t\t\n\t}", "title": "" }, { "docid": "8bb1ad3f984d41730ccd37b059531431", "score": "0.6970076", "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')) {\r\n $this->site_url = SITEURL;\r\n }\r\n if (defined('SITEASSET')) {\r\n $this->site_asset = SITEASSET;\r\n }\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 }", "title": "" }, { "docid": "477abd948d8da178e5a05c1b781af7b8", "score": "0.69685507", "text": "public function init()\n {\n // this method is called by CController::beginWidget()\n\t\t$this->controller = $this->getController();\n\t}", "title": "" }, { "docid": "2bd230d82cb3f7044a18cae4f03e28bc", "score": "0.69592553", "text": "public function __construct()\n\t\t{\n\t\t\tparent::__construct();\n\t\t\t$routeInfo = $this->getUrlData();\n\t\t\t$routeList = $this->getRoutes();\n\t\t\t$routeName = $routeInfo[\"routeName\"];\n\t\t\t$controller = \"\\\\controllers\\\\\" . $routeList[$routeName][\"controller\"];\n\t\t\t$action = $routeList[$routeName][\"action\"] . \"Action\";\n\t\t\t$routeController = new $controller($action);\n\t\t\tif ($this->getFatalError()) {\n\t\t\t\t$this->renderError();\n\t\t\t}\n\t\t\t$routeController->render();\n\n\t\t}", "title": "" }, { "docid": "9224437f2f27e230e9e4591310df8791", "score": "0.69282895", "text": "public function initController()\n\t{\n\t\t// already created\n\t\t// already created\n\t\tif ($this->controller instanceof Controller) {\n\t\t\treturn;\n\t\t}\n\t\t$slug = $this->request->getControllerString();\n//\t\tllog($slug);\n\t\tif (!$slug) {\n\t\t\tthrow new Exception404($slug);\n\t\t}\n\t\tif ($_REQUEST['d']) {\n\t\t\t$this->log(__METHOD__, $slug);\n\t\t}\n\t\t$this->loadController($slug);\n\t\t$this->bodyClasses[] = is_object($this->controller) ? get_class($this->controller) : '';\n\t\tTaylorProfiler::stop(__METHOD__);\n\t}", "title": "" }, { "docid": "8c80e722f4986ead3188102338f83d2a", "score": "0.6919274", "text": "public function __construct()\n {\n // Make config globally available.\n if (defined('APP_CONFIG') === false)\n define('APP_CONFIG', require_once CONFIG . DS . 'config.php');\n\n // Create the base Request Object.\n $this->setRequest(new RequestObject($_SERVER, require_once (CONFIG . DS . 'routes.php')));\n\n // Load the Requested Controller\n $this->loadController($this->getRequest()->getDestination()['controller']);\n // BeforeCall function available?\n if (method_exists($this->getController(), 'beforeCall')) {\n $returnValue = call_user_func_array([$this->getController(), 'beforeCall'], []);\n if (!empty($returnValue)) {\n echo $returnValue;\n return;\n }\n }\n // Call the Requested Action\n $returnValue = call_user_func_array([$this->getController(), $this->request->getDestination()['action']], $this->request->getDestination()['arguments'] ?? []);\n\n if ((bool) APP_CONFIG['runtime']['is_api'] === false)\n // Render the view\n $this->getController()->getView()->render();\n else\n echo $returnValue;\n }", "title": "" }, { "docid": "748870a4c1c5afe4a63c8c74990f211b", "score": "0.6916908", "text": "function initialize(&$controller){\r\n\t $this->data = $controller->data;\r\n\t $this->params = $controller->params;\r\n\t $this->fileModel = Inflector::camelize(Inflector::singularize($this->params['controller']));\r\n\t }", "title": "" }, { "docid": "b5ff4c6b298170dab872ef4e4f513914", "score": "0.6914701", "text": "public function __construct(){\n //---------------URL--------------------------\n $this->request = new Request();\n Router::parse($this->request->url, $this->request);\n //---------CHARGE du controller-----------\n $controller = $this->loadController();\n //On stop l'action dans une variable\n $action = $this->request->action;\n //Verifie s'il y a un prefix\n //Si true on change les valeurs de action\n\t\tif($this->request->prefix){\n $action = $this->request->prefix.'_'.$action;\n\t\t}\n\t\tif(!in_array($action , array_diff(get_class_methods($controller),get_class_methods('Controller'))) ){\n\t\t\t$this->error('Le controller '.$this->request->controller.' n\\'a pas de méthode '.$action,'e404'); \n\t\t}\n\t\tcall_user_func_array(array($controller,$action),$this->request->params); \n\t\t$controller->render($action);\n\t}", "title": "" }, { "docid": "42d6d428e3872e22a55a636e791c3ccc", "score": "0.6903719", "text": "protected function initializeController()\r\n {\r\n parent::initializeController();\r\n $this->registerCommand(self::START_APPLICATION, StartApplicationCommand::class);\r\n }", "title": "" }, { "docid": "7d3e1846143a91cf1a702f29a2ff3ede", "score": "0.6902018", "text": "public function initialize() {\n\t\t\tswitch ($this->action) {\n\t\t\t\tcase \"list\":\n\t\t\t\t\t$this->listAll();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"delete\":\n\t\t\t\t\t$this->delete();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"insert\":\n\t\t\t\t\t$this->insert();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"update\":\n\t\t\t\t\t$this->update();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"select\":\n\t\t\t\t\t$this->select();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"tree\":\n\t\t\t\t\t$this->tree();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"login\":\n\t\t\t\t\t$this->login();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"explain\":\n\t\t\t\t\t$this->explain();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"comments\":\n\t\t\t\t\t$this->comments();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->extend();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a46a3728f20f459d408c47f65d0e8ce2", "score": "0.68995225", "text": "public function __construct(){\n if(Module::find('Product')){\n $this->ProductController = \\Modules\\Product\\Http\\Controllers\\ProductController::class;\n }\n if(Module::find('Cart')){\n $this->CartController = \\Modules\\Cart\\Http\\Controllers\\CartController::class;\n }\n }", "title": "" }, { "docid": "692882e587be5891e73c15a488953d4a", "score": "0.68948025", "text": "private function initActions()\n {\n // TODO\n $this->actions = [\n ];\n }", "title": "" }, { "docid": "316471fe8dc0264abc10e6b6f52f840f", "score": "0.6882689", "text": "public function __construct()\n {\n // Build the Core Controller\n parent::__construct();\n \n // Init a session var\n $this->user = $this->Session->get('user');\n }", "title": "" }, { "docid": "a831c5b890953590217179fd8f154c19", "score": "0.6878097", "text": "public function initializeAction() {\n\n $this->getUserRights();\n }", "title": "" }, { "docid": "8a32c6347ace50c1fa4dcd689607d8cc", "score": "0.687656", "text": "public function __construct()\n {\n $this->config = get_config();\n\n // parse the request\n $this->parseRequest();\n\n // check the controller was passed\n if ($this->config->get('request.controller'))\n {\n $this->controller = $this->config->get('request.controller');\n\n // check if an action was passed\n if ($this->config->get('request.action'))\n {\n $this->action = $this->config->get('request.action');\n }\n }\n\n if (empty($this->controller))\n {\n // use default controller\n $this->controller = $this->config->get('default.controller');\n\n // always use default action if no controller is specified\n $this->action = $this->config->get('default.action');\n }\n\n if (empty($this->action))\n {\n // use default action\n $this->action = $this->config->get('default.action');\n }\n\n // get the controller in the correct caps\n $this->controller = ucwords($this->controller);\n\n // append controller name\n $this->controller .= '_Controller';\n }", "title": "" }, { "docid": "e1e2cd7c7482256439f9676e7652bc2c", "score": "0.6870384", "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": "8783ac0712279604992d48bd4676b2e4", "score": "0.68662137", "text": "protected function setUp():void {\n $this->action = new ControllerAction();\n }", "title": "" }, { "docid": "a7ba456a1d8166ab4a2489a62cf74222", "score": "0.6864217", "text": "public function initialize(): void\n {\n new Url($this->getKernel());\n new TwigTemplate();\n new Navigation($this->getKernel());\n new Header($this->getKernel());\n\n $this->action = new Action($this->getKernel());\n }", "title": "" }, { "docid": "dd571bd5a694884a7260dfeab8aa49dc", "score": "0.68592787", "text": "public function init() {\n\t$this->_helper->_acl->allow(null);\n\t$this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');\n\t$this->_helper->contextSwitch()\n\t\t->setAutoDisableLayout(true)\n\t\t->addActionContext('index', array('xml','json'))\n\t\t->addActionContext('denomination', array('xml','json'))\n\t\t->initContext();\n }", "title": "" }, { "docid": "ab72d2e7cae6f16d4793d1c6c7979a22", "score": "0.68582535", "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-Admin\";\n }", "title": "" }, { "docid": "2374b7f9d3f2ccbaf5393fe1d335ad6e", "score": "0.6847468", "text": "public function __construct()\n\t{\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "title": "" }, { "docid": "2374b7f9d3f2ccbaf5393fe1d335ad6e", "score": "0.6847468", "text": "public function __construct()\n\t{\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "title": "" }, { "docid": "fef20fa87a08ea9e9ca0868b67d0e535", "score": "0.68409103", "text": "public function initialize()\n {\n $model= new \\Yabasi\\ModelController();\n $this->setSchema($model->model());\n $this->setSource(\"content\");\n }", "title": "" }, { "docid": "ce5a02a29d3e7c50de5a1da505219fa6", "score": "0.6840672", "text": "protected function _initAction()\n\t{\n\t\t$this->loadLayout();\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "cbf8772aa761a3782dc1da6850b590c6", "score": "0.6837076", "text": "public function initcontroller() {\r\n\t\t$this->dataresearchmodel = new DataresearchModel($this->di);\r\n\t}", "title": "" }, { "docid": "4160bad64cba05421d92e2f80f0f1001", "score": "0.6836563", "text": "public function initialize()\n {\n\tini_set('memory_limit', '512M');\n set_time_limit(0);\n parent::initialize();\n $this->loadComponent('RequestHandler', [\n 'enableBeforeRedirect' => false,\n 'viewClassMap' => ['xlsx' => 'Cewi/Excel.Excel']\n ]);\n // $this->loadComponent('RequestHandler', [\n // 'viewClassMap' => ['xlsx' => 'Cewi/Excel.Excel']\n // ]);\n $this->loadComponent('Flash');\n $this->loadComponent('Cookie');\n \n $currentController = $this->request->getParam('controller');\n // pr($currentController); die();\n if($currentController == 'Tenants'){\n $currentController = 'TenantUsers';\n }\n if($currentController == 'CorporateClients'){\n $currentController = 'CorporateClientUsers';\n // pr($currentController);die();\n }\n // $currentController = $this->request->params['controller'];\n $loginAction = $this->Cookie->read('loginAction');\n if(!$loginAction){\n $loginAction = ['controller' => $currentController,'action' => 'login'];\n }\n // pr($loginAction);die;\n $this->loadComponent('Auth',[\n 'loginAction' => ['controller' => $currentController,'action' => 'login'],\n 'authenticate' => [\n 'Form' =>\n [\n 'userModel' => $currentController,\n 'fields' => ['username' => 'email', 'password' => 'password']\n ]\n ],\n 'authorize'=> ['Controller'],\n 'loginAction' => $loginAction,\n 'loginRedirect' => $loginAction,\n 'logoutRedirect' => $loginAction \n\n ]);\n\n /*\n * Enable the following component for recommended CakePHP security settings.\n * see https://book.cakephp.org/3.0/en/controllers/components/security.html\n */\n //$this->loadComponent('Security');\n }", "title": "" }, { "docid": "169f266d4d1f5550c8477a90553cc587", "score": "0.6804719", "text": "public function __construct()\n\t{\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t\t$this->post_data = null; //initialize this for later use\n\t\t\n\t}", "title": "" }, { "docid": "a037e16c5914c7a88eb3f00c73a6b265", "score": "0.68037754", "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-Sosti - Sistema de Atendimento a Solicitações de TI';\n }", "title": "" }, { "docid": "090f77733de8bef109412e1bac89276d", "score": "0.6800018", "text": "public function init(){\n\t\t$this->_arrParam = $this->_request->getParams();\n\t\n\t\t//Duong dan cua Controller\n\t\t$this->_currentController = '/' . $this->_arrParam['module'] . '/' . $this->_arrParam['controller'];\n\t\n\t\t//Duong dan cua Action chinh\n\t\t$this->_actionMain = '/' . $this->_arrParam['module'] . '/'\t. $this->_arrParam['controller'] . '/index';\t\n\t\n\t\t//Trang hien tai\n\t\tif(isset($this->_arrParam['page'])){\n\t\t\t$this->_paginator['currentPage'] = $this->_arrParam['page'];\n\t\t\t$this->_page = '/page/' . $this->_arrParam['page'];\n\t\t}\n\t\t\n\t\t//Truyen thong tin phan trang vao mang du lieu\n\t\t$this->_arrParam['paginator'] = $this->_paginator;\n\t\t\n\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\n\t\t$siteConfig = Zend_Registry::get('siteConfig');\n\t\t$template_path = TEMPLATE_PATH . \"/public/\" . $siteConfig['template']['site'];\n\t\t$this->loadTemplate($template_path, 'template.ini', 'user');\n\t\t\n\t\t$language = Zend_Registry::get('language');\n\t\t$this->view->language = $language['language'];\n\t}", "title": "" }, { "docid": "a8be9b5878dcc579b374c4e3239d388f", "score": "0.6798669", "text": "public function init()\n {\n $contextSwitch = $this->_helper->getHelper('contextSwitch');\n $contextSwitch->addActionContext('list', 'json')->initContext();\n // action name, and only two types json and xml, they should be stored in books view\n }", "title": "" }, { "docid": "56a237f8bb2e3a244770e5d78d2d3f0a", "score": "0.67864555", "text": "public static function init(){\n\n $routes = require_once (ROOT.'App'.DS.'routes.php');\n\n $uri = parse_url(strtolower($_SERVER['REQUEST_URI']))['path'];\n $method = strtolower($_SERVER['REQUEST_METHOD']);\n\n if(array_key_exists($uri , $routes[$method])){\n $data = $routes[$method][$uri];\n if(is_array($data) && $data['secured']){\n if(!$_SESSION['logged']) Redirect::to(R_LOGOUT);\n $controller_method = explode('@', $data['controller']);\n }else{\n $controller_method = explode('@', $data);\n }\n\n $controller = 'Controllers\\\\'.$controller_method[0];\n $method = $controller_method[1];\n $controller = new $controller;\n $controller->$method();\n return;\n }\n\n Redirect::to('/');\n\n }", "title": "" }, { "docid": "9d92e14b80b4bdda06ddb29696df3459", "score": "0.67848957", "text": "private function __construct()\n {\n\t\t$uri = preg_split( \"/[\\/\\\\\\]/\", self::get() );\n\t\t\n\t\t# remove the first index of the array because it will always be blank\n\t\tarray_shift( $uri );\n\n\t\t# begin a controller variable with the namespace\n\t\tself::$_data['controller'] = \"\\\\app\\\\controller\\\\\";\n\n\t\t# get the controller data from the uri array\n\t\tself::$_data['controller'] = ( empty( $uri[0] ) || $uri[0] == '/' ) ? 'index' : strtolower( $uri[0] );\n\t\tself::$_data['controllerFile'] = self::$_data['controller'] . 'Controller';\n\t\tself::$_data['controllerNS'] = \"\\\\app\\\\controllers\\\\\" . self::$_data['controllerFile'];\n\n\t\t# get the action data from the uri array \n\t\tself::$_data['action'] = ( empty( $uri[1] ) || $uri[1] == '/' ) ? 'index' : strtolower( $uri[1] );\n\t\tself::$_data['action'] .= 'Action';\n\n }", "title": "" }, { "docid": "0741bd67f75cb07a346bca4344f0210f", "score": "0.67688483", "text": "function __construct($controller, $action)\n {\n header(\"Access-Control-Allow-Orgin: *\");\n header(\"Access-Control-Allow-Methods: *\");\n\n if (isset($_REQUEST['request_type']) && $_REQUEST['request_type'] == 'api'){\n header(\"Content-Type: application/json\");\n $this->_is_api = true;\n }\n\n $this->_method = $_SERVER['REQUEST_METHOD'];\n if ($this->_method == 'POST' && array_key_exists('HTTP_X_HTTP_METHOD', $_SERVER)) {\n if ($_SERVER['HTTP_X_HTTP_METHOD'] == 'DELETE') {\n $this->_method = 'DELETE';\n } else if ($_SERVER['HTTP_X_HTTP_METHOD'] == 'PUT') {\n $this->_method = 'PUT';\n } else {\n throw new Exception(\"Unexpected Header\");\n }\n }\n\n $this->_request = $_REQUEST;\n\n /*\n\n switch($this->method) {\n case 'DELETE':\n case 'POST':\n case 'GET':\n $this->request = $this->_cleanInputs($_GET);\n break;\n case 'PUT':\n $this->request = $this->_cleanInputs($_GET);\n $this->file = file_get_contents(\"php://input\");\n break;\n default:\n $this->_response('Invalid Method', 405);\n break;\n } */\n\n\n global $inflect;\n $this->_controller = ucfirst($controller);\n $this->_action = $action;\n\n $model = ucfirst(Inflection::singularize($controller));\n $this->doNotRenderHeader = 0;\n $this->render = 1;\n\n $this->_loadModel($model);\n $this->_template = new Template($controller, $action);\n\n #check for add models array and add all the models specified\n if ($this->_addModels){\n $this->addModels();\n }\n }", "title": "" }, { "docid": "6514ac0581bfdaec256728dc3b1839de", "score": "0.6755165", "text": "public function __construct ()\n\t{\n // Clean the url data to get the parameters\n $pagePath = str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']);\n $cleanParams = explode('/', str_replace($pagePath, '', $_SERVER['REDIRECT_URL']));\n\n // Controller and action. Index action is default if not defined\n $this->controller = !empty($cleanParams[1])?$cleanParams[1]:'main';\n $this->action = !empty($cleanParams[2])?$cleanParams[2]:'index';\n\n // Get the parameters of the request\n $argsLength = sizeof($cleanParams);\n for ($argsIndex = 3; $argsIndex < $argsLength; $argsIndex++) {\n $this->args[] = $cleanParams[$argsIndex];\n }\n\t}", "title": "" }, { "docid": "00cfdd36f4c40d9dfcbb8b0c06d6058b", "score": "0.67510784", "text": "function __construct()\n {\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": "5af142131e6ad29a58a0243d13d15d1c", "score": "0.6749281", "text": "public function __construct()\n {\n $this->parseUrl();\n\n if(file_exists(CONTROLLERS . $this->controller .'.php')) {\n $controller = \"App\\\\Controllers\\\\\" . $this->controller;\n $this->controller = new $controller;\n \n \n if(method_exists($this->controller, $this->action)) {\n call_user_func_array([$this->controller, $this->action],$this->param);\n } \n } else {\n require_once VIEWS . '404Error/index.php';\n }\n }", "title": "" }, { "docid": "376bd532db9369d06b1ffee4993d41f6", "score": "0.6742574", "text": "public function init()\r\r\n\t{\r\r\n\t\t@session_start();\r\r\n\r\r\n\t\t$this->view->template_name = sprintf($this->config->value('VIEW.SMARTY.ACTION_TEMPLATE_FORMAT'), $this->request->controller, $this->request->action);\r\r\n\r\r\n\t\t$this->user_rights = new App_Local_User_Rights($this->request);\r\r\n\r\r\n\t\tif (!$this->user_rights->has_rights($this->request->controller, $this->request->action))\r\r\n\t\t{\r\r\n\t\t\t$this->handle_access_denied();\r\r\n\t\t}\r\r\n\t}", "title": "" }, { "docid": "488fc60f58e88684d18ae32347f35faa", "score": "0.6737412", "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 mac dinh\n\t\t$this->_actionMain = $this->_currentController . '/index';\n\t\t\n\t\t//----- lay bien translate tu Registry\n\t\t$this->_translate = Zend_Registry::get('Zend_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;\n\t\t\n\t\t$template_path = TEMPLATE_PATH . \"/admin/admin-v2\";\n\t\t$this->loadTemplate($template_path,'template.ini','error');\n\t}", "title": "" }, { "docid": "4abae512ee55eee55681f5c611bdd725", "score": "0.6724557", "text": "public function init() {\n\n\t\tadd_action( \"init\", array( $this, 'load_actions' ), 10 );\n\n\t}", "title": "" }, { "docid": "08bea968232eea8d3853a40ab4236c6d", "score": "0.6715694", "text": "public function __construct(){\n\n $url = $this->getUrlParams();\n \n // Checking for controller\n if(isset($url[0]) && file_exists(APPROOT . \"/controllers/\" . ucfirst($url[0]) . \".php\")){\n $this->controller = ucfirst($url[0]);\n unset($url[0]);\n }else{\n return handleResponse(404,\"Controller not found. It may occurs if you haven't passed the controller or the controller does not exist.\");\n }\n\n // Requring the controller\n require_once APPROOT . \"/controllers/\" . $this->controller . \".php\";\n // Initializing the controller\n $this->controller = new $this->controller();\n\n // Checking for method\n if(isset($url[1]) && method_exists($this->controller, $url[1])){\n // If method is passed and exists\n $this->method = $url[1];\n unset($url[1]);\n } else if(isset($url[1])){\n // If method is passed but doesn't exist\n return handleResponse(404, \"Method $url[1] does not exist.\");\n }\n\n // Checking for parameters\n $this->parameters = $url ? array_values($url) : [];\n\n // Call the method inside the controller with the array of parameters\n call_user_func_array([$this->controller, $this->method], $this->parameters);\n\n }", "title": "" }, { "docid": "c6887945c197d0f98c647ace7e17360b", "score": "0.6698398", "text": "public function initialize()\n {\n // Basic configuration\n $this->setPaths(array(\n 'module' => 'app',\n 'controller' => 'index',\n 'namespace' => 'App\\Controllers'\n ));\n\n $this->add('/test', array(\n 'controller' => 'testing',\n 'action' => 'static'\n ));\n }", "title": "" }, { "docid": "d124ec2353ef9c6a5e74209eddcfe079", "score": "0.66977584", "text": "function __construct ($controller, $action, $query) {\n\t\t$this->_config['render_header'] = FALSE;\n\t\t$this->_config['render_footer'] = FALSE;\n\t\t$this->_config['variables'] = array();\n\t\t$this->_config['slots'] = array();\n\t\t$this->_config['css_files'] = array();\n\t\t$this->_config['js_files'] = array();\n\n\t\t$this->_controller = $this->_config['variables']['CONTROLLER'] = $controller;\n\t\t$this->_action = $this->_config['variables']['ACTION'] = $action;\n\t\t$this->_query = $this->_config['variables']['QUERY'] = $query;\n\t}", "title": "" }, { "docid": "a4bb09217445aa8c272b7bb2a34523b7", "score": "0.668922", "text": "public function init() {\n $ajaxContext = $this->_helper->getHelper('AjaxContext');\n $ajaxContext->addActionContext('index', array('json', 'html'))\n ->initContext();\n }", "title": "" }, { "docid": "56a49f182205eeafab301cbf4b444977", "score": "0.66891766", "text": "public function __construct() {\n $this->controller = explode('/', $_SERVER['REQUEST_URI'])[2];\n $this->method = $_SERVER['REQUEST_METHOD'];\n }", "title": "" }, { "docid": "01695f63380ffdf9b8f90182ca7ace14", "score": "0.6689086", "text": "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->pre_action();\n\t}", "title": "" }, { "docid": "6ea8253ebad61102ffbd7f45bc1ecb17", "score": "0.6688806", "text": "function init()\n\t\t{\n\t\t\tparent::init();\n\t\t\tif(file_exists(MODELS . '/' . $this->controller .'.php'))\n\t\t\t{\n\t\t\t\t// our controller has a model! automatically load it.\n\t\t\t\t// this is one of the few object automations in aframe\n\t\t\t\t$this->model\t=\t&$this->event->model($this->controller, array(&$this->event));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ef09b25682a9f1867aa178915b4fd85f", "score": "0.66727495", "text": "protected function _initController()\n\t{\n\t\t$request = $this->getRequest();\n\t\t$response = $this->getResponse();\n\t\tif(isset($this->modes[$request->getModeName()]) && isset($this->modes[$request->getModeName()]['controller']))\n\t\t{\n\t\t\t$class_name = $this->modes[$request->getModeName()]['controller'];\n\t\t\t$class_path = vartrue($this->modes[$request->getModeName()]['path']);\n\n\t\t\tif($class_path)\n\t\t\t{\n\t\t\t\trequire_once(e107::getParser()->replaceConstants($class_path));\n\t\t\t}\n\t\t\tif($class_name && class_exists($class_name))//NOTE: autoload in the play\n\t\t\t{\n\t\t\t\t$this->_current_controller = new $class_name($request, $response);\n\t\t\t\t//give access to current request object, user defined init\n\t\t\t\t$this->_current_controller->setRequest($this->getRequest())->init();\n\t\t\t}\n\t\t\t// Known controller (found in e_admin_dispatcher::$modes), class not found exception\n\t\t\telse\n\t\t\t{\n\t\t\t\t// TODO - admin log\n\t\t\t\t// get default controller\n\t\t\t\t$this->_current_controller = $this->getDefaultController();\n\t\t\t\t// add messages\n\t\t\t\te107::getMessage()->add('Can\\'t find class <strong>&quot;'.($class_name ? $class_name : 'n/a').'&quot;</strong> for controller <strong>&quot;'.ucfirst($request->getModeName()).'&quot;</strong>', E_MESSAGE_ERROR)\n\t\t\t\t\t->add('Requested: '.e_SELF.'?'.$request->buildQueryString(), E_MESSAGE_DEBUG);\n\t\t\t\t//\n\t\t\t\t$request->setMode($this->getDefaultControllerName())->setAction('e404');\n\t\t\t\t$this->_current_controller->setRequest($request)->init();\n\t\t\t}\n\n\t\t\tif(vartrue($this->modes[$request->getModeName()]['ui']))\n\t\t\t{\n\t\t\t\t$class_name = $this->modes[$request->getModeName()]['ui'];\n\t\t\t\t$class_path = vartrue($this->modes[$request->getModeName()]['uipath']);\n\t\t\t\tif($class_path)\n\t\t\t\t{\n\t\t\t\t\trequire_once(e107::getParser()->replaceConstants($class_path));\n\t\t\t\t}\n\t\t\t\tif(class_exists($class_name))//NOTE: autoload in the play\n\t\t\t\t{\n\t\t\t\t\t$this->_current_controller->setParam('ui', new $class_name($this->_current_controller));\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->_current_controller->setParam('modes', $this->modes);\n\n\t\t}\n\t\t// Not known controller (not found in e_admin_dispatcher::$modes) exception\n\t\telse\n\t\t{\n\t\t\t// TODO - admin log\n\t\t\t$this->_current_controller = $this->getDefaultController();\n\t\t\t// add messages\n\t\t\te107::getMessage()->add('Can\\'t find class for controller <strong>&quot;'.ucfirst($request->getModeName()).'&quot;</strong>', E_MESSAGE_ERROR)\n\t\t\t\t->add('Requested: '.e_SELF.'?'.$request->buildQueryString(), E_MESSAGE_DEBUG);\n\t\t\t// go to not found page\n\t\t\t$request->setMode($this->getDefaultControllerName())->setAction('e404');\n\t\t\t$this->_current_controller->setRequest($request)->init();\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "861d67e1959a879a4181425a7d24db20", "score": "0.665949", "text": "public function initialize() {\n $this->loadComponent('Flash');\n $this->loadComponent('Cookie', ['expiry' => '1 day']);\n $this->Cookie->config(['expires' => '+10 days', 'httpOnly' => false]);\n\n if (isset($this->request->params['prefix']) && $this->request->params['prefix'] == 'admin') {\n $authArray = [\n 'loginRedirect' => ['controller' => 'Users', 'action' => 'dashboard', 'prefix' => 'admin'],\n 'logoutRedirect' => ['controller' => 'Users', 'action' => 'login', 'prefix' => 'admin']\n ];\n } else {\n $authArray = [\n 'loginRedirect' => ['controller' => 'Users', 'action' => 'index'],\n 'logoutRedirect' => ['controller' => 'Users', 'action' => 'login']\t\t\t\t\n ];\n }\t\n $this->loadComponent('Auth', $authArray);\n }", "title": "" }, { "docid": "62d99dc0bd03373f5e250266de88d0fb", "score": "0.6642497", "text": "function Controller()\n\t{\n\t\t// Contains the page data for rendering\n\t\t$this->data = array();\n\t\t\n\t\tparent::Base();\n\t}", "title": "" }, { "docid": "357d9524ad24f73d9991299d2869f17f", "score": "0.6637615", "text": "public function __construct() {\n\t\t$this->categoryController = new CategoriaController();\n\t}", "title": "" }, { "docid": "9ba116dab7deec6034d4c9a072765a6d", "score": "0.66362965", "text": "public function __construct()\r\n {\r\n $url = $this->getUrl();\r\n \r\n if (isset($url[0])) {\r\n // Search if the controller exist\r\n if (file_exists('../app/controllers/' .ucwords($url[0]).'.php')){\r\n \r\n //Set the controller by default\r\n $this->currentController = ucwords($url[0]);\r\n\r\n //Unset initial index \r\n unset($url[0]);\r\n \r\n }\r\n }\r\n\r\n //require the controller\r\n require_once '../app/controllers/' . $this->currentController . '.php';\r\n $this->currentController = new $this->currentController;\r\n \r\n //Check the second part from url (Method)\r\n if (isset($url[1])){\r\n\r\n if (method_exists($this->currentController, $url[1])){\r\n $this->currentMethod = $url[1];\r\n unset($url[1]);\r\n }\r\n }\r\n \r\n //Get the parameters\r\n $this->parameters[] = $url ? array_values($url) : [];\r\n\r\n //Callback with parameters array\r\n call_user_func_array([$this->currentController, $this->currentMethod], $this->parameters);\r\n unset($url[2]); \r\n }", "title": "" }, { "docid": "5794e352fb6f5ed743255196ee8b87e4", "score": "0.66314274", "text": "public function initialize()\n {\n $model= new \\Yabasi\\ModelController();\n $this->setSchema($model->model());\n $this->setSource(\"voucheruse\");\n }", "title": "" }, { "docid": "b4411ef1219f3a52df9bcf6e3538cccf", "score": "0.6628529", "text": "public function init()\n {\n $this->service = Service::factory('Project');\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": "bf38ab628b8158950b9b8827f491f292", "score": "0.66256124", "text": "public function __construct() {\r\n try {\r\n $url = filter_input(INPUT_GET, 'url', FILTER_SANITIZE_URL);\r\n $url = explode('/', $url);\r\n $url = array_filter($url);\r\n\r\n $this->_controller = strtolower(array_shift($url));\r\n $this->_action = strtolower(array_shift($url));\r\n $this->_parameters = $url;\r\n\r\n $config = new \\core\\Config(FILE_CONFIG_APP);\r\n $ini = $config->getConfig();\r\n\r\n if (!$this->_controller) {\r\n $this->_controller = $ini['application']['controllerDefault'];\r\n }\r\n\r\n if (!$this->_action) {\r\n $this->_action = $ini['application']['actionDefault'];\r\n }\r\n\r\n if (!isset($this->_parameters)) {\r\n $this->_parameters = array();\r\n }\r\n } catch (Exception $ex) {\r\n throw $ex;\r\n }\r\n }", "title": "" }, { "docid": "9a13e54518f992f0b25c0133b8433c49", "score": "0.66245246", "text": "public function __construct()\n {\n $this->setRequest(new Request);\n $this->setController(new BaseController);\n }", "title": "" }, { "docid": "81a55bc12ea4ba635c63476dfcac0ea6", "score": "0.6620017", "text": "public function init() \n {\n $this->_temporizador = new Trf1_Admin_Timer ();\n $this->_temporizador->Inicio ();\n\t\t\n /* Initialize action controller here */\n $this->view->titleBrowser = 'e-Os - Sistema de Gerenciamento de Ordem de Serviço';\n }", "title": "" } ]
8dfbe8eb5d88a836bafdef43622ea90f
Returns the image's width
[ { "docid": "5f835e41769cdd1f35dbac138b13eec8", "score": "0.7791384", "text": "public function getWidth()\r\n\t{\r\n\t\treturn $this->width;\r\n\t}", "title": "" } ]
[ { "docid": "0722b9338f27c6e573a42a7b75ce2d73", "score": "0.9089527", "text": "function get_width() {\n\t\treturn imagesx($this->image);\n\t}", "title": "" }, { "docid": "671d829938350c2e39c0491b7aaebdfc", "score": "0.90152717", "text": "public function getWidth() {\n\t\treturn imagesx($this->_originalImage);\n\t}", "title": "" }, { "docid": "355674cb55453b4f2eb6cfa035108ec0", "score": "0.89708054", "text": "public function width() {\n if ( $this->isImage() ) {\n return $this->image_dimensions['width'];\n }\n }", "title": "" }, { "docid": "d8da03dc4c164625436c06d5ea116dfa", "score": "0.89691573", "text": "public function getWidth() {\n return (int) imagesx($this->image);\n }", "title": "" }, { "docid": "f02dd23870436d819bd3c79b3c62ee63", "score": "0.894507", "text": "public static function getWidth()\n {\n return self::$imgWidth;\n }", "title": "" }, { "docid": "9c3cee1c2f87bb5c2d7a162a93531cb2", "score": "0.8900683", "text": "function getWidth() {\n \n return imagesx($this->image);\n }", "title": "" }, { "docid": "93509b5fdad917370e459bb71b25bd31", "score": "0.88250935", "text": "public function width() : int\n {\n \tif ($this->is_image())\n \t{\n \t if ($this->_width < 0)\n \t {\n \t $res = getimagesize($this->_file);\n \t $this->_width = $res[0];\n \t $this->_height = $res[1];\n \t }\n \t return $this->_width;\n \t}\n \treturn $this->_width;\n }", "title": "" }, { "docid": "dbef844fcf61c271c1d2cc01e1fac2f7", "score": "0.8790945", "text": "public function getImageWidth()\n {\n return $this->imageWidth;\n }", "title": "" }, { "docid": "4e4d19901c794ecf63b65b513763194d", "score": "0.87763846", "text": "public function getImageWidth()\n {\n return $this->_image_width;\n }", "title": "" }, { "docid": "b644a9e3a6e1c072872b5b6eb93e4a61", "score": "0.86991996", "text": "function getWidth($image) {\n $size = getimagesize($image);\n $width = $size[0];\n return $width;\n }", "title": "" }, { "docid": "4c6775347c8cc19457545074a06451ec", "score": "0.86846936", "text": "function getWidth($image) {\n\t$size = getimagesize($image);\n\t$width = $size[0];\n\treturn $width;\n}", "title": "" }, { "docid": "24c1f31a82c48e40392acf4186f3531c", "score": "0.86497325", "text": "function getimgWidth($image) {\n $sizes = getimagesize($image);\n $width = $sizes[0];\n return $width;\n }", "title": "" }, { "docid": "d142d823930f777d9a80ade26f5e84d0", "score": "0.86143756", "text": "function getWidth($image) {\r\r\n\r\r\n\t$sizes = getimagesize($image);\r\r\n\r\r\n\t$width = $sizes[0];\r\r\n\r\r\n\treturn $width;\r\r\n\r\r\n}", "title": "" }, { "docid": "0e2e7105efb6fd3be38da2e8a86bfb2b", "score": "0.8598807", "text": "function getWidth($image)\n\t{\n\t\t$size = getimagesize($image);\n\t\t$width = $size[0];\n\t\treturn $width;\n\t}", "title": "" }, { "docid": "1cfc83a8e4a157ac00d0b7f6c0fff719", "score": "0.8460958", "text": "public function width()\n {\n return imagesx($this->data);\n }", "title": "" }, { "docid": "23e409dc46344ef474cc935e161679a1", "score": "0.8439405", "text": "function &width()\n {\n if ( file_exists( $this->filePath( true ) ) and is_file( $this->filePath( true ) ) )\n {\n $size = getimagesize( $this->filePath( true ) );\n return $size[0];\n }\n else\n return 120;\n }", "title": "" }, { "docid": "7b08c784a0aae6cf3d370396042aabd8", "score": "0.8400331", "text": "public function getWidth($image)\n {\n return $image->getImageWidth();\n }", "title": "" }, { "docid": "5f935e56b613f8d00491361ac5dd151a", "score": "0.8250075", "text": "public function getOriginalWidth()\n {\n $this->getImageType();\n return $this->_imageSrcWidth;\n }", "title": "" }, { "docid": "67a656427082cbc558191f3ca9e5eaf7", "score": "0.8093052", "text": "public function getWidth() {\n return $this->metaData['width'];\n }", "title": "" }, { "docid": "b9216923b110f3d027a6f2e026b9be57", "score": "0.7975774", "text": "public function getImageWidth() {\n if (isset($this->imageDetails[0])) {\n return $this->imageDetails[0];\n }\n return null;\n }", "title": "" }, { "docid": "b32cd2e9f1ce1a2e6d63d69b15822002", "score": "0.7845156", "text": "public static function getWidthBytes()\n {\n return (int)((self::$imgWidth + 7) / 8);\n }", "title": "" }, { "docid": "dcba36bc456a2c7f0014670fd7bcc3dc", "score": "0.7801708", "text": "public function getWidth() {\n\t\treturn $this->width;\n\t}", "title": "" }, { "docid": "09407a716004cef0ed357a5ae85934ca", "score": "0.7795986", "text": "public function getWidth() : int\n {\n return $this->width;\n }", "title": "" }, { "docid": "95e9fa48b79285bda2f753c9589dd539", "score": "0.7794239", "text": "public function getWidth()\n\t{\n\t\treturn $this->width;\n\t}", "title": "" }, { "docid": "7a8ca293b29d74225c8dc860e96396bf", "score": "0.7763752", "text": "public function getWidth()\n {\n return $this->width;\n }", "title": "" }, { "docid": "7a8ca293b29d74225c8dc860e96396bf", "score": "0.7763752", "text": "public function getWidth()\n {\n return $this->width;\n }", "title": "" }, { "docid": "7a8ca293b29d74225c8dc860e96396bf", "score": "0.7763752", "text": "public function getWidth()\n {\n return $this->width;\n }", "title": "" }, { "docid": "7a8ca293b29d74225c8dc860e96396bf", "score": "0.7763752", "text": "public function getWidth()\n {\n return $this->width;\n }", "title": "" }, { "docid": "7a8ca293b29d74225c8dc860e96396bf", "score": "0.7763752", "text": "public function getWidth()\n {\n return $this->width;\n }", "title": "" }, { "docid": "7a8ca293b29d74225c8dc860e96396bf", "score": "0.7763752", "text": "public function getWidth()\n {\n return $this->width;\n }", "title": "" }, { "docid": "7a8ca293b29d74225c8dc860e96396bf", "score": "0.7763752", "text": "public function getWidth()\n {\n return $this->width;\n }", "title": "" }, { "docid": "7a8ca293b29d74225c8dc860e96396bf", "score": "0.7763752", "text": "public function getWidth()\n {\n return $this->width;\n }", "title": "" }, { "docid": "7a8ca293b29d74225c8dc860e96396bf", "score": "0.7763752", "text": "public function getWidth()\n {\n return $this->width;\n }", "title": "" }, { "docid": "7a8ca293b29d74225c8dc860e96396bf", "score": "0.7763752", "text": "public function getWidth()\n {\n return $this->width;\n }", "title": "" }, { "docid": "7a8ca293b29d74225c8dc860e96396bf", "score": "0.7763752", "text": "public function getWidth()\n {\n return $this->width;\n }", "title": "" }, { "docid": "7a8ca293b29d74225c8dc860e96396bf", "score": "0.7763752", "text": "public function getWidth()\n {\n return $this->width;\n }", "title": "" }, { "docid": "7a8ca293b29d74225c8dc860e96396bf", "score": "0.7763752", "text": "public function getWidth()\n {\n return $this->width;\n }", "title": "" }, { "docid": "7a8ca293b29d74225c8dc860e96396bf", "score": "0.7763752", "text": "public function getWidth()\n {\n return $this->width;\n }", "title": "" }, { "docid": "7a8ca293b29d74225c8dc860e96396bf", "score": "0.7763752", "text": "public function getWidth()\n {\n return $this->width;\n }", "title": "" }, { "docid": "8eb01a403e43e5949da0b0304454aee4", "score": "0.7748887", "text": "public function getWidth(): int\n {\n return $this->width;\n }", "title": "" }, { "docid": "b6153d49dcce669cf4771e442a3104b5", "score": "0.77451885", "text": "public function getPixelWidth()\n {\n return $this->pixel_width;\n }", "title": "" }, { "docid": "c809d94a60ec72763a3aaa4160017246", "score": "0.77436423", "text": "public function getWidth ();", "title": "" }, { "docid": "2c4696c1a1af64677f68fde394374047", "score": "0.7741702", "text": "public function getWidth() : int;", "title": "" }, { "docid": "2c4696c1a1af64677f68fde394374047", "score": "0.7741702", "text": "public function getWidth() : int;", "title": "" }, { "docid": "28599b70b2028865f145be18f9a3d7a2", "score": "0.7737558", "text": "public function get_width() {\n\t\treturn (int) $this->width;\n\t}", "title": "" }, { "docid": "b99dbc15d9f2870b6048d30e85f59c6e", "score": "0.7735252", "text": "public function getWidth()\r\n {\r\n return $this->width;\r\n }", "title": "" }, { "docid": "9718a42d12aedeafce33b7a3e791b646", "score": "0.77230775", "text": "public function getWidth();", "title": "" }, { "docid": "9718a42d12aedeafce33b7a3e791b646", "score": "0.77230775", "text": "public function getWidth();", "title": "" }, { "docid": "9718a42d12aedeafce33b7a3e791b646", "score": "0.77230775", "text": "public function getWidth();", "title": "" }, { "docid": "9718a42d12aedeafce33b7a3e791b646", "score": "0.77230775", "text": "public function getWidth();", "title": "" }, { "docid": "f66c31b0dbe3728a2026aa89a9c393d6", "score": "0.7707753", "text": "public function getWidth() {\n return $this->width;\n }", "title": "" }, { "docid": "5f1f3c03abf303ac584d3560f947ed18", "score": "0.77058154", "text": "public function getWidth(): int;", "title": "" }, { "docid": "5f1f3c03abf303ac584d3560f947ed18", "score": "0.77058154", "text": "public function getWidth(): int;", "title": "" }, { "docid": "5f1f3c03abf303ac584d3560f947ed18", "score": "0.77058154", "text": "public function getWidth(): int;", "title": "" }, { "docid": "7a33f8f008017b8429d40bcbf0eaafd1", "score": "0.76893246", "text": "public function getWidth()\n {\n return $this->width;\n }", "title": "" }, { "docid": "ac9d6fe95104a9c47af9699721cd7199", "score": "0.76794183", "text": "public function get_width() {\n\t\treturn $this->width;\n\t}", "title": "" }, { "docid": "4585430b6b4b40cf8aa26e76751d6cd2", "score": "0.76703614", "text": "public function getWidth() {\r\n return $this->width;\r\n }", "title": "" }, { "docid": "4585430b6b4b40cf8aa26e76751d6cd2", "score": "0.76703614", "text": "public function getWidth() {\r\n return $this->width;\r\n }", "title": "" }, { "docid": "850454ebee0fdd97c5d1b4c1263e9de2", "score": "0.76559466", "text": "public function getWidth() {\n return $this->_width;\n }", "title": "" }, { "docid": "850454ebee0fdd97c5d1b4c1263e9de2", "score": "0.76559466", "text": "public function getWidth() {\n return $this->_width;\n }", "title": "" }, { "docid": "a653077c6032d326ba4dfe6eebc504d1", "score": "0.76484084", "text": "public function getWidth() {\n return $this->width;\n }", "title": "" }, { "docid": "56a5e9cf2459f4eeb59bf7b8bafd8b9f", "score": "0.76288563", "text": "public function getWidth()\n {\n return $this->_width;\n }", "title": "" }, { "docid": "8c610133f54666c50652c01a95eda080", "score": "0.76224077", "text": "public function getWidth()\n {\n return $this->_getInfo(0);\n }", "title": "" }, { "docid": "b65a9b0525d3dff3ee82ff42b5762d6b", "score": "0.76125616", "text": "public function getWidth()\n {\n return $this->get('width');\n }", "title": "" }, { "docid": "96b2c60f24864bafbadb8f6cf6f42d6f", "score": "0.76017195", "text": "public function getWidth(){\n\t\treturn $this->width;\n\t}", "title": "" }, { "docid": "c0fc736ab27c84b1b4d77e6eed83221a", "score": "0.75394344", "text": "function GetPlotWidth() {\n $img=$this->iImg;\n return $img->width - $img->left_margin - $img->right_margin;\n }", "title": "" }, { "docid": "b9bcd22b40db305f21f1c164faa7a507", "score": "0.7538069", "text": "public function getWidth() {\n\t\treturn Temboo_Results::getSubItemByKey($this->base, \"width\");\n\t}", "title": "" }, { "docid": "b9bcd22b40db305f21f1c164faa7a507", "score": "0.7538069", "text": "public function getWidth() {\n\t\treturn Temboo_Results::getSubItemByKey($this->base, \"width\");\n\t}", "title": "" }, { "docid": "b9bcd22b40db305f21f1c164faa7a507", "score": "0.7538069", "text": "public function getWidth() {\n\t\treturn Temboo_Results::getSubItemByKey($this->base, \"width\");\n\t}", "title": "" }, { "docid": "e35c4add27485f4e58c439042ce5b2a7", "score": "0.7532139", "text": "public function get_width()\n {\n // Return the width value\n return $this->_width;\n }", "title": "" }, { "docid": "b3c0e76c2e30614c3cfd99e0496e0146", "score": "0.7482061", "text": "public function getWidth() {\r\n\t\treturn $this->getAtributo(\"width\");\r\n\t}", "title": "" }, { "docid": "748d2c92a237c6944816cb146af0d628", "score": "0.7464029", "text": "public function lenImage() { return $this->_m_lenImage; }", "title": "" }, { "docid": "1d1ee36611fc0fc238de0b0796427268", "score": "0.74615103", "text": "function opengraph_default_image_width( $image ) {\n\t$image = shwib_image('large');\n\n\treturn $image['width'];\n}", "title": "" }, { "docid": "b8480360991531b85530944f1e60869a", "score": "0.745927", "text": "public function get_width()\n\t{\n\t\tif ( $this->test() ){\n\t\t\tif ( isset($this->w) ){\n\t\t\t\treturn $this->w;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "b8480360991531b85530944f1e60869a", "score": "0.745927", "text": "public function get_width()\n\t{\n\t\tif ( $this->test() ){\n\t\t\tif ( isset($this->w) ){\n\t\t\t\treturn $this->w;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "e5c62884d46be7f84b13ad4dbbf419b3", "score": "0.7447594", "text": "public function getWidth(): int\n {\n return $this->model->width;\n }", "title": "" }, { "docid": "51f8a39f2c8350a0b7b46afac0475b87", "score": "0.7411052", "text": "public function getImageSize();", "title": "" }, { "docid": "8ed7becf03d28b6970b7252251941c4b", "score": "0.7410853", "text": "public function getWidth()\n {\n $value = $this->get(self::WIDTH);\n return $value === null ? (integer)$value : $value;\n }", "title": "" }, { "docid": "8ed7becf03d28b6970b7252251941c4b", "score": "0.7410853", "text": "public function getWidth()\n {\n $value = $this->get(self::WIDTH);\n return $value === null ? (integer)$value : $value;\n }", "title": "" }, { "docid": "300faf73eef9c6f7cd193a948294a00e", "score": "0.73925287", "text": "public function imagesize(){\n\t\treturn getimagesize(DOCUMENT_ROOT.self::normalizePathWebRoot($this->path));\t\n\t}", "title": "" }, { "docid": "950769a4fc681e07ef0c9783fdaf5184", "score": "0.73892945", "text": "public function dimensions() {\n if ( $this->isImage() ) {\n return $this->image_dimensions;\n }\n }", "title": "" }, { "docid": "c4466e73556bdf2d023faa560dbc4d32", "score": "0.73836064", "text": "public function getWidth(): float\n {\n return $this->width;\n }", "title": "" }, { "docid": "5e434b9529ac5707e4e0c6f8367dbdd7", "score": "0.7331736", "text": "public function getImageWidth()\n {\n return $this->scopeConfig->getValue(\n 'lof_ajaxcart/success_popup/product_image_width',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n );\n }", "title": "" }, { "docid": "8c67b907e70944fedbd1dc42379d7371", "score": "0.7315723", "text": "public function getWidthPixels()\n {\n return isset($this->width_pixels) ? $this->width_pixels : null;\n }", "title": "" }, { "docid": "255913ef43af926e28b3525498a7c17d", "score": "0.73093516", "text": "public function width()\n {\n return array_get($this->dimensions(), 0);\n }", "title": "" }, { "docid": "0123dae607e991f29384a8caa8f2ddb9", "score": "0.73072135", "text": "public function width()\n {\n return $this->width;\n }", "title": "" }, { "docid": "38a7e77ea851a960aa65c087df74639d", "score": "0.7286441", "text": "function getFullWidth() {\n\tglobal $_zp_current_image;\n\tif (is_null($_zp_current_image)) return false;\n\treturn $_zp_current_image->getWidth();\n}", "title": "" }, { "docid": "9a0699a00c1d69a63078b51b6bc7d2f7", "score": "0.72779024", "text": "public function getPixelWidthValue()\n {\n $wrapper = $this->getPixelWidth();\n return is_null($wrapper) ? null : $wrapper->getValue();\n }", "title": "" }, { "docid": "c4f46776d1cd22cfbdb885e068d0635b", "score": "0.727701", "text": "function get_the_image_width( $size ) {\n\tif ( ! $size = get_the_image_size( $size ) ) {\n\t\treturn false;\n\t}\n\n\tif ( isset( $size['width'] ) ) {\n\t\treturn $size['width'];\n\t}\n\n\treturn false;\n}", "title": "" }, { "docid": "a87686d8f7d6f76c52343c6828c0ad62", "score": "0.72556514", "text": "public function getWidth() {\n\t return $this->getValue(self::FIELD_WIDTH);\n\t}", "title": "" }, { "docid": "bc5ed53b477edbc2138ac256a4410437", "score": "0.7254469", "text": "function get_image_width( $size ) {\n\tif ( ! $size = get_image_size( $size ) ) {\n\t\treturn false;\n\t}\n\n\tif ( isset( $size['width'] ) ) {\n\t\treturn $size['width'];\n\t}\n\n\treturn false;\n}", "title": "" }, { "docid": "df37169affaaecfe93d74de43daf99da", "score": "0.71973807", "text": "function width()\n {\n $this->_debug(\"Get Width\");\n return abs($this->_right - $this->_left) + 1;\n }", "title": "" }, { "docid": "5ce9e423bf47ffc5f38f83d3f51653d8", "score": "0.71923685", "text": "public function getThumbnailWidth()\n {\n return $this->thumbnailWidth;\n }", "title": "" }, { "docid": "b71548e47f6c20712609cb0082ca52c6", "score": "0.7163164", "text": "public function cropWidth()\n {\n return $this->meta['crop_width'];\n }", "title": "" }, { "docid": "33e985346719b0a2f7e70f406720df36", "score": "0.7139846", "text": "public function getThumbnailWidth() {\n\t\treturn $this->thumbnail_width;\n\t}", "title": "" }, { "docid": "1a8fd8f116c5ed071d51e53f791a67c0", "score": "0.7135039", "text": "public function width() { return $this->_m_width; }", "title": "" }, { "docid": "3683e924407c8029a27b5ba1725977cb", "score": "0.71226496", "text": "function getImageWidth(string $filename, string $cfg_width)\n {\n [\n $x,\n $y,\n $type,\n ] = getimagesize($filename);\n\n if ($x > $cfg_width) {\n $ret = $cfg_width;\n } else {\n return $ret = $x;\n }\n\n return $ret;\n }", "title": "" }, { "docid": "6ca02bf3defb3a927bb8b92de5c81969", "score": "0.71209264", "text": "public function getPreviewPixelWidthValue()\n {\n $wrapper = $this->getPreviewPixelWidth();\n return is_null($wrapper) ? null : $wrapper->getValue();\n }", "title": "" }, { "docid": "92e7aa3da9522fa610ad4d1ce89a7d1c", "score": "0.7112783", "text": "function getWidth();", "title": "" }, { "docid": "9bd8ce1587222f744878907a7708e981", "score": "0.70912576", "text": "function _resize_width($file,$w) {\r\n\r\n $img = getimagesize($file);\r\n $width = $img[0];\r\n\r\n if ($w > $width) { return $width; } else { return $w; }\r\n}", "title": "" } ]
20d36be9e947b9997b5ce07678a332f0
get all selectionlist entries for a given selectionlist PK
[ { "docid": "a03b79b866d86aca2b9a546ba6091812", "score": "0.6751981", "text": "public static function loadAllSelectionListEntries($FK_selectionList)\n {\n $table = DB::table('selectionListEntry');\n $where = DB::where($table->getColumn('FK_selectionList'), DB::intTerm($FK_selectionList));\n $select = new base_database_statement_Select();\n $select->setTable($table);\n $select->setWhere($where);\n $result = $select->fetchDatabase();\n $selectionListEntries = [];\n foreach ($result as $row) {\n $selectionListEntry = new self();\n foreach ($row as $propName => $value) {\n $selectionListEntry->setProperty($propName, $value);\n }\n $selectionListEntries[] = $selectionListEntry;\n }\n return $selectionListEntries;\n }", "title": "" } ]
[ { "docid": "16153d182def6f3394d9a5a605d38c55", "score": "0.58589125", "text": "public function selectList()\n {\n \treturn $this->ordered()->get( ['id', 'name'] );\n }", "title": "" }, { "docid": "74ce0f4830c7f85b5346243aa0e11223", "score": "0.5835425", "text": "public function selectList()\n {\n \treturn $this->orderBy( 'title', 'asc' )\n \t\t\t->get( ['id', 'title'] );\n }", "title": "" }, { "docid": "255bd0d8a472c047cd8cff372d1c12aa", "score": "0.5825894", "text": "public function selections(){\n $collection = DB::table('clients')->get(['id', 'name']);\n return $collection;\n }", "title": "" }, { "docid": "8aac24f499aefb8575b449f2b8538d55", "score": "0.56983244", "text": "public function findAll() : \\CoolBeans\\Contract\\Selection;", "title": "" }, { "docid": "318c5b35ef783ebb455c3085bb80127e", "score": "0.5676072", "text": "public function select_list($key = nil, $val = nil) {\n\t\tif($key === nil) {\n\t\t\t// Use the default key\n\t\t\t$key = $this->primary_key;\n\t\t}\n\n\t\tif($val === nil) {\n\t\t\t// Use the default value\n\t\t\t$val = $this->primary_val;\n\t\t}\n\n\t\t$array = array();\n\t\tforeach($this->result->result_array() as $row) {\n\t\t\t$array[$row->$key] = $row->$val;\n\t\t}\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "0f0da5d67a26804dda275a9f5c817ee1", "score": "0.5622621", "text": "public function getSelection()\n {\n $arrReturn = [];\n $arrReturn['all'] = $GLOBALS['TL_LANG']['tl_content']['lr_all'];\n $arrReturn['allmembers'] = $GLOBALS['TL_LANG']['tl_content']['lr_allmembers'];\n $arrReturn['guestsonly'] = $GLOBALS['TL_LANG']['tl_content']['lr_guestsonly'];\n $database = System::getContainer()->get('contao.framework')->createInstance(Database::class);\n\n // Groups\n $arrMemberGroups = $database->prepare('SELECT * FROM tl_member_group WHERE disable != 1 ORDER BY name')->execute()->fetchAllAssoc();\n\n foreach ($arrMemberGroups as $key => $value) {\n $arrReturn[$GLOBALS['TL_LANG']['tl_content']['lr_groups']]['G::'.$value['id']] = $value['name'];\n }\n\n // Members\n $arrMember = $database->prepare('SELECT * FROM tl_member WHERE locked != 1 ORDER BY firstname, lastname')->execute()->fetchAllAssoc();\n\n foreach ($arrMember as $key => $value) {\n if (0 != \\strlen($value['firstname']) && 0 != \\strlen($value['lastname'])) {\n $arrReturn[$GLOBALS['TL_LANG']['tl_content']['lr_members']]['M::'.$value['id']] = $value['firstname'].' '.$value['lastname'];\n } else {\n $arrReturn[$GLOBALS['TL_LANG']['tl_content']['lr_members']]['M::'.$value['id']] = $value['username'];\n }\n }\n\n return $arrReturn;\n }", "title": "" }, { "docid": "d20ea52b52c62e42fa2a37cf35b15254", "score": "0.5612203", "text": "public function select_list($key = NULL, $val = NULL, $indent = NULL)\n\t{\n\t\tif (is_string($indent))\n\t\t{\n\t\t\tif ($key === NULL)\n\t\t\t{\n\t\t\t\t// Use the default key\n\t\t\t\t$key = $this->primary_key;\n\t\t\t}\n\t\n\t\t\tif ($val === NULL)\n\t\t\t{\n\t\t\t\t// Use the default value\n\t\t\t\t$val = $this->primary_val;\n\t\t\t}\n\t\t\t\n\t\t\t$result = $this->load_result(TRUE);\n\t\t\t\n\t\t\t$array = array();\n\t\t\tforeach ($result as $row)\n\t\t\t{\n\t\t\t\t$array[$row->$key] = str_repeat($indent, $row->{$this->level_column}).$row->$val;\n\t\t\t}\n\t\t\t\n\t\t\treturn $array;\n\t\t}\n\n\t\treturn parent::select_list($key, $val);\n\t}", "title": "" }, { "docid": "1e57b5ffc57aadba04db7577db82483c", "score": "0.5581199", "text": "public static function retrieveByPKs($pks, PropelPDO $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection(ClientFactureOptionsPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $objs = null;\n if (empty($pks)) {\n $objs = array();\n } else {\n $criteria = new Criteria(ClientFactureOptionsPeer::DATABASE_NAME);\n $criteria->add(ClientFactureOptionsPeer::CL_FACT_OPT_ID, $pks, Criteria::IN);\n $objs = ClientFactureOptionsPeer::doSelect($criteria, $con);\n }\n\n return $objs;\n }", "title": "" }, { "docid": "32b5dc21f1f65fd5fd589c9604cff909", "score": "0.5529521", "text": "function get_by_key() {\t\n\t\t$sql = \"SELECT * \n\t\t\t\tFROM evs_database.evs_set_form_g_and_o\n\t\t\t\tWHERE sfg_id=?\";\n\t\t$query = $this->db->query($sql, array($this->sfg_id));\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "b84c3a2ca3e5cb47c9e89dafb493951a", "score": "0.5529206", "text": "function get_all_ids() {\n\t$cloudirlc_list = array();\n\t$query = \"select cd_id from \".$this->_db_table;\n\t$db=htvcenter_get_db_connection();\n\t$rs = $db->Execute($query);\n\tif (!$rs)\n\t\t$this->_event->log(\"get_list\", $_SERVER['REQUEST_TIME'], 2, \"cloudirlc.class.php\", $db->ErrorMsg(), \"\", \"\", 0, 0, 0);\n\telse\n\twhile (!$rs->EOF) {\n\t\t$cloudirlc_list[] = $rs->fields;\n\t\t$rs->MoveNext();\n\t}\n\treturn $cloudirlc_list;\n\n}", "title": "" }, { "docid": "1cf71ec21c7ba913b1a24daaeb466e39", "score": "0.55266607", "text": "protected function addRetrieveByPKs_SinglePK(&$script)\n {\n $table = $this->getTable();\n $script .= \"\n /**\n * Retrieve multiple objects by pkey.\n *\n * @param array \\$pks List of primary keys\n * @param PropelPDO \\$con the connection to use\n * @return \" . $this->getObjectClassname() . \"[]\n * @throws PropelException Any exceptions caught during processing will be\n *\t\t rethrown wrapped into a PropelException.\n */\n public static function \" . $this->getRetrieveMethodName() . \"s(\\$pks, PropelPDO \\$con = null)\n {\n if (\\$con === null) {\n \\$con = Propel::getConnection(\" . $this->getPeerClassname() . \"::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n \\$objs = null;\n if (empty(\\$pks)) {\n \\$objs = array();\n } else {\n \\$criteria = new Criteria(\" . $this->getPeerClassname() . \"::DATABASE_NAME);\";\n $k1 = $table->getPrimaryKey();\n $script .= \"\n \\$criteria->add(\" . $this->getColumnConstant($k1[0]) . \", \\$pks, Criteria::IN);\";\n $script .= \"\n \\$objs = \" . $this->getPeerClassname() . \"::doSelect(\\$criteria, \\$con);\n }\n\n return \\$objs;\n }\n\";\n }", "title": "" }, { "docid": "4a5389fed975d9e088d03015a70da5f3", "score": "0.55115175", "text": "public static function selectList(){\r\n return new NQuery(\"select\r\n id\r\n ,concat(nome,' - ',uf) as nome\r\n from tb_cidades\");\r\n }", "title": "" }, { "docid": "d1a1bd591ffc0178f13d33d14c8628b4", "score": "0.5500448", "text": "public function getGroupList ()\n {\n $request = $this->db->prepare(\"SELECT * FROM `$this->table_name`;\");\n $request->execute();\n return $request->fetchAll();\n }", "title": "" }, { "docid": "4fdcb1312e22a03f4d6c55c97789d384", "score": "0.5499336", "text": "function selectionsToItems(){\n $items=[];\n foreach(Selections()->get() as $selection){\n $country = Countries()->get($selection['CountrieId']);\n $items[$country['Id']] = $country['Name']; \n }\n return $items;\n }", "title": "" }, { "docid": "fd1cbfe0167570bd2a50d8c56329e4c2", "score": "0.54988426", "text": "public function getEntriesList(){\n return $this->_get(1);\n }", "title": "" }, { "docid": "65adcb81a1b9ec0178658c76308ed0c4", "score": "0.5485508", "text": "function getkriteriarekom(){\n\t\t// ini par $id\n\n\t\t$statement=$this->db->prepare(\"SELECT * FROM kriteria\");\n\t\t$statement->execute();\n\t\treturn $statement->fetchAll();\t\n\t}", "title": "" }, { "docid": "e8535f6cb7cf074634551dcca2eda222", "score": "0.5483498", "text": "abstract public function getList($key, $ids);", "title": "" }, { "docid": "a464d557da59b52c911dd5fe87ae67a8", "score": "0.5432712", "text": "public static function retrieveByPKs($pks, PropelPDO $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection(RuggengraatPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $objs = null;\n if (empty($pks)) {\n $objs = array();\n } else {\n $criteria = new Criteria(RuggengraatPeer::DATABASE_NAME);\n $criteria->add(RuggengraatPeer::ZINDEX_NUMMER, $pks, Criteria::IN);\n $objs = RuggengraatPeer::doSelect($criteria, $con);\n }\n\n return $objs;\n }", "title": "" }, { "docid": "7751be2ae461c47cf6c8f7c6e351be88", "score": "0.54237664", "text": "public function ___getAllIds()\n {\n $idsSelect = clone $this->getSelect();\n $idsSelect->reset(Zend_Db_Select::ORDER);\n $idsSelect->reset(Zend_Db_Select::LIMIT_COUNT);\n $idsSelect->reset(Zend_Db_Select::LIMIT_OFFSET);\n // $idsSelect->reset(Zend_Db_Select::COLUMNS);\n // $idsSelect->reset(Zend_Db_Select::GROUP);\n $idsSelect->from(null, 'main_table.' . $this->getResource()->getIdFieldName());\n return $this->getConnection()->fetchCol($idsSelect);\n }", "title": "" }, { "docid": "3a804939d4b38614317d284091d8ae59", "score": "0.541718", "text": "public function getPrimaryKeys();", "title": "" }, { "docid": "efe8c2aa4c8edf7420356b6404532171", "score": "0.5414392", "text": "public function getIds()\n {\n $primaryKeyName = $this->_getDatabaseConnection()->getSchema()->getTable($this->_getTableName())->getPrimaryKey();\n $query = new \\Yana\\Db\\Queries\\Select($this->_getDatabaseConnection());\n $query->setTable($this->_getTableName());\n $query->setColumn($primaryKeyName);\n return $query->getResults();\n }", "title": "" }, { "docid": "1b2c4a50a6a18351dc7c15ee67ad4fac", "score": "0.5409618", "text": "public function getEntriesList(){\n return $this->_get(4);\n }", "title": "" }, { "docid": "79112fc56d0e2a41229d514887f15391", "score": "0.5397223", "text": "public function _list()\n\t{\n\t\t_root::getRequest()->setAction('list');\n\n\t\t$oSelectionModel = new model_selection();\n\t\t$tSelections = $oSelectionModel->findAll();\n\n\t\t$oView = new _view('selections::list');\n\t\t$oView->tSelections = $tSelections;\n\n\t\t$this->oLayout->add('work', $oView);\n\t}", "title": "" }, { "docid": "a5d2d3b566f4afd6b4ca45501b7067bd", "score": "0.53916454", "text": "public function fetchAll() {\n // gather all of the entries in the database\n // and push their values into an array\n $resultSet = $this->selectAll()->query()->fetchAll();\n $entries = array();\n foreach ($resultSet as $row) {\n $entry = new Atlas_Model_AsnLines();\n $entry->setOptions($row);\n\n $entries[] = $entry;\n }\n\n // return the results\n return $entries;\n }", "title": "" }, { "docid": "30a503381152ad44ea3747dd1ee4b884", "score": "0.53788954", "text": "public function selectAll();", "title": "" }, { "docid": "931b1862c9f33b08b85dee7eb86171ee", "score": "0.53780144", "text": "function get_select_options_with_id($option_list, $selected_key)\n{\n return get_select_options_with_id_separate_key($option_list, $option_list, $selected_key);\n}", "title": "" }, { "docid": "d612a29c11a24cdb0e4392111cea5f87", "score": "0.5357377", "text": "public function getMasterIdents () {\n $sValue = $this->getFilterValue();\n if ( in_array($sValue, array( 'selected','notselected'))) {\n $sProductTable = MLDatabase::getTableInstance('product')->getTableName();\n $selectionname = $this->getConfig('selectionname');\n $sSql = MLDatabase::getTableInstance('selection')->set('selectionname', $selectionname)->getList()->getQueryObject()->select(\n \"master.\".(\n MLDatabase::factory('config')->set('mpid',0)->set('mkey','general.keytype')->get('value') == 'pID' \n ? 'productsid' \n : 'productssku'\n )\n )\n ->join(array($sProductTable, \"variant\", \"pid = variant.id\"), ML_Database_Model_Query_Select::JOIN_TYPE_INNER)\n ->join(array($sProductTable, \"master\", \"variant.parentid = master.id\"), ML_Database_Model_Query_Select::JOIN_TYPE_INNER)->getQuery(false);\n // get masterarticles which have no/missing prepared variant\n $sSql = str_replace('*,', '', $sSql);\n if($sValue == 'selected'){\n $aReturn = array(\n 'in' => MLDatabase::getDbInstance()->fetchArray($sSql, true),\n 'notIn' => null,\n );\n }else{\n $aReturn = array(\n 'in' => null,\n 'notIn' => MLDatabase::getDbInstance()->fetchArray($sSql, true),\n );\n }\n } else {\n $aReturn = array(\n 'in' => null,\n 'notIn' => null,\n );\n }\n return $aReturn;\n }", "title": "" }, { "docid": "26912268a7f23dbc5ea276945db1b6c4", "score": "0.5346887", "text": "public function getDatabaseRowsForList() {\n\t\t$where = $this->getWhere();\n\t\treturn $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(\n\t\t\timplode(',', $this->fields),\n\t\t\timplode(',', $this->tables),\n\t\t\t$where,\n\t\t\t$this->getGroupBy(),\n\t\t\t$this->getOrderBy(),\n\t\t\t$this->getListItemsLimit()\n\t\t);\n\t}", "title": "" }, { "docid": "ee79ec7e3d77bf43c3d281661c460d6f", "score": "0.5321272", "text": "function get_all_ids() {\n\t$cloudappliance_list = array();\n\t$query = \"select ca_id from \".$this->_db_table;\n\t$db=htvcenter_get_db_connection();\n\t$rs = $db->Execute($query);\n\tif (!$rs)\n\t\t$this->_event->log(\"get_list\", $_SERVER['REQUEST_TIME'], 2, \"cloudappliance.class.php\", $db->ErrorMsg(), \"\", \"\", 0, 0, 0);\n\telse\n\twhile (!$rs->EOF) {\n\t\t$cloudappliance_list[] = $rs->fields;\n\t\t$rs->MoveNext();\n\t}\n\treturn $cloudappliance_list;\n\n}", "title": "" }, { "docid": "949204475ac74f99353b70b07d843b15", "score": "0.5321164", "text": "public function getListByIdList($idList);", "title": "" }, { "docid": "2f3fd182874992dc0660c813fae03804", "score": "0.53210276", "text": "public static function retrieveByPKs($pks, PropelPDO $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection(CastlePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $objs = null;\n if (empty($pks)) {\n $objs = array();\n } else {\n $criteria = new Criteria(CastlePeer::DATABASE_NAME);\n $criteria->add(CastlePeer::ID, $pks, Criteria::IN);\n $objs = CastlePeer::doSelect($criteria, $con);\n }\n\n return $objs;\n }", "title": "" }, { "docid": "e3ce5bb75897c3009e9e336619ab2fbd", "score": "0.5301397", "text": "public static function retrieveByPKs($pks, PropelPDO $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection(LembSertifikasiPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $objs = null;\n if (empty($pks)) {\n $objs = array();\n } else {\n $criteria = new Criteria(LembSertifikasiPeer::DATABASE_NAME);\n $criteria->add(LembSertifikasiPeer::KODE_LEMB_SERT, $pks, Criteria::IN);\n $objs = LembSertifikasiPeer::doSelect($criteria, $con);\n }\n\n return $objs;\n }", "title": "" }, { "docid": "722f87668330177197f3750d7c69c1f7", "score": "0.52905625", "text": "public function getAllSelect(){\n\n $query = $this->orderBy('equip_name','ASC')\n ->findAll();\n\n $arrayList = array(\n 'list' => $query\n );\n\n return $arrayList;\n }", "title": "" }, { "docid": "7b79e814ccc6b101fa9312ac2a49fe97", "score": "0.52765197", "text": "static function getAll() {\r\n\t\treturn self::BD('select', 0, array('1'=>1));\r\n\t}", "title": "" }, { "docid": "a9dc1ed59614239a1ec2af4b9a525849", "score": "0.52744484", "text": "function loadRowList( $key='' ) {\n\t\tif (!($cur = $this->query())) {\n\t\t\treturn null;\n\t\t}\n\t\t$array = array();\n\t\twhile ($row = mysql_fetch_row( $cur )) {\n\t\t\tif ($key) {\n\t\t\t\t$array[$row[$key]] = $row;\n\t\t\t} else {\n\t\t\t\t$array[] = $row;\n\t\t\t}\n\t\t}\n\t\tmysql_free_result( $cur );\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "24b75726a633d6c1a83d87225307e85b", "score": "0.5273634", "text": "abstract protected function getSelectionData(): array;", "title": "" }, { "docid": "e640ffa76c9771948d7c40077fc58875", "score": "0.52598387", "text": "abstract function get_search_set();", "title": "" }, { "docid": "3f8c1a3c06eb3ec1fd91fe5f642b6b11", "score": "0.52575433", "text": "public function selectAll() {\n\t\treturn $this->client->all(['name', 'id']);\n\t}", "title": "" }, { "docid": "38de547a0ab7833e98d9339babf60fe0", "score": "0.52505726", "text": "function getKeyList ($db, $refund_id) {\n $res = array();\n $query = $db->prepare(\"SELECT key_id FROM key_refund WHERE refund_id = :refund_id\");\n\n $query->bindParam(':refund_id', $refund_id, PDO::PARAM_INT);\n\n $query->execute();\n\n while ($row = $query->fetch(PDO::FETCH_ASSOC)) {\n $res[] = $row;\n }\n\n return $res;\n}", "title": "" }, { "docid": "4acf351d84f380e67735de51b1c22a7e", "score": "0.5248524", "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": "bbeac15c3170cf62b014adcfd2053e28", "score": "0.52477306", "text": "function loadObjectList( $key='' ) {\n\t\tif (!($cur = $this->query())) {\n\t\t\treturn null;\n\t\t}\n\t\t$array = array();\n\t\twhile ($row = mysql_fetch_object( $cur )) {\n\t\t\tif ($key) {\n\t\t\t\t$array[$row->$key] = $row;\n\t\t\t} else {\n\t\t\t\t$array[] = $row;\n\t\t\t}\n\t\t}\n\t\tmysql_free_result( $cur );\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "428f97d6042b2bb3e4fb6840f3b62256", "score": "0.5237674", "text": "public function get_keys(){\n\t \t $conn = connection();\n\t\t $query = \"SELECT getPKColumns('\".get_db_name().\"','\".get_class( $this ).\"')\";\n\t\t $k = mysqli_query( $conn, $query );\n\t\t $retArray = array();\n\t\t while( $r = mysqli_fetch_array( $k ) ){\n\t\t \t array_push( $retArray, $r );\n\t\t }\n\t\t close( $conn );\n\t\t return $retArray;\n\t }", "title": "" }, { "docid": "886f284ca98ad4c1a3a0913d1e7e5c72", "score": "0.5233547", "text": "public function fetchList();", "title": "" }, { "docid": "29d45ab2d254810d180f6b7b4583a66b", "score": "0.52303797", "text": "function select(){\n\t\t$data = $this->model->select();\n\t\tforeach ($data as $key => $value) {\n\t\t\techo print_r($value).'<br>';\n\t\t}\n\t}", "title": "" }, { "docid": "2aa9c2448f16aae434db19d96b8a271a", "score": "0.5220145", "text": "public function keys(Builder $builder): BaseCollection\n {\n return $this->mapIds($this->search($builder));\n }", "title": "" }, { "docid": "9125ec8ba860d173c3a0042aed902e73", "score": "0.5218496", "text": "private function _completePkValues()\n {\n $pk = $this->_dataSource->getPk();\n\n $builder = new $this->_builderClass();\n $where = array();\n\n foreach ($pk as $k) {\n $field = array_search($k, $this->_fieldToColumnMap);\n $method = 'with' . ucfirst($field);\n $value = $this->_getParam($field);\n $builder->$method($value);\n $where[$k] = $value;\n }\n\n return $where;\n }", "title": "" }, { "docid": "fde89f055aee832958b71d291c34432d", "score": "0.52112377", "text": "public function fetchAll(){\n $resultSet = $this->getDbTable()->fetchAll();\n $entries = array();\n\n foreach($resultSet as $row){\n $entry = new Application_Model_ListeCertification();\n $entry->setIdCertification($row->id_certification);\n $entry->setNom($row->nom);\n $entry->setType($row->type);\n $entry->setNombreQuestion($row->nombre_question);\n $entry->setTempsCertification($row->temps_certification);\n $entry->setScoreMinimum($row->score_minimum)\n \t\t ->setDureeValidite($row->duree_validite)\n ->setNombrePassage($row->nombre_passage);\n $entries[] = $entry;\n }\n\n return $entries;\n }", "title": "" }, { "docid": "67603cfc635a64dfba3c19fc62a83b1e", "score": "0.52105135", "text": "public static function retrieveByPKs($pks, PropelPDO $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(SchoolPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t$objs = null;\n\t\tif (empty($pks)) {\n\t\t\t$objs = array();\n\t\t} else {\n\t\t\t$criteria = new Criteria(SchoolPeer::DATABASE_NAME);\n\t\t\t$criteria->add(SchoolPeer::ID, $pks, Criteria::IN);\n\t\t\t$objs = SchoolPeer::doSelect($criteria, $con);\n\t\t}\n\t\treturn $objs;\n\t}", "title": "" }, { "docid": "284a2d4a8dd6201a12387cc994f1f0f5", "score": "0.5203292", "text": "public function getGroupList()\n {\n return $this->dao->select('*')->from(TABLE_SALESGROUP)->fetchAll('id');\n }", "title": "" }, { "docid": "7d0da723c101424ff0e5f9a40899829b", "score": "0.51947486", "text": "abstract public function getIds();", "title": "" }, { "docid": "dd8589092c8a3a7cf75e3b419fccfbd3", "score": "0.51946616", "text": "public function fetchList()\n {\n return ArrayUtils::arrayList($this->specificationCategoryMapper->fetchAll(), 'id', 'name');\n }", "title": "" }, { "docid": "3810fafe81c5c2c31fd3922d47adf32f", "score": "0.5183439", "text": "public static function getAllList()\n {\n \treturn self::orderBy('name')->get()->pluck('name', 'id')->toArray();\n }", "title": "" }, { "docid": "4ae3aa3be99d8028e73c6761205cb6b1", "score": "0.51763123", "text": "public static function getSelectOptions() {\n return CHtml::listData(static::model()->findAll(), 'id', 'title');\n }", "title": "" }, { "docid": "0a0ca18f76d616e6ed14cd82f4fe7b0d", "score": "0.5159587", "text": "function fetchAllDropDown()\n {\n $query = $this->db->get($this->table_name);\n \n if ($query->num_rows() > 0) { \n $query_result = $query->result();\n \n $new_result = array();\n foreach ($query_result as $row) {\n $new_result[$row->id] = $row->name;\n }\n \n $query->free_result();\n return $new_result;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "a7c7ddef611e0b9ddc2d02988e02af49", "score": "0.5157292", "text": "public static function retrieveByPKs($pks, PropelPDO $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(TraAsignacionesPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t$objs = null;\n\t\tif (empty($pks)) {\n\t\t\t$objs = array();\n\t\t} else {\n\t\t\t$criteria = new Criteria(TraAsignacionesPeer::DATABASE_NAME);\n\t\t\t$criteria->add(TraAsignacionesPeer::ID_SOLICITUD, $pks, Criteria::IN);\n\t\t\t$objs = TraAsignacionesPeer::doSelect($criteria, $con);\n\t\t}\n\t\treturn $objs;\n\t}", "title": "" }, { "docid": "76d76a12e904454d4aa988d356231b7d", "score": "0.5156182", "text": "function drpaket_list(){\r\n\t\t$query = isset($_POST['query']) ? $_POST['query'] : \"\";\r\n\t\t$master_id = (integer) (isset($_POST['master_id']) ? $_POST['master_id'] : $_GET['master_id']);\r\n\t\t$result=$this->m_master_retur_jual_paket->drpaket_list($master_id,$query);\r\n\t\techo $result;\r\n\t}", "title": "" }, { "docid": "c6df4418f93bb19d17a3f1d040415cd9", "score": "0.5154283", "text": "public static function retrieveByPKs($pks, PropelPDO $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(MembroPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t$objs = null;\n\t\tif (empty($pks)) {\n\t\t\t$objs = array();\n\t\t} else {\n\t\t\t$criteria = new Criteria(MembroPeer::DATABASE_NAME);\n\t\t\t$criteria->add(MembroPeer::ID, $pks, Criteria::IN);\n\t\t\t$objs = MembroPeer::doSelect($criteria, $con);\n\t\t}\n\t\treturn $objs;\n\t}", "title": "" }, { "docid": "cf8b5b4ea1f7218ce3b7f803ec917ae4", "score": "0.514944", "text": "public static function retrieveByPKs($pks, PropelPDO $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(AlpzaMiembroAsociadosPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t$objs = null;\n\t\tif (empty($pks)) {\n\t\t\t$objs = array();\n\t\t} else {\n\t\t\t$criteria = new Criteria(AlpzaMiembroAsociadosPeer::DATABASE_NAME);\n\t\t\t$criteria->add(AlpzaMiembroAsociadosPeer::ID_ALPZA_MIEMBRO_ASOCIADOS, $pks, Criteria::IN);\n\t\t\t$objs = AlpzaMiembroAsociadosPeer::doSelect($criteria, $con);\n\t\t}\n\t\treturn $objs;\n\t}", "title": "" }, { "docid": "25fd09837cba773ce70d2bf102166b6d", "score": "0.51482457", "text": "public static function retrieveByPKs($pks, PropelPDO $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection(GsRzvAanspraakPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $objs = null;\n if (empty($pks)) {\n $objs = array();\n } else {\n $criteria = new Criteria(GsRzvAanspraakPeer::DATABASE_NAME);\n $criteria->add(GsRzvAanspraakPeer::ZINUMMER, $pks, Criteria::IN);\n $objs = GsRzvAanspraakPeer::doSelect($criteria, $con);\n }\n\n return $objs;\n }", "title": "" }, { "docid": "e0576e988268cb5d4076b910ac04500c", "score": "0.51403487", "text": "function get_entries_as_options($key='',$value='')\n\t\t{\t\n\t\t\tglobal $wpdb;\n\t\t\t$args = \"SELECT * FROM {$wpdb->prefix}{$this->table}\";\n\t\t\t$rows = $wpdb->get_results($args, ARRAY_A);\n\t\t\tif(empty($rows)) return array();\n\t\t\t$return = array();\n\t\t\tforeach($rows as $row)\n\t\t\t{\n\t\t\t\t$k = $row[$key];\n\t\t\t\t$v = $row[$value];\n\t\t\t\t$return[$k] = $v;\n\t\t\t\t}\n\t\t\treturn $return;\n\t\t\t}", "title": "" }, { "docid": "77c015e765bc778fb0521fae5e4bc584", "score": "0.5133398", "text": "public function getIDs();", "title": "" }, { "docid": "abccca00a77dc67ac897aab442a22fe0", "score": "0.51321214", "text": "public function showAllIds()\n {\n //return all item ids without keys (only the value)\n return DB::table('item')->select('id')->where('Visible', 1)->orderBy('id')->pluck('id');\n\n }", "title": "" }, { "docid": "3d742eb0c39ae97e200e2b50a4416063", "score": "0.51157635", "text": "public function liste(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"many\"));\n\t\t\t\t\t }", "title": "" }, { "docid": "3d742eb0c39ae97e200e2b50a4416063", "score": "0.51157635", "text": "public function liste(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"many\"));\n\t\t\t\t\t }", "title": "" }, { "docid": "3d742eb0c39ae97e200e2b50a4416063", "score": "0.51157635", "text": "public function liste(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"many\"));\n\t\t\t\t\t }", "title": "" }, { "docid": "5a5cf657b179437451003e34617943ea", "score": "0.51037496", "text": "function getAll() { \r\n\t\t$db = DB::getHandle();\r\n\t\t$db->query(\"select mid from lcRegistry order by k\",false); \r\n\t\twhile($db->next_record()) { \r\n\t\t\t$ar[] = lcRegistry::load($db->Record[0]);\r\n\t\t}\r\n\t\treturn $ar;\r\n\t}", "title": "" }, { "docid": "aa6f3c5cf0c23612de6e69057c81ff9e", "score": "0.5102925", "text": "abstract protected function doFetchAll($key);", "title": "" }, { "docid": "8fd59e47231c8579535c1647d2ca4573", "score": "0.51018894", "text": "public function getAll() {\n $this->selStmt->execute();\n return $this->selStmt->fetchAll(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "31c1db9fd567abcfc4c63e60cc3f4bab", "score": "0.5096621", "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": "528b578cf52c07ac419677b8ab3bb1cd", "score": "0.50915426", "text": "public function getAllOptions(){\r\n $this->db->query(\"SELECT *\r\n FROM support\r\n ORDER BY id ASC\");\r\n \r\n // Assign resultset\r\n $results = $this->db->resultset();\r\n\r\n return $results;\r\n }", "title": "" }, { "docid": "db28998a35f267ae1f79438f57c0d001", "score": "0.50902724", "text": "public function getRecordsListAssoc()\n {\n $select = $this->_db->select();\n $select->from('zanby_lists__records', array('id', 'title'))\n ->where('list_id = ?', ( $this->_id === NULL ) ? new Zend_Db_Expr('NULL') : $this->_id);\n $result = $this->_db->fetchPairs($select);\n return $result;\n }", "title": "" }, { "docid": "e9f1a51ca93b992b14465d5a74dfe499", "score": "0.50828135", "text": "private function selected_set()\n\t{\n\t\t$setsoal_idsoal = $this->m_setsoal->search('idassess', $this->idassess, 'idsoal');\n\t\t$result_set = $this->db->select(\"$this->table.{$this->fields['id']} as {$this->fields['id']}, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->table.{$this->fields['jabaran']} as {$this->fields['jabaran']},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->table.{$this->fields['idprak']} as {$this->fields['idprak']},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->table.{$this->fields['idjenis']} as {$this->fields['idjenis']}\")\n\t\t\t\t\t\t\t\t\t\t->from($this->table)\n\t\t\t\t\t\t\t\t\t\t->where(\"$this->table.{$this->fields['idprak']} = $this->idprak\")\n\t\t\t\t\t\t\t\t\t\t->where_in(\"$this->table.{$this->fields['id']}\", $setsoal_idsoal)->get()->result();\n\t\tif ($result_set) {\n\t\t\treturn $this->reconstruct($result_set);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "30c18adebbca2923929a2966c8b4030e", "score": "0.5082697", "text": "function getListQuery()\n { \n if (empty($this->_data)) {\n $this->_data = $this->_getList(\"SELECT * FROM #__se_utilitylabelgrouplist ORDER BY id\");\n }\n return $this->_data;\n }", "title": "" }, { "docid": "462575c8c481ec55caee6d3383b8e6a8", "score": "0.5079836", "text": "public function getAll() {\n $this->selStmt->execute();\n return $this->selStmt->fetchAll(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "c0952af47e5ae681df9d1f28ff8b2cf5", "score": "0.5071846", "text": "public function fetchAllKeyValue(): array\n {\n return $this->executeQuery()->fetchAllKeyValue();\n }", "title": "" }, { "docid": "016c8103c5c626ca2b1509c89988fb6d", "score": "0.5071242", "text": "public function getIds();", "title": "" }, { "docid": "e989469b2d770f66107b95ad13be1883", "score": "0.5061454", "text": "public function loadChecklistEntries($ids)\n {\n\n $db = $this->getDb();\n\n $where = implode( ', ', $ids );\n\n $sql = <<<SQL\n\nselect\n checklist.rowid as id,\n checklist.label as label,\n\tchecklist.flag_checked as checked\n\nFROM\n buiz_checklist_entry checklist\n\nWHERE\n checklist.rowid IN({$where});\n\nSQL;\n\n //$references = $db->select($sql)->getAll();\n\n return $db->select($sql);\n\n }", "title": "" }, { "docid": "1c67d888fbcc336fa6412408c59d8430", "score": "0.50580263", "text": "public function getListKeys() {\n\n return array(\n 'id',\n );\n }", "title": "" }, { "docid": "07fd25f6bff216602d5a3017e5022a15", "score": "0.5055094", "text": "public function loadList() {\n # code...\n $sql = \"SELECT * FROM email_templates\";\n $select = $this->db->select($sql);\n return $select;\n }", "title": "" }, { "docid": "c7c344f2d3a905cf75037d93493ba813", "score": "0.505038", "text": "private function _listQuery() {\n\t\t$searchResults = array ();\n\t\t$result = $this->conn->_execute ( func_get_args() );\n\n\t\twhile ( $row = $this->conn->_nextRow ( $result ) ) {\n\t\t\t$temp = new ExerciseVO ( );\n\t\t\t$temp->id = $row[0];\n\t\t\t$temp->name = $row[1];\n\t\t\t$temp->source = $row[2];\n\t\t\t$temp->language = $row[3];\n\t\t\t$temp->title = $row[4];\n\t\t\t$temp->thumbnailUri = $row[5];\n\t\t\t$temp->duration = $row[6];\n\t\t\t$temp->status = $row[7];\n\t\t\t$temp->userId = $row[8];\n\n\t\t\tarray_push ( $searchResults, $temp );\n\t\t}\n\n\t\treturn $searchResults;\n\t}", "title": "" }, { "docid": "0c69937abcda5f67cbef42053e2a2626", "score": "0.5050139", "text": "function getAllIdChp(){\r\n \tglobal $db;\r\n\r\n \t$allChp = array();\r\n \t\r\n $query = 'SELECT `id` FROM chapitre ORDER BY `id` DESC';\r\n $resultat = $db->query($query);\r\n $allChp = $resultat->fetchAll(); \r\n\r\n return $allChp;\r\n \t\r\n }", "title": "" }, { "docid": "57939b80c1fe36054afdb4fe98fe61de", "score": "0.50473493", "text": "function getCollections() {\n $result = FALSE;\n $sql = \"SELECT collection_id, collection_title, collection_description\n FROM %s\n \";\n $params = array($this->tableCollections);\n if ($res = $this->databaseQueryFmt($sql, $params)) {\n $result = array();\n while ($row = $res->fetchRow(DB_FETCHMODE_ASSOC)) {\n $result[$row['collection_id']] = $row;\n }\n }\n return $result;\n }", "title": "" }, { "docid": "351b2d15e5668423d31f464ae56fe4f3", "score": "0.50451636", "text": "public function findAll() {\r\n $stmt = $this->db->query(\"select * from thread_list order by id\");\r\n $stmt->setFetchMode(\\PDO::FETCH_CLASS, 'stdClass');\r\n return $stmt->fetchAll();\r\n }", "title": "" }, { "docid": "1d3fad70f74adbd2c4cd85962aaa1346", "score": "0.5044464", "text": "function selection()\n {\n\treturn array ('id' => $this->code, 'module' => $this->title, 'description' => $this->info, 'logo_url' => $this->logo_url);\n }", "title": "" }, { "docid": "167dd77e3c19bb2da33f880c5eb1751d", "score": "0.5043634", "text": "public function getByPK($index);", "title": "" }, { "docid": "368b062bc259bcc0100f2d0edf2d1ff1", "score": "0.5041086", "text": "public function fetchList()\n {\n // Columns to be selected\n $columns = array(\n self::column('id'),\n TourTranslationMapper::column('name')\n );\n\n return $this->createEntitySelect($columns)\n ->whereEquals(TourTranslationMapper::column('lang_id'), $this->getLangId())\n ->orderBy(self::column('id'))\n ->desc()\n ->queryAll();\n }", "title": "" }, { "docid": "a45c3ec315b380d62cbcf9e44bb92c93", "score": "0.5037633", "text": "function\tgetList( $_key=\"\", $_id=-1, $_val=\"\", $reply=null) {\n\t\tif ( $reply == null)\n\t\t\t$reply\t=\tnew Reply( __class__, $this->className) ;\n\t\t\t\t$_POST['_step']\t=\t$_id ;\n\t\t$objName\t=\t$_val ;\n\t\tswitch ( $objName) {\n\t\tcase\t\"\"\t:\n\t\t\t$filter\t=\t\"( C.OptionGroupName like '%\".$_POST[\"Search\"].\"%' ) \" ;\n\t\t\t$myObj\t=\tnew FDbObject( \"\", \"\") ;\t\t\t\t// no specific object we need here\n\t\t\t$myObj->addCol( \"OptionGroupName\", \"var\") ;\n\t\t\t$reply->replyData\t=\t$myObj->tableFromDb( \" \",\n\t\t\t\t\t\t\t\t\t\" \",\n\t\t\t\t\t\t\t\t\t$filter,\n\t\t\t\t\t\t\t\t\t\"ORDER BY C.OptionGroupName ASC \",\n\t\t\t\t\t\t\t\t\t\"OptionGroup\",\n\t\t\t\t\t\t\t\t\t\"OptionGroup\",\n\t\t\t\t\t\t\t\t\t\"C.OptionGroupName \") ;\n\t\t\tbreak ;\n\t\tcase\t\"Option\"\t:\n\t\t\t$filter\t=\t\"( C.OptionName = '\".$this->OptionGroupName.\"' ) \" ;\n\t\t\t\t$tmpObj\t=\tnew $objName() ;\n\t\t\t\t$tmpObj->setId( $_id) ;\n\t\t\t\t$reply->replyData\t=\t$tmpObj->tableFromDb( \"\", \"\", \"C.OptionName = '\".$this->OptionGroupName.\"' \", \"ORDER BY OptionName, `Key`, `Value` \") ;\n\t\t\t\tbreak ;\n\t\t}\n\t\treturn $reply ;\n\t}", "title": "" }, { "docid": "2dc8d207133c726a1f83eacdb4ecc114", "score": "0.50370336", "text": "public function listAll() {\n\t\treturn $this->client->all()->pluck('name', 'id')->prepend(_lang('select_court_master'), '');\n\t}", "title": "" }, { "docid": "6862594bb5ae95d4b33095f579c49845", "score": "0.5036518", "text": "private function getRecords()\n\t{\n\t\t$data = $this->get('data');\n\t\tif ('all' === $this->get('selected_ids')) {\n\t\t\t$data['module'] = \\App\\Module::getModuleName($this->get('tabid'));\n\t\t\t$request = new \\App\\Request($data, false);\n\t\t\t$this->recordList = Vtiger_Mass_Action::getRecordsListFromRequest($request);\n\t\t} else {\n\t\t\t$this->recordList = $this->get('selected_ids');\n\t\t}\n\t\treturn $this->recordList;\n\t}", "title": "" }, { "docid": "c4be2d0da6a5d91b2a086d1d65b297ad", "score": "0.50313795", "text": "public function forList()\n\t{\n\t\t$arr = array();\n\t\t$cyclers = Cycler::model()->notGeneric()->findAll();\n\t\n\t\tforeach ($cyclers as $cycler)\n\t\t{\n\t\t\t$arr[$cycler->id] = $cycler->name;\n\t\t}\n\t\t \t\t\t\n\t\treturn $arr;\n\t}", "title": "" }, { "docid": "25f46fdf75d1c6c48d14cf2455720ee3", "score": "0.50313133", "text": "public function RestrictedshowAllIds()\n {\n //return all item ids without keys (only the value)\n return DB::table('item')->select('id')->orderBy('id')->pluck('id');\n\n }", "title": "" }, { "docid": "e3e2aa24f503816b3b8bb53d073ce707", "score": "0.50267696", "text": "public static function getPrimaryKeyFieldNames();", "title": "" }, { "docid": "cf29f21d4ee7089c1726c350b7c4fbf7", "score": "0.5026727", "text": "function pg_select($db, $table, $ids, $options) {}", "title": "" }, { "docid": "1202dc78ef824fdb7bdbad2a774ef739", "score": "0.50214684", "text": "public function Dot_ListOfWhichCategories() {\n\t\t$queryWhich = mysqli_query($this->db, \"SELECT ct_id, ct_key FROM dot_which_categories\") or die(mysqli_error($this->db));\n\t\t//Store the result\n\t\twhile ($row = mysqli_fetch_array($queryWhich, MYSQLI_ASSOC)) {\n\t\t\t// Store the result into array\n\t\t\t$data[] = $row;\n\t\t}\n\t\tif (!empty($data)) {\n\t\t\t// Store the result into array\n\t\t\treturn $data;\n\t\t}\n\t}", "title": "" }, { "docid": "0e944006661a6e7e33e5c7a151e39f66", "score": "0.5018775", "text": "public function getGroupIds(){\n $this->db->query('SELECT Group_Id FROM groupconnection WHERE User_Id = :userId' );\n \n $this->db->bind(':userId', $_SESSION['user_id']);\n \n $rows = $this->db->resultSet();\n\n return $rows;\n }", "title": "" }, { "docid": "6e3f680145b7bd40c24019bb665eda06", "score": "0.5014887", "text": "protected function addRetrieveByPK_MultiPK(&$script)\n {\n $table = $this->getTable();\n $script .= \"\n /**\n * Retrieve object using using composite pkey values.\";\n foreach ($table->getPrimaryKey() as $col) {\n $clo = strtolower($col->getName());\n $cptype = $col->getPhpType();\n $script .= \"\n * @param $cptype $\" . $clo;\n }\n $script .= \"\n * @param PropelPDO \\$con\n * @return \" . $this->getObjectClassname() . \"\n */\n public static function \" . $this->getRetrieveMethodName() . \"(\";\n\n $php = array();\n foreach ($table->getPrimaryKey() as $col) {\n $clo = strtolower($col->getName());\n $php[] = '$' . $clo;\n } /* foreach */\n\n $script .= implode(', ', $php);\n\n $script .= \", PropelPDO \\$con = null) {\n \\$_instancePoolKey = \" . $this->getInstancePoolKeySnippet($php) . \";\";\n $script .= \"\n if (null !== (\\$obj = \" . $this->getPeerClassname() . \"::getInstanceFromPool(\\$_instancePoolKey))) {\n return \\$obj;\n }\n\n if (\\$con === null) {\n \\$con = Propel::getConnection(\" . $this->getPeerClassname() . \"::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n \\$criteria = new Criteria(\" . $this->getPeerClassname() . \"::DATABASE_NAME);\";\n foreach ($table->getPrimaryKey() as $col) {\n $clo = strtolower($col->getName());\n $script .= \"\n \\$criteria->add(\" . $this->getColumnConstant($col) . \", $\" . $clo . \");\";\n }\n $script .= \"\n \\$v = \" . $this->getPeerClassname() . \"::doSelect(\\$criteria, \\$con);\n\n return !empty(\\$v) ? \\$v[0] : null;\n }\";\n }", "title": "" }, { "docid": "ae94e4d33e8c50b0b3c50f6755576370", "score": "0.5013312", "text": "protected function fetchKeys()\n {\n $keys=array();\n foreach($this->getData() as $i=>$entity)\n {\n $key=$this->keyAttribute===null ? $entity['id'] : $entity[$this->keyAttribute];\n $keys[$i]=is_array($key) ? implode(',',$key) : $key;\n }\n return $keys;\n }", "title": "" }, { "docid": "243e3ba491a1e6bc43adecdf2a7d4371", "score": "0.5009474", "text": "public function getListList(){\r\n return $this->_get(1);\r\n }", "title": "" }, { "docid": "1c29bc2e4fbb7241a5899f1a7fcd1764", "score": "0.5008902", "text": "function getListMap($only_id = false)\r\n{\r\n\t$sql = \"SELECT var as option_text , var_id as option_value\r\n\t\tFROM content\r\n\t\tWHERE var like 'menu_structure_%' and var not like '%jpg%'\r\n\t\tand val not like 'a:1:%' and val not like 'a:0%'\r\n\t\tORDER BY var\";\r\n\r\n\t$result = viewsql($sql);\r\n\twhile ($row = db_sql_fetch_array($result, MYSQL_NUM))\r\n\t{\r\n\t\tif($only_id == true)\r\n\t\t{\r\n\t\t\t$show_list[] = $row[1];\r\n\t\t}\r\n\t\telse\t\t\r\n\t\t{\r\n\t\t\t$show_list[] = array($row[0] => $row[1]);\r\n\t\t}\r\n\t}\r\n\treturn $show_list;\r\n}", "title": "" }, { "docid": "2ecdcca058d3a221d5eef477057a1bbb", "score": "0.5005322", "text": "public function getSubidValues()\n {\n\n if ($this->_subidValues === null) {\n if (!$this->subidModel || !$this->subidKey || !$this->subidVal) {\n $this->_subidValues = array();\n } elseif (!class_exists($this->subidModel)) {\n $this->_subidValues = array();\n } else {\n $model = new $this->subidModel;\n $this->_subidValues = \\CHtml::listData($model->findAll(), $this->subidKey, $this->subidVal);\n }\n }\n\n return $this->_subidValues;\n\n }", "title": "" } ]
e80c57ccc41753ad534b03de70a1bf5a
Test should delete warehouse
[ { "docid": "f9e30ffffe7c8cea90ee8872cdc56a0c", "score": "0.75765234", "text": "public function test_ShouldDeleteWarehouse($id)\n {\n $response = $this->deleteWarehouse($id);\n $response->assertStatus(200)\n ->assertJson([\n 'status' => 'success',\n 'http_status_code' => 200\n ])\n ->assertJsonStructure([\n 'status',\n 'http_status_code'\n ]);\n\n // Assert wh orderer\n $this->assertDatabaseHas('wh_warehouse', [\n 'id' => $id,\n 'flag_delete' => true\n ]);\n }", "title": "" } ]
[ { "docid": "2adf924b688ae5dcb2101302dd187a92", "score": "0.8192005", "text": "public function test_ShouldThrowException_IfWarehouseDoesntExists_WhenDelete()\n {\n $response = $this->deleteWarehouse(-1);\n $this->assertError($response, 500);\n }", "title": "" }, { "docid": "587764893896fc125e9828cb7fe4eed9", "score": "0.7368925", "text": "public function testDeleteSaleUsingDelete()\n {\n }", "title": "" }, { "docid": "e39c0e984e0546edc7f9d8f3acbed385", "score": "0.7117539", "text": "public function testDeleteProduct()\n {\n }", "title": "" }, { "docid": "7962da7802e0481922eaaea9beaa9c4e", "score": "0.705182", "text": "public function test_deleteReplenishmentPlan() {\n\n }", "title": "" }, { "docid": "eab71ae14b08da061f04ee90be9593a2", "score": "0.7015928", "text": "public function testInventorySupplierWarehouseDELETERequestInventoryIDRegionsRegionNameSuppliersSupplierIDSupplierWarehousesSupplierWarehouseIDDelete()\n {\n }", "title": "" }, { "docid": "5d023cc9d8e7460af3126e2d1d3d85c6", "score": "0.69830334", "text": "public function deleteTest()\n {\n \t$this->addTest();\n \t$estrategia = Estrategia::find(1);\n\t\t$request = [\n\t\t\t\"data\"=> [\n\t\t\t\t\"tipo\"=>\"estrategias\",\n\t\t\t\t\"id\"=> $estrategia->id,\n\t\t\t\t\"cod_curso\"=> \"100048\",\n\t\t\t\t\"semestre\"=>env('SEMESTRE'), \n\t\t\t\t],\n\t\t\t];\n\t\t$this->post('api/deleteData', $request);\n\n\t\t$this->assertDatabaseMissing('estrategias',[ \n\t\t\t\t\t\"id\"=>1, \n\t\t\t\t\t\"cod_curso\"=> \"100048\", \n\t\t\t\t\t\"semestre\"=>env('SEMESTRE'),\n \t\t\t\t\"texto\"=>\"Nuevo texto\"\n\t\t\t\t]);\n }", "title": "" }, { "docid": "8d0e7c31cc90ae60ff225141895df659", "score": "0.6982604", "text": "public function testDeleteAdminClientUsingDELETE()\n {\n }", "title": "" }, { "docid": "e96a31ffe8c8d93e82af01a4d4a00651", "score": "0.6977712", "text": "public function testDeleteResellerChild()\n {\n }", "title": "" }, { "docid": "76b91feb509eb70249e497ccda9121ae", "score": "0.6976665", "text": "public function testVendorsVendorIdDelete()\n {\n }", "title": "" }, { "docid": "a7a4cd87d954ac5ea602e34f2b6690fb", "score": "0.6967458", "text": "public function testDelete()\n {\n }", "title": "" }, { "docid": "9e24ef54753a1e07dfd10905e95144d7", "score": "0.69506174", "text": "public function testDeleteConsultationUsingDelete()\n {\n }", "title": "" }, { "docid": "d793040f3adb3f4761c518274a16c950", "score": "0.690183", "text": "public function testDeleteContentmanagementWorkspace()\n {\n }", "title": "" }, { "docid": "b7de4c7c80f68caf1a3cd0e7bf9ef462", "score": "0.6898975", "text": "public function testDeleteProductsVariation()\n {\n }", "title": "" }, { "docid": "d8665c545c7b2f7d9181aada4bce02dd", "score": "0.6889725", "text": "public function testTeamMembersIdTeamProductMaterialsDelete()\n {\n\n }", "title": "" }, { "docid": "9feb61b3fd1edc12a9e1c57fb858e511", "score": "0.6875455", "text": "public function testTeamMembersIdTeamProductSizeMaterialsFkDelete()\n {\n\n }", "title": "" }, { "docid": "47e21ffd3cbae6fec6d58301668750d4", "score": "0.6874383", "text": "public function testDelete()\n {\n $this->deleteTest(3);\n }", "title": "" }, { "docid": "28927b6c68ebdbfa2ac55a987eb9bddb", "score": "0.68672884", "text": "public function testDelete4()\n {\n }", "title": "" }, { "docid": "aec7758f9bdce38df2173e8bafcc8f91", "score": "0.68619835", "text": "public function testTeamMembersIdTeamProductSizeMaterialsDelete()\n {\n\n }", "title": "" }, { "docid": "f3c3a06e52a41c5e8d5342cbfd96b5d3", "score": "0.6851078", "text": "public function testDeleteApplicationUsingDelete()\n {\n }", "title": "" }, { "docid": "f0eee4bbd07b9021439dc81740870305", "score": "0.6838912", "text": "public function testTeamMembersIdTeamProductMaterialsFkDelete()\n {\n\n }", "title": "" }, { "docid": "038fd10fa00ed5819eda75e6fab9fe71", "score": "0.6821349", "text": "public function testPurchasesIdDelete()\n {\n }", "title": "" }, { "docid": "91d9553e26057e98989e6981fa4c395b", "score": "0.68130803", "text": "public function testDelete()\n {\n $this->assertTrue(false);\n }", "title": "" }, { "docid": "70f17e9ed247f4749245d545872c9278", "score": "0.68041867", "text": "public function test_deleteReplenishmentPlanTag() {\n\n }", "title": "" }, { "docid": "30d7e3ca5aaa4033b839d208c430e4fe", "score": "0.6800781", "text": "public function testSuppliersV2Delete()\n {\n }", "title": "" }, { "docid": "d700d537c2f7281a388fbad97f123122", "score": "0.6796177", "text": "public function testDelete(){\n $this->assertTrue($this->music->delete());\n }", "title": "" }, { "docid": "b4852c51644206e20edd57bd1926056d", "score": "0.6786973", "text": "public function delete_wareHouse(){ \n $this->db->where('id', $this->get_whid())->delete('warehouse'); \n $data = $this->db->affected_rows();\n return $data;\n }", "title": "" }, { "docid": "b9078baced092943e9bfb8199ef0c0a9", "score": "0.678244", "text": "public function testDeleteProductsVariationType()\n {\n }", "title": "" }, { "docid": "72c372a47ec312aaf7768b378dd3609c", "score": "0.67764086", "text": "public function testDeleteOrder()\n {\n }", "title": "" }, { "docid": "6f58f6c16dc40c8ed9cbab5d52b736e8", "score": "0.6772151", "text": "public function testDelete()\n {\n $this->deleteTest(2);\n }", "title": "" }, { "docid": "4290646593303e05026c625e877151c3", "score": "0.6770197", "text": "public function testDeleteModelTransactionUsingDelete()\n {\n }", "title": "" }, { "docid": "550607ae56dbba3ca1723b749d9d6295", "score": "0.6765058", "text": "public function testTeamMembersIdTeamTemplateFoldersFkDelete()\n {\n\n }", "title": "" }, { "docid": "a4eca40c17aeeff5af61344b5456252b", "score": "0.6762212", "text": "public function testShouldTestDeleteLunch()\n {\n $expect = [\"DESTROY \" => $this->lastIdInserted . \"\"];\n $this->json('DELETE', '/api/lunch/' . $this->lastIdInserted)\n ->seeJson($expect);\n }", "title": "" }, { "docid": "0fcfcbf74cb93bc4ca56fdd3a4050bb1", "score": "0.6757317", "text": "public function testDeleteOffer()\n {\n }", "title": "" }, { "docid": "68fce5c3e4bd7d82c1c491cce703b3bc", "score": "0.6748731", "text": "public function testDeleteModelHoldingUsingDelete()\n {\n }", "title": "" }, { "docid": "3c1cd9ad7dd279a5a824d32072dc31d5", "score": "0.6747468", "text": "public function testDeleteAnOrder()\n {\n }", "title": "" }, { "docid": "e392453a184cc2f3beca631d4cfb7189", "score": "0.6738735", "text": "public function test_ShouldThrowException_IfWarehouseDoesntExists()\n {\n $response = $this->updateWarehouse(-1);\n $this->assertError($response, 500);\n }", "title": "" }, { "docid": "d19074911e3b2c919424ca941efbe122", "score": "0.6731478", "text": "public function testDeleteAllOrders()\n {\n }", "title": "" }, { "docid": "b6ceb3227f0d0e487f3e386a83ee1f71", "score": "0.6721081", "text": "public function test_ShouldStoreWarehouse()\n {\n $response = $this->storeWarehouse();\n $response->assertStatus(201)\n ->assertJson([\n 'status' => 'success',\n 'http_status_code' => 201,\n ])\n ->assertJsonStructure([\n 'status',\n 'http_status_code',\n 'warehouse_id',\n ]);\n $obj = json_decode( $response->content() );\n\n // Assert wh warehouse\n $this->assertDatabaseHas('wh_warehouse', [\n 'id' => $obj->warehouse_id,\n 'g_branch_office_id' => $this->tempJson['g_branch_office_id'],\n 'wh_warehouse_type_id' => $this->tempJson['wh_warehouse_type_id'],\n 'name' => $this->tempJson['name'],\n 'description' => $this->tempJson['description'],\n 'address' => $this->tempJson['address'],\n 'is_waste_warehouse' => $this->tempJson['is_waste_warehouse'],\n 'flag_delete' => false\n ]);\n return $obj->warehouse_id;\n }", "title": "" }, { "docid": "4e503c93e2fcf5ac91b58d8100cd61f0", "score": "0.6713448", "text": "public function testDeleteItemLowstockCode()\n {\n }", "title": "" }, { "docid": "7dc417e66edfe2e79347d7aa09f06ff1", "score": "0.6711891", "text": "public function testDeleteCustomerData()\n {\n }", "title": "" }, { "docid": "46c58731032b280155d30670a38969bb", "score": "0.6707184", "text": "public function test_delete_apartment()\n {\n //Creates a new instance of an apartment\n $apartment = Apartment::factory()->create();\n\n $this->json('DELETE', 'api/apartment/' . $apartment->ext_id, [], ['Accept' => 'application/json'])\n ->assertStatus(200);\n\n }", "title": "" }, { "docid": "12fada12d83f420e0f59df5b741c34c6", "score": "0.67006713", "text": "public function testdeleteForo(){\n $this->assertNotEmpty(deleteForo(2));\n }", "title": "" }, { "docid": "f360906c1deb775493d137aca1f7c169", "score": "0.668952", "text": "public function testDeleteThirdPartyResource()\n {\n }", "title": "" }, { "docid": "f73a45ccecf75fb5c71cc2e019482a74", "score": "0.6684395", "text": "public function testDeleteOrderSource()\n {\n }", "title": "" }, { "docid": "fc192d97f8524cee5626fe4895ebdf0a", "score": "0.66590065", "text": "public function testDelete()\n {\n $suiteCollection = new SuiteCollection([\n TestUtil::createSuite([\n 'uuid' => 1234,\n 'subjects' => ['one', 'two'],\n 'env' => [\n 'system' => [\n 'os' => 'linux',\n 'distribution' => 'debian',\n ],\n ],\n ]),\n ]);\n\n $this->persister->persist($suiteCollection);\n\n $counts = $this->getTableCounts();\n $this->assertEquals([\n 'run' => 1,\n 'subject' => 2,\n 'variant' => 2,\n 'parameter' => 1,\n 'variant_parameter' => 2,\n 'sgroup_subject' => 6,\n 'environment' => 2,\n 'iteration' => 4,\n 'version' => 1,\n ], $counts);\n\n $this->repository->deleteRun(1234);\n\n $counts = $this->getTableCounts();\n $this->assertEquals([\n 'run' => 0,\n 'subject' => 2,\n 'variant' => 0,\n 'parameter' => 1,\n 'variant_parameter' => 0,\n 'sgroup_subject' => 6,\n 'environment' => 0,\n 'iteration' => 0,\n 'version' => 1,\n ], $counts);\n }", "title": "" }, { "docid": "09fe33e4258ed92575a3daeb667559e6", "score": "0.6656214", "text": "public function testDeleteEntitlementTemplate()\n {\n }", "title": "" }, { "docid": "e7ccdc4769f7a044060db9a0f44c6bd0", "score": "0.6637827", "text": "public function testDeleteRuleset()\n {\n }", "title": "" }, { "docid": "b77af636382f61249555dd575dab9e6c", "score": "0.66207844", "text": "public function testDestroying() {\n $product = factory(Product::class)->create();\n\n $response = $this->delete('/api/product/'.$product->id);\n\n $response->assertStatus(200);\n $response->assertExactJson(['status' => true]);\n }", "title": "" }, { "docid": "82bcaa0c176e0e4303cb3e6dfa4bfad2", "score": "0.6614046", "text": "public function testDelete() \n\t{\n\t\t//get all models to be tested\n $models = Supermodlr::get_models();\n\t\tforeach ($models as $model) \n\t\t{\n\t\t\t//get pk field key from obj cfg\n\t\t\t$pk = SupermodlrTest::$test_entry[$model['model_class']]['pk_name'];\n\t\t\t\n\t\t\t//get pk value from test entry\n\t\t\t$pk_value = SupermodlrTest::$test_entry[$model['model_class']]['data'][$pk];\n\t\t\t\n\t\t\t//attempt to load the object that was created in the testCreate method\n\t\t\t$model_obj = new $model['model_class']($pk_value);\n\t\t\t\n\t\t\t//tell object to delete itself from all db's\n\t\t\t$delete_result = $model_obj->delete();\n\t\t\t\n\t\t\t//assert delete result status is ok\n\t\t\t$this->assertEquals($delete_result->ok(), TRUE, 'testDelete for entry id '.$pk_value.' from model '.$model['model_class']);\n\t\t\t\n\t\t\t//get db drivers\n\t\t\t$drivers = $model_obj->cfg('drivers');\n\t\t\t\t\t\t\n\t\t\t//build where array\n\t\t\t$where = array($pk => $pk_value);\n\t\t\t\t\t\t\n\t\t\t//loop through all drivers and ensure that the test entry was deleted\n\t\t\tforeach ($drivers as $i => $Driver)\n\t\t\t{\n\t\t\t\t//query db for this object\n\t\t\t\t$query_result = $Driver->read(array(\n\t\t\t\t\t'from'=> $model_obj->cfg('db_name'),\n\t\t\t\t\t'where'=> $where\n\t\t\t\t));\n\t\t\t\t\n\t\t\t\t//assert query result is 0\n\t\t\t\t$this->assertEquals((count($query_result) === 0), TRUE, 'testDelete re-query for db driver index '.$i.' ('.get_class($Driver).') for entry id '.$pk_value.' from model '.$model['model_class']);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "38aa588d4eb4a582175d87561f5c3a51", "score": "0.661226", "text": "public function testDeleteChannelCatalog()\n {\n\n }", "title": "" }, { "docid": "5384f5e850829d7a0b56b51e321b470c", "score": "0.6603338", "text": "public function testDelete() {\n $c = Client::create($this->createData);\n \n $this->assertEquals(null, $c->delete());\n }", "title": "" }, { "docid": "ad7e56e2a4d6886dd5c50aaa1ad2754a", "score": "0.65938", "text": "public function testTeamMembersIdTeamTemplateFoldersDelete()\n {\n\n }", "title": "" }, { "docid": "70312391191c7400633d8bb847ac7b58", "score": "0.6592729", "text": "public function test_deleteAsset() {\n\n }", "title": "" }, { "docid": "562dd55e0df7d657b5b55da90807ae41", "score": "0.6590554", "text": "public function testProcurementAdjustmentsIdDetailsDetailIdDelete()\n {\n\n }", "title": "" }, { "docid": "e9eb0b588311b99e2199e37a1f27dfca", "score": "0.6589967", "text": "public function test_destroy()\n {\n // add a record\n $blog = Blog::factory()->create();\n\n // request\n $response = $this->delete('api/blogs/' . $blog->id);\n\n // assert response\n $response->assertStatus(200);\n\n // assert database with will create data.\n $this->assertSoftDeleted('blogs', $blog->getAttributes());\n }", "title": "" }, { "docid": "f576bffd99ed20316eca6f0cdfa93156", "score": "0.65898144", "text": "public function testTeamMembersIdDesignSharesFkDelete()\n {\n\n }", "title": "" }, { "docid": "5ec0a99ec1c9cbfe0e6be12c239b3983", "score": "0.6583921", "text": "public function testDeleteBillOfLading()\n {\n }", "title": "" }, { "docid": "7ba7199a71637d21b8d90ecf39e35cef", "score": "0.6580053", "text": "public function testCrceGroupAdministrationDelete()\n {\n\n }", "title": "" }, { "docid": "885dcd174469dd8f38baff03bc2cb697", "score": "0.657803", "text": "public function testTeamMembersIdDesignFoldersFkDelete()\n {\n\n }", "title": "" }, { "docid": "4127e7eaa9d1cb82cd2f952608459ecf", "score": "0.657568", "text": "public function testDelete()\n {\n $this->clientAuthenticated->request('DELETE', '/food/delete/' . self::$objectId);\n $response = $this->clientAuthenticated->getResponse();\n $this->assertJsonResponse($response, 200);\n\n //Deletes physically the entity created by test\n $this->deleteEntity('Food', 'foodId', self::$objectId);\n }", "title": "" }, { "docid": "d5a25ccd31e4dc516933ca966c4ba786", "score": "0.6550162", "text": "function testDelete() {\n\t\t$this->assertEquals('Test exists', true);\n\t}", "title": "" }, { "docid": "1d7b1949c0a75f92a913a8fca83a1ddf", "score": "0.6548456", "text": "public function testDeleteDatabase()\n {\n # TODO\n self::markTestIncomplete();\n }", "title": "" }, { "docid": "3bb980c18c12a24c54aefcb783ecbbb2", "score": "0.65430635", "text": "public function testDeleteProductVariationOption()\n {\n }", "title": "" }, { "docid": "f8ef50e9f9c2de9a3081503055046946", "score": "0.6530081", "text": "public function testDeleteCustomer()\n {\n }", "title": "" }, { "docid": "42e0507a2c4bec4ceb90841240dea706", "score": "0.65239114", "text": "public function testUnavailabilitiesUnavailabilityIdDelete()\n {\n }", "title": "" }, { "docid": "8d31242e736898c82787c4d44efeddd0", "score": "0.65207845", "text": "public function testDelete()\r\n\t{\r\n\t\t$fk = ForeignKey::model()->findBySql('SELECT * FROM KEY_COLUMN_USAGE '\r\n\t\t. 'WHERE TABLE_SCHEMA = :tableSchema '\r\n\t\t. 'AND TABLE_NAME = :tableName '\r\n\t\t. 'AND COLUMN_NAME = :columnName '\r\n\t\t. 'AND REFERENCED_TABLE_SCHEMA IS NOT NULL', array(\r\n\t\t\t'tableSchema' => 'tabletest',\r\n\t\t\t'tableName' => 'product_order',\r\n\t\t\t'columnName' => 'customer_id'));\r\n\r\n\t\t$this->assertNotNull($fk);\r\n\r\n\t\t$this->assertType('string', $fk->delete());\r\n\r\n\t\t$fk = ForeignKey::model()->findBySql('SELECT * FROM KEY_COLUMN_USAGE '\r\n\t\t. 'WHERE TABLE_SCHEMA = :tableSchema '\r\n\t\t. 'AND TABLE_NAME = :tableName '\r\n\t\t. 'AND COLUMN_NAME = :columnName '\r\n\t\t. 'AND REFERENCED_TABLE_SCHEMA IS NOT NULL', array(\r\n\t\t\t'tableSchema' => 'tabletest',\r\n\t\t\t'tableName' => 'product_order',\r\n\t\t\t'columnName' => 'customer_id'));\r\n\r\n\t\t$this->assertNull($fk);\r\n\t}", "title": "" }, { "docid": "88fabf6be131a458bbf082975b02638b", "score": "0.65201515", "text": "public function testTeamMembersIdTeamBrandDelete()\n {\n\n }", "title": "" }, { "docid": "7f1a29bb64e830c4f0f503cc0e292614", "score": "0.65170586", "text": "public function testDeleteProgramming()\n {\n $programming = factory(Programming::class)->create();\n $this->assertTrue($programming->delete());\n $this->assertEmpty(Programming::query()->find($programming->id));\n }", "title": "" }, { "docid": "665eaa0ab11ffee04978c4734cdfab65", "score": "0.65152466", "text": "public function testPhysicalDelete(){\n\t\t$result = $this->exdb->physical_delete(\n\t\t\t'user',\n\t\t\tarray(\n\t\t\t\t'user_account'=>'tester-00000'\n\t\t\t)\n\t\t);\n\t\t// var_dump($result);\n\t\t$this->assertEquals( $result, 1 );\n\n\t\t$afterData = $this->exdb->select('user', array('user_account'=>'tester-00000'));\n\t\t// var_dump($afterData);\n\t\t$this->assertEquals( count($afterData), 0 );\n\n\t\t$afterData = $this->exdb->select('user', array('user_account'=>'tester-00000','delete_flg'=>1));\n\t\t// var_dump($afterData);\n\t\t$this->assertEquals( count($afterData), 0 );\n\n\t}", "title": "" }, { "docid": "ffd8ed8bd234c9991ca8793ba7d837af", "score": "0.6512361", "text": "public function testSavedDeleteItem()\n {\n \n }", "title": "" }, { "docid": "5bcf721251ef856cdf194cd59fc3764a", "score": "0.6511656", "text": "public function testDeleteCoupons()\n {\n }", "title": "" }, { "docid": "df97b3384206c068c283c3f1c66bf5b6", "score": "0.65104306", "text": "function test_users_can_be_deleted_true()\n {\n $this->seed();\n \n $userAdmin = User::where('email', '=', 'a@a.com')->first();\n\n $user = User::factory()->create();\n\n $oldUser = User::where('email', '=', 'b@b.com')->first();\n\n $token = JWTAuth::fromUser($oldUser);\n $response = $this->json('DELETE', '/api/users/'.$userAdmin->id.'?token='.$token);\n $response->assertStatus(403);\n\n $token = JWTAuth::fromUser($userAdmin);\n $response = $this->json('DELETE', '/api/users/'.$user->id.'?token='.$token);\n $response->assertNoContent();\n\n Treatment::factory()\n ->count(3)\n ->for($oldUser)\n ->create(); \n \n $response = $this->json('DELETE', '/api/users/'.$oldUser->id.'?token='.$token);\n $response->assertNoContent(); \n }", "title": "" }, { "docid": "1d5737a50ac5162e3ef66ed14f2a5b81", "score": "0.650554", "text": "public function testDeleteItemSerial()\n {\n }", "title": "" }, { "docid": "cf2153656fd595490ab834f180e607ef", "score": "0.64913505", "text": "public function testDeleteAppStoreApp()\n {\n }", "title": "" }, { "docid": "25e8c5bd49a89807276b0e81b2c52bff", "score": "0.64860487", "text": "public function testTeamMembersIdTeamBillingSourceDelete()\n {\n\n }", "title": "" }, { "docid": "447b8060a69325a3cea4c8c28c477f19", "score": "0.6484661", "text": "public function testDeleteContentmanagementWorkspaceMember()\n {\n }", "title": "" }, { "docid": "58a30e9b0d9ffc134893aff8a7855d4b", "score": "0.6477987", "text": "function test_delete_fail_3()\n {\n \t$this->markTestSkipped(\"Por legibilidad se pasa, sabiendo que el resultado fue el esperado\");\n \t$this->do_request('/conceptos/', garbage_data::$unidad_gestion, array(), status::$NO_CONTENT, 'DELETE');\t\t\n }", "title": "" }, { "docid": "1490c4831f84ad3d3982dd60070e4b26", "score": "0.64706427", "text": "protected function tearDown(): void\n {\n $sQ = \"delete from oxmanufacturers where oxid like '_test%'\";\n oxDb::getDb()->execute($sQ);\n\n parent::tearDown();\n }", "title": "" }, { "docid": "b0dacfa587aa6fc2fcd7a6a86f63e7bb", "score": "0.64697516", "text": "public function testDeleteAnApplication()\n {\n }", "title": "" }, { "docid": "9b86a614a5094023e5321c7fa53068a6", "score": "0.6469223", "text": "public function testDeletePublisherConfig3()\n {\n\n }", "title": "" }, { "docid": "7240d10fe71d4183b944c578555174c1", "score": "0.64670545", "text": "public function testDeleteSupportTicketUsingDelete()\n {\n }", "title": "" }, { "docid": "cf6f7e31ead94d4ca26a020b815153ca", "score": "0.6464038", "text": "public function testDelete()\n {\n $model = factory($this->model)->create();\n\n $this->actingAs($this->actingAs, 'api')\n ->deleteJson(route($this->route . '.destroy', [$this->route => $model->id]))\n ->assertNoContent();\n\n $this->assertDeleted($model);\n }", "title": "" }, { "docid": "358816e6586759f218e846cbe313e4aa", "score": "0.6463547", "text": "public function testTeamMembersIdDesignFoldersDelete()\n {\n\n }", "title": "" }, { "docid": "bbc23946e5b19e26ec2ed04607ec2625", "score": "0.64523894", "text": "public function testTeamMembersIdDesignSharesDelete()\n {\n\n }", "title": "" }, { "docid": "f42c6a4d8be6242e31892a1432c8861a", "score": "0.6451251", "text": "public function test_deleteCustomFields() {\n\n }", "title": "" }, { "docid": "f42c6a4d8be6242e31892a1432c8861a", "score": "0.6451251", "text": "public function test_deleteCustomFields() {\n\n }", "title": "" }, { "docid": "430908a17be916af0dbe3597cb6dd4b3", "score": "0.64474374", "text": "public function testDeleteItemLowstockCodeFile()\n {\n }", "title": "" }, { "docid": "7403ff6453666a51f2192b2a34edc958", "score": "0.64473534", "text": "public function testTeamMembersIdTeamDynamicDatasFkDelete()\n {\n\n }", "title": "" }, { "docid": "7361d39fe6bd729bb75d73c29dfbe7c8", "score": "0.6443268", "text": "function test_Marca_Delete()\n { \n $this->json('DELETE', 'api/v1/tipoproductos/1', ['Content-Type' =>'application/json', 'Accept' => 'application/json'])\n ->assertStatus(204);\n }", "title": "" }, { "docid": "da7d1061b10024ecd12b6037f4c7b554", "score": "0.6440806", "text": "public function testDeleteJobType()\n {\n }", "title": "" }, { "docid": "0d50a3c4cda0e67f2184040e4e097eb7", "score": "0.64407414", "text": "public function testTeamMembersIdTeamTemplatesFkDelete()\n {\n\n }", "title": "" }, { "docid": "f4a952f72f49a54fc80a17dc4ba290d5", "score": "0.6436507", "text": "public function testDeleteModelAssetSizeUsingDelete()\n {\n }", "title": "" }, { "docid": "0b764930908fbc69b19ed8429b48590a", "score": "0.64256513", "text": "public function testInventoryUpSellDELETERequestInventoryIDUpSellsUpSellIDDelete()\n {\n }", "title": "" }, { "docid": "dfc58e5179b81f4010b4b04813547b38", "score": "0.6424446", "text": "public function testInventoryUnitOfMeasureDELETERequestInventoryIDUnitOfMeasuresUnitOfMeasureIDDelete()\n {\n }", "title": "" }, { "docid": "8dc0ec4df1f6dcb82cb2953bd743d1d0", "score": "0.64222604", "text": "public function testDeleteModelUsingDelete()\n {\n }", "title": "" }, { "docid": "850e31573a35772f6c199368da308275", "score": "0.6420989", "text": "public function testDelete()\n {\n $delete = DBSql::PostgreSQL()->delete();\n\n $delete->table('tableTooMuchData')\n ->where('id = ?', 12);\n\n $actual = $delete->output();\n list($label) = array_keys($delete->getBindings());\n\n $expected = <<<SQL\nDELETE\nFROM\n \"tableTooMuchData\"\nWHERE\n \"id\" = {$label}\n\nSQL;\n $this->assertEquals($expected, $actual);\n }", "title": "" }, { "docid": "77b9b565d823d6d9ff1af394a335e1bf", "score": "0.6417863", "text": "public function testDeleteArtistTemplate()\n {\n }", "title": "" }, { "docid": "33cffd0bbb0c887bec8f9ad179f0a38c", "score": "0.6412143", "text": "public function testdeleteThese()\n\t{\n\t\t$this->viderTable();\n\t\t$this->create1These();\n\t\t$TS = new TheseService($this->em);\n\t\t\n\t\t$req = $TS->deleteThese(1);\n\t\t\n\t\t$these = $this->em->getRepository('DTDoctoramaBundle:These')->findAll();\n\t\t$this->assertEquals(0, count($these));\t\n\t}", "title": "" }, { "docid": "903d64ec4500cd34458c831068a7bacd", "score": "0.64089733", "text": "public function testJobDelete()\n {\n }", "title": "" }, { "docid": "bab349170438b09efc61fc0ee80fc494", "score": "0.6396562", "text": "public function testCrceGroupAdministrationDeleteCustomer()\n {\n\n }", "title": "" } ]
77a02a61db3d9a29a07bb71407fa74f9
Returns a list of properties The returned struct should be in the format: namespacetagName => contents
[ { "docid": "f82959d88245689e42c47a6ff7cb2585", "score": "0.0", "text": "public function getProperties($uri,$properties) {\n\n $node = $this->getNodeForPath($uri);\n if ($node instanceof Sabre_DAV_IProperties) {\n return $node->getProperties($properties);\n } else {\n return false;\n }\n\n }", "title": "" } ]
[ { "docid": "e7c4ee5694ab9ec23a7ea6c258f32533", "score": "0.6868843", "text": "public function getProperties();", "title": "" }, { "docid": "e7c4ee5694ab9ec23a7ea6c258f32533", "score": "0.6868843", "text": "public function getProperties();", "title": "" }, { "docid": "e7c4ee5694ab9ec23a7ea6c258f32533", "score": "0.6868843", "text": "public function getProperties();", "title": "" }, { "docid": "e7c4ee5694ab9ec23a7ea6c258f32533", "score": "0.6868843", "text": "public function getProperties();", "title": "" }, { "docid": "35ac1dc413c5fb55d26386f28e2a6d83", "score": "0.6698333", "text": "private function extractProperties(): array\n {\n $tokens = $this->tokens->findFirstCurlyParenthesizedBlock();\n $tokens = $tokens->withoutBlocks();\n\n preg_match_all('/(?<docblock>T_DOC_COMMENT )?(?<qualifiers>(T_VAR |T_PUBLIC |T_PROTECTED |T_PRIVATE |T_STATIC ))+(?<type>T_STRING )?(?<name>T_VARIABLE )(= (?<value>(?:(?!; ).)+))?; /',\n $tokens->asString(),\n $matches,\n PREG_OFFSET_CAPTURE | PREG_SET_ORDER);\n\n $properties = [];\n foreach ($matches as $match)\n {\n $propertyTokens = TokenMatchHelper::codeBlock($match, $tokens, $this->tokens);\n $lines = $propertyTokens->lines();\n\n $properties[] = ['docblock' => TokenMatchHelper::docblockDetails($match, $tokens),\n 'type' => TokenMatchHelper::code('type', $match, $tokens),\n 'visibility' => TokenMatchHelper::visibility($match),\n 'is_static' => TokenMatchHelper::isStatic($match),\n 'name' => TokenMatchHelper::code('name', $match, $tokens),\n 'value' => TokenMatchHelper::code('value', $match, $tokens),\n 'start' => $lines['start'],\n 'end' => $lines['end'],\n 'tokens' => $propertyTokens];\n }\n\n return $properties;\n }", "title": "" }, { "docid": "b15e9c90dfad07737487fc3bf9deae37", "score": "0.66462463", "text": "public function getProperties(): PropertyCollection;", "title": "" }, { "docid": "e4f9286abae301eda0943cf00c97796c", "score": "0.65693164", "text": "public function getProperties() {}", "title": "" }, { "docid": "e4f9286abae301eda0943cf00c97796c", "score": "0.65672153", "text": "public function getProperties() {}", "title": "" }, { "docid": "e4f9286abae301eda0943cf00c97796c", "score": "0.65672153", "text": "public function getProperties() {}", "title": "" }, { "docid": "e4f9286abae301eda0943cf00c97796c", "score": "0.65672153", "text": "public function getProperties() {}", "title": "" }, { "docid": "ec5894d949e63d58446eabfbcce7ec1d", "score": "0.65234923", "text": "public function getPropertiesList() : array;", "title": "" }, { "docid": "9d142b2e4e74d80b0ffd5f6143e6f769", "score": "0.6446648", "text": "public function getProperties(): array;", "title": "" }, { "docid": "9d142b2e4e74d80b0ffd5f6143e6f769", "score": "0.6446648", "text": "public function getProperties(): array;", "title": "" }, { "docid": "ad6f6dbb4f90906dec314dbac3cb247c", "score": "0.63925964", "text": "function retrieve_properties_from_xml_file($file)\n{\n $name = '';\n $properties = array();\n $indexes = array();\n \n $doc = new DOMDocument();\n $doc->load($file);\n $object = $doc->getElementsByTagname('object')->item(0);\n $name = $object->getAttribute('name');\n $namespace = $object->getAttribute('namespace');\n $xml_properties = $doc->getElementsByTagname('property');\n $attributes = array('type', 'length', 'unsigned', 'notnull', 'default', 'autoincrement', 'fixed');\n foreach ($xml_properties as $index => $property)\n {\n $property_info = array();\n foreach ($attributes as $index => $attribute)\n {\n if ($property->hasAttribute($attribute))\n {\n $property_info[$attribute] = $property->getAttribute($attribute);\n }\n }\n $properties[$property->getAttribute('name')] = $property_info;\n }\n $xml_indexes = $doc->getElementsByTagname('index');\n foreach ($xml_indexes as $key => $index)\n {\n $index_info = array();\n $index_info['type'] = $index->getAttribute('type');\n $index_properties = $index->getElementsByTagname('indexproperty');\n foreach ($index_properties as $subkey => $index_property)\n {\n $index_info['fields'][$index_property->getAttribute('name')] = array(\n 'length' => $index_property->getAttribute('length'));\n }\n $indexes[$index->getAttribute('name')] = $index_info;\n }\n $result = array();\n $result['name'] = $name;\n $result['namespace'] = $namespace;\n $result['properties'] = $properties;\n $result['indexes'] = $indexes;\n \n return $result;\n}", "title": "" }, { "docid": "d260564c4939ddbcb86a5bf24c01fc6c", "score": "0.63637227", "text": "function _getProperties() ;", "title": "" }, { "docid": "657e8b79fa16e1a54aedea1bba601f5c", "score": "0.6297791", "text": "public function getProperties(): array\n {\n $properties = $this->properties;\n\n $typeRequiredProperties = $this->type->getRequiredProperties();\n\n if ($typeRequiredProperties) {\n $properties = array_intersect_key(\n $properties,\n array_flip(array_merge($this->requiredProperties, $typeRequiredProperties))\n );\n }\n\n // Append the control information prefix to the metadata keys\n $requestedODataVersion = (string) $this->type->getVersion();\n\n $result = [];\n\n foreach ($properties as $key => $value) {\n if (version_compare('4.0', $requestedODataVersion, '=')) {\n $result[$this->prefix.'@odata.'.$key] = $value;\n } else {\n $result[$this->prefix.'@'.$key] = $value;\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "739bc7df07115c693a6cd9d0ba1fa3e4", "score": "0.62974423", "text": "public function _getProperties() {}", "title": "" }, { "docid": "b201e6133ad2e02b6e5057e224bbdb99", "score": "0.62781715", "text": "abstract public function getProperties();", "title": "" }, { "docid": "78cafe26aae971f6264846cdf7cc771c", "score": "0.62581897", "text": "function getProperties($properties);", "title": "" }, { "docid": "03021f561584d40b16bf2c149245f1ab", "score": "0.62518185", "text": "public function getProperties() : array;", "title": "" }, { "docid": "22c0e3fdbfe0f402ff34e0fafd2ac9ae", "score": "0.6187556", "text": "public function sectionSerialize()\n {\n $templatePrefix = $this->getTranslationTemplate();\n\n $properties = array_combine(\n array_map(function ($k) use ($templatePrefix) {\n return $templatePrefix . $k;\n },\n array_keys(get_object_vars($this))),\n get_object_vars($this)\n );\n return $properties;\n }", "title": "" }, { "docid": "9f52aa8c9299b73f519a5a418cf5d669", "score": "0.6179325", "text": "protected function properties()\n {\n return [\n 'mount_point' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__DRIVE_DRIVELETTER',\n C__PROPERTY__INFO__DESCRIPTION => 'Driveletter'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__driveletter'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATD__DRIVE_LETTER'\n ]\n ]\n ),\n 'title' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__TITLE',\n C__PROPERTY__INFO__DESCRIPTION => 'Title'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__title'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATD__DRIVE_TITLE'\n ]\n ]\n ),\n 'system_drive' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__DRIVE__SYSTEM_DRIVE',\n C__PROPERTY__INFO__DESCRIPTION => 'System drive'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__system_drive'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__DRIVE__SYSTEM_DRIVE',\n C__PROPERTY__UI__PARAMS => [\n 'p_arData' => serialize(get_smarty_arr_YES_NO()),\n 'p_bDbFieldNN' => 1\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__LIST => false\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'get_yes_or_no'\n ]\n ]\n ]\n ),\n 'filesystem' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog_plus(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'isys_filesystem_type',\n C__PROPERTY__INFO__DESCRIPTION => 'Filesystem'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__isys_filesystem_type__id',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_filesystem_type',\n 'isys_filesystem_type__id',\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATD__DRIVE_FILESYSTEM',\n C__PROPERTY__UI__PARAMS => [\n 'p_strTable' => 'isys_filesystem_type'\n ]\n ]\n ]\n ),\n 'capacity' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::float(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB_CATG__MEMORY_CAPACITY',\n C__PROPERTY__INFO__DESCRIPTION => 'Capacity'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__capacity'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATD__DRIVE_CAPACITY',\n C__PROPERTY__UI__PARAMS => [\n 'p_strClass' => 'input-dual-large'\n ]\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'convert',\n ['memory']\n ],\n C__PROPERTY__FORMAT__UNIT => 'unit',\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__LIST => false\n ]\n ]\n ),\n 'unit' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CATG__MEMORY_UNIT',\n C__PROPERTY__INFO__DESCRIPTION => 'Unit'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__isys_memory_unit__id',\n C__PROPERTY__DATA__FIELD_ALIAS => 'capacity_unit',\n C__PROPERTY__DATA__TABLE_ALIAS => 'c_unit',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_memory_unit',\n 'isys_memory_unit__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATD__DRIVE_UNIT',\n C__PROPERTY__UI__PARAMS => [\n 'p_strTable' => 'isys_memory_unit',\n 'p_strClass' => 'input-dual-small',\n 'p_bInfoIconSpacer' => 0\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__LIST => false\n ]\n ]\n ),\n 'serial' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__SERIAL',\n C__PROPERTY__INFO__DESCRIPTION => 'Serial number'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__serial'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATD__DRIVE_SERIAL'\n ]\n ]\n ),\n 'assigned_raid' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CATD_DRIVE_TYPE__RAID_GROUP',\n C__PROPERTY__INFO__DESCRIPTION => 'Software RAID group'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__id__raid_pool',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_catg_raid_list',\n 'isys_catg_raid_list__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATD__DRIVE_RAIDGROUP',\n C__PROPERTY__UI__PARAMS => [\n 'p_arData' => new isys_callback(\n [\n 'isys_cmdb_dao_category_g_drive',\n 'callback_property_assigned_raid'\n ]\n )\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__REPORT => true,\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__LIST => false\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'get_reference_value'\n ]\n ]\n ]\n ),\n 'drive_type' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::int(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__TYPE',\n C__PROPERTY__INFO__DESCRIPTION => 'Typ'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__isys_catd_drive_type__id',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_catd_drive_type',\n 'isys_catd_drive_type__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATD__DRIVE_TYPE'\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__VIRTUAL => true\n ]\n ]\n ),\n 'device' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CATD__DRIVE_DEVICE',\n C__PROPERTY__INFO__DESCRIPTION => 'On device'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__isys_catg_stor_list__id',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_catg_stor_list',\n 'isys_catg_stor_list__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATD__DRIVE_DEVICE',\n C__PROPERTY__UI__PARAMS => [\n 'p_arData' => new isys_callback(\n [\n 'isys_cmdb_dao_category_g_drive',\n 'callback_property_devices'\n ]\n )\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__MULTIEDIT => false,\n C__PROPERTY__PROVIDES__VIRTUAL => true\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'get_reference_value'\n ]\n ]\n ]\n ),\n 'raid' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CATD__DRIVE_DEVICE',\n C__PROPERTY__INFO__DESCRIPTION => 'On device Raid-Array'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__isys_catg_raid_list__id',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_catg_raid_list',\n 'isys_catg_raid_list__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATD__DRIVE_DEVICE',\n C__PROPERTY__UI__PARAMS => [\n 'p_arData' => new isys_callback(\n [\n 'isys_cmdb_dao_category_g_drive',\n 'callback_property_devices'\n ]\n )\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__MULTIEDIT => false,\n C__PROPERTY__PROVIDES__VIRTUAL => true\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'get_reference_value'\n ]\n ]\n ]\n ),\n 'ldev' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CATD__DRIVE_DEVICE',\n C__PROPERTY__INFO__DESCRIPTION => 'On device Logical devices (Client)'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__isys_catg_ldevclient_list__id',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_catg_ldevclient_list',\n 'isys_catg_ldevclient_list__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATD__DRIVE_DEVICE',\n C__PROPERTY__UI__PARAMS => [\n 'p_arData' => new isys_callback(\n [\n 'isys_cmdb_dao_category_g_drive',\n 'callback_property_devices'\n ]\n )\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__MULTIEDIT => false,\n C__PROPERTY__PROVIDES__VIRTUAL => true\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'get_reference_value'\n ]\n ]\n ]\n ),\n 'category_const' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__OBJTYPE__CONST',\n C__PROPERTY__INFO__DESCRIPTION => 'Constant'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__const'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CMDB__CATG__DRIVE__CATEGORY_CONST'\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__MULTIEDIT => false,\n C__PROPERTY__PROVIDES__VIRTUAL => true\n ]\n ]\n ),\n 'free_space' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::float(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__DRIVE__FREE_SPACE',\n C__PROPERTY__INFO__DESCRIPTION => 'Free space'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__free_space'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CMDB__CATG__DRIVE__FREE_SPACE',\n C__PROPERTY__UI__PARAMS => [\n 'p_strClass' => 'input-dual-large'\n ]\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'convert',\n ['memory']\n ],\n C__PROPERTY__FORMAT__UNIT => 'free_space_unit',\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__LIST => false\n ]\n ]\n ),\n 'free_space_unit' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CATG__MEMORY_UNIT',\n C__PROPERTY__INFO__DESCRIPTION => 'Unit'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__free_space__isys_memory_unit__id',\n C__PROPERTY__DATA__FIELD_ALIAS => 'free_space_unit',\n C__PROPERTY__DATA__TABLE_ALIAS => 'fs_unit',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_memory_unit',\n 'isys_memory_unit__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CMDB__CATG__DRIVE__FREE_SPACE_UNIT',\n C__PROPERTY__UI__PARAMS => [\n 'p_strTable' => 'isys_memory_unit',\n 'p_strClass' => 'input-dual-small',\n 'p_bInfoIconSpacer' => 0\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__LIST => false\n ]\n ]\n ),\n 'used_space' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::float(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__DRIVE__USED_SPACE',\n C__PROPERTY__INFO__DESCRIPTION => 'Free space'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__used_space'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CMDB__CATG__DRIVE__USED_SPACE',\n C__PROPERTY__UI__PARAMS => [\n 'p_strClass' => 'input-dual-large'\n ]\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'convert',\n ['memory']\n ],\n C__PROPERTY__FORMAT__UNIT => 'used_space_unit',\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__LIST => false\n ]\n ]\n ),\n 'used_space_unit' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CATG__MEMORY_UNIT',\n C__PROPERTY__INFO__DESCRIPTION => 'Unit'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__used_space__isys_memory_unit__id',\n C__PROPERTY__DATA__FIELD_ALIAS => 'used_space_unit',\n C__PROPERTY__DATA__TABLE_ALIAS => 'us_unit',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_memory_unit',\n 'isys_memory_unit__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CMDB__CATG__DRIVE__USED_SPACE_UNIT',\n C__PROPERTY__UI__PARAMS => [\n 'p_strTable' => 'isys_memory_unit',\n 'p_strClass' => 'input-dual-small',\n 'p_bInfoIconSpacer' => 0\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__LIST => false\n ]\n ]\n ),\n 'description' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::commentary(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__LOGBOOK__DESCRIPTION',\n C__PROPERTY__INFO__DESCRIPTION => 'Description'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_drive_list__description'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CMDB__CAT__COMMENTARY_' . C__CMDB__CATEGORY__TYPE_GLOBAL . C__CATG__DRIVE\n ]\n ]\n )\n ];\n }", "title": "" }, { "docid": "ffa31bc52debfbb3d6592977981f1c8d", "score": "0.616956", "text": "public function getPropertyNames();", "title": "" }, { "docid": "fab55d192086a61a851d6aed1e8db621", "score": "0.6165915", "text": "abstract protected function getProperties();", "title": "" }, { "docid": "d158ae557d50648a408e1beaa0240df6", "score": "0.6098503", "text": "public function properties()\n\t{\n\t\treturn $this->properties;\n\t}", "title": "" }, { "docid": "1f65fe54f710c38cf056de9988643e08", "score": "0.60955584", "text": "abstract protected function get_properties();", "title": "" }, { "docid": "da2dc38ca9ddff4326940432c6735e6a", "score": "0.6076576", "text": "public function getProperties(): array\n {\n return $this->properties;\n }", "title": "" }, { "docid": "97c9500de9b8b3f1df53142c2ec11042", "score": "0.60739183", "text": "protected function properties()\n {\n return [\n 'title' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__LOGBOOK__TITLE',\n C__PROPERTY__INFO__DESCRIPTION => 'Title'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__title'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__TITLE'\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__IMPORT => false,\n C__PROPERTY__PROVIDES__EXPORT => false,\n C__PROPERTY__PROVIDES__REPORT => false\n ]\n ]\n ),\n 'type' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__TYPE',\n C__PROPERTY__INFO__DESCRIPTION => 'Type'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__isys_net_type__id',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_net_type',\n 'isys_net_type__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__TYPE',\n C__PROPERTY__UI__PARAMS => [\n 'p_bDisabled' => '1',\n 'p_strTable' => 'isys_net_type',\n 'p_bDbFieldNN' => '1'\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false\n ]\n ]\n ),\n 'address' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET',\n C__PROPERTY__INFO__DESCRIPTION => 'Net'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__address'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__NET_V4',\n C__PROPERTY__UI__PARAMS => [\n 'p_bReadonly' => '',\n 'p_strClass' => 'input input-mini'\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__LIST => false\n ]\n ]\n ),\n 'netmask' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__MASK',\n C__PROPERTY__INFO__DESCRIPTION => 'Netmask'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__mask'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__MASK_V4',\n C__PROPERTY__UI__PARAMS => [\n 'p_strClass' => 'input input-mini',\n 'p_bReadonly' => ''\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__LIST => false\n ]\n ]\n ),\n 'gateway' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__DEF_GW',\n C__PROPERTY__INFO__DESCRIPTION => 'Default Gateway'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__isys_catg_ip_list__id'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__DEF_GW_V4',\n C__PROPERTY__UI__PARAMS => [\n 'p_arData' => new isys_callback(\n [\n 'isys_cmdb_dao_category_s_net',\n 'callback_property_gateway'\n ]\n )\n ]\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'get_gateway'\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__LIST => false\n ]\n ]\n ),\n 'range_from' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__ADDRESS_FROM',\n C__PROPERTY__INFO__DESCRIPTION => 'DHCP from'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__address_range_from'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__ADDRESS_RANGE_FROM'\n ]\n ]\n ),\n 'range_to' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__ADDRESS_TO',\n C__PROPERTY__INFO__DESCRIPTION => 'DHCP to'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__address_range_to'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__ADDRESS_RANGE_TO'\n ]\n ]\n ),\n 'dns_server' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::object_browser(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__DNS_SERVER',\n C__PROPERTY__INFO__DESCRIPTION => 'DNS server'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__id',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_cats_net_list_2_isys_catg_ip_list',\n 'isys_cats_net_list__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__DNS_SERVER'\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__LIST => false\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'get_net_dns_server'\n ]\n ]\n ]\n ),\n 'dns_domain' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::multiselect(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__DNS_DOMAIN',\n C__PROPERTY__INFO__DESCRIPTION => 'Domain / DNS namespace'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__id',\n C__PROPERTY__DATA__TABLE_ALIAS => 'dns_domain',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_cats_net_list_2_isys_net_dns_domain',\n 'isys_cats_net_list__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__DNS_DOMAIN',\n C__PROPERTY__UI__PARAMS => [\n 'p_strTable' => 'isys_net_dns_domain',\n 'placeholder' => _L('LC__CMDB__CATS__NET__DNS_DOMAIN'),\n 'emptyMessage' => _L('LC__CMDB__CATS__NET__NO_DNS_DOMAINS_FOUND'),\n 'p_onComplete' => \"idoit.callbackManager.triggerCallback('cmdb-cats-net-dns_domain-update', selected);\",\n 'multiselect' => true\n //'p_arData' => new isys_callback(array('isys_cmdb_dao_category_s_net', 'callback_property_dns_domain'))\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__VALIDATION => false,\n C__PROPERTY__PROVIDES__REPORT => false\n ],\n C__PROPERTY__CHECK => [\n C__PROPERTY__CHECK__MANDATORY => false,\n C__PROPERTY__CHECK__VALIDATION => false\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'dialog_multiselect'\n ]\n ]\n ]\n ),\n 'cidr_suffix' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::int(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__CIDR_SUFFIX',\n C__PROPERTY__INFO__DESCRIPTION => 'CIDR-Suffix'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__cidr_suffix'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__CIDR',\n C__PROPERTY__UI__PARAMS => [\n 'p_bReadonly' => '',\n 'p_strClass' => 'input input-mini'\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false\n ]\n ]\n ),\n 'reverse_dns' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CATS__NET__REVERSE_DNS',\n C__PROPERTY__INFO__DESCRIPTION => 'Reverse dns'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__reverse_dns'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__REVERSE_DNS'\n ]\n ]\n ),\n 'layer2_assignments' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::object_browser(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__LAYER2_NET',\n C__PROPERTY__INFO__DESCRIPTION => 'Layer-2-net assignments'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_obj__id'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__LAYER2',\n C__PROPERTY__UI__PARAMS => [\n isys_popup_browser_object_ng::C__TITLE => 'LC__BROWSER__TITLE__NET',\n isys_popup_browser_object_ng::C__MULTISELECTION => true,\n isys_popup_browser_object_ng::C__CAT_FILTER => 'C__CATS__LAYER2_NET'\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__LIST => false\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'layer_2_assignments'\n ]\n ]\n ]\n ),\n 'address_v6' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::virtual(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET',\n C__PROPERTY__INFO__DESCRIPTION => 'Net v6'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__NET_V6'\n ]\n ]\n ),\n 'description' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::commentary(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__LOGBOOK__DESCRIPTION',\n C__PROPERTY__INFO__DESCRIPTION => 'Description'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__description'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CMDB__CAT__COMMENTARY_' . C__CMDB__CATEGORY__TYPE_SPECIFIC . C__CATS__NET\n ]\n ]\n )\n ];\n }", "title": "" }, { "docid": "1e304131853147975d544ae917a96047", "score": "0.60333437", "text": "function get_properties()\r\n {\r\n return $this->properties;\r\n }", "title": "" }, { "docid": "1253e670ca989d408984da11eaad6bd8", "score": "0.60031015", "text": "public function getProperties()\n {\n return $this->_propDict;\n }", "title": "" }, { "docid": "1253e670ca989d408984da11eaad6bd8", "score": "0.60031015", "text": "public function getProperties()\n {\n return $this->_propDict;\n }", "title": "" }, { "docid": "1a511f322d6ad53f08a8ecc449f609f8", "score": "0.60019827", "text": "public function getProperties()\n {\n return $this->properties;\n }", "title": "" }, { "docid": "1a511f322d6ad53f08a8ecc449f609f8", "score": "0.60019827", "text": "public function getProperties()\n {\n return $this->properties;\n }", "title": "" }, { "docid": "1a511f322d6ad53f08a8ecc449f609f8", "score": "0.60019827", "text": "public function getProperties()\n {\n return $this->properties;\n }", "title": "" }, { "docid": "1a511f322d6ad53f08a8ecc449f609f8", "score": "0.60019827", "text": "public function getProperties()\n {\n return $this->properties;\n }", "title": "" }, { "docid": "1a511f322d6ad53f08a8ecc449f609f8", "score": "0.60019827", "text": "public function getProperties()\n {\n return $this->properties;\n }", "title": "" }, { "docid": "1a511f322d6ad53f08a8ecc449f609f8", "score": "0.60019827", "text": "public function getProperties()\n {\n return $this->properties;\n }", "title": "" }, { "docid": "1a511f322d6ad53f08a8ecc449f609f8", "score": "0.60019827", "text": "public function getProperties()\n {\n return $this->properties;\n }", "title": "" }, { "docid": "1a511f322d6ad53f08a8ecc449f609f8", "score": "0.60019827", "text": "public function getProperties()\n {\n return $this->properties;\n }", "title": "" }, { "docid": "1a511f322d6ad53f08a8ecc449f609f8", "score": "0.60019827", "text": "public function getProperties()\n {\n return $this->properties;\n }", "title": "" }, { "docid": "1a511f322d6ad53f08a8ecc449f609f8", "score": "0.60019827", "text": "public function getProperties()\n {\n return $this->properties;\n }", "title": "" }, { "docid": "1a511f322d6ad53f08a8ecc449f609f8", "score": "0.60019827", "text": "public function getProperties()\n {\n return $this->properties;\n }", "title": "" }, { "docid": "1a511f322d6ad53f08a8ecc449f609f8", "score": "0.60019827", "text": "public function getProperties()\n {\n return $this->properties;\n }", "title": "" }, { "docid": "5f19e65679a3cbcfabb1de685e6c0f1e", "score": "0.6000226", "text": "public function properties()\r\n {\r\n $props = $this->class->getProperties();\r\n \r\n sort( $props );\r\n \r\n foreach ( $props as $key => $property )\r\n {\r\n // Only show public properties, because Reflection can't get the private ones\n if ( $property->isPublic() )\r\n {\r\n $props[$key] = new Docs_Property( $this->class->name, $property->name );\r\n }\r\n else\r\n {\r\n unset( $props[$key] );\r\n }\r\n }\r\n \r\n return $props;\r\n }", "title": "" }, { "docid": "fee64638f4b09260408208be68712a62", "score": "0.5952779", "text": "public static function getProperties()\n {\n return [\n 'Type' => [false, self::PROPERTY_TYPE_ENUM, null, false, false],\n 'Name' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'ABN' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'BSB' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'AccountNumber' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'AccountName' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'ElectronicServiceAddress' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'SuperFundID' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'EmployerNumber' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'SPIN' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n ];\n }", "title": "" }, { "docid": "13f5c840f5d39bd997a72ff0aa9b1789", "score": "0.59451044", "text": "public function getProperties()\r\n\t{\r\n\t\treturn $this->_properties;\r\n\t}", "title": "" }, { "docid": "67b5c3ddb3729b66474e5b2f3dc93b33", "score": "0.59443176", "text": "public static function getProperties()\n {\n return [\n 'Description' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'Note' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'Code' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'Billable' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'Quantity' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],\n 'UnitCost' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],\n 'UnitPrice' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],\n 'Amount' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],\n 'AmountTax' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],\n 'AmountIncludingTax' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],\n ];\n }", "title": "" }, { "docid": "843b0865d79480769651233f0b7c79fd", "score": "0.5907433", "text": "private function getNsProperties($ns) {\n $ret[self::K_TYPE] = \"\";\n if ($ns) {\n $this->setBaseDir();\n $nsPath = str_replace(\":\", \"/\", $ns);\n\n if (is_dir($this->datadir.\"/$nsPath\")) {\n $ret[self::K_TYPE] = \"d\";\n $ret2 = $this->getParentProjectProperties(explode(\":\", \"$ns:dummy\"), \"d\");\n }\n else if (page_exists($ns)) {\n $ret[self::K_TYPE] = \"f\";\n $ret2 = $this->getParentProjectProperties(explode(\":\", $ns), \"f\");\n }\n\n if ($ret2) {\n $ret2[self::K_TYPE] .= $ret[self::K_TYPE];\n $ret = $ret2;\n }\n }\n return $ret;\n }", "title": "" }, { "docid": "840483ec1486678f0c5901a5aa44ceb8", "score": "0.5889281", "text": "public function getProperties()\n\t{\n\t\treturn $this->_properties;\n\t}", "title": "" }, { "docid": "878ce231e955e8277fe34ee45fb29294", "score": "0.58879226", "text": "public function getProperties() {\n\t\treturn $this->_properties;\n\t}", "title": "" }, { "docid": "aea64db5aae405add20a43058c4d1283", "score": "0.5868968", "text": "public function get_properties(): array {\n\t\t$properties = array();\n\n\t\tforeach ( $this->properties as $key => $property ) {\n\t\t\tif ( self::REF__KEY === $key ) {\n\t\t\t\t$properties = array_merge( $properties, $property->get_properties() );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$properties[ $key ] = $property;\n\t\t}\n\n\t\treturn $properties;\n\t}", "title": "" }, { "docid": "c252e12be0bb6c99bff4e4a0f49120b0", "score": "0.5846281", "text": "protected function properties()\n {\n return [\n 'host' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::object_browser(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CATG__NAGIOS_SERVICE_DEP__HOST',\n C__PROPERTY__INFO__DESCRIPTION => 'Host'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_nagios_service_dep_list__host_dep_connection',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_catg_nagios_refs_services_list',\n 'isys_catg_nagios_refs_services_list__id'\n ],\n C__PROPERTY__DATA__FIELD_ALIAS => 'hostdep_id',\n C__PROPERTY__DATA__TABLE_ALIAS => 'chostdep',\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__NAGIOS_SERVICE_DEP__HOST'\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__IMPORT => false,\n C__PROPERTY__PROVIDES__EXPORT => false\n ]\n ]\n ),\n 'service_dependency' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::object_browser(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CATG__NAGIOS_SERVICE_DEP__SERVICE_DEPENDENCY',\n C__PROPERTY__INFO__DESCRIPTION => 'Assigned objects'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_nagios_service_dep_list__service_dep_connection',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_connection',\n 'isys_connection__id'\n ],\n C__PROPERTY__DATA__FIELD_ALIAS => 'servicedep_id',\n C__PROPERTY__DATA__TABLE_ALIAS => 'cservicedep',\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__NAGIOS_SERVICE_DEP__SERVICE_DEPENDENCY'\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__IMPORT => false,\n C__PROPERTY__PROVIDES__EXPORT => false\n ],\n C__PROPERTY__CHECK => [\n C__PROPERTY__CHECK__MANDATORY => true\n ]\n ]\n ),\n 'host_dependency' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::object_browser(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CATG__NAGIOS_SERVICE_DEP__HOST_DEPENDENCY',\n C__PROPERTY__INFO__DESCRIPTION => 'Assigned objects'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_nagios_service_dep_list__host_connection',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_catg_nagios_refs_services_list',\n 'isys_catg_nagios_refs_services_list__id'\n ],\n C__PROPERTY__DATA__FIELD_ALIAS => 'host_id',\n C__PROPERTY__DATA__TABLE_ALIAS => 'chost',\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__NAGIOS_SERVICE_DEP__HOST_DEPENDENCY'\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__IMPORT => false,\n C__PROPERTY__PROVIDES__EXPORT => false\n ]\n ]\n ),\n 'inherits_parent' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'inherits_parent',\n C__PROPERTY__INFO__DESCRIPTION => 'inherits_parent'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_nagios_service_dep_list__inherits_parent'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__NAGIOS_SERVICE_DEP__INHERITS_PARENT',\n C__PROPERTY__UI__PARAMS => [\n 'p_arData' => serialize(get_smarty_arr_YES_NO())\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__MULTIEDIT => false,\n C__PROPERTY__PROVIDES__IMPORT => true,\n C__PROPERTY__PROVIDES__EXPORT => true\n ]\n ]\n ),\n 'execution_fail_criteria' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog_list(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'execution_failure_criteria',\n C__PROPERTY__INFO__DESCRIPTION => 'execution_failure_criteria'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_nagios_service_dep_list__exec_fail_criteria',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_catg_nagios_service_dep_list',\n 'isys_catg_nagios_service_dep_list__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__NAGIOS_SERVICE_DEP__EXEC_FAIL_CRITERIA',\n C__PROPERTY__UI__PARAMS => [\n 'p_arData' => new isys_callback(\n [\n 'isys_cmdb_dao_category_g_nagios_service_dep',\n 'callback_property_execution_fail_criteria'\n ]\n )\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__MULTIEDIT => false,\n C__PROPERTY__PROVIDES__IMPORT => true,\n C__PROPERTY__PROVIDES__EXPORT => true\n ],\n C__PROPERTY__FORMAT => null\n ]\n ),\n 'notification_fail_criteria' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog_list(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'notification_failure_criteria',\n C__PROPERTY__INFO__DESCRIPTION => 'notification_failure_criteria'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_nagios_service_dep_list__notif_fail_criteria',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_catg_nagios_service_dep_list',\n 'isys_catg_nagios_service_dep_list__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__NAGIOS_SERVICE_DEP__NOTIF_FAIL_CRITERIA',\n C__PROPERTY__UI__PARAMS => [\n 'p_arData' => new isys_callback(\n [\n 'isys_cmdb_dao_category_g_nagios_service_dep',\n 'callback_property_notification_fail_criteria'\n ]\n )\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__MULTIEDIT => false,\n C__PROPERTY__PROVIDES__IMPORT => true,\n C__PROPERTY__PROVIDES__EXPORT => true\n ],\n C__PROPERTY__FORMAT => null\n ]\n ),\n 'dependency_period' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'dependency_period',\n C__PROPERTY__INFO__DESCRIPTION => 'Period dependency_period'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_nagios_service_dep_list__dep_period',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_nagios_timeperiods',\n 'isys_nagios_timeperiods__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__NAGIOS_SERVICE_DEP__DEP_PERIOD',\n C__PROPERTY__UI__PARAMS => [\n 'p_arData' => new isys_callback(\n [\n 'isys_component_dao_nagios',\n 'getTimeperiodsAssoc'\n ]\n ),\n 'p_strClass' => 'input-dual-radio'\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__MULTIEDIT => false\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper_nagios',\n 'notification_period'\n ]\n ]\n ]\n ),\n 'dependency_period_plus' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog_plus(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'dependency_period+',\n C__PROPERTY__INFO__DESCRIPTION => 'dependency_period+'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_nagios_service_dep_list__dep_period_plus',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_nagios_timeperiods_plus',\n 'isys_nagios_timeperiods_plus__id'\n ],\n C__PROPERTY__DATA__TABLE_ALIAS => 'timeperiod_plus_b'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__NAGIOS_SERVICE_DEP__DEP_PERIOD_PLUS',\n C__PROPERTY__UI__PARAMS => [\n 'p_strTable' => 'isys_nagios_timeperiods_plus',\n 'p_strClass' => 'input-dual-radio mt5',\n 'p_bInfoIconSpacer' => 0\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__MULTIEDIT => false\n ]\n ]\n ),\n 'description' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::commentary(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__DESCRIPTION',\n C__PROPERTY__INFO__DESCRIPTION => 'Description'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_nagios_service_dep_list__description'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CMDB__CAT__COMMENTARY_' . C__CMDB__CATEGORY__TYPE_GLOBAL . C__CATG__NAGIOS_SERVICE_DEP\n ]\n ]\n )\n ];\n }", "title": "" }, { "docid": "57b78cbaff6f59906df504d7cca7f517", "score": "0.584162", "text": "public function properties()\n {\n // Fetch all properties existing in the database\n $properties = Property::all();\n\n // return list of properties;\n return $properties;\n\n }", "title": "" }, { "docid": "6fdb6188c5f86926c3af0afca5f9be3d", "score": "0.58241266", "text": "public function getDefinition() {\n $properties = array();\n\n foreach ( $this->getFields() as $name => $value) {\n if ( isset( $value ) ) {\n $properties[] = $name;\n $properties[] = $value;\n }\n }\n\n return $properties;\n }", "title": "" }, { "docid": "a7da4275ccd1ecb092df352d7b2f73f7", "score": "0.581905", "text": "public static function getProperties()\n {\n return [\n 'id' => [true, self::PROPERTY_TYPE_STRING, null, false, false],\n 'endDate' => [false, self::PROPERTY_TYPE_DATE, null, false, false],\n 'startDate' => [true, self::PROPERTY_TYPE_DATE, null, false, false],\n 'status' => [true, self::PROPERTY_TYPE_ENUM, null, false, false],\n 'price' => [true, self::PROPERTY_TYPE_OBJECT, '\\\\Price', false, false],\n 'product' => [true, self::PROPERTY_TYPE_OBJECT, '\\\\Product', false, false],\n ];\n }", "title": "" }, { "docid": "2d765d25721f859b9593f124dd7af877", "score": "0.57917386", "text": "public static function getProperties() : array {\r\n return self::$properties;\r\n }", "title": "" }, { "docid": "f865c0af8a45419b72d7c90058c7642a", "score": "0.5784658", "text": "public static function getAxProperties()\n {\n return array(\n \"firstname\"=> 'http://axschema.org/namePerson/first',\n \"lastname\" => 'http://axschema.org/namePerson/last',\n \"email\" => 'http://axschema.org/contact/email',\n \"language\" => 'http://axschema.org/pref/language',\n \"timezone\" => 'http://axschema.org/pref/timezone',\n \"country\" => 'http://axschema.org/contact/country/home',\n \"postcode\" => 'http://axschema.org/contact/postalCode/home',\n \"dob\" => 'http://axschema.org/birthDate',\n \"gender\" => 'http://axschema.org/person/gender',\n );\n }", "title": "" }, { "docid": "0dd830e2abd3d92dd3a23459f17386ee", "score": "0.57840204", "text": "public function getProperties(): array\n {\n return $this->getParam('properties');\n }", "title": "" }, { "docid": "d08e2fe6162ca24ece6a6122b50ee55f", "score": "0.57685596", "text": "public function getPropertiesArray()\n {\n $propertiesArray = array();\n \n $propertiesArray['contextid'] = $this->getContextid();\n $propertiesArray['name'] = $this->getName();\n $propertiesArray['deleted'] = $this->isDeleted();\n $propertiesArray['context_timestamp'] = $this->getLastModified();\n\n return $propertiesArray;\n }", "title": "" }, { "docid": "210a5765c87994f52e162e65f104f0f4", "score": "0.5738022", "text": "public function getAllProperties() {\n\t\t$bean = $this->unbox();\n\n\t\t$properties = $this->properties;\n\n\t\t$sourceInstance = $this->getSourceInstance();\n\t\tif ($sourceInstance !== null) {\n\t\t\t$sourceServer = $this->getSourceServer();\n\t\t\tif ($sourceServer !== null) {\n\t\t\t\t$properties = array_merge($properties, $this->addPrefixProperties($sourceServer->box()->getProperties(), 'source'));\n\t\t\t}\n\t\t\t$properties = array_merge($properties, $this->addPrefixProperties($sourceInstance->box()->getProperties(), 'source'));\n\t\t}\n\n\t\t$targetInstance = $this->getTargetInstance();\n\t\tif ($targetInstance !== null) {\n\t\t\t$targetServer = $this->getTargetServer();\n\t\t\tif ($targetServer !== null) {\n\t\t\t\t$properties = array_merge($properties, $this->addPrefixProperties($targetServer->box()->getProperties(), 'remote'));\n\t\t\t}\n\t\t\t$properties = array_merge($properties, $this->addPrefixProperties($targetInstance->box()->getProperties(), 'remote'));\n\t\t}\n\n\t\t// Finally some special \n\t\t$properties['deploymentId'] = $bean->id;\n\t\t$config = Zend_Registry::get('config');\n\t\t$properties['buildscriptDir'] = $config->directories->buildscript;\n\t\treturn $properties;\n\t}", "title": "" }, { "docid": "7ca05c0700f40a01028385d8a714726b", "score": "0.57344455", "text": "public function getProperties(): array {\n\t\treturn array_keys($this->properties);\n\t}", "title": "" }, { "docid": "ebe82b80dba220d3daac822e7dba3c8e", "score": "0.5733788", "text": "protected function retrievableProperties()\n {\n $properties = array(\n// 'Addresses', //\tSubscriberAddress[]\tIndicates addresses belonging to a subscriber.\n// 'Attributes', //\tAttribute[]\tSpecifies attributes associated with an object.\n// 'Client', //\tClientID\tSpecifies the account ownership and context of an object.\n// 'CorrelationID', //\txsd:string\tIdentifies correlation of objects across several requests.\n 'CreatedDate', //\txsd:dateTime\tRead-only date and time of the object's creation.\n// 'CustomerKey', //\txsd:string\tUser-supplied unique identifier for an object within an object type.\n 'EmailAddress', //\txsd:string\tContains the email address for a subscriber. Indicates the data extension field contains email address data.\n 'EmailTypePreference', //\tEmailType\tThe format in which email should be sent\n// 'GlobalUnsubscribeCategory', //\tGlobalUnsubscribeCategory\tIndicates how the application handles a globally unsubscribed subscriber.\n 'ID', //\txsd:int\tRead-only legacy identifier for an object. Not supported on all objects.\n// 'Lists', //\tSubscriberList[]\tDefines lists a subscriber resides on.\n// 'Locale', //\tLocale\tContains the locale information for an Account.\n// 'ModifiedDate', //\tNullable`1\tLast time object information was modified.\n// 'ObjectID', //\txsd:string\tSystem-controlled, read-only text string identifier for object.\n// 'ObjectState', //\txsd:string\tReserved for future use.\n// 'Owner', //\tOwner\tDescribes account ownership of subscriber in an on-your-behalf account.\n 'PartnerKey', //\txsd:string\tUnique identifier provided by partner for an object, accessible only via API.\n// 'PartnerProperties', //\tAPIProperty[]\tA collection of metadata supplied by client and stored by system - only accessible via API.\n// 'PartnerType', //\txsd:string\tDefines partner associated with a subscriber.\n// 'PrimaryEmailAddress', //\tEmailAddress\tIndicates primary email address for a subscriber.\n// 'PrimarySMSAddress', //\tSMSAddress\tIndicates primary SMS address for a subscriber.\n// 'PrimarySMSPublicationStatus', //\tSubscriberAddressStatus\tIndicates the subscriber's modality status.\n 'Status', //\tSubscriberStatus\tDefines status of object. Status of an address.\n 'SubscriberKey', //\txsd:string\tIdentification of a specific subscriber.\n// 'SubscriberTypeDefinition', //\tSubscriberTypeDefinition\tSpecifies if a subscriber resides in an integration, such as Salesforce or Microsoft Dynamics CRM\n 'UnsubscribedDate'\n );\n\n return $properties;\n }", "title": "" }, { "docid": "cb0f9713feb71d051d3bf0afbd7f64af", "score": "0.57329285", "text": "public function getPropertyNames() {\n // {PropertyName(property-name, property-type),}\n $nameSet = array();\n foreach ($this->tree->getPropertyNames() as $name) {\n $nameSet[] = new Mobi_Mtld_DA_PropertyName(\n substr($name, 1),\n self::getPropertyTypeAsByte($name[0])\n );\n }\n return $nameSet;\n }", "title": "" }, { "docid": "b59689823e278bb25d7fb9d3dd8859e4", "score": "0.57317775", "text": "public function getProperties($namespace = null)\n {\n if (!$namespace) {\n return $this->properties;\n }\n\n if (isset($this->properties[$namespace])) {\n return $this->properties[$namespace];\n }\n\n return array();\n }", "title": "" }, { "docid": "f955598d99a0a5e5a4459590e9733d1d", "score": "0.5718366", "text": "public function getProperties(): array\n {\n $field = $this->field;\n\n $properties = [];\n\n $properties[] = 'type=\"text\"';\n\n //ID\n if ($field->getId() !== '') {\n $properties[] = \"id='{$field->getId()}'\";\n }\n\n // Name\n $properties[] = \"name='{$field->getName()}'\";\n\n // Class\n if ($field->getClass() !== '') {\n $properties[] = \"class='{$field->getClass()}'\";\n }\n\n // Placeholder\n if ($field->getPlaceholder() !== '') {\n $properties[] = \"placeholder='{$field->getPlaceholder()}'\";\n }\n\n // Value\n if ($field->getValue() !== '') {\n $properties[] = \"value='{$field->getValue()}'\";\n }\n\n // Required\n if ($field->isRequired() === true) {\n $properties[] = 'required';\n }\n\n // Disabled\n if ($field->isDisabled() === true) {\n $properties[] = 'disabled';\n }\n\n return $properties;\n }", "title": "" }, { "docid": "1d2b1861152ad07554f1ac7bf4b1b787", "score": "0.56796694", "text": "public static function getProperties()\n\t\t{\n\t\t\treturn self::$properties;\n\t\t}", "title": "" }, { "docid": "f3a415a6a51709050af0f95f4a66e294", "score": "0.567803", "text": "public function properties() : array\n {\n return array_keys($this->_properties);\n }", "title": "" }, { "docid": "2446cd39c8914df9db013547cc8e2ed7", "score": "0.5673258", "text": "public function properties() {\n return array_keys($this->propertyDefs());\n }", "title": "" }, { "docid": "60e9fef9af58388381fd35293068afca", "score": "0.56609017", "text": "public function nodeProperties()\n {\n return\n 'Base URI: ' . $this->baseURI . PHP_EOL\n . 'Namespace URI: ' . $this->namespaceURI . PHP_EOL\n . 'Name: ' . $this->name . PHP_EOL\n . 'Local Name: ' . $this->localName . PHP_EOL\n . 'Prefix: ' . $this->prefix . PHP_EOL\n . 'XML Language: ' . $this->xmlLang . PHP_EOL\n \n . 'Node Type: ' . $this->nodeType() . PHP_EOL\n . 'Depth: ' . $this->depth . PHP_EOL\n . 'Value: ' . $this->value . PHP_EOL\n . 'Is Empty Element: ' . ($this->isEmptyElement ? 'Yes' : 'No') . PHP_EOL\n \n . 'Attributes: ' . $this->attributeCount . PHP_EOL\n . 'Is attribute defaulted from DTD: ' . ($this->isDefault ? 'Yes' : 'No') . PHP_EOL\n ;\n }", "title": "" }, { "docid": "4cf88e4079f9abf0b2cf6401837fed04", "score": "0.5654136", "text": "public function getProperties() {\n if ($this->properties === null) {\n // try to get from cache\n $cacheKey = \"document_properties_\" . $this->getId();\n $properties = Cache::load($cacheKey);\n if (!is_array($properties)) {\n $properties = $this->getResource()->getProperties();\n $elementCacheTag = $this->getCacheTag();\n $cacheTags = array(\"document_properties\" => \"document_properties\", $elementCacheTag => $elementCacheTag);\n Cache::save($properties, $cacheKey, $cacheTags);\n }\n\n $this->setProperties($properties);\n }\n return $this->properties;\n }", "title": "" }, { "docid": "ecc99020364b49ca53578caff2953793", "score": "0.5647726", "text": "protected function properties()\n {\n return [\n 'connected_object' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::object_browser(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__SHARE_ACCESS__ASSIGNED_OBJECT',\n C__PROPERTY__INFO__DESCRIPTION => 'Title'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_its_components_list__isys_connection__id',\n C__PROPERTY__DATA__RELATION_TYPE => C__RELATION_TYPE__IT_SERVICE_COMPONENT,\n C__PROPERTY__DATA__RELATION_HANDLER => new isys_callback(\n [\n 'isys_cmdb_dao_category_g_it_service_components',\n 'callback_property_relation_handler'\n ], [\n 'isys_cmdb_dao_category_g_it_service_components',\n true\n ]\n ),\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_connection',\n 'isys_connection__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CMDB__CATG__IT_SERVICE_COMPONENTS__CONNECTED_OBJECT',\n C__PROPERTY__UI__PARAMS => [\n 'groupFilter' => 'C__OBJTYPE_GROUP__INFRASTRUCTURE',\n 'multiselection' => true\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__REPORT => true,\n C__PROPERTY__PROVIDES__LIST => false\n ],\n C__PROPERTY__CHECK => [\n C__PROPERTY__CHECK__MANDATORY => false\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'connection'\n ]\n ]\n ]\n ),\n 'objtype' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::int(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__REPORT__FORM__OBJECT_TYPE',\n C__PROPERTY__INFO__DESCRIPTION => 'Object type'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_obj__isys_obj_type__id',\n C__PROPERTY__DATA__FIELD_ALIAS => 'itsc_type',\n C__PROPERTY__DATA__TABLE_ALIAS => 'itsc',\n\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CMDB__CATG__IT_SERVICE_COMPONENTS__OBJTYPE'\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__IMPORT => false,\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__MULTIEDIT => false,\n C__PROPERTY__PROVIDES__VALIDATION => false,\n C__PROPERTY__PROVIDES__EXPORT => true\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'obj_type'\n ]\n ]\n ]\n )\n ];\n }", "title": "" }, { "docid": "68f063482cba7fcdf126488c6d8458d6", "score": "0.5641414", "text": "function &getProperties() {\r\n\t\t// Load the data\r\n\t\tif (empty ($this->_properties)) {\r\n\r\n\t\t\t$database \t=& $this->_db;\r\n\t\t\t$ce \t\t=& $this->_content_element;\r\n\t\t\t$ref_table \t= $ce->table;\r\n\t\t\t$content_id = $this->_id;\r\n\r\n\t\t\t$database = $this->_db;\r\n\t\t\t$ce = $this->_content_element;\r\n\t\t\t// retrieve values\r\n\t\t\t// $selstr[] \t= \"c.id \";\r\n $selstr[] = \"c.\".$ce->id;\r\n\t\t\t$fromstr[] \t= \"#__$ref_table AS c\";\r\n\t\t\t$wherestr\t= \"c.\".$ce->id .\" = '\" . $this->_id . \"'\";\r\n\r\n\t\t\tif($ce->sec_table){\r\n\t\t\t\t$selstr[] \t\t= \"sec.\".$ce->sec_table_id.\" AS secid \";\r\n\t\t\t\t$selstr[] \t\t= \"sec.\".$ce->sec_table_title.\" AS section\";\r\n\t\t\t\t$fromstr[] \t\t= \"LEFT JOIN #__\".$ce->sec_table.\" AS sec ON(c.\".$ce->sectionid.\" = sec.\".$ce->sec_table_id.\") \";\r\n\t\t\t}\r\n\r\n\t\t\tif($ce->cat_table){\r\n\t\t\t\t$selstr[] \t\t= \"cat.\".$ce->cat_table_id.\" AS catid \";\r\n\t\t\t\t$selstr[] \t\t= \"cat.\".$ce->cat_table_title.\" AS category\";\r\n\t\t\t\t$fromstr[] \t\t= \"LEFT JOIN #__\".$ce->cat_table.\" AS cat ON(c.\".$ce->catid.\" = cat.\".$ce->cat_table_id.\") \";\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t\t$query = \"SELECT \" .implode( ',', $selstr). \" FROM \" . implode(' ', $fromstr). \" WHERE $wherestr \";\r\n\t\t\t$database->setQuery($query);\r\n\t\t\t$row = $database->loadObject();\r\n\r\n\t\t\t$properties = \tarray (\t'section' \t=> $row->section,\r\n\t\t\t \t\t\t\t\t\t'category' \t=> $row->category,\r\n\t\t\t \t\t\t\t\t\t'content_element' => $ce->label\r\n\t\t\t \t\t\t\t\t\t);\r\n\t\t\t$this->_properties = $properties;\r\n\t\t}\r\n\t\treturn $this->_properties;\r\n\t}", "title": "" }, { "docid": "23adee1bb9af2d28089eab22b5e9826f", "score": "0.56329775", "text": "public function getProperties() {\n if (is_array($this->_props)) {\n return $this->_props;\n } else {\n return array();\n }\n }", "title": "" }, { "docid": "2e6c6a402553120672e31afc52394e36", "score": "0.56329304", "text": "public function getProperties(): CollectionInterface\n {\n return $this->properties;\n }", "title": "" }, { "docid": "9a07ed5c7828c52f377bc6176f568827", "score": "0.5624003", "text": "public function it_returns_list_of_properties()\n {\n $this->properties->setBaseUrl($this->url);\n\n $this->properties->login();\n\n $this->assertJson($this->properties->get());\n }", "title": "" }, { "docid": "b2c1cbe4cb7e694f97150034b7d0b50d", "score": "0.56227815", "text": "public function dynamic_properties()\n {\n return [\n '_capacity' => [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB_CATG__MEMORY_CAPACITY',\n C__PROPERTY__INFO__DESCRIPTION => 'Capacity'\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n $this,\n 'dynamic_property_callback_capacity'\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__LIST => true\n ]\n ],\n '_free_space' => [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__DRIVE__FREE_SPACE',\n C__PROPERTY__INFO__DESCRIPTION => 'Free space'\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n $this,\n 'dynamic_property_callback_free_space'\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__LIST => true\n ]\n ],\n '_used_space' => [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__DRIVE__USED_SPACE',\n C__PROPERTY__INFO__DESCRIPTION => 'Used space'\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n $this,\n 'dynamic_property_callback_used_space'\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__LIST => true\n ]\n ]\n ];\n }", "title": "" }, { "docid": "bd103759ac17127a39db98dd1d9da948", "score": "0.5616495", "text": "public static function getProperties()\n {\n return [\n 'NumberOfUnits' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'PayPeriodEndDate' => [false, self::PROPERTY_TYPE_DATE, '\\\\DateTimeInterface', false, false],\n 'PayPeriodStartDate' => [false, self::PROPERTY_TYPE_DATE, '\\\\DateTimeInterface', false, false],\n 'LeavePeriodStatus' => [false, self::PROPERTY_TYPE_ENUM, null, false, false],\n ];\n }", "title": "" }, { "docid": "53b74a796c85d4a65e2e1f09816bb12a", "score": "0.5603491", "text": "abstract public function getJsProperties();", "title": "" }, { "docid": "a744d9a254d9b73d5aa9fcc44b347884", "score": "0.5601411", "text": "public function getProperties()\n {\n return $this->getProperty();\n }", "title": "" }, { "docid": "dab3b1a3a113bfae33547a656696fd20", "score": "0.55767787", "text": "public function get_properties()\r\n\t{\r\n\t\treturn get_object_vars($this);\r\n\t}", "title": "" }, { "docid": "fc86d502f411971e8cb2ac90cfb4ba80", "score": "0.5570607", "text": "public function getProperties() {\n return array_keys($this->_properties);\n }", "title": "" }, { "docid": "dbf0958dfc898a7726ed6740f9ad5d59", "score": "0.55489427", "text": "abstract protected function getToStringProperties();", "title": "" }, { "docid": "7b6eacb9685ac0d026e1f47122292987", "score": "0.55441254", "text": "public static function getProperties()\n {\n return static::$properties;\n }", "title": "" }, { "docid": "8a8701fe359b77af46d321f2b20fceff", "score": "0.5533252", "text": "function getPropertiesTemplate() {\n return ' public ${{PROPERTY_NAME}};\n';\n}", "title": "" }, { "docid": "77adb5065e60e2b32bc0f66b0f87e964", "score": "0.55124354", "text": "public function collection()\n\t{\n\t\t$properties = Property::PropertyReport($this->request)->get();\n\t\treturn $properties;\n\t}", "title": "" }, { "docid": "e874c164981c0fac491876d123fa73b2", "score": "0.55096143", "text": "public function properties($resource)\n {\n $this->checkResourceParam($resource);\n\n $properties = array();\n if (isset($this->index[$resource])) {\n foreach ($this->index[$resource] as $property => $value) {\n $short = RdfNamespace::shorten($property);\n if ($short) {\n $properties[] = $short;\n }\n }\n }\n return $properties;\n }", "title": "" }, { "docid": "dd68949da17c6716d93bd54c8583a8c7", "score": "0.55094624", "text": "function getProperties($pathFile){\n\t\t$data = array();\n\t\t$xml = \"\";\n\t\tif(file_exists($pathFile)){\n\t\t\tif(isset($pathFile)){\n\t\t\t\t$data = array();\n\t\t\t\t$xml = simplexml_load_file($pathFile);\n\t\t\t\tforeach($xml->entry as $nodo){\n\t\t\t\t\t$data[(string)$nodo->attributes()[\"key\"]] = (string)$nodo;\n\t\t\t\t}\n\t\t\t\t//error_log(\"properties encontradas: \".count($data).\"\\n\",0);\n\t\t\t}\n\t\t}else{\n\t\t\t//error_log(\"No existe archivo: \".$pathFile.\"\\n\",0);\n\t\t}\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "18580ba4f4031047bf76d9041310edff", "score": "0.55087405", "text": "public function getContentProperties() {\n $properties = parent::getContentProperties();\n $properties->setParameterId($this->getValue(self::FIELD_PARAMETER_ID));\n\n return $properties;\n }", "title": "" }, { "docid": "3e0dbf34bb034795a2e90edb151334be", "score": "0.5504638", "text": "public function extract()\n {\n $openGraph = [];\n $namespaces = ['og', 'fb', 'facebook', 'article', 'book', 'profile', 'website', 'music', 'video'];\n\n /* @var $meta \\DOMElement */\n foreach ($this->dom->filter('meta') as $meta) {\n if (false === $meta->hasAttribute('property')) {\n continue;\n }\n\n $property = null;\n\n foreach ($namespaces as $namespace) {\n if ($namespace . ':' === substr($meta->getAttribute('property'), 0, strlen($namespace) + 1)) {\n $property = $meta->getAttribute('property');\n break;\n }\n }\n\n if (null === $property) {\n continue;\n }\n\n if (true === $meta->hasAttribute('content')) {\n $content = $this->decode($meta->getAttribute('content'));\n\n if (false === isset($openGraph[$property])) {\n $openGraph[$property] = $content;\n } elseif (false === is_array($openGraph[$property])) {\n $openGraph[$property] = [$openGraph[$property], $content];\n } else {\n $openGraph[$property][] = $content;\n }\n }\n }\n\n return $openGraph;\n }", "title": "" }, { "docid": "eef2de1959aa408587ac6cc94243bddf", "score": "0.55008626", "text": "function getSourceProperties() {\r\n\t\t$properties = array();\r\n\t\t/* @var $source modMediaSource */\r\n\t\tif ($source = $this->resource->initializeMediaSource()) {\r\n\t\t\t$tmp = $source->getProperties();\r\n\t\t\t$properties = array();\r\n\t\t\tforeach ($tmp as $v) {\r\n\t\t\t\t$properties[$v['name']] = $v['value'];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $properties;\r\n\t}", "title": "" }, { "docid": "0eeddca3a0a857c986bc5dcf4f104d2d", "score": "0.5483301", "text": "public function getProperties($index);", "title": "" }, { "docid": "cc923d0074e4676bdb4269fc65102104", "score": "0.54803675", "text": "public function toArray() \n\t{\n\t\t$properties = array_merge(parent::toArray(), $this->properties);\n\t\tforeach ($properties as $name => $rawValue) {\n\t\t\t$value = $this->get($name, $rawValue);\n\t\t\t\n\t\t\tif ($value instanceof \\Bliss\\Component || $value instanceof \\Bliss\\Collection) {\n\t\t\t\t$properties[$name] = $value->toArray();\n\t\t\t} else {\n\t\t\t\t$properties[$name] = $value;\n\t\t\t}\n\t\t}\n\t\treturn $properties;\n\t}", "title": "" }, { "docid": "1723d57863cf51d0e62c6c512ec14039", "score": "0.5479172", "text": "public function getAllProperties(): array\n {\n return get_object_vars($this);\n }", "title": "" }, { "docid": "9735763ebf91e8442019ab46de887593", "score": "0.5470732", "text": "public function getProperties(): Collection\n {\n return collection($this->reflectionObject->getImmediateProperties())->map(function (ReflectionProperty $property) {\n return new PropertyEntity($property);\n });\n }", "title": "" }, { "docid": "8041a055221cedda689ca5cf3094d4de", "score": "0.54692394", "text": "public static function schema() {\n\t\treturn array(\n\t\t\t'type' => 'object',\n\t\t\t'properties' => array(\n\t\t\t\t'attributes' => array(\n\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t'additionalProperties' => array(\n\t\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t\t'properties' => array(\n\t\t\t\t\t\t\t'attribute' => array(\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'meta' => array(\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'multiline' => array(\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'query' => array(\n\t\t\t\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'selector' => array(\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'source' => array(\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t'enum' => array( 'attribute', 'text', 'html', 'query' ),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'type' => array(\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t'enum' => array( 'null', 'boolean', 'object', 'array', 'number', 'string', 'integer' ),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'required' => array( 'type' ),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'category' => array(\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t\t'comment' => array(\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t\t'description' => array(\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t\t'editorScript' => array(\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'pattern' => '\\.js$',\n\t\t\t\t),\n\t\t\t\t'editorStyle' => array(\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'pattern' => '\\.css$',\n\t\t\t\t),\n\t\t\t\t'example' => array(\n\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t'additionalProperties' => array(\n\t\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'icon' => array(\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t\t'keywords' => array(\n\t\t\t\t\t'type' => 'array',\n\t\t\t\t\t'items' => array(\n\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'name' => array(\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t\t'parent' => array(\n\t\t\t\t\t'type' => 'array',\n\t\t\t\t\t'items' => array(\n\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'script' => array(\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'pattern' => '\\.js$',\n\t\t\t\t),\n\t\t\t\t'style' => array(\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'pattern' => '\\.css$',\n\t\t\t\t),\n\t\t\t\t'styles' => array(\n\t\t\t\t\t'type' => 'array',\n\t\t\t\t\t'items' => array(\n\t\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t\t'properties' => array(\n\t\t\t\t\t\t\t'isDefault' => array(\n\t\t\t\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'label' => array(\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'name' => array(\n\t\t\t\t\t\t\t\t'type' => 'string',\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\t'supports' => array(\n\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t'properties' => array(\n\t\t\t\t\t\t'align' => array(\n\t\t\t\t\t\t\t'type' => array( 'boolean', 'array' ),\n\t\t\t\t\t\t\t'items' => array(\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t'enum' => array( 'left', 'center', 'right', 'wide', 'full' ),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'alignWide' => array(\n\t\t\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'anchor' => array(\n\t\t\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'className' => array(\n\t\t\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'customClassName' => array(\n\t\t\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'html' => array(\n\t\t\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'inserter' => array(\n\t\t\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'multiple' => array(\n\t\t\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'reusable' => array(\n\t\t\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'textdomain' => array(\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t\t'title' => array(\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'required' => array( 'name', 'title' ),\n\t\t\t'additionalProperties' => false,\n\t\t);\n\t}", "title": "" }, { "docid": "d360a1343d658cb4bfc4735f9b64c758", "score": "0.5465803", "text": "public function properties() { }", "title": "" }, { "docid": "ad2437538d954e10c567ea7d2bc80943", "score": "0.5463665", "text": "public function getProperties()\n {\n return get_object_vars($this);\n }", "title": "" }, { "docid": "7c04dda9ba6eb822420d2dbcb50eff2a", "score": "0.5452309", "text": "protected function properties()\n {\n return [\n 'formfactor' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog_plus(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__FORMFACTOR',\n C__PROPERTY__INFO__DESCRIPTION => 'Form factor'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_formfactor_list__isys_catg_formfactor_type__id',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_catg_formfactor_type',\n 'isys_catg_formfactor_type__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__FORMFACTOR_TYPE',\n C__PROPERTY__UI__PARAMS => [\n 'p_strTable' => 'isys_catg_formfactor_type',\n 'p_strClass' => 'input-small'\n ]\n ]\n ]\n ),\n 'rackunits' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::int(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__RACKUNITS',\n C__PROPERTY__INFO__DESCRIPTION => 'Rack units'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_formfactor_list__rackunits'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__FORMFACTOR_RACKUNITS',\n C__PROPERTY__UI__PARAMS => [\n 'p_strClass' => 'input-mini'\n ]\n ]\n ]\n ),\n 'unit' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__FORMFACTOR_INSTALLATION_DIMENSION_UNIT',\n C__PROPERTY__INFO__DESCRIPTION => 'dimension unit'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_formfactor_list__isys_depth_unit__id',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_depth_unit',\n 'isys_depth_unit__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__FORMFACTOR_INSTALLATION_DEPTH_UNIT',\n C__PROPERTY__UI__PARAMS => [\n 'p_strTable' => 'isys_depth_unit',\n 'p_strClass' => 'input-mini',\n 'p_bDbFieldNN' => 1\n ],\n C__PROPERTY__UI__DEFAULT => C__DEPTH_UNIT__INCH\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__SEARCH => false\n ]\n ]\n ),\n 'width' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::float(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__FORMFACTOR_INSTALLATION_WIDTH',\n C__PROPERTY__INFO__DESCRIPTION => 'Width'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_formfactor_list__installation_width'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__FORMFACTOR_INSTALLATION_WIDTH',\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'convert',\n ['measure']\n ],\n C__PROPERTY__FORMAT__UNIT => 'unit'\n ]\n ]\n ),\n 'height' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::float(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__FORMFACTOR_INSTALLATION_HEIGHT',\n C__PROPERTY__INFO__DESCRIPTION => 'Height'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_formfactor_list__installation_height'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__FORMFACTOR_INSTALLATION_HEIGHT',\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'convert',\n ['measure']\n ],\n C__PROPERTY__FORMAT__UNIT => 'unit'\n ]\n ]\n ),\n 'depth' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::float(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__FORMFACTOR_INSTALLATION_DEPTH',\n C__PROPERTY__INFO__DESCRIPTION => 'Depth'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_formfactor_list__installation_depth'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__FORMFACTOR_INSTALLATION_DEPTH',\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'convert',\n ['measure']\n ],\n C__PROPERTY__FORMAT__UNIT => 'unit'\n ]\n ]\n ),\n 'weight' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::float(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__FORMFACTOR_INSTALLATION_WEIGHT',\n C__PROPERTY__INFO__DESCRIPTION => 'Weight'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_formfactor_list__installation_weight'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__FORMFACTOR_INSTALLATION_WEIGHT',\n C__PROPERTY__UI__PARAMS => [\n 'p_strClass' => 'input-dual-large'\n ]\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'convert',\n ['weight']\n ],\n C__PROPERTY__FORMAT__UNIT => 'weight_unit'\n ]\n ]\n ),\n 'weight_unit' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__FORMFACTOR_INSTALLATION_WEIGHT_UNIT',\n C__PROPERTY__INFO__DESCRIPTION => 'weight unit'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_formfactor_list__isys_weight_unit__id',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_weight_unit',\n 'isys_weight_unit__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATG__FORMFACTOR_INSTALLATION_WEIGHT_UNIT',\n C__PROPERTY__UI__PARAMS => [\n 'p_strTable' => 'isys_weight_unit',\n 'p_strClass' => 'input-dual-small',\n 'p_bDbFieldNN' => 1,\n 'p_bInfoIconSpacer' => 0,\n ],\n C__PROPERTY__UI__DEFAULT => C__WEIGHT_UNIT__G,\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__SEARCH => false\n ]\n ]\n ),\n 'description' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::commentary(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__LOGBOOK__DESCRIPTION',\n C__PROPERTY__INFO__DESCRIPTION => 'Description'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_formfactor_list__description'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CMDB__CAT__COMMENTARY_' . C__CMDB__CATEGORY__TYPE_GLOBAL . C__CATG__FORMFACTOR\n ]\n ]\n )\n ];\n }", "title": "" }, { "docid": "be098a43a8ae68a3b32eb7c863adef98", "score": "0.54348665", "text": "public function props()\n\t{\n\t\treturn $this->props;\n\t}", "title": "" }, { "docid": "efe36c5d26f1e464d9fe01e0e0f66828", "score": "0.54290235", "text": "public function getProperties()\n {\n return array_keys($this->toArray());\n }", "title": "" }, { "docid": "7307c46ceed7a6c2624ab9ec4fc97d38", "score": "0.54149055", "text": "function nestedbox_core_entity_property_info() {\n $info = array();\n $properties = &$info['nestedbox']['properties'];\n $properties['nestedbox_id'] = array(\n 'type' => 'integer',\n 'schema field' => 'nestedbox_id',\n 'label' => t('The primary identifier.'),\n /* @see entity_property_verbatim_set() */\n 'setter callback' => 'entity_property_verbatim_set',\n );\n $properties['admin_title'] = array(\n 'type' => 'text',\n 'schema_field' => 'admin_title',\n 'required' => FALSE,\n 'label' => t('Administrative title'),\n /* @see entity_property_verbatim_set() */\n 'setter callback' => 'entity_property_verbatim_set',\n );\n $properties['type'] = array(\n 'type' => 'text',\n 'schema field' => 'type',\n 'required' => TRUE,\n 'label' => t('Nested Box type (bundle)'),\n /* @see entity_property_verbatim_set() */\n 'setter callback' => 'entity_property_verbatim_set',\n );\n return $info;\n}", "title": "" } ]
6098ebf0906e741a53d3018155180f7d
Set the model data used by the form.
[ { "docid": "91ac5abfe3492c62fa1c442729a50db2", "score": "0.7763885", "text": "protected function setModelData()\n {\n $data = $this->model ? $this->model->toArray() : [];\n\n foreach($this->fields() as $field) {\n if (!isset($data[$field->name]) && !$field->is_meta) {\n $data[$field->name] = $field->default;\n }\n }\n\n $this->model_data = $data;\n }", "title": "" } ]
[ { "docid": "e339e15f34633798b2c50b3f17fea7fe", "score": "0.7544598", "text": "public function setModel();", "title": "" }, { "docid": "ef5425cb06a040850307f3e197cf3ded", "score": "0.74825054", "text": "abstract protected function setModel();", "title": "" }, { "docid": "cedcb2216da3e00917fefd7d73cb636e", "score": "0.7355412", "text": "public function setDataModel($model);", "title": "" }, { "docid": "3ba6ff679b54fe8f3270cc731fab149a", "score": "0.71219665", "text": "abstract protected function setData($model, Request $request);", "title": "" }, { "docid": "b991eaf65a165693572deed8f75aab2c", "score": "0.6990566", "text": "public function setModel()\n {\n $this->model = app()->make(\n $this->getModel()\n );\n }", "title": "" }, { "docid": "4484ce9c57c030260cec12a70f556268", "score": "0.6946669", "text": "public function builder_form_data() {\n\n\t\t$this->form_data = WPForms_Builder::instance()->form_data;\n\t}", "title": "" }, { "docid": "da8973c35894141075c1387224466692", "score": "0.67250216", "text": "private function setMockData()\n {\n $this->setData([\n 'class' => ['model'],\n 'properties' => [\n 'uuid' => $this->getId(),\n 'name' => 'test'\n ],\n 'links' => [\n [\n 'rel' => ['model', 'self'],\n 'href' => '/models/' . $this->getId()\n ]\n ]\n ]);\n }", "title": "" }, { "docid": "5918631a5e7940489ba77ccd230d0796", "score": "0.6694944", "text": "public function setFormValues($data = null)\n {\n if ($data === null) {\n $data = $this->getSaveData();\n }\n\n // Fill the model as if it were to be saved\n $this->prepareModelsToSave($this->model, $data);\n\n // Data set differs from model\n if ($this->data !== $this->model) {\n $this->data = (object) array_merge((array) $this->data, (array) $data);\n }\n\n // Set field values from data source\n foreach ($this->allFields as $field) {\n $field->value = $this->getFieldValue($field);\n }\n\n // Notify form widgets of the change\n foreach ($this->formWidgets as $widget) {\n $widget->resetFormValue();\n }\n\n return $data;\n }", "title": "" }, { "docid": "39a3fa1fb0af0941888ae4218152d2a2", "score": "0.6628841", "text": "protected function fillModel()\n {\n if ($this->elastic instanceof Elastic) {\n $this->data = Json::encode($this->elastic->attributes);\n } else {\n $this->data = '{}';\n }\n }", "title": "" }, { "docid": "faaad931a09e56357820b529a96e0573", "score": "0.660177", "text": "public function beforeModelSave()\n {\n $this->model->item = $this->recordCode;\n if ($this->fieldValues) {\n $this->model->data = $this->fieldValues;\n }\n }", "title": "" }, { "docid": "d59e9ccc9e6cb30dd22d0c52a3e0e37c", "score": "0.6574415", "text": "public function loadData() {\n $model = $this->getModel(false);\n if ($model !== null) {\n $class = method_exists($model, 'formName') ? $model->formName() : get_class($model);\n if (strcasecmp($this->getRoot()->method, 'get')) {\n if (isset($_POST[$class])) {\n $model->setAttributes($_POST[$class]);\n }\n } elseif (isset($_GET[$class])) {\n $model->setAttributes($_GET[$class]);\n }\n }\n foreach ($this->getElements() as $element) {\n if ($element instanceof self) {\n $element->loadData();\n }\n }\n }", "title": "" }, { "docid": "ec676eac005a8d675bccd5afa698f7fb", "score": "0.653693", "text": "protected function setModel() {\n\t\t$this->model = new Moondee_Mark_Model_Mark();\n\t}", "title": "" }, { "docid": "bd12a0d5069c49b9e68de14c96bbb5ae", "score": "0.6515681", "text": "public function setModel($model);", "title": "" }, { "docid": "412214f94a4d0bcc706aa2e3780b7ac8", "score": "0.6458077", "text": "public static function setModel($model)\n {\n /** @var \\Collective\\Html\\FormBuilder $instance */\n $instance->setModel($model);\n }", "title": "" }, { "docid": "f9a5c058b9408f508d9191a184868b19", "score": "0.6429092", "text": "public function setModel($value){\n $this->model = $value;\n }", "title": "" }, { "docid": "b19a219f075a96f4a5b8445bc6fbe7ed", "score": "0.6411841", "text": "protected function setValue($model):void\n {\n }", "title": "" }, { "docid": "5fcd2dcdcc807664a9bf947b83285cf8", "score": "0.64116794", "text": "protected function setMetaData()\n {\n $data = $this->model ? $this->model->getAllMeta()->toArray() : [];\n\n foreach($this->fields() as $field) {\n if (!isset($data[$field->name]) && $field->is_meta) {\n $data[$field->name] = $field->default;\n }\n }\n\n $this->model_meta = $data;\n }", "title": "" }, { "docid": "34ff2ca342d4857c0ad2717c93011b47", "score": "0.6348607", "text": "protected function setUserData()\n {\n $user = User::getInstance();\n\n $this->data['username'] = $user->get('username');\n $this->data['email'] = $user->get('email');\n }", "title": "" }, { "docid": "f730f0c67bfdfbceaef13b2dffb4f239", "score": "0.63306975", "text": "protected function setModel($model) {\n\n\t \t $this->model = $model;\n\t }", "title": "" }, { "docid": "72f5d721549e270752dfd075656a910d", "score": "0.6318755", "text": "protected function setParameters() {\n\t\t\tparent::setParameters();\n\t\t\t$model = $this->model;\n\t\t\t\n\t\t\t$this->attributes = new AttributesObject($model);\n\t\t\t$this->links = new LinksObject(new Collection([new LinkObject('self', $model->getModelURL())]));\n\t\t\t$this->relationships = new RelationshipsObject($model);\n\t\t}", "title": "" }, { "docid": "4de53f4c77ce6bd128c2dd411e25578a", "score": "0.6313569", "text": "protected function setData()\n {\n $user = Auth::getUser();\n if ( ! $user) {\n return;\n }\n\n $cart = Cart::byUser($user);\n if ( ! $cart->payment_method_id) {\n $cart->setPaymentMethod(PaymentMethod::getDefault());\n }\n $this->setVar('cart', $cart);\n\n $paymentMethod = PaymentMethod::find($cart->payment_method_id);\n if ( ! $paymentMethod) {\n $paymentMethod = PaymentMethod::getDefault();\n $cart->setPaymentMethod($paymentMethod);\n }\n\n $this->setVar('paymentMethod', $paymentMethod);\n $this->setVar('step', $this->property('step'));\n $this->setVar('accountPage', GeneralSettings::get('account_page'));\n $this->setVar(\n 'shippingSelectionBeforePayment',\n GeneralSettings::get('shipping_selection_before_payment', false)\n );\n\n if ($orderId = request()->get('order')) {\n $orderId = $this->decode($orderId);\n $this->setVar('order', Order::byCustomer($user->customer)->find($orderId));\n }\n\n $this->setVar('dataLayer', $this->handleDataLayer());\n }", "title": "" }, { "docid": "92d8ad14a32e986e62c50fe74134ecfc", "score": "0.63130534", "text": "protected function setModel(): void\n {\n $this->model = ActivityInstanceChangeDate::class;\n }", "title": "" }, { "docid": "26dee79e3bcae99cc5b148a1fe865a54", "score": "0.6290436", "text": "public function setModel($model){\n\t\t$this->model = $model;\n\t}", "title": "" }, { "docid": "5eb3594f576aefed36bf329136aa9cc0", "score": "0.6289697", "text": "private function setInitValues ( ) {\r\n \r\n /** crea l'objecte usuari */\r\n $this->model = new usuari ( );\r\n \r\n /** crea l'objecte paraula de pas */\r\n $this->modelParaula = new paraulapas ( );\r\n\r\n }", "title": "" }, { "docid": "5f6c20dfe89cef3de43283142e80bbb4", "score": "0.627445", "text": "public function _prepareForm()\n {\n $vehicleGroupList = VehicleGroup::getScopedNestedList('name', 'id', '-', true);\n\n $this->setViewData([\n 'customerGroupList' => $this->getCustomerGroupRepository()->getListForSelect(),\n 'vehicleGroupList' => $vehicleGroupList,\n 'locationGroupList' => $this->getLocationGroupRepository()->getListForSelect(),\n 'goodsTypeList' => $this->getGoodsTypeRepository()->getListForSelect(),\n ]);\n }", "title": "" }, { "docid": "d2d0f7c8efd048eb63d8eb6ffa91b257", "score": "0.6254251", "text": "protected function setModel()\n {\n $this->model = Cost::class;\n }", "title": "" }, { "docid": "d2d0f7c8efd048eb63d8eb6ffa91b257", "score": "0.6254251", "text": "protected function setModel()\n {\n $this->model = Cost::class;\n }", "title": "" }, { "docid": "30f6a5795d767b54abe95727407fabe7", "score": "0.6250423", "text": "protected function setData()\n {\n $this->data = [\n 'category_name' => $this->category_name,\n 'page_name' => $this->page_name,\n 'has_scrollspy' => 0,\n 'scrollspy_offset' => '',\n 'breadcrumb' => $this->setBreadcrumb()\n ];\n }", "title": "" }, { "docid": "8fa24f297df7bdc9fbea89517381d485", "score": "0.62477803", "text": "protected function setData()\n {\n }", "title": "" }, { "docid": "24e056b34ed01cf21a8060778be653c5", "score": "0.62411314", "text": "protected function set_values() {\n\t\t\t$this->form_markup = $this->generate_form_markup();\n\n\t\t\t$this->content_before = $this->generate_content_before();\n\t\t\t$this->content_after = $this->generate_content_after();\n\t\t\t$this->form_type = get_field( 'landing_header_form_type', $this->obj );\n\t\t\t$this->form_before = $this->generate_form_before();\n\t\t\t$this->form_after = $this->generate_form_after();\n\t\t\t$this->form_content_before = $this->generate_form_content_before();\n\t\t\t$this->form_content_after = $this->generate_form_content_after();\n\t\t\t$this->cta_markup = $this->generate_cta_markup();\n\t\t}", "title": "" }, { "docid": "d4720a81e9edaeca6e9b3689c41baf89", "score": "0.62384355", "text": "function setData($data) {\n $this->data = $data;\n }", "title": "" }, { "docid": "b4bafa6b5e896a0eba0bb2b0af8d9b1a", "score": "0.62133235", "text": "public function actionInitData()\n\t{\n\t\t// just do, no need to ask\n//\t\t$_model = new InitDataForm();\n//\n//\t\tif ( isset( $_POST, $_POST['InitDataForm'] ) )\n//\t\t{\n//\t\t\t$_model->attributes = $_POST['InitDataForm'];\n//\n//\t\t\tif ( $_model->validate() )\n//\t\t\t{\n\t\tSystemManager::initData();\n\t\t$this->redirect( '/' );\n//\t\t\t}\n//\n//\t\t\t$this->refresh();\n//\t\t}\n//\n//\t\t$this->render(\n//\t\t\t'initData',\n//\t\t\tarray(\n//\t\t\t\t 'model' => $_model\n//\t\t\t)\n//\t\t);\n\t}", "title": "" }, { "docid": "00a12881932bf95bea2ae3ce73e578fc", "score": "0.617659", "text": "protected function setModel(): void\n {\n $this->model = ServiceB::class;\n $this->accountServiceService = new AccountServiceService();\n }", "title": "" }, { "docid": "01809b01f3a31c1674aa408e56805334", "score": "0.61601883", "text": "protected function setModel()\n {\n $this->model = Position::class;\n }", "title": "" }, { "docid": "f189f3827ae4031fc3dba3e8108007e3", "score": "0.61556596", "text": "public function setModel($usermodel) {\n $this->model = $usermodel;\n }", "title": "" }, { "docid": "c774321006548ae248da570affa1f0d5", "score": "0.6150248", "text": "function set_model($model)\n\t{\n\t\t$this->_model = $model;\n\t}", "title": "" }, { "docid": "3e851bb89d9c91b041a22f1ad1c8ec9c", "score": "0.6149757", "text": "function setData($data) {\n\t\t$this->data = $data;\n }", "title": "" }, { "docid": "159f70faef537ed8106638eb96c52510", "score": "0.6144409", "text": "protected function setAllPOSTvariableToModel(){\n\t\t$Allobject = $this->model->getAllobject();\n\t\tforeach($Allobject as $key => $value) {\n\t\t\t$this->setPOSTVariableToModel($value);\n\t\t}\n\t}", "title": "" }, { "docid": "f6db5faeb4f7f847ea98ed5fe760d6d0", "score": "0.61339056", "text": "public function setData($data) {\n $this->data = $data;\n }", "title": "" }, { "docid": "0eb1867e9529ff85e3b3cf7f0281ca31", "score": "0.612694", "text": "public function form() {\n\t\t$form = Loader::helper('form');\n\t\t$this->set('form', $form);\n\t\t$options = $this->getOptionsForSelect();\n\t\t$this->set('options', $options);\n\t\t$selectedOption = $this->getSelectedOption();\n\t\tif($selectedOption) {\n\t\t\t$this->set('selectedOption', $selectedOption->getID());\n\t\t}\n\t\t$this->set('name', $this->field('value'));\n\t}", "title": "" }, { "docid": "31c1cfd3178c820fea10084cbe75f506", "score": "0.6121521", "text": "public function setData(){\n // Request is available in $this->request\n // Save stuff in $this->data\n return $this;\n }", "title": "" }, { "docid": "16797ad99945962aeb3e6e21b2559587", "score": "0.6109788", "text": "public function setData($data)\n\t{\n\t\t$this->getModel()->setData($data);\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "f4bb5e7d1dcc9845d20e342322f3ce08", "score": "0.60982424", "text": "protected function _prepareForm()\n {\n $model = $this->_coreRegistry->registry('current_rma');\n $form = $this->getParentForm();\n\n $this->_addFieldset();\n\n if ($form && $model) {\n $form->setValues($model->getData());\n }\n if ($form) {\n $this->setForm($form);\n }\n\n return $this;\n }", "title": "" }, { "docid": "1a9d17e96d37c61fc5b3cc0dc28403e0", "score": "0.6092324", "text": "public function setData( $data ) {\n $this->data = $data;\n }", "title": "" }, { "docid": "6b39f8960a487bf7ce9129eb01d8b75a", "score": "0.6088841", "text": "protected function loadFormData()\n {\n if (! $this->request->isPost()) {\n if ($this->respondent instanceof \\Gems_Tracker_Respondent) {\n $this->formData = $this->respondent->getArrayCopy();\n }\n }\n\n if (! $this->formData) {\n parent::loadFormData();\n }\n\n $model = $this->getModel();\n\n $model->set('restore_tracks', 'label', $this->_('Restore tracks'),\n 'description', $this->_('Restores tracks with the same code as the respondent.'),\n 'elementClass', 'Checkbox'\n );\n\n if (! array_key_exists('restore_tracks', $this->formData)) {\n $this->formData['restore_tracks'] = 1;\n }\n }", "title": "" }, { "docid": "ecc8a18a67688b2ce1594aeefc6b3ad6", "score": "0.6064416", "text": "function set_data($data) {\r\n\t\t$this->data = $data;\r\n\t}", "title": "" }, { "docid": "66a886a1ad1229e4fa63f46981b411f7", "score": "0.6062922", "text": "public function setData($data);", "title": "" }, { "docid": "66a886a1ad1229e4fa63f46981b411f7", "score": "0.6062922", "text": "public function setData($data);", "title": "" }, { "docid": "66a886a1ad1229e4fa63f46981b411f7", "score": "0.6062922", "text": "public function setData($data);", "title": "" }, { "docid": "66a886a1ad1229e4fa63f46981b411f7", "score": "0.6062922", "text": "public function setData($data);", "title": "" }, { "docid": "66a886a1ad1229e4fa63f46981b411f7", "score": "0.6062922", "text": "public function setData($data);", "title": "" }, { "docid": "66a886a1ad1229e4fa63f46981b411f7", "score": "0.6062922", "text": "public function setData($data);", "title": "" }, { "docid": "04cb99031b65dc857f76aa7bc3e72efd", "score": "0.6062781", "text": "public function data($data)\n\t\t{\n\t\tif (! empty($data)) {\n\t\t\t$this->data = $data;\n\t\t\tforeach ($this->inputs as $input)\n\t\t\t\t{\n\t\t\t\tif (! is_object($input)) continue;\n\t\t\t\t//checklist\n\t\t\t\tif ($input->type == 'checklist') {\n\t\t\t\t\tforeach ($input->inputs as $check) {\n\t\t\t\t\t\tif (array_key_exists($check->name, $data)) $check->set_value($data[$check->name]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\telse if (array_key_exists($input->name, $data)) $input->set_value($data[$input->name]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t// check mands after setting data\n\t\t// if (! $this->mandatory($data)) $this->allow = false;\n\n\t\treturn $this;\n\t\t}", "title": "" }, { "docid": "73f31513fd151c6de1a73e7836e0b383", "score": "0.60603625", "text": "public function setModel($model) {\r\n $this->model = $model;\r\n }", "title": "" }, { "docid": "162195507e537beac3743f88a5179c20", "score": "0.605695", "text": "public function afterModelFetch()\n {\n $this->fieldValues = $this->model->data ?: [];\n $this->model->setRawAttributes(array_merge($this->fieldValues, $this->model->getAttributes()));\n }", "title": "" }, { "docid": "6d6354f647970bc1959dfefae5cbab9d", "score": "0.6050818", "text": "public function setModel($model) {\n\t\t$this->model = $model;\n\t}", "title": "" }, { "docid": "03d419dc2bbe1017ba1ce6d59e087fb6", "score": "0.6033924", "text": "public function setData($data) {\n $this->data = $data;\n }", "title": "" }, { "docid": "03d419dc2bbe1017ba1ce6d59e087fb6", "score": "0.6033924", "text": "public function setData($data) {\n $this->data = $data;\n }", "title": "" }, { "docid": "3c02a1ae645979cfc8bf4e1e9dfdd746", "score": "0.6032915", "text": "function SettingModel()\n\t\t{\n\t\t\tparent::Model();\n\t\t}", "title": "" }, { "docid": "7b6bcd4b7b44ec951d0a9e61b8c4000f", "score": "0.601825", "text": "public function setModel($model) {\n $this->_model = $model;\n }", "title": "" }, { "docid": "73abcf9187f077de22d07068fa290d43", "score": "0.6013852", "text": "function setData($data)\n\t{\n\t\t$this->data = $data;\n\t}", "title": "" }, { "docid": "73abcf9187f077de22d07068fa290d43", "score": "0.6013852", "text": "function setData($data)\n\t{\n\t\t$this->data = $data;\n\t}", "title": "" }, { "docid": "73abcf9187f077de22d07068fa290d43", "score": "0.6013852", "text": "function setData($data)\n\t{\n\t\t$this->data = $data;\n\t}", "title": "" }, { "docid": "602f098430f831e59cb80661cf311135", "score": "0.6006981", "text": "function _setPropertyData()\r\n\t{\r\n\t if($this->input->post('propertyID'))\r\n {\r\n if((int)$this->input->post('propertyID') > 0)\r\n $this->propertyID = $this->input->post('propertyID');\r\n else\r\n $this->propertyID = 0;\r\n }\r\n \r\n\t\t$this->data['PAGE'] = $this->propertyType;\r\n // $this->data['OWNER_DATA'] = $this->model_property->get_property_by_id($this->propertyID, $this->userID);\r\n\t\t$this->_setOwnerData($this->propertyID);\r\n $this->data['PROPERTY_INFO_TYPE'] = $this->propertyInfoType;\r\n\t\t$this->data['PROPERTY_TYPE'] = $this->propertyType;\r\n\t\t$this->data['PROPERTY_ID'] = $this->propertyID;\r\n\t\t$this->data['BASE_URL'] = base_url_http();\r\n\t\t$this->data['UPLOAD_FOLDER_PHOTOS'] = UPLOAD_FOLDER_PHOTOS;\r\n\t\t$this->data['LEAD_CONTAINER_ORDER'] = $this->model_user->GetLeadContainerOrder($this->userID);\r\n\t}", "title": "" }, { "docid": "51ea1fd736ad5d6c8135d2e1305a7fe0", "score": "0.59997684", "text": "public function setData($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "c15d38ab876c208d948a4432e5e386fc", "score": "0.5986501", "text": "public function SetModel( $model ) { return $this->__setModel( $model ); }", "title": "" }, { "docid": "451e1f6423afb36f744f7e77c1767c7a", "score": "0.5985993", "text": "public function setData($data) {\n $this -> post = $data;\n }", "title": "" }, { "docid": "967c148d14b71f536fd1db05caded96f", "score": "0.5981793", "text": "public function setModel($model)\n {\n $this->model = $model;\n }", "title": "" }, { "docid": "8af1e505e3268ca8772c03f2e87c3194", "score": "0.5981568", "text": "public function loadModel()\n {\n $data = Question::find($this->modelId);\n $this->title = $data->title;\n $this->content = $data->content;\n }", "title": "" }, { "docid": "78ffe9e7b4eae808e3006db63580db8f", "score": "0.59804255", "text": "public function set_model($model)\n\t{\n\t\t$this->model = $model;\n\t}", "title": "" }, { "docid": "78ffe9e7b4eae808e3006db63580db8f", "score": "0.59804255", "text": "public function set_model($model)\n\t{\n\t\t$this->model = $model;\n\t}", "title": "" }, { "docid": "c37c6c6bbbe5e0fd128c9f319974ff7d", "score": "0.5976808", "text": "private function _set_fields()\n {\n\t@$this->form_data->filter_survey = '';\n $this->form_data->filter_question = '';\n }", "title": "" }, { "docid": "c37c6c6bbbe5e0fd128c9f319974ff7d", "score": "0.5976808", "text": "private function _set_fields()\n {\n\t@$this->form_data->filter_survey = '';\n $this->form_data->filter_question = '';\n }", "title": "" }, { "docid": "c08972f24d8dee363535a01e0ebc51f7", "score": "0.59657687", "text": "public function setData($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "8c5405a97b90d4b865740ab0928679da", "score": "0.5952711", "text": "public function setModel($model) {\n $this->model = $model;\n }", "title": "" }, { "docid": "9625b566099dca20b57d00521b63337a", "score": "0.5952172", "text": "public function setData($data) {\n\t\t$this->data = $data;\n\t}", "title": "" }, { "docid": "05b38f4a4cb441fbf2358810033b9283", "score": "0.59372604", "text": "public function setMeditationDataModel( $model )\n {\n $this->meditation_data_model = $model;\n }", "title": "" }, { "docid": "f85fcba09bffa49031529be842790bc8", "score": "0.59231097", "text": "public function setDocumentData($data)\n {\n $this->id = $data['_id'];\n\n if (isset($data['make'])) {\n $this->data['fields']['make'] = (string) $data['make'];\n }\n if (isset($data['model'])) {\n $this->data['fields']['model'] = (string) $data['model'];\n }\n if (isset($data['created_at'])) {\n $date = new \\DateTime(); $date->setTimestamp($data['created_at']->sec); $this->data['fields']['created_at'] = $date;\n }\n if (isset($data['updated_at'])) {\n $date = new \\DateTime(); $date->setTimestamp($data['updated_at']->sec); $this->data['fields']['updated_at'] = $date;\n }\n if (isset($data['slug'])) {\n $this->data['fields']['slug'] = (string) $data['slug'];\n }\n\n\n \n }", "title": "" }, { "docid": "cae9a57ca883ff15a95be4e6256704b1", "score": "0.59089154", "text": "public function setModel($model)\n {\n $this->model = $model;\n }", "title": "" }, { "docid": "cae9a57ca883ff15a95be4e6256704b1", "score": "0.59089154", "text": "public function setModel($model)\n {\n $this->model = $model;\n }", "title": "" }, { "docid": "cae9a57ca883ff15a95be4e6256704b1", "score": "0.59089154", "text": "public function setModel($model)\n {\n $this->model = $model;\n }", "title": "" }, { "docid": "a8de6572cfdab093aab2d5f4667c7330", "score": "0.59073526", "text": "public function setModel(FieldModel $model)\n\t{\n\t\t$this->model = $model;\n\t}", "title": "" }, { "docid": "5bc334805c3cdc34a7b067a13189a8e2", "score": "0.5888401", "text": "public function setData($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "5bc334805c3cdc34a7b067a13189a8e2", "score": "0.5888401", "text": "public function setData($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "5bc334805c3cdc34a7b067a13189a8e2", "score": "0.5888401", "text": "public function setData($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "5bc334805c3cdc34a7b067a13189a8e2", "score": "0.5888401", "text": "public function setData($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "5bc334805c3cdc34a7b067a13189a8e2", "score": "0.5888401", "text": "public function setData($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "43e43a7045d30692efda98f11e088b25", "score": "0.5883597", "text": "public function setData($data){\n $this->data = $data;\n $this->data_type = self::getType($data);\n }", "title": "" }, { "docid": "a1c4a6e3a756f85b267c9e7b1fbe7551", "score": "0.58796746", "text": "public function setData($data)\n {\n $this->_data = $data;\n }", "title": "" }, { "docid": "a1c4a6e3a756f85b267c9e7b1fbe7551", "score": "0.58796746", "text": "public function setData($data)\n {\n $this->_data = $data;\n }", "title": "" }, { "docid": "4dd238045938acbbfaefcf395df13ddd", "score": "0.5868754", "text": "function setData($the_spry, $the_name, $the_id, $the_field, $the_table, $the_label, $the_hint, $the_required, $the_size, $the_tooltip, $the_class, $the_action, $the_data, $the_msg_required, $the_noManage){\n\t\t\t$this->spry = $the_spry; $this->name = $the_name; $this->id = $the_id; $this->field = $the_field; $this->table = $the_table; $this->label = $the_label; $this->hint = $the_hint; $this->required = $the_required; $this->size = $the_size; $this->tooltip = $the_tooltip; $this->class = $the_class; $this->action = $the_action; $this->data = $the_data; $this->msg_required = $the_msg_required; $this->noManage = $the_noManage;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "1a5b29bfa3c3a128a19b4c2ffa3868a4", "score": "0.58675814", "text": "public function setData($data)\r\n\t{\r\n\t\t$this->data = $data;\r\n\t}", "title": "" }, { "docid": "d2dac06d578a4e7a2c2f572e9c80ddae", "score": "0.58651257", "text": "public function setData($data): void\n {\n parent::setData($data);\n $this->validate();\n }", "title": "" }, { "docid": "0901ea9f8811869c79253be06ac36715", "score": "0.58628035", "text": "protected function process_form_data($data) {\n\t\tif ($this->_view === 'create')\n\t\t\t$this->get_model()->create($data);\n\t\telse if ($this->_view === 'update')\n\t\t\t$this->get_model()->update_by_id($this->get_object()['id'], $data);\n\t}", "title": "" }, { "docid": "a58227a7f3fae0a60dbbd4b7af413869", "score": "0.5857786", "text": "public function setData($data)\r\n\t{\r\n\t\t$this->_data = $data;\r\n\t}", "title": "" }, { "docid": "d25bfe2b5488efa0aeb4d7ef114e20c0", "score": "0.5838946", "text": "function update($data=array()){\r\n\t\t// $data will be appended to values already set with Controller::set() or Model::set()\r\n\t\tif(empty($data)&&($this->owner instanceof Form))$data=$this->owner->getAllData();\r\n\t\t$this->getModel()->update($data);\r\n\t\treturn $this;\r\n\t}", "title": "" }, { "docid": "d76a54eafb0ac12c56b01d31d984df56", "score": "0.58274716", "text": "protected function processModelObject()\n {\n $this->updateSettingsField();\n $this->attachPropertyValues();\n\n parent::processModelObject();\n }", "title": "" }, { "docid": "e0e9f48b9181fe145deec22b6dda292b", "score": "0.582055", "text": "public function setDataModel($dataModel)\n {\n return $this->setData(self::DATA_MODEL, $dataModel);\n }", "title": "" }, { "docid": "d85cd3579da0e418eb970440a3a79757", "score": "0.5818621", "text": "public function init()\n {\n extract($this->data);\n\n if (empty($this->data['id'])) {\n $this->data['id'] = uniqid();\n }\n\n $this->compParams = [\n 'label' => $label ?? '',\n 'required' => $required ?? false,\n 'invalidMessage' => $invalidMessage ?? '',\n 'value' => $value ?? '',\n 'checked' => $checked ?? false,\n ];\n\n $this->setData();\n }", "title": "" }, { "docid": "fd8f71eb0dcc75fa464ae8cf6ecd0633", "score": "0.5814874", "text": "protected function setupAdditionalData(&$model) {\n }", "title": "" } ]
9ae527ed47b926442c71aa895a781f67
Create the example layout.
[ { "docid": "491ead6aa362003ed7f0134c798a74cd", "score": "0.6089516", "text": "protected static function createLayout()\n {\n copy(__DIR__.'/templates/layout-stub.blade.php', resource_path('views/layouts/default.blade.php'));\n }", "title": "" } ]
[ { "docid": "5b65a99ef2c9848d9273324979189b3e", "score": "0.7006783", "text": "public function layout();", "title": "" }, { "docid": "0fd62d4536a8d1b32b2cca2d3daeaa15", "score": "0.6966984", "text": "public function layout() {}", "title": "" }, { "docid": "06862b527f8f65cfc120818bafae0327", "score": "0.63981855", "text": "public function setupLayout()\n {\n $this->layout = CoreView::getLayout();\n }", "title": "" }, { "docid": "2aad027c6239ecadb379f32706966410", "score": "0.6392045", "text": "protected function setupLayout(){\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "9ea3847092084015f82f057dc98eb16b", "score": "0.638436", "text": "protected function setupLayout()\n\t{\n\t\t// if ( ! is_null($this->layout))\n\t\t// {\n\t\t// \t$this->layout = View::make($this->layout);\n\t\t// }\n\t}", "title": "" }, { "docid": "fbe9273f643ed68196333c665a5aee05", "score": "0.6351651", "text": "private function layouts ()\n {\n // \"What folder name will you use for your layout views\" \"layouts\"\n // \"What folder name will you use for your partial views\" \"partials\"\n // \"Do you want to create app layout, header and footer?\"\n $this->prompt(\"Do you want to create a default view folder structure?\", function () {\n if (!ViewHelper::layoutsPath()) {\n $layouts = $this->ask(\"What folder name will you use for your layout views\", \"layouts\");\n mkdir(ViewHelper::path().DIRECTORY_SEPARATOR.$layouts);\n $this->infoDelayed(\"Layout views folder was created [resources/\".basename(ViewHelper::path()).\"/\".$layouts.\"/]\",\"success\");\n }\n if (!ViewHelper::componentsPath()) {\n $partials = $this->ask(\"What folder name will you use for your partial views\", \"partials\");\n mkdir(ViewHelper::path().DIRECTORY_SEPARATOR.$partials);\n $this->infoDelayed(\"Partial views folder was created [resources/\".basename(ViewHelper::path()).\"/\".$partials.\"/]\",\"success\");\n }\n $this->prompt(\"Do you want to create app layout, header and footer?\", function () {\n // create header & footer components\n if ($componentsPath = ViewHelper::componentsPath()) {\n TemplateHelper::fromFile(FIBERS_ROCKET.\"/templates/views/partials/header.stub\")->replace()->tofile($componentsPath.DIRECTORY_SEPARATOR.'header.blade.php');\n TemplateHelper::fromFile(FIBERS_ROCKET.\"/templates/views/partials/footer.stub\")->replace()->tofile($componentsPath.DIRECTORY_SEPARATOR.'footer.blade.php');\n $this->infoDelayed(\"Header and footer components were created [resources/\".basename(ViewHelper::path()).\"/\".basename($componentsPath).\"/]\",\"success\");\n }\n\n // create app layout\n if ($layoutsPath = ViewHelper::layoutsPath()) {\n $componentsDir = basename($componentsPath);\n TemplateHelper::fromFile(FIBERS_ROCKET.\"/templates/views/layout/app.stub\")->replace([\n \"component.header\" => \"@component('{$componentsDir}.header') @endcomponent\",\n \"component.footer\" => \"@component('{$componentsDir}.footer') @endcomponent\"\n ])->tofile($layoutsPath.DIRECTORY_SEPARATOR.'app.blade.php');\n $this->infoDelayed(\"App layout was created [resources/\".basename(ViewHelper::path()).\"/\".basename($layoutsPath).\"/app.blade.php]\",\"success\");\n }\n });\n },'layouts');\n }", "title": "" }, { "docid": "3f79a9e7eb665c234ba8d5ff424a8454", "score": "0.63515234", "text": "protected function setupLayout() {\n\t\tif (! is_null($this->layout)) {\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "1eb392a7f3bf91e54285d94c6cd0cae2", "score": "0.63378584", "text": "protected function setupLayout()\n {\n if (! is_null($this->getLayoutName())) {\n $this->layout = view($this->getLayoutName());\n }\n }", "title": "" }, { "docid": "c6571a07ec85e2e22473b1c8624ae2f9", "score": "0.6327729", "text": "protected function setupLayout()\n\t{\n\t\t//if (!is_null($this->layout))\n\t\t//{\n\t\t//\t$this->layout = View::make($this->layout, array('BaseUrl'=>URL::to('/')));\n\t\t//}\n\t}", "title": "" }, { "docid": "2c85ec1b98460787ef18a898b62d8c84", "score": "0.6323587", "text": "protected function setupLayout()\n\t{\n\n\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "6e941f88006d1058e60f53927b0c0b20", "score": "0.6293732", "text": "public function executeTest() {\n\t\t$layout = new Core_Content_Layout_Instance();\n\n\t\treturn $layout;\n\t}", "title": "" }, { "docid": "820c5e670016eff95c327bb281932478", "score": "0.62610465", "text": "protected function setupLayout()\n\t{\n\t\tif (!is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "70338641a25de5b5fc7c8b4fa318ca9b", "score": "0.62527317", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "e596788b585ad75e17d6408a23d44400", "score": "0.62480056", "text": "protected function layoutStart() {\r\n $api = Api::getInstance();\r\n if($api->getInput() != null)\r\n $path = $api->getInput()->getPath();\r\n $title = sprintf($this->getConfig('head_title', '%s v%s - Node %s'), $api->getConfig(\"name\"), $api->getConfig(\"version\"), $path);\r\n echo '<!DOCTYPE html>\r\n <html>\r\n <head>\r\n <title>' . $title . '</title>\r\n <meta http-equiv=\"Content-Type\" content=\"' . $this->getConfig(\"content_type\", \"text/html\") . '; charset=UTF-8\" />\r\n <style>\r\n body {font-family: Helvetica, Arial, sans-serif;font-size: 14px;color: #333;padding: 0;margin: 0;}\r\n body > header { width: 900px; padding: 1em; margin: 0 auto 1em auto }\r\n body > article {box-shadow: 5px 5px 10px rgba(0,0,0,0.8); padding: 0 0 .5em 0; border-radius: 5px; width: 900px; margin: 2em auto 0 auto }\r\n body > footer { width: 900px; padding: 0em 0 1em 1em; margin: 1.1em auto 1em auto; color: white; font-size: .75em }\r\n h1 { margin: 0; font-size: 3em; line-height: .8em }\r\n h2 { text-shadow: 1px 1px 1px rgba(0,0,0,0.25); font-size: 2.2em;margin: .2em; }\r\n h3 { text-shadow: 1px 1px 0px rgba(255,255,255,1); font-size: 1.5em;margin: .2em; }\r\n h4 { font-size: 1.2em; margin: .2em; }\r\n p { font-size: 1em; margin: .5em .2em; }\r\n ul {\r\n padding-bottom: 1em;\r\n padding-left: 2em;\r\n }\r\n a {\r\n color: white;\r\n text-decoration: none;\r\n }\r\n body > header h1 { color: #000e44; text-shadow: 0 0 3px rgb(255,255,255), 0 0 10px rgba(255,255,255,1), 0 0 20px rgba(255,255,255,0.6); float: left }\r\n body > header h1 span { color: #0c6f5e }\r\n body > header h2 { color: white; font-size: .7em; font-weight: normal; margin: 2.2em 0 0 1em; float: left }\r\n body > header h3 { color: #0c6f5e; margin: 0; font-size: 2em; float: right }\r\n article header { margin: 0;padding: .3em; box-shadow: 0 0 5px rgba(0,0,0,0.9); border-radius: 5px 5px 0 0; width: 892px; }\r\n article h3 { display: inline; }\r\n article > details { margin: 1em; }\r\n\r\n\r\n body#error { background-color : #533;}\r\n #error article { color : darkred; background-color : rgba(255,255,255,0.9); clear: both }\r\n #error article h2 { color : white; text-shadow: 0 0 2px white, 0 0 15px #600, 3px 3px 8px rgba(50,0,0,0.9); }\r\n #error article header { background-color : rgba(85,51,51,0.6); }\r\n #error h3, #error article a { color : #744; }\r\n #error article a:hover { color : #533; }\r\n #error pre.xdebug-var-dump {font-size:0.8em}\r\n\r\n body#answer { background-color : #353 }\r\n #answer article { color : #575;background-color : rgba(255,255,255,0.9); clear: both }\r\n #answer article h2 { color : white; text-shadow: 0 0 2px rgba(11,45,11,0.9), 0 0 10px rgba(11,45,11,0.8); }\r\n #answer article header { background-color : rgba(51,85,51,0.6); }\r\n #answer h3, #answer article a { color : #686; }\r\n #answer article a:hover { color : #353; }\r\n </style>\r\n </head>';\r\n }", "title": "" }, { "docid": "a521199f7cc54dbf1d1f81ec1c86ff7b", "score": "0.6197424", "text": "protected function setupLayout() {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "title": "" }, { "docid": "ab19b65fcb5316c2dee81b51104cdf03", "score": "0.61714745", "text": "protected function setupLayout()\n {\n if (! is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "title": "" }, { "docid": "cbe84fdfce6ede4337ea7ad0153bbe49", "score": "0.6163394", "text": "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "title": "" }, { "docid": "cbe84fdfce6ede4337ea7ad0153bbe49", "score": "0.6163394", "text": "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "title": "" }, { "docid": "04f15b3803ccc23f34bd14c97c0ea6d7", "score": "0.61130625", "text": "public function renderLayout(): void;", "title": "" }, { "docid": "c65d8f7770fa58086645f21924328b7b", "score": "0.60914475", "text": "protected function _prepareLayout()\n {\n \t\t$test = $this->_testFactory->create();\n\n\n \t\t/*Inserting Data*/\n \t\t// $test->setTitle('First');\n \t\t// $test->save();\n\n \t\t/*Fetching Collection*/\n \t// \t$collection = $test->getCollection();\n\t\t// foreach($collection as $row){\n\t\t// print_r($row->getData());\n\t\t// }\n\n\t\t/*Using Model Function in which resource function is called*/\n\t\t$test->loadByTitle('First');\n \t\t$this->setTestModel($test);\n }", "title": "" }, { "docid": "7488e7c545a3e91553e0f072b0b0378b", "score": "0.60667", "text": "protected function setupLayout()\n {\n if (! is_null($this->layout)) {\n $this->layout = view($this->layout);\n }\n }", "title": "" }, { "docid": "7286ecfc14991d304e1f86e3b71f6d33", "score": "0.6059393", "text": "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n $this->layout->with('controller',$this);\n }\n\n\n }", "title": "" }, { "docid": "da13e5612abe47fadfefeedc60e83fb1", "score": "0.60542816", "text": "public function layout()\n {\n // making temlate and send data to view.\n $this->template['header'] = $this->load->view('layout/header', $this->data, true);\n $this->template['left'] = $this->load->view('layout/left', $this->data, true);\n $this->template['middle'] = $this->load->view($this->middle, $this->data, true);\n $this->template['footer'] = $this->load->view('layout/footer', $this->data, true);\n\n $this->load->view('layout/index', $this->template);\n }", "title": "" }, { "docid": "7dde3c612ffb06968613abd79497a0a4", "score": "0.6051407", "text": "public function getCreate()\n\t{\n\t\t$datas = [\n\t\t\t'action' => url('/layouts/store'),\n\t\t\t'titlelist'\t=> 'Add Layout'\n\t\t];\n\t\techo $this->getLayoutForm($datas);\n\t\texit();\n\t}", "title": "" }, { "docid": "90e7f71a4e5c329d29931be6fdc6654a", "score": "0.6013632", "text": "public function testGetLayout() {\n\t\t$path = PU_PATH_BASE . '/modules/blog';\n\n\t\t$module1 = $this->createModule();\n\t\t$module2 = $this->createModule('post');\n\t\t$module3 = $this->createModule('post', 'item');\n\n\t\t$module1->initialize();\n\t\t$module2->initialize();\n\t\t$module3->initialize();\n\n\t\t$layout1 = $module1->getView()->getLayout();\n\t\t$layout2 = $module2->getView()->getLayout();\n\t\t$layout3 = $module3->getView()->getLayout();\n\n\t\t$this->addFile('modules/blog/views/post/layouts/item.html.php', 'post item layout');\n\n\t\t$layout4 = $module3->getView()->getLayout();\n\n\t\t$this->assertEquals($path . '/views/feed/layouts/default.html.php', $layout1);\n\t\t$this->assertEquals($path . '/views/post/layouts/default.html.php', $layout2);\n\t\t$this->assertEquals($path . '/views/post/layouts/default.html.php', $layout3);\n\t\t$this->assertEquals($path . '/views/post/layouts/item.html.php', $layout4);\n\t}", "title": "" }, { "docid": "a0a6c103b7751bbaf90b45e6a7163c84", "score": "0.60125333", "text": "protected function setupLayout() {\r\n\r\n if (null !== $this->layout) {\r\n $this->changeLayout($this->layout);\r\n }\r\n }", "title": "" }, { "docid": "826dfdffe60a1d0a4aa9fb03902e59d2", "score": "0.60110766", "text": "public function init()\n {\n \t$this->_helper->layout->setLayout('main');\n }", "title": "" }, { "docid": "fc1d22ed1f8756e593e3238312f263b0", "score": "0.6000883", "text": "public static function create()\n {\n return new Layout();\n }", "title": "" }, { "docid": "7bee8cde20b7329a46f4b0bae59eff74", "score": "0.5929447", "text": "public function layouts() {\n\t\trequire_once FUSION_BUILDER_PLUGIN_DIR . 'inc/admin-screens/layouts.php';\n\t}", "title": "" }, { "docid": "d71c1c3929bc39d8288a719b13eb6616", "score": "0.59194833", "text": "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n\n \\Breadcrumbs::setListElement('ol');\n \\Breadcrumbs::addCssClasses('breadcrumb');\n \\Breadcrumbs::removeCssClasses('breadcrumbs');\n \\Breadcrumbs::setDivider(null);\n $this->getThemeConfig();\n\n $navtools = Event::fire('frontend.navbar.create');\n $navtools_html = $footeritems_html = $headeritems_html = '';\n \\View::share('navbar', '');\n \\View::share('header', '');\n \\View::share('footer', '');\n foreach ($navtools as $w) {\n foreach ($w as $o) {\n $navtools_html .= View::make($o);\n }\n }\n\n $footeritems = Event::fire('frontend.footer.create');\n\n foreach ($footeritems as $w) {\n foreach ($w as $o) {\n $footeritems_html .= View::make($o);\n }\n }\n\n $headeritems = Event::fire('frontend.header.create');\n\n\n foreach ($headeritems as $w) {\n foreach ($w as $o) {\n $headeritems_html .= View::make($o);\n }\n }\n\n Config::set('theme.menus', Event::fire('menu.positions.collect'));\n\n //get the layout for the current route\n //load the default if no layout specified\n\n\n// ll($footeritems_html);\n\n if (\\View::exists('anastasia::navbar')) {\n $navtools = \\View::make('navbar')->with('navtools', $navtools_html);\n\n \\View::share('navbar', (string)$navtools);\n }\n if (\\View::exists('header')) {\n $headeritems = \\View::make('header')->with('headeritems', $headeritems_html);\n \\View::share('header', (string)$headeritems);\n }\n if (\\View::exists('footer')) {\n $footeritems = \\View::make('footer')->with('footeritems', $footeritems_html);\n \\View::share('footer', (string)$footeritems);\n }\n\n\n\n }", "title": "" }, { "docid": "2b6263f8f28fa65ec62fe72decb978a0", "score": "0.58815324", "text": "public function init()\n {\n\t\t$this->_helper->layout->setLayout('admin');\n }", "title": "" }, { "docid": "f8029bef4f369b1dfe3acc215f219a31", "score": "0.58666295", "text": "public static function exportLayout();", "title": "" }, { "docid": "896a6f73b6223b2efabda2f5aa0c1dbb", "score": "0.58398616", "text": "abstract public function getLayout();", "title": "" }, { "docid": "4f2e0207e03f7012ae3bd6b2124c3eac", "score": "0.583151", "text": "public function getLayout();", "title": "" }, { "docid": "4f2e0207e03f7012ae3bd6b2124c3eac", "score": "0.583151", "text": "public function getLayout();", "title": "" }, { "docid": "c4ff80264eeee89a3d49212489fb9bed", "score": "0.5831002", "text": "protected function setupLayout()\n\t{\n\n\t\tView::share('message', Session::get('message'));\n\t\tView::share('company', Config::get('app.company'));\n\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "title": "" }, { "docid": "1525890679cd4bc80bd77e6191dbfc33", "score": "0.58027613", "text": "protected function create_main_layout()\n {\n if (!file_exists($path = resource_path(\"/views/layouts\"))) {\n mkdir($path, 0777, true);\n }\n\n if (!file_exists($path = resource_path(\"/views/layouts/main.blade.php\"))) {\n file_put_contents(base_path(\"/resources/views/layouts/main.blade.php\"), $this->getBladeStub('main_blade'));\n }\n }", "title": "" }, { "docid": "7d0b083a4e823f286c3968ab3baf9de0", "score": "0.57979023", "text": "public function generateLayout()\n\t{\n\t\t$layoutFile = $this->getStub('views/layout');\n\t\t// Save layout file\n\t\t$layoutPath = app_path() . '/views/layouts/scaffold.blade.php';\n\t\t\\File::put($layoutPath, $layoutFile);\n\t\t$this->info('File created at: ' . $layoutPath);\n\t}", "title": "" }, { "docid": "6f5ba8c2b4d7b1fd7e0e2baea8dbafeb", "score": "0.5759797", "text": "public function create()\n\t{\n\t\treturn $this->layout->content = View::make('mustdos.create');\n\t}", "title": "" }, { "docid": "33cdaaee9752158c4e9fd03f1920c203", "score": "0.57450247", "text": "public function __construct() {\n\t\t$this->layout = \"default\";\n\t}", "title": "" }, { "docid": "b6ff3653cabbe5a6d4c15c460ce51bdf", "score": "0.5721445", "text": "public function run()\n {\n //\n \n\t\t Layout::create([\n\t 'name' => \"Main Structure\",\n\t 'active' => 1,\n\t 'components' => '\"[{\\\"tagName\\\":\\\"nav\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":{},\\\"classes\\\":[{\\\"name\\\":\\\"navbar\\\",\\\"label\\\":\\\"navbar\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"navbar-expand-sm\\\",\\\"label\\\":\\\"navbar-expand-sm\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"navbar-light\\\",\\\"label\\\":\\\"navbar-light\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"bg-faded\\\",\\\"label\\\":\\\"bg-faded\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"border-bottom\\\",\\\"label\\\":\\\"border-bottom\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"shadow-sm\\\",\\\"label\\\":\\\"shadow-sm\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"button\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"navbar-toggler\\\",\\\"label\\\":\\\"navbar-toggler\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"type\\\":\\\"button\\\",\\\"data-toggle\\\":\\\"collapse\\\",\\\"data-target\\\":\\\"#nav-content\\\",\\\"aria-controls\\\":\\\"nav-content\\\",\\\"aria-expanded\\\":\\\"false\\\",\\\"aria-label\\\":\\\"Toggle navigation\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"span\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"navbar-toggler-icon\\\",\\\"label\\\":\\\"navbar-toggler-icon\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"a\\\",\\\"type\\\":\\\"link\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Logo\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"navbar-brand\\\",\\\"label\\\":\\\"navbar-brand\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"href\\\":\\\"#\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"href\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. https:\\/\\/google.com\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"select\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"target\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"\\\",\\\"changeProp\\\":0,\\\"options\\\":[{\\\"value\\\":\\\"\\\",\\\"name\\\":\\\"This window\\\"},{\\\"value\\\":\\\"_blank\\\",\\\"name\\\":\\\"New window\\\"}]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false},{\\\"tagName\\\":\\\"div\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"collapse\\\",\\\"label\\\":\\\"collapse\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"navbar-collapse\\\",\\\"label\\\":\\\"navbar-collapse\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"justify-content-end\\\",\\\"label\\\":\\\"justify-content-end\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"id\\\":\\\"nav-content\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"ul\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"navbar-nav\\\",\\\"label\\\":\\\"navbar-nav\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"li\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"nav-item\\\",\\\"label\\\":\\\"nav-item\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"a\\\",\\\"type\\\":\\\"link\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Link 1\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"nav-link\\\",\\\"label\\\":\\\"nav-link\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"href\\\":\\\"#\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"href\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. https:\\/\\/google.com\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"select\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"target\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"\\\",\\\"changeProp\\\":0,\\\"options\\\":[{\\\"value\\\":\\\"\\\",\\\"name\\\":\\\"This window\\\"},{\\\"value\\\":\\\"_blank\\\",\\\"name\\\":\\\"New window\\\"}]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"li\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"nav-item\\\",\\\"label\\\":\\\"nav-item\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"a\\\",\\\"type\\\":\\\"link\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Link 2\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"nav-link\\\",\\\"label\\\":\\\"nav-link\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"href\\\":\\\"#\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"href\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. https:\\/\\/google.com\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"select\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"target\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"\\\",\\\"changeProp\\\":0,\\\"options\\\":[{\\\"value\\\":\\\"\\\",\\\"name\\\":\\\"This window\\\"},{\\\"value\\\":\\\"_blank\\\",\\\"name\\\":\\\"New window\\\"}]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"li\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"nav-item\\\",\\\"label\\\":\\\"nav-item\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"a\\\",\\\"type\\\":\\\"link\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Link 3\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"nav-link\\\",\\\"label\\\":\\\"nav-link\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"href\\\":\\\"#\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"href\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. https:\\/\\/google.com\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"select\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"target\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"\\\",\\\"changeProp\\\":0,\\\"options\\\":[{\\\"value\\\":\\\"\\\",\\\"name\\\":\\\"This window\\\"},{\\\"value\\\":\\\"_blank\\\",\\\"name\\\":\\\"New window\\\"}]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false}],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"div\\\",\\\"type\\\":\\\"module\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":false,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":false,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"selected\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":{},\\\"classes\\\":[{\\\"name\\\":\\\"c5026\\\",\\\"label\\\":\\\"c5026\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"id\\\":\\\"user_info\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"user_info\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"module\\\":\\\"Authentication\\\",\\\"sentence\\\":{\\\"type\\\":\\\"if\\\",\\\"option\\\":\\\"userNotLogin\\\",\\\"value\\\":\\\"!Auth::guard(\\\\\\\"front\\\\\\\")->user()\\\"},\\\"components\\\":[{\\\"tagName\\\":\\\"label\\\",\\\"type\\\":\\\"variable\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":false,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":false,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"${nombre}\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false},{\\\"tagName\\\":\\\"label\\\",\\\"type\\\":\\\"variable\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":false,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":false,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"${apellido}\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"div\\\",\\\"type\\\":\\\"module\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":false,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":false,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":{},\\\"classes\\\":[{\\\"name\\\":\\\"c3272\\\",\\\"label\\\":\\\"c3272\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"id\\\":\\\"logout_btn\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"logout_btn\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"module\\\":\\\"Authentication\\\",\\\"sentence\\\":{\\\"type\\\":\\\"if\\\",\\\"option\\\":\\\"userNotLogin\\\",\\\"value\\\":\\\"!Auth::guard(\\\\\\\"front\\\\\\\")->user()\\\"},\\\"components\\\":[{\\\"tagName\\\":\\\"form\\\",\\\"type\\\":\\\"form\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":false,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":false,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"action\\\":\\\"http:\\/\\/127.0.0.1:8000\\/module\\/authentication\\/logout\\\",\\\"method\\\":\\\"post\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"button\\\",\\\"type\\\":\\\"submit\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Logout\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"type\\\":\\\"submit\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"div\\\",\\\"type\\\":\\\"module\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":false,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":false,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":{},\\\"classes\\\":[{\\\"name\\\":\\\"c2291\\\",\\\"label\\\":\\\"c2291\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"id\\\":\\\"login_btn\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"login_btn\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"module\\\":\\\"Authentication\\\",\\\"sentence\\\":{\\\"type\\\":\\\"if\\\",\\\"option\\\":\\\"userLogin\\\",\\\"value\\\":\\\"Auth::guard(\\\\\\\"front\\\\\\\")->user()\\\"},\\\"components\\\":[{\\\"tagName\\\":\\\"a\\\",\\\"type\\\":\\\"link\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":false,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Sign in\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"btn\\\",\\\"label\\\":\\\"btn\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"btn-outline-warning\\\",\\\"label\\\":\\\"btn-outline-warning\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"href\\\":\\\"http:\\/\\/127.0.0.1:8000\\/page\\/2\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"href\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. https:\\/\\/google.com\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"select\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"target\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"\\\",\\\"changeProp\\\":0,\\\"options\\\":[{\\\"value\\\":\\\"\\\",\\\"name\\\":\\\"This window\\\"},{\\\"value\\\":\\\"_blank\\\",\\\"name\\\":\\\"New window\\\"}]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"div\\\",\\\"type\\\":\\\"childContainer\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"${Child Content}\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false},{\\\"tagName\\\":\\\"\\\",\\\"type\\\":\\\"textnode\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\" \\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[]},{\\\"tagName\\\":\\\"\\\",\\\"type\\\":\\\"textnode\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\" \\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[]},{\\\"tagName\\\":\\\"footer\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"page-footer\\\",\\\"label\\\":\\\"page-footer\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"font-small\\\",\\\"label\\\":\\\"font-small\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"blue\\\",\\\"label\\\":\\\"blue\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"pt-4\\\",\\\"label\\\":\\\"pt-4\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"border-top\\\",\\\"label\\\":\\\"border-top\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"shadow-sm\\\",\\\"label\\\":\\\"shadow-sm\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"div\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"container-fluid\\\",\\\"label\\\":\\\"container-fluid\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"text-center\\\",\\\"label\\\":\\\"text-center\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"text-md-left\\\",\\\"label\\\":\\\"text-md-left\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"div\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"row\\\",\\\"label\\\":\\\"row\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"div\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"hk-md-6\\\",\\\"label\\\":\\\"hk-md-6\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"mt-md-0\\\",\\\"label\\\":\\\"mt-md-0\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"mt-3\\\",\\\"label\\\":\\\"mt-3\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"h5\\\",\\\"type\\\":\\\"text\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Footer Content\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"text-uppercase\\\",\\\"label\\\":\\\"text-uppercase\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false},{\\\"tagName\\\":\\\"p\\\",\\\"type\\\":\\\"text\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Here you can use rows and columns to organize your footer content.\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"hr\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":true,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"clearfix\\\",\\\"label\\\":\\\"clearfix\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"w-100\\\",\\\"label\\\":\\\"w-100\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"d-md-none\\\",\\\"label\\\":\\\"d-md-none\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"pb-3\\\",\\\"label\\\":\\\"pb-3\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false},{\\\"tagName\\\":\\\"div\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"hk-md-3\\\",\\\"label\\\":\\\"hk-md-3\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"mb-md-0\\\",\\\"label\\\":\\\"mb-md-0\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"mb-3\\\",\\\"label\\\":\\\"mb-3\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"h5\\\",\\\"type\\\":\\\"text\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Links\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"text-uppercase\\\",\\\"label\\\":\\\"text-uppercase\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false},{\\\"tagName\\\":\\\"ul\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"list-unstyled\\\",\\\"label\\\":\\\"list-unstyled\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"li\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"a\\\",\\\"type\\\":\\\"link\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Link 1\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"href\\\":\\\"#!\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"href\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. https:\\/\\/google.com\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"select\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"target\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"\\\",\\\"changeProp\\\":0,\\\"options\\\":[{\\\"value\\\":\\\"\\\",\\\"name\\\":\\\"This window\\\"},{\\\"value\\\":\\\"_blank\\\",\\\"name\\\":\\\"New window\\\"}]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"li\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"a\\\",\\\"type\\\":\\\"link\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Link 2\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"href\\\":\\\"#!\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"href\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. https:\\/\\/google.com\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"select\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"target\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"\\\",\\\"changeProp\\\":0,\\\"options\\\":[{\\\"value\\\":\\\"\\\",\\\"name\\\":\\\"This window\\\"},{\\\"value\\\":\\\"_blank\\\",\\\"name\\\":\\\"New window\\\"}]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"li\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"a\\\",\\\"type\\\":\\\"link\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Link 3\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"href\\\":\\\"#!\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"href\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. https:\\/\\/google.com\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"select\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"target\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"\\\",\\\"changeProp\\\":0,\\\"options\\\":[{\\\"value\\\":\\\"\\\",\\\"name\\\":\\\"This window\\\"},{\\\"value\\\":\\\"_blank\\\",\\\"name\\\":\\\"New window\\\"}]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"li\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"a\\\",\\\"type\\\":\\\"link\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Link 4\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"href\\\":\\\"#!\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"href\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. https:\\/\\/google.com\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"select\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"target\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"\\\",\\\"changeProp\\\":0,\\\"options\\\":[{\\\"value\\\":\\\"\\\",\\\"name\\\":\\\"This window\\\"},{\\\"value\\\":\\\"_blank\\\",\\\"name\\\":\\\"New window\\\"}]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false}],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"div\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"hk-md-3\\\",\\\"label\\\":\\\"hk-md-3\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"mb-md-0\\\",\\\"label\\\":\\\"mb-md-0\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"mb-3\\\",\\\"label\\\":\\\"mb-3\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"h5\\\",\\\"type\\\":\\\"text\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Links\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"text-uppercase\\\",\\\"label\\\":\\\"text-uppercase\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false},{\\\"tagName\\\":\\\"ul\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"list-unstyled\\\",\\\"label\\\":\\\"list-unstyled\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"li\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"a\\\",\\\"type\\\":\\\"link\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Link 1\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"href\\\":\\\"#!\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"href\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. https:\\/\\/google.com\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"select\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"target\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"\\\",\\\"changeProp\\\":0,\\\"options\\\":[{\\\"value\\\":\\\"\\\",\\\"name\\\":\\\"This window\\\"},{\\\"value\\\":\\\"_blank\\\",\\\"name\\\":\\\"New window\\\"}]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"li\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"a\\\",\\\"type\\\":\\\"link\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Link 2\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"href\\\":\\\"#!\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"href\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. https:\\/\\/google.com\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"select\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"target\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"\\\",\\\"changeProp\\\":0,\\\"options\\\":[{\\\"value\\\":\\\"\\\",\\\"name\\\":\\\"This window\\\"},{\\\"value\\\":\\\"_blank\\\",\\\"name\\\":\\\"New window\\\"}]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"li\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"a\\\",\\\"type\\\":\\\"link\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Link 3\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"href\\\":\\\"#!\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"href\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. https:\\/\\/google.com\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"select\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"target\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"\\\",\\\"changeProp\\\":0,\\\"options\\\":[{\\\"value\\\":\\\"\\\",\\\"name\\\":\\\"This window\\\"},{\\\"value\\\":\\\"_blank\\\",\\\"name\\\":\\\"New window\\\"}]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"li\\\",\\\"type\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":true,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":false,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"a\\\",\\\"type\\\":\\\"link\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"Link 4\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"href\\\":\\\"#!\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"href\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. https:\\/\\/google.com\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"select\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"target\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"\\\",\\\"changeProp\\\":0,\\\"options\\\":[{\\\"value\\\":\\\"\\\",\\\"name\\\":\\\"This window\\\"},{\\\"value\\\":\\\"_blank\\\",\\\"name\\\":\\\"New window\\\"}]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false}],\\\"open\\\":false}],\\\"open\\\":false}],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"div\\\",\\\"type\\\":\\\"text\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"hovered\\\",\\\"content\\\":\\\"\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[{\\\"name\\\":\\\"footer-copyright\\\",\\\"label\\\":\\\"footer-copyright\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"text-center\\\",\\\"label\\\":\\\"text-center\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false},{\\\"name\\\":\\\"py-3\\\",\\\"label\\\":\\\"py-3\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[{\\\"tagName\\\":\\\"\\\",\\\"type\\\":\\\"textnode\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\"\\u00a9 2019 Copyright:\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[]},{\\\"tagName\\\":\\\"a\\\",\\\"type\\\":\\\"link\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\" gethuka.com\\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{\\\"href\\\":\\\"https:\\/\\/mdbootstrap.com\\/education\\/bootstrap\\/\\\"},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"href\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. https:\\/\\/google.com\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"select\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"target\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"\\\",\\\"changeProp\\\":0,\\\"options\\\":[{\\\"value\\\":\\\"\\\",\\\"name\\\":\\\"This window\\\"},{\\\"value\\\":\\\"_blank\\\",\\\"name\\\":\\\"New window\\\"}]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[],\\\"open\\\":false}],\\\"open\\\":false}],\\\"open\\\":false},{\\\"tagName\\\":\\\"\\\",\\\"type\\\":\\\"textnode\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\" \\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[]},{\\\"tagName\\\":\\\"\\\",\\\"type\\\":\\\"textnode\\\",\\\"name\\\":\\\"\\\",\\\"removable\\\":true,\\\"draggable\\\":true,\\\"droppable\\\":false,\\\"badgable\\\":true,\\\"stylable\\\":true,\\\"stylable-require\\\":\\\"\\\",\\\"style-signature\\\":\\\"\\\",\\\"unstylable\\\":\\\"\\\",\\\"highlightable\\\":true,\\\"copyable\\\":true,\\\"resizable\\\":false,\\\"editable\\\":true,\\\"layerable\\\":true,\\\"selectable\\\":true,\\\"hoverable\\\":true,\\\"void\\\":false,\\\"state\\\":\\\"\\\",\\\"status\\\":\\\"\\\",\\\"content\\\":\\\" \\\",\\\"icon\\\":\\\"\\\",\\\"style\\\":\\\"\\\",\\\"classes\\\":[],\\\"script\\\":\\\"\\\",\\\"attributes\\\":{},\\\"traits\\\":[{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"id\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]},{\\\"type\\\":\\\"text\\\",\\\"label\\\":\\\"\\\",\\\"name\\\":\\\"title\\\",\\\"min\\\":\\\"\\\",\\\"max\\\":\\\"\\\",\\\"unit\\\":\\\"\\\",\\\"step\\\":1,\\\"value\\\":\\\"\\\",\\\"default\\\":\\\"\\\",\\\"placeholder\\\":\\\"eg. Text here\\\",\\\"changeProp\\\":0,\\\"options\\\":[]}],\\\"propagate\\\":\\\"\\\",\\\"dmode\\\":\\\"\\\",\\\"moduleParent\\\":\\\"\\\",\\\"components\\\":[]}]\"',\n\t 'styles' => '\"[{\\\"selectors\\\":[],\\\"selectorsAdd\\\":\\\"*\\\",\\\"style\\\":{\\\"box-sizing\\\":\\\"border-box\\\"},\\\"mediaText\\\":\\\"\\\",\\\"state\\\":\\\"\\\",\\\"stylable\\\":true,\\\"atRuleType\\\":\\\"\\\",\\\"singleAtRule\\\":0,\\\"important\\\":0},{\\\"selectors\\\":[],\\\"selectorsAdd\\\":\\\"body\\\",\\\"style\\\":{\\\"margin-top\\\":\\\"0px\\\",\\\"margin-right\\\":\\\"0px\\\",\\\"margin-bottom\\\":\\\"0px\\\",\\\"margin-left\\\":\\\"0px\\\"},\\\"mediaText\\\":\\\"\\\",\\\"state\\\":\\\"\\\",\\\"stylable\\\":true,\\\"atRuleType\\\":\\\"\\\",\\\"singleAtRule\\\":0,\\\"important\\\":0},{\\\"selectors\\\":[],\\\"selectorsAdd\\\":\\\"*\\\",\\\"style\\\":{\\\"box-sizing\\\":\\\"border-box\\\"},\\\"mediaText\\\":\\\"\\\",\\\"state\\\":\\\"\\\",\\\"stylable\\\":true,\\\"atRuleType\\\":\\\"\\\",\\\"singleAtRule\\\":0,\\\"important\\\":0},{\\\"selectors\\\":[],\\\"selectorsAdd\\\":\\\"body\\\",\\\"style\\\":{\\\"margin-top\\\":\\\"0px\\\",\\\"margin-right\\\":\\\"0px\\\",\\\"margin-bottom\\\":\\\"0px\\\",\\\"margin-left\\\":\\\"0px\\\"},\\\"mediaText\\\":\\\"\\\",\\\"state\\\":\\\"\\\",\\\"stylable\\\":true,\\\"atRuleType\\\":\\\"\\\",\\\"singleAtRule\\\":0,\\\"important\\\":0},{\\\"selectors\\\":[],\\\"selectorsAdd\\\":\\\"*\\\",\\\"style\\\":{\\\"box-sizing\\\":\\\"border-box\\\"},\\\"mediaText\\\":\\\"\\\",\\\"state\\\":\\\"\\\",\\\"stylable\\\":true,\\\"atRuleType\\\":\\\"\\\",\\\"singleAtRule\\\":0,\\\"important\\\":0},{\\\"selectors\\\":[],\\\"selectorsAdd\\\":\\\"body\\\",\\\"style\\\":{\\\"margin-top\\\":\\\"0px\\\",\\\"margin-right\\\":\\\"0px\\\",\\\"margin-bottom\\\":\\\"0px\\\",\\\"margin-left\\\":\\\"0px\\\"},\\\"mediaText\\\":\\\"\\\",\\\"state\\\":\\\"\\\",\\\"stylable\\\":true,\\\"atRuleType\\\":\\\"\\\",\\\"singleAtRule\\\":0,\\\"important\\\":0},{\\\"selectors\\\":[{\\\"name\\\":\\\"c2294\\\",\\\"label\\\":\\\"c2294\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"selectorsAdd\\\":\\\"\\\",\\\"style\\\":{\\\"padding-top\\\":\\\"0px\\\",\\\"padding-right\\\":\\\"16px\\\",\\\"padding-bottom\\\":\\\"0px\\\",\\\"padding-left\\\":\\\"16px\\\"},\\\"mediaText\\\":\\\"\\\",\\\"state\\\":\\\"\\\",\\\"stylable\\\":true,\\\"atRuleType\\\":\\\"\\\",\\\"singleAtRule\\\":0,\\\"important\\\":0},{\\\"selectors\\\":[{\\\"name\\\":\\\"c3275\\\",\\\"label\\\":\\\"c3275\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"selectorsAdd\\\":\\\"\\\",\\\"style\\\":{\\\"padding-top\\\":\\\"9px\\\",\\\"padding-right\\\":\\\"16px\\\",\\\"padding-bottom\\\":\\\"0px\\\",\\\"padding-left\\\":\\\"16px\\\"},\\\"mediaText\\\":\\\"\\\",\\\"state\\\":\\\"\\\",\\\"stylable\\\":true,\\\"atRuleType\\\":\\\"\\\",\\\"singleAtRule\\\":0,\\\"important\\\":0},{\\\"selectors\\\":[{\\\"name\\\":\\\"c5037\\\",\\\"label\\\":\\\"c5037\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"selectorsAdd\\\":\\\"\\\",\\\"style\\\":{\\\"padding\\\":\\\"1rem\\\"},\\\"mediaText\\\":\\\"\\\",\\\"state\\\":\\\"\\\",\\\"stylable\\\":true,\\\"atRuleType\\\":\\\"\\\",\\\"singleAtRule\\\":0,\\\"important\\\":0},{\\\"selectors\\\":[{\\\"name\\\":\\\"c3595\\\",\\\"label\\\":\\\"c3595\\\",\\\"type\\\":1,\\\"active\\\":true,\\\"private\\\":false,\\\"protected\\\":false}],\\\"selectorsAdd\\\":\\\"\\\",\\\"style\\\":{},\\\"mediaText\\\":\\\"\\\",\\\"state\\\":\\\"\\\",\\\"stylable\\\":true,\\\"atRuleType\\\":\\\"\\\",\\\"singleAtRule\\\":0,\\\"important\\\":0}]\"',\n\t 'assets' => '\"[{\\\"type\\\":\\\"image\\\",\\\"src\\\":\\\"\\/storage\\/images\\/p3scxXbUQwSYTFU3PtdvJQzbf2Zf0ZnIkuBS1Gaa.png\\\",\\\"unitDim\\\":\\\"px\\\",\\\"height\\\":350,\\\"width\\\":250,\\\"name\\\":[\\\"cx.png\\\"]},{\\\"type\\\":\\\"image\\\",\\\"src\\\":\\\"\\/storage\\/images\\/m4MfSMz6lFBM9UtRm60MsH7lNYB4DaxWhc9pynqp.jpeg\\\",\\\"unitDim\\\":\\\"px\\\",\\\"height\\\":350,\\\"width\\\":250,\\\"name\\\":[\\\"500.jpg\\\"]}]\"',\n\t 'css' => '\"* { box-sizing: border-box; } body {margin: 0;}*{box-sizing:border-box;}body{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;}*{box-sizing:border-box;}body{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;}*{box-sizing:border-box;}body{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;}.c2294{padding-top:0px;padding-right:16px;padding-bottom:0px;padding-left:16px;}.c3275{padding-top:9px;padding-right:16px;padding-bottom:0px;padding-left:16px;}.c5037{padding:1rem;}\"'\n\n\t ]);\n }", "title": "" }, { "docid": "df0d1128564bd6fcdb844fe87c7fce18", "score": "0.57173884", "text": "public function createStructure()\n {\n $productsMenu = app('elements.menu.manager')\n ->createMenu('<i class=\"fa fa-cube\"></i> Products')\n ->addLink('List of Products', ['route' => 'admin::products::index'])\n ->addLink('Create Product', ['route' => ['admin::products::create']]);\n\n $productReviews = app('elements.menu.manager')\n ->createMenu('<i class=\"fa fa-newspaper-o\"></i> Product Reviews')\n ->addLink('<span class=\"nav-text\"> List of Reviews</span>',\n ['route' => 'admin::reviews::index']);\n\n $categories = app('elements.menu.manager')\n ->createMenu('<i class=\"fa fa-archive\"></i> Categories')\n ->addLink('All Categories', ['route' => 'admin::categories::index'])\n ->addLink('Create Category', ['route' => ['admin::categories::create']]);\n\n $attributes = app('elements.menu.manager')\n ->createMenu('<i class=\"fa fa-puzzle-piece\"></i> Attributes')\n ->addLink('Attributes', ['route' => 'admin::attributes::index'])\n ->addLink('Attribute Groups', ['route' => ['admin::attribute_groups::index']]);\n\n $sales = app('elements.menu.manager')\n ->createMenu('<i class=\"fa fa-shopping-cart\"></i> Sales')\n ->addLink('Orders', ['route' => 'admin::sales::orders::index'])\n ->addLink('Returns', ['route' => ['admin::attribute_groups::index']])\n ->addLink('Promocodes', ['route' => ['admin::attribute_groups::index']]);\n\n $marketing = app('elements.menu.manager')\n ->createMenu('<i class=\"fa fa-line-chart\"></i> Marketing')\n ->addLink('Subscribers', ['route' => 'admin::subscribers::index'])\n ->addLink('Mail', ['route' => ['admin::mail::index']]);\n\n $design = app('elements.menu.manager')\n ->createMenu('<i class=\"fa fa-paint-brush\"></i> Design')\n ->addLink('Layouts', ['route' => 'admin::design::layouts::index'])\n ->addLink('Banners', ['route' => 'admin::design::banners::index'])\n ->addLink('Static Pages', ['route' => ['admin::design::staticPages::index']]);\n\n $users = app('elements.menu.manager')\n ->createMenu('<i class=\"fa fa-users\"></i> Users')\n ->addLink('All Users', ['route' => 'admin::users::index'])\n ->addLink('Create User', ['route' => ['admin::users::create']]);\n\n $mediaStorage = app('elements.menu.manager')\n ->createMenu('<i class=\"fa fa-files-o\"></i> MediaStorage')\n ->addLink('Media Storage', ['route' => 'admin::media::indexs']);\n\n $access = app('elements.menu.manager')\n ->createMenu('<i class=\"fa fa-key\"></i> Access')\n ->addLink('All roles', ['route' => 'admin::roles::index'])\n ->addLink('Create role', ['route' => 'admin::roles::create']);\n\n $logsViewer = app('elements.menu.manager')\n ->createMenu('<i class=\"fa fa-bug\"></i> LogsViewer')\n ->addLink('<i class=\"fa fa-dashboard\"></i> Dashboard', ['route' => 'log-viewer::dashboard'])\n ->addLink('<i class=\"fa fa-archive\"></i> Logs', ['route' => 'log-viewer::logs.list']);\n\n /**\n * declare sidebar administration menu\n */\n $administrationMenu = app('elements.menu.manager')\n ->setStructureClasses(\n ['root_class' => \"sidebar-menu\", 'li_class' => \"treeview\", 'ul_class' => \"treeview-menu\", 'a_class' => \"link\"]\n )\n ->menu('administration')\n ->setLabel('Administration')\n ->addSubMenu($mediaStorage, ['id' => 'link-media', 'url_def' => ['route_pattern' => 'admin::media::*']])\n ->addSubMenu($access, ['id' => 'link-access', 'url_def' => ['route_pattern' => 'admin::roles::*']])\n ->addSubMenu($logsViewer, ['id' => 'link-logs', 'url_def' => ['route_pattern' => 'log-viewer::*']]);\n\n /**\n * declare sidebar menu\n */\n $menu = app('elements.menu.manager')->setStructureClasses(\n ['root_class' => \"sidebar-menu\", 'li_class' => \"treeview\", 'ul_class' => \"treeview-menu\", 'a_class' => \"link\"]\n )\n ->menu('sidebar')\n ->setLabel('MAIN NAVIGATION')\n ->addLink('<i class=\"fa fa-th\"></i> Widgets', ['route' => 'admin::dashboard'])\n ->addSubMenu($users, ['id' => 'link-users', 'url_def' => ['route_pattern' => 'admin::users::*']])\n ->addSubMenu($design, ['id' => 'link-design', 'url_def' => ['route_pattern' => 'admin::design::*']])\n ->addSubMenu($marketing, ['id' => 'link-marketing', 'url_def' => ['route_pattern' => 'admin::marketing::*']])\n ->addSubMenu($sales, ['id' => 'link-sales', 'url_def' => ['route_pattern' => 'admin::sales::*']])\n ->addSubMenu($attributes, ['id' => 'link-attributes', 'url_def' => ['route_pattern' => 'admin::attributes::*']])\n ->addSubMenu($categories, ['id' => 'link-categories', 'url_def' => ['route_pattern' => 'admin::categories::*']])\n ->addSubMenu($productReviews, ['id' => 'link-reviews', 'url_def' => ['route_pattern' => 'admin::reviews::*']])\n ->addSubMenu($productsMenu, ['id' => 'link-products', 'url_def' => ['route_pattern' => 'admin::products::*']]);\n }", "title": "" }, { "docid": "4ac8ef270c3a85ac35b9dab2e0be6164", "score": "0.5710241", "text": "public function helloAction()\n {\n $this->loadLayout();\n \n $this->renderLayout();\n }", "title": "" }, { "docid": "2b2d761db0704405f79c81b85ea6dffa", "score": "0.57046723", "text": "public function create(){\r\n require_once 'views/layouts/header.php';\r\n require_once 'views/public/create.php';\r\n require_once 'views/layouts/footer.php';\r\n }", "title": "" }, { "docid": "7531ce4edfa263c6b91138448163da76", "score": "0.56926566", "text": "public function init() {\n $modules = $this->getModules();\n\n $this->defaultLayout = array(\n \"rows\" => array(\n array(\n 1 => array(\"weight\" => \"12\")\n )\n ),\n 'widgets' => array(\n 1 => array(\n \"hospitais.widget\",\n \"leitos.widget\"\n )\n ),\n 'sortable' => false,\n 'resources' => array(\n \"default\" => array_keys($modules),\n \"users.overview.notification.order\" => array(\"messages\", \"news\"),\n \"layout.sections.topbar-left\" => array(\"internacao\", \"prescricao\", \"scores\", \"enfermagem\", \"stats\", \"cepetipordia\")\n )\n );\n\n $this->layouts = array(\n 'default' => $this->defaultLayout\n );\n $this->layoutSpec = $this->defaultLayout;\n }", "title": "" }, { "docid": "d9be88ccb9bd5b8ac493ea105faa93d3", "score": "0.5653021", "text": "public function layout()\n {\n //$this->template['header'] = $this->load->view('templates/header', $this->data, true);\n //$this->template['footer'] = $this->load->view('templates/footer', $this->data, true);\n $this->template['page'] = $this->load->view($this->page, $this->data, true);\n $this->load->view('templates/main', $this->template);\n }", "title": "" }, { "docid": "e7577a3dd681006f6ec357547a537681", "score": "0.5651061", "text": "public function setLayout()\n\t{\n \t$this->_helper->layout->setLayout('admin');\t\n\t}", "title": "" }, { "docid": "44dd106f49857b8a518fe30cb32e4fa6", "score": "0.56501156", "text": "public function setupLayout()\r\n\t{\r\n\t\t$layout = 'layout';\r\n\t\tif (isset($this->services[$this->routing->service])) {\r\n\t\t\t$service = $this->services[$this->routing->service];\r\n\t\t\tif (isset($service['layout']))\r\n\t\t\t\t$layout = $service['layout'];\r\n\t\t\t\r\n\t\t\tif (isset($service['helpers'])) {\r\n\t\t\t\tforeach ((array) $service['helpers'] as $helper)\r\n\t\t\t\t\t$this->template->getHelper($helper);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$this->routing->layout = $layout;\r\n\t}", "title": "" }, { "docid": "c7cc5f4bd860dd663a5a39c4df6b0121", "score": "0.5634705", "text": "protected function setupLayout()\n\t{\n\t\tif( ! is_null( $this->layout ) ) {\n\t\t\t$this->layout = View::make( $this->layout );\n\t\t}\n\n\t\tView::share( 'currentUser', Auth::user() );\n\t}", "title": "" }, { "docid": "ee7bd1bf35ddc99690c5f88cb0417d86", "score": "0.5623249", "text": "public function create()\n {\n $this->authorize('admin.example.create');\n $sliders = Slider::all();\n $checkboxes = Checkbox::all();\n $experiments = Experiment::where('type', 'comparison')->get();\n $schemes = ComparisonExperiment::all();\n\n return view('admin.example.create', [\n 'sliders' => $sliders,\n 'checkboxes' => $checkboxes,\n 'experiments' => $experiments,\n 'schemes' => $schemes\n ]);\n }", "title": "" }, { "docid": "501e2eb0df621366f6f80bb59b0a83d9", "score": "0.5620223", "text": "function create_prebuilt_layouts($layouts){\n $layouts['home-agency'] = array(\n 'name' => __('Home: Agency', 'create'), \n 'description' => __('Layout for demo Home: Agency page.', 'create'),\n 'widgets' => \n\t\t array (\n\t\t 0 => \n\t\t array (\n\t\t 'title' => '',\n\t\t 'text' => '[rev_slider alias=\"home-slider-agency\"]',\n\t\t 'filter' => false,\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'WP_Widget_Text',\n\t\t 'raw' => false,\n\t\t 'grid' => 0,\n\t\t 'cell' => 0,\n\t\t 'id' => 0,\n\t\t 'style' => \n\t\t array (\n\t\t 'background_display' => 'tile',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 1 => \n\t\t array (\n\t\t 'type' => 'visual',\n\t\t 'title' => '',\n\t\t 'text' => '<h1 style=\"text-align: center;\"><span style=\"color: #bb9f7c;\">Create</span> is a multi-purpose WordPress theme that gives you the power to create many different styles of websites. </h1>',\n\t\t 'filter' => '1',\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t 'raw' => false,\n\t\t 'grid' => 1,\n\t\t 'cell' => 1,\n\t\t 'id' => 1,\n\t\t 'style' => \n\t\t array (\n\t\t 'widget_css' => 'line-height: 3.8em !important;',\n\t\t 'background_display' => 'tile',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 2 => \n\t\t array (\n\t\t 'title' => '',\n\t\t 'show_filter' => 'no',\n\t\t 'filter_alignment' => 'center',\n\t\t 'count' => '4',\n\t\t 'thumb_proportions' => 'landscape',\n\t\t 'layout' => 'masonry without gutter',\n\t\t 'columns' => '4',\n\t\t 'skills' => \n\t\t array (\n\t\t 'illustration' => '',\n\t\t 'mobile' => '',\n\t\t 'motion' => '',\n\t\t 'photography' => '',\n\t\t 'web' => '',\n\t\t ),\n\t\t 'orderby' => 'date',\n\t\t 'order' => 'DESC',\n\t\t 'hover_effect' => 'effect-1',\n\t\t 'hover_color' => '#1aafaf',\n\t\t 'hover_text_color' => '',\n\t\t 'show_skills' => 'yes',\n\t\t 'show_load_more' => 'no',\n\t\t 'enable_lightbox' => 'no',\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'TTrust_Portfolio',\n\t\t 'raw' => false,\n\t\t 'grid' => 2,\n\t\t 'cell' => 0,\n\t\t 'id' => 2,\n\t\t 'style' => \n\t\t array (\n\t\t 'background_display' => 'tile',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 3 => \n\t\t array (\n\t\t 'features' => \n\t\t array (\n\t\t 0 => \n\t\t array (\n\t\t 'container_color' => '',\n\t\t 'icon' => 'fontawesome-list-alt',\n\t\t 'icon_color' => '#bb9f7c',\n\t\t 'icon_image' => '0',\n\t\t 'title' => 'Page Builder',\n\t\t 'text' => 'Create comes with a page builder that allows you to create pages exactly how you want. ',\n\t\t 'more_text' => '',\n\t\t 'more_url' => '',\n\t\t ),\n\t\t 1 => \n\t\t array (\n\t\t 'container_color' => '',\n\t\t 'icon' => 'fontawesome-tablet',\n\t\t 'icon_color' => '#bb9f7c',\n\t\t 'icon_image' => '0',\n\t\t 'title' => 'Responsive Layout',\n\t\t 'text' => 'Create is a responsive theme. Its layout adjusts to look great on any screen size or device.',\n\t\t 'more_text' => '',\n\t\t 'more_url' => '',\n\t\t ),\n\t\t 2 => \n\t\t array (\n\t\t 'container_color' => '',\n\t\t 'icon' => 'fontawesome-eye',\n\t\t 'icon_color' => '#bb9f7c',\n\t\t 'icon_image' => '0',\n\t\t 'title' => 'Retina Ready',\n\t\t 'text' => 'Built with the latest technology in mind, rest assured that your site will look crisp on retina displays.',\n\t\t 'more_text' => '',\n\t\t 'more_url' => '',\n\t\t ),\n\t\t 3 => \n\t\t array (\n\t\t 'container_color' => '',\n\t\t 'icon' => 'fontawesome-tasks',\n\t\t 'icon_color' => '#bb9f7c',\n\t\t 'icon_image' => '0',\n\t\t 'title' => 'Multiple Headers',\n\t\t 'text' => 'Packed with 5 different header layouts, you can use this theme to create many different styles of websites.',\n\t\t 'more_text' => '',\n\t\t 'more_url' => '',\n\t\t ),\n\t\t 4 => \n\t\t array (\n\t\t 'container_color' => '',\n\t\t 'icon' => 'fontawesome-cog',\n\t\t 'icon_color' => '#bb9f7c',\n\t\t 'icon_image' => '0',\n\t\t 'title' => 'Powerful Options',\n\t\t 'text' => 'Create comes with tons of options built right into the WordPress Customizer. So you can give your site a unique look.',\n\t\t 'more_text' => '',\n\t\t 'more_url' => '',\n\t\t ),\n\t\t 5 => \n\t\t array (\n\t\t 'container_color' => '',\n\t\t 'icon' => 'fontawesome-th-list',\n\t\t 'icon_color' => '#bb9f7c',\n\t\t 'icon_image' => '0',\n\t\t 'title' => 'Built-in Mega Menu',\n\t\t 'text' => 'There is a mega menu built in for those sites that have a lot of pages. You can easily add icons to menu items.',\n\t\t 'more_text' => '',\n\t\t 'more_url' => '',\n\t\t ),\n\t\t ),\n\t\t 'container_shape' => 'round',\n\t\t 'container_size' => 25,\n\t\t 'icon_size' => 25,\n\t\t 'per_row' => 3,\n\t\t 'responsive' => true,\n\t\t 'title_link' => false,\n\t\t 'icon_link' => false,\n\t\t 'new_window' => false,\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'SiteOrigin_Widget_Features_Widget',\n\t\t 'raw' => false,\n\t\t 'grid' => 3,\n\t\t 'cell' => 0,\n\t\t 'id' => 3,\n\t\t 'style' => \n\t\t array (\n\t\t 'background_display' => 'tile',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 4 => \n\t\t array (\n\t\t 'type' => 'visual',\n\t\t 'title' => '',\n\t\t 'text' => '<h1>Our <span style=\"color: #ffffff;\">customers\\'</span> happiness is what matters to us.</h1>',\n\t\t 'filter' => '1',\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t 'raw' => false,\n\t\t 'grid' => 4,\n\t\t 'cell' => 0,\n\t\t 'id' => 4,\n\t\t 'style' => \n\t\t array (\n\t\t 'class' => 'v-center',\n\t\t 'padding' => '50px',\n\t\t 'background' => '#232323',\n\t\t 'background_display' => 'tile',\n\t\t 'font_color' => '#9e9e9e',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 5 => \n\t\t array (\n\t\t 'title' => '',\n\t\t 'count' => '4',\n\t\t 'layout' => 'carousel',\n\t\t 'columns' => '1',\n\t\t 'alignment' => 'center',\n\t\t 'order' => 'rand',\n\t\t 'carousel-nav-color' => '#ffffff',\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'TTrust_Testimonials',\n\t\t 'raw' => false,\n\t\t 'grid' => 4,\n\t\t 'cell' => 1,\n\t\t 'id' => 5,\n\t\t 'style' => \n\t\t array (\n\t\t 'padding' => '50px',\n\t\t 'background' => '#1aafaf',\n\t\t 'background_display' => 'tile',\n\t\t 'font_color' => '#ffffff',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 6 => \n\t\t array (\n\t\t 'type' => 'visual',\n\t\t 'title' => '',\n\t\t 'text' => '<h1 style=\"text-align: center;\">We\\'ve been known to <span style=\"color: #000000;\">share</span> our thoughts.</h1>',\n\t\t 'filter' => '1',\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t 'raw' => false,\n\t\t 'grid' => 5,\n\t\t 'cell' => 0,\n\t\t 'id' => 6,\n\t\t 'style' => \n\t\t array (\n\t\t 'class' => 'v-center',\n\t\t 'padding' => '0px',\n\t\t 'background' => '#ffffff',\n\t\t 'background_display' => 'tile',\n\t\t 'font_color' => '#878787',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 7 => \n\t\t array (\n\t\t 'title' => '',\n\t\t 'count' => '9',\n\t\t 'layout' => 'carousel',\n\t\t 'columns' => '3',\n\t\t 'alignment' => 'left',\n\t\t 'orderby' => 'date',\n\t\t 'order' => 'DESC',\n\t\t 'show_excerpt' => 'no',\n\t\t 'carousel-nav-color' => '#1aafaf',\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'TTrust_Blog',\n\t\t 'raw' => false,\n\t\t 'grid' => 6,\n\t\t 'cell' => 0,\n\t\t 'id' => 7,\n\t\t 'style' => \n\t\t array (\n\t\t 'background_display' => 'tile',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 8 => \n\t\t array (\n\t\t 'type' => 'html',\n\t\t 'title' => '',\n\t\t 'text' => '<h3 style=\"text-align: center;\">Unlimited Parallax Sections</h3>\n\t\t<p style=\"text-align: center;\">Create unlimited parallax sections for your pages. It\\'s as easy as adding a new page builder row, uploading an image, and choosing \"parallax from the drop down.</p>',\n\t\t 'filter' => '1',\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t 'raw' => false,\n\t\t 'grid' => 7,\n\t\t 'cell' => 1,\n\t\t 'id' => 8,\n\t\t 'style' => \n\t\t array (\n\t\t 'padding' => '0px',\n\t\t 'background_display' => 'tile',\n\t\t 'font_color' => '#ffffff',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 9 => \n\t\t array (\n\t\t 'text' => 'LEARN MORE',\n\t\t 'url' => '#',\n\t\t 'new_window' => false,\n\t\t 'button_icon' => \n\t\t array (\n\t\t 'icon_selected' => '',\n\t\t 'icon_color' => '',\n\t\t 'icon' => '0',\n\t\t ),\n\t\t 'design' => \n\t\t array (\n\t\t 'align' => 'center',\n\t\t 'theme' => 'flat',\n\t\t 'button_color' => '#bb9f7c',\n\t\t 'text_color' => '#ffffff',\n\t\t 'hover' => true,\n\t\t 'font_size' => '1',\n\t\t 'rounding' => '0.25',\n\t\t 'padding' => '1',\n\t\t ),\n\t\t 'attributes' => \n\t\t array (\n\t\t 'id' => '',\n\t\t 'title' => '',\n\t\t 'onclick' => '',\n\t\t ),\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'SiteOrigin_Widget_Button_Widget',\n\t\t 'raw' => false,\n\t\t 'grid' => 7,\n\t\t 'cell' => 1,\n\t\t 'id' => 9,\n\t\t 'style' => \n\t\t array (\n\t\t 'background_display' => 'tile',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 10 => \n\t\t array (\n\t\t 'title' => 'Use Create to build your next site.',\n\t\t 'sub_title' => false,\n\t\t 'design' => \n\t\t array (\n\t\t 'background_color' => '#1aafaf',\n\t\t 'border_color' => '',\n\t\t 'button_align' => 'right',\n\t\t ),\n\t\t 'button' => \n\t\t array (\n\t\t 'text' => 'BUY CREATE NOW',\n\t\t 'url' => 'http://themetrust.com/themes/create',\n\t\t 'button_icon' => \n\t\t array (\n\t\t 'icon_selected' => '',\n\t\t 'icon_color' => '',\n\t\t 'icon' => '0',\n\t\t ),\n\t\t 'design' => \n\t\t array (\n\t\t 'theme' => 'wire',\n\t\t 'button_color' => '#ffffff',\n\t\t 'text_color' => '#1aafaf',\n\t\t 'hover' => true,\n\t\t 'font_size' => '1',\n\t\t 'rounding' => '0.25',\n\t\t 'padding' => '1',\n\t\t ),\n\t\t 'attributes' => \n\t\t array (\n\t\t 'id' => '',\n\t\t 'title' => '',\n\t\t 'onclick' => '',\n\t\t ),\n\t\t ),\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'SiteOrigin_Widget_Cta_Widget',\n\t\t 'raw' => false,\n\t\t 'grid' => 8,\n\t\t 'cell' => 0,\n\t\t 'id' => 10,\n\t\t 'style' => \n\t\t array (\n\t\t 'background_display' => 'tile',\n\t\t 'font_color' => '#ffffff',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 'grids' => \n\t\t array (\n\t\t 0 => \n\t\t array (\n\t\t 'cells' => 1,\n\t\t 'style' => \n\t\t array (\n\t\t 'row_stretch' => 'full-stretched',\n\t\t 'equal_column_height' => 'no',\n\t\t 'background_image_position' => 'left top',\n\t\t 'background_image_style' => 'cover',\n\t\t ),\n\t\t ),\n\t\t 1 => \n\t\t array (\n\t\t 'cells' => 3,\n\t\t 'style' => \n\t\t array (\n\t\t 'row_stretch' => 'full',\n\t\t 'equal_column_height' => 'no',\n\t\t 'padding_top' => '70px',\n\t\t 'padding_bottom' => '70px',\n\t\t 'background_image_position' => 'left top',\n\t\t 'background_image_style' => 'cover',\n\t\t ),\n\t\t ),\n\t\t 2 => \n\t\t array (\n\t\t 'cells' => 1,\n\t\t 'style' => \n\t\t array (\n\t\t 'bottom_margin' => '0px',\n\t\t 'row_stretch' => 'full-stretched',\n\t\t 'background' => '#f9f8f4',\n\t\t 'equal_column_height' => 'no',\n\t\t 'padding_top' => '0px',\n\t\t 'padding_bottom' => '0px',\n\t\t 'background_image_position' => 'left top',\n\t\t 'background_image_style' => 'cover',\n\t\t ),\n\t\t ),\n\t\t 3 => \n\t\t array (\n\t\t 'cells' => 1,\n\t\t 'style' => \n\t\t array (\n\t\t 'bottom_margin' => '0px',\n\t\t 'equal_column_height' => 'no',\n\t\t 'padding_top' => '70px',\n\t\t 'padding_bottom' => '60px',\n\t\t 'background_image_position' => 'left top',\n\t\t 'background_image_style' => 'cover',\n\t\t ),\n\t\t ),\n\t\t 4 => \n\t\t array (\n\t\t 'cells' => 2,\n\t\t 'style' => \n\t\t array (\n\t\t 'bottom_margin' => '0px',\n\t\t 'gutter' => '0px',\n\t\t 'row_stretch' => 'full-stretched',\n\t\t 'equal_column_height' => 'yes',\n\t\t 'background_image_position' => 'left top',\n\t\t 'background_image_style' => 'cover',\n\t\t ),\n\t\t ),\n\t\t 5 => \n\t\t array (\n\t\t 'cells' => 1,\n\t\t 'style' => \n\t\t array (\n\t\t 'bottom_margin' => '0px',\n\t\t 'gutter' => '0px',\n\t\t 'row_stretch' => 'full',\n\t\t 'equal_column_height' => 'no',\n\t\t 'padding_top' => '50px',\n\t\t 'padding_bottom' => '50px',\n\t\t 'background_image_position' => 'left top',\n\t\t 'background_image_style' => 'cover',\n\t\t ),\n\t\t ),\n\t\t 6 => \n\t\t array (\n\t\t 'cells' => 1,\n\t\t 'style' => \n\t\t array (\n\t\t 'bottom_margin' => '0px',\n\t\t 'gutter' => '0px',\n\t\t 'row_stretch' => 'full',\n\t\t 'equal_column_height' => 'no',\n\t\t 'padding_top' => '0px',\n\t\t 'padding_bottom' => '50px',\n\t\t 'background_image_position' => 'left top',\n\t\t 'background_image_style' => 'cover',\n\t\t ),\n\t\t ),\n\t\t 7 => \n\t\t array (\n\t\t 'cells' => 3,\n\t\t 'style' => \n\t\t array (\n\t\t 'bottom_margin' => '0px',\n\t\t 'row_stretch' => 'full',\n\t\t 'equal_column_height' => 'no',\n\t\t 'padding_top' => '140px',\n\t\t 'padding_bottom' => '140px',\n\t\t 'background_image' => 957,\n\t\t 'background_image_position' => 'left top',\n\t\t 'background_image_style' => 'parallax',\n\t\t ),\n\t\t ),\n\t\t 8 => \n\t\t array (\n\t\t 'cells' => 1,\n\t\t 'style' => \n\t\t array (\n\t\t 'bottom_margin' => '0px',\n\t\t 'row_stretch' => 'full',\n\t\t 'background' => '#1aafaf',\n\t\t 'equal_column_height' => 'no',\n\t\t 'background_image_position' => 'left top',\n\t\t 'background_image_style' => 'cover',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 'grid_cells' => \n\t\t array (\n\t\t 0 => \n\t\t array (\n\t\t 'grid' => 0,\n\t\t 'weight' => 1,\n\t\t ),\n\t\t 1 => \n\t\t array (\n\t\t 'grid' => 1,\n\t\t 'weight' => 0.10471092077087999772100346262959646992385387420654296875,\n\t\t ),\n\t\t 2 => \n\t\t array (\n\t\t 'grid' => 1,\n\t\t 'weight' => 0.7745182012847899866159195880754850804805755615234375,\n\t\t ),\n\t\t 3 => \n\t\t array (\n\t\t 'grid' => 1,\n\t\t 'weight' => 0.120770877944330001785289141480461694300174713134765625,\n\t\t ),\n\t\t 4 => \n\t\t array (\n\t\t 'grid' => 2,\n\t\t 'weight' => 1,\n\t\t ),\n\t\t 5 => \n\t\t array (\n\t\t 'grid' => 3,\n\t\t 'weight' => 1,\n\t\t ),\n\t\t 6 => \n\t\t array (\n\t\t 'grid' => 4,\n\t\t 'weight' => 0.58580182951797998835985481491661630570888519287109375,\n\t\t ),\n\t\t 7 => \n\t\t array (\n\t\t 'grid' => 4,\n\t\t 'weight' => 0.41419817048202001164014518508338369429111480712890625,\n\t\t ),\n\t\t 8 => \n\t\t array (\n\t\t 'grid' => 5,\n\t\t 'weight' => 1,\n\t\t ),\n\t\t 9 => \n\t\t array (\n\t\t 'grid' => 6,\n\t\t 'weight' => 1,\n\t\t ),\n\t\t 10 => \n\t\t array (\n\t\t 'grid' => 7,\n\t\t 'weight' => 0.204186413902050001301091697314404882490634918212890625,\n\t\t ),\n\t\t 11 => \n\t\t array (\n\t\t 'grid' => 7,\n\t\t 'weight' => 0.59162717219589999739781660537119023501873016357421875,\n\t\t ),\n\t\t 12 => \n\t\t array (\n\t\t 'grid' => 7,\n\t\t 'weight' => 0.204186413902050001301091697314404882490634918212890625,\n\t\t ),\n\t\t 13 => \n\t\t array (\n\t\t 'grid' => 8,\n\t\t 'weight' => 1,\n\t\t ),\n\t\t ),\n );\n\n\t$layouts['home-pro'] = array(\n\t\t'name' => __('Home: Professional', 'create'),\n\t\t'description' => __('Layout for demo Home: Professional page.', 'create'),\n 'widgets' => \n\t\t array (\n\t\t 0 => \n\t\t array (\n\t\t 'title' => '',\n\t\t 'text' => '[rev_slider alias=\"home_slider_pro\"]',\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'WP_Widget_Text',\n\t\t 'grid' => 0,\n\t\t 'cell' => 0,\n\t\t 'id' => 0,\n\t\t 'style' => \n\t\t array (\n\t\t 'background_image_attachment' => false,\n\t\t 'background_display' => 'tile',\n\t\t ),\n\t\t ),\n\t\t 'filter' => false,\n\t\t ),\n\t\t 1 => \n\t\t array (\n\t\t 'type' => 'visual',\n\t\t 'title' => '',\n\t\t 'text' => '<h3 style=\"text-align: center;\"><span style=\"color: #242424;\">THE ONLY THEME YOU NEED</span></h3><p style=\"text-align: center;\">Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>',\n\t\t 'filter' => '1',\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t 'raw' => false,\n\t\t 'grid' => 1,\n\t\t 'cell' => 0,\n\t\t 'id' => 1,\n\t\t 'style' => \n\t\t array (\n\t\t 'class' => 'v-center',\n\t\t 'widget_css' => '\t',\n\t\t 'padding' => '70px',\n\t\t 'background_display' => 'tile',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 2 => \n\t\t array (\n\t\t 'type' => 'visual',\n\t\t 'title' => '',\n\t\t 'text' => '<p><img class=\"alignright size-full wp-image-520\" src=\"http://create.themetrust.com/wp-content/uploads/2015/07/macbook-pro-cropped-right.jpg\" alt=\"macbook-pro-cropped-right\" width=\"1293\" height=\"951\" /></p>',\n\t\t 'filter' => '1',\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t 'raw' => false,\n\t\t 'grid' => 1,\n\t\t 'cell' => 1,\n\t\t 'id' => 2,\n\t\t 'style' => \n\t\t array (\n\t\t 'class' => 'v-center',\n\t\t 'background_display' => 'tile',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 3 => \n\t\t array (\n\t\t 'features' => \n\t\t array (\n\t\t 0 => \n\t\t array (\n\t\t 'container_color' => '',\n\t\t 'icon' => 'elegantline-layers',\n\t\t 'icon_color' => '#ffffff',\n\t\t 'icon_image' => '0',\n\t\t 'title' => 'Page Builder',\n\t\t 'text' => 'Create comes with a page builder that allows you to create pages exactly how you want. ',\n\t\t 'more_text' => '',\n\t\t 'more_url' => '',\n\t\t ),\n\t\t 1 => \n\t\t array (\n\t\t 'container_color' => '',\n\t\t 'icon' => 'elegantline-mobile',\n\t\t 'icon_color' => '#ffffff',\n\t\t 'icon_image' => '0',\n\t\t 'title' => 'Responsive Layout',\n\t\t 'text' => 'Create is a responsive theme. Its layout adjusts to look great on any screen size or device.',\n\t\t 'more_text' => '',\n\t\t 'more_url' => '',\n\t\t ),\n\t\t 2 => \n\t\t array (\n\t\t 'container_color' => '',\n\t\t 'icon' => 'elegantline-laptop',\n\t\t 'icon_color' => '#ffffff',\n\t\t 'icon_image' => '0',\n\t\t 'title' => 'Retina Ready',\n\t\t 'text' => 'Built with the latest technology in mind, rest assured that your site will look crisp on retina displays.',\n\t\t 'more_text' => '',\n\t\t 'more_url' => '',\n\t\t ),\n\t\t 3 => \n\t\t array (\n\t\t 'container_color' => '',\n\t\t 'icon' => 'elegantline-browser',\n\t\t 'icon_color' => '#ffffff',\n\t\t 'icon_image' => '0',\n\t\t 'title' => 'Multiple Headers',\n\t\t 'text' => 'Packed with 5 different header layouts, you can use this theme to create many different styles of websites.',\n\t\t 'more_text' => '',\n\t\t 'more_url' => '',\n\t\t ),\n\t\t 4 => \n\t\t array (\n\t\t 'container_color' => '',\n\t\t 'icon' => 'elegantline-gears',\n\t\t 'icon_color' => '#ffffff',\n\t\t 'icon_image' => '0',\n\t\t 'title' => 'Powerful Options',\n\t\t 'text' => 'Create comes with tons of options built right into the WordPress Customizer. So you can give your site a unique look.',\n\t\t 'more_text' => '',\n\t\t 'more_url' => '',\n\t\t ),\n\t\t 5 => \n\t\t array (\n\t\t 'container_color' => '',\n\t\t 'icon' => 'elegantline-genius',\n\t\t 'icon_color' => '#ffffff',\n\t\t 'icon_image' => '0',\n\t\t 'title' => 'Built-in Mega Menu',\n\t\t 'text' => 'There is a mega menu built in for those sites that have a lot of pages. You can easily add icons to menu items.',\n\t\t 'more_text' => '',\n\t\t 'more_url' => '',\n\t\t ),\n\t\t ),\n\t\t 'container_shape' => 'round',\n\t\t 'container_size' => 25,\n\t\t 'icon_size' => 25,\n\t\t 'per_row' => 3,\n\t\t 'responsive' => true,\n\t\t 'title_link' => false,\n\t\t 'icon_link' => false,\n\t\t 'new_window' => false,\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'SiteOrigin_Widget_Features_Widget',\n\t\t 'raw' => false,\n\t\t 'grid' => 2,\n\t\t 'cell' => 0,\n\t\t 'id' => 3,\n\t\t 'style' => \n\t\t array (\n\t\t 'class' => 'left',\n\t\t 'widget_css' => 'p{opacity: .5}',\n\t\t 'padding' => '50px',\n\t\t 'background_display' => 'tile',\n\t\t 'font_color' => '#ffffff',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 4 => \n\t\t array (\n\t\t 'title' => 'Some of our latest work.',\n\t\t 'sub_title' => '',\n\t\t 'design' => \n\t\t array (\n\t\t 'background_color' => '#ba9e78',\n\t\t 'border_color' => false,\n\t\t 'button_align' => 'right',\n\t\t ),\n\t\t 'button' => \n\t\t array (\n\t\t 'text' => 'View More',\n\t\t 'url' => '',\n\t\t 'button_icon' => \n\t\t array (\n\t\t 'icon_selected' => '',\n\t\t 'icon_color' => false,\n\t\t 'icon' => 0,\n\t\t ),\n\t\t 'design' => \n\t\t array (\n\t\t 'theme' => 'flat',\n\t\t 'button_color' => '#ffffff',\n\t\t 'text_color' => '#ba9e78',\n\t\t 'hover' => true,\n\t\t 'font_size' => '1',\n\t\t 'rounding' => '0.25',\n\t\t 'padding' => '1',\n\t\t 'align' => 'center',\n\t\t ),\n\t\t 'attributes' => \n\t\t array (\n\t\t 'id' => '',\n\t\t 'title' => '',\n\t\t 'onclick' => '',\n\t\t ),\n\t\t 'new_window' => false,\n\t\t ),\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'SiteOrigin_Widget_Cta_Widget',\n\t\t 'raw' => false,\n\t\t 'grid' => 3,\n\t\t 'cell' => 0,\n\t\t 'id' => 4,\n\t\t 'style' => \n\t\t array (\n\t\t 'background_display' => 'tile',\n\t\t 'font_color' => '#ffffff',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 5 => \n\t\t array (\n\t\t 'title' => '',\n\t\t 'show_filter' => 'no',\n\t\t 'filter_alignment' => 'center',\n\t\t 'count' => '3',\n\t\t 'thumb_proportions' => 'landscape',\n\t\t 'layout' => 'rows without gutter',\n\t\t 'columns' => '3',\n\t\t 'orderby' => 'date',\n\t\t 'order' => 'DESC',\n\t\t 'hover_effect' => 'effect-1',\n\t\t 'hover_color' => '',\n\t\t 'hover_text_color' => '',\n\t\t 'show_skills' => 'yes',\n\t\t 'show_load_more' => 'no',\n\t\t 'enable_lightbox' => 'no',\n\t\t 'skills' => \n\t\t array (\n\t\t ),\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'TTrust_Portfolio',\n\t\t 'raw' => false,\n\t\t 'grid' => 4,\n\t\t 'cell' => 0,\n\t\t 'id' => 5,\n\t\t 'style' => \n\t\t array (\n\t\t 'background_display' => 'tile',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 6 => \n\t\t array (\n\t\t 'type' => 'visual',\n\t\t 'title' => '',\n\t\t 'text' => '<h3 style=\"text-align: center;\"><span style=\"color: #242424;\">FROM THE BLOG</span></h3><p style=\"text-align: center;\">This is a blog widget that you can add anywhere. Display recent posts as a grid or carousel.</p>',\n\t\t 'filter' => '1',\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t 'raw' => false,\n\t\t 'grid' => 5,\n\t\t 'cell' => 0,\n\t\t 'id' => 6,\n\t\t 'style' => \n\t\t array (\n\t\t 'padding' => '50px',\n\t\t 'background_display' => 'tile',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 7 => \n\t\t array (\n\t\t 'title' => '',\n\t\t 'count' => '3',\n\t\t 'layout' => 'grid',\n\t\t 'columns' => '3',\n\t\t 'alignment' => 'left',\n\t\t 'orderby' => 'date',\n\t\t 'order' => 'DESC',\n\t\t 'show_excerpt' => 'yes',\n\t\t 'carousel-nav-color' => '',\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'TTrust_Blog',\n\t\t 'raw' => false,\n\t\t 'grid' => 5,\n\t\t 'cell' => 0,\n\t\t 'id' => 7,\n\t\t 'style' => \n\t\t array (\n\t\t 'background_display' => 'tile',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 8 => \n\t\t array (\n\t\t 'type' => 'visual',\n\t\t 'title' => '',\n\t\t 'text' => '<h3 style=\"text-align: center;\">OUR CUSTOMERS <span style=\"color: #ba9e78;\"><strong>LOVE</strong></span> US</h3>',\n\t\t 'filter' => '1',\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t 'raw' => false,\n\t\t 'grid' => 6,\n\t\t 'cell' => 1,\n\t\t 'id' => 8,\n\t\t 'style' => \n\t\t array (\n\t\t 'background_display' => 'tile',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 9 => \n\t\t array (\n\t\t 'title' => '',\n\t\t 'count' => '3',\n\t\t 'layout' => 'carousel',\n\t\t 'columns' => '1',\n\t\t 'alignment' => 'center',\n\t\t 'order' => 'menu_order',\n\t\t 'carousel-nav-color' => '#ba9e78',\n\t\t 'panels_info' => \n\t\t array (\n\t\t 'class' => 'TTrust_Testimonials',\n\t\t 'raw' => false,\n\t\t 'grid' => 6,\n\t\t 'cell' => 1,\n\t\t 'id' => 9,\n\t\t 'style' => \n\t\t array (\n\t\t 'padding' => '30pxpx',\n\t\t 'background_display' => 'tile',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 'grids' => \n\t\t array (\n\t\t 0 => \n\t\t array (\n\t\t 'cells' => 1,\n\t\t 'style' => \n\t\t array (\n\t\t 'row_stretch' => 'full-stretched',\n\t\t 'equal_column_height' => 'no',\n\t\t 'background_image_position' => 'left top',\n\t\t 'background_image_style' => 'cover',\n\t\t ),\n\t\t ),\n\t\t 1 => \n\t\t array (\n\t\t 'cells' => 2,\n\t\t 'style' => \n\t\t array (\n\t\t 'gutter' => '0px',\n\t\t 'row_stretch' => 'full-stretched',\n\t\t 'equal_column_height' => 'yes',\n\t\t 'padding_top' => '60px',\n\t\t 'padding_bottom' => '60px',\n\t\t 'background_image_position' => 'left top',\n\t\t 'background_image_style' => 'cover',\n\t\t ),\n\t\t ),\n\t\t 2 => \n\t\t array (\n\t\t 'cells' => 1,\n\t\t 'style' => \n\t\t array (\n\t\t 'bottom_margin' => '0px',\n\t\t 'row_stretch' => 'full',\n\t\t 'equal_column_height' => 'no',\n\t\t 'padding_top' => '140px',\n\t\t 'padding_bottom' => '140px',\n\t\t 'background_image' => 544,\n\t\t 'background_image_position' => 'left top',\n\t\t 'background_image_style' => 'parallax',\n\t\t ),\n\t\t ),\n\t\t 3 => \n\t\t array (\n\t\t 'cells' => 1,\n\t\t 'style' => \n\t\t array (\n\t\t 'bottom_margin' => '0px',\n\t\t 'row_stretch' => 'full',\n\t\t 'background' => '#ba9e78',\n\t\t 'equal_column_height' => 'no',\n\t\t 'background_image_position' => 'left top',\n\t\t 'background_image_style' => 'cover',\n\t\t ),\n\t\t ),\n\t\t 4 => \n\t\t array (\n\t\t 'cells' => 1,\n\t\t 'style' => \n\t\t array (\n\t\t 'bottom_margin' => '0px',\n\t\t 'row_stretch' => 'full-stretched',\n\t\t 'background' => '#f9f8f4',\n\t\t 'equal_column_height' => 'no',\n\t\t 'padding_top' => '0px',\n\t\t 'padding_bottom' => '0px',\n\t\t 'background_image_position' => 'left top',\n\t\t 'background_image_style' => 'cover',\n\t\t ),\n\t\t ),\n\t\t 5 => \n\t\t array (\n\t\t 'cells' => 1,\n\t\t 'style' => \n\t\t array (\n\t\t 'equal_column_height' => 'no',\n\t\t 'padding_top' => '40px',\n\t\t 'padding_bottom' => '40px',\n\t\t 'background_image_position' => 'left top',\n\t\t 'background_image_style' => 'cover',\n\t\t ),\n\t\t ),\n\t\t 6 => \n\t\t array (\n\t\t 'cells' => 3,\n\t\t 'style' => \n\t\t array (\n\t\t 'row_stretch' => 'full',\n\t\t 'background' => '#f4f4f4',\n\t\t 'equal_column_height' => 'no',\n\t\t 'padding_top' => '100px',\n\t\t 'padding_bottom' => '100px',\n\t\t 'background_image_position' => 'left top',\n\t\t 'background_image_style' => 'parallax',\n\t\t ),\n\t\t ),\n\t\t ),\n\t\t 'grid_cells' => \n\t\t array (\n\t\t 0 => \n\t\t array (\n\t\t 'grid' => 0,\n\t\t 'weight' => 1,\n\t\t ),\n\t\t 1 => \n\t\t array (\n\t\t 'grid' => 1,\n\t\t 'weight' => 0.5,\n\t\t ),\n\t\t 2 => \n\t\t array (\n\t\t 'grid' => 1,\n\t\t 'weight' => 0.5,\n\t\t ),\n\t\t 3 => \n\t\t array (\n\t\t 'grid' => 2,\n\t\t 'weight' => 1,\n\t\t ),\n\t\t 4 => \n\t\t array (\n\t\t 'grid' => 3,\n\t\t 'weight' => 1,\n\t\t ),\n\t\t 5 => \n\t\t array (\n\t\t 'grid' => 4,\n\t\t 'weight' => 1,\n\t\t ),\n\t\t 6 => \n\t\t array (\n\t\t 'grid' => 5,\n\t\t 'weight' => 1,\n\t\t ),\n\t\t 7 => \n\t\t array (\n\t\t 'grid' => 6,\n\t\t 'weight' => 0.278206541712607224869913125075981952250003814697265625,\n\t\t ),\n\t\t 8 => \n\t\t array (\n\t\t 'grid' => 6,\n\t\t 'weight' => 0.44358691657478555026017374984803609549999237060546875,\n\t\t ),\n\t\t 9 => \n\t\t array (\n\t\t 'grid' => 6,\n\t\t 'weight' => 0.278206541712607224869913125075981952250003814697265625,\n\t\t ),\n\t\t ),\n\t\t);\n\t\t\n\t\t$layouts['home-full'] = array(\n\t\t\t'name' => __('Home: Fullscreen Slider', 'create'),\n\t\t\t'description' => __('Layout for demo Home: Fullscreen Slider page.', 'create'),\n\t 'widgets' => \n\t\t\t array (\n\t\t\t 0 => \n\t\t\t array (\n\t\t\t 'title' => '',\n\t\t\t 'text' => '[rev_slider alias=\"full-screen\"]',\n\t\t\t 'panels_info' => \n\t\t\t array (\n\t\t\t 'class' => 'WP_Widget_Text',\n\t\t\t 'grid' => 0,\n\t\t\t 'cell' => 0,\n\t\t\t 'id' => 0,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'background_image_attachment' => false,\n\t\t\t 'background_display' => 'tile',\n\t\t\t ),\n\t\t\t ),\n\t\t\t 'filter' => false,\n\t\t\t ),\n\t\t\t 1 => \n\t\t\t array (\n\t\t\t 'features' => \n\t\t\t array (\n\t\t\t 0 => \n\t\t\t array (\n\t\t\t 'container_color' => false,\n\t\t\t 'icon' => 'elegantline-layers',\n\t\t\t 'icon_color' => '#98643c',\n\t\t\t 'icon_image' => 0,\n\t\t\t 'title' => 'Page Builder',\n\t\t\t 'text' => 'Create comes with a page builder that allows you to create pages exactly how you want. ',\n\t\t\t 'more_text' => '',\n\t\t\t 'more_url' => '',\n\t\t\t ),\n\t\t\t 1 => \n\t\t\t array (\n\t\t\t 'container_color' => false,\n\t\t\t 'icon' => 'elegantline-mobile',\n\t\t\t 'icon_color' => '#98643c',\n\t\t\t 'icon_image' => 0,\n\t\t\t 'title' => 'Responsive Layout',\n\t\t\t 'text' => 'Create is a responsive theme. Its layout adjusts to look great on any screen size or device.',\n\t\t\t 'more_text' => '',\n\t\t\t 'more_url' => '',\n\t\t\t ),\n\t\t\t 2 => \n\t\t\t array (\n\t\t\t 'container_color' => false,\n\t\t\t 'icon' => 'elegantline-laptop',\n\t\t\t 'icon_color' => '#98643c',\n\t\t\t 'icon_image' => 0,\n\t\t\t 'title' => 'Retina Ready',\n\t\t\t 'text' => 'Built with the latest technology in mind, rest assured that your site will look crisp on retina displays.',\n\t\t\t 'more_text' => '',\n\t\t\t 'more_url' => '',\n\t\t\t ),\n\t\t\t ),\n\t\t\t 'container_shape' => 'round',\n\t\t\t 'container_size' => 25,\n\t\t\t 'icon_size' => 25,\n\t\t\t 'per_row' => 1,\n\t\t\t 'responsive' => true,\n\t\t\t 'title_link' => false,\n\t\t\t 'icon_link' => false,\n\t\t\t 'new_window' => false,\n\t\t\t 'panels_info' => \n\t\t\t array (\n\t\t\t 'class' => 'SiteOrigin_Widget_Features_Widget',\n\t\t\t 'raw' => false,\n\t\t\t 'grid' => 1,\n\t\t\t 'cell' => 0,\n\t\t\t 'id' => 1,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'class' => 'right v-center',\n\t\t\t 'background_display' => 'tile',\n\t\t\t ),\n\t\t\t ),\n\t\t\t ),\n\t\t\t 2 => \n\t\t\t array (\n\t\t\t 'image_fallback' => '',\n\t\t\t 'image' => 159,\n\t\t\t 'size' => 'full',\n\t\t\t 'title' => '',\n\t\t\t 'alt' => '',\n\t\t\t 'url' => '',\n\t\t\t 'bound' => true,\n\t\t\t 'new_window' => false,\n\t\t\t 'full_width' => false,\n\t\t\t 'panels_info' => \n\t\t\t array (\n\t\t\t 'class' => 'SiteOrigin_Widget_Image_Widget',\n\t\t\t 'raw' => false,\n\t\t\t 'grid' => 1,\n\t\t\t 'cell' => 1,\n\t\t\t 'id' => 2,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'class' => 'v-center',\n\t\t\t 'background_display' => 'tile',\n\t\t\t ),\n\t\t\t ),\n\t\t\t ),\n\t\t\t 3 => \n\t\t\t array (\n\t\t\t 'features' => \n\t\t\t array (\n\t\t\t 0 => \n\t\t\t array (\n\t\t\t 'container_color' => false,\n\t\t\t 'icon' => 'elegantline-browser',\n\t\t\t 'icon_color' => '#98643c',\n\t\t\t 'icon_image' => 0,\n\t\t\t 'title' => 'Multiple Headers',\n\t\t\t 'text' => 'Packed with 5 different header layouts, you can use this theme to create many different styles of websites.',\n\t\t\t 'more_text' => '',\n\t\t\t 'more_url' => '',\n\t\t\t ),\n\t\t\t 1 => \n\t\t\t array (\n\t\t\t 'container_color' => false,\n\t\t\t 'icon' => 'elegantline-gears',\n\t\t\t 'icon_color' => '#98643c',\n\t\t\t 'icon_image' => 0,\n\t\t\t 'title' => 'Powerful Options',\n\t\t\t 'text' => 'Create comes with tons of options built right into the WordPress Customizer. So you can give your site a unique look.',\n\t\t\t 'more_text' => '',\n\t\t\t 'more_url' => '',\n\t\t\t ),\n\t\t\t 2 => \n\t\t\t array (\n\t\t\t 'container_color' => false,\n\t\t\t 'icon' => 'elegantline-genius',\n\t\t\t 'icon_color' => '#98643c',\n\t\t\t 'icon_image' => 0,\n\t\t\t 'title' => 'Built-in Mega Menu',\n\t\t\t 'text' => 'There is a mega menu built in for those sites that have a lot of pages. You can easily add icons to menu items.',\n\t\t\t 'more_text' => '',\n\t\t\t 'more_url' => '',\n\t\t\t ),\n\t\t\t ),\n\t\t\t 'container_shape' => 'round',\n\t\t\t 'container_size' => 25,\n\t\t\t 'icon_size' => 25,\n\t\t\t 'per_row' => 1,\n\t\t\t 'responsive' => true,\n\t\t\t 'title_link' => false,\n\t\t\t 'icon_link' => false,\n\t\t\t 'new_window' => false,\n\t\t\t 'panels_info' => \n\t\t\t array (\n\t\t\t 'class' => 'SiteOrigin_Widget_Features_Widget',\n\t\t\t 'raw' => false,\n\t\t\t 'grid' => 1,\n\t\t\t 'cell' => 2,\n\t\t\t 'id' => 3,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'class' => 'left v-center',\n\t\t\t 'background_display' => 'tile',\n\t\t\t ),\n\t\t\t ),\n\t\t\t ),\n\t\t\t 4 => \n\t\t\t array (\n\t\t\t 'type' => 'visual',\n\t\t\t 'title' => '',\n\t\t\t 'text' => '<h3 style=\"text-align: center;\">Our Latest Work</h3><p style=\"text-align: center;\"><span style=\"color: #999999;\">Create unlimited parallax sections for your pages. It\\'s as easy as adding a new page build row, uploading and image, and choosing \"parallax from the drop down.</span></p>',\n\t\t\t 'filter' => '1',\n\t\t\t 'panels_info' => \n\t\t\t array (\n\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t 'raw' => false,\n\t\t\t 'grid' => 2,\n\t\t\t 'cell' => 1,\n\t\t\t 'id' => 4,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'padding' => '0px',\n\t\t\t 'background_display' => 'tile',\n\t\t\t 'font_color' => '#ffffff',\n\t\t\t ),\n\t\t\t ),\n\t\t\t ),\n\t\t\t 5 => \n\t\t\t array (\n\t\t\t 'text' => 'VIEW MORE',\n\t\t\t 'url' => '#',\n\t\t\t 'new_window' => false,\n\t\t\t 'button_icon' => \n\t\t\t array (\n\t\t\t 'icon_selected' => '',\n\t\t\t 'icon_color' => '',\n\t\t\t 'icon' => '0',\n\t\t\t ),\n\t\t\t 'design' => \n\t\t\t array (\n\t\t\t 'align' => 'center',\n\t\t\t 'theme' => 'flat',\n\t\t\t 'button_color' => '#bb9f7c',\n\t\t\t 'text_color' => '#ffffff',\n\t\t\t 'hover' => true,\n\t\t\t 'font_size' => '1',\n\t\t\t 'rounding' => '0.25',\n\t\t\t 'padding' => '1',\n\t\t\t ),\n\t\t\t 'attributes' => \n\t\t\t array (\n\t\t\t 'id' => '',\n\t\t\t 'title' => '',\n\t\t\t 'onclick' => '',\n\t\t\t ),\n\t\t\t 'panels_info' => \n\t\t\t array (\n\t\t\t 'class' => 'SiteOrigin_Widget_Button_Widget',\n\t\t\t 'raw' => false,\n\t\t\t 'grid' => 2,\n\t\t\t 'cell' => 1,\n\t\t\t 'id' => 5,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'background_display' => 'tile',\n\t\t\t ),\n\t\t\t ),\n\t\t\t ),\n\t\t\t 6 => \n\t\t\t array (\n\t\t\t 'title' => '',\n\t\t\t 'show_filter' => 'no',\n\t\t\t 'filter_alignment' => 'center',\n\t\t\t 'count' => '3',\n\t\t\t 'thumb_proportions' => 'square',\n\t\t\t 'layout' => 'rows without gutter',\n\t\t\t 'columns' => '3',\n\t\t\t 'orderby' => 'date',\n\t\t\t 'order' => 'DESC',\n\t\t\t 'hover_effect' => 'effect-1',\n\t\t\t 'hover_color' => '',\n\t\t\t 'hover_text_color' => '',\n\t\t\t 'show_skills' => 'no',\n\t\t\t 'show_load_more' => 'no',\n\t\t\t 'enable_lightbox' => 'no',\n\t\t\t 'skills' => \n\t\t\t array (\n\t\t\t ),\n\t\t\t 'panels_info' => \n\t\t\t array (\n\t\t\t 'class' => 'TTrust_Portfolio',\n\t\t\t 'raw' => false,\n\t\t\t 'grid' => 3,\n\t\t\t 'cell' => 0,\n\t\t\t 'id' => 6,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'background_display' => 'tile',\n\t\t\t ),\n\t\t\t ),\n\t\t\t ),\n\t\t\t 7 => \n\t\t\t array (\n\t\t\t 'headline' => \n\t\t\t array (\n\t\t\t 'text' => 'What People Are Saying',\n\t\t\t 'font' => 'default',\n\t\t\t 'color' => '#000000',\n\t\t\t 'align' => 'center',\n\t\t\t ),\n\t\t\t 'sub_headline' => \n\t\t\t array (\n\t\t\t 'text' => 'Display testimonials as a slider or grid.',\n\t\t\t 'font' => 'default',\n\t\t\t 'color' => '#aaaaaa',\n\t\t\t 'align' => 'center',\n\t\t\t ),\n\t\t\t 'divider' => \n\t\t\t array (\n\t\t\t 'style' => 'solid',\n\t\t\t 'weight' => 'thin',\n\t\t\t 'color' => '#bc9f7a',\n\t\t\t ),\n\t\t\t 'panels_info' => \n\t\t\t array (\n\t\t\t 'class' => 'SiteOrigin_Widget_Headline_Widget',\n\t\t\t 'raw' => false,\n\t\t\t 'grid' => 4,\n\t\t\t 'cell' => 0,\n\t\t\t 'id' => 7,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'padding' => '20px',\n\t\t\t 'background_display' => 'tile',\n\t\t\t ),\n\t\t\t ),\n\t\t\t ),\n\t\t\t 8 => \n\t\t\t array (\n\t\t\t 'title' => '',\n\t\t\t 'count' => '3',\n\t\t\t 'layout' => 'grid',\n\t\t\t 'columns' => '3',\n\t\t\t 'alignment' => 'center',\n\t\t\t 'order' => 'rand',\n\t\t\t 'carousel-nav-color' => '',\n\t\t\t 'panels_info' => \n\t\t\t array (\n\t\t\t 'class' => 'TTrust_Testimonials',\n\t\t\t 'raw' => false,\n\t\t\t 'grid' => 4,\n\t\t\t 'cell' => 0,\n\t\t\t 'id' => 8,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'background_display' => 'tile',\n\t\t\t ),\n\t\t\t ),\n\t\t\t ),\n\t\t\t 9 => \n\t\t\t array (\n\t\t\t 'features' => \n\t\t\t array (\n\t\t\t 0 => \n\t\t\t array (\n\t\t\t 'container_color' => false,\n\t\t\t 'icon' => 'fontawesome-list-alt',\n\t\t\t 'icon_color' => '#ffffff',\n\t\t\t 'icon_image' => 0,\n\t\t\t 'title' => 'Multiple Site Layouts',\n\t\t\t 'text' => 'Choose from full-width, boxed, side header, top header, and more.',\n\t\t\t 'more_text' => '',\n\t\t\t 'more_url' => '',\n\t\t\t ),\n\t\t\t 1 => \n\t\t\t array (\n\t\t\t 'container_color' => false,\n\t\t\t 'icon' => 'fontawesome-desktop',\n\t\t\t 'icon_color' => '#ffffff',\n\t\t\t 'icon_image' => 0,\n\t\t\t 'title' => 'One-page Option',\n\t\t\t 'text' => 'Create a navigation that scrolls to different sections on a single page.',\n\t\t\t 'more_text' => '',\n\t\t\t 'more_url' => '',\n\t\t\t ),\n\t\t\t ),\n\t\t\t 'container_shape' => 'round',\n\t\t\t 'container_size' => 25,\n\t\t\t 'icon_size' => 25,\n\t\t\t 'per_row' => 1,\n\t\t\t 'responsive' => true,\n\t\t\t 'title_link' => false,\n\t\t\t 'icon_link' => false,\n\t\t\t 'new_window' => false,\n\t\t\t 'panels_info' => \n\t\t\t array (\n\t\t\t 'class' => 'SiteOrigin_Widget_Features_Widget',\n\t\t\t 'raw' => false,\n\t\t\t 'grid' => 5,\n\t\t\t 'cell' => 0,\n\t\t\t 'id' => 9,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'class' => 'left',\n\t\t\t 'padding' => '20%',\n\t\t\t 'background' => '#ba9e78',\n\t\t\t 'background_display' => 'tile',\n\t\t\t 'font_color' => '#ffffff',\n\t\t\t ),\n\t\t\t ),\n\t\t\t ),\n\t\t\t 10 => \n\t\t\t array (\n\t\t\t 'features' => \n\t\t\t array (\n\t\t\t 0 => \n\t\t\t array (\n\t\t\t 'container_color' => false,\n\t\t\t 'icon' => 'fontawesome-th',\n\t\t\t 'icon_color' => '#ffffff',\n\t\t\t 'icon_image' => 0,\n\t\t\t 'title' => 'Portfolio Options',\n\t\t\t 'text' => 'Packed with tons of portfolio options: masonry or grid layout, load more button, and more.',\n\t\t\t 'more_text' => '',\n\t\t\t 'more_url' => '',\n\t\t\t ),\n\t\t\t 1 => \n\t\t\t array (\n\t\t\t 'container_color' => false,\n\t\t\t 'icon' => 'fontawesome-star-o',\n\t\t\t 'icon_color' => '#ffffff',\n\t\t\t 'icon_image' => 0,\n\t\t\t 'title' => 'Top-notch Support',\n\t\t\t 'text' => 'Read the documentation, but still have questions? We\\'re here to help.',\n\t\t\t 'more_text' => '',\n\t\t\t 'more_url' => '',\n\t\t\t ),\n\t\t\t ),\n\t\t\t 'container_shape' => 'round',\n\t\t\t 'container_size' => 25,\n\t\t\t 'icon_size' => 25,\n\t\t\t 'per_row' => 1,\n\t\t\t 'responsive' => true,\n\t\t\t 'title_link' => false,\n\t\t\t 'icon_link' => false,\n\t\t\t 'new_window' => false,\n\t\t\t 'panels_info' => \n\t\t\t array (\n\t\t\t 'class' => 'SiteOrigin_Widget_Features_Widget',\n\t\t\t 'raw' => false,\n\t\t\t 'grid' => 5,\n\t\t\t 'cell' => 1,\n\t\t\t 'id' => 10,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'class' => 'left',\n\t\t\t 'padding' => '20%',\n\t\t\t 'background' => '#232323',\n\t\t\t 'background_image_attachment' => 200,\n\t\t\t 'background_display' => 'tile',\n\t\t\t 'font_color' => '#ffffff',\n\t\t\t ),\n\t\t\t ),\n\t\t\t ),\n\t\t\t 11 => \n\t\t\t array (\n\t\t\t 'features' => \n\t\t\t array (\n\t\t\t 0 => \n\t\t\t array (\n\t\t\t 'container_color' => false,\n\t\t\t 'icon' => 'fontawesome-hand-o-up',\n\t\t\t 'icon_color' => '#ffffff',\n\t\t\t 'icon_image' => 0,\n\t\t\t 'title' => 'One-click Demo Install',\n\t\t\t 'text' => 'We make it easy for you to get started with all of the layouts you see here in the demo.',\n\t\t\t 'more_text' => '',\n\t\t\t 'more_url' => '',\n\t\t\t ),\n\t\t\t 1 => \n\t\t\t array (\n\t\t\t 'container_color' => false,\n\t\t\t 'icon' => 'fontawesome-file-text',\n\t\t\t 'icon_color' => '#ffffff',\n\t\t\t 'icon_image' => 0,\n\t\t\t 'title' => 'Detailed Documentation',\n\t\t\t 'text' => 'Create has a lot features. We\\'ve taken the time to explain how to use them.',\n\t\t\t 'more_text' => '',\n\t\t\t 'more_url' => '',\n\t\t\t ),\n\t\t\t ),\n\t\t\t 'container_shape' => 'round',\n\t\t\t 'container_size' => 25,\n\t\t\t 'icon_size' => 25,\n\t\t\t 'per_row' => 1,\n\t\t\t 'responsive' => true,\n\t\t\t 'title_link' => false,\n\t\t\t 'icon_link' => false,\n\t\t\t 'new_window' => false,\n\t\t\t 'panels_info' => \n\t\t\t array (\n\t\t\t 'class' => 'SiteOrigin_Widget_Features_Widget',\n\t\t\t 'raw' => false,\n\t\t\t 'grid' => 5,\n\t\t\t 'cell' => 2,\n\t\t\t 'id' => 11,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'class' => 'left',\n\t\t\t 'padding' => '20%',\n\t\t\t 'background' => '#232323',\n\t\t\t 'background_display' => 'tile',\n\t\t\t 'font_color' => '#ffffff',\n\t\t\t ),\n\t\t\t ),\n\t\t\t ),\n\t\t\t 12 => \n\t\t\t array (\n\t\t\t 'headline' => \n\t\t\t array (\n\t\t\t 'text' => 'Recent News',\n\t\t\t 'font' => 'default',\n\t\t\t 'color' => '#000000',\n\t\t\t 'align' => 'center',\n\t\t\t ),\n\t\t\t 'sub_headline' => \n\t\t\t array (\n\t\t\t 'text' => 'Display recent posts as a carousel or grid.',\n\t\t\t 'font' => 'default',\n\t\t\t 'color' => '#aaaaaa',\n\t\t\t 'align' => 'center',\n\t\t\t ),\n\t\t\t 'divider' => \n\t\t\t array (\n\t\t\t 'style' => 'solid',\n\t\t\t 'weight' => 'thin',\n\t\t\t 'color' => '#bc9f7a',\n\t\t\t ),\n\t\t\t 'panels_info' => \n\t\t\t array (\n\t\t\t 'class' => 'SiteOrigin_Widget_Headline_Widget',\n\t\t\t 'raw' => false,\n\t\t\t 'grid' => 6,\n\t\t\t 'cell' => 0,\n\t\t\t 'id' => 12,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'padding' => '20px',\n\t\t\t 'background_display' => 'tile',\n\t\t\t ),\n\t\t\t ),\n\t\t\t ),\n\t\t\t 13 => \n\t\t\t array (\n\t\t\t 'title' => '',\n\t\t\t 'count' => '7',\n\t\t\t 'layout' => 'carousel',\n\t\t\t 'columns' => '3',\n\t\t\t 'alignment' => 'left',\n\t\t\t 'orderby' => 'date',\n\t\t\t 'order' => 'DESC',\n\t\t\t 'show_excerpt' => 'yes',\n\t\t\t 'carousel-nav-color' => '',\n\t\t\t 'panels_info' => \n\t\t\t array (\n\t\t\t 'class' => 'TTrust_Blog',\n\t\t\t 'raw' => false,\n\t\t\t 'grid' => 6,\n\t\t\t 'cell' => 0,\n\t\t\t 'id' => 13,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'background_display' => 'tile',\n\t\t\t ),\n\t\t\t ),\n\t\t\t ),\n\t\t\t ),\n\t\t\t 'grids' => \n\t\t\t array (\n\t\t\t 0 => \n\t\t\t array (\n\t\t\t 'cells' => 1,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'row_stretch' => 'full-stretched',\n\t\t\t 'equal_column_height' => 'no',\n\t\t\t 'background_image_position' => 'left top',\n\t\t\t 'background_image_style' => 'cover',\n\t\t\t ),\n\t\t\t ),\n\t\t\t 1 => \n\t\t\t array (\n\t\t\t 'cells' => 3,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'bottom_margin' => '0px',\n\t\t\t 'gutter' => '0px',\n\t\t\t 'equal_column_height' => 'yes',\n\t\t\t 'padding_top' => '60px',\n\t\t\t 'padding_bottom' => '50px',\n\t\t\t 'background_image_position' => 'left top',\n\t\t\t 'background_image_style' => 'cover',\n\t\t\t ),\n\t\t\t ),\n\t\t\t 2 => \n\t\t\t array (\n\t\t\t 'cells' => 3,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'bottom_margin' => '0px',\n\t\t\t 'row_stretch' => 'full',\n\t\t\t 'equal_column_height' => 'no',\n\t\t\t 'padding_top' => '100px',\n\t\t\t 'padding_bottom' => '100px',\n\t\t\t 'background_image' => 118,\n\t\t\t 'background_image_position' => 'left top',\n\t\t\t 'background_image_style' => 'parallax',\n\t\t\t ),\n\t\t\t ),\n\t\t\t 3 => \n\t\t\t array (\n\t\t\t 'cells' => 1,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'bottom_margin' => '0px',\n\t\t\t 'gutter' => '0px',\n\t\t\t 'row_stretch' => 'full-stretched',\n\t\t\t 'equal_column_height' => 'no',\n\t\t\t 'background_image_position' => 'left top',\n\t\t\t 'background_image_style' => 'cover',\n\t\t\t ),\n\t\t\t ),\n\t\t\t 4 => \n\t\t\t array (\n\t\t\t 'cells' => 1,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'bottom_margin' => '0px',\n\t\t\t 'gutter' => '0px',\n\t\t\t 'equal_column_height' => 'no',\n\t\t\t 'padding_top' => '50px',\n\t\t\t 'padding_bottom' => '50px',\n\t\t\t 'background_image_position' => 'left top',\n\t\t\t 'background_image_style' => 'cover',\n\t\t\t ),\n\t\t\t ),\n\t\t\t 5 => \n\t\t\t array (\n\t\t\t 'cells' => 3,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'bottom_margin' => '0px',\n\t\t\t 'gutter' => '0px',\n\t\t\t 'row_stretch' => 'full-stretched',\n\t\t\t 'background' => '#eaeaea',\n\t\t\t 'equal_column_height' => 'yes',\n\t\t\t 'padding_top' => '0px',\n\t\t\t 'padding_bottom' => '0px',\n\t\t\t 'padding_left' => '0px',\n\t\t\t 'padding_right' => '0px',\n\t\t\t 'background_image_position' => 'left top',\n\t\t\t 'background_image_style' => 'cover',\n\t\t\t ),\n\t\t\t ),\n\t\t\t 6 => \n\t\t\t array (\n\t\t\t 'cells' => 1,\n\t\t\t 'style' => \n\t\t\t array (\n\t\t\t 'equal_column_height' => 'no',\n\t\t\t 'padding_top' => '50px',\n\t\t\t 'padding_bottom' => '50px',\n\t\t\t 'background_image_position' => 'left top',\n\t\t\t 'background_image_style' => 'cover',\n\t\t\t ),\n\t\t\t ),\n\t\t\t ),\n\t\t\t 'grid_cells' => \n\t\t\t array (\n\t\t\t 0 => \n\t\t\t array (\n\t\t\t 'grid' => 0,\n\t\t\t 'weight' => 1,\n\t\t\t ),\n\t\t\t 1 => \n\t\t\t array (\n\t\t\t 'grid' => 1,\n\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t ),\n\t\t\t 2 => \n\t\t\t array (\n\t\t\t 'grid' => 1,\n\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t ),\n\t\t\t 3 => \n\t\t\t array (\n\t\t\t 'grid' => 1,\n\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t ),\n\t\t\t 4 => \n\t\t\t array (\n\t\t\t 'grid' => 2,\n\t\t\t 'weight' => 0.204186413902050001301091697314404882490634918212890625,\n\t\t\t ),\n\t\t\t 5 => \n\t\t\t array (\n\t\t\t 'grid' => 2,\n\t\t\t 'weight' => 0.59162717219589999739781660537119023501873016357421875,\n\t\t\t ),\n\t\t\t 6 => \n\t\t\t array (\n\t\t\t 'grid' => 2,\n\t\t\t 'weight' => 0.204186413902050001301091697314404882490634918212890625,\n\t\t\t ),\n\t\t\t 7 => \n\t\t\t array (\n\t\t\t 'grid' => 3,\n\t\t\t 'weight' => 1,\n\t\t\t ),\n\t\t\t 8 => \n\t\t\t array (\n\t\t\t 'grid' => 4,\n\t\t\t 'weight' => 1,\n\t\t\t ),\n\t\t\t 9 => \n\t\t\t array (\n\t\t\t 'grid' => 5,\n\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t ),\n\t\t\t 10 => \n\t\t\t array (\n\t\t\t 'grid' => 5,\n\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t ),\n\t\t\t 11 => \n\t\t\t array (\n\t\t\t 'grid' => 5,\n\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t ),\n\t\t\t 12 => \n\t\t\t array (\n\t\t\t 'grid' => 6,\n\t\t\t 'weight' => 1,\n\t\t\t ),\n\t\t\t ),\n\t\t\t);\n\t\t\t\n\t\t\t$layouts['home-one-page'] = array(\n\t\t\t\t'name' => __('Home: One Page', 'create'),\n\t\t\t\t'description' => __('Layout for demo Home: One Page page.', 'create'),\n\t\t 'widgets' => \n\t\t\t\t array (\n\t\t\t\t 0 => \n\t\t\t\t array (\n\t\t\t\t 'title' => '',\n\t\t\t\t 'text' => '[rev_slider alias=\"one-page-slider\"]',\n\t\t\t\t 'filter' => false,\n\t\t\t\t 'panels_info' => \n\t\t\t\t array (\n\t\t\t\t 'class' => 'WP_Widget_Text',\n\t\t\t\t 'raw' => false,\n\t\t\t\t 'grid' => 0,\n\t\t\t\t 'cell' => 0,\n\t\t\t\t 'id' => 0,\n\t\t\t\t 'style' => \n\t\t\t\t array (\n\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 1 => \n\t\t\t\t array (\n\t\t\t\t 'type' => 'visual',\n\t\t\t\t 'title' => '',\n\t\t\t\t 'text' => '<h2 style=\"text-align: center;\">MY <span style=\"color: #bb9f7c;\">WORK</span></h2>',\n\t\t\t\t 'filter' => '1',\n\t\t\t\t 'panels_info' => \n\t\t\t\t array (\n\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t 'raw' => false,\n\t\t\t\t 'grid' => 1,\n\t\t\t\t 'cell' => 0,\n\t\t\t\t 'id' => 1,\n\t\t\t\t 'style' => \n\t\t\t\t array (\n\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t 'font_color' => '#ffffff',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 2 => \n\t\t\t\t array (\n\t\t\t\t 'title' => '',\n\t\t\t\t 'show_filter' => 'yes',\n\t\t\t\t 'filter_alignment' => 'center',\n\t\t\t\t 'count' => '8',\n\t\t\t\t 'thumb_proportions' => 'square',\n\t\t\t\t 'layout' => 'rows with gutter',\n\t\t\t\t 'columns' => '4',\n\t\t\t\t 'skills' => \n\t\t\t\t array (\n\t\t\t\t 'illustration' => 'illustration',\n\t\t\t\t 'mobile' => 'mobile',\n\t\t\t\t 'motion' => '',\n\t\t\t\t 'photography' => 'photography',\n\t\t\t\t 'web' => 'web',\n\t\t\t\t ),\n\t\t\t\t 'orderby' => 'date',\n\t\t\t\t 'order' => 'DESC',\n\t\t\t\t 'hover_effect' => 'effect-1',\n\t\t\t\t 'hover_color' => '#bb9f7c',\n\t\t\t\t 'hover_text_color' => '',\n\t\t\t\t 'show_skills' => 'no',\n\t\t\t\t 'show_load_more' => 'no',\n\t\t\t\t 'enable_lightbox' => 'yes',\n\t\t\t\t 'panels_info' => \n\t\t\t\t array (\n\t\t\t\t 'class' => 'TTrust_Portfolio',\n\t\t\t\t 'raw' => false,\n\t\t\t\t 'grid' => 1,\n\t\t\t\t 'cell' => 0,\n\t\t\t\t 'id' => 2,\n\t\t\t\t 'style' => \n\t\t\t\t array (\n\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t 'font_color' => '#ffffff',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 3 => \n\t\t\t\t array (\n\t\t\t\t 'type' => 'visual',\n\t\t\t\t 'title' => '',\n\t\t\t\t 'text' => '<h2><span style=\"color: #1f1f1f;\">ABOUT <span style=\"color: #bb9f7c;\">ME</span></span></h2><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc malesuada lectus libero, ac sagittis nisi dapibus ac. Nunc dictum imperdiet lorem. Quisque vehicula nec arcu nec rutrum. Duis sit amet mattis magna. In felis dui, elementum in tortor dictum, eleifend commodo purus. Nulla eget turpis purus. In ultrices est a pellentesque rutrum. Suspendisse egestas pharetra eros a commodo. Aenean ac ante id odio cursus tempor. Vivamus sit amet ante massa.</p>',\n\t\t\t\t 'filter' => '1',\n\t\t\t\t 'panels_info' => \n\t\t\t\t array (\n\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t 'raw' => false,\n\t\t\t\t 'grid' => 2,\n\t\t\t\t 'cell' => 0,\n\t\t\t\t 'id' => 3,\n\t\t\t\t 'style' => \n\t\t\t\t array (\n\t\t\t\t 'padding' => '0px',\n\t\t\t\t 'background_display' => 'center',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 4 => \n\t\t\t\t array (\n\t\t\t\t 'networks' => \n\t\t\t\t array (\n\t\t\t\t 0 => \n\t\t\t\t array (\n\t\t\t\t 'name' => 'twitter',\n\t\t\t\t 'url' => 'https://twitter.com/',\n\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t 'button_color' => '#78bdf1',\n\t\t\t\t ),\n\t\t\t\t 1 => \n\t\t\t\t array (\n\t\t\t\t 'name' => 'dribbble',\n\t\t\t\t 'url' => 'https://dribbble.com/',\n\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t 'button_color' => '#f26798',\n\t\t\t\t ),\n\t\t\t\t 2 => \n\t\t\t\t array (\n\t\t\t\t 'name' => 'envelope',\n\t\t\t\t 'url' => 'mailto:fakeemail@themetrust.com',\n\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t 'button_color' => '#99c4e6',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 'design' => \n\t\t\t\t array (\n\t\t\t\t 'new_window' => true,\n\t\t\t\t 'theme' => 'wire',\n\t\t\t\t 'hover' => true,\n\t\t\t\t 'icon_size' => '1',\n\t\t\t\t 'rounding' => '0.5',\n\t\t\t\t 'padding' => '1',\n\t\t\t\t 'align' => 'left',\n\t\t\t\t 'margin' => '0.1',\n\t\t\t\t ),\n\t\t\t\t 'panels_info' => \n\t\t\t\t array (\n\t\t\t\t 'class' => 'SiteOrigin_Widget_SocialMediaButtons_Widget',\n\t\t\t\t 'raw' => false,\n\t\t\t\t 'grid' => 2,\n\t\t\t\t 'cell' => 0,\n\t\t\t\t 'id' => 4,\n\t\t\t\t 'style' => \n\t\t\t\t array (\n\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 5 => \n\t\t\t\t array (\n\t\t\t\t 'type' => 'visual',\n\t\t\t\t 'title' => '',\n\t\t\t\t 'text' => '<h2 style=\"text-align: center;\"><span style=\"color: #1f1f1f;\">MY <span style=\"color: #bb9f7c;\">CLIENTS</span></span></h2><p> </p>',\n\t\t\t\t 'filter' => '1',\n\t\t\t\t 'panels_info' => \n\t\t\t\t array (\n\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t 'raw' => false,\n\t\t\t\t 'grid' => 3,\n\t\t\t\t 'cell' => 0,\n\t\t\t\t 'id' => 5,\n\t\t\t\t 'style' => \n\t\t\t\t array (\n\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 6 => \n\t\t\t\t array (\n\t\t\t\t 'title' => '',\n\t\t\t\t 'count' => '3',\n\t\t\t\t 'layout' => 'grid',\n\t\t\t\t 'columns' => '3',\n\t\t\t\t 'alignment' => 'center',\n\t\t\t\t 'order' => 'rand',\n\t\t\t\t 'carousel-nav-color' => '',\n\t\t\t\t 'panels_info' => \n\t\t\t\t array (\n\t\t\t\t 'class' => 'TTrust_Testimonials',\n\t\t\t\t 'grid' => 3,\n\t\t\t\t 'cell' => 0,\n\t\t\t\t 'id' => 6,\n\t\t\t\t 'style' => \n\t\t\t\t array (\n\t\t\t\t 'background_image_attachment' => false,\n\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 7 => \n\t\t\t\t array (\n\t\t\t\t 'type' => 'visual',\n\t\t\t\t 'title' => '',\n\t\t\t\t 'text' => '<p><img class=\"aligncenter size-full wp-image-998\" src=\"http://create.themetrust.com/wp-content/uploads/2015/08/company_logos.png\" alt=\"company_logos\" width=\"3000\" height=\"300\" /></p>',\n\t\t\t\t 'filter' => '',\n\t\t\t\t 'panels_info' => \n\t\t\t\t array (\n\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t 'raw' => false,\n\t\t\t\t 'grid' => 4,\n\t\t\t\t 'cell' => 0,\n\t\t\t\t 'id' => 7,\n\t\t\t\t 'style' => \n\t\t\t\t array (\n\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 8 => \n\t\t\t\t array (\n\t\t\t\t 'map_center' => '350 5th Ave, New York, NY 10118',\n\t\t\t\t 'settings' => \n\t\t\t\t array (\n\t\t\t\t 'map_type' => 'interactive',\n\t\t\t\t 'width' => '640',\n\t\t\t\t 'height' => '680',\n\t\t\t\t 'zoom' => 12,\n\t\t\t\t 'scroll_zoom' => true,\n\t\t\t\t 'draggable' => true,\n\t\t\t\t ),\n\t\t\t\t 'markers' => \n\t\t\t\t array (\n\t\t\t\t 'marker_at_center' => true,\n\t\t\t\t 'marker_icon' => 1063,\n\t\t\t\t ),\n\t\t\t\t 'styles' => \n\t\t\t\t array (\n\t\t\t\t 'style_method' => 'raw_json',\n\t\t\t\t 'styled_map_name' => '',\n\t\t\t\t 'raw_json_map_styles' => '[{\"featureType\":\"landscape\",\"elementType\":\"geometry\",\"stylers\":[{\"hue\":\"#ededed\"},{\"saturation\":-100},{\"lightness\":36},{\"visibility\":\"on\"}]},{\"featureType\":\"road\",\"elementType\":\"labels\",\"stylers\":[{\"hue\":\"#000000\"},{\"saturation\":-100},{\"lightness\":-100},{\"visibility\":\"off\"}]},{\"featureType\":\"poi\",\"elementType\":\"all\",\"stylers\":[{\"hue\":\"#000000\"},{\"saturation\":-100},{\"lightness\":-100},{\"visibility\":\"off\"}]},{\"featureType\":\"road\",\"elementType\":\"geometry\",\"stylers\":[{\"hue\":\"#000000\"},{\"saturation\":-100},{\"lightness\":-100},{\"visibility\":\"simplified\"}]},{\"featureType\":\"administrative\",\"elementType\":\"labels\",\"stylers\":[{\"hue\":\"#000000\"},{\"saturation\":0},{\"lightness\":-100},{\"visibility\":\"off\"}]},{\"featureType\":\"transit\",\"elementType\":\"geometry\",\"stylers\":[{\"hue\":\"#000000\"},{\"saturation\":0},{\"lightness\":-100},{\"visibility\":\"on\"}]},{\"featureType\":\"transit\",\"elementType\":\"labels\",\"stylers\":[{\"hue\":\"#000000\"},{\"saturation\":0},{\"lightness\":-100},{\"visibility\":\"off\"}]},{\"featureType\":\"water\",\"elementType\":\"labels\",\"stylers\":[{\"hue\":\"#000000\"},{\"saturation\":-100},{\"lightness\":-100},{\"visibility\":\"off\"}]},{\"featureType\":\"water\",\"elementType\":\"geometry\",\"stylers\":[{\"hue\":\"#ffffff\"},{\"saturation\":-100},{\"lightness\":100},{\"visibility\":\"on\"}]},{\"featureType\":\"landscape.natural\",\"elementType\":\"all\",\"stylers\":[{\"hue\":\"#e0e0e0\"},{\"saturation\":-100},{\"lightness\":-8},{\"visibility\":\"off\"}]}]',\n\t\t\t\t ),\n\t\t\t\t 'directions' => \n\t\t\t\t array (\n\t\t\t\t 'origin' => '',\n\t\t\t\t 'destination' => '',\n\t\t\t\t 'travel_mode' => 'driving',\n\t\t\t\t ),\n\t\t\t\t 'api_key_section' => \n\t\t\t\t array (\n\t\t\t\t 'api_key' => '',\n\t\t\t\t ),\n\t\t\t\t 'panels_info' => \n\t\t\t\t array (\n\t\t\t\t 'class' => 'SiteOrigin_Widget_GoogleMap_Widget',\n\t\t\t\t 'raw' => false,\n\t\t\t\t 'grid' => 5,\n\t\t\t\t 'cell' => 0,\n\t\t\t\t 'id' => 8,\n\t\t\t\t 'style' => \n\t\t\t\t array (\n\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 9 => \n\t\t\t\t array (\n\t\t\t\t 'type' => 'visual',\n\t\t\t\t 'title' => '',\n\t\t\t\t 'text' => '<h2><span style=\"color: #ffffff;\">CONTACT</span><span style=\"color: #1f1f1f;\"> <span style=\"color: #bb9f7c;\">ME</span></span></h2><p>Interdum et malesuada fames ac ante ipsum primis in faucibus. Vestibulum viverra, eros nec luctus facilisis, nisi nisl tempus purus, vitae congue enim mi pulvinar orci. Quisque diam ex, faucibus sed tortor a, dignissim consequat risus.</p><p>1234 Main St.<br /> New York, NY 10021</p><p>T: 555-456-7892 <em>New York Office<br /> E: contact@create-digital.com</em></p>',\n\t\t\t\t 'filter' => '1',\n\t\t\t\t 'panels_info' => \n\t\t\t\t array (\n\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t 'raw' => false,\n\t\t\t\t 'grid' => 5,\n\t\t\t\t 'cell' => 1,\n\t\t\t\t 'id' => 9,\n\t\t\t\t 'style' => \n\t\t\t\t array (\n\t\t\t\t 'padding' => '60px',\n\t\t\t\t 'background' => '#282828',\n\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t 'font_color' => '#bababa',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 'grids' => \n\t\t\t\t array (\n\t\t\t\t 0 => \n\t\t\t\t array (\n\t\t\t\t 'cells' => 1,\n\t\t\t\t 'style' => \n\t\t\t\t array (\n\t\t\t\t 'bottom_margin' => '0px',\n\t\t\t\t 'row_stretch' => 'full-stretched',\n\t\t\t\t 'custom_row_id' => 'hello',\n\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 1 => \n\t\t\t\t array (\n\t\t\t\t 'cells' => 1,\n\t\t\t\t 'style' => \n\t\t\t\t array (\n\t\t\t\t 'bottom_margin' => '0px',\n\t\t\t\t 'row_stretch' => 'full',\n\t\t\t\t 'background' => '#282828',\n\t\t\t\t 'custom_row_id' => 'my-work',\n\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t 'padding_top' => '70px',\n\t\t\t\t 'padding_bottom' => '70px',\n\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 2 => \n\t\t\t\t array (\n\t\t\t\t 'cells' => 2,\n\t\t\t\t 'style' => \n\t\t\t\t array (\n\t\t\t\t 'row_stretch' => 'full',\n\t\t\t\t 'custom_row_id' => 'about-me',\n\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t 'padding_top' => '150px',\n\t\t\t\t 'padding_bottom' => '150px',\n\t\t\t\t 'background_image' => 996,\n\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t 'background_image_style' => 'parallax',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 3 => \n\t\t\t\t array (\n\t\t\t\t 'cells' => 1,\n\t\t\t\t 'style' => \n\t\t\t\t array (\n\t\t\t\t 'row_stretch' => 'full',\n\t\t\t\t 'custom_row_id' => 'testimonials',\n\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t 'padding_top' => '60px',\n\t\t\t\t 'padding_bottom' => '50px',\n\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 4 => \n\t\t\t\t array (\n\t\t\t\t 'cells' => 1,\n\t\t\t\t 'style' => \n\t\t\t\t array (\n\t\t\t\t 'bottom_margin' => '0px',\n\t\t\t\t 'row_stretch' => 'full',\n\t\t\t\t 'background' => '#bb9f7c',\n\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t 'padding_top' => '40px',\n\t\t\t\t 'padding_bottom' => '10px',\n\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 5 => \n\t\t\t\t array (\n\t\t\t\t 'cells' => 2,\n\t\t\t\t 'style' => \n\t\t\t\t array (\n\t\t\t\t 'gutter' => '0px',\n\t\t\t\t 'row_stretch' => 'full-stretched',\n\t\t\t\t 'custom_row_id' => 'contact-me',\n\t\t\t\t 'equal_column_height' => 'yes',\n\t\t\t\t 'padding_top' => '0px',\n\t\t\t\t 'padding_bottom' => '0px',\n\t\t\t\t 'background_image_position' => 'center bottom',\n\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t ),\n\t\t\t\t 'grid_cells' => \n\t\t\t\t array (\n\t\t\t\t 0 => \n\t\t\t\t array (\n\t\t\t\t 'grid' => 0,\n\t\t\t\t 'weight' => 1,\n\t\t\t\t ),\n\t\t\t\t 1 => \n\t\t\t\t array (\n\t\t\t\t 'grid' => 1,\n\t\t\t\t 'weight' => 1,\n\t\t\t\t ),\n\t\t\t\t 2 => \n\t\t\t\t array (\n\t\t\t\t 'grid' => 2,\n\t\t\t\t 'weight' => 0.49622299651568002598622797449934296309947967529296875,\n\t\t\t\t ),\n\t\t\t\t 3 => \n\t\t\t\t array (\n\t\t\t\t 'grid' => 2,\n\t\t\t\t 'weight' => 0.50377700348431997401377202550065703690052032470703125,\n\t\t\t\t ),\n\t\t\t\t 4 => \n\t\t\t\t array (\n\t\t\t\t 'grid' => 3,\n\t\t\t\t 'weight' => 1,\n\t\t\t\t ),\n\t\t\t\t 5 => \n\t\t\t\t array (\n\t\t\t\t 'grid' => 4,\n\t\t\t\t 'weight' => 1,\n\t\t\t\t ),\n\t\t\t\t 6 => \n\t\t\t\t array (\n\t\t\t\t 'grid' => 5,\n\t\t\t\t 'weight' => 0.5,\n\t\t\t\t ),\n\t\t\t\t 7 => \n\t\t\t\t array (\n\t\t\t\t 'grid' => 5,\n\t\t\t\t 'weight' => 0.5,\n\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\t$layouts['home-portfolio'] = array(\n\t\t\t\t\t'name' => __('Home: Portfolio', 'create'),\n\t\t\t\t\t'description' => __('Layout for demo Home: Portfolio page.', 'create'),\n\t\t\t 'widgets' => \n\t\t\t\t\t array (\n\t\t\t\t\t 0 => \n\t\t\t\t\t array (\n\t\t\t\t\t 'title' => '',\n\t\t\t\t\t 'text' => '[rev_slider alias=\"home-portfolio\"]',\n\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t array (\n\t\t\t\t\t 'class' => 'WP_Widget_Text',\n\t\t\t\t\t 'grid' => 0,\n\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t 'id' => 0,\n\t\t\t\t\t 'style' => \n\t\t\t\t\t array (\n\t\t\t\t\t 'background_image_attachment' => false,\n\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t ),\n\t\t\t\t\t ),\n\t\t\t\t\t 'filter' => false,\n\t\t\t\t\t ),\n\t\t\t\t\t 1 => \n\t\t\t\t\t array (\n\t\t\t\t\t 'title' => '',\n\t\t\t\t\t 'show_filter' => 'yes',\n\t\t\t\t\t 'filter_alignment' => 'center',\n\t\t\t\t\t 'count' => '9',\n\t\t\t\t\t 'thumb_proportions' => 'square',\n\t\t\t\t\t 'layout' => 'rows with gutter',\n\t\t\t\t\t 'columns' => '3',\n\t\t\t\t\t 'skills' => \n\t\t\t\t\t array (\n\t\t\t\t\t 'illustration' => '',\n\t\t\t\t\t 'mobile' => '',\n\t\t\t\t\t 'motion' => '',\n\t\t\t\t\t 'photography' => '',\n\t\t\t\t\t 'web' => '',\n\t\t\t\t\t ),\n\t\t\t\t\t 'orderby' => 'menu_order',\n\t\t\t\t\t 'order' => 'DESC',\n\t\t\t\t\t 'hover_effect' => 'effect-1',\n\t\t\t\t\t 'hover_color' => '',\n\t\t\t\t\t 'hover_text_color' => '',\n\t\t\t\t\t 'show_skills' => 'yes',\n\t\t\t\t\t 'show_load_more' => 'yes',\n\t\t\t\t\t 'enable_lightbox' => 'no',\n\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t array (\n\t\t\t\t\t 'class' => 'TTrust_Portfolio',\n\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t 'id' => 1,\n\t\t\t\t\t 'style' => \n\t\t\t\t\t array (\n\t\t\t\t\t 'background_display' => 'tile',\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\t 'grids' => \n\t\t\t\t\t array (\n\t\t\t\t\t 0 => \n\t\t\t\t\t array (\n\t\t\t\t\t 'cells' => 1,\n\t\t\t\t\t 'style' => \n\t\t\t\t\t array (\n\t\t\t\t\t 'bottom_margin' => '0px',\n\t\t\t\t\t 'row_stretch' => 'full-stretched',\n\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t ),\n\t\t\t\t\t ),\n\t\t\t\t\t 1 => \n\t\t\t\t\t array (\n\t\t\t\t\t 'cells' => 1,\n\t\t\t\t\t 'style' => \n\t\t\t\t\t array (\n\t\t\t\t\t 'row_stretch' => 'full',\n\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t 'padding_top' => '30px',\n\t\t\t\t\t 'padding_bottom' => '40px',\n\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t ),\n\t\t\t\t\t ),\n\t\t\t\t\t ),\n\t\t\t\t\t 'grid_cells' => \n\t\t\t\t\t array (\n\t\t\t\t\t 0 => \n\t\t\t\t\t array (\n\t\t\t\t\t 'grid' => 0,\n\t\t\t\t\t 'weight' => 1,\n\t\t\t\t\t ),\n\t\t\t\t\t 1 => \n\t\t\t\t\t array (\n\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t 'weight' => 1,\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\t$layouts['home-shop'] = array(\n\t\t\t\t\t\t'name' => __('Home: Shop', 'create'),\n\t\t\t\t\t\t'description' => __('Layout for demo Home: Shop page.', 'create'),\n\t\t\t\t 'widgets' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t 'text' => '[rev_slider alias=\"shop-slider\"]',\n\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'class' => 'WP_Widget_Text',\n\t\t\t\t\t\t 'grid' => 0,\n\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t 'id' => 0,\n\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'background_image_attachment' => false,\n\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 'filter' => false,\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'type' => 'html',\n\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t 'text' => '<span style=\"font-size: 36px;\"><strong>Watches</strong></span>\n\n\t\t\t\t\t\t<span style=\"color: #cccccc;\">Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet.</span>\n\n\t\t\t\t\t\t<a href=\\'http://create.themetrust.com/product-category/watches/\\' class=\\'tt-button\\' style=\"background: #bb9f7c;\">SHOP WATCHES</a>',\n\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t 'id' => 1,\n\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'padding' => '50px',\n\t\t\t\t\t\t 'background' => '#a0a0a0',\n\t\t\t\t\t\t 'background_image_attachment' => 844,\n\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t 'font_color' => '#ffffff',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'type' => 'html',\n\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t 'text' => '<span style=\"font-size: 36px;\"><strong>Bags</strong></span>\n\n\t\t\t\t\t\t<span style=\"color: #cccccc;\">Lorem ipsum dolor sit amet. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. </span>\n\n\t\t\t\t\t\t<a href=\\'http://create.themetrust.com/product-category/bags/\\' class=\\'tt-button\\' style=\"background: #bb9f7c;\">SHOP BAGS</a>',\n\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t 'id' => 2,\n\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'padding' => '50px',\n\t\t\t\t\t\t 'background' => '#444444',\n\t\t\t\t\t\t 'background_image_attachment' => 842,\n\t\t\t\t\t\t 'background_display' => 'cover',\n\t\t\t\t\t\t 'font_color' => '#ffffff',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t 'text' => '<p><span style=\"font-size: 36px;\"><strong>Shoes</strong></span></p><p><span style=\"color: #999999;\">Imperdiet doming id quod mazim placerat facer am liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. </span></p><p><a class=\"tt-button\" style=\"background: #bb9f7c;\" href=\"http://create.themetrust.com/product-category/shoes/\">SHOP SHOES</a></p>',\n\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t 'cell' => 2,\n\t\t\t\t\t\t 'id' => 3,\n\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'padding' => '50px',\n\t\t\t\t\t\t 'background' => '#515151',\n\t\t\t\t\t\t 'background_image_attachment' => 840,\n\t\t\t\t\t\t 'background_display' => 'cover',\n\t\t\t\t\t\t 'font_color' => '#ffffff',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 4 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'headline' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'text' => 'Featured Items from Our Shop',\n\t\t\t\t\t\t 'font' => 'default',\n\t\t\t\t\t\t 'color' => '#000000',\n\t\t\t\t\t\t 'align' => 'center',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 'sub_headline' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'text' => 'Lorem ipsum dolor sit amet, consec tetuer adipis elit, aliquam eget nibh etlibura. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.',\n\t\t\t\t\t\t 'font' => 'default',\n\t\t\t\t\t\t 'color' => '#7c7c7c',\n\t\t\t\t\t\t 'align' => 'center',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 'divider' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'style' => 'solid',\n\t\t\t\t\t\t 'weight' => 'thin',\n\t\t\t\t\t\t 'color' => '#bb9f7c',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_Headline_Widget',\n\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t 'grid' => 2,\n\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t 'id' => 4,\n\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 5 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t 'count' => '4',\n\t\t\t\t\t\t 'layout' => 'grid',\n\t\t\t\t\t\t 'columns' => '4',\n\t\t\t\t\t\t 'orderby' => 'date',\n\t\t\t\t\t\t 'order' => 'DESC',\n\t\t\t\t\t\t 'categories' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'bags' => '',\n\t\t\t\t\t\t 'jewelry' => '',\n\t\t\t\t\t\t 'notebooks' => '',\n\t\t\t\t\t\t 'shoes' => '',\n\t\t\t\t\t\t 'watches' => '',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 'show_featured' => 'no',\n\t\t\t\t\t\t 'alignment' => 'left',\n\t\t\t\t\t\t 'carousel-nav-color' => '',\n\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'class' => 'TTrust_Products',\n\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t 'grid' => 3,\n\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t 'id' => 5,\n\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 6 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'title' => 'Newsletter',\n\t\t\t\t\t\t 'sub_title' => 'Lorem ipsum dolor sit amet, consec tetuer adipis elit, aliquam eget nibh etlibura.',\n\t\t\t\t\t\t 'design' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'background_color' => '#bb9f7c',\n\t\t\t\t\t\t 'border_color' => '',\n\t\t\t\t\t\t 'button_align' => 'right',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 'button' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'text' => 'SIGN UP',\n\t\t\t\t\t\t 'url' => '#',\n\t\t\t\t\t\t 'new_window' => '',\n\t\t\t\t\t\t 'button_icon' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'icon_selected' => 'fontawesome-envelope-o',\n\t\t\t\t\t\t 'icon_color' => '#bb9f7c',\n\t\t\t\t\t\t 'icon' => '',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 'design' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'theme' => 'flat',\n\t\t\t\t\t\t 'button_color' => '#ffffff',\n\t\t\t\t\t\t 'text_color' => '#bb9f7c',\n\t\t\t\t\t\t 'hover' => true,\n\t\t\t\t\t\t 'font_size' => '1',\n\t\t\t\t\t\t 'rounding' => '0.25',\n\t\t\t\t\t\t 'padding' => '1',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 'attributes' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'id' => '',\n\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t 'onclick' => '',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_Cta_Widget',\n\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t 'grid' => 4,\n\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t 'id' => 6,\n\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t 'font_color' => '#ffffff',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 'grids' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'cells' => 1,\n\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'row_stretch' => 'full-stretched',\n\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'cells' => 3,\n\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'bottom_margin' => '50px',\n\t\t\t\t\t\t 'gutter' => '30px',\n\t\t\t\t\t\t 'equal_column_height' => 'yes',\n\t\t\t\t\t\t 'padding_top' => '30px',\n\t\t\t\t\t\t 'padding_bottom' => '50px',\n\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'cells' => 3,\n\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'bottom_margin' => '60px',\n\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'cells' => 1,\n\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'bottom_margin' => '50px',\n\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 4 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'cells' => 1,\n\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'bottom_margin' => '80px',\n\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t 'padding_bottom' => '80px',\n\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 'grid_cells' => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'grid' => 0,\n\t\t\t\t\t\t 'weight' => 1,\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 4 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'grid' => 2,\n\t\t\t\t\t\t 'weight' => 0.25020678246485006379629112416296266019344329833984375,\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 5 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'grid' => 2,\n\t\t\t\t\t\t 'weight' => 0.50020678246484007178906949775409884750843048095703125,\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 6 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'grid' => 2,\n\t\t\t\t\t\t 'weight' => 0.249586435070310030948093071856419555842876434326171875,\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 7 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'grid' => 3,\n\t\t\t\t\t\t 'weight' => 1,\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t 8 => \n\t\t\t\t\t\t array (\n\t\t\t\t\t\t 'grid' => 4,\n\t\t\t\t\t\t 'weight' => 1,\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t ),\n\t\t\t\t\t\t);\n\t\t\t\t\n\t\t\t\t\t\t$layouts['about-us'] = array(\n\t\t\t\t\t\t\t'name' => __('About Us', 'create'),\n\t\t\t\t\t\t\t'description' => __('Layout for demo About Us page.', 'create'),\n\t\t\t\t\t 'widgets' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t 'text' => '<h2 style=\"text-align: right;\">WE <span style=\"color: #ba9e78;\">CREATE</span> AMAZING THINGS</h2><p style=\"text-align: right;\"><span style=\"font-size: 21px; color: #737373;\">The Create WordPress theme will change the way you build websites.</span></p>',\n\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t 'grid' => 0,\n\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t 'id' => 0,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t 'font_color' => '#ffffff',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t 'text' => '<h3 style=\"text-align: center;\"><span style=\"color: #242424;\">ABOUT</span></h3>',\n\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t\t 'id' => 1,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t 'text' => '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec quis molestie leo, sed efficitur dui. Nulla cursus turpis quis mattis rutrum. Suspendisse lobortis pulvinar mauris eget placerat. Suspendisse in dolor vitae risus maximus feugiat quis nec nisi. Phasellus ut auctor ante, scelerisque scelerisque eros. Fusce vitae orci eu nisl pellentesque faucibus lacinia sed erat. Nunc consequat erat sit amet felis gravida venenatis. Duis in neque in mi consequat aliquet in id eros. Aliquam vel lorem ut tellus eleifend luctus.</p>',\n\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t\t 'id' => 2,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'features' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'container_color' => '#ffffff',\n\t\t\t\t\t\t\t 'icon' => 'fontawesome-desktop',\n\t\t\t\t\t\t\t 'icon_color' => '#a58c6a',\n\t\t\t\t\t\t\t 'icon_image' => 0,\n\t\t\t\t\t\t\t 'title' => 'Web Design',\n\t\t\t\t\t\t\t 'text' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec quis molestie leo, sed efficitur dui. Nulla cursus turpis quis mattis rutrum. Suspendisse lobortis pulvinar mauris eget placerat.',\n\t\t\t\t\t\t\t 'more_text' => '',\n\t\t\t\t\t\t\t 'more_url' => '',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'container_color' => '#ffffff',\n\t\t\t\t\t\t\t 'icon' => 'fontawesome-tablet',\n\t\t\t\t\t\t\t 'icon_color' => '#a58c6a',\n\t\t\t\t\t\t\t 'icon_image' => 0,\n\t\t\t\t\t\t\t 'title' => 'Mobile',\n\t\t\t\t\t\t\t 'text' => 'Donec sed dolor maximus nunc sagittis vehicula. Phasellus at ornare arcu, eu elementum risus. Mauris varius semper purus, non eleifend quam convallis ac. Vivamus sodales justo id sapien aliquam tempus. ',\n\t\t\t\t\t\t\t 'more_text' => '',\n\t\t\t\t\t\t\t 'more_url' => '',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'container_color' => '#ffffff',\n\t\t\t\t\t\t\t 'icon' => 'fontawesome-camera',\n\t\t\t\t\t\t\t 'icon_color' => '#a58c6a',\n\t\t\t\t\t\t\t 'icon_image' => 0,\n\t\t\t\t\t\t\t 'title' => 'Photography',\n\t\t\t\t\t\t\t 'text' => 'Nam sit amet faucibus sapien. Vivamus quis mollis orci, eu sollicitudin urna. Donec turpis justo, iaculis sit amet lorem eu, rhoncus cursus ipsum. Ut laoreet accumsan arcu consequat consectetur.',\n\t\t\t\t\t\t\t 'more_text' => '',\n\t\t\t\t\t\t\t 'more_url' => '',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 'container_shape' => 'rounded-hex',\n\t\t\t\t\t\t\t 'container_size' => 84,\n\t\t\t\t\t\t\t 'icon_size' => 24,\n\t\t\t\t\t\t\t 'per_row' => 3,\n\t\t\t\t\t\t\t 'responsive' => true,\n\t\t\t\t\t\t\t 'title_link' => false,\n\t\t\t\t\t\t\t 'icon_link' => false,\n\t\t\t\t\t\t\t 'new_window' => false,\n\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_Features_Widget',\n\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t 'grid' => 2,\n\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t 'id' => 3,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t 'font_color' => '#ffffff',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 4 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t 'text' => '<h3 style=\"text-align: center;\"><span style=\"color: #242424;\">OUR TEAM</span></h3><p style=\"text-align: center;\">Donec quis molestie leo, sed efficitur dui. Nulla cursus turpis quis mattis rutrum. Suspendisse lobortis pulvinar mauris eget placerat. Suspendisse in dolor vitae risus maximus feugiat quis nec nisi.</p><p style=\"text-align: center;\"> </p>',\n\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t 'grid' => 3,\n\t\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t\t 'id' => 4,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 5 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'image_fallback' => '',\n\t\t\t\t\t\t\t 'image' => 261,\n\t\t\t\t\t\t\t 'size' => 'full',\n\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t 'alt' => '',\n\t\t\t\t\t\t\t 'url' => '',\n\t\t\t\t\t\t\t 'bound' => true,\n\t\t\t\t\t\t\t 'new_window' => false,\n\t\t\t\t\t\t\t 'full_width' => false,\n\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_Image_Widget',\n\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t 'grid' => 4,\n\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t 'id' => 5,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 6 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t 'text' => '<p class=\"member-role\"><span style=\"color: #242424;\"><strong>Frank Thompson</strong></span><br />CEO</p><p class=\"member-role\">Suspendisse lobortis pulvinar mauris eget placerat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec quis molestie leo, sed efficitur dui. Nulla cursus turpis quis mattis rutrum. </p>',\n\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t 'grid' => 4,\n\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t 'id' => 6,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 7 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'networks' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'name' => 'twitter',\n\t\t\t\t\t\t\t 'url' => 'https://twitter.com/',\n\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t 'button_color' => '#78bdf1',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'name' => 'linkedin',\n\t\t\t\t\t\t\t 'url' => 'https://www.linkedin.com/',\n\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t 'button_color' => '#0177b4',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'name' => 'google-plus',\n\t\t\t\t\t\t\t 'url' => 'https://plus.google.com/',\n\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t 'button_color' => '#dd4b39',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'name' => 'envelope',\n\t\t\t\t\t\t\t 'url' => 'mailto:',\n\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t 'button_color' => '#99c4e6',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 'design' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'new_window' => true,\n\t\t\t\t\t\t\t 'theme' => 'flat',\n\t\t\t\t\t\t\t 'hover' => true,\n\t\t\t\t\t\t\t 'icon_size' => '1',\n\t\t\t\t\t\t\t 'rounding' => '0.25',\n\t\t\t\t\t\t\t 'padding' => '0.5',\n\t\t\t\t\t\t\t 'align' => 'left',\n\t\t\t\t\t\t\t 'margin' => '0.1',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_SocialMediaButtons_Widget',\n\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t 'grid' => 4,\n\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t 'id' => 7,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'padding' => '0px',\n\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 8 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'image_fallback' => '',\n\t\t\t\t\t\t\t 'image' => 246,\n\t\t\t\t\t\t\t 'size' => 'full',\n\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t 'alt' => '',\n\t\t\t\t\t\t\t 'url' => '',\n\t\t\t\t\t\t\t 'bound' => true,\n\t\t\t\t\t\t\t 'new_window' => false,\n\t\t\t\t\t\t\t 'full_width' => false,\n\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_Image_Widget',\n\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t 'grid' => 4,\n\t\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t\t 'id' => 8,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 9 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t 'text' => '<p class=\"member-role\"><span style=\"color: #242424;\"><strong>Abby Smith</strong></span><br />Lead Designer</p><p class=\"member-role\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec quis molestie leo, sed efficitur dui. Nulla cursus turpis quis mattis rutrum. Suspendisse lobortis pulvinar mauris eget placerat.</p>',\n\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t 'grid' => 4,\n\t\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t\t 'id' => 9,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 10 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'networks' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'name' => 'twitter',\n\t\t\t\t\t\t\t 'url' => 'https://twitter.com/',\n\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t 'button_color' => '#78bdf1',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'name' => 'linkedin',\n\t\t\t\t\t\t\t 'url' => 'https://www.linkedin.com/',\n\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t 'button_color' => '#0177b4',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'name' => 'google-plus',\n\t\t\t\t\t\t\t 'url' => 'https://plus.google.com/',\n\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t 'button_color' => '#dd4b39',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'name' => 'envelope',\n\t\t\t\t\t\t\t 'url' => 'mailto:',\n\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t 'button_color' => '#99c4e6',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 'design' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'new_window' => true,\n\t\t\t\t\t\t\t 'theme' => 'flat',\n\t\t\t\t\t\t\t 'hover' => true,\n\t\t\t\t\t\t\t 'icon_size' => '1',\n\t\t\t\t\t\t\t 'rounding' => '0.25',\n\t\t\t\t\t\t\t 'padding' => '0.5',\n\t\t\t\t\t\t\t 'align' => 'left',\n\t\t\t\t\t\t\t 'margin' => '0.1',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_SocialMediaButtons_Widget',\n\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t 'grid' => 4,\n\t\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t\t 'id' => 10,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'padding' => '0px',\n\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 11 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'image_fallback' => '',\n\t\t\t\t\t\t\t 'image' => 262,\n\t\t\t\t\t\t\t 'size' => 'full',\n\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t 'alt' => '',\n\t\t\t\t\t\t\t 'url' => '',\n\t\t\t\t\t\t\t 'bound' => true,\n\t\t\t\t\t\t\t 'new_window' => false,\n\t\t\t\t\t\t\t 'full_width' => false,\n\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_Image_Widget',\n\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t 'grid' => 4,\n\t\t\t\t\t\t\t 'cell' => 2,\n\t\t\t\t\t\t\t 'id' => 11,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 12 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t 'text' => '<p class=\"member-role\"><span style=\"color: #242424;\"><strong>Brian Carson</strong></span><br />Lead Developer</p><p class=\"member-role\">Suspendisse in dolor vitae risus maximus feugiat quis nec nisi. Nulla cursus turpis quis mattis rutrum. Suspendisse lobortis pulvinar mauris eget placerat.</p>',\n\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t 'grid' => 4,\n\t\t\t\t\t\t\t 'cell' => 2,\n\t\t\t\t\t\t\t 'id' => 12,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 13 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'networks' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'name' => 'twitter',\n\t\t\t\t\t\t\t 'url' => 'https://twitter.com/',\n\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t 'button_color' => '#78bdf1',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'name' => 'linkedin',\n\t\t\t\t\t\t\t 'url' => 'https://www.linkedin.com/',\n\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t 'button_color' => '#0177b4',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'name' => 'google-plus',\n\t\t\t\t\t\t\t 'url' => 'https://plus.google.com/',\n\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t 'button_color' => '#dd4b39',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'name' => 'envelope',\n\t\t\t\t\t\t\t 'url' => 'mailto:',\n\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t 'button_color' => '#99c4e6',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 'design' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'new_window' => true,\n\t\t\t\t\t\t\t 'theme' => 'flat',\n\t\t\t\t\t\t\t 'hover' => true,\n\t\t\t\t\t\t\t 'icon_size' => '1',\n\t\t\t\t\t\t\t 'rounding' => '0.25',\n\t\t\t\t\t\t\t 'padding' => '0.5',\n\t\t\t\t\t\t\t 'align' => 'left',\n\t\t\t\t\t\t\t 'margin' => '0.1',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_SocialMediaButtons_Widget',\n\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t 'grid' => 4,\n\t\t\t\t\t\t\t 'cell' => 2,\n\t\t\t\t\t\t\t 'id' => 13,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'padding' => '0px',\n\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 14 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'map_center' => '350 5th Avenue, New York, NY 10118',\n\t\t\t\t\t\t\t 'settings' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'map_type' => 'interactive',\n\t\t\t\t\t\t\t 'width' => '640',\n\t\t\t\t\t\t\t 'height' => '480',\n\t\t\t\t\t\t\t 'zoom' => 12,\n\t\t\t\t\t\t\t 'scroll_zoom' => true,\n\t\t\t\t\t\t\t 'draggable' => true,\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 'markers' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'marker_at_center' => true,\n\t\t\t\t\t\t\t 'marker_icon' => 1063,\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 'styles' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'style_method' => 'raw_json',\n\t\t\t\t\t\t\t 'styled_map_name' => '',\n\t\t\t\t\t\t\t 'raw_json_map_styles' => '[{\"featureType\":\"all\",\"elementType\":\"all\",\"stylers\":[{\"hue\":\"#ffaa00\"},{\"saturation\":\"-33\"},{\"lightness\":\"10\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"labels.text\",\"stylers\":[{\"visibility\":\"on\"}]}]',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 'directions' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'origin' => '',\n\t\t\t\t\t\t\t 'destination' => '',\n\t\t\t\t\t\t\t 'travel_mode' => 'driving',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 'api_key_section' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'api_key' => '',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_GoogleMap_Widget',\n\t\t\t\t\t\t\t 'grid' => 5,\n\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t 'id' => 14,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'background_image_attachment' => false,\n\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 'grids' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'cells' => 1,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'bottom_margin' => '0px',\n\t\t\t\t\t\t\t 'row_stretch' => 'full',\n\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t 'padding_top' => '250px',\n\t\t\t\t\t\t\t 'padding_bottom' => '250px',\n\t\t\t\t\t\t\t 'background_image' => 264,\n\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t 'background_image_style' => 'parallax',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'cells' => 3,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'bottom_margin' => '0px',\n\t\t\t\t\t\t\t 'row_stretch' => 'full',\n\t\t\t\t\t\t\t 'background' => '#f4f4f4',\n\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t 'padding_top' => '60px',\n\t\t\t\t\t\t\t 'padding_bottom' => '50px',\n\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'cells' => 1,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'bottom_margin' => '0px',\n\t\t\t\t\t\t\t 'row_stretch' => 'full',\n\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t 'padding_top' => '70px',\n\t\t\t\t\t\t\t 'padding_bottom' => '50px',\n\t\t\t\t\t\t\t 'background_image' => 302,\n\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t 'background_image_style' => 'parallax',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'cells' => 3,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'bottom_margin' => '0px',\n\t\t\t\t\t\t\t 'row_stretch' => 'full',\n\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t 'padding_top' => '50px',\n\t\t\t\t\t\t\t 'padding_bottom' => '0px',\n\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 4 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'cells' => 3,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'bottom_margin' => '50px',\n\t\t\t\t\t\t\t 'gutter' => '30px',\n\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t 'padding_top' => '0px',\n\t\t\t\t\t\t\t 'padding_bottom' => '0px',\n\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 5 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'cells' => 1,\n\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'row_stretch' => 'full-stretched',\n\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 'grid_cells' => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'grid' => 0,\n\t\t\t\t\t\t\t 'weight' => 1,\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t 'weight' => 0.2002534854245900108882239010199555195868015289306640625,\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t 'weight' => 0.5994930291508200337347034292179159820079803466796875,\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t 'weight' => 0.2002534854245900108882239010199555195868015289306640625,\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 4 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'grid' => 2,\n\t\t\t\t\t\t\t 'weight' => 1,\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 5 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'grid' => 3,\n\t\t\t\t\t\t\t 'weight' => 0.2002534854245900108882239010199555195868015289306640625,\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 6 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'grid' => 3,\n\t\t\t\t\t\t\t 'weight' => 0.5994930291508200337347034292179159820079803466796875,\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 7 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'grid' => 3,\n\t\t\t\t\t\t\t 'weight' => 0.2002534854245900108882239010199555195868015289306640625,\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 8 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'grid' => 4,\n\t\t\t\t\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 9 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'grid' => 4,\n\t\t\t\t\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 10 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'grid' => 4,\n\t\t\t\t\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t 11 => \n\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t 'grid' => 5,\n\t\t\t\t\t\t\t 'weight' => 1,\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$layouts['about-us-blocks'] = array(\n\t\t\t\t\t\t\t\t'name' => __('About Us Blocks', 'create'),\n\t\t\t\t\t\t\t\t'description' => __('Layout for demo About Us: Blocks page.', 'create'),\n\t\t\t\t\t\t 'widgets' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t 'text' => '<h1 style=\"text-align: center;\">ABOUT US</h1><p style=\"text-align: center;\"><span style=\"font-size: 21px; color: #737373;\">The Create WordPress theme will change the way you build websites.</span></p>',\n\t\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 0,\n\t\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t\t 'id' => 0,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t 'font_color' => '#0a0a0a',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t 'text' => '<h3>HOW WE WORK</h3><p><span style=\"color: #808080;\">Donec sed dolor maximus nunc sagittis vehicula. Phasellus at ornare arcu, eu elementum risus. Mauris varius semper purus, non eleifend quam convallis ac. Vivamus sodales justo id sapien aliquam tempus.</span></p>',\n\t\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t\t 'id' => 1,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'padding' => '50px',\n\t\t\t\t\t\t\t\t 'background' => '#262626',\n\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t 'font_color' => '#ffffff',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'min_height' => '250',\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'TTrust_Spacer',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t\t\t 'id' => 2,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'background_image_attachment' => 343,\n\t\t\t\t\t\t\t\t 'background_display' => 'cover',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t 'text' => '<h3>OUR PROCESS</h3><p><span style=\"color: #808080;\">Vivamus sodales justo id sapien aliquam tempus. Donec sed dolor maximus nunc sagittis vehicula. Phasellus at ornare arcu, eu elementum risus. Mauris varius semper purus, non eleifend quam convallis ac. </span></p>',\n\t\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t\t 'cell' => 2,\n\t\t\t\t\t\t\t\t 'id' => 3,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'padding' => '50px',\n\t\t\t\t\t\t\t\t 'background' => '#262626',\n\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t 'font_color' => '#ffffff',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 4 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'min_height' => '250',\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'TTrust_Spacer',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 2,\n\t\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t\t 'id' => 4,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'background_image_attachment' => 351,\n\t\t\t\t\t\t\t\t 'background_display' => 'cover',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 5 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t 'text' => '<h3>WHAT WE DO</h3><p><span style=\"color: #e5b89c;\">Donec sed dolor maximus nunc sagittis vehicula. Phasellus at ornare arcu, eu elementum risus. Mauris varius semper purus, non eleifend quam convallis ac. Vivamus sodales justo id sapien aliquam tempus.</span></p>',\n\t\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 2,\n\t\t\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t\t\t 'id' => 5,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'padding' => '50px',\n\t\t\t\t\t\t\t\t 'background' => '#e56934',\n\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t 'font_color' => '#ffffff',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 6 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'min_height' => '250',\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'TTrust_Spacer',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 2,\n\t\t\t\t\t\t\t\t 'cell' => 2,\n\t\t\t\t\t\t\t\t 'id' => 6,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'background_image_attachment' => 359,\n\t\t\t\t\t\t\t\t 'background_display' => 'cover',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 7 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t 'text' => '<h3 style=\"text-align: center;\"><span style=\"color: #242424;\">OUR SERVICES</span></h3><p style=\"text-align: center;\">Nulla cursus turpis quis mattis rutrum. Suspendisse lobortis pulvinar. </p>',\n\t\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 3,\n\t\t\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t\t\t 'id' => 7,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 8 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'features' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'container_color' => false,\n\t\t\t\t\t\t\t\t 'icon' => 'fontawesome-desktop',\n\t\t\t\t\t\t\t\t 'icon_color' => '#ea6035',\n\t\t\t\t\t\t\t\t 'icon_image' => 0,\n\t\t\t\t\t\t\t\t 'title' => 'Web Design',\n\t\t\t\t\t\t\t\t 'text' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec quis molestie leo, sed efficitur dui. Nulla cursus turpis quis mattis rutrum. Suspendisse lobortis pulvinar mauris eget placerat.',\n\t\t\t\t\t\t\t\t 'more_text' => '',\n\t\t\t\t\t\t\t\t 'more_url' => '',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'container_color' => false,\n\t\t\t\t\t\t\t\t 'icon' => 'fontawesome-tablet',\n\t\t\t\t\t\t\t\t 'icon_color' => '#ea6035',\n\t\t\t\t\t\t\t\t 'icon_image' => 0,\n\t\t\t\t\t\t\t\t 'title' => 'Mobile',\n\t\t\t\t\t\t\t\t 'text' => 'Donec sed dolor maximus nunc sagittis vehicula. Phasellus at ornare arcu, eu elementum risus. Mauris varius semper purus, non eleifend quam convallis ac. Vivamus sodales justo id sapien aliquam tempus. ',\n\t\t\t\t\t\t\t\t 'more_text' => '',\n\t\t\t\t\t\t\t\t 'more_url' => '',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'container_color' => false,\n\t\t\t\t\t\t\t\t 'icon' => 'fontawesome-camera',\n\t\t\t\t\t\t\t\t 'icon_color' => '#ea6035',\n\t\t\t\t\t\t\t\t 'icon_image' => 0,\n\t\t\t\t\t\t\t\t 'title' => 'Photography',\n\t\t\t\t\t\t\t\t 'text' => 'Nam sit amet faucibus sapien. Vivamus quis mollis orci, eu sollicitudin urna. Donec turpis justo, iaculis sit amet lorem eu, rhoncus cursus ipsum. Ut laoreet accumsan arcu consequat consectetur.',\n\t\t\t\t\t\t\t\t 'more_text' => '',\n\t\t\t\t\t\t\t\t 'more_url' => '',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 'container_shape' => 'round',\n\t\t\t\t\t\t\t\t 'container_size' => 30,\n\t\t\t\t\t\t\t\t 'icon_size' => 30,\n\t\t\t\t\t\t\t\t 'per_row' => 3,\n\t\t\t\t\t\t\t\t 'responsive' => true,\n\t\t\t\t\t\t\t\t 'title_link' => false,\n\t\t\t\t\t\t\t\t 'icon_link' => false,\n\t\t\t\t\t\t\t\t 'new_window' => false,\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_Features_Widget',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 4,\n\t\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t\t 'id' => 8,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'padding' => '0px',\n\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t 'font_color' => '#242424',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 9 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t 'text' => '<h3 style=\"text-align: center;\"><span style=\"color: #242424;\">OUR TEAM</span></h3><p style=\"text-align: center;\">Donec quis molestie leo, sed efficitur dui. Nulla cursus turpis quis mattis rutrum. Suspendisse lobortis pulvinar mauris eget placerat. Suspendisse in dolor vitae risus maximus feugiat quis nec nisi.</p><p style=\"text-align: center;\"> </p>',\n\t\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 5,\n\t\t\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t\t\t 'id' => 9,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 10 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'image_fallback' => '',\n\t\t\t\t\t\t\t\t 'image' => 261,\n\t\t\t\t\t\t\t\t 'size' => 'full',\n\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t 'alt' => '',\n\t\t\t\t\t\t\t\t 'url' => '',\n\t\t\t\t\t\t\t\t 'bound' => true,\n\t\t\t\t\t\t\t\t 'new_window' => false,\n\t\t\t\t\t\t\t\t 'full_width' => false,\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_Image_Widget',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 6,\n\t\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t\t 'id' => 10,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 11 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t 'text' => '<p class=\"member-role\"><span style=\"color: #242424;\"><strong>Frank Thompson</strong></span><br />CEO</p><p class=\"member-role\">Suspendisse lobortis pulvinar mauris eget placerat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec quis molestie leo, sed efficitur dui. Nulla cursus turpis quis mattis rutrum. </p>',\n\t\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 6,\n\t\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t\t 'id' => 11,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 12 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'networks' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'name' => 'twitter',\n\t\t\t\t\t\t\t\t 'url' => 'https://twitter.com/',\n\t\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t\t 'button_color' => '#cccccc',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'name' => 'linkedin',\n\t\t\t\t\t\t\t\t 'url' => 'https://www.linkedin.com/',\n\t\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t\t 'button_color' => '#cccccc',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'name' => 'google-plus',\n\t\t\t\t\t\t\t\t 'url' => 'https://plus.google.com/',\n\t\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t\t 'button_color' => '#cccccc',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'name' => 'envelope',\n\t\t\t\t\t\t\t\t 'url' => 'mailto:',\n\t\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t\t 'button_color' => '#cccccc',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 'design' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'new_window' => true,\n\t\t\t\t\t\t\t\t 'theme' => 'flat',\n\t\t\t\t\t\t\t\t 'hover' => true,\n\t\t\t\t\t\t\t\t 'icon_size' => '1',\n\t\t\t\t\t\t\t\t 'rounding' => '0.25',\n\t\t\t\t\t\t\t\t 'padding' => '0.5',\n\t\t\t\t\t\t\t\t 'align' => 'left',\n\t\t\t\t\t\t\t\t 'margin' => '0.1',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_SocialMediaButtons_Widget',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 6,\n\t\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t\t 'id' => 12,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'padding' => '0px',\n\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 13 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'image_fallback' => '',\n\t\t\t\t\t\t\t\t 'image' => 246,\n\t\t\t\t\t\t\t\t 'size' => 'full',\n\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t 'alt' => '',\n\t\t\t\t\t\t\t\t 'url' => '',\n\t\t\t\t\t\t\t\t 'bound' => true,\n\t\t\t\t\t\t\t\t 'new_window' => false,\n\t\t\t\t\t\t\t\t 'full_width' => false,\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_Image_Widget',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 6,\n\t\t\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t\t\t 'id' => 13,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 14 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t 'text' => '<p class=\"member-role\"><span style=\"color: #242424;\"><strong>Abby Smith</strong></span><br />Lead Designer</p><p class=\"member-role\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec quis molestie leo, sed efficitur dui. Nulla cursus turpis quis mattis rutrum. Suspendisse lobortis pulvinar mauris eget placerat.</p>',\n\t\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 6,\n\t\t\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t\t\t 'id' => 14,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 15 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'networks' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'name' => 'twitter',\n\t\t\t\t\t\t\t\t 'url' => 'https://twitter.com/',\n\t\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t\t 'button_color' => '#cccccc',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'name' => 'linkedin',\n\t\t\t\t\t\t\t\t 'url' => 'https://www.linkedin.com/',\n\t\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t\t 'button_color' => '#cccccc',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'name' => 'google-plus',\n\t\t\t\t\t\t\t\t 'url' => 'https://plus.google.com/',\n\t\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t\t 'button_color' => '#cccccc',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'name' => 'envelope',\n\t\t\t\t\t\t\t\t 'url' => 'mailto:',\n\t\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t\t 'button_color' => '#cccccc',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 'design' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'new_window' => true,\n\t\t\t\t\t\t\t\t 'theme' => 'flat',\n\t\t\t\t\t\t\t\t 'hover' => true,\n\t\t\t\t\t\t\t\t 'icon_size' => '1',\n\t\t\t\t\t\t\t\t 'rounding' => '0.25',\n\t\t\t\t\t\t\t\t 'padding' => '0.5',\n\t\t\t\t\t\t\t\t 'align' => 'left',\n\t\t\t\t\t\t\t\t 'margin' => '0.1',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_SocialMediaButtons_Widget',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 6,\n\t\t\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t\t\t 'id' => 15,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'padding' => '0px',\n\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 16 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'image_fallback' => '',\n\t\t\t\t\t\t\t\t 'image' => 262,\n\t\t\t\t\t\t\t\t 'size' => 'full',\n\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t 'alt' => '',\n\t\t\t\t\t\t\t\t 'url' => '',\n\t\t\t\t\t\t\t\t 'bound' => true,\n\t\t\t\t\t\t\t\t 'new_window' => false,\n\t\t\t\t\t\t\t\t 'full_width' => false,\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_Image_Widget',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 6,\n\t\t\t\t\t\t\t\t 'cell' => 2,\n\t\t\t\t\t\t\t\t 'id' => 16,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 17 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t 'text' => '<p class=\"member-role\"><span style=\"color: #242424;\"><strong>Brian Carson</strong></span><br />Lead Developer</p><p class=\"member-role\">Suspendisse in dolor vitae risus maximus feugiat quis nec nisi. Nulla cursus turpis quis mattis rutrum. Suspendisse lobortis pulvinar mauris eget placerat.</p>',\n\t\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 6,\n\t\t\t\t\t\t\t\t 'cell' => 2,\n\t\t\t\t\t\t\t\t 'id' => 17,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 18 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'networks' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'name' => 'twitter',\n\t\t\t\t\t\t\t\t 'url' => 'https://twitter.com/',\n\t\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t\t 'button_color' => '#cccccc',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'name' => 'linkedin',\n\t\t\t\t\t\t\t\t 'url' => 'https://www.linkedin.com/',\n\t\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t\t 'button_color' => '#cccccc',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'name' => 'google-plus',\n\t\t\t\t\t\t\t\t 'url' => 'https://plus.google.com/',\n\t\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t\t 'button_color' => '#cccccc',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'name' => 'envelope',\n\t\t\t\t\t\t\t\t 'url' => 'mailto:',\n\t\t\t\t\t\t\t\t 'icon_color' => '#ffffff',\n\t\t\t\t\t\t\t\t 'button_color' => '#cccccc',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 'design' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'new_window' => true,\n\t\t\t\t\t\t\t\t 'theme' => 'flat',\n\t\t\t\t\t\t\t\t 'hover' => true,\n\t\t\t\t\t\t\t\t 'icon_size' => '1',\n\t\t\t\t\t\t\t\t 'rounding' => '0.25',\n\t\t\t\t\t\t\t\t 'padding' => '0.5',\n\t\t\t\t\t\t\t\t 'align' => 'left',\n\t\t\t\t\t\t\t\t 'margin' => '0.1',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_SocialMediaButtons_Widget',\n\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t 'grid' => 6,\n\t\t\t\t\t\t\t\t 'cell' => 2,\n\t\t\t\t\t\t\t\t 'id' => 18,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'padding' => '0px',\n\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 'grids' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'cells' => 1,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'bottom_margin' => '0px',\n\t\t\t\t\t\t\t\t 'row_stretch' => 'full',\n\t\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t\t 'padding_top' => '180px',\n\t\t\t\t\t\t\t\t 'padding_bottom' => '180px',\n\t\t\t\t\t\t\t\t 'background_image' => 340,\n\t\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'cells' => 3,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'bottom_margin' => '0px',\n\t\t\t\t\t\t\t\t 'gutter' => '0px',\n\t\t\t\t\t\t\t\t 'row_stretch' => 'full-stretched',\n\t\t\t\t\t\t\t\t 'equal_column_height' => 'yes',\n\t\t\t\t\t\t\t\t 'padding_top' => '0px',\n\t\t\t\t\t\t\t\t 'padding_bottom' => '0px',\n\t\t\t\t\t\t\t\t 'padding_left' => '0px',\n\t\t\t\t\t\t\t\t 'padding_right' => '0px',\n\t\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'cells' => 3,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'bottom_margin' => '0px',\n\t\t\t\t\t\t\t\t 'gutter' => '0px',\n\t\t\t\t\t\t\t\t 'row_stretch' => 'full-stretched',\n\t\t\t\t\t\t\t\t 'equal_column_height' => 'yes',\n\t\t\t\t\t\t\t\t 'padding_top' => '0px',\n\t\t\t\t\t\t\t\t 'padding_bottom' => '0px',\n\t\t\t\t\t\t\t\t 'padding_left' => '0px',\n\t\t\t\t\t\t\t\t 'padding_right' => '0px',\n\t\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'cells' => 3,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'bottom_margin' => '0px',\n\t\t\t\t\t\t\t\t 'gutter' => '0px',\n\t\t\t\t\t\t\t\t 'row_stretch' => 'full',\n\t\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t\t 'padding_top' => '50px',\n\t\t\t\t\t\t\t\t 'padding_bottom' => '0px',\n\t\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 4 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'cells' => 1,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'bottom_margin' => '0px',\n\t\t\t\t\t\t\t\t 'gutter' => '0px',\n\t\t\t\t\t\t\t\t 'row_stretch' => 'full',\n\t\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t\t 'padding_top' => '50px',\n\t\t\t\t\t\t\t\t 'padding_bottom' => '50px',\n\t\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t\t 'background_image_style' => 'parallax',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 5 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'cells' => 3,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'bottom_margin' => '0px',\n\t\t\t\t\t\t\t\t 'row_stretch' => 'full',\n\t\t\t\t\t\t\t\t 'background' => '#f2f2f2',\n\t\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t\t 'padding_top' => '50px',\n\t\t\t\t\t\t\t\t 'padding_bottom' => '0px',\n\t\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 6 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'cells' => 3,\n\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'bottom_margin' => '50px',\n\t\t\t\t\t\t\t\t 'gutter' => '30px',\n\t\t\t\t\t\t\t\t 'row_stretch' => 'full',\n\t\t\t\t\t\t\t\t 'background' => '#f2f2f2',\n\t\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t\t 'padding_top' => '0px',\n\t\t\t\t\t\t\t\t 'padding_bottom' => '50px',\n\t\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 'grid_cells' => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 0,\n\t\t\t\t\t\t\t\t 'weight' => 1,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 4 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 2,\n\t\t\t\t\t\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 5 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 2,\n\t\t\t\t\t\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 6 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 2,\n\t\t\t\t\t\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 7 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 3,\n\t\t\t\t\t\t\t\t 'weight' => 0.2002534854245900108882239010199555195868015289306640625,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 8 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 3,\n\t\t\t\t\t\t\t\t 'weight' => 0.5994930291508200337347034292179159820079803466796875,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 9 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 3,\n\t\t\t\t\t\t\t\t 'weight' => 0.2002534854245900108882239010199555195868015289306640625,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 10 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 4,\n\t\t\t\t\t\t\t\t 'weight' => 1,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 11 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 5,\n\t\t\t\t\t\t\t\t 'weight' => 0.2002534854245900108882239010199555195868015289306640625,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 12 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 5,\n\t\t\t\t\t\t\t\t 'weight' => 0.5994930291508200337347034292179159820079803466796875,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 13 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 5,\n\t\t\t\t\t\t\t\t 'weight' => 0.2002534854245900108882239010199555195868015289306640625,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 14 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 6,\n\t\t\t\t\t\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 15 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 6,\n\t\t\t\t\t\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t 16 => \n\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t 'grid' => 6,\n\t\t\t\t\t\t\t\t 'weight' => 0.333333333333333314829616256247390992939472198486328125,\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$layouts['contact-us'] = array(\n\t\t\t\t\t\t\t\t\t'name' => __('Contact Us', 'create'),\n\t\t\t\t\t\t\t\t\t'description' => __('Layout for demo Contact Us page.', 'create'),\n\t\t\t\t\t\t\t 'widgets' => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'map_center' => '350 5th Ave, New York, NY 10118',\n\t\t\t\t\t\t\t\t\t 'settings' => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'map_type' => 'interactive',\n\t\t\t\t\t\t\t\t\t 'width' => '640',\n\t\t\t\t\t\t\t\t\t 'height' => '480',\n\t\t\t\t\t\t\t\t\t 'zoom' => 12,\n\t\t\t\t\t\t\t\t\t 'scroll_zoom' => true,\n\t\t\t\t\t\t\t\t\t 'draggable' => true,\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t 'markers' => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'marker_at_center' => true,\n\t\t\t\t\t\t\t\t\t 'marker_icon' => 1065,\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t 'styles' => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'style_method' => 'raw_json',\n\t\t\t\t\t\t\t\t\t 'styled_map_name' => '',\n\t\t\t\t\t\t\t\t\t 'raw_json_map_styles' => '[{\"featureType\":\"all\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"saturation\":36},{\"color\":\"#000000\"},{\"lightness\":40}]},{\"featureType\":\"all\",\"elementType\":\"labels.text.stroke\",\"stylers\":[{\"visibility\":\"on\"},{\"color\":\"#000000\"},{\"lightness\":16}]},{\"featureType\":\"all\",\"elementType\":\"labels.icon\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"administrative\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":20}]},{\"featureType\":\"administrative\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":17},{\"weight\":1.2}]},{\"featureType\":\"landscape\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":20}]},{\"featureType\":\"poi\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":21}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":17}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":29},{\"weight\":0.2}]},{\"featureType\":\"road.arterial\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":18}]},{\"featureType\":\"road.local\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":16}]},{\"featureType\":\"transit\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":19}]},{\"featureType\":\"water\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":17}]}]',\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t 'directions' => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'origin' => '',\n\t\t\t\t\t\t\t\t\t 'destination' => '',\n\t\t\t\t\t\t\t\t\t 'travel_mode' => 'driving',\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t 'api_key_section' => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'api_key' => '',\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_GoogleMap_Widget',\n\t\t\t\t\t\t\t\t\t 'grid' => 0,\n\t\t\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t\t\t 'id' => 0,\n\t\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'background_image_attachment' => false,\n\t\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t\t 'text' => '<h3><span style=\"color: #242424;\">Contact Us</span></h3><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus posuere interdum diam eget semper. Pellentesque purus turpis, vehicula et posuere ultrices, dictum vitae turpis. Cras porta enim justo, a tempus arcu ullamcorper in.</p><p>[contact-form-7 id=\"732\" title=\"Contact form 1\"]</p>',\n\t\t\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t\t\t 'id' => 1,\n\t\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t\t 'text' => '<h4><span style=\"color: #242424;\">Address</span></h4><p>1234 Main St.<br />New York, NY 10021</p><h4><span style=\"color: #242424;\">Phone</span></h4><p>555-456-7892 <em>New York Office<br /></em>555-376-4532 Los Angeles<em> Office</em></p><h4><span style=\"color: #242424;\">Email</span></h4><p>contact@create-digital.com</p>',\n\t\t\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t\t\t\t 'id' => 2,\n\t\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'padding' => '50px',\n\t\t\t\t\t\t\t\t\t 'background' => '#f7f7f7',\n\t\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t 'grids' => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'cells' => 1,\n\t\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'bottom_margin' => '60px',\n\t\t\t\t\t\t\t\t\t 'row_stretch' => 'full-stretched',\n\t\t\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'cells' => 2,\n\t\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'bottom_margin' => '60px',\n\t\t\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t\t\t 'padding_bottom' => '60px',\n\t\t\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t 'grid_cells' => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'grid' => 0,\n\t\t\t\t\t\t\t\t\t 'weight' => 1,\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t\t\t 'weight' => 0.63971539456661996592146124385180883109569549560546875,\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t\t\t 'weight' => 0.360284605433379978567387524890364147722721099853515625,\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$layouts['pricing'] = array(\n\t\t\t\t\t\t\t\t\t\t'name' => __('Pricing', 'create'),\n\t\t\t\t\t\t\t\t\t\t'description' => __('Layout for demo Pricing page.', 'create'),\n\t\t\t\t\t\t\t\t 'widgets' => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t\t\t 'text' => '<h2 style=\"text-align: center;\"><span style=\"color: #333333;\">We Give You the <span style=\"color: #bb9f7c;\">Best</span> Value</span></h2><p style=\"text-align: center;\"><span style=\"font-size: 21px;\">This is an example pricing page. It\\'s super easy to create beautiful pricing tables. You have options to set colors, features, icons and more.</span></p>',\n\t\t\t\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t\t\t 'grid' => 0,\n\t\t\t\t\t\t\t\t\t\t 'cell' => 1,\n\t\t\t\t\t\t\t\t\t\t 'id' => 0,\n\t\t\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'title' => false,\n\t\t\t\t\t\t\t\t\t\t 'columns' => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'featured' => '',\n\t\t\t\t\t\t\t\t\t\t 'title' => 'Silver',\n\t\t\t\t\t\t\t\t\t\t 'subtitle' => 'Budget Plan',\n\t\t\t\t\t\t\t\t\t\t 'image' => '',\n\t\t\t\t\t\t\t\t\t\t 'price' => '$59',\n\t\t\t\t\t\t\t\t\t\t 'per' => 'per month',\n\t\t\t\t\t\t\t\t\t\t 'button' => 'BUY NOW',\n\t\t\t\t\t\t\t\t\t\t 'url' => '#',\n\t\t\t\t\t\t\t\t\t\t 'features' => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'text' => '1 GB Storage',\n\t\t\t\t\t\t\t\t\t\t 'hover' => '',\n\t\t\t\t\t\t\t\t\t\t 'icon_new' => 'fontawesome-database',\n\t\t\t\t\t\t\t\t\t\t 'icon_color' => '',\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'text' => '2 Domain Names',\n\t\t\t\t\t\t\t\t\t\t 'hover' => '',\n\t\t\t\t\t\t\t\t\t\t 'icon_new' => 'fontawesome-globe',\n\t\t\t\t\t\t\t\t\t\t 'icon_color' => '',\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'text' => '3 FTP Users',\n\t\t\t\t\t\t\t\t\t\t 'hover' => '',\n\t\t\t\t\t\t\t\t\t\t 'icon_new' => 'fontawesome-user',\n\t\t\t\t\t\t\t\t\t\t 'icon_color' => '',\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'text' => '100 GB Bandwidth',\n\t\t\t\t\t\t\t\t\t\t 'hover' => '',\n\t\t\t\t\t\t\t\t\t\t 'icon_new' => 'fontawesome-exchange',\n\t\t\t\t\t\t\t\t\t\t 'icon_color' => '',\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'featured' => 'on',\n\t\t\t\t\t\t\t\t\t\t 'title' => 'Gold',\n\t\t\t\t\t\t\t\t\t\t 'subtitle' => 'Best Value',\n\t\t\t\t\t\t\t\t\t\t 'image' => '',\n\t\t\t\t\t\t\t\t\t\t 'price' => '$99',\n\t\t\t\t\t\t\t\t\t\t 'per' => 'per month',\n\t\t\t\t\t\t\t\t\t\t 'button' => 'BUY NOW',\n\t\t\t\t\t\t\t\t\t\t 'url' => '#',\n\t\t\t\t\t\t\t\t\t\t 'features' => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'text' => '3 GB Storage',\n\t\t\t\t\t\t\t\t\t\t 'hover' => '',\n\t\t\t\t\t\t\t\t\t\t 'icon_new' => 'fontawesome-database',\n\t\t\t\t\t\t\t\t\t\t 'icon_color' => '',\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'text' => '5 Domain Names',\n\t\t\t\t\t\t\t\t\t\t 'hover' => '',\n\t\t\t\t\t\t\t\t\t\t 'icon_new' => 'fontawesome-globe',\n\t\t\t\t\t\t\t\t\t\t 'icon_color' => '',\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'text' => '5 FTP Users',\n\t\t\t\t\t\t\t\t\t\t 'hover' => '',\n\t\t\t\t\t\t\t\t\t\t 'icon_new' => 'fontawesome-user',\n\t\t\t\t\t\t\t\t\t\t 'icon_color' => '',\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'text' => '1000 GB Bandwidth',\n\t\t\t\t\t\t\t\t\t\t 'hover' => '',\n\t\t\t\t\t\t\t\t\t\t 'icon_new' => 'fontawesome-exchange',\n\t\t\t\t\t\t\t\t\t\t 'icon_color' => '',\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'featured' => '',\n\t\t\t\t\t\t\t\t\t\t 'title' => 'Platinum',\n\t\t\t\t\t\t\t\t\t\t 'subtitle' => 'Business & Enterpise',\n\t\t\t\t\t\t\t\t\t\t 'image' => '',\n\t\t\t\t\t\t\t\t\t\t 'price' => '$129',\n\t\t\t\t\t\t\t\t\t\t 'per' => 'per month',\n\t\t\t\t\t\t\t\t\t\t 'button' => 'BUY NOW',\n\t\t\t\t\t\t\t\t\t\t 'url' => '#',\n\t\t\t\t\t\t\t\t\t\t 'features' => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'text' => '10 GB Storage',\n\t\t\t\t\t\t\t\t\t\t 'hover' => '',\n\t\t\t\t\t\t\t\t\t\t 'icon_new' => 'fontawesome-database',\n\t\t\t\t\t\t\t\t\t\t 'icon_color' => '',\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'text' => '10 Domain Names',\n\t\t\t\t\t\t\t\t\t\t 'hover' => '',\n\t\t\t\t\t\t\t\t\t\t 'icon_new' => 'fontawesome-globe',\n\t\t\t\t\t\t\t\t\t\t 'icon_color' => '',\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'text' => '10 FTP Users',\n\t\t\t\t\t\t\t\t\t\t 'hover' => '',\n\t\t\t\t\t\t\t\t\t\t 'icon_new' => 'fontawesome-user',\n\t\t\t\t\t\t\t\t\t\t 'icon_color' => '',\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'text' => '50000 GB Bandwidth',\n\t\t\t\t\t\t\t\t\t\t 'hover' => '',\n\t\t\t\t\t\t\t\t\t\t 'icon_new' => 'fontawesome-exchange',\n\t\t\t\t\t\t\t\t\t\t 'icon_color' => '',\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 'theme' => 'flat',\n\t\t\t\t\t\t\t\t\t\t 'header_color' => '#5e5e5e',\n\t\t\t\t\t\t\t\t\t\t 'featured_header_color' => '#bb9f7c',\n\t\t\t\t\t\t\t\t\t\t 'button_color' => '#bb9f7c',\n\t\t\t\t\t\t\t\t\t\t 'featured_button_color' => '#bb9f7c',\n\t\t\t\t\t\t\t\t\t\t 'button_new_window' => false,\n\t\t\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'class' => 'SiteOrigin_Widget_PriceTable_Widget',\n\t\t\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t\t\t\t 'id' => 1,\n\t\t\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 'grids' => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'cells' => 3,\n\t\t\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t\t\t\t 'padding_top' => '70px',\n\t\t\t\t\t\t\t\t\t\t 'padding_bottom' => '0px',\n\t\t\t\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'cells' => 1,\n\t\t\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t\t\t\t 'padding_top' => '20px',\n\t\t\t\t\t\t\t\t\t\t 'padding_bottom' => '60px',\n\t\t\t\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 'grid_cells' => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'grid' => 0,\n\t\t\t\t\t\t\t\t\t\t 'weight' => 0.14912461852642000526003585036960430443286895751953125,\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'grid' => 0,\n\t\t\t\t\t\t\t\t\t\t 'weight' => 0.69952473554990002302389484611921943724155426025390625,\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 2 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'grid' => 0,\n\t\t\t\t\t\t\t\t\t\t 'weight' => 0.1513506459236799994716449191400897689163684844970703125,\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t 3 => \n\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t\t\t\t 'weight' => 1,\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$layouts['testimonials'] = array(\n\t\t\t\t\t\t\t\t\t\t\t'name' => __('Testimonials', 'create'),\n\t\t\t\t\t\t\t\t\t\t\t'description' => __('Layout for demo Testimonials page.', 'create'),\n\t\t\t\t\t\t\t\t\t 'widgets' => \n\t\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t\t 'type' => 'visual',\n\t\t\t\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t\t\t\t 'text' => '<h2 style=\"text-align: center;\">TESTIMONIALS</h2><p style=\"text-align: center;\"><span style=\"color: #82acb8;\"><span style=\"font-size: 21px; line-height: 31.5px;\">Read what our customers have to say about us.</span></span></p>',\n\t\t\t\t\t\t\t\t\t\t\t 'filter' => '1',\n\t\t\t\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t\t 'class' => 'WP_Widget_Black_Studio_TinyMCE',\n\t\t\t\t\t\t\t\t\t\t\t 'grid' => 0,\n\t\t\t\t\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t\t\t\t\t 'id' => 0,\n\t\t\t\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t\t 'background_image_attachment' => false,\n\t\t\t\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t\t\t\t 'font_color' => '#ffffff',\n\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t\t 'title' => '',\n\t\t\t\t\t\t\t\t\t\t\t 'count' => '9',\n\t\t\t\t\t\t\t\t\t\t\t 'layout' => 'grid',\n\t\t\t\t\t\t\t\t\t\t\t 'columns' => '3',\n\t\t\t\t\t\t\t\t\t\t\t 'alignment' => 'center',\n\t\t\t\t\t\t\t\t\t\t\t 'order' => 'rand',\n\t\t\t\t\t\t\t\t\t\t\t 'carousel-nav-color' => '',\n\t\t\t\t\t\t\t\t\t\t\t 'panels_info' => \n\t\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t\t 'class' => 'TTrust_Testimonials',\n\t\t\t\t\t\t\t\t\t\t\t 'raw' => false,\n\t\t\t\t\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t\t\t\t\t 'cell' => 0,\n\t\t\t\t\t\t\t\t\t\t\t 'id' => 1,\n\t\t\t\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t\t 'background_display' => 'tile',\n\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t\t 'grids' => \n\t\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t\t 'cells' => 1,\n\t\t\t\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t\t 'bottom_margin' => '0px',\n\t\t\t\t\t\t\t\t\t\t\t 'row_stretch' => 'full',\n\t\t\t\t\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t\t\t\t\t 'padding_top' => '250px',\n\t\t\t\t\t\t\t\t\t\t\t 'padding_bottom' => '250px',\n\t\t\t\t\t\t\t\t\t\t\t 'background_image' => 1098,\n\t\t\t\t\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t\t\t\t\t 'background_image_style' => 'parallax',\n\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t\t 'cells' => 1,\n\t\t\t\t\t\t\t\t\t\t\t 'style' => \n\t\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t\t 'equal_column_height' => 'no',\n\t\t\t\t\t\t\t\t\t\t\t 'padding_top' => '60px',\n\t\t\t\t\t\t\t\t\t\t\t 'padding_bottom' => '60px',\n\t\t\t\t\t\t\t\t\t\t\t 'background_image_position' => 'left top',\n\t\t\t\t\t\t\t\t\t\t\t 'background_image_style' => 'cover',\n\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t\t 'grid_cells' => \n\t\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t\t 0 => \n\t\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t\t 'grid' => 0,\n\t\t\t\t\t\t\t\t\t\t\t 'weight' => 1,\n\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t\t 1 => \n\t\t\t\t\t\t\t\t\t\t\t array (\n\t\t\t\t\t\t\t\t\t\t\t 'grid' => 1,\n\t\t\t\t\t\t\t\t\t\t\t 'weight' => 1,\n\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\n return $layouts;\n\n}", "title": "" }, { "docid": "73237028ec206655a9f8568a812227e3", "score": "0.55923754", "text": "public function setLayout() {\n $this->layout()->setTemplate('social/layout');\n }", "title": "" }, { "docid": "4605fcef1e94c7fbeb1f1eba666fd76b", "score": "0.5581606", "text": "public function testCreateAndUpdate()\n {\n $storage = $this->createStorage();\n $typeRegistry = $this->createTypeRegistry();\n $renderer = $this->createRenderer($typeRegistry, new XmlGridRenderer());\n\n /** @var \\MakinaCorpus\\Drupal\\Layout\\Storage\\Layout $layout */\n $layout = $storage->create();\n\n // For the sake of simplicity, just create something similar to what\n // the php-layout library does, just see their documentation for more\n // information.\n $this->createAwesomelyComplexLayout($layout);\n\n $topLevelId = $layout->getId();\n $representation = <<<EOT\n<vertical id=\"{$topLevelId}\">\n <horizontal id=\"C1\">\n <column id=\"C11\">\n <item id=\"a-1\"/>\n <item id=\"b-4\"/>\n </column>\n <column id=\"C12\">\n <horizontal id=\"C2\">\n <column id=\"C21\">\n <item id=\"a-2\" />\n <item id=\"a-5\" />\n </column>\n <column id=\"C22\">\n <item id=\"b-3\" />\n </column>\n </horizontal>\n </column>\n </horizontal>\n <horizontal id=\"C3\">\n <column id=\"C31\">\n <item id=\"a-6\" />\n <item id=\"a-9\" />\n </column>\n <column id=\"C32\">\n <item id=\"b-7\" />\n <item id=\"b-10\" />\n </column>\n <column id=\"C33\">\n <item id=\"b-8\" />\n <item id=\"b-11\" />\n <item id=\"a-1\" />\n </column>\n </horizontal>\n <item id=\"a-12\" />\n <item id=\"b-7\" />\n</vertical>\nEOT;\n\n // This just tests the testing helpers, and validate that our layout\n // is correct before we do save it.\n $string = $renderer->render($layout->getTopLevelContainer());\n $this->assertSameRenderedGrid($representation, $string);\n\n // Now, save it, load it, and ensure rendering is the same.\n $storage->update($layout);\n\n $otherLayout = $storage->load($layout->getId());\n $string = $renderer->render($otherLayout->getTopLevelContainer());\n $this->assertSameRenderedGrid($representation, $string);\n\n // Check options were loaded correctly\n $b8 = $otherLayout->getTopLevelContainer()->getAt(1)->getColumnAt(2)->getAt(0);\n $this->assertTrue($b8->hasOption('foo'));\n $this->assertFalse($b8->hasOption('a'));\n $this->assertSame('bar', $b8->getOption('foo', 'nope'));\n $c31 = $otherLayout->getTopLevelContainer()->getAt(1)->getColumnAt(0);\n $this->assertTrue($c31->hasOption('a'));\n $this->assertTrue($c31->hasOption('b'));\n $this->assertSame(12, $c31->getOption('a', 'nope'));\n $this->assertSame('test', $c31->getOption('b', 'nope'));\n\n // Remove a few elements, compare to a new representation\n $representation = <<<EOT\n<vertical id=\"{$topLevelId}\">\n <horizontal id=\"C1\">\n <column id=\"C11\">\n <item id=\"b-4\"/>\n </column>\n <column id=\"C12\">\n <horizontal id=\"C2\">\n <column id=\"C21\">\n <item id=\"a-2\" />\n <item id=\"a-5\" />\n </column>\n </horizontal>\n </column>\n </horizontal>\n <item id=\"b-7\" />\n</vertical>\nEOT;\n $otherLayout->getTopLevelContainer()->removeAt(1);\n $otherLayout->getTopLevelContainer()->getAt(0)->getColumnAt(0)->removeAt(0);\n $otherLayout->getTopLevelContainer()->getAt(0)->getColumnAt(1)->getAt(0)->removeColumnAt(1);\n $otherLayout->getTopLevelContainer()->removeAt(1);\n $storage->update($otherLayout);\n\n $thirdLayout = $storage->load($layout->getId());\n $string = $renderer->render($thirdLayout->getTopLevelContainer());\n $this->assertSameRenderedGrid($representation, $string);\n\n // Adds new elements, compare to a new representation\n\n // Changes a few item styles, and ensure update\n }", "title": "" }, { "docid": "c06fce363af31a104106116a166969d5", "score": "0.5565009", "text": "public function GetLayout ();", "title": "" }, { "docid": "aca3b56f5a28b25853692849e958f4a5", "score": "0.55629855", "text": "public function create()\n {\n $this->layout->content = View::make('courses.create');\n }", "title": "" }, { "docid": "6f1c361aba912d12511232d2ee14687b", "score": "0.5562915", "text": "public function requestLayout() {}", "title": "" }, { "docid": "336b74f77c8297f040f584dcc59d8c5b", "score": "0.553563", "text": "protected function plotContent() {\n $this->plotBoxStart();\n echo '<h2>User guide</h2>';\n echo '<p>Here is manual for this application.</p>';\n echo '<ol class=\"listLargeStep\">';\n echo '<li><a href=\"#new-task\">How to insert new task to system</a></li>';\n echo '<li><a href=\"#edit-task\">How to edit task in system</a></li>';\n echo '<li><a href=\"#remove-task\">How to remove task in system</a></li>';\n \n echo '<li><a href=\"#new-station\">How to insert new station (nod) to system</a></li>';\n echo '<li><a href=\"#edit-station\">How to edit station (nod) in system</a></li>';\n echo '<li><a href=\"#remove-station\">How to remove station (nod) in system</a></li>';\n \n echo '<li><a href=\"#users\">Manage of users in system</a></li>';\n echo '</ol>';\n $this->plotBoxEnd();\n \n $this->plotBoxStart();\n echo '<h3 id=\"new-task\">How to insert new task to system</h3>';\n echo '<p>Go to the field called Tasks in menu bar of application. Here click to the button Insert new task. It is on the top of the page. After that fill your task to the form. When you are finished, click to the button INSERT.</p>';\n echo '<p><strong>Warning:</strong> if you insert your task in Suspend priority, system would not distributed task to stations of system.</p>';\n $this->plotBoxEnd();\n \n $this->plotBoxStart();\n echo '<h3 id=\"edit-task\">How to edit task in system</h3>';\n echo '<p>Go to the field called Tasks in menu bar of application. Here click to icon of pencil shown in column Task priority. After that you could change priority level of task and submit this by click to button EDIT.</p>';\n echo '<p><strong>Warning:</strong> You could edit only priority level of tasks, not the content of task. If you would like to change content of task, you have to remove it and insert the new one. </p>';\n $this->plotBoxEnd();\n \n $this->plotBoxStart();\n echo '<h3 id=\"remove-task\">How to remove task in system</h3>';\n echo '<p>Go to the field called Tasks in menu bar of application. Here click to icon of cross shown in column Remove. After that you could remove task by click to button YES.</p>';\n echo '<p><strong>Warning:</strong> after click to button YES, you could not undo this step!</p>';\n $this->plotBoxEnd();\n \n \n \n $this->plotBoxStart();\n echo '<h3 id=\"new-station\">How to insert new station (nod) to system</h3>';\n echo '<p>Go to the field called Stations in menu bar of application. Click to button INSERT STATION, page will scroll down (if not, do it manually) to the form where you could insert information about new station. Station ID is unique identifier of station. It is integer value. Assigned task field is task that you would like to assign to your station. After you finished with filling of form, click to button INSERT.</p>';\n echo '<p><strong>Warning:</strong> assigned task is only task that your would prefere. System could ignore it in some situations.</p>';\n $this->plotBoxEnd();\n \n $this->plotBoxStart();\n echo '<h3 id=\"edit-station\">How to edit station (nod) in system</h3>';\n echo '<p>Go to the field called Stations in menu bar of application. Click to ID of station that you would like to edit (in column Station ID). After that system would scroll to the form (if not, do it yourself). Here you could edit information about the station </p>';\n echo '<p><strong>Notice:</strong> almost everything is same like it was in case you inserting new station, which is described above. </p>';\n $this->plotBoxEnd();\n \n $this->plotBoxStart();\n echo '<h3 id=\"remove-station\">How to remove station (nod) in system</h3>';\n echo '<p>Go to the field called Stations in menu bar of application. Here click to icon of cross shown in column Remove. After that you could remove task by click to button YES on the top of the page.</p>';\n echo '<p><strong>Warning:</strong> after click to button YES, you could not redo this step!</p>';\n $this->plotBoxEnd();\n \n $this->plotBoxStart();\n echo '<h3 id=\"users\">Manage of users in system</h3>';\n echo '<p>Click to menu item Users on the left menu bar. Here you could simply add new user by click the button INSERT USER (after that fill the form on the button of page, than click to button INSERT). Editing of user could be done by clicking to username (rest of procedure is same as above). Deleting of user could be done by clicking to cross in last column.</p>';\n echo '<p><strong>Warning:</strong> you has to have administrator privileges to manage of users!</p>';\n $this->plotBoxEnd();\n }", "title": "" }, { "docid": "1b1df64c37ab135ca3bd5021b0b64089", "score": "0.55261385", "text": "public function create()\n\t{\n\t\t$this->layout->content = View::make('private.news.create');\n\t}", "title": "" }, { "docid": "7d64b7106e79ff0597b315c40095eb84", "score": "0.5521674", "text": "public function run()\n {\n TheoryGroup::create([\n 'name'=>'Bộ tài liệu java',\n ]);\n TheoryGroup::create([\n 'name'=>'Bộ tài liệu Web basic',\n ]);\n TheoryGroup::create([\n 'name'=>'Bộ tài liệu Web advance',\n ]);\n TheoryGroup::create([\n 'name'=>'Bộ tài liệu Tester',\n ]);\n TheoryGroup::create([\n 'name'=>'Bộ tài liệu C#'\n ]);\n }", "title": "" }, { "docid": "dd60c7da2c2550c3ab829c803e05bbaf", "score": "0.55096334", "text": "public function layout_builder() {\n\t\tinclude FUSION_BUILDER_PLUGIN_DIR . 'inc/admin-screens/layout-builder/layouts.php';\n\t\tinclude FUSION_BUILDER_PLUGIN_DIR . 'inc/admin-screens/layout-builder/layout.php';\n\t\tinclude FUSION_BUILDER_PLUGIN_DIR . 'inc/admin-screens/layout-builder/layout-options.php';\n\t\tinclude FUSION_BUILDER_PLUGIN_DIR . 'inc/admin-screens/layout-builder/layout-child-option.php';\n\n\t\twp_enqueue_script( 'fusion_builder_app_util_js', FUSION_LIBRARY_URL . '/inc/fusion-app/util.js', [ 'jquery', 'jquery-ui-core', 'underscore', 'backbone' ], FUSION_BUILDER_VERSION, true );\n\t\twp_enqueue_script( 'fusion_layouts', FUSION_BUILDER_PLUGIN_URL . 'inc/admin-screens/layout-builder/layouts.js', [ 'fusion_builder_app_util_js' ], FUSION_BUILDER_VERSION, false );\n\t\twp_enqueue_script( 'fusion_layout', FUSION_BUILDER_PLUGIN_URL . 'inc/admin-screens/layout-builder/layout.js', [ 'fusion_builder_app_util_js' ], FUSION_BUILDER_VERSION, false );\n\t\twp_enqueue_script( 'fusion_layout_options', FUSION_BUILDER_PLUGIN_URL . 'inc/admin-screens/layout-builder/layout-options.js', [ 'fusion_builder_app_util_js' ], FUSION_BUILDER_VERSION, false );\n\t}", "title": "" }, { "docid": "20fcfc9e08340cf104351b3ccd11a6fb", "score": "0.5497097", "text": "public function getCreate()\n {\n /* Memasukkan view posts.new ke dalam section content milik default layout */\n $this->layout->content = View::make('posts.new');\n }", "title": "" }, { "docid": "588e38ae73e86b07a2640309ffbd1b34", "score": "0.5487808", "text": "function &getLayout()\n {\n // override me\n }", "title": "" }, { "docid": "01c2306af81a606c9ea4f2b68d898d1a", "score": "0.5472749", "text": "protected function _prepareLayout()\r\n {\r\n parent::_prepareLayout();\r\n }", "title": "" }, { "docid": "bace3321002cdf18057d0e152d6359a0", "score": "0.5471561", "text": "public function index()\n\t{\n\t\treturn view('artisanui.layouts');\n\t}", "title": "" }, { "docid": "893b873ee4149092555610be87f74a02", "score": "0.54712915", "text": "private function initLayout(): LayoutInterface\n {\n $layout = $this->layoutFactory->create([\n 'cacheable' => false,\n 'reader' => $this->layoutReaderPool,\n 'generatorPool' => $this->layoutGeneratorPool,\n ]);\n\n $layout->getUpdate()->addHandle('default');\n $layout->getUpdate()->addHandle(self::DEFAULT_LAYOUT_HANDLE);\n /** @var \\Magento\\Framework\\View\\Model\\Layout\\Merge $update */\n $update = $layout->getUpdate();\n if ($update->isLayoutDefined()) {\n $update->removeHandle('default');\n }\n\n return $this->addConfigLayout($layout);\n }", "title": "" }, { "docid": "eef7ded4b33193d9d5d0378314673955", "score": "0.5468298", "text": "public function create(string $type, array $config): FormLayout;", "title": "" }, { "docid": "07ea46c6ab64b2604116357535cc68b2", "score": "0.546783", "text": "function createLayout(&$config)\n {\n assert('$id = $this->window->getObjectId()');\n assert('Debug::log(\"LayoutManager: creating layout for \\'$id\\'\")');\n if (!is_array($config))\n {\n include_once(DAWN_EXCEPTIONS . 'ConfigException.php');\n $exception =& new ConfigException(\n 'layout',\n 'window',\n $this->window->getObjectId()\n );\n $exception->halt();\n }\n if (!isset($config['type']))\n {\n $config['type'] = $this->window->getDefaultLayout();\n }\n include_once(DAWN_SYSTEM . 'LayoutFactory.php');\n $factory =& LayoutFactory::getInstance();\n $class = $factory->getClass($config['type']);\n $path = $factory->getFullClassPath($config['type']);\n $this->layout =& new $class($this->window);\n $this->layout->create($config);\n return array(\n 'class' => $class,\n 'path' => $path\n );\n }", "title": "" }, { "docid": "9dc8c4c758fe0064e5c166ee9fde4650", "score": "0.54570085", "text": "function requiresLayout()\n {\n // override me\n }", "title": "" } ]
b2c103966f159e376d40428e467234ed
/ Save Teamspeakserver Server Edit rights for a spezfic user
[ { "docid": "13a9730250908efbfb160bbed2cdb1eb", "score": "0.6221389", "text": "function userServerEdit($pk, $port, $instanz, $adminCheckboxRightServerEditPort, $adminCheckboxRightServerEditSlots, $adminCheckboxRightServerEditAutostart, $adminCheckboxRightServerEditMinClientVersion\n\t\t, $adminCheckboxRightServerEditMainSettings, $adminCheckboxRightServerEditDefaultServerGroups, $adminCheckboxRightServerEditHostSettings, $adminCheckboxRightServerEditComplaintSettings\n\t\t, $adminCheckboxRightServerEditAntiFloodSettings, $adminCheckboxRightServerEditTransferSettings, $adminCheckboxRightServerEditProtokollSettings)\n\t{\n\t\tif($pk != '' && $port != '' && $instanz != '' && $adminCheckboxRightServerEditPort != '' && $adminCheckboxRightServerEditSlots != '' && $adminCheckboxRightServerEditAutostart != ''\n\t\t\t&& $adminCheckboxRightServerEditMinClientVersion != '' && $adminCheckboxRightServerEditMainSettings != '' && $adminCheckboxRightServerEditDefaultServerGroups != '' && $adminCheckboxRightServerEditHostSettings != ''\n\t\t\t&& $adminCheckboxRightServerEditComplaintSettings != '' && $adminCheckboxRightServerEditAntiFloodSettings != '' && $adminCheckboxRightServerEditTransferSettings != '' && $adminCheckboxRightServerEditProtokollSettings != '')\n\t\t{\n\t\t\t// Rechte des Clienten abfragen\n\t\t\t$user_right\t\t\t=\t\tgetClientBlockedServerEditRights($pk, $instanz, $port);\n\t\t\t\n\t\t\t// Keys abfragen\n\t\t\t$mysql_keys\t\t\t=\t\tgetBlockedServerEditRights();\n\t\t\t\n\t\t\t$status\t\t\t\t=\t\ttrue;\n\t\t\t\n\t\t\tif($status)\n\t\t\t{\n\t\t\t\t$status\t\t\t=\t\taddPortRightServerEdit($adminCheckboxRightServerEditPort, strpos($user_right['right_server_edit_port'][$instanz], $port)\n\t\t\t\t\t\t\t\t\t\t\t, $mysql_keys['right_server_edit_port'], $instanz, $port, $pk);\n\t\t\t};\n\t\t\tif($status)\n\t\t\t{\n\t\t\t\t$status\t\t\t=\t\taddPortRightServerEdit($adminCheckboxRightServerEditSlots, strpos($user_right['right_server_edit_slots'][$instanz], $port)\n\t\t\t\t\t\t\t\t\t\t\t, $mysql_keys['right_server_edit_slots'], $instanz, $port, $pk);\n\t\t\t};\n\t\t\tif($status)\n\t\t\t{\n\t\t\t\t$status\t\t\t=\t\taddPortRightServerEdit($adminCheckboxRightServerEditAutostart, strpos($user_right['right_server_edit_autostart'][$instanz], $port)\n\t\t\t\t\t\t\t\t\t\t\t, $mysql_keys['right_server_edit_autostart'], $instanz, $port, $pk);\n\t\t\t};\n\t\t\tif($status)\n\t\t\t{\n\t\t\t\t$status\t\t\t=\t\taddPortRightServerEdit($adminCheckboxRightServerEditMinClientVersion, strpos($user_right['right_server_edit_min_client_version'][$instanz], $port)\n\t\t\t\t\t\t\t\t\t\t\t, $mysql_keys['right_server_edit_min_client_version'], $instanz, $port, $pk);\n\t\t\t};\n\t\t\tif($status)\n\t\t\t{\n\t\t\t\t$status\t\t\t=\t\taddPortRightServerEdit($adminCheckboxRightServerEditMainSettings, strpos($user_right['right_server_edit_main_settings'][$instanz], $port)\n\t\t\t\t\t\t\t\t\t\t\t, $mysql_keys['right_server_edit_main_settings'], $instanz, $port, $pk);\n\t\t\t};\n\t\t\tif($status)\n\t\t\t{\n\t\t\t\t$status\t\t\t=\t\taddPortRightServerEdit($adminCheckboxRightServerEditDefaultServerGroups, strpos($user_right['right_server_edit_default_servergroups'][$instanz], $port)\n\t\t\t\t\t\t\t\t\t\t\t, $mysql_keys['right_server_edit_default_servergroups'], $instanz, $port, $pk);\n\t\t\t};\n\t\t\tif($status)\n\t\t\t{\n\t\t\t\t$status\t\t\t=\t\taddPortRightServerEdit($adminCheckboxRightServerEditHostSettings, strpos($user_right['right_server_edit_host_settings'][$instanz], $port)\n\t\t\t\t\t\t\t\t\t\t\t, $mysql_keys['right_server_edit_host_settings'], $instanz, $port, $pk);\n\t\t\t};\n\t\t\tif($status)\n\t\t\t{\n\t\t\t\t$status\t\t\t=\t\taddPortRightServerEdit($adminCheckboxRightServerEditComplaintSettings, strpos($user_right['right_server_edit_complain_settings'][$instanz], $port)\n\t\t\t\t\t\t\t\t\t\t\t, $mysql_keys['right_server_edit_complain_settings'], $instanz, $port, $pk);\n\t\t\t};\n\t\t\tif($status)\n\t\t\t{\n\t\t\t\t$status\t\t\t=\t\taddPortRightServerEdit($adminCheckboxRightServerEditAntiFloodSettings, strpos($user_right['right_server_edit_antiflood_settings'][$instanz], $port)\n\t\t\t\t\t\t\t\t\t\t\t, $mysql_keys['right_server_edit_antiflood_settings'], $instanz, $port, $pk);\n\t\t\t};\n\t\t\tif($status)\n\t\t\t{\n\t\t\t\t$status\t\t\t=\t\taddPortRightServerEdit($adminCheckboxRightServerEditTransferSettings, strpos($user_right['right_server_edit_transfer_settings'][$instanz], $port)\n\t\t\t\t\t\t\t\t\t\t\t, $mysql_keys['right_server_edit_transfer_settings'], $instanz, $port, $pk);\n\t\t\t};\n\t\t\tif($status)\n\t\t\t{\n\t\t\t\t$status\t\t\t=\t\taddPortRightServerEdit($adminCheckboxRightServerEditProtokollSettings, strpos($user_right['right_server_edit_protokoll_settings'][$instanz], $port)\n\t\t\t\t\t\t\t\t\t\t\t, $mysql_keys['right_server_edit_protokoll_settings'], $instanz, $port, $pk);\n\t\t\t};\n\t\t\t\n\t\t\tif($status)\n\t\t\t{\n\t\t\t\twriteInLog(4, $_SESSION['user']['benutzer'].\": Edit a Users Teamspeak Server Edit spezific Permissions (\".$pk.\")\", true);\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\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": "531802ca1d3148b2f2a04f1fb69e29d3", "score": "0.5976882", "text": "public function edit(Server_User $server_User)\n {\n //\n }", "title": "" }, { "docid": "43fcc17a625cfea6726a6f018e0dac52", "score": "0.5740643", "text": "function permSaveObject()\n\t{\n\t\tglobal $rbacadmin, $rbacsystem, $rbacreview,$objDefinition;\n\n\t\tif (!$rbacsystem->checkAccess('write',$this->rolf_ref_id))\n\t\t{\n\t\t\t$this->ilias->raiseError($this->lng->txt(\"msg_no_perm_perm\"),$this->ilias->error_obj->WARNING);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Alle Template Eintraege loeschen\n\t\t\t$rbacadmin->deleteRolePermission($this->object->getId(), $this->rolf_ref_id);\n\n\t\t\tforeach ($_POST[\"template_perm\"] as $key => $ops_array)\n\t\t\t{\n\t\t\t\t// Setzen der neuen template permissions\n\t\t\t\t$rbacadmin->setRolePermission($this->object->getId(), $key,$ops_array,$this->rolf_ref_id);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// update object data entry (to update last modification date)\n\t\t$this->object->update();\n\t\t\n\t\t// set protected flag\n\t\t// not applicable for role templates\n\t\t#$rbacadmin->setProtected($this->rolf_ref_id,$this->object->getId(),ilUtil::tf2yn($_POST['protected']));\n\n\t\tilUtil::sendSuccess($this->lng->txt(\"saved_successfully\"),true);\n\n\t\t$this->ctrl->redirect($this, \"perm\");\n\t}", "title": "" }, { "docid": "1ed72b66312ba11313947699fbd08839", "score": "0.5660549", "text": "function giveUserAllRightsTSServer($pk, $instanz, $port)\n\t{\n\t\tif($pk != '' && $instanz != '' && $port != '')\n\t\t{\n\t\t\tinclude(\"_mysql.php\");\n\t\t\t\n\t\t\t// Keys abfragen\n\t\t\t$mysql_keys\t\t\t\t\t=\t\tgetKeys();\n\t\t\t\n\t\t\t$status\t\t\t\t\t\t=\t\ttrue;\n\t\t\t\n\t\t\tforeach($mysql_keys AS $text_key => $key)\n\t\t\t{\n\t\t\t\tif(strpos($text_key, 'right_web_') !== false && $text_key != 'right_web_server_create' && $text_key != 'right_web_server_delete' && $text_key != 'right_web_global_message_poke')\n\t\t\t\t{\n\t\t\t\t\t$_sql \t\t\t\t= \t\"SELECT * FROM main_clients_rights WHERE fk_clients='\" . $pk . \"' AND fk_rights='\" . $key . \"' AND access_instanz='\" . $instanz . \"'\";\n\t\t\t\t\t\n\t\t\t\t\tif (($data = $databaseConnection->query($_sql)) !== false)\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($data->rowCount() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$result \t\t\t\t\t\t\t\t\t\t= \t$data->fetchAll(PDO::FETCH_ASSOC);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tforeach($result AS $row)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$_ports\t\t\t=\t\t$row['access_ports'];\n\t\t\t\t\t\t\t\t$_ports\t\t\t=\t\t$_ports . $port . \",\";\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif($status)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif($databaseConnection->exec('UPDATE main_clients_rights SET timestamp=\\'0\\', access_ports=\\'' . $_ports . '\\' WHERE fk_clients=\\'' . $pk . '\\' AND fk_rights=\\'' . $key . '\\' AND access_instanz=\\'' . $instanz . '\\'') === false)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\twriteInLog(2, \"giveUserAllRightsTSServer (SQL Error):\".$databaseConnection->errorInfo()[2]);\n\t\t\t\t\t\t\t\t\t\t$status\t\t=\t\tfalse;\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t};\n\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\tif($status)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif($databaseConnection->exec('INSERT INTO main_clients_rights (fk_clients, fk_rights, timestamp, access_instanz, access_ports) VALUES (\\'' . $pk . '\\', \\'' . $key . '\\', \\'0\\', \\'' . $instanz . '\\', \\'' . $port . ',\\')') === false)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\twriteInLog(2, \"giveUserAllRightsTSServer (SQL Error):\".$databaseConnection->errorInfo()[2]);\n\t\t\t\t\t\t\t\t\t$status \t\t\t= \tfalse;\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\twriteInLog(2, \"giveUserAllRightsTSServer (SQL Error):\".$databaseConnection->errorInfo()[2]);\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\t\n\t\t\tif($status)\n\t\t\t{\n\t\t\t\twriteInLog(4, $_SESSION['user']['benutzer'].\": Give all Teamspeakrights (Instanz: '\".$instanz.\"', Port: '\".$port.\"') to '\".$pk.\"'!\", true);\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\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": "6102159e2e7d334774ec431c22c3685f", "score": "0.56399965", "text": "public function updateprivs(){\n $this->cpanel_api_ver = 'api1';\n return $this->_check_result($this->api1_query($this->user, 'Mysql', __FUNCTION__));\n }", "title": "" }, { "docid": "08cbc679015f50dcf227a50861c1e64c", "score": "0.5625463", "text": "public function save() {\n\n\n\t\t# If nothing to change\n\t\tif(empty(sky::$config['authenticate']['changeable']))\n\t\t\treturn;\n\t\t\n\t\t\n\t\t# Changes list\n\t\t$changes = array();\n\t\t\n\t\t\n\t\t# Compile\n\t\tforeach(sky::$config['authenticate']['changeable'] as $change)\n\t\t\t$changes[$change] = $this->userData[$change];\n\t\t\n\t\t\n\t\t# Update records\n\t\tsky::$db->make(auth::$usersTable)->where($this->userData['id'])->set($changes)->update();\n\t\t\n\t}", "title": "" }, { "docid": "807e0a9fc878a1460608c4b60c26ebef", "score": "0.5585064", "text": "function edit_user_profile_update() {\n\tglobal $user_id;\n\t\n\t$TK2HW_enabled\t = ! empty( $_POST['TK2HW_enabled'] );\n\t$TK2HW_hidefromuser = ! empty( $_POST['TK2HW_hidefromuser'] );\n\t$TK2HW_secret\t = ! empty( $_POST['TK2HW_secret'] );\n\t\n\t$TK2HW_relaxedmode = ! empty( $_POST['TK2HW_relaxedmode'] );\n\t\n\n\tif ( ! $TK2HW_enabled ) {\n\t\t$TK2HW_enabled = 'disabled';\n\t} else {\n\t\t$TK2HW_enabled = 'enabled';\n\t}\n\n\t\n\tif ( ! $TK2HW_relaxedmode ) {\n\t\t$TK2HW_relaxedmode = 'disabled';\n\t} else {\n\t\t$TK2HW_relaxedmode = 'enabled';\n\t}\n\t\n\t\n\tif ( ! $TK2HW_hidefromuser ) {\n\t\t$TK2HW_hidefromuser = 'disabled';\n\t} else {\n\t\t$TK2HW_hidefromuser = 'enabled';\n\t}\n\t\n\t\n\tif ( ! $TK2HW_hidefromuser ) {\n\t\t$TK2HW_secret = '';\n\t} else {\n\t\t$TK2HW_secret = 'enabled';\n\t}\n\t\n\n\tupdate_user_option( $user_id, 'Token2HWTokens_enabled', $TK2HW_enabled, true );\n\tupdate_user_option( $user_id, 'Token2HWTokens_relaxedmode', $TK2HW_relaxedmode, true );\n\tupdate_user_option( $user_id, 'Token2HWTokens_hidefromuser', $TK2HW_hidefromuser, true );\n\tupdate_user_option( $user_id, 'Token2HWTokens_secret', trim($_POST['TK2HW_secret']), true );\n\t\n\t \n}", "title": "" }, { "docid": "be22310c9d4ffcd0401d845989938e65", "score": "0.55663764", "text": "function saveSettings()\n {\n\t if ( wfReadOnly() ) {\n\t\treturn;\n\t }\n\t if ( 0 == $this->mCedarId ) {\n\t\treturn;\n\t }\n\t \n\t $dbw =& wfGetDB( DB_MASTER );\n\t $dbw->update( 'cedar_user_info',\n\t\t array( /* SET */\n\t\t\t 'user_id' => $this->mId,\n\t\t\t 'organization' => $this->mOrg,\n\t\t\t 'address1' => $this->mAddress1,\n\t\t\t 'address2' => $this->mAddress2,\n\t\t\t 'city' => $this->mCity,\n\t\t\t 'state' => $this->mState,\n\t\t\t 'country' => $this->mCountry,\n\t\t\t 'postal_code' => $this->mPostalCode,\n\t\t\t 'phone' => $this->mPhone,\n\t\t\t 'mobile_phone' => $this->mMobilePhone,\n\t\t\t 'fax' => $this->mFax,\n\t\t\t 'supervisor_name' => $this->mSupervisorName,\n\t\t\t 'supervisor_email' => $this->mSupervisorEmail\n\t\t ), array( /* WHERE */\n\t\t\t 'user_info_id' => $this->mCedarId\n\t\t ), __METHOD__\n\t );\n\t $this->clearSharedCache();\n }", "title": "" }, { "docid": "9776dacbc04398b06f6083853c72eb5e", "score": "0.5519902", "text": "public function superadmin_save($user_id) {\n }", "title": "" }, { "docid": "1fa0f3d4ae1d1b423949627e989746f8", "score": "0.5519388", "text": "function auth_can_edit_user($user, $target)\n{\n global $min_user_editing_level;\n \n // Always allowed to modify your own stuff\n if(strcasecmp($user, $target) == 0)\n {\n return 1;\n }\n\n if(authGetUserLevel($user) >= $min_user_editing_level)\n {\n return 1;\n }\n\n // Unathorised access\n return 0;\n}", "title": "" }, { "docid": "072e71e09df049383aef396cb5c10093", "score": "0.54907584", "text": "protected function saveData()\n {\n if ($this->switch && $this->isStaff) {\n $this->formData['gsf_logout_on_survey'] = 0;\n $this->formData['gsf_is_embedded'] = 0;\n }\n\n parent::saveData();\n\n if (! $this->isStaff) {\n if (isset($this->formData['gul_two_factor_key'], $this->formData['gsf_id_user']) &&\n $this->formData['gul_two_factor_key']) {\n\n $user = $this->loader->getUserLoader()->getUserByStaffId($this->formData['gsf_id_user']);\n\n if ($user->canSetPassword()) {\n $this->addMessage(sprintf($this->_('Password saved for: %s'), $user->getLoginName()));\n $user->setPassword($this->formData['gul_two_factor_key']);\n }\n }\n }\n }", "title": "" }, { "docid": "5964d7d18c17a92f2404a73d48bd4959", "score": "0.5479871", "text": "function saveCurrentUser() {\n\t\t$u = $GLOBALS['CURRENT_USER'];\n\t\tif(!$u) return;\n\t\t$swears = [\"shit\", \"fuck\", \"bitch\", \"bastard\", \"asshole\", \"douche\"];\n\t\t$_SESSION['USERS'][$u->getName()] = str_replace($swears, '**********', serialize($u));\n\t\t$_SESSION['CURRENT_USER'] = $_SESSION['USERS'][$u->getName()];\n\t}", "title": "" }, { "docid": "d33a6dd3057ae6ffb6f65580f8ede3aa", "score": "0.54708517", "text": "private function updateSecureUser($content){\n\t\t\n\t}", "title": "" }, { "docid": "15e3c00fd58248c2c7d0f04f6c6d9096", "score": "0.5457379", "text": "public function saveUserPerms() {\n foreach ($_POST as $k => $v) {\n if (substr($k, 0, 5) == \"perm_\") {\n $permID = str_replace(\"perm_\", \"\", $k);\n if ($v == 'x') {\n $strSQL = sprintf(\"DELETE FROM `employee_perms` WHERE `userID` = %u AND `permID` = %u\", $_POST['userID'], $permID);\n } else {\n $strSQL = sprintf(\"REPLACE INTO `employee_perms` SET `userID` = %u, `permID` = %u, `value` = %u, `addDate` = '%s'\", $_POST['userID'], $permID, $v, date(\"Y-m-d H:i:s\"));\n }\n mysql_query($strSQL);\n }\n }\n }", "title": "" }, { "docid": "1599c1aab724b3d33f756e7e1a4e2da0", "score": "0.5436492", "text": "public function modify_user($user);", "title": "" }, { "docid": "f16f1dc33bc6dd5b07efefd683ab865c", "score": "0.5423047", "text": "public function save_settings() {\n $this->current_user->update([\n 'first_name' => $this->params['first_name'],\n 'last_name' => $this->params['last_name'],\n 'email' => $this->params['email']\n ]);\n\n $this->reload_current_user();\n redirect('/users/settings', ['notice' => 'Updated successfully']);\n }", "title": "" }, { "docid": "9f5adebe4d8e27e177a91ff34cc8d43d", "score": "0.5420738", "text": "static function setPrivato($id){\n if(!CUtente::verificalogin())header('Location: /Progetto/Utente/homepagedef');\n else{\n session_start();\n if(!isset($_SESSION['location'])) header('Location: /Progetto/Utente/homepagedef');\n else{\n if(stripos($_SESSION['location'],'Watchlist')!==false && FPersistentManager::exist('id',$id,'FWatchlist')){\n $w=FPersistentManager::load('id',$id,'FWatchlist');\n $w=clone($w[0]);\n if($w->getProprietario()==$_SESSION['utente']->getUsername())\n FPersistentManager::update('pubblico',0,'id',$id,'FWatchlist');\n\n }\n\n header('Location: /Progetto'.$_SESSION['location']);\n\n }\n //header('Location: /Progetto/Utente/homepagedef');\n\n }\n\n}", "title": "" }, { "docid": "69bdfe135fce3cd60ff9b25ba12e6550", "score": "0.5408045", "text": "function exchange_add_user_management_for_editors() {\n\t$role = get_role( 'editor' );\n\t$caps = exchange_get_user_caps();\n\tforeach ( $caps as $cap ) {\n\t\t$role->add_cap( $cap );\n\t}\n}", "title": "" }, { "docid": "d768b4169fd6fd9b755fb339c9bbe9e7", "score": "0.54001176", "text": "public function alterarSenha()\n {\n $client = Client::all();\n $paramSite = ParamSite::all();\n foreach ($paramSite as $key => $value){\n $parametrosSite[$value->name] = strip_tags(html_entity_decode($value->value));\n }\n $client2 = \"\";\n foreach ($client as $key => $value) {\n if ($value->remember_token == $_REQUEST['codigo']){\n $client2 = $value;\n }\n }\n if (!$client2){\n ?><script>alert('Nenhum usuário encontrado!'); window.close();</script><?php\n }\n else {\n return view('site.alterarSenha', [\n 'client' => $client2,\n 'parametrosSite' => $parametrosSite,\n 'pages' => null,\n 'subitems' => null\n ]);\n }\n\n }", "title": "" }, { "docid": "83d4252400ec039f74da73fbf1a5d09b", "score": "0.53749573", "text": "function saveUserStamm( $val ) {\n // Prüfen ob crmemployee schon existiert, sonst wird bei einer frischen DB ein unschöner Fehler ausgegeben.\n // Besser: crmemployee vordem Aufruf von saveUserStamm() erstellen ToDo!\n $crm_exist = $GLOBALS['dbh']->getOne( \"SELECT count(*) FROM information_schema.tables WHERE table_name = 'crmemployee'\");\n if ( !(bool) $crm_exist['count']) return false;\n if ( !$val[\"interv\"] )\n $val[\"interv\"] = 60;\n if ( !$val[\"ssl\"] )\n $val[\"ssl\"] = 'f';\n if ( !$val[\"proto\"] )\n $val[\"proto\"] = 't';\n if ( !$val[\"port\"] )\n $val[\"port\"] = ( $val[\"proto\"] == 't' ) ? '143' : '110';\n if ( !$val[\"termseq\"] )\n $val[\"termseq\"] = 30;\n if ( $val[\"vertreter\"] == $val[\"uid\"] ) {\n $vertreter = \"null\";\n }\n else {\n $vertreter = $val[\"vertreter\"];\n };\n $std = array(\n 'name',\n );\n $fld = array(\n 'msrv' => 't',\n 'postf' => 't',\n 'kennw' => 't',\n 'postf2' => 't',\n 'mailsign' => 't',\n 'email' => 't',\n 'mailuser' => 't',\n 'port' => 'i',\n 'proto' => 't',\n 'ssl' => 't',\n 'addr1' => 't',\n 'addr2' => 't',\n 'addr3' => 't',\n 'workphone' => 't',\n 'homephone' => 't',\n 'notes' => 't',\n 'abteilung' => 't',\n 'position' => 't',\n 'interv' => 'i',\n 'pre' => 't',\n 'preon' => 'b',\n 'vertreter' => 'i',\n 'etikett' => 'i',\n 'termbegin' => 'i',\n 'termend' => 'i',\n 'termseq' => 'i',\n 'kdviewli' => 'i',\n 'kdviewre' => 'i',\n 'searchtab' => 'i',\n 'icalart' => 't',\n 'icaldest' => 't',\n 'icalext' => 't',\n 'deleted' => 'b',\n 'streetview' => 't',\n 'planspace' => 't',\n 'streetview_default' => 'b',\n 'theme' => 't',\n 'smask' => 't',\n 'helpmode' => 'b',\n 'listen_theme' => 't',\n 'auftrag_button' => 'b',\n 'angebot_button' => 'b',\n 'rechnung_button' => 'b',\n 'liefer_button' => 'b',\n 'zeige_extra' => 'b',\n 'zeige_lxcars' => 'b',\n 'zeige_karte' => 'b',\n 'zeige_tools' => 'b',\n 'zeige_etikett' => 'b',\n 'zeige_bearbeiter' => 'b',\n 'feature_ac' => 'b',\n 'feature_ac_minlength' => 'i',\n 'feature_ac_delay' => 'i',\n 'feature_unique_name_plz' => 'b',\n 'sql_error' => 'b',\n 'php_error' => 'b',\n 'external_mail' => 'b',\n 'zeige_dhl' => 'b',\n 'data_from_tel' => 'b',\n 'tinymce' => 'b',\n 'search_history' => 't',\n 'mandsig' => 't'\n );\n foreach ( $fld as $key => $value )\n $_SESSION[$key] = isset( $val[$key] ) ? $val[$key] : '';\n //Einstellungen nach dem Sichern gleich übernehmen (ohne neues Login)\n\n //Sollte besser clientseitig abgefragt werden! etwa so wenn streetview_default dann nehme streetview_man sonst streetview\n /*if( $_SESSION['streetview_default'] ){\n $client_data = getClientData();\n $_SESSION['streetview'] = $client_data['streetview_man'] ? $client_data['streetview_man'] : 'http://maps.google.de/maps?f=d&hl=de&saddr=Alexanderplatz+7,10178+Berlin&daddr=%TOSTREET%,%TOZIPCODE%+%TOCITY%';\n }*/\n if ( isset( $_SESSION['sql_error'] ) && $_SESSION['sql_error'] )\n $GLOBALS['dbh']->setShowError( true );\n else\n $GLOBALS['dbh']->setShowError( false );\n $sql = \"update employee set \";\n foreach ( $std as $key ) {\n if ( $val[$key] <> \"\" ) {\n $sql .= $key.\"='\".$val[$key].\"',\";\n }\n else {\n $sql .= $key.\"=null,\";\n }\n }\n $sql = substr( $sql, 0, - 1 );\n $sql .= ' where id='.$val['uid'];\n $rc = $GLOBALS['dbh']->query( $sql );\n if ( $val[\"homephone\"] )\n mkTelNummer( $val[\"uid\"], \"E\", array( $val[\"homephone\"] ) );\n if ( $val[\"workphone\"] )\n mkTelNummer( $val[\"uid\"], \"E\", array( $val[\"workphone\"] ) );\n $rc = $GLOBALS['dbh']->begin( );\n $rc = $GLOBALS['dbh']->query( 'DELETE FROM crmemployee WHERE uid = '.$val[\"uid\"].' AND manid = '.$_SESSION['manid'] );\n if ( $rc )\n foreach ( $fld as $key => $typ ) {\n if ( array_key_exists( $key, $val ) ) {\n $sql = 'INSERT INTO crmemployee (manid,uid,key,val,typ) VALUES ('.$_SESSION['manid'].','.$val['uid'].\",'$key','\".$val[$key].\"','$typ')\";\n }\n else {\n $sql = 'INSERT INTO crmemployee (manid,uid,key,val,typ) VALUES ('.$_SESSION['manid'].','.$val['uid'].\",'$key',null,'$typ')\";\n }\n $rc = $GLOBALS['dbh']->query( $sql );\n if ( !$rc ) {\n $GLOBALS['dbh']->rollback( );\n $rc = false;\n break;\n }\n }\n if ( $rc ) {\n $rc = $GLOBALS['dbh']->commit( );\n return true;\n }\n return false;\n}", "title": "" }, { "docid": "4ccf6f623d0e75ffdeba832f29a9a2d2", "score": "0.5372179", "text": "function access() {\n return privatemsg_user_access('write privatemsg');\n }", "title": "" }, { "docid": "781a4b7ae5606ad943a8a8e3dbf02034", "score": "0.53624904", "text": "function setPrivileges() {\n $this->Session->write('Privilege.User.id', $this->Session->read('Auth.User.id'));\n foreach(Configure::read('Privilege') as $entity => $privileges) {\n foreach($privileges as $key => $privilege) {\n $key = \"Club.\".Configure::read('Club.id').\".Privilege.$entity.$key\";\n $this->Session->write($key, $this->isAuthorized($privilege));\n }\n }\n }", "title": "" }, { "docid": "15c3397953ed2ddb168cedbd4aa6a21c", "score": "0.53617525", "text": "function adoptPermSaveObject()\n\t{\n\t\tglobal $rbacadmin, $rbacsystem, $rbacreview;\n\n\t\tif (!$rbacsystem->checkAccess('write',$this->rolf_ref_id))\n\t\t{\n\t\t\t$this->ilias->raiseError($this->lng->txt(\"msg_no_perm_perm\"),$this->ilias->error_obj->WARNING);\n\t\t}\n\t\telseif ($this->obj_id == $_POST[\"adopt\"])\n\t\t{\n\t\t\tilUtil::sendFailure($this->lng->txt(\"msg_perm_adopted_from_itself\"),true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$rbacadmin->deleteRolePermission($this->obj_id, $this->rolf_ref_id);\n\t\t\t$parentRoles = $rbacreview->getParentRoleIds($this->rolf_ref_id,true);\n\t\t\t$rbacadmin->copyRoleTemplatePermissions($_POST[\"adopt\"],$parentRoles[$_POST[\"adopt\"]][\"parent\"],\n\t\t\t\t\t\t\t\t\t\t $this->rolf_ref_id,$this->obj_id);\t\t\n\t\t\t// update object data entry (to update last modification date)\n\t\t\t$this->object->update();\n\n\t\t\t// send info\n\t\t\t$obj_data =& $this->ilias->obj_factory->getInstanceByObjId($_POST[\"adopt\"]);\n\t\t\tilUtil::sendSuccess($this->lng->txt(\"msg_perm_adopted_from1\").\" '\".$obj_data->getTitle().\"'.<br/>\".$this->lng->txt(\"msg_perm_adopted_from2\"),true);\n\t\t}\n\n\t\t$this->ctrl->redirect($this, \"perm\");\n\t}", "title": "" }, { "docid": "7b4bf0920b79f57ee138309265dd3ccd", "score": "0.53609216", "text": "protected function save() {\n $factory = I2CE_FormFactory::instance();\n if ($this->creatingNewUser()) {\n if ( !$this->hasPermission('task(users_can_edit)')) {\n return false;\n }\n if (!$this->userObj instanceof I2CE_User_Form || !($username = $this->userObj->username) ) {\n return false;\n }\n $accessMech = I2CE::getUserAccess();\n if ($accessMech->userExists($username,false)) {\n I2CE::raiseError(\"Trying to recreate existing user : \" .$username);\n return false;\n }\n if (I2CE_User::hasDetail('creator')) {\n $this->userObj->creator = $this->user->username;\n }\n }\n\n $username = $this->userObj->username;\n $password = $this->userObj->password;\n $parent = $this->userMapObj->getField(\"parent\")->getValue();\n $personObj = $factory->createContainer($parent);\n $personObj->populate();\n $emails = LBBoards_Module_Qualify::getPersonEmail($parent);\n $emails = implode(\",\", $emails);\n $fname = $personObj->getField(\"firstname\")->getValue();\n $body = \"Hi $fname<br> We have created your account on the License Board online system, your username is $username and your password is $password. Please change your password after first login\";\n $subject = \"Account For License Board Online System\";\n LBBoards_Module_Qualify::sendEmail($emails, $subject, $body);\n return parent::save();\n }", "title": "" }, { "docid": "0193623230c8eb22ba972c211f6ba4f8", "score": "0.5359528", "text": "function admin_smEditor(){\r\n $this->__requireRole(ROLE_AUTHOR);\r\n $player_id = $this->Session->read('Player.id');\r\n $this->set('headline','State Machine Editor');\r\n $this->set('pid', $player_id);\r\n }", "title": "" }, { "docid": "289b46e51b340c995be73df9462c4b8c", "score": "0.5357347", "text": "function userCanModifyFW( $sessionID ) {\r\n\t\tif($this->getAccessLevel() >= 8) return true;\r\n return false;\r\n\t}", "title": "" }, { "docid": "f35510989e5fc51c3d4137743f7fcd5c", "score": "0.53390026", "text": "function change_profile($v1,$v2){\n\t\t\n\t\t$z[$v1] = $v2;\n\t\t\n\t\tset_data(\"permissions_\".$GLOBALS[\"dapp_id\"],$z);\n\t\n\t}", "title": "" }, { "docid": "ff09b1434ec1248a4b38599bcb89ab6d", "score": "0.53352106", "text": "public function savePermissions() {\n\t\t$user = [\n\t\t\t'id' => $_GET['id'],\n\t\t\t'permissions' => array_sum($_POST['permissions'] ?? [])\n\t\t];\n\n\t\t$this->usersTable->save($user);\n\n\t\theader('location: index.php?user/list');\n\t}", "title": "" }, { "docid": "504f436cd2cbd2ac4e6bbbe919902638", "score": "0.532268", "text": "function user_can_edit_user($user_id, $other_user)\n {\n }", "title": "" }, { "docid": "0ffd2f9219ff1906f578bcb78e1c7771", "score": "0.5321202", "text": "function modeloUserSave(){\n \n $datosjon = json_encode($_SESSION['tusuarios']);\n file_put_contents(FILEUSER, $datosjon) or die (\"Error al escribir en el fichero.\");\n}", "title": "" }, { "docid": "274f01080d5e9ca8bdcb28f2029b9bcd", "score": "0.53170425", "text": "function can_edit_game_info ()\n{\n // If the user isn't logged in then they can't edit anything!!!\n\n if (empty ($_SESSION['SESSION_LOGIN_USER_ID']))\n return false;\n\n // If the user is the Bid Chair (or Staff member) they can edit the game\n // information\n\n if (user_has_priv (PRIV_BID_CHAIR))\n return true;\n\n // If the user is the GM Liaison, they can edit the game information\n\n if (user_has_priv (PRIV_GM_LIAISON))\n return true;\n\n $EventId = intval (trim ($_REQUEST['EventId']));\n if (0 == $EventId)\n return display_error ('Invalid EventId');\n\n // See if the logged in user is a GM for this game\n\n $sql = 'SELECT GMId FROM GMs';\n $sql .= \" WHERE EventId=$EventId AND GMs.Role != 'performer'\";\n $sql .= \" AND UserId=\" . $_SESSION['SESSION_LOGIN_USER_ID'];\n\n $result = mysql_query ($sql);\n if (! $result)\n return display_mysql_error ('Check for GMs failed');\n\n return (mysql_num_rows ($result) > 0);\n}", "title": "" }, { "docid": "0284da5879a97c33febde6e8f688f771", "score": "0.5309085", "text": "public function testUpdateServerPassword(){\n \n //Used to to login to get token\n $token = $this->login();\n \n $user = User::where('email', $this->emailOfTestUser)->first();\n $data = [\n \"password\"=> \"new_password\", \n ];\n $response = $this->actingAs($user, 'api')->json('PUT', \"/api/server/update/1?token=$token\", $data);\n \n $response->seeStatusCode(200);\n $response->seeJsonStructure([\n 'server' => \n [\n 'id',\n 'created_at',\n 'updated_at',\n 'connection_name',\n 'connection_method',\n 'hostname',\n 'port',\n 'username',\n 'user_id'\n ]\n ]);\n\n }", "title": "" }, { "docid": "ef6ead2a29f834f0a012d8965518d2d5", "score": "0.53036934", "text": "function _setPrivileges() {\n $id = $this->Auth->user('id');\n $groupId = $this->Auth->user('group_id');\n $loggedIn = false;\n $moderator = false;\n $admin = false;\n if (!empty($id)) {\n $loggedIn = true;\n if ($groupId >= 2) {\n $moderator = true;\n if ($groupId >= 3) {\n $admin = true;\n }\n }\n }\n if ($id != null) {\n $this->set('userId', $id);\n }\n $this->set('loggedIn', $loggedIn);\n $this->set('moderator', $moderator);\n $this->set('admin', $admin);\n }", "title": "" }, { "docid": "60361c9fcee451595c8f83cf84e80bc3", "score": "0.5292689", "text": "public function actionUpdate()\n {\n $bodyRaw = json_decode(Yii::$app->getRequest()->getRawBody(), true);\n //$body = json_decode(Yii::$app->getRequest()->getBodyParams(), true);\n\n if (is_array($bodyRaw)) {\n // check user is a guest\n if (array_key_exists('token', $bodyRaw)) {\n $userByToken = \\Yii::$app->user->loginByAccessToken($bodyRaw['token']);\n if (empty($userByToken)) {\n //return $this->goHome();\n return Json::encode(array('method' => 'PUT', 'status' => 1, 'type' => 'error', 'message' => 'Ошибка: Аутентификация не выполнена'));\n }\n } else {\n return Json::encode(array('method' => 'PUT', 'status' => 1, 'type' => 'error', 'message' => 'Ошибка: Аутентификация не выполнена'));\n }\n\n // Get array with user Roles\n $userRole =[];\n $userAssigned = Yii::$app->authManager->getAssignments($userByToken->id);\n foreach($userAssigned as $userAssign){\n array_push($userRole, $userAssign->roleName);\n }\n //return Json::encode(array('method' => 'GET', 'status' => 1, 'type' => 'error', 'message' => $userRole));\n\n // Check rights\n // If user have create right that his allowed to other actions to the Spacialization table\n if (static::CHECK_RIGHTS_RBAC && !\\Yii::$app->user->can('createCustomer') && !\\Yii::$app->user->can('createMediator')) {\n return Json::encode(array('method' => 'PUT', 'status' => 1, 'type' => 'error', 'message' => 'Ошибка: Не хватает прав на операцию обновления'));\n }\n /*\n $flagRights = false;\n foreach(array('admin', 'customer', 'contractor') as $value) {\n if (in_array($value, $userRole)) {\n $flagRights = true;\n }\n }\n if (!$flagRights) return Json::encode(array('method' => 'POST', 'status' => 1, 'type' => 'error', 'message' => 'Ошибка: Не хватает прав на операцию добавления'));\n */\n\n // Because the field names may match within a single query, the parameter names may not match the table field names. To solve this problem let's create an associative arrays\n $arrayFeedbackAssoc = array ('id' => 'id', 'profile_id' => 'profile_id', 'status_feedback_id' => 'status_feedback_id', 'content' => 'content');\n\n if (array_key_exists($arrayFeedbackAssoc['id'], $bodyRaw)) {\n // check id parametr\n if (!preg_match(\"/^[0-9]*$/\",$bodyRaw[$arrayFeedbackAssoc['id']])) {\n return Json::encode(array('method' => 'PUT, PATCH', 'status' => 1, 'type' => 'error', 'message' => 'Ошибка валидации: id'));\n }\n\n // Search record by id in the database \n if (in_array('admin', $userRole)) {\n $queryFeedback = Feedback::find()->where(['id' => $bodyRaw[$arrayFeedbackAssoc['id']]]); // get all records\n } else {\n $queryFeedback = Feedback::find()->where(['AND', ['id' => $bodyRaw[$arrayFeedbackAssoc['id']]], ['created_by'=> $userByToken->id]]); // get records created by this user\n }\n $modelFeedback = $queryFeedback->one();\n\n if (empty($modelFeedback)) {\n return Json::encode(array('method' => 'PUT, PATCH', 'status' => 1, 'type' => 'error', 'message' => 'Ошибка: В БД не найден Отзыв по id'));\n }\n\n foreach ($arrayFeedbackAssoc as $nameFeedbackAssoc => $valueFeedbackAssoc) {\n if (array_key_exists($valueFeedbackAssoc, $bodyRaw)) {\n if ($modelFeedback->hasAttribute($nameFeedbackAssoc)) {\n $modelFeedback->$nameFeedbackAssoc = $bodyRaw[$arrayFeedbackAssoc[$nameFeedbackAssoc]];\n if (!$modelFeedback->validate($nameFeedbackAssoc)) return Json::encode(array('method' => 'PUT, PATCH', 'status' => 1, 'type' => 'error', 'message' => 'Ошибка валидации: параметр '.$valueRequestAssoc));\n\n $modelFeedback->created_by = $userByToken->id;\n $modelFeedback->updated_at = time();\n }\n }\n }\n\n // Save Feedback object\n if ($modelFeedback->validate()) {\n $transaction = \\Yii::$app->db->beginTransaction();\n try {\n $flagFeedback = $modelFeedback->save(false); // update Feedback table\n\n if ($flagFeedback) {\n $transaction->commit();\n } else {\n $transaction->rollBack();\n return Json::encode(array('method' => 'PUT, PATCH', 'status' => 1, 'type' => 'error', 'message' => 'Ошибка: Отзыв не может быть обновлен'));\n }\n } catch (Exception $ex) {\n $transaction->rollBack();\n return Json::encode(array('method' => 'PUT, PATCH', 'status' => 1, 'type' => 'error', 'message' => 'Ошибка: Отзыв не может быть обновлен'));\n }\n } else {\n return Json::encode(array('method' => 'PUT, PATCH', 'status' => 1, 'type' => 'error', 'message' => 'Ошибка валидации'));\n }\n\n return Json::encode(array('method' => 'PUT, PATCH', 'status' => 0, 'type' => 'success', 'message' => 'Отзыв успешно сохранен'));\n } else {\n return Json::encode(array('method' => 'PUT, PATCH', 'status' => 1, 'type' => 'error', 'message' => 'Отсутствет id параметр в запросе'));\n }\n } else {\n return Json::encode(array('method' => 'PUT, PATCH', 'status' => 1, 'type' => 'error', 'message' => 'Ошибка: Тело запроса не обработано'));\n }\n }", "title": "" }, { "docid": "429011fc3b9402846a571b328e7360bb", "score": "0.52625906", "text": "public function allowsUpdatesByUser($user);", "title": "" }, { "docid": "f1a77ce042853d31468a6eeaa18e3017", "score": "0.52600604", "text": "function saveUser() {\n\t\t$this->pqh->execute( 'saveUserTemplate', array( $_POST['template'], $this->user->getId() ) );\n\t\treturn $this->lang->success( 'saveUserTemplate', 'default' ) . '<br><a href=\"index.php\">Back to Control Panel</a>';\n\t}", "title": "" }, { "docid": "0ea774fcd4f820d8230321c197063222", "score": "0.5255997", "text": "function user_edit($user_info)\n {\n }", "title": "" }, { "docid": "4eea07a7380181919268d124a92292a1", "score": "0.5254458", "text": "function grant_super_admin($user_id)\n {\n }", "title": "" }, { "docid": "65d9390b26350b1c6d7e55f7776291fc", "score": "0.52291214", "text": "function _save_settings() {\r\n if ( ! fs_request_is_action( 'save_settings' ) ) {\r\n return;\r\n }\r\n\r\n check_admin_referer( 'save_settings' );\r\n\r\n $this->update_developer(\r\n fs_request_get( 'fs_id' ),\r\n fs_request_get( 'fs_public_key' ),\r\n fs_request_get( 'fs_secret_key' )\r\n );\r\n }", "title": "" }, { "docid": "d96d9b6fac3590c60180915d3ea4bfa6", "score": "0.522554", "text": "public function setpassword(){\n\t\t$args = $this->getArgs();\n\t\t$out = $this->getModel()->getUserDataByRenewToken(UserController::getRenewTokenHash($args[\"GET\"][\"token\"]));\n\t\tinclude 'gui/template/UserTemplate.php';\n\t}", "title": "" }, { "docid": "da11379915bc8cb82e88419f29556b13", "score": "0.5214033", "text": "function notification_user_settings_save() {\n\tglobal $CONFIG;\n\t//@todo Wha??\n\tinclude($CONFIG->path . \"actions/notifications/settings/usersettings/save.php\");\n}", "title": "" }, { "docid": "cb5beab9c90bbb2dac7dc5bbb2b68662", "score": "0.520288", "text": "function setEditAccessLevel($type,$object_id,$newlevel,$bSilent = false) {\r\n //don't allow to set edit level higher than read level - user must set new read level first\r\n $CI = &get_instance();\r\n $userlogin=getUserLogin();\r\n $publication = null;\r\n switch ($type) {\r\n case 'topic':\r\n $config = array();\r\n $topic = $CI->topic_db->getByID($object_id,$config);\r\n if (!$this->canEditObject($topic)||!$userlogin->hasRights('topic_edit')) {\r\n if (!$bSilent)\r\n appendErrorMessage(__('Edit access level').': '.__('insufficient rights').'.<br/>');\r\n return;\r\n }\r\n if ($object_id == 1) {\r\n if (!$bSilent)\r\n appendErrorMessage(__('Edit access level').': '.__('You cannot change the access levels of the top topic').'.<br/>');\r\n return;\r\n }\r\n //if edit access level too high compared to new read level, adapt edit level to new read level\r\n if (($newlevel=='public') && ($topic->read_access_level!='public')) {\r\n if (!$bSilent)\r\n appendMessage(__('Modify access level').': '.__('Restricted edit level to match read level').'.<br/>');\r\n $newlevel = $topic->read_access_level;\r\n }\r\n if (($newlevel!='private') && ($topic->read_access_level=='private')) {\r\n $newlevel = $topic->read_access_level;\r\n if (!$bSilent)\r\n appendMessage(__('Modify access level').': '.__('Restricted edit level to match read level').'.<br/>');\r\n }\r\n //set (possibly modified) edit access level\r\n $CI->db->update(\"topics\",array('edit_access_level'=>$newlevel,'derived_edit_access_level'=>$newlevel),array(\"topic_id\"=>$object_id));\r\n break;\r\n case 'publication':\r\n $publication = $CI->publication_db->getByID($object_id);\r\n if (!$this->canEditObject($publication)||!$userlogin->hasRights('publication_edit')) {\r\n if (!$bSilent)\r\n appendErrorMessage(__('Edit access level').': '.__('insufficient rights').'.<br/>');\r\n return;\r\n }\r\n //if edit access level too high compared to new read level, adapt edit level to new read level\r\n if (($newlevel=='public') && ($publication->read_access_level!='public')) {\r\n if (!$bSilent)\r\n appendMessage(__('Modify access level').': '.__('Restricted edit level to match read level').'.<br/>');\r\n $newlevel = $publication->read_access_level;\r\n }\r\n if (($newlevel!='private') && ($publication->read_access_level=='private')) {\r\n $newlevel = $publication->read_access_level;\r\n if (!$bSilent)\r\n appendMessage(__('Modify access level').': '.__('Restricted edit level to match read level').'.<br/>');\r\n }\r\n //set (possibly modified) edit access level\r\n $CI->db->update(\"publication\",array('edit_access_level'=>$newlevel),array(\"pub_id\"=>$object_id));\r\n //and fix all derived access levels again\r\n $this->cascadeAccessLevelsForPublication($publication->pub_id);\r\n break;\r\n case 'attachment':\r\n $attachment = $CI->attachment_db->getByID($object_id);\r\n if (!$this->canEditObject($attachment)||!$userlogin->hasRights('attachment_edit')) {\r\n if (!$bSilent)\r\n appendErrorMessage(__('Edit access level').': '.__('insufficient rights').'.<br/>');\r\n return;\r\n }\r\n //if edit access level too high compared to new read level, adapt edit level to new read level\r\n if (($newlevel=='public') && ($attachment->read_access_level!='public')) {\r\n if (!$bSilent)\r\n appendMessage(__('Modify access level').': '.__('Restricted edit level to match read level').'.<br/>');\r\n $newlevel = $attachment->read_access_level;\r\n }\r\n if (($newlevel!='private') && ($attachment->read_access_level=='private')) {\r\n $newlevel = $attachment->read_access_level;\r\n if (!$bSilent)\r\n appendMessage(__('Modify access level').': '.__('Restricted edit level to match read level').'.<br/>');\r\n }\r\n //set (possibly modified) edit access level\r\n $CI->db->update(\"attachments\",array('edit_access_level'=>$newlevel),array(\"att_id\"=>$object_id));\r\n //no need to cascade upwards, as opposed to with read access levels\r\n //find publication.\r\n $publication = $CI->publication_db->getByID($attachment->pub_id);\r\n //and fix all derived access levels again\r\n $this->cascadeAccessLevelsForPublication($publication->pub_id);\r\n break;\r\n case 'note':\r\n $note = $CI->note_db->getByID($object_id);\r\n if (!$this->canEditObject($note)||!$userlogin->hasRights('note_edit')) {\r\n if (!$bSilent)\r\n appendErrorMessage(__('Edit access level').': '.__('insufficient rights').'.<br/>');\r\n return;\r\n }\r\n //if edit access level too high compared to new read level, adapt edit level to new read level\r\n if (($newlevel=='public') && ($note->read_access_level!='public')) {\r\n if (!$bSilent)\r\n appendMessage(__('Modify access level').': '.__('Restricted edit level to match read level').'.<br/>');\r\n $newlevel = $note->read_access_level;\r\n }\r\n if (($newlevel!='private') && ($note->read_access_level=='private')) {\r\n $newlevel = $note->read_access_level;\r\n if (!$bSilent)\r\n appendMessage(__('Modify access level').': '.__('Restricted edit level to match read level').'.<br/>');\r\n }\r\n //set (possibly modified) edit access level\r\n $CI->db->update(\"notes\",array('edit_access_level'=>$newlevel),array(\"note_id\"=>$object_id));\r\n //no need to cascade upwards, as opposed to with read access levels\r\n //find publication.\r\n $publication = $CI->publication_db->getByID($note->pub_id);\r\n //and fix all derived access levels again\r\n $this->cascadeAccessLevelsForPublication($publication->pub_id);\r\n break; \r\n }\r\n }", "title": "" }, { "docid": "0f9f3664ba2ee9b984ddf1eaa74a8a87", "score": "0.5195757", "text": "public function setprivilegetoallAction()\r\n\t{\r\n\t\t $this->view->filterdata = $this->_request->getParams();\r\n\t\t $this->view->desigs = $this->ObjModel->getDesignationPrivilege();\r\n\t\t \r\n\t\t //Validate Form Feild Values\r\n\t\t if($this->_request->isPost()){\r\n\t\t\tif($this->ObjModel->addUserPrivileges($this->view->filterdata)) {\r\n\t\t\t\t$_SESSION[SUCCESS_MSG] = \"Privilege updated successfully!!\";\r\n\t\t\t\t$this->_redirect($this->_request->getControllerName().'/'.$this->getRequest()->getActionName());\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$_SESSION[ERROR_MSG] = \"Privilege not updated!!\";\r\n\t\t\t\t$this->_redirect($this->_request->getControllerName().'/'.$this->getRequest()->getActionName());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ce2fa3736be53e901f224bab03045a0b", "score": "0.51897126", "text": "public function manageAsAdmin()\n {\n try {\n $server = $this->server->currentOrFail();\n } catch (\\RuntimeException $exc) {\n $this->exitWithMessage($exc->getMessage());\n }\n\n $this->transferTo(\n $this->api->getAdminUrlFromApi(sprintf(\n 'hardware/server/%d',\n $server->id\n ))\n );\n }", "title": "" }, { "docid": "876a59f8003cc2ee5967071abb7163f4", "score": "0.5187494", "text": "function save_extra_user_profile_field( $user_id ) {\n\n\t\t\tif ( !current_user_can( 'edit_user', $user_id ) ) { \n\t\t\t\treturn false; \n\t\t\t}\n\t\t\t// Push update of answer\n\t\t\tupdate_user_meta( $user_id, 'legalese_answer', $_POST['legalese_answer'] );\n\t\t}", "title": "" }, { "docid": "18eeff46acdcd2245a52bf3e04590098", "score": "0.5185821", "text": "public function testUpdateServerNotBelongingToUser(){\n \n //Used to to login to get token\n $token = $this->login();\n \n $user = User::where('email', $this->emailOfTestUser)->first();\n $data = [\n \"connection_name\"=> \"Test 1\", \n \"connection_method\"=> \"SSH\", \n \"hostname\"=> \"amazon.ec2.something.com\", \n \"port\"=> 3556, \n \"username\"=> \"username\", \n \"password\"=> \"password\"\n ];\n $response = $this->actingAs($user, 'api')->json('PUT', \"/api/server/update/4?token=$token\", $data);\n \n $response->seeStatusCode(403);\n\n }", "title": "" }, { "docid": "c5f00ef549c71ff16e14b07b296df6b3", "score": "0.51846665", "text": "function local_tcapi_set_role_permission_overrides() {\n\tglobal $CFG,$DB;\n\t$role = $DB->get_record('role', array('archetype'=>'user'), 'id', MUST_EXIST);\n\tif (isset($role->id)) {\n\t\trequire_once $CFG->dirroot.'/lib/accesslib.php';\n\t\trole_change_permission($role->id, context_system::instance(), 'moodle/webservice:createtoken', CAP_ALLOW);\n\t\trole_change_permission($role->id, context_system::instance(), 'webservice/rest:use', CAP_ALLOW);\n\t\trole_change_permission($role->id, context_system::instance(), 'local/tcapi:use', CAP_ALLOW);\n\t}\n}", "title": "" }, { "docid": "a727a0ab084cd0e60e2a97fc1fbdf9be", "score": "0.5179558", "text": "public function copyToSessionUser() {\n \t\n \ttx_pttools_assert::isInstanceOf($GLOBALS['TSFE'], 'tslib_fe');\n\t\t\t\n\t // updating data in the session \n foreach ($this as $property => $value) {\n \t$GLOBALS['TSFE']->fe_user->user[$property] = $value;\n\t\t}\n }", "title": "" }, { "docid": "aced59d5cbb2940b5889f95dc95fd878", "score": "0.51733893", "text": "public function permissions() {\n\n\t\t$user = $this->usersTable->findById($_GET['id']);\n\n\t\t$reflected = new \\ReflectionClass('\\Raldb\\Entity\\User');\n\t\t$constants = $reflected->getConstants();\n\n\t\treturn ['template' => 'permissions.html.php',\n\t\t\t\t'title' => 'Edit Permissions',\n\t\t\t\t'variables' => [\n\t\t\t\t\t\t'user' => $user,\n\t\t\t\t\t\t'permissions' => $constants\n\t\t\t\t\t]\n\t\t\t\t];\n\t}", "title": "" }, { "docid": "e9153e4efbc69a16dc2bb4ec5f1515cb", "score": "0.5172533", "text": "public function Save() {\n\t\t\n\t\tglobal $sql;\n\t\tforeach( $this->settings as $option => $value ) {\n\t\t\t\n\t\t\t$this->update_option( $option, $value, $this->username );\n\t\t}\n\t}", "title": "" }, { "docid": "67e566c8030206ee65d5a7a443bc65b2", "score": "0.5171028", "text": "function tc_edit_permission_check() {\n global $current_user, $profileuser;\n \n $screen = get_current_screen();\n \n get_currentuserinfo();\n \n if( ! is_super_admin( $current_user->ID ) && in_array( $screen->base, array( 'user-edit', 'user-edit-network' ) ) ) { // editing a user profile\n if ( is_super_admin( $profileuser->ID ) ) { // trying to edit a superadmin while less than a superadmin\n wp_die( __( 'You do not have permission to edit this user.' ) );\n } elseif ( ! ( is_user_member_of_blog( $profileuser->ID, get_current_blog_id() ) && is_user_member_of_blog( $current_user->ID, get_current_blog_id() ) )) { // editing user and edited user aren't members of the same blog\n wp_die( __( 'You do not have permission to edit this user.' ) );\n }\n }\n \n}", "title": "" }, { "docid": "77cb67f11a17be632960e6482ca5384a", "score": "0.51618356", "text": "function save()\n {\n global $db;\n global $ctime;\n\n if (isset($_SESSION['chatclean']))\n\t{\n\t $strChattimes = '';\n\t foreach ($_SESSION['chatclean'] as $key => $value)\n\t {\n\t if ($key == '' || $value == '')\n\t\t{\n\t\t continue;\n\t\t}\n\t $strChattimes .= $key.','.$value.',';\n\t }\n\t}\n else\n\t{\n\t $strChattimes = $this->chattimes;\n\t}\n $db->Execute(\"UPDATE `players` SET `max_hp`=\".$this->max_hp.\", `ap`=\".$this->ap.\", `settings`='\".$this->tostring($this->settings).\"', `ip`='\".$this->ip.\"', `chattimes`='\".$strChattimes.\"', `stats`='\".$this->tostring($this->oldstats, 'stats').\"', skills='\".$this->tostring($this->oldskills, 'stats').\"' WHERE `id`=\".$this->id) or die(\"nie mogę zapisać gracza\");\n }", "title": "" }, { "docid": "67017be24d68ca4cd25700e0c4196d77", "score": "0.5159909", "text": "public function UpdatePermission() {\n if ($this->get_request_method() != \"POST\") {\n $this->response('', 406);\n }\n\n if (isset($_REQUEST['data'])) {\n\n foreach ($_REQUEST['data'] as $data) {\n if (isset($data['idUser'])) {\n $idUser = $data['idUser'];\n }\n if (isset($data['client'])) {\n $client = (int) ($data['client'] === 'true');\n }\n if (isset($data['fournisseur'])) {\n $fournisseur = (int) ($data['fournisseur'] === 'true');\n }\n if (isset($data['article'])) {\n $article = (int) ($data['article'] === 'true');\n }\n if (isset($data['stock'])) {\n $stock = (int) ($data['stock'] === 'true');\n }\n if (isset($data['factureAchat'])) {\n $factureAchat = (int) ($data['factureAchat'] === 'true');\n }\n if (isset($data['factureVente'])) {\n $factureVente = (int) ($data['factureVente'] === 'true');\n }\n if (isset($data['commandeAchat'])) {\n $commandeAchat = (int) ($data['commandeAchat'] === 'true');\n }\n if (isset($data['commandeVente'])) {\n $commandeVente = (int) ($data['commandeVente'] === 'true');\n }\n if (isset($data['bonLivraisonAchat'])) {\n $bonLivraisonAchat = (int) ($data['bonLivraisonAchat'] === 'true');\n }\n if (isset($data['bonLivraisonVente'])) {\n $bonLivraisonVente = (int) ($data['bonLivraisonVente'] === 'true');\n }\n if (isset($data['paiement'])) {\n $paiement = (int) ($data['paiement'] === 'true');\n }\n }\n\n if (!empty($idUser)) {\n try {\n $sql = $this->db->prepare(\"UPDATE permission SET client = :client, fournisseur = :fournisseur, article = :article, stock = :stock, factureAchat = :factureAchat,\" .\n \"factureVente = :factureVente, commandeAchat = :commandeAchat, commandeVente = :commandeVente, bonLivraisonAchat = :bonLivraisonAchat,\" .\n \"bonLivraisonVente = :bonLivraisonVente, paiement = :paiement WHERE idUser= :idUser\");\n\n $sql->bindParam('client', $client, PDO::PARAM_INT);\n $sql->bindParam('fournisseur', $fournisseur, PDO::PARAM_INT);\n $sql->bindParam('article', $article, PDO::PARAM_INT);\n $sql->bindParam('stock', $stock, PDO::PARAM_INT);\n $sql->bindParam('factureAchat', $factureAchat, PDO::PARAM_INT);\n $sql->bindParam('factureVente', $factureVente, PDO::PARAM_INT);\n $sql->bindParam('commandeAchat', $commandeAchat, PDO::PARAM_INT);\n $sql->bindParam('commandeVente', $commandeVente, PDO::PARAM_INT);\n $sql->bindParam('bonLivraisonAchat', $bonLivraisonAchat, PDO::PARAM_INT);\n $sql->bindParam('bonLivraisonVente', $bonLivraisonVente, PDO::PARAM_INT);\n $sql->bindParam('paiement', $paiement, PDO::PARAM_INT);\n $sql->bindParam('idUser', $idUser, PDO::PARAM_INT);\n\n $sql->execute();\n\n if ($sql) {\n $success = array('status' => \"Success\", \"msg\" => \"Successfully updated\");\n $this->response($this->json($success), 200);\n }\n // If invalid inputs \"Bad Request\" status message and reason\n $error = array('status' => \"Failed\", \"msg\" => \"Invalid params \");\n $this->response($this->json($error), 400);\n } catch (Exception $ex) {\n $this->response('', $ex->getMessage()); // If no records \"No Content\" status\n }\n }\n }\n\n // If invalid inputs \"Bad Request\" status message and reason\n $error = array('status' => \"Failed\", \"msg\" => \"Invalid param\");\n $this->response($this->json($error), 400);\n }", "title": "" }, { "docid": "497ab8ee3392ec2cc2cf76172a516e5f", "score": "0.5154438", "text": "public function bindAsAdministrator();", "title": "" }, { "docid": "39f604245f1beda574c7b32679897b0a", "score": "0.5151655", "text": "public function procMenuAdminUpdateAuth()\n\t{\n\t\t$menuItemSrl = Context::get('menu_item_srl');\n\t\t$exposure = Context::get('exposure');\n\t\t$htPerm = Context::get('htPerm');\n\n\t\t$oMenuModel = getAdminModel('menu');\n\t\t$itemInfo = $oMenuModel->getMenuItemInfo($menuItemSrl);\n\t\t$args = $itemInfo;\n\n\t\t// Menu Exposure update\n\t\t// if exposure target is only login user...\n\t\tif(!$exposure)\n\t\t{\n\t\t\t$args->group_srls = '';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$exposure = explode(',', $exposure);\n\t\t\tif(in_array($exposure, array('-1','-3')))\n\t\t\t{\n\t\t\t\t$args->group_srls = $exposure;\n\t\t\t}\n\n\t\t\tif($exposure) $args->group_srls = implode(',', $exposure);\n\t\t}\n\n\t\t$output = executeQuery('menu.updateMenuItem', $args);\n\t\tif(!$output->toBool())\n\t\t{\n\t\t\treturn $output;\n\t\t}\n\n\t\t// Module Access update\n\t\tunset($args);\n\t\t$oMenuAdminModel = getAdminModel('menu');\n\t\t$menuInfo = $oMenuAdminModel->getMenu($itemInfo->menu_srl);\n\n\t\t$oModuleModel = getModel('module');\n\t\t$moduleInfo = $oModuleModel->getModuleInfoByMid($itemInfo->url, $menuInfo->site_srl);\n\n\t\t$xml_info = $oModuleModel->getModuleActionXML($moduleInfo->module);\n\n\t\t$grantList = $xml_info->grant;\n\t\tif(!$grantList) $grantList = new stdClass;\n\n\t\t$grantList->access = new stdClass();\n\t\t$grantList->access->default = 'guest';\n\t\t$grantList->manager = new stdClass();\n\t\t$grantList->manager->default = 'manager';\n\n\t\t$grant = new stdClass;\n\t\tforeach($grantList AS $grantName=>$grantInfo)\n\t\t{\n\t\t\tif(!$htPerm[$grantName])\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$htPerm[$grantName] = explode(',', $htPerm[$grantName]);\n\n\t\t\t// users in a particular group\n\t\t\tif(is_array($htPerm[$grantName]))\n\t\t\t{\n\t\t\t\t$grant->{$grantName} = $htPerm[$grantName];\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// -1 = Log-in user only, -2 = site members only, 0 = all users\n\t\t\telse\n\t\t\t{\n\t\t\t\t$grant->{$grantName}[] = $htPerm[$grantName];\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$grant->{$group_srls} = array();\n\t\t}\n\n\t\tif(count($grant))\n\t\t{\n\t\t\t$oModuleController = getController('module');\n\t\t\t$oModuleController->insertModuleGrants($moduleInfo->module_srl, $grant);\n\t\t}\n\n\t\t// recreate menu cache file\n\t\t$this->makeXmlFile($itemInfo->menu_srl);\n\t}", "title": "" }, { "docid": "7ba2aff3eb231519120e75eca1f85e93", "score": "0.51514477", "text": "function subsite_manager_can_write_to_site($user, $site) {\n\t\tif (!$user) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!$site) {\n\t\t\t$site = elgg_get_site_entity();\n\t\t}\n\n\t\tif (!elgg_instanceof($site, \"site\", Subsite::SUBTYPE, \"Subsite\")) {\n\t\t\treturn true; // not on subsite, write is always allowed on main site\n\t\t}\n\n\t\tif (subsite_manager_is_superadmin()) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif ($site->isUser()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "6488ddbc263f0801e98f9057e0ec2912", "score": "0.5150374", "text": "public function updateServer ( Auth_OAuth_Store_Server $server );", "title": "" }, { "docid": "b53ee7677edcc6601cc41dfca1c3bbcd", "score": "0.5150307", "text": "function save_profile_fields($user_id){\n update_user_meta($user_id, 'designation', $_POST['designation']);\n update_user_meta($user_id, 'video_embed', $_POST['video_embed']);\n }", "title": "" }, { "docid": "00d99aa125976e98565260746a32ff28", "score": "0.51476413", "text": "function set_is_admin ($permission)\r\n {\r\n $_SESSION[\"is_admin\"] = $permission;\r\n }", "title": "" }, { "docid": "7e683d9c114ed6b52c3aa53ebb0556b1", "score": "0.5145322", "text": "protected function editLockPermissions() {}", "title": "" }, { "docid": "b2183428197c518b527413cdcafd2166", "score": "0.51406115", "text": "public function actionSettings()\n\t{\n\t\t// using the default layout 'protected/views/layouts/main.php'\n\t\t\n\t\t\n\t\t$this->checkUser();\n\t\t\n\t\t$record = SiteUser::model()->findByAttributes(array('id'=> Yii::app()->user->id));\n\t\t\n\t\tif($record===null)\n\t\t\t\tthrow new CHttpException(404, Yii::t('app', 'Internal server error.'));\n\n\t\t\n\t\tif(isset($_POST['SiteUser']))\n\t\t{\n\t\t\t$record->attributes=$_POST['SiteUser'];\n\t\t\n\t\t\t\n\n\t\t\tModeratorLogHelper::AddToLog('edited-user-'.$record->id,'Изменены данные пользователя '.$record->email,null,$record->id);\n\t\t\tif($record->save())\n\t\t\t\t$this->redirect(array('personal'));\n\t\t}\n\t\t\n\t\t$this->render('settings',array('user'=>$record));\n\t}", "title": "" }, { "docid": "cf9d101b69625ea4b00421e40526df33", "score": "0.51403725", "text": "function sessao_write( $aKey, $aVal ){\r\n\t$aVal \t\t= urlencode( $aVal );\r\n\t$now \t\t= $GLOBALS[\"engine\"]->libertasGetDate(\"Y/m/d H:i:s\");\r\n\t\tif (!empty($_SESSION[\"SESSION_USER_IDENTIFIER\"])){\r\n\t\t\t$user_id\t= $_SESSION[\"SESSION_USER_IDENTIFIER\"];\r\n\t\t} else {\r\n\t\t\t$user_id\t= 0;\r\n\t\t}\r\n\r\n\t$sql \t\t= \"UPDATE sessions SET user_id='$user_id', DataValue = '$aVal', LastUpdated = '$now' WHERE SessionID = '$aKey' and Client = \".$GLOBALS[\"engine\"]->client_identifier;\r\n\t$GLOBALS[\"SESSION_SCRIPT\"][count($GLOBALS[\"SESSION_SCRIPT\"])] = $sql;\r\n\t$GLOBALS[\"engine\"]->call_command(\"DB_QUERY\",Array($sql));\r\n return true;\r\n}", "title": "" }, { "docid": "cc178fc6482ed40ab0fbfe9f8b5c1f61", "score": "0.5135743", "text": "public function save($values)\r\n\t{\r\n\t\t$current = Zend_Auth::getInstance()->getIdentity()->user;\r\n\t\t//se usuário não for root ou admin, assumimos que está editando a própria conta\r\n\t\tif (!isset($current->perfil['root']) && !isset($current->perfil['admin']))\r\n\t\t\t$values['id'] = Zend_Auth::getInstance()->getIdentity()->user->id;\r\n\t\t//salvamos os dados do usuário\r\n\t\tparent::save($values);\r\n\t\t//salvamos as permissões\r\n\t\tif ((isset($current->perfil['root']) || isset($current->perfil['admin'])) && isset($values['id_perfil']))\r\n\t\t\t$this->crudObj->savePerfis($values);\r\n\t}", "title": "" }, { "docid": "16808454ef34e98ae2ef2bba55add38f", "score": "0.5132191", "text": "public function checkUserSettings(){\n $data = $this->db->start()->get('*','user', array(array('id', '=', $_SESSION['_user']['id'])))->first();\n $_SESSION['_user'] = array('id' => $data->id, 'firstname' => $data->firstname, 'lastname' => $data->lastname, 'email' => $data->email, 'userLevel' => $this->getuserLevel($data->id)); \n }", "title": "" }, { "docid": "0761a644e49452248dcd247f098f6a98", "score": "0.51228756", "text": "function userCanModifyStudent( $sessionID){\r\n\t\treturn $this->getAccessLevel() > 8;\r\n\t}", "title": "" }, { "docid": "c33b4ff96d8f835328e5e2a455c21fca", "score": "0.5118547", "text": "public function testUpdateNetworkMerakiAuthUser()\n {\n }", "title": "" }, { "docid": "8b0f781c9031e0207538508d5dc048b6", "score": "0.5114919", "text": "function personal_options_update() {\n\tglobal $user_id;\n\n\t// If editing of Token2 Hardware Tokens settings has been disabled, just return\n\t$TK2HW_hidefromuser = trim( get_user_option( 'Token2HWTokens_hidefromuser', $user_id ) );\n\tif ( $TK2HW_hidefromuser == 'enabled') return;\n\n\n\t$TK2HW_enabled\t= ! empty( $_POST['TK2HW_enabled'] );\n\t$TK2HW_description\t= trim( sanitize_text_field($_POST['TK2HW_description'] ) );\n\t$TK2HW_relaxedmode\t= ! empty( $_POST['TK2HW_relaxedmode'] );\n\t$TK2HW_secret\t= trim( $_POST['TK2HW_secret'] );\n\t$TK2HW_pwdenabled\t= ! empty( $_POST['TK2HW_pwdenabled'] );\n\t$TK2HW_password\t= str_replace(' ', '', trim( $_POST['TK2HW_password'] ) );\n\t\n\tif ( ! $TK2HW_enabled ) {\n\t\t$TK2HW_enabled = 'disabled';\n\t} else {\n\t\t$TK2HW_enabled = 'enabled';\n\t}\n\n\tif ( ! $TK2HW_relaxedmode ) {\n\t\t$TK2HW_relaxedmode = 'disabled';\n\t} else {\n\t\t$TK2HW_relaxedmode = 'enabled';\n\t}\n\n\n\tif ( ! $TK2HW_pwdenabled ) {\n\t\t$TK2HW_pwdenabled = 'disabled';\n\t} else {\n\t\t$TK2HW_pwdenabled = 'enabled';\n\t}\n\t\n\t// Only store password if a new one has been generated.\n\tif (strtoupper($TK2HW_password) != 'XXXXXXXXXXXXXXXX' ) {\n\t\t// Store the password in a format that can be expanded easily later on if needed.\n\t\t$TK2HW_password = array( 'appname' => 'Default', 'password' => wp_hash_password( $TK2HW_password ) );\n\t\tupdate_user_option( $user_id, 'Token2HWTokens_passwords', json_encode( $TK2HW_password ), true );\n\t}\n\t\n\tupdate_user_option( $user_id, 'Token2HWTokens_enabled', $TK2HW_enabled, true );\n\tupdate_user_option( $user_id, 'Token2HWTokens_description', $TK2HW_description, true );\n\tupdate_user_option( $user_id, 'Token2HWTokens_relaxedmode', $TK2HW_relaxedmode, true );\n\tupdate_user_option( $user_id, 'Token2HWTokens_secret', $TK2HW_secret, true );\n\tupdate_user_option( $user_id, 'Token2HWTokens_pwdenabled', $TK2HW_pwdenabled, true );\n\n}", "title": "" }, { "docid": "42866def2f802154b2bc88ab43d7b684", "score": "0.5114694", "text": "public static function saveAdmin() {\n $result = lC_Administrators_Admin::save($_GET['aid'], $_GET);\n if (!isset($result['rpcStatus'])) {\n $result['rpcStatus'] = RPC_STATUS_SUCCESS;\n }\n\n echo json_encode($result);\n }", "title": "" }, { "docid": "9082eae40356c75cb257a87382007038", "score": "0.5107742", "text": "function control_access($sKey, $id){ \r\n\t$permiso=false;\r\n\t$permisosAdmin=$_SESSION[\"R0l3sp3rM1s0s\"];\r\n\tif($permisosAdmin[$sKey][$id]==\"SI\"){\r\n\t\t$permiso=true;\r\n\t}\r\n\treturn $permiso;\r\n}", "title": "" }, { "docid": "a675334118bba8437a40543b9ba0aa32", "score": "0.5106777", "text": "public function testUpdateServerUsername(){\n \n //Used to to login to get token\n $token = $this->login();\n \n $user = User::where('email', $this->emailOfTestUser)->first();\n $data = [\n \"username\"=> \"new_username\", \n ];\n $response = $this->actingAs($user, 'api')->json('PUT', \"/api/server/update/1?token=$token\", $data);\n \n $response->seeStatusCode(200);\n $response->seeJsonStructure([\n 'server' => \n [\n 'id',\n 'created_at',\n 'updated_at',\n 'connection_name',\n 'connection_method',\n 'hostname',\n 'port',\n 'username',\n 'user_id'\n ]\n ]);\n\n }", "title": "" }, { "docid": "899422962a430c72292b653971357e97", "score": "0.5106188", "text": "public function testUpdateUser()\n {\n }", "title": "" }, { "docid": "aff60df0c4f77a9ecc5e8353eabbd1ab", "score": "0.5093591", "text": "protected function applyUserUpdatePermission()\n {\n return TRUE;\n }", "title": "" }, { "docid": "f2762eca1ab74a7e4673b71046bbf157", "score": "0.50929123", "text": "static function set_sharing_permissions($user_id, $word_list_id, $email, $permissions) {\n $share_with_id = self::email2id($email);\n if ($share_with_id == $user_id) return -1;\n\n global $con;\n $sql = \"SELECT COUNT(`id`) AS 'count' FROM `share` WHERE `user` = '\".$share_with_id.\"' AND `list` = '\".$word_list_id.\"';\";\n $query = mysqli_query($con, $sql);\n $count = mysqli_fetch_object($query)->count;\n if ($count == 0) {\n $sql = \"INSERT INTO `share` (`user`, `list`, `permissions`, `time`) VALUES (\".$share_with_id.\", \".$word_list_id.\", \".$permissions.\", \".time().\");\";\n $query = mysqli_query($con, $sql);\n return 1;\n } else {\n $sql = \"UPDATE `share` SET `permissions` = $permissions, `time` = \".time().\" WHERE `list` = \".$word_list_id.\" AND (`user` = \".$share_with_id.\");\";\n $query = mysqli_query($con, $sql);\n return 2;\n }\n return 0;\n }", "title": "" }, { "docid": "5aa02a3f532a5b3f06931dca7af6cef2", "score": "0.50927365", "text": "public function edit(Server $server)\n {\n //\n }", "title": "" }, { "docid": "9a516070cb5d415463966d79c67c9b9b", "score": "0.50899535", "text": "public function actionPersonal() {\n if (Yii::app()->user->isGuest)\n throw new CHttpException(403, Yii::t(\"UserAdminModule.front\", \"You are not authorized to perform this action.\"));\n\n $user = User::model()->active()->findByPk((int) Yii::app()->user->id);\n\n if (!$user)\n throw new CHttpException(403, Yii::t(\"UserAdminModule.front\", \"You are not authorized to perform this action.\"));\n\n\n //=========== Here you can implement some logic (like changing password) ===========\n //----------------------------------------------------------------------------------\n\n if (isset($_POST['User'])) {\n $user->attributes = $_POST['User'];\n\n // Additional check. Only superadmin can create superadmins\n if (User::isSuperAdmin()) {\n // Superadmin can't decrease his own access level\n if (Yii::app()->user->id == $id)\n $user->is_superadmin = 1;\n else\n $user->is_superadmin = $_POST['User']['is_superadmin'];\n }\n else {\n $user->is_superadmin = 0;\n }\n\n if ($user->save()) {\n Yii::app()->user->setFlash('profileSaved', Yii::t('ui', 'Profile updated!!'));\n $this->refresh();\n }\n }\n $this->render('personal', compact('user'));\n }", "title": "" }, { "docid": "64df89a107415d98a8f37e2329785612", "score": "0.50869805", "text": "private function _saveSeo() {\r\n\r\n // get plugins details\r\n $plugin = JPluginHelper::getPlugin( 'system', 'shmobile');\r\n $params = new JRegistry();\r\n $params->loadString( $plugin->params);\r\n\r\n // get current values\r\n $defaultEnabled = $params->get('mobile_switch_enabled');\r\n $defaultTemplate = $params->get('mobile_template');\r\n\r\n // save mobile template switcher params, stored in system plugin\r\n $mobile_switch_enabled = JRequest::getBool( 'mobile_switch_enabled', $defaultEnabled);\r\n $mobile_template = JRequest::getCmd( 'mobile_template', $defaultTemplate);\r\n\r\n // set params\r\n $params->set('mobile_switch_enabled', $mobile_switch_enabled);\r\n $params->set('mobile_template', $mobile_template);\r\n $textParams = (string) $params;\r\n\r\n try {\r\n ShlDbHelper::update( '#__extensions', array('params' => $textParams), array( 'element' => 'shmobile', 'folder' => 'system', 'type' => 'plugin'));\r\n } catch (Exception $e) {\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "dc5deb9e7455f944d496f1bd178ac891", "score": "0.50862795", "text": "private function setUser() {\n if (Request::has(\"include-user-read\") && Request::input(\"include-user-read\") === \"true\") { $permissionRead = 4; } else { $permissionRead = 0; }\n if (Request::has(\"include-user-write\") && Request::input(\"include-user-write\") === \"true\") { $permissionWrite = 2; } else { $permissionWrite = 0; }\n if (Request::has(\"include-user-execute\") && Request::input(\"include-user-execute\") === \"true\") { $permissionExecute = 1; } else { $permissionExecute = 0; }\n return $permissionRead + $permissionWrite + $permissionExecute;\n }", "title": "" }, { "docid": "f8326a74ee45ed3fd5a4743c941c5545", "score": "0.5085911", "text": "function save_user($user) {\n global $USER_KEYS;\n file_put_contents(\"data/korisnici.txt\", my_serialize($user, $USER_KEYS), FILE_APPEND | LOCK_EX);\n}", "title": "" }, { "docid": "4b397131a76d4897653271fd889af22b", "score": "0.5081131", "text": "function saveUser($sVars)\n{\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/config/config.php\");\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/class/autoload.php\");\n\n // Récupérer les données\n $aData = json_decode($sVars,true);\n $db = new cMariaDb($Cfg);\n if( $aData[\"User\"][\"id\"] == 0 ){\n // id=0 > Ajoute\n $Columns = \"\";\n $Values = \"\";\n foreach( $aData[\"User\"] as $key => $value )\n {\n if( $key != \"id\"){\n $Columns .= $key.\",\";\n $Values .= \"'\".addslashes($value).\"',\"; \n }\n if( $key == \"sEmail\"){\n $Columns .= \"pMotPasse,\";\n $Values .= \"SHA1('\".$value.\"'),\";\n }\n }\n $Columns = substr($Columns,0,-1);\n $Values = substr($Values,0,-1);\n $sSQL = \"INSERT INTO sys_user ($Columns,dDateInscription) VALUES ($Values,CURRENT_TIMESTAMP);\";\n $aTmp = $db->Query($sSQL);\n $id = $db->getLastId();\n } else {\n $Set = \"\";\n foreach( $aData[\"User\"] as $key => $value )\n {\n if( $key != \"id\"){\n $Set .= $key.\"='\".addslashes($value).\"',\";\n }\n }\n $Set = substr($Set,0,-1);\n $id = $aData[\"User\"][\"id\"];\n $sSQL = \"UPDATE sys_user SET $Set WHERE id=$id;\";\n $aTmp = $db->Query($sSQL);\n }\n // Méthode pas très élégante, mais il faudrait faire un delta entre tableaux \n // et agir en conséquence... \n // On supprime tout et on insert\n // Sauvegarde des droits ($aData[\"Rights\"])\n $sSQL = \"DELETE FROM sys_user_rights WHERE idUser=$id\";\n $db->Query($sSQL);\n foreach($aData[\"Rights\"] as $Right) {\n $sSQL = \"INSERT INTO sys_user_rights SET idRights=$Right, idUser=$id;\";\n $db->Query($sSQL);\n }\n\n // $aRet = [\"Errno\" => 2, \n // \"ErrMsg\" => $sTmp, \n // \"SQL\" => $sSQL ];\n\n return [\"Errno\" => 0, \"ErrMsg\" => \"OK\", \"SQL\" => $sSQL ];\n\n header('content-type:application/json');\n echo json_encode($aRet); \n}", "title": "" }, { "docid": "1e5ba2910a3178b1691b0f9a936a18fd", "score": "0.5067724", "text": "public function updateUserInfo($allowNewUser = true, $level = null)\n\t{\n \n\t\t$state = $this->getStateVariables();\n\t\t$user = JFactory::getUser();\n \n if($user->guest) {\n \n $user->id = 0;\n }\n \n \n \n \n\t\t$user = $this->getState('user', $user);\n \n \n \n\n\t\tif(($user->id == 0) && !$allowNewUser) {\n\t\t\t// New user creation is not allowed. Sorry.\n\t\t\treturn false;\n\t\t}\n\n\t\tif($user->id == 0) {\n\t\t\t// Check for an existing, blocked, unactivated user with the same\n\t\t\t// username or email address.\n\t\t\t$user1 = FOFModel::getTmpInstance('Jusers','AkeebasubsModel')\n\t\t\t\t->username($state->username)\n\t\t\t\t->block(1)\n\t\t\t\t->getFirstItem();\n \n\t\t\t$user2 = FOFModel::getTmpInstance('Jusers','AkeebasubsModel')\n\t\t\t\t->email($state->email)\n\t\t\t\t->block(1)\n\t\t\t\t->getFirstItem();\n\t\t\t$id1 = $user1->id;\n\t\t\t$id2 = $user2->id;\n \n \n\t\t\t// Do we have a match?\n\t\t\tif($id1 || $id2) {\n\t\t\t\tif($id1 == $id2) {\n\t\t\t\t\t// Username and email match with the blocked user; reuse that\n\t\t\t\t\t// user, please.\n\t\t\t\t\t$user = JFactory::getUser($user1->id);\n\t\t\t\t} elseif($id1 && $id2) {\n\t\t\t\t\t// We have both the same username and same email, but in two\n\t\t\t\t\t// different users. In order to avoid confusion we will remove\n\t\t\t\t\t// user 2 and change user 1's email into the email address provided\n\n\t\t\t\t\t// Remove the last subscription for $user2 (it will be an unpaid one)\n\t\t\t\t\t$submodel = FOFModel::getTmpInstance('Subscriptions','AkeebasubsModel');\n\t\t\t\t\t$substodelete = $submodel\n\t\t\t\t\t\t->user_id($id2)\n\t\t\t\t\t\t->getList();\n\t\t\t\t\tif(!empty($substodelete)) foreach($substodelete as $subtodelete) {\n\t\t\t\t\t\t$subtable = $submodel->getTable();\n\t\t\t\t\t\t$subtable->delete($subtodelete->akeebasubs_subscription_id);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Remove $user2 and set $user to $user1 so that it gets updated\n\t\t\t\t\t$user2->delete($id2);\n\t\t\t\t\t$user = JFactory::getUser($user1->id);\n\t\t\t\t\t$user->email = $state->email;\n\t\t\t\t\t$user->save(true);\n\t\t\t\t} elseif(!$id1 && $id2) {\n\t\t\t\t\t// We have a user with the same email, but the wrong username.\n\t\t\t\t\t// Use this user (the username is updated later on)\n\t\t\t\t\t$user = JFactory::getUser($user2->id);\n\t\t\t\t} elseif($id1 && !$id2) {\n\t\t\t\t\t// We have a user with the same username, but the wrong email.\n\t\t\t\t\t// Use this user (the email is updated later on)\n\t\t\t\t\t$user = JFactory::getUser($user1->id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(is_null($user->id) || ($user->id == 0)) {\n\t\t\t// CREATE A NEW USER\n\t\t\t$params = array(\n\t\t\t\t'name'\t\t\t=> $state->name,\n\t\t\t\t'username'\t\t=> $state->username,\n\t\t\t\t'email'\t\t\t=> $state->email,\n\t\t\t\t'password'\t\t=> $state->password,\n\t\t\t\t'password2'\t\t=> $state->password2\n\t\t\t);\n\n\t\t\t$user = JFactory::getUser(0);\n\n\t\t\tJLoader::import('joomla.application.component.helper');\n\t\t\t$usersConfig = JComponentHelper::getParams( 'com_users' );\n\t\t\t$newUsertype = $usersConfig->get( 'new_usertype' );\n\n\t\t\tif(version_compare(JVERSION, '1.6.0', 'ge')) {\n\t\t\t\t// get the New User Group from com_users' settings\n\t\t\t\tif(empty($newUsertype)) $newUsertype = 2;\n\t\t\t\t$params['groups'] = array($newUsertype);\n\t\t\t} else {\n\t\t\t\tif (!$newUsertype) {\n\t\t\t\t\t$newUsertype = 'Registered';\n\t\t\t\t}\n\t\t\t\t$acl = JFactory::getACL();\n\t\t\t\t$params['gid'] = $acl->get_group_id( '', $newUsertype, 'ARO' );\n\t\t\t}\n\n\t\t\t$params['sendEmail'] = 0;\n\n\t\t\t// Set the user's default language to whatever the site's current language is\n\t\t\tif(version_compare(JVERSION, '3.0', 'ge')) {\n\t\t\t\t$params['params'] = array(\n\t\t\t\t\t'language'\t=> JFactory::getConfig()->get('language')\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\t$params['params'] = array(\n\t\t\t\t\t'language'\t=> JFactory::getConfig()->getValue('config.language')\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// We always block the user, so that only a successful payment or\n\t\t\t// clicking on the email link activates his account. This is to\n\t\t\t// prevent spam registrations when the subscription form is abused.\n\t\t\tJLoader::import('joomla.user.helper');\n\t\t\t$params['block'] = 1;\n\t\t\t$params['activation'] = JFactory::getApplication()->getHash( JUserHelper::genRandomPassword() );\n\n\t\t\t$userIsSaved = false;\n\t\t\t$user->bind($params);\n\t\t\t$userIsSaved = $user->save();\n\t\t} else {\n\t\t\t// UPDATE EXISTING USER\n\n\t\t\t// Remove unpaid subscriptions on the same level for this user\n\t\t\t$unpaidSubs = FOFModel::getTmpInstance('Subscriptions','AkeebasubsModel')\n\t\t\t\t->user_id($user->id)\n\t\t\t\t->paystate('N','X')\n\t\t\t\t->getItemList();\n\t\t\tif(!empty($unpaidSubs)) foreach($unpaidSubs as $unpaidSub) {\n\t\t\t\t$table = FOFModel::getTmpInstance('Subscriptions','AkeebasubsModel')->getTable();\n\t\t\t\t$table->delete($unpaidSub->akeebasubs_subscription_id);\n\t\t\t}\n\n\t\t\t// Update existing user's details\n\t\t\t$userRecord = FOFModel::getTmpInstance('Jusers','AkeebasubsModel')\n\t\t\t\t->setId($user->id)\n\t\t\t\t->getItem();\n\n\t\t\t$updates = array(\n\t\t\t\t'name'\t\t\t=> $state->name,\n\t\t\t\t'email'\t\t\t=> $state->email\n\t\t\t);\n\t\t\tif(!empty($state->password) && ($state->password = $state->password2)) {\n\t\t\t\tJLoader::import('joomla.user.helper');\n\t\t\t\t$salt = JUserHelper::genRandomPassword(32);\n\t\t\t\t$pass = JUserHelper::getCryptedPassword($state->password, $salt);\n\t\t\t\t$updates['password'] = $pass.':'.$salt;\n\t\t\t}\n\t\t\tif(!empty($state->username)) {\n\t\t\t\t$updates['username'] = $state->username;\n\t\t\t}\n\t\t\t$userIsSaved = $userRecord->save($updates);\n\t\t}\n\n\t\t// Send activation email for free subscriptions if confirmfree is enabled\n\t\tif($user->block && ($level->price < 0.01)) {\n\t\t\tif(!class_exists('AkeebasubsHelperCparams')) {\n\t\t\t\trequire_once JPATH_ADMINISTRATOR.'/components/com_akeebasubs/helpers/cparams.php';\n\t\t\t}\n\t\t\t$confirmfree = AkeebasubsHelperCparams::getParam('confirmfree', 0);\n\t\t\tif($confirmfree) {\n\t\t\t\t// Send the activation email\n\t\t\t\tif(!isset($params)) $params = array();\n\t\t\t\t$this->sendActivationEmail($user, $params);\n\t\t\t}\n\t\t}\n\n\t\tif(!$userIsSaved) {\n\t\t\tJError::raiseWarning('', JText::_( $user->getError())); // ...raise a Warning\n\t\t\treturn false;\n\t\t} else {\n\t\t\t$this->setState('user', $user);\n\t\t}\n\n\t\treturn $userIsSaved;\n\t}", "title": "" }, { "docid": "e59c5482555e6840f73d36fd2bda0505", "score": "0.50629866", "text": "function save()\n {\n plugin::save();\n\n\n /* Write back to ldap */\n $ldap= $this->config->get_ldap_link();\n $ldap->cd($this->dn);\n $this->cleanup();\n $ldap->modify ($this->attrs); \n \n /* Log last action */\n if($this->initially_was_account){\n new log(\"modify\",\"users/\".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());\n }else{\n new log(\"create\",\"users/\".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());\n }\n\n if (!$ldap->success()){\n msg_dialog::display(_(\"LDAP error\"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));\n }\n\n /* Optionally execute a command after we're done */\n if ($this->initially_was_account == $this->is_account){\n if ($this->is_modified){\n $this->handle_post_events(\"modify\",array(\"uid\" => $this->uid));\n }\n } else {\n $this->handle_post_events(\"add\",array(\"uid\" => $this->uid));\n }\n\n }", "title": "" }, { "docid": "0a2db87706113dbffdaac7c12ec0bf3c", "score": "0.50622225", "text": "function saveWriterQuiz(){\r\n if (isset($_SESSION['subject']) && isset($_SESSION['quiznum']) && isset($_SESSION['save'])){\r\n $user=$_SESSION['user']; \r\n $quizID=$_SESSION['subject'].$_SESSION['quiznum'] ;\r\n $score=$_SESSION[\"save\"];\r\n $sql=\"UPDATE quiz SET $quizID = $score WHERE uniqueID='\".$user->getUID().\"'\";\r\n write($sql,1);\r\n }\r\n }", "title": "" }, { "docid": "a70cd9bce59bc4ee5eb4becfd6a4e0f5", "score": "0.50586617", "text": "function ipcObjSetpass($fp, $type, $user, $pass, &$err)\n{\n\tfputs($fp, \"ALTER OBJECT \" . $type . \" \" . $user . \" PASS \" . $pass . \"\\n\");\n####\n\tsleep(1);\n\twhile(1) {\n\t\t$l = fgets($fp, 1025);\n\t\tif (feof($fp)) {\n\t\t\t$err = \"Unable to set password.\";\n\t\t\treturn 0;\n\t\t}\n\n\t\tif (empty($l)) {\n\t\t\tcontinue;\n\t\t}\n\n\t\t$x = split(' ', trim($l));\n\t\t#echo \"[\" . trim($l) . \"]<br>\\n\";\n\n\t\tif ($x[0] == \"OK\" && $x[1] == \"ALTER\" && $x[2] == \"OBJECT\") {\n\t\t\t# echo \"Authentication successful.\\n\";\n\t\t\treturn 1;\n\t\t} else if ($x[0] == \"OK\" || $x[0] == \"YOU\") {\n\t\t} else if ($x[0]) {\n\t\t\t$err = \"Internal error\\n\";\n\t\t\treturn 0;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "42b5ca5e1a54307c621f3fe5c721de78", "score": "0.50568974", "text": "function saveProfile()\n{\n\t$user = request('username');\n\t$pass = request('password');\n\t\n\tif(empty($user) && empty($pass))\n\t\treturn 'err';\n\t\n\t$db = databaseConnction();\n\n\t$db->where(\"ID\", '1');\n\t\t$update = $db->update(\"my_admin\", [ 'user' => $user ]);\n\t\n if ($update)\n\t{\n\t\treturn 'ok';\n\t}\n\telse return 'err';\n}", "title": "" }, { "docid": "ac57ca0cf3dd136fd131e1afbbd0d87f", "score": "0.50554883", "text": "function modeloUserUpdate ($userid,$userdat){\n if ( isset($_SESSION['tusuarios'][$userid])){\n $_SESSION['tusuarios'][$userid]= $userdat;\n \n $user = new Usuario();\n $user->id = $userid;\n $user->nombre = $userdat['nombre'];\n $user->password = $userdat['password'];\n $user->correo = $userdat['correo'];\n $user->plan = $userdat['plan'];\n $user->estado = $userdat['estado'];\n $db = AccesoDatos::getModelo();\n $db->modUsuario($user);\n \n echo \"<script>modificarUser();</script>\"; \n\n }\n return false;\n}", "title": "" }, { "docid": "1da05d0803b6cae9a96e073527c0d7ca", "score": "0.5054349", "text": "function canUserEditStunde($id) {\n\t$db = $GLOBALS['db'];\n\t$db->query(stunden_sql($id,1));\n\twhile($r = $db->results()) {\n\t\t$uid = $r['uid'];\n\t}\n\treturn (($_SESSION['myid']==$uid || canEnterBinary('0.0.0.0.0.0.0.0.0.1'))?true:false);\n}", "title": "" }, { "docid": "bd84501f6ddf3460841a67cc59306afb", "score": "0.5054205", "text": "function userCanModifyUser( $sessionID, $username ) {\r\n\t\treturn $this->getAccessLevel() > 9;\r\n\t}", "title": "" }, { "docid": "a5f61cd8f1142f208c318c3eecf15bab", "score": "0.5047888", "text": "public function saveUserPrefs($userId);", "title": "" }, { "docid": "14c455a26cbbf59294825e4179f3cd04", "score": "0.50425595", "text": "function edit_user_profile() {\n\tglobal $user_id;\n\t$TK2HW_enabled = trim( get_user_option( 'Token2HWTokens_enabled', $user_id ) );\n\t$TK2HW_hidefromuser = trim( get_user_option( 'Token2HWTokens_hidefromuser', $user_id ) );\n\t\n\t$TK2HW_relaxedmode = trim( get_user_option( 'Token2HWTokens_relaxedmode', $user_id ) );\n\t\n\t\n\techo \"<h3>\".__('Token2 Hardware Tokens Settings','token2-hwtokens').\"</h3>\\n\";\n\techo \"<table class=\\\"form-table\\\">\\n\";\n\techo \"<tbody>\\n\";\n\n\t \n\n\techo \"<tr>\\n\";\n\techo \"<th scope=\\\"row\\\">\".__('Active','token2-hwtokens').\"</th>\\n\";\n\techo \"<td>\\n\";\n\techo \"<div><input name=\\\"TK2HW_enabled\\\" id=\\\"TK2HW_enabled\\\" class=\\\"tog\\\" type=\\\"checkbox\\\"\" . checked( $TK2HW_enabled, 'enabled', false ) . \"/>\\n\";\n\techo \"</td>\\n\";\n\techo \"</tr>\\n\";\n\t\n\t\n\t\techo \"<tr>\\n\";\n\techo \"<th scope=\\\"row\\\">\".__('Secret key','token2-hwtokens').\"</th>\\n\";\n\techo \"<td>\\n\";\n\techo \"<div><input name=\\\"TK2HW_secret\\\" id=\\\"TK2HW_secret\\\" size=64 class=\\\"tog\\\" type=\\\"text\\\" value=\\\"\" . trim( get_user_option( 'Token2HWTokens_secret', $user_id ) ) . \"\\\" />\\n\";\n\techo \"</td>\\n\";\n\techo \"</tr>\\n\";\n\t\n\t\n\t\techo \"<tr>\\n\";\n\t\techo \"<th scope=\\\"row\\\">\".__( 'Relaxed mode', 'token2-hwtokens' ).\"</th>\\n\";\n\t\techo \"<td>\\n\";\n\t\techo \"<input name=\\\"TK2HW_relaxedmode\\\" id=\\\"TK2HW_relaxedmode\\\" class=\\\"tog\\\" type=\\\"checkbox\\\"\" . checked( $TK2HW_relaxedmode, 'enabled', false ) . \"/><span class=\\\"description\\\">\".__(' Relaxed mode allows for more time drifting on your phone clock (&#177;4 min).','token2-hwtokens').\"</span>\\n\";\n\t\techo \"</td>\\n\";\n\t\techo \"</tr>\\n\";\n\t\t\n\t\t\n\n\techo \"</tbody>\\n\";\n\techo \"</table>\\n\";\n}", "title": "" }, { "docid": "83129504d9e5ce2487904d6cc9901675", "score": "0.5040575", "text": "public function getWithPermissionsUsingUserAndServer(int $user, int $server): Subuser;", "title": "" }, { "docid": "60c3ac18c60b9b5691bac3ea3b29b799", "score": "0.50370747", "text": "public function save()\n\t{\n\t\tparent::save();\n\t\t\n\t\tif ( $this instanceof \\IPS\\Node\\Permissions and $this->_permissions !== NULL and $this->_permissions != $this->_originalPermissions )\n\t\t{\n\t\t\tif ( !isset( $this->_permissions['perm_id'] ) )\n\t\t\t{\n\t\t\t\tforeach ( array( 'app' => static::$permApp, 'perm_type' => static::$permType, 'perm_type_id' => $this->_id ) as $k => $v )\n\t\t\t\t{\n\t\t\t\t\tif ( !isset( $this->_permissions[ $k ] ) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->_permissions[ $k ] = $v;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\\IPS\\Db::i()->replace( 'core_permission_index', $this->_permissions );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\\IPS\\Db::i()->update( 'core_permission_index', $this->_permissions, array( 'perm_id=?', $this->_permissions['perm_id'] ) );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "934cc3003a158a87c87058c1c63445ac", "score": "0.50363123", "text": "public function setoptionsAction()\n\t{\n\t\t$response = new Response('404 Not Found!', 404, array('content-type' => 'text/plain'));\n\t\tif ($this->getRequest()->getMethod() === 'POST')\n\t\t{\n\t\t\t$mydata = $this->getRequest()->request->get('data');\n\t\t\tif($mydata)\n\t\t\t{\n\t\t\t\t$fname = $mydata['firstname'];\n\t\t\t\t$lname = $mydata['lastname'];\n\t\t\t\t$mail = $mydata['email'];\n\t\t\t\t$twitter = $mydata['tweet'];\n\t\t\t\t$oldpass = $mydata['old_pass'];\n\t\t\t\t$newpass = $mydata['new_pass'];\n\t\t\t\t$confirm_pass = $mydata['confirm_pass'];\n\n\t\t\t\t$name = $this->container->get('security.context')->getToken()->getUser()->getUsername();\n\t\t\t\t$em = $this->getDoctrine()->getEntityManager();\n\t\t\t\t$user = $em->getRepository('AceExperimentalUserBundle:ExperimentalUser')->findOneByUsername($name);\n\n\t\t\t\t//update object - no checks atm\n\t\t\t\t$user->setFirstname($fname);\n\t\t\t\t$user->setLastname($lname);\n\t\t\t\t$user->setTwitter($twitter);\n\n\t\t\t\t//set isvalid email check\n\t\t\t\t//$emailConstraint = new Email();\n\t\t\t\t//$emailConstraint->message = 'Email address is invalid or already in use';\n\t\t\t\t//$emailConstraint->pattern = '/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$/';\n\t\t\t\t$emailConstraint = new Regex( array(\n\t\t\t\t\t'pattern' => '/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$/',\n\t\t\t\t\t'match' => true,\n\t\t\t\t\t'message' => 'Email address is invalid or already in use'\n\t\t\t\t\t));\n\n\t\t\t\t$errorList = $this->get('validator')->validateValue($mail, $emailConstraint);\n\n\t\t\t\tif(count($errorList)==0)\n\t\t\t\t{\n\t\t\t\t\t$user->setEmail($mail);\n\t\t\t\t\t$response->setContent('OK');\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t$response->setContent($errorList[0]->getMessage());\n\n\t\t\t\t//TODO:hash the password\n\n\t\t\t\tif($oldpass){\n\t\t\t\t\t$encoder_service = $this->get('security.encoder_factory');\n\t\t\t\t\t$encoder = $encoder_service->getEncoder($user);\n\t\t\t\t\t$encoded_oldpass = $encoder->encodePassword($oldpass, $user->getSalt());\n\t\t\t\t\tif ($user->getPassword()===$encoded_oldpass){\n\t\t\t\t\t\t$user->setPassword($encoder->encodePassword($newpass, $user->getSalt()));\n\t\t\t\t\t\t$response->setContent('OK, Password Updated');\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t$response->setContent('OK, Password Not Updated');\n\t\t\t\t}\n\n\t\t\t\t//$response->setContent('OK');\n\t\t\t\t$em->flush();\n\n\t\t\t\t$response->setStatusCode(200);\n\t\t\t\t$response->headers->set('Content-Type', 'text/html');\n\t\t\t}\n\t\t\treturn $response;\n\t\t}\n\t\telse\n\t\t\tthrow $this->createNotFoundException('No POST data!');\n\t}", "title": "" }, { "docid": "62b3856139d8b663608364db4d5e32ef", "score": "0.5034115", "text": "function saveSecurityModel(&$obj) {\n\t\tglobal $g_sm_session_id;\n\t\t$_SESSION[$g_sm_session_id] = $obj;\n\t}", "title": "" }, { "docid": "12c87f4e58905150b765f877cade002b", "score": "0.50334233", "text": "function save_settings()\n\t{\n\t\tglobal $DB, $IN, $LANG, $PREFS, $SESS;\n\n\t\t$site_id = $PREFS->core_ini['site_id'];\n\t\t$notify = $IN->GBL('mu_notify', 'POST');\n\t\t$recipients = $IN->GBL('mu_recipients', 'POST');\n\t\t$subject = $IN->GBL('mu_subject', 'POST');\n\t\t$template = $IN->GBL('mu_template', 'POST');\n\n\t\t$settings = array();\n\n\t\t$settings[$site_id] = array(\n\t\t\t'notify' => $notify,\n\t\t\t'recipients' => explode(',', $recipients),\n\t\t\t'subject' => $subject,\n\t\t\t'template' => $template\n\t\t);\n\n\t\t$query = $DB->update_string('exp_pur_member_utilities_settings', array('settings' => addslashes(serialize($settings))), \"id = '1'\");\n\n\t\t$DB->query($query);\n\n\t\t$this->home_page($msg = $LANG->line('pur_member_utilities_saved'));\n\n\t}", "title": "" }, { "docid": "91ba27b497bba5ad55d8aae3b42cde7d", "score": "0.5032371", "text": "function editUser ( $userName, $updatedUserDetails) {\n\n\t$db = $_SESSION['db'];\n\t$encryptedPassword = encryptPassword($updatedUserDetails[\"password\"]);\n\n\tif(queryUser (\"David\")){\n\t\techo(\"Insufficient access level to modify this user.<br>\");\n\t\treturn false;\n\t}\t\t\n\t\n\tif ($_SESSION['UAC_Level'] == \"David\" || $_SESSION['UAC_Level'] == \"Admin\"){\n\t\tforeach ($updatedUserDetails as $key => $value) {\n\t\t\t\n\t\t\t$sql = \"UPDATE Users SET {$key}='{$value}' WHERE userName='{$userName}'\";\n\t\t\t//echo $sql . \"<br>\";\n\t\t\tif (mysqli_query($db, $sql)){\n\t\t\t\t//return true;\n\t\t\t} else {\n\t\t\t\techo $key;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\t\n\t\treturn true;\t\t\n\t}\n\techo(\"Access level insuficient.\");\n\treturn false;\t\n\n }", "title": "" }, { "docid": "2161ca49b85f59dd1ab09d3c4a6110dc", "score": "0.50303465", "text": "public function change_user_opt()\n {\n require AJAX_DIR . '/change_user_opt.php';\n }", "title": "" }, { "docid": "1f37ac95a0b6487ea973cc27ad6bdf77", "score": "0.5025728", "text": "public function saveMod() {\n\t\t$sql_query = \"INSERT INTO usuarios(Email, Nombre, Fecha_Nacimiento, Passwd ,Rol)\n\t\tVALUES(?, ?, ?, ?, ?);\";\n\t\t$stmt = $this->connection->prepare($sql_query);\n\t\t$stmt->bind_param('sssss',$param_email, $param_name, $param_date, $hashed_psswd, $param_rol);\n\t\t$param_name = \"moderador1\";\n\t\t$param_email = \"moderador@kadede.es\";\n\t\t$param_date = \"1970-01-01\";\n\t\t$param_rol = \"mod\";\n\t\t$hashed_psswd = password_hash(\"123\", PASSWORD_DEFAULT);\n\t\t$success = $stmt->execute();\n\t\tif(!$success) {\n\t\t\techo(\"Error al intentar insertar en BD\");\n\t\t}\n\t}", "title": "" }, { "docid": "9c9603aeaa50ba2ff040e7624d694d86", "score": "0.5020936", "text": "function vesta_ChangePassword($params) {\n\n // Execute only if there is assigned server\n if ($params[\"server\"] == 1) {\n\n // Prepare variables\n $postvars = array(\n 'user' => $params[\"serverusername\"],\n 'password' => $params[\"serverpassword\"],\n 'hash' => $params[\"serveraccesshash\"],\n 'cmd' => 'v-change-user-password',\n 'arg1' => $params[\"username\"],\n 'arg2' => $params[\"password\"]\n );\n $postdata = http_build_query($postvars);\n\n // Change user package\n $curl = curl_init();\n curl_setopt($curl, CURLOPT_URL, 'https://' . $params[\"serverhostname\"] . ':8083/api/');\n curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);\n curl_setopt($curl, CURLOPT_POST, true);\n curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata);\n $answer = curl_exec($curl);\n }\n\n\tlogModuleCall('vesta','ChangePassword','https://'.$params[\"serverhostname\"].':8083/api/'.$postdata,$answer);\n\n if($answer == 'OK') {\n $result = \"success\";\n } else {\n $result = $answer;\n }\n\n return $result;\n}", "title": "" }, { "docid": "d9acd37a755a3a74bada2ac7e6920c75", "score": "0.50188684", "text": "private function allowModify()\n { \n if($this->viewVar['loggedUserRole'] <= 40 )\n {\n return TRUE;\n }\n else\n {\n return FALSE;\n }\n }", "title": "" }, { "docid": "ac29cdbbc1508296c77fefeb58db94dc", "score": "0.50182587", "text": "public function executeUpdate()\n {\n \tif ($this->getRequest()->getMethod() != sfRequest::POST)\n \t {\n \t \t$this->forward404();\n\t }\n\t$this->subscriber = $this->getUser()->getSubscriber();\n\t$this->forward404Unless($this->subscriber);\n\t\n\t//Update the users password\n\t\n\tif ($this->getRequestParameter('pass1')) \n\t{\n\t\t$this->subscriber->setUserPswd($this->getRequestParameter('pass1'));\n\t}\n\t\n\t//Update the users email\n\t\n\tif ($this->getRequestParameter('user_email'))\n\t{\n\t\t$this->subscriber->SetUserEmail($this->getRequestParameter('user_email'));\n\t}\n\t\n\tif ($this->getRequestParameter('user_about'))\n\t{\n\t\t$this->subscriber->setUserAbout($this->getRequestParameter('user_about'));\n\t}\n \t$this->subscriber->save();\n \t$this->redirect('@user_profile?login='.$this->subscriber->getUserLogin());\n\n }", "title": "" }, { "docid": "0d20c90f9b4b500496e6e74c5238ae7f", "score": "0.5017166", "text": "private function doTheEdit(){\n\t\t\t// a \"max_input_vars\" limitation. By pass it and re-process\n\t\t\tif( isset($_POST['permissions']) ){\n\t\t\t\t$post_data = explode( \"&\", file_get_contents( 'php://input' ) );\n\t\t\t\t$parsed_data = array();\n\n\t\t\t\tforeach($post_data as $post_datum){\n\t\t\t\t\t$pair = explode( \"=\", $post_datum );\n\n\t\t\t\t\t$parsed_data[urldecode( $pair[0] )] = urldecode( $pair[1] );\n\t\t\t\t}\n\n\t\t\t\t$new_post = array();\n\n\t\t\t\tforeach($parsed_data as $key => $value){\n\t\t\t\t\t$keys = preg_split( '/(?:\\[|\\])+/', $key, -1, PREG_SPLIT_NO_EMPTY );\n\n\t\t\t\t\t$this->insertValueByKeys( $new_post, $keys, $value );\n\t\t\t\t}\n\n\t\t\t\t$_POST = $new_post;\n\n\t\t\t\t$this->__actionEdit();\n\t\t\t}\n\t\t}", "title": "" } ]
5a0ea7fcc394b10004dbaae5fbbf745e
Get list of all publishers declared in the system.
[ { "docid": "1ceade685ed445e0999fb1ab52eb18af", "score": "0.8652874", "text": "public function getPublishers();", "title": "" } ]
[ { "docid": "ebe41ee78a3748df08d18419d7861425", "score": "0.64649624", "text": "public function index(Request $request)\n {\n return $publishers = Publisher::all();\n }", "title": "" }, { "docid": "d8fb55bc45193a37dabe7d545ba25eed", "score": "0.62949234", "text": "public function getPresenters()\n {\n return $this->_presenters;\n }", "title": "" }, { "docid": "15ce9f672e086ee55f4ba0c8e12baced", "score": "0.6138474", "text": "public function getAllPublished();", "title": "" }, { "docid": "2ff030a1464b6be0ee1985cd8eda3472", "score": "0.6033371", "text": "public function getPublisher();", "title": "" }, { "docid": "28058ff5899cca412b0ca1df7d887998", "score": "0.60165274", "text": "public function getAllPublished()\n {\n $result = $this->_model->where('is_published', 1)->get();\n\n return $result;\n }", "title": "" }, { "docid": "28058ff5899cca412b0ca1df7d887998", "score": "0.60165274", "text": "public function getAllPublished()\n {\n $result = $this->_model->where('is_published', 1)->get();\n\n return $result;\n }", "title": "" }, { "docid": "56306ba0f59878c3b2f8953afe8659b9", "score": "0.60055906", "text": "public function getPublications()\n {\n if (array_key_exists(\"publications\", $this->_propDict)) {\n return $this->_propDict[\"publications\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "a31eb7a3e34d6e35de7ad8f6cc51813b", "score": "0.5948299", "text": "public static function retrieveAll($params = [])\n { \n\n // Execute\n $responseBody = self::_retrieveAll(Publisher::RESOURCE_PATH, $params);\n \n // Work on response\n $pagination = $responseBody['pagination'];\n\n // Loop through each response object in data and create publisher objects\n $publishers = [];\n\n foreach ($responseBody['data'] as $body) {\n $publishers[] = self::mapToAttributes($body);\n }\n\n // Create new list and add publishers to list\n $list = new AdyoList($publishers,\n $pagination['total'],\n $pagination['count'],\n $pagination['per_page'],\n $pagination['current_page'],\n $pagination['total_pages'],\n array_key_exists('next', $pagination['links']) ? $pagination['links']['next'] : null,\n array_key_exists('prev', $pagination['links']) ? $pagination['links']['prev'] : null);\n\n return $list;\n }", "title": "" }, { "docid": "2bc29a28750037074881dedb53a5185e", "score": "0.5941877", "text": "public static function loadAllPublished(): Paginator\n {\n return static::with([\n 'user' => function (BelongsTo $query) {\n $query->select('id', 'name');\n },\n ])\n ->latest()\n ->published()\n ->paginate();\n }", "title": "" }, { "docid": "3428e70e32f50b7855911274a379e124", "score": "0.59338015", "text": "public function getProvisioners()\n {\n return $this->provisioners;\n }", "title": "" }, { "docid": "db4ef1208c81be753199ac2393ca90ab", "score": "0.5913942", "text": "public function list_all_subscribed(){\n return $this->list_subscribed('*');\n }", "title": "" }, { "docid": "42771cdce2d7d2b1253a6d0b9288a7f1", "score": "0.58947325", "text": "public static function listPublicSubscriptions()\n {\n $query = DB::table('polynotice_subs')->where('user_id','=',null)->pluck('event')->toArray();\n\n return $query;\n }", "title": "" }, { "docid": "c259972e436754507a462fc391403f6f", "score": "0.58831096", "text": "public function publishAll();", "title": "" }, { "docid": "e8e112adf3a28e82dcddc86e704e3fcc", "score": "0.587647", "text": "function getlist_available_printers()\n {\n global $conf,$db;\n if ($this->authtoken=='') {\n $this->GoogleLogin();\n }\n $ret['available'] = $this->get_printer_detail();\n return $ret;\n }", "title": "" }, { "docid": "67476232433bbe4a8472f739569e2775", "score": "0.58334434", "text": "public function lists()\n {\n return collect($this->hubspot->email()\n ->subscriptions($this->config['portal_id'])\n ->subscriptionDefinitions);\n }", "title": "" }, { "docid": "09c89f039a602d4bfc1fa6db60c6b30e", "score": "0.5793829", "text": "public function podcastsPublic()\n {\n return $this->podcasts()\n ->wherePivot('visible', true);\n }", "title": "" }, { "docid": "b9901fab134d4b10117323d22744664e", "score": "0.5733904", "text": "function getSubscribers() {\n $parent = $this->getParent();\n if(instance_of($parent, 'ProjectObject') && $parent->can_have_subscribers) {\n return $parent->getSubscribers();\n } // if\n return array(); // nothing...\n }", "title": "" }, { "docid": "5e7f5c6414ec983ff1ecd182b9961913", "score": "0.5701487", "text": "public function getSubscribers(): array;", "title": "" }, { "docid": "3bde301cf7014caabef3c197370f9410", "score": "0.5689735", "text": "public function subscribers() :array\n {\n return $this->subscribe;\n }", "title": "" }, { "docid": "a47afa5d3f8a6a4e0986526372cd4aff", "score": "0.5669605", "text": "public function getEventSubscribers()\n {\n if (isset($this->configuration['events']['subscribers'])) {\n return $this->configuration['events']['subscribers'];\n }\n\n return array();\n }", "title": "" }, { "docid": "51ab4684cdc039ab0bf2617b80bbef99", "score": "0.5656218", "text": "public function getAllPublic()\n {\n //Get all public posts\n $dbc = $this->connectToDB();\n $req = $dbc->query('SELECT idpost, title, lead, content, date_creation, post_public, date_planned, \n user_iduser FROM post WHERE post_public=1 AND date_creation <= NOW() ORDER BY date_creation DESC');\n\n return $req->fetchAll();\n }", "title": "" }, { "docid": "0acedab71ccbe1611be5f5f0b3900e7a", "score": "0.56538117", "text": "public function getWatchers() : Collection;", "title": "" }, { "docid": "dcea1691219dd9e97a7a0a4e965f2d39", "score": "0.5642289", "text": "public function getExporters()\r\n\t{\r\n\t\t$data = array();\r\n\t\tforeach($this->exporters AS $exporter)\r\n\t\t{\r\n\t\t\t$data[get_class($exporter)] = call_user_func(array(get_class($exporter), 'getTitle'));\r\n\t\t}\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "2b36451292d510868affe66d14eabfe6", "score": "0.56412613", "text": "public function getAll()\n\t{\n\t\treturn $this->_providers;\n\t}", "title": "" }, { "docid": "c54eeb5bb2165ab794029f99e38943e1", "score": "0.56182367", "text": "public function index()\n {\n $publisher = $this->publisherContracts->getAll();\n return $publisher;\n\n }", "title": "" }, { "docid": "c2f5ee435144916b9c5a414f73a90ff7", "score": "0.56153244", "text": "public function werknemers(){\n\t $werknemers = Werknemer::get();\n\t return($werknemers);\n }", "title": "" }, { "docid": "00002c765cf0e1053edf09a1bbd98007", "score": "0.56113356", "text": "public function reportAvailableStreams() {\n $allStreams = $this->stream->getStreamModel()->select(array(\"stream_id\", \"name\"), array());\n if(!$allStreams) {\n return array();\n }\n\n return $allStreams;\n }", "title": "" }, { "docid": "7e3ca784ddca18e223553ae319662064", "score": "0.5595451", "text": "public function publishAll()\n {\n foreach ($this->laravel['domains']->allEnabled() as $domain) {\n $this->publish($domain);\n }\n }", "title": "" }, { "docid": "17d19d6e3c9db4e59f793e663b2bb1e5", "score": "0.5585532", "text": "public function index()\n {\n return PackageListResource::collection(\n Package::query()->withoutGlobalScope('publish')->latest()->paginate()\n );\n }", "title": "" }, { "docid": "75e28ee721988e302c82fd3923a14b4a", "score": "0.55832976", "text": "public function getSubscribeToBroadcasts()\n {\n return $this->subscribeToBroadcasts;\n }", "title": "" }, { "docid": "21b16146c5b29d17f776a29380920bae", "score": "0.5579845", "text": "public function findAllPublished()\n {\n return $this->getArticleRepository()\n ->findBy($this->criteria, array('published' => 'desc'), self::LIMIT);\n }", "title": "" }, { "docid": "e13c35e97dd9f3ef9c56b13a34c916ca", "score": "0.55591285", "text": "public function getPublishedList($user_id = 0)\n {\n return $this->getContentList(array('user_id' => $user_id, 'state' => array('public')));\n }", "title": "" }, { "docid": "23e0d72edc8b6d443468789292f1bf0a", "score": "0.5557366", "text": "public function getSpeakers(): array;", "title": "" }, { "docid": "d31abc053a2c6ed139f4d37fa1b8ccbe", "score": "0.553188", "text": "public function provides()\n {\n return array(\n 'asset.publisher', 'command.asset.publish',\n 'config.publisher', 'command.config.publish',\n 'view.publisher', 'command.view.publish'\n );\n }", "title": "" }, { "docid": "6cd3641c16f60f8ae80486475e88b77f", "score": "0.55277145", "text": "public function getSubscribers()\n {\n if(!count($this->subscribers)) $this->loadSubscribers();\n return $this->subscribers;\n }", "title": "" }, { "docid": "3c9042872e0a4ea4e7039b9388da85c1", "score": "0.5510711", "text": "public function subscribedChannels(): array\n {\n return ['topic:*'];\n }", "title": "" }, { "docid": "4d7d359faf7a7ca8aaf909a05b531839", "score": "0.54638016", "text": "public function getAllPostInPublished()\n {\n return $this->getAllPost(\" WHERE is_published = \" . IS_PUBLISHED);\n }", "title": "" }, { "docid": "9d56d8c0bf062a80477d5ff5dbb9375b", "score": "0.54565245", "text": "public function getPublicSubmitters() {\n\t\t//go through submissions\n\t\t//find submissions of this packet with a user ID\n\t\t//see if user is public\n\t\t//return an array of public users\n\n\t\t$this->submission();\n\t\terror_log($this);\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "eebd3cba2e542a670a574cd434fe9055", "score": "0.5445224", "text": "public function getScriptInstallers()\n\t{\n\t\t$data = $this->get(\"static/webapps/installers\");\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "75eb668a12b35cae576b0e0762b9d69e", "score": "0.5437001", "text": "function get_all_storage_plugins() {\n $plugin_info = $this->get_storage_plugins();\n $all_plugins = [];\n foreach ($plugin_info as $plugin) {\n array_push( $all_plugins, $plugin['name']);\n }\n\n return $all_plugins;\n\n }", "title": "" }, { "docid": "155dc13bc16f338ef9ea64cdebc584e8", "score": "0.54343", "text": "public function getPublicKeys();", "title": "" }, { "docid": "6043eaf1b12a5786ff35ecb4ae643ceb", "score": "0.54282254", "text": "function get_all_user_published_posts(){\n\t\t$result = query(\"SELECT * FROM posts WHERE user_id=\".loggedInUserId().\" AND post_status='published'\");\n\t\tconfirmQuery($result);\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "d172e07950db9771c55773965318dc86", "score": "0.5425795", "text": "private function loadPublisers()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__ . '/../config/searchable.php' => config_path('searchable.php'),\n ], 'searchable-config');\n\n if (! class_exists('CreateSearchIndexTable')) {\n $this->publishes([\n __DIR__ . '/../database/migrations/create_search_index_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_search_index_table.php'),\n ], 'searchable-migrations');\n }\n }\n }", "title": "" }, { "docid": "ec2a012f45f49be354df117afffc29d1", "score": "0.5421641", "text": "public function getSpeakers()\n {\n $json = (new \\Guzzle\\Http\\Client($this->baseUrl))\n ->get('/speakers')\n ->send()\n ->json();\n\n $json = array_map(function($speaker) {\n $speaker['bio'] = Markdown::defaultTransform($speaker['bio']);\n\n return $speaker;\n }, $json);\n\n return $json;\n }", "title": "" }, { "docid": "a35724b49b34d5cfe31df9a82aac6b29", "score": "0.5407841", "text": "public function getExporterInstances()\r\n\t{\r\n\t\treturn $this->exporters;\r\n\t}", "title": "" }, { "docid": "2144f9afeddaa1eae302083b571c6b9a", "score": "0.54077995", "text": "public function documentRootIsPubProvider(): array\n {\n return [\n [true, [\n 'MAGE_DIRS' => [\n 'pub' => ['uri' => ''],\n 'media' => ['uri' => 'media'],\n 'static' => ['uri' => 'static'],\n 'upload' => ['uri' => 'media/upload']\n ]\n ]],\n [false, []]\n ];\n }", "title": "" }, { "docid": "09591e93299b7ee25f1466a7032e13b1", "score": "0.54033726", "text": "public function podcasts()\n {\n return $this->request(\"podcasts\");\n }", "title": "" }, { "docid": "07821ed71c0375fb649e015e9ed837d9", "score": "0.5392643", "text": "public static function topics() {\n return self::$topics;\n }", "title": "" }, { "docid": "44a31fd9512d21c1de92e7f92042cc33", "score": "0.5380763", "text": "public function getResponders() {\n\t\t// list of workers who are assigned.\n\t\t$prefs_table = SCHEDULE_PREFS_TABLE;\n\t\t$auth_user_table = AUTH_USER_TABLE;\n\t\t$sql = <<<EOSQL\n\t\t\tSELECT a.id as id, a.username as username\n\t\t\t\tFROM {$auth_user_table} as a, {$prefs_table} as p\n\t\t\t\tWHERE a.id=p.worker_id\n\t\t\t\tGROUP BY p.worker_id;\nEOSQL;\n\t\t$responders = [];\n\t\tforeach ($this->dbh->query($sql) as $row) {\n\t\t\t$responders[$row['id']] = $row['username'];\n\t\t}\n\n\t\treturn $responders;\n\t}", "title": "" }, { "docid": "f384a14b812a737ba7675b325922c543", "score": "0.5366477", "text": "public function publishedPages()\n {\n return $this->hasMany('App\\Page')->where('pages.publish', 'Y');\n }", "title": "" }, { "docid": "8d7e8a6f0cf494cfe90a1303ed0e484c", "score": "0.53662115", "text": "public function broadcastOn()\n {\n $channels = [];\n foreach ($this->user->followers as $follower) {\n array_push($channels, new PrivateChannel('article.user.' . $follower->sender_id));\n }\n return $channels;\n }", "title": "" }, { "docid": "02a65c0c34072ed89b8b3d3681cbe23d", "score": "0.5351421", "text": "public function getHosts () {}", "title": "" }, { "docid": "02a65c0c34072ed89b8b3d3681cbe23d", "score": "0.5351421", "text": "public function getHosts () {}", "title": "" }, { "docid": "9a3e0ed942fef6a42a1212a493713baf", "score": "0.5346965", "text": "public function get_all_public_posts() {\r\n // Select All Posts From posts Table Where user_id Column Equals To The Given User id\r\n $result = $result = $this->select('posts', 'privacy', 'public');\r\n\r\n // Init Posts Variable\r\n $posts = array();\r\n\r\n // Append Selected Posts To The posts Array\r\n while ($row = $result->fetch_assoc()) {\r\n array_push($posts, $row);\r\n }\r\n\r\n // Return The posts Array Reversed in Order To Get Them Ordered\r\n return array_reverse($posts);\r\n }", "title": "" }, { "docid": "a7a4cdf41c4a53384fa49046340f7cae", "score": "0.5341665", "text": "public function getSubscribedTopics()\n {\n return $this->subscribedTopics;\n }", "title": "" }, { "docid": "699874dd863cbcf5c41fa6fc8d1e0d27", "score": "0.5338531", "text": "public function getPublicPages() {\n $result = [];\n $sql = \"SELECT t.topic_id, tt.lng_id\n FROM %s t\n INNER JOIN %s tt\n ON t.topic_id = tt.topic_id\n WHERE t.published_from <= %d\n ORDER BY t.topic_id, tt.lng_id\";\n $parameters = [\n $this->databaseGetTableName('topic_public'),\n $this->databaseGetTableName('topic_public_trans'),\n time()\n ];\n $this->_total = 0;\n if ($res = $this->databaseQueryFmt($sql, $parameters)) {\n while ($row = $res->fetchRow(DB_FETCHMODE_ASSOC)) {\n $this->_total++;\n if (!isset($result[$row['topic_id']])) {\n $result[$row['topic_id']] = [];\n }\n $result[$row['topic_id']][] = $row['lng_id'];\n }\n }\n return $result;\n }", "title": "" }, { "docid": "93e586e8ad7b35e232dc40f0d778a012", "score": "0.5336462", "text": "public function getRssFeeds()\n {\n return $this->rssFeeds;\n }", "title": "" }, { "docid": "11f706748e805dc47ab71e90091efdc4", "score": "0.5336142", "text": "public function publisherIndex()\n {\n $users = Publisher::orderBy('id', 'desc')->paginate(15);\n $pt = 'Publisher LIST';\n return view('admin.publisher.index', compact('users','pt'));\n }", "title": "" }, { "docid": "0ba2a5dc8473de87688166e254627246", "score": "0.53347486", "text": "public function get_feeds() {\n $settings = $this->settings;\n\n return $settings['feeds'];\n }", "title": "" }, { "docid": "b708bbefc234399c7aab8c60c862b1bd", "score": "0.53346914", "text": "public function getTopicNames();", "title": "" }, { "docid": "0d5d2dbdb3d472e23baeed8f788c3335", "score": "0.5334339", "text": "public function getSubscriptions(): array\n {\n return $this->subscriptions;\n }", "title": "" }, { "docid": "647c58b30bbe8d5dcaf788e34890d2ff", "score": "0.53102916", "text": "public function getDeliverables()\n {\n return $this->deliverables;\n }", "title": "" }, { "docid": "b81892f2faf203046a646ec99f43154e", "score": "0.52990055", "text": "public function getPublications($parameters) {\n $this->init($parameters['id']);\n $publicationDao = new publicationDao($this->db,$this->idUtilisateur,$this->entrepriseId);\n $publicationList = $publicationDao->getAllPublications($parameters);\n return $publicationList;\n }", "title": "" }, { "docid": "c13d8a724fe61f0e81082500e8bf1c6d", "score": "0.529798", "text": "private function getPublicPlurks()\n\t{\n\t\t$url = sprintf('%sTimeline/getPublicPlurks', self::HTTP_URL);\n\t\t$offset = $this->_setting->offset;\n\t\t$time = ($offset instanceof DateTime) ? $offset : new DateTime($offset);\n\t\t$args = array(\n\t\t\t'user_id'\t=> $this->_setting->userId,\n\t\t\t'offset'\t=> $time->format('Y-m-d\\TH:i:s'),\n\t\t\t'limit'\t\t=> $this->_setting->limit,\n\t\t\t'filter'\t=> $this->_setting->filter\n\t\t);\n\n\t\t$this->setResultType(PlurkResponseParser::RESULT_PLURKS_USERS);\n\t\treturn $this->sendRequest($url, $args);\n\t}", "title": "" }, { "docid": "3c6cc118df8aacfeb160d9fb77658cdb", "score": "0.5280282", "text": "public function getPublicDirectories() \n {\n return File::directories( $this->getPublicPath() );\n }", "title": "" }, { "docid": "380cdde7298098974c8f650f30861e19", "score": "0.5279391", "text": "public function listProviders()\n {\n $foxdoxapiclient = new FoxdoxApiClient('https://api.foxdox.de/provider/listproviders', []);\n return $foxdoxapiclient->apiRequest(auth()->user()->name);\n }", "title": "" }, { "docid": "b170e1ef4e4fbf0ea7e3f8e1b8da3bce", "score": "0.52771723", "text": "public function getPublishedMembers($limit=null){\n\n\t\t$o = Graph::object()\n\t\t\t->publishedFilter()\n\t\t\t->objectTypeFilter($this->objectTypeName);\n\t\tif($limit){\n\t\t\t$o->limit($limit);\n\t\t}\n\t\t$o = $o->find_all();\n\t\treturn $o;\n\n\t}", "title": "" }, { "docid": "201c664b12d8896d51c90436cbc239a9", "score": "0.5274363", "text": "public function getHosts()\n {\n return $this->hosts;\n }", "title": "" }, { "docid": "86d70859f85855ac56b6ea4c3e044273", "score": "0.526584", "text": "public static function getAll()\n {\n return PROVEEDOR::get();\n }", "title": "" }, { "docid": "cfdd374696b994787b0b65992dc9a61c", "score": "0.52592736", "text": "public function getRegistrants()\r\n {\r\n $goToWebinar = new GoToWebinar($this->getClient());\r\n $registrants = $goToWebinar->getRegistrants($this->getId());\r\n return $registrants;\r\n }", "title": "" }, { "docid": "d85eb12edc23713afe6607fdad58e13f", "score": "0.5245868", "text": "public static function isPublisher() {\n return self::registered() && in_array(Session::get('user')->_id, self::$publishers);\n }", "title": "" }, { "docid": "865ac00cdfe29d50767bedd23b744096", "score": "0.524569", "text": "public function broadcastOn()\n {\n return new Channel('publications');\n }", "title": "" }, { "docid": "20573201c5a9adba85729e2ef9c2f252", "score": "0.52434456", "text": "public function index()\n {\n $publications = Publication::paginate(request()->per_page);\n return PublicationResource::collection($publications);\n }", "title": "" }, { "docid": "13c3fa5909355df88ff141566c2ae24d", "score": "0.52268773", "text": "public function getPublishingPrinciples();", "title": "" }, { "docid": "4f64ff9dab6e74fda08099aa80662330", "score": "0.5211002", "text": "public function getSubscriptions()\n {\n return $this->state->getSubscriptions();\n }", "title": "" }, { "docid": "2546e63d983f9eb9d9175fd5e66bb9bb", "score": "0.52050847", "text": "public function list_participants() {\n return $this->exportparticipants;\n }", "title": "" }, { "docid": "a72220976f9158515301bd8d8687e38e", "score": "0.5204593", "text": "public function all()\n {\n return $this->client->send('/api/vhosts');\n }", "title": "" }, { "docid": "ee39ffff7a156e793301941fc5d87a5a", "score": "0.5204485", "text": "public function getProviders(): SplObjectStorage\n {\n return $this->providers;\n }", "title": "" }, { "docid": "ded84525c52e71e1434c63bc1e0c3305", "score": "0.52001005", "text": "public function getManifests()\n {\n return $this->manifests;\n }", "title": "" }, { "docid": "a6e295bd34dee4ee317fcfd10ddf5f4f", "score": "0.5196783", "text": "private function registerPublishables()\n {\n // $basePath = dirname(__DIR__);\n\n $arrayPublishable = [\n 'config' => [\n __DIR__.'./config/config.php' => config_path('spellnumber.php'),\n ],\n ];\n foreach ($arrayPublishable as $publish => $paths) {\n $this->publishes($paths, $publish);\n }\n }", "title": "" }, { "docid": "d4eed51928f9ff35f9e3c84ce213b688", "score": "0.5196453", "text": "public function providers() {\n return $this->providers;\n }", "title": "" }, { "docid": "59e404274a41055e88b20facb0c6eb27", "score": "0.5191681", "text": "public function articles()\n {\n return $this->morphMany(Article::class, 'publisher');\n }", "title": "" }, { "docid": "1ab6bb030b3d2d7edefb9a68b85bbee5", "score": "0.5187212", "text": "protected function initPublishes()\n {\n // config\n $this->publishes([__DIR__ . '/../../config/admin.php' => config_path('admin.php')], 'aconfig');\n\n // public\n $this->publishes([__DIR__ . '/../../public/css/admin.css' => public_path('/css/admin.css')], 'apublic');\n $this->publishes([__DIR__ . '/../../public/js/admin.js' => public_path('/js/admin.js')], 'apublic');\n $this->publishes([__DIR__ . '/../../public/fonts' => public_path('/fonts')], 'apublic');\n $this->publishes([__DIR__ . '/../../public/admin-favicon' => public_path('/admin-favicon')], 'apublic');\n }", "title": "" }, { "docid": "fb8be709ac8722ae0be09319c1d057fe", "score": "0.51861674", "text": "public function all(): Collection\n {\n $disk = Storage::build([\n 'driver' => 'local',\n 'root' => components_path(),\n ]);\n\n return collect($disk->directories());\n }", "title": "" }, { "docid": "1330102507a819f877ca79d13a68b42d", "score": "0.5183601", "text": "public function providers()\n {\n return array_keys($this->_providers);\n }", "title": "" }, { "docid": "62465e4ca5ad8fba33ff4c2befe511d5", "score": "0.5182664", "text": "private function getUserPlugins()\n {\n $out = [];\n if ($plugins_dir = Config::get('plugins_dir')) {\n $plugin_iterator = new \\DirectoryIterator($plugins_dir);\n foreach ($plugin_iterator as $dir) {\n if (!$dir->isDot()) {\n $out[] = $dir->getPathname();\n }\n }\n }\n return $out;\n }", "title": "" }, { "docid": "5474a67520e7ba9e785d6beb20a42404", "score": "0.51818603", "text": "public function getPoliticasPublicasList(){\n return $this->politicas_publicas_lista;\n }", "title": "" }, { "docid": "6f867be1de24198e6c3755ac7387981c", "score": "0.5180702", "text": "public function findAllPublishedPosts()\n {\n $posts = array();\n $query = \"\"\n . \"SELECT post.*, user.name as author \"\n . \"FROM post \"\n . \"LEFT JOIN user ON post.id_user = user.id \"\n . \"WHERE status > 0 \"\n . \"ORDER BY post.date_created DESC\";\n $result = $this->db->query($query);\n if ($result)\n {\n // Cycle through results\n while ($row = $result->fetch_assoc()) {\n $posts[] = array(\n 'id' => $row['id'],\n 'title' => $row['title'],\n 'content' => $row['content'],\n 'author' => $row['author'],\n 'id_user' => $row['id_user'],\n 'date_created' => $row['date_created'],\n 'tags' => '' //$row['firstname']\n );\n }\n // Free result set\n $result->close();\n } else\n echo($this->db->error);\n\n return $posts;\n }", "title": "" }, { "docid": "5c7e06154a635a75bab5d1956e86e54a", "score": "0.5180053", "text": "public function all()\n {\n return $this->collectors;\n }", "title": "" }, { "docid": "743eb2e34e845058dfbfe4c3ebdb0ac2", "score": "0.5175217", "text": "public function getEventSubscribers(): array\n {\n return [$this];\n }", "title": "" }, { "docid": "73dd1e339ba322aedceea43f844db322", "score": "0.5171168", "text": "function get_host_list()\n{\n $args = array('brevity' => 1);\n $oxml = get_xml_host_objects($args);\n\n $hosts = array();\n if ($oxml && $oxml->host) {\n foreach ($oxml->host as $host) {\n $hosts[] = strval($host->host_name);\n }\n }\n\n $final = array();\n foreach ($hosts as $host) {\n $s_host = pnp_sanitize_filename($host);\n $dir = PDATADIR . \"/$s_host\";\n if (is_dir($dir)) {\n $final[] = $host;\n }\n }\n\n return $final;\n}", "title": "" }, { "docid": "70e869aaa010d6cba2769ec43d013b49", "score": "0.5156973", "text": "public function listOwners()\n {\n $result = array();\n $namespace = $this->_driver->getNamespace();\n foreach ($this->_driver->listFolders() as $folder) {\n $result[$folder] = $namespace->getOwner($folder);\n }\n return $result;\n }", "title": "" }, { "docid": "174fe8ed9d017bc0e528e4268fb4f226", "score": "0.51564324", "text": "public function seeders(): array\n {\n return $this->seeders;\n }", "title": "" }, { "docid": "b6135134878f5a3f961b2d7c50c144bd", "score": "0.5155616", "text": "function get_plugins(): array {\r\n return PluginRepository::all()->toArray();\r\n }", "title": "" }, { "docid": "4948de362f49e2ba5a6f242af6d6f3c5", "score": "0.5153524", "text": "public function channels()\n\t{\n\t\treturn $this->send('channels');\n\t}", "title": "" }, { "docid": "105c787752f9b7f3d614fb0a047c1098", "score": "0.5142029", "text": "private function publishAll()\n {\n /** @var Module $module */\n foreach (workbench()->enabled() as $module) {\n $this->publish($module);\n }\n }", "title": "" }, { "docid": "58545261823603a229e96707ab4a3ae4", "score": "0.5135489", "text": "public function getApms(): array\n {\n return $this->loader->loadApmList();\n }", "title": "" }, { "docid": "f1613bad9bf70c92518770125a206162", "score": "0.5133554", "text": "public function get_providers() {\n\t\treturn $this->providers;\n\t}", "title": "" }, { "docid": "1e0f89082ef8cf52224eb93fdddd67e2", "score": "0.51233256", "text": "public function all()\n {\n return $this->store->all();\n }", "title": "" }, { "docid": "8c43951e350150d028fb2977cfb7c0a8", "score": "0.51215434", "text": "public function publications()\n {\n return $this->hasMany('App\\Publication');\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "a126034ef6b9c4d0910585ff7b45c5c9", "score": "0.0", "text": "public function show(User $user)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.81890994", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "c8985097bcf4925e7728ae219257fd22", "score": "0.7437705", "text": "public function show(Resource $resource)\n {\n //\n return view('resources.show', compact('resource'));\n }", "title": "" }, { "docid": "2be2e33b028463d829f3ad558d64a222", "score": "0.699903", "text": "public function showResponse($resource)\n {\n return $this->sendResource(Response::HTTP_OK, $this->getMessage('show'), $resource);\n }", "title": "" }, { "docid": "06f46038d7d48cf182d18bc5edbfc5da", "score": "0.6791305", "text": "public function viewResourceAction() {\n \t$idRole = intval($this->request->get('idRole'));\n \tif(empty($idRole)) {\n \t\t$this->flashSession->error($this->_(\"idRole is invalid\"));\n \t\treturn $this->redirect('index');\n \t}\n \t\n \t$role = AclRole::findFirst($idRole);\n \tif(empty($role)) {\n \t\t$this->flashSession->error($this->_(\"Role is null\"));\n \t\treturn $this->redirect('index');\n \t}\n \t\n \t$this->pageTitle = $this->_(\"Resources of: \". $role->name);\n \t\n \t$grid = new AclRoleResourceGrid('RoleResource', $idRole);\n \t$grid->run();\n \t$this->view->setVars(array(\n \t\t\t'grid' => $grid,\n \t\t\t'idRole' => $idRole\n \t));\n }", "title": "" }, { "docid": "a94412ebc56a8b9c8b86edf47e219db0", "score": "0.67431986", "text": "function display($resource_name = NULL, $cache_id = null, $compile_id = null, $parent_NEW = null)\n {\n //parent::fetch($resource_name, $cache_id, $compile_id, null, true);\n $this->assign(\"ekv_resource_name\", $resource_name);\n parent::display($resource_name, $cache_id, $compile_id, $parent_NEW);\n }", "title": "" }, { "docid": "70779c6e695ace5c3b533f7cdb8ab654", "score": "0.6647865", "text": "public function show($id)\n\t{\n\t\t$res = Resource::find($id);\n\t\treturn view('admin.resource.show')->withResource($res);\n\t}", "title": "" }, { "docid": "2f1ee001008252acd3fc8ca44e10c7ef", "score": "0.65780663", "text": "public function resolveForDisplay($resource, $attribute = null)\n {\n }", "title": "" }, { "docid": "24a493f88aace02c9d9e0c9868203a87", "score": "0.6482751", "text": "public function show($id)\n\t{\n\t\t$resource = Resource::findOrFail($id);\n\t\treturn view('admin.resources.show', compact('resource'));\n\t}", "title": "" }, { "docid": "6299a7038c61853b945c92febd2b2e95", "score": "0.64600646", "text": "public function show()\n\t{\n\t\t$this->display('show');\n\t}", "title": "" }, { "docid": "52cf037df527a27f63b97a9bf996fa6f", "score": "0.64427346", "text": "public function showAction(Request $request, $id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('VMBResourceBundle:Resource')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Resource entity.');\n }\n \n\t\t$official = ($request->query->get('official') == 1) ? true : 'all';\n\t\t$personal = ($request->query->get('personal') == 1);\n\t\t$search = $request->query->get('search');\n\t\t$topic = $request->query->get('topic');\n\t\tif($topic != null) {\n\t\t\t$topic = $em->getRepository('VMBPresentationBundle:Topic')->find($topic);\n\t\t}\n\t\t\n\t\t$prev = $next = null;\n\t\t$position = intval($request->query->get('position'));\n\t\tif($position > 0) {\n\t\t\tif($position > 1) {\n\t\t\t\t$prev = $em->getRepository('VMBResourceBundle:Resource')->getResources($position - 1, 1, $topic, $official, ($personal ? $this->getUser() : null), $search);\n\t\t\t}\n\t\t\t$next = $em->getRepository('VMBResourceBundle:Resource')->getResources($position + 1, 1, $topic, $official, ($personal ? $this->getUser() : null), $search);\n\t\t}\n\t\t$rend_args = array(\n 'entity' => $entity,\n 'mainTitle' => $entity->getTitle(),\n 'editButtonUrl' => $this->generateUrl('resource_edit', array('id' => $id)),\n 'backButtonUrl' => $this->get('vmb_presentation.previous_url')->getPreviousUrl($request),\n 'saveToCaddy' => 'resource',\n 'inCaddy' => $this->getUser()->resourceIsInCaddy($entity),\n 'hasPlaybackFunction' => true,\n 'prev' => $prev,\n 'next' => $next,\n 'position' => $position);\n\n\t\t$typ = $entity->getType(); \n\t\tif($typ == 'text' || $typ == 'image'){\n\t\t\t$rend_args['exportAssetUrl'] = $entity->getResourcePath();\n\t\t}\n\n return $this->render('VMBResourceBundle:Resource:show.html.twig', $rend_args\n );\n }", "title": "" }, { "docid": "8bc888f15a301ee0d4c90637d0ad33da", "score": "0.64243466", "text": "public function show(Resource $resource): View\n {\n $resource->load([\n 'activities.causer:id,name' => function ($query) {\n $query->oldest();\n },\n ]);\n\n return view('resources.show')->with('resource', $resource);\n }", "title": "" }, { "docid": "c95c378ad1f1707c12f0b8d8a8d8233a", "score": "0.63939613", "text": "public function displayAction()\n {\n $type = $this->params('type', '');\n $uid = $this->params('uid', '');\n $data = array();\n\n switch (strtolower($type)) {\n case 'register':\n $title = __('Register Activation');\n $data['uid'] = $uid;\n break;\n default:\n return $this->jumpTo404('Required resource is not found');\n }\n\n $this->view()->assign(array(\n 'type' => $type,\n 'title' => $title,\n 'data' => $data,\n ));\n }", "title": "" }, { "docid": "e154b7665e505aad324ddb7cf7317913", "score": "0.62762076", "text": "public function show(Resource $resource)\n {\n $now = new \\DateTime('now');\n $reservations = $resource->reservationsIn($now->format('m'));\n\n\n $event_list = [];\n foreach ($reservations as $key => $reservation) {\n $event_list[] = Calendar::event(\n $reservation->user->name,\n false,\n new \\DateTime($reservation->start_time),\n new \\DateTime($reservation->end_time),\n null\n );\n }\n\n\n $calendar_details = Calendar::addEvents($event_list);\n\n return view('GeneralViews.ResourcesViews.view', compact('resource', 'reservations', 'calendar_details'));\n }", "title": "" }, { "docid": "eff9ec7980076b0e265db437d0eb54fc", "score": "0.6214677", "text": "public function displayAction() {\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\n $q = Doctrine_Query::create()\n ->from('Tripjacks_Model_Info i')\n ->where('i.infoid = ?', $input->id);\n $result = $q->fetchArray();\n\n\n if (count($result) == 1) {\n $this->view->info = $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": "2eccd420459e21b72d8ac89abaad92f7", "score": "0.6104683", "text": "public function show($id)\n {\n $resource = Resource::find($id);\n\n return view('resource.show', compact('resource'));\n }", "title": "" }, { "docid": "d4fc50ff2fe29ccb40447e93ee5dafea", "score": "0.609954", "text": "public function show(ResourceFile $resourcefile)\n {\n return $resourcefile;\n }", "title": "" }, { "docid": "357ac69da20938e9aa830ac9a6c2dcdf", "score": "0.60607255", "text": "public function show($id)\n\t{\n\t\tif (!$this->api) return view('resources.show');\n\t\t$resource = Resource::with('translations', 'links', 'organization.translations')->find($id);\n\n\t\treturn $this->reply(fractal()->item($resource)->transformWith(new ResourcesTransformer()));\n\t}", "title": "" }, { "docid": "dca0890d7f2fa9cf58976e540c377c87", "score": "0.6053154", "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_Main m')\n ->where('m.mainid = ?', $input->id);\n\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->main = $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": "dd595e2401a651c870eaf18d7e9760a3", "score": "0.6049238", "text": "public function edit(Resource $resource)\n {\n //\n return view('resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "3cb8c14bbdae8dbf60fa13c36bdc635e", "score": "0.6049169", "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_Player p')\n ->where('p.playerid = ?', $input->id);\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->user_info= $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": "9cce40711cb8c9d6f267f8a6c80ef284", "score": "0.60384834", "text": "public function showAction()\n {\n $photo = Photo::findById($this->route_params['id']);\n View::render('Photos/show.html.twig', ['photo' => $photo]);\n }", "title": "" }, { "docid": "5c22086562e6ef1114becad746f7e5bc", "score": "0.6031064", "text": "public function display() {\n\t\tif(isset($this->template)) {\n\t\t\t\\httprequest\\request::includepage($this->template, $this->data);\n\t\t}\n\t}", "title": "" }, { "docid": "c3803fff905d316392a4c6647bee0c1e", "score": "0.6009974", "text": "public function show($id)\n {\n /* Check if logged user is authorized to view resources */\n $this->authorize('view', [$this->model, $id]);\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Displays the specified resource page */\n return view('admin.' . $this->name . '.show')\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "title": "" }, { "docid": "4699678dcf8e1179c0197353cd91326b", "score": "0.5996424", "text": "public function edit(Resource $resource)\n {\n /* dd($resource); */\n return view('resource.edit' , compact('resource'));\n }", "title": "" }, { "docid": "ae23d75d023c0002ab4f3c08bd35003e", "score": "0.5983923", "text": "function display()\r\n\t\t{\r\n\t\t\techo $this->get();\r\n\t\t}", "title": "" }, { "docid": "3eb4767e2aa80380caab65bad4b694b3", "score": "0.59794426", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('AppBundle:Rio')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Rio entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('AppBundle:Rio:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "095acd4bfd018fc9654389112444b778", "score": "0.59706205", "text": "public function get($resource, $id);", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.59518087", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "12f7159ffd60dd85817fce0dc957727b", "score": "0.594759", "text": "public function show($id)\n {\n $resource = Resource::find($id);\n\n $view_data = [\n 'resource' => $resource,\n ];\n\n return view('resource.show', $view_data);\n }", "title": "" }, { "docid": "899d8520a922358d52a57df80a573629", "score": "0.593392", "text": "public function show($id)\n {\n return view('visitor.resources.show', [\n 'resource' => $this->resourceService->retrieve($id)\n ]);\n }", "title": "" }, { "docid": "bb2e29f5f05ab065358c99c7225d6dc0", "score": "0.59309924", "text": "public function show(rc $rc)\n {\n //\n }", "title": "" }, { "docid": "521678534e38ace8f31ee2c7c31109ce", "score": "0.5920762", "text": "public function editResource(Resource $resource)\n {\n if ($resource->type == 'CLASSROOM') {\n $types = ResourceType::where('type', 'CLASSROOM')->get();\n $rcharacteristics = Characteristic::where('type', 'CLASSROOM')->get();\n return view('SpecificViews.Admin.Resource.edit', compact('types', 'rcharacteristics', 'resource'));\n } else {\n $rcharacteristics = Characteristic::where('type', 'INSTRUMENT')->get();\n $types = ResourceType::where('type', 'INSTRUMENT')->get();\n return view('SpecificViews.Admin.Resource.edit', compact('types', 'rcharacteristics', 'resource'));\n }\n\n }", "title": "" }, { "docid": "85ba0fc4060f5c163e861d508048ba63", "score": "0.5884731", "text": "function show(){\n\t\t$this->render(\"show\");\n\t}", "title": "" }, { "docid": "bcb977896a739f96ffa1ee77c63f7425", "score": "0.58830696", "text": "public function view($id) {\n return $this->get(self::RESOURCE_BASE . \"/$id\"); \n }", "title": "" }, { "docid": "6bd8f8db3e80e5caf1e6d908931a7ed8", "score": "0.58657545", "text": "public function show()\n {\n $this->api->showImage();\n }", "title": "" }, { "docid": "7da450b6668a2933f5d4b964d20aceb6", "score": "0.5824889", "text": "public function actionShow()\n {\n return $this->render('show');\n }", "title": "" }, { "docid": "d6af1b1d4946c54112fc9b7ca038cb20", "score": "0.5815869", "text": "public function display()\n\t{\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "305f64db85d64f68019d2fadcd0a85d2", "score": "0.58056176", "text": "public function show()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "2eba268133f89808c76c1ce885d900d0", "score": "0.5802996", "text": "public function showAction()\n {\n $id = (int) $this->param('id');\n $propertyId = (int) $this->param($this->view->translate('propertyId'));\n $picture = $this->service->retrievePictureByIdAndPropertyId($id, $propertyId);\n if (!$picture) {\n $this->flash('error')->addMessage('picture.not.found');\n $this->redirectToRoute(\n 'list',\n [$this->view->translate('page') => 1]\n );\n } else {\n $this->view->picture = $picture;\n $this->view->propertyId = $propertyId;\n }\n }", "title": "" }, { "docid": "69f75cee35bd031e6f2e92ddebba0c83", "score": "0.5802347", "text": "public function open(Resource $resource);", "title": "" }, { "docid": "9fb145e59d646ec786be543f7cd0c2f1", "score": "0.579732", "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\t$row = Entry::oneOrFail($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$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": "04e64116f27859f875629d6268d95953", "score": "0.57876825", "text": "public function show($id)\n {\n $instance = $this->getRepository()->find($id);\n\n $this->addBreadcrumb($instance, 'show');\n $this->authorize('view', $instance);\n\n return $this->view('show')\n ->with('type', $this->resourceType)\n ->with('instance', $instance);\n }", "title": "" }, { "docid": "59b26eccbeb80415b27d312ada1ffed8", "score": "0.57857597", "text": "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "title": "" }, { "docid": "765678d75db620af12e826ffe74dec55", "score": "0.57729185", "text": "public function display()\n {\n parent::display();\n }", "title": "" }, { "docid": "9af2cfa61b52fe58f98d0f97a39ef817", "score": "0.57582563", "text": "public function display()\n {\n $this->component->display();\n }", "title": "" }, { "docid": "e7bae91f4e998eac5e73657c932c48d7", "score": "0.5755341", "text": "public function show($id) {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "4898c94933e2ace69aa1f6e40d88637c", "score": "0.57535464", "text": "public function show(RestRequestInterface $request, string $identifier);", "title": "" }, { "docid": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.57525647", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "e7aba3353509209c795adfc8ada3dbba", "score": "0.5749714", "text": "protected function showAction()\n {\n $id = $this->request->query->get('id');\n if (!$item = $this->em->getRepository($this->entity['class'])->find($id)) {\n throw $this->createNotFoundException(sprintf('Unable to find entity (%s #%d).', $this->entity['name'], $id));\n }\n\n $fields = $this->entity['show']['fields'];\n $deleteForm = $this->createDeleteForm($this->entity['name'], $id);\n\n return $this->render('@EasyAdmin/show.html.twig', array(\n 'item' => $item,\n 'fields' => $fields,\n 'view' => 'show',\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "8f15cdd2f287675d36c7b7df028043ec", "score": "0.5739448", "text": "public function show($id)\n\t{\n\t//\n\t}", "title": "" }, { "docid": "8f15cdd2f287675d36c7b7df028043ec", "score": "0.5739448", "text": "public function show($id)\n\t{\n\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.57253987", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "5bdab5e82bdae8704b426d50a0c819ca", "score": "0.5725279", "text": "public function show()\n {\n return route($this->route().'.show', $this->parameters());\n }", "title": "" }, { "docid": "fd520119113e4b5bb0cfabb16e87eaf7", "score": "0.57250214", "text": "private static function DisplayResourceBase($resources)\n {\n echo \"<div class='row'>\";\n\n #Variable declaration\n $res_name = $res_file_type = $res_file_link = $res_description = \"\";\n $res_id = 0;#resource id;\n\n #Loop through each resource item\n foreach($resources as $res_found):\n #Variable init\n $res_id = $res_found[\"resource_id\"];\n $res_name = $res_found['resource_name'];\n $res_file_type = $res_found['file_type'];\n $res_file_link = $res_found[\"file_link\"];\n $res_description = $res_found['description'];\n\n //Loop through each resource and add the html below\n?>\n <div class=\"col s12 m6 l4\">\n <div class=\"card white res_container\" data-res-id=\"<?php echo $res_id?>\">\n <div class=\"card-content\">\n <span class=\"card-title truncate\" title=\"<?php echo $res_name;?>\"><?php echo $res_name;?></span>\n <div class=\"resource-details-container\">\n <p><span class=\"grey-text\">Description: </span> <?php echo empty($res_description) ? '<span class=\"grey-text\">Not written</span>' : $res_description; ?></p>\n </div>\n <h6 class=\"grey-text uppercase text-lighten-2 \"><?php echo explode(\".\",explode(\"/\",$res_found['file_type'])\n [count(explode(\"/\",$res_found['file_type'])) - 1]\n )[count(explode(\".\",explode(\"/\",$res_found['file_type'])\n [count(explode(\"/\",$res_found['file_type'])) - 1]\n )) - 1]; ?></h6>\n </div>\n <div class=\"card-action\">\n <!--TODO: Make this display the file regardless of type in a new tab-->\n <a class=\"\" href=\"<?php echo $res_file_link; ?>\" target=\"_blank\">OPEN</a>\n\n<!-- <a class=\"btn btn-flat right viewResourceDetails\" href=\"javascript:void(0)\">DETAILS</a>-->\n </div>\n </div>\n </div> \n<?php \n endforeach; #end foreach($resources as $resource_found)\n echo \"</div>\";#close row\n }", "title": "" }, { "docid": "b5e7179ea7c94add1c1af50e9f9b7fdd", "score": "0.57238233", "text": "public function show($id)\n\t{\n\t\n\t}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.57214445", "text": "public function show($id) {}", "title": "" }, { "docid": "c9c0812c7f53687f586de3cff87efe45", "score": "0.57207114", "text": "public function show(Human $human)\n {\n //\n }", "title": "" }, { "docid": "f2d9ca8da2ec54369857c7069cea0429", "score": "0.5715933", "text": "public function show()\n\t{\n\t}", "title": "" }, { "docid": "e4a89f706eb5e843d96f3664b44e5847", "score": "0.5706444", "text": "public function display() \n {\n $content = $this->getContent();\n echo $content;\n }", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.5705454", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.5705454", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.5705454", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.5705454", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.5705454", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "f8b0001b7f866699434e6efd5bb1c552", "score": "0.5703596", "text": "public function show()\n {\n if (Auth::user()){\n return new UserDetailsResource(Auth::user());\n }\n \n return [\n 'error_type' => 'URLNotAllowed',\n 'error_message' => 'You are not allowed on this page!'\n ];\n }", "title": "" }, { "docid": "d936662ad1c81979476df2e0767c5e19", "score": "0.57027346", "text": "public function show($id)\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "3fafbb0ed6199e00843d744b099c53fb", "score": "0.5697736", "text": "public function display()\n {\n echo $this->getContent();\n }", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5687868", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
ccbac23fe5060d65630b19e5693a41e9
Get the validation rules that apply to the request.
[ { "docid": "6dd5226294baa3b2dd142838a13b521c", "score": "0.0", "text": "public function rules()\n {\n $rules = Prestacion::$updateRules;\n\n $rules['nombre'] = [\n 'string',\n Rule::unique('prestaciones')->ignore($this->prestacion),\n 'min:1',\n 'max:50'\n ];\n\n return $rules;\n }", "title": "" } ]
[ { "docid": "ed9f9fb9b18030653ebeb9d002314a1f", "score": "0.80143493", "text": "public function getRules()\n {\n return $this->validator->getRules();\n }", "title": "" }, { "docid": "f87df475b86bdc74bc1d58514eee32e6", "score": "0.80022895", "text": "public function rules()\n {\n return $this->modelRequest::rules();\n }", "title": "" }, { "docid": "cc6a28cf9dea8bb9092db2ea134333d2", "score": "0.7976769", "text": "public function rules()\n {\n $rules = Request::$rules;\n $rules['status'] = 'required|in:' . STATUS_REQUEST_ACCEPT . ',' . STATUS_REQUEST_REJECT . ',' . STATUS_REQUEST_PAID;\n $rules['is_long_time'] = 'nullable|required|in:' . implode(',', array_keys(REQUEST_LONG_TIME_TEXT));\n $rules['actual_start_time'] = 'nullable|required_with:actual_end_time|date|date_format:Y-m-d|before_or_equal:' . date('Y-m-d');\n $rules['actual_end_time'] = 'nullable|date|date_format:Y-m-d|after_or_equal:actual_start_time';\n $rules['admin_note'] = 'nullable|max:255';\n\n return $rules;\n }", "title": "" }, { "docid": "55588f1331b7606a4b5491bf7cbc280d", "score": "0.7937251", "text": "public function getValidationRules()\n {\n $rules = [];\n\n // Get the schema\n $schema = $this->getSchema();\n\n return $schema->getRules($this);\n }", "title": "" }, { "docid": "f6583e692795987c7fd77892b83edaf4", "score": "0.78603816", "text": "public function getRules()\n {\n return $this->validation_rules;\n }", "title": "" }, { "docid": "5170019e92c899599e33fed464372f38", "score": "0.78023624", "text": "public function rules()\n {\n if (Str::lower($this->method()) == 'post') {\n return array_merge(parent::rules(), [\n 'name' => 'required',\n 'function' => 'required',\n 'email' => 'required|email',\n 'c_profile_id' => 'required|numeric',\n ]);\n } elseif (Str::lower($this->method()) == 'put' || Str::lower($this->method()) == 'patch') {\n return array_merge(parent::rules(), [\n 'name' => 'required',\n 'function' => 'required',\n 'c_profile_id' => 'required|numeric',\n ]);\n }\n }", "title": "" }, { "docid": "2b56381ded16b5aca151f7d355ae7138", "score": "0.77901757", "text": "public function rules()\n {\n $this->internID = $this->route('role');\n\n if ($this->getMethod() == 'POST') {\n return $this->storeRules();\n } elseif($this->getMethod() == 'PUT') {\n return $this->updateRules();\n }\n\n return [\n // No validation rules\n ];\n }", "title": "" }, { "docid": "a67df9bab17643a18eb5e0451b936de8", "score": "0.77628785", "text": "public function rules()\n {\n if($this->isMethod('post')){\n return $this->post_rules();\n }\n if($this->isMethod('put')){\n return $this->put_rules();\n }\n }", "title": "" }, { "docid": "a67df9bab17643a18eb5e0451b936de8", "score": "0.77628785", "text": "public function rules()\n {\n if($this->isMethod('post')){\n return $this->post_rules();\n }\n if($this->isMethod('put')){\n return $this->put_rules();\n }\n }", "title": "" }, { "docid": "aee9be112681d9e0f25af85f36019131", "score": "0.7759324", "text": "public function rules()\n {\n $rules = [\n 'code' => 'required|max:255',\n 'symbol' => 'required|max:255',\n 'rate' => 'required|numeric'\n ];\n return RuleHelper::get_rules($this->method(), $rules);\n }", "title": "" }, { "docid": "05f5e4c7c3ef914a691453c52eecddb8", "score": "0.7737272", "text": "public function rules()\n {\n $rules = [];\n\n // Validation request for stripe keys for stripe if stripe status in active\n if($this->has('stripe_status')){\n $rules[\"api_key\"] = \"required\";\n $rules[\"api_secret\"] = \"required\";\n $rules[\"webhook_key\"] = \"required\";\n }\n\n if($this->has('razorpay_status')){\n $rules[\"razorpay_key\"] = \"required\";\n $rules[\"razorpay_secret\"] = \"required\";\n $rules[\"razorpay_webhook_secret\"] = \"required\";\n }\n\n // Validation request for paypal keys for paypal if paypal status in active\n if($this->has('paypal_status')){\n $rules[\"paypal_client_id\"] = \"required\";\n $rules[\"paypal_secret\"] = \"required\";\n $rules[\"paypal_mode\"] = \"required_if:paypal_status,on|in:sandbox,live\";\n }\n\n\n return $rules;\n }", "title": "" }, { "docid": "57c8d53b7e48d66bfd0de1fcedc0c21a", "score": "0.76906914", "text": "public function rules(\\Illuminate\\Http\\Request $request)\n {\n return $this->_rules;\n }", "title": "" }, { "docid": "8f48a6ae5acb5cb92054cd1329847322", "score": "0.76849866", "text": "public function rules()\n {\n\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users',\n 'password' => 'required|min:6|confirmed',\n 'password_confirmation' => 'min:6|same:password',\n 'role_id' => 'required'\n ];\n break;\n case 'PUT':\n case 'PATCH':\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users,email,'.$this->id,\n ];\n break;\n\n default:\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users,email,'.$this->id,\n ];\n break;\n }\n return $rules;\n }", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.7683038", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.7683038", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.7683038", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.7683038", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "71898638a902cf7e7072d9266e47f3df", "score": "0.76826257", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "92f9ba34b59ce6de6911c0752aeecd21", "score": "0.76724476", "text": "public function rules($request) {\n $function = explode(\"@\", $request->route()[1]['uses'])[1];\n return $this->getRouteValidateRule($this->rules, $function);\n // // 获取请求验证的函数名\n // // ltrim(strstr($a,'@'),'@')\n // if (count(explode(\"@\", Request::route()->getActionName())) >= 2) {\n // $actionFunctionName = explode(\"@\", Request::route()->getActionName()) [1];\n // }\n\n // // 取配置并返回\n // if (isset($this->rules[$actionFunctionName])) {\n // if (is_array($this->rules[$actionFunctionName])) {\n // return $this->rules[$actionFunctionName];\n // }\n // else {\n // return $this->rules[$this->rules[$actionFunctionName]];\n // }\n // }\n // else {\n // return [];\n // }\n }", "title": "" }, { "docid": "375ddd50292cba13d3ab79d88ec48c39", "score": "0.7667278", "text": "public function rules()\n\t{\n\t\t$rules = [\n\t\t\t'first_name' => ['required', new BetweenRule(2, 100)],\n\t\t\t'last_name' => ['required', new BetweenRule(2, 100)],\n\t\t\t'email' => ['required', 'email', new EmailRule(), new BlacklistEmailRule(), new BlacklistDomainRule()],\n\t\t\t'message' => ['required', new BetweenRule(5, 500)],\n\t\t];\n\t\t\n\t\t// reCAPTCHA\n\t\t$rules = $this->recaptchaRules($rules);\n\t\t\n\t\treturn $rules;\n\t}", "title": "" }, { "docid": "18e39766452c7ae3a998ce5a33079867", "score": "0.76669014", "text": "public function rules()\n {\n switch($this->method())\n {\n case 'GET':\n case 'DELETE':\n {\n return [];\n }\n case 'POST':\n {\n return [\n 'fname' => 'required|max:255',\n 'lname' => 'required|max:255',\n 'email' => 'required|max:255',\n 'phone_number' => 'required|max:255',\n 'company' => 'required|max:255',\n 'country' => 'required|max:255',\n 'city' => 'required|max:255',\n 'zip' => 'required|max:255',\n 'address1' => 'required|max:255',\n 'number' => 'required',\n 'name' => 'required',\n 'exp_month' => 'required',\n 'exp_year' => 'required',\n 'cvc' => 'required'\n ];\n }\n case 'PUT':\n case 'PATCH':\n {\n return [\n 'name' => 'required|max:255'\n ];\n }\n default:\n return [];\n }\n }", "title": "" }, { "docid": "74eb3ba0e360e13801a3dbf0875ce2f2", "score": "0.76463866", "text": "public function rules()\n {\n switch ($this->getMethod())\n {\n // handle creates\n case 'post':\n case 'POST':\n\n return [\n 'username' => 'required|string|min:3',\n 'mobile' => 'nullable|numeric|digits_between:8,8',\n 'email' => 'required|email',\n 'message' => 'required|string|min:10',\n \"type\" => \"required|in:suggest,contact\"\n ];\n }\n }", "title": "" }, { "docid": "feb5f496a826bdee3db7647303aa858d", "score": "0.7645933", "text": "public function validateRules()\n {\n\n /* Aplicando validación al Request */\n\n // Reglas de validación\n $rules = [\n 'cod_personal_cargo_tipo' => 'required',\n 'cod_doc_tip' => 'required',\n 'num_doc' => 'required',\n 'nombre' => 'required',\n 'ape_pat' => 'required',\n 'ape_mat' => 'required',\n 'direccion' => 'required',\n 'telefono' => 'required',\n 'fe_nacimiento' => 'required',\n 'cod_sexo' => 'required',\n 'activo' => 'required'\n ];\n\n return $rules;\n\n }", "title": "" }, { "docid": "2e3c4612aad10d3bf57f0c03b8715878", "score": "0.7641827", "text": "public function rules()\n {\n $validation = [];\n if ($this->method() == \"POST\") {\n $validation = [\n 'name' => 'required|unique:users',\n 'email' => 'required|unique:users|email',\n 'password' => 'required|min:6|confirmed',\n 'password_confirmation' => 'required|min:6',\n 'roles' => 'required',\n ];\n } elseif ($this->method() == \"PUT\") {\n $validation = [\n 'name' => 'required|unique:users,name,' . $this->route()->parameter('id') . ',id',\n 'email' => 'required|unique:users,email,' . $this->route()->parameter('id') . ',id|email',\n 'roles' => 'required',\n ];\n\n if ($this->request->get('change_password') == true) {\n $validation['password'] = 'required|min:6|confirmed';\n $validation['password_confirmation'] = 'required|min:6';\n }\n }\n\n return $validation;\n }", "title": "" }, { "docid": "829ab7c9db7bfbcd84eb93b1f28f4410", "score": "0.7617708", "text": "public function rules()\n {\n $rules = $this->rules;\n\n $rules['fee'] = 'required|integer';\n $rules['phone'] = 'required|min:8|max:20';\n $rules['facebook'] = 'required|url';\n $rules['youtube'] = 'required|url';\n $rules['web'] = 'url';\n\n $rules['requestgender'] = 'required';\n $rules['serviceaddress'] = 'required|max:150';\n $rules['servicetime'] = 'required|max:150';\n $rules['language'] = 'required|max:150';\n $rules['bust'] = 'required|max:100|integer';\n $rules['waistline'] = 'required|max:100|integer';\n $rules['hips'] = 'required|max:100|integer';\n $rules['motto'] = 'max:50';\n\n return $rules;\n }", "title": "" }, { "docid": "6f28f310301c9547972f63981c61bf7d", "score": "0.76107657", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'project_id' => 'required',\n 'member_id' => 'required',\n 'role' => 'required'\n ];\n case 'PUT':\n return array(\n 'role' => 'required'\n );\n default:\n return [];\n }\n }", "title": "" }, { "docid": "9a1febabaccddb2c0d0106df2e85e354", "score": "0.76102096", "text": "protected function getValidRules()\n {\n return $this->validRules;\n }", "title": "" }, { "docid": "8d518f8d91f30af33855f6918d2b02b0", "score": "0.7602442", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n {\n return [\n 'mobile' => ['required','max:11','min:11'],\n 'code' => ['required','max:6','min:6'],\n 'avatar' => ['required'],\n 'wx_oauth' => ['required'],\n 'password' => ['nullable','min:6','max:20']\n ];\n }\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default: {\n return [];\n }\n }\n }", "title": "" }, { "docid": "2fa685ef394c204982dbcd1065982593", "score": "0.75915384", "text": "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_ID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CoverImageID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_TrackID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Status' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Rank' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CreateDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "c6118bdc2ee17ca4c8d6b8506bf45ffa", "score": "0.7590868", "text": "private function getValidationRules() {\n $validation_rules = [\n 'title' => 'required|max:255',\n 'content' => 'required|max:60000',\n 'category_id' => 'nullable|exists:categories,id',\n 'tags' => 'nullable|exists:tags,id',\n 'cover' => 'nullable|image'\n ];\n\n return $validation_rules;\n }", "title": "" }, { "docid": "5a0fc55da9382223bc790659b34e57e2", "score": "0.7588146", "text": "public function rules()\n { \n return $this->rules;\n }", "title": "" }, { "docid": "7e07689185b1c533b2289f2a9af0b7de", "score": "0.7573777", "text": "public static function rules()\n\t{\n\t\treturn static::$rules;\n\t}", "title": "" }, { "docid": "7ee4ec71711c87a8dc475ac1b566679c", "score": "0.7571088", "text": "public function rules()\n\t{\n\t\treturn $this->rules;\n\t}", "title": "" }, { "docid": "a1dd727982a3eef91eb25c131c5e1c75", "score": "0.75671536", "text": "private function storeRequestValidationRules()\n {\n $rules = [\n 'ip_address' => 'required',\n 'key' => 'required',\n ];\n\n return $rules;\n }", "title": "" }, { "docid": "798dfd7e8619b428f5b5660ca8a69bc6", "score": "0.75583476", "text": "public function rules()\n {\n\n if($this->method() == 'POST')\n {\n return [\n 'from'=>'required',\n 'to'=>'required',\n 'room_type'=>'required',\n 'contact_name'=>'required',\n 'contact_number'=>'required',\n 'contact_email'=>'email'\n ];\n }\n }", "title": "" }, { "docid": "cc70ecefaf3698aa7c9c9783d22155f5", "score": "0.7555758", "text": "public function getValidationRules()\n {\n $rules = $this->getBasicValidationRules();\n\n if (in_array($this->type, ['char', 'string', 'text', 'enum'])) {\n $rules[] = 'string';\n if (in_array($this->type, ['char', 'string']) && isset($this->arguments[0])) {\n $rules[] = 'max:' . $this->arguments[0];\n }\n } elseif (in_array($this->type, ['timestamp', 'date', 'dateTime', 'dateTimeTz'])) {\n $rules[] = 'date';\n } elseif (str_contains(strtolower($this->type), 'integer')) {\n $rules[] = 'integer';\n } elseif (str_contains(strtolower($this->type), 'decimal')) {\n $rules[] = 'numeric';\n } elseif (in_array($this->type, ['boolean'])) {\n $rules[] = 'boolean';\n } elseif ($this->type == 'enum' && count($this->arguments)) {\n $rules[] = 'in:' . join(',', $this->arguments);\n }\n\n return [$this->name => join('|', $rules)];\n }", "title": "" }, { "docid": "ccacb0337a23ee3bf8368ef7b09bdc4f", "score": "0.755526", "text": "public function rules()\n {\n $rules = [];\n if ($this->isMethod('post')) {\n $rules = [\n 'vacancy_name' => 'required|string|min:4|max:20',\n 'workers_amount' => 'required|integer|min:1|max:10',\n 'organization_id'=> 'required|integer|exists:organizations,id',\n 'salary' => 'required|integer|min:1|max:10000000',\n ];\n } elseif ($this->isMethod('put')) {\n $rules = [\n 'vacancy_name' => 'required|string|min:4|max:20',\n 'workers_amount' => 'required|integer|min:1|max:10',\n 'organization_id'=> 'required|integer|exists:organizations,id',\n 'salary' => 'required|integer|min:1|max:10000000',\n ];\n }\n return $rules;\n }", "title": "" }, { "docid": "ec5d08f96b99d33fed46b639b84696c7", "score": "0.7551423", "text": "public function validationRules()\n {\n return [];\n }", "title": "" }, { "docid": "d5352e6a5bdfdf8c058769ada2064798", "score": "0.7546329", "text": "public function rules()\n {\n $rules = $this->rules;\n if(Request::isMethod('PATCH')){\n $rules['mg_name'] = 'required|min:2,max:16';\n }\n return $rules;\n }", "title": "" }, { "docid": "59d25543571a7f6bec1ebecd36bab054", "score": "0.75363225", "text": "public function rules()\n {\n if ($this->isMethod('post')) {\n return $this->createRules();\n } elseif ($this->isMethod('put')) {\n return $this->updateRules();\n }\n }", "title": "" }, { "docid": "a986d51538aa432cd8d22b16104ce489", "score": "0.7530296", "text": "public function rules()\n {\n $rules = [\n 'first_name' => ['required'],\n 'birthdate' => ['required', 'date', 'before:today'],\n ];\n\n if (is_international_session()) {\n $rules['email'] = ['required', 'email'];\n }\n\n if (should_collect_international_phone()) {\n $rules['phone'] = ['phone'];\n }\n\n if (is_domestic_session()) {\n $rules['phone'] = ['required', 'phone'];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "06708050e4d467d2849a191afa5a9134", "score": "0.7517988", "text": "public function rules()\n {\n dd($this->request->get('answer'));\n foreach ($this->request->get('answer') as $key => $val)\n {\n $rules['answer.'.$key] = 'required';\n }\n\n return $rules;\n }", "title": "" }, { "docid": "4dadefc0d9991e89f5730ca8e8dfd61f", "score": "0.75169253", "text": "protected function getValidationRules(Request $request, $model = null)\n {\n return $this->validationRules;\n }", "title": "" }, { "docid": "d707bb0769e974c2f417a897389d069a", "score": "0.75155175", "text": "public function rules()\n {\n return static::$rules;\n }", "title": "" }, { "docid": "527e69159cffc22731124d4ba26a5773", "score": "0.75069886", "text": "public static function getValidationRules(): array\n {\n return [\n 'name' => 'required|string|min:1|max:255',\n 'version' => 'required|float',\n 'type' => 'required|string',\n ];\n }", "title": "" }, { "docid": "115d23a43c4d551cf3375d2f996c9c98", "score": "0.75008523", "text": "public function getRules() {\n\t\t return $this->form['rules'];\n\t }", "title": "" }, { "docid": "0b869d54fd20d49f8203232516207cbf", "score": "0.749979", "text": "public function getValidationRules(): array\n {\n return [\n 'email_address' => 'required|email',\n 'email_type' => 'nullable|in:html,text',\n 'status' => 'required|in:subscribed,unsubscribed,cleaned,pending',\n 'merge_fields' => 'nullable|array',\n 'interests' => 'nullable|array',\n 'language' => 'nullable|string',\n 'vip' => 'nullable|boolean',\n 'location' => 'nullable|array',\n 'location.latitude' => ['regex:/^[-]?(([0-8]?[0-9])\\.(\\d+))|(90(\\.0+)?)$/'], \n 'location.longitude' => ['regex:/^[-]?((((1[0-7][0-9])|([0-9]?[0-9]))\\.(\\d+))|180(\\.0+)?)$/'],\n 'marketing_permissions' => 'nullable|array',\n 'tags' => 'nullable|array'\n ];\n }", "title": "" }, { "docid": "c1f149210985c4da83bc84832b6b4af2", "score": "0.7496674", "text": "public function rules(Request $request)\n {\n return LecturerSubject::REQUEST_RULES[$request->method()];\n }", "title": "" }, { "docid": "abe554b1e895400d2e845ce38d2715cd", "score": "0.7495976", "text": "protected function getValidationRules()\n {\n return [\n 'first_name' => 'required|max:255',\n 'last_name' => 'required|max:255',\n 'email' => 'required|email|max:255',\n 'new_password' => 'required_with:current_password|confirmed|regex:' . config('security.password_policy'),\n ];\n }", "title": "" }, { "docid": "35db05f84c4f70ba91a9715803c7770f", "score": "0.7492888", "text": "public function rules()\n {\n\n $rules = [\n 'id_tecnico_mantenimiento' => 'required',\n 'id_equipo_mantenimiento' => 'required'\n ];\n\n if ($this->request->has('status')) {\n $rules['status'] = 'required';\n }\n\n if ($this->request->has('log_mantenimiento')) {\n $rules['log_mantenimiento'] = 'required';\n }\n\n return $rules;\n }", "title": "" }, { "docid": "059973d8dce0ad1770dd84b575b05977", "score": "0.7489651", "text": "public function rules()\n {\n switch (true) {\n case $this->wantsToList():\n $rules = $this->listRules;\n break;\n case $this->wantsToStore():\n $rules = $this->storeRules;\n break;\n case $this->wantsToUpdate():\n $this->storeRules['email'] = 'required|email|between:5,100|unique:users,email,' . $this->route('administrators');\n\n $rules = $this->storeRules;\n break;\n default:\n $rules = [];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "6eb6931c0cbeda0504917ae14b5ca6ad", "score": "0.7486808", "text": "public function rules()\n {\n if($this->isMethod('post')) {\n return $this->storeRules();\n }\n else if($this->isMethod('put') || $this->isMethod('patch')){\n return $this->updateRules();\n }\n }", "title": "" }, { "docid": "55cf1a0c74688007f4e80d2508e96639", "score": "0.7484031", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n \"name\"=>\"required\",\n \"email\" =>\"required|email|unique:user,email\",\n \"password\" => \"required\",\n \"type\" => \"required\"\n ];\n break;\n\n case 'PUT':\n return [\n \"name\"=>\"required\"\n ];\n\n break;\n }\n }", "title": "" }, { "docid": "0becf583dd2141463ca66c6959ccd471", "score": "0.7479687", "text": "public function rules()\n\t{\n\t\treturn ModelHelper::getRules($this);\n\t}", "title": "" }, { "docid": "6c0c335b3a9850ee190e4e7f6ab701cd", "score": "0.74591446", "text": "public function rules()\n\t{\n\t\t$rules = [\n\t\t\t'email' => 'required|email',\n\t\t\t'name' => 'required|alpha_dash|max:32',\n\t\t\t'birthday' => 'date_format:Y-m-d',\n\t\t\t'gender_id' => 'required',\n\t\t\t'telephone' => 'required',\n\t\t\t'department_id' => 'required',\n\t\t];\n\n\t\t// 添加管理员不需要验证部门\n\t\tif ($this->get('is_admin')) {\n\t\t\tunset($rules['department_id']);\n\t\t}\n\n\t\tif ('update' == $this->get('action')) {\n\t\t\tunset($rules['email']);\n\t\t}\n\n\t\treturn $rules;\n\t}", "title": "" }, { "docid": "00e7c902cb6c5a83312ede6dde193e18", "score": "0.74591017", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST': {\n return [\n 'from' => 'required|max:100',\n 'to' => 'required|max:500',\n 'day' => 'required|max:500',\n ];\n }\n case 'PUT':\n case 'PATCH': {\n return [\n 'from' => 'required|max:100',\n 'to' => 'required|max:500',\n 'day' => 'required|max:500',\n ];\n }\n default:\n break;\n }\n\n return [\n //\n ];\n }", "title": "" }, { "docid": "6d5ae6bbffa1c9784206042aae1c8748", "score": "0.7453257", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n {\n return [\n 'validation' => [\n 'accepted'\n ]\n ];\n }\n case 'POST':\n {\n return [\n 'title' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250'\n ],\n 'body' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250000'\n ],\n 'online' => [\n 'required',\n ],\n 'indexable' => [\n 'required',\n ],\n 'published_at' => [\n 'required',\n ],\n 'published_at_time' => [\n 'required',\n ],\n 'unpublished_at' => [\n 'nullable',\n ],\n 'unpublished_time' => [\n 'nullable',\n ],\n ];\n }\n case 'PUT':\n {\n return [\n 'title' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250'\n ],\n 'body' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250000'\n ],\n 'online' => [\n 'required',\n ],\n 'indexable' => [\n 'required',\n ],\n 'published_at' => [\n 'required',\n ],\n 'unpublished_at' => [\n 'nullable',\n ],\n ];\n }\n case 'PATCH':\n {\n return [];\n }\n default:\n break;\n }\n }", "title": "" }, { "docid": "5d11b68ef13651a5054bb90054cff1f9", "score": "0.7449877", "text": "public function rules()\n {\n if (in_array($this->method(), ['PUT', 'PATCH'])) {\n $user = User::findOrFail(\\Request::input('id'))->first();\n\n array_forget($this->rules, 'email');\n $this->rules = array_add($this->rules, 'email', 'required|email|max:255|unique:users,email,' . $user->id);\n }\n\n return $this->rules;\n }", "title": "" }, { "docid": "18cc26b7332d9db40e699d83492c8310", "score": "0.7435489", "text": "public function rules()\n {\n $this->sanitize();\n return [\n 'event_id' => 'required',\n 'member_id' => 'required',\n 'guild_pts' => 'required',\n 'position' => 'required',\n 'solo_pts' => 'required',\n 'league_id' => 'required',\n 'solo_rank' => 'required',\n 'global_rank' => 'required',\n ];\n }", "title": "" }, { "docid": "d2a3a158ad227ba289322142dc2e2362", "score": "0.74302024", "text": "public function rules()\n {\n $rules = [\n 'first_name' => ['required'],\n 'birthdate' => ['required', 'localized_date', 'before:today'],\n 'email' => ['required', 'email'],\n ];\n\n if (should_collect_phone()) {\n $rules['mobile'] = ['phone:'.get_country_code()];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "1836584a0ab0d9b95bc6982e5ffc11dd", "score": "0.74242043", "text": "public function rules()\n {\n $rules = [];\n\n if($this->has('twilio_enabled') && $this->twilio_enabled == 1)\n {\n $rules['twilio_account_sid'] = 'required';\n $rules['twilio_auth_token'] = 'required';\n $rules['twilio_application_sid'] = 'required';\n }\n\n return $rules;\n }", "title": "" }, { "docid": "2da40f6fd685cf1842ccababc26bac07", "score": "0.7423808", "text": "public function rules()\n {\n Validator::extend('mail_address_available', function($attribute, $value, $parameters, $validator){\n return MailAddressSpec::isAvailable($value);\n });\n Validator::extend('password_available', function($attribute, $value, $parameters, $validator){\n return PassWordSpec::isAvailable($value);\n });\n\n return [\n 'mail_address' => [\n 'required',\n 'mail_address_available'\n ],\n 'password' => [\n 'required',\n 'password_available',\n ],\n ];\n }", "title": "" }, { "docid": "8e3a6781b36e5eeba715b9d571c442ff", "score": "0.741936", "text": "public function rules()\n {\n switch (strtolower($this->method())) {\n case 'get':\n return $this->getMethodRules();\n case 'post':\n return $this->postMethodRules();\n case 'put':\n return $this->putMethodRules();\n case 'patch':\n return $this->patchMethodRules();\n case 'delete':\n return $this->deleteMethodRules();\n }\n }", "title": "" }, { "docid": "38c6240bebc59545e02e8de490c4b471", "score": "0.7414828", "text": "public function getValidationRules(): array {\n\t\t$result = [];\n\t\t\n\t\tforeach ($this->getSections() as $section) {\n\t\t\t$result = array_merge($result, $section->getValidationRules());\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "e9579020020f6d2056b69fa19d8f4639", "score": "0.7413664", "text": "public function rules()\n {\n $user = Auth::user();\n\n if ('PUT' == Request::method()) {\n return [\n 'name' => ['required', 'max:255'],\n 'email' => ['required', 'regex:/(.+)@(.+)\\.(.+)/i', 'email', 'max:255'],\n 'password' => ['nullable', 'alpha_num', 'min:8'],\n 'language_id' => ['required', 'string', 'exists:languages,id'],\n ];\n }\n }", "title": "" }, { "docid": "63e03334be9a2113fbd26926adc3b3f7", "score": "0.74126065", "text": "public function rules()\n {\n $rules = array();\n return $rules;\n }", "title": "" }, { "docid": "785653df78c2ab0a4c9fb2d5ba5e07b9", "score": "0.740555", "text": "public function rules()\n {\n switch($this->method()){\n case 'POST':\n return [\n 'name' => 'required',\n 'app_id' => 'required',\n 'account_id' => 'required',\n 'start_at' => 'required',\n 'end_at' => 'required',\n 'content' => 'required',\n ];\n break;\n default:\n return [];\n break;\n }\n\n }", "title": "" }, { "docid": "516e8a0d6a4018921185d1b130784428", "score": "0.7404385", "text": "protected function get_validation_rules()\n {\n }", "title": "" }, { "docid": "a1775889a5d4dc6c9d237931e6f6920b", "score": "0.74015605", "text": "public function rules()\n {\n $rules = [\n 'mail_driver' => 'required',\n 'mail_name' => 'required',\n 'mail_email' => 'required',\n ];\n\n $newRules = [];\n\n if($this->mail_driver == 'smtp') {\n $newRules = [\n 'mail_host' => 'required',\n 'mail_port' => 'required|numeric',\n 'mail_username' => 'required',\n 'mail_password' => 'required',\n 'mail_encryption' => 'required',\n ];\n }\n\n return array_merge($rules, $newRules);\n }", "title": "" }, { "docid": "352ca58834aeb231128f4ae20afb4972", "score": "0.73945254", "text": "public function rules()\n {\n $rules = $this->rules;\n //顶级权限\n if(Request::get('pid') == 0){\n $rules['route'] = '';\n $rules['rule'] = '';\n }\n if(Request::isMethod('PATCH')){\n $rules['p_name'] = 'required|max:100';\n }\n return $rules;\n }", "title": "" }, { "docid": "a650694ff955380552d125e04454d72c", "score": "0.73905706", "text": "public function rules()\n {\n $rules['name'] = 'required';\n $rules['poa'] = 'required';\n $rules['background'] = 'required';\n $rules['tester_name'] = 'required';\n $rules['location'] = 'required';\n $rules['end_recruit_date'] = 'required';\n $rules['time_taken'] = 'required';\n $rules['payment'] = 'required';\n $rules['objective'] = 'required';\n $rules['method_desc'] = 'required';\n $rules['health_condition'] = 'required';\n $rules['required_applicant'] = 'required|integer';\n $rules['applicant'] = 'nullable';\n $rules['datetime'] = 'required';\n\n return $rules;\n }", "title": "" }, { "docid": "f11fe79b8cb528a0082c8e79047f3e6b", "score": "0.7379403", "text": "public function rules()\n {\n return [\n ...$this->scopeRules(),\n ...$this->filterRules(),\n ...$this->searchRules(),\n ...$this->sortRules(),\n ...$this->paginationRules(),\n ];\n }", "title": "" }, { "docid": "5d51a80fd31ef87ab9e3203ab7bca983", "score": "0.73732615", "text": "public function rules()\n {\n $rules['name'] = 'required';\n $rules['poa'] = 'required';\n $rules['background'] = 'required';\n $rules['tester_name'] = 'required';\n\n return $rules;\n }", "title": "" }, { "docid": "fa011fdd4881a00613ef47198fd369d2", "score": "0.7371123", "text": "public function rules()\n {\n switch(Route::currentRouteName()){\n case 'adminBinding' :\n return [\n 'order_id' => 'required|integer',\n 'money' => 'required|numeric',\n ];\n case 'adminUnbinding' :\n return [\n 'order_id' => 'required|integer',\n 'pivot_id' => 'required|integer',\n ];\n case 'adminReceiptSave' :\n case 'adminReceiptUpdate' :\n return [\n 'customer_id' => 'required',\n 'receiptcorp' => 'required',\n 'account' => 'required',\n 'account_id' => 'required',\n 'bank' => 'required',\n 'currency_id' => 'required',\n 'advance_amount' => 'required|numeric',\n 'picture' => 'required',\n 'business_type' => 'required|in:1,2,3,4,5',\n 'exchange_type' => 'required_unless:currency_id,354|in:1,2',\n 'expected_received_at' => 'required|date_format:Y-m-d',\n ];\n case 'adminReceiptExchange' :\n return [\n 'rate' => 'required|numeric',\n ];\n default :\n return [];\n }\n }", "title": "" }, { "docid": "93a40e736fa507d787b64840a1eca984", "score": "0.7367849", "text": "public function rules()\n {\n switch ($this->method()){\n case 'GET':\n case 'POST':\n {\n if ($this->social_type == 'weixin'){\n return [\n 'openid' => 'required'\n ];\n }\n return [\n 'email' => 'required|min:2',\n 'password' => 'required|min:2'\n ];\n }\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default :\n {\n return [\n\n ];\n }\n }\n }", "title": "" }, { "docid": "5ee085d53763dfb60cccd5563a7204bd", "score": "0.73666584", "text": "public function rules()\n {\n if(!Auth::check())\n return [\n 'job_id' => 'required',\n 'name' => 'required',\n 'email' => 'required',\n 'contact_number' => 'required',\n 'resume' => 'required|mimes:'.Config::get('config.application_format')\n ];\n else\n return [\n 'job_id' => 'required',\n 'resume' => 'required|mimes:'.Config::get('config.application_format')\n ];\n }", "title": "" }, { "docid": "99f32b2e707327bddd1645ef064c6978", "score": "0.73660535", "text": "public function rules()\n {\n $visible = $this->request->get('visible') ? 1 : 0;\n $this->request->add(['visible' => $visible]);\n $rules = [\n 'numOfViews' => 'required|numeric|min:0',\n 'image' => 'required_unless:_method,PUT|nullable|image'\n ];\n foreach (locales() as $key => $language) {\n $rules['title_' . $key] = 'required|string|max:255';\n $rules['description_' . $key] = 'required|string';\n }\n return $rules;\n }", "title": "" }, { "docid": "15c533a9637750a7c166f1370dd69106", "score": "0.73640966", "text": "public function rules()\n {\n $rules = array();\n\n $rules['name'] = $this->validateNombre();\n $rules['surname'] = $this->validateNSurname();\n $rules['username'] = $this->validateUsername();\n $rules['email'] = $this->validateEmail();\n $rules['password'] = $this->validatePassword();\n\n return $rules;\n }", "title": "" }, { "docid": "0f34b21d41708e61e75d4841e9003fd1", "score": "0.73619753", "text": "public function rules()\n {\n $rules = new Collection();\n\n if (!$this->user() or !$this->user()->addresses()->count()) {\n $rules = $rules->merge($this->addressRules('billing'));\n if ($this->has('different_shipping_address')) {\n $rules = $rules->merge($this->addressRules('shipping'));\n }\n\n return $rules->toArray();\n }\n\n return $rules->merge([\n 'billing_address_id' => 'required|numeric',\n 'shipping_address_id' => 'required|numeric',\n ])->toArray();\n }", "title": "" }, { "docid": "e5244cbfbbfe4b20b30c0d9d237f3f60", "score": "0.73581105", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n {\n return [];\n }\n case 'POST':\n {\n return [\n 'username' => ['required',Rule::unique('admin')->ignore($this->route('admin'))],\n 'password' => 'required|min:6|max:12',\n 'roleid' => 'required',\n ];\n }\n case 'PUT':\n case 'PATCH':\n {\n return [\n 'username' => ['required',Rule::unique('admin')->ignore($this->route('admin'))],\n 'roleid' => 'required',\n ];\n }\n default: break;\n }\n }", "title": "" }, { "docid": "abc93be3f931031861293cc866a59166", "score": "0.73570865", "text": "public function rules()\n {\n $rules['first_name'] = 'required';\n $rules['last_name'] = 'required';\n\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n {\n return [];\n }\n break;\n case 'POST':\n { \n $rules['email'] = 'required|email|unique:users,email';\n }\n case 'PUT':\n case 'PATCH':\n {\n if (FormRequest::segment(2)) {\n $rules['email'] = 'required|email|unique:users,email,' . FormRequest::segment(2) . ',id'; \n }\n }\n break;\n default:break;\n }\n return $rules;\n }", "title": "" }, { "docid": "7acf0b47c2788bc8193d624ba71923f2", "score": "0.73554605", "text": "public function rules(): array\n {\n switch ($this->method()) {\n case 'POST':\n return $this->__rules() + $this->__post();\n case 'PUT':\n return $this->__rules() + $this->__put();\n default:\n return [];\n }\n }", "title": "" }, { "docid": "ba326521591f14deaca54542bf10ca9a", "score": "0.735233", "text": "abstract protected function getFormValidationRules();", "title": "" }, { "docid": "735885f0ad2f32cb2cf28878b76a5d86", "score": "0.73472714", "text": "public function rules()\n {\n $rules = [\n 'url' => 'required|string',\n 'frame_id' => 'required|check_frame',\n // 'dynamic_id' => 'required|check_dynamic',\n 'category_id' => 'check_category',\n 'shop_id' => 'check_shop',\n 'crawl_resources' => 'mixed'\n \n ];\n return $rules;\n // return $this->parseRules($rules);\n }", "title": "" }, { "docid": "e1a2f290a34207b072d57aeb83e35621", "score": "0.7346792", "text": "public function rules()\n {\n $rules = [\n 'name' => 'required',\n ];\n\n $rules += $this->seoRules();\n\n return $rules;\n }", "title": "" }, { "docid": "d04a249d08672e78eefcbf2b5d3dda78", "score": "0.73448825", "text": "public function defineValidationRules()\n {\n return [];\n }", "title": "" }, { "docid": "193f20f580346cf5dcdce2d59a8a91ff", "score": "0.73382276", "text": "public function rules()\n {\n $rules = [];\n if($this->exists('search')) {\n $rules['search'] = [\n 'required',\n 'regex:/(^[A-Za-z0-9 ]+$)+/',\n 'min:2',\n 'max:25'\n ];\n }\n if($this->exists('date_start')) {\n $rules['date_start'] = 'required|date|date_format:Y-m-d';\n if($this->exists('date_end')) {\n $rules['date_end'] = 'required|date|date_format:Y-m-d|after:date_start';\n }\n } else {\n if($this->exists('date_end')) {\n $rules['date_end'] = 'required|date|date_format:Y-m-d';\n }\n }\n return $rules;\n }", "title": "" }, { "docid": "9ec20acd6593b2d7cd813ed765290e3d", "score": "0.73310304", "text": "public function rules()\n {\n $rules = [\n 'credential' => 'required',\n 'password' => 'required',\n ];\n \n $isLoginUser = currentApiRouteName('login-user');\n\n if ($isLoginUser) {\n $rules = [\n 'phone' => 'required',\n 'phone_code' => 'required',\n 'pin' => 'required',\n ];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "d933b15c97f9b0bc8d6945b67e1a736e", "score": "0.732473", "text": "public function rules()\n {\n parent::rules();\n return $this->rules;\n }", "title": "" }, { "docid": "1778ad0127f2ce931fa980b81b87efac", "score": "0.7312831", "text": "public function rules()\n {\n if (in_array($this->method(), ['POST', 'PUT'])) {\n return [\n 'first_name' => 'required|alpha_dash|max:150',\n 'last_name' => 'required|alpha_dash|max:150',\n 'team_id' => 'required|exists:team,id'\n ];\n }\n\n return [];\n }", "title": "" }, { "docid": "b4839203b4b275d1fd14708644f61096", "score": "0.73093206", "text": "public function rules()\n {\n switch($this->method())\n {\n case 'GET':\n case 'DELETE':\n {\n return [];\n }\n case 'POST':\n {\n return [\n 'client_id' => 'required',\n 'title' => 'required',\n 'length' => 'required|numeric',\n 'air_date' => 'required',\n 'production_promotional' => 'required',\n 'production_free' => 'required',\n 'new_client' => 'required',\n ]; \n }\n case 'PUT':\n case 'PATCH':\n {\n return [\n 'client_id' => 'required',\n 'title' => 'required',\n 'length' => 'required|numeric',\n 'air_date' => 'required',\n 'production_promotional' => 'required',\n 'production_free' => 'required',\n 'new_client' => 'required',\n 'start_date' => 'required',\n 'end_date' => 'min:8',\n 'c_number' => 'min:4',\n 'isci' => 'min:4',\n 'music_track' => 'min:6',\n 'youtube_link' => 'min:6',\n ]; \n }\n default: break;\n }\n \n }", "title": "" }, { "docid": "36faf5fb419c1d937fb59ce25345bd92", "score": "0.7308854", "text": "public function rules()\n {\n $rules = [\n 'status' => Rule::in(BookingStatusEnum::values()),\n ];\n\n if (setting('enable_captcha') && is_plugin_active('captcha')) {\n $rules += [\n 'g-recaptcha-response' => 'required|captcha',\n ];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "5416a1fdf83c676ff6b695d03449b32c", "score": "0.7308538", "text": "public function rules()\n {\n $validationRules = [\n 'ten' => 'required',\n 'ngay_bat_dau' => 'required|date_format:Y-m-d',\n 'ngay_ket_thuc' => 'required|date_format:Y-m-d|after:ngay_bat_dau',\n ];\n\n switch ($this->method()) {\n case 'POST':\n $validationRules['ten'] = 'required|unique:huong_nghieps';\n break;\n // case 'PUT':\n // $validationRules['ten_phong'] = ['required',\n // Rule::unique('phongs')->ignore($this->id),\n // ];\n // break;\n default:\n break;\n }\n\n return $validationRules;\n }", "title": "" }, { "docid": "3b73dd4adfcbaf8b7d186eea12573142", "score": "0.73057127", "text": "public function rules()\n {\n // リクエストを取得\n $request = $this->request->all();\n\n $rules = [\n 'title' => 'required',\n // 'from_date' => 'required',\n // 'to_date' => 'required',\n ];\n\n // 掲載期間の入力が正しくないとき\n if( ( isset( $request['from_date'] ) && isset( $request['to_date'] ) ) && ( $request['from_date'] > $request['to_date'] ) ){\n $rules['to_from_date'] = 'required';\n }\n \n return $rules;\n }", "title": "" }, { "docid": "1821c4a450332816d4c5390355595e1f", "score": "0.7301822", "text": "public function rules()\n {\n switch($this->method())\n {\n case 'GET':\n case 'DELETE':\n {\n return [];\n }\n case 'POST':\n {\n $rules = [\n 'id_moneda' => 'required',\n 'detalles_venta' => 'required',\n 'tipo_pago' => 'required'\n ];\n foreach ($this->get('detalles_venta') as $key => $val) {\n $rules['detalles_venta.'.$key.'.id_articulo'] = 'required';\n $rules['detalles_venta.'.$key.'.precio_unitario'] = 'required|min:1';\n $rules['detalles_venta.'.$key.'.cantidad'] = 'required|:min:1';\n }\n return $rules;\n }\n case 'PUT':\n case 'PATCH':\n {\n return [\n /* 'cbxMoneda' => 'required',\n 'cbxEmpleado' => 'required',\n 'cbxContacto' => 'required'*/\n ];\n }\n default:{\n return [];\n }\n }\n }", "title": "" }, { "docid": "2ed71df5d59db0db33e86e9c79d3d01c", "score": "0.7301413", "text": "public function rules() {\n return $this->get_from_model(__FUNCTION__);\n }", "title": "" }, { "docid": "59ce16a5b2a4ebee2a5b4a3202012a08", "score": "0.7297253", "text": "public function rules()\n\t{\n\t\tswitch ($this->method()) {\n\t\t\tcase 'GET':\n\t\t\tcase 'DELETE': {\n\t\t\t\treturn [];\n\t\t\t}\n\t\t\tcase 'POST': {\n\t\t\t\treturn [\n\t\t\t\t\t'provideHelp' => 'required|numeric|min:5000',\n\t\t\t\t];\n\t\t\t}\n\t\t\tcase 'PUT':\n\t\t\tcase 'PATCH': {\n\t\t\t\treturn [\n\t\t\t\t\n\t\t\t\t];\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "65e7998eebda92c11b0e778aa5d6643b", "score": "0.729658", "text": "public static function validationRules()\n {\n return [\n 'consumer_key' => 'max:255',\n 'consumer_key_secret' => 'max:255',\n 'access_token' => 'max:255',\n 'access_token_secret' => 'max:255',\n 'user_id' => 'required|integer'\n ];\n }", "title": "" }, { "docid": "bfada77a4d541b8e9943219e262ea5d3", "score": "0.72924364", "text": "public function rules()\n {\n $named = $this->route()->getName();\n switch ($named) {\n case 'admin.auth.change.password':\n return [\n 'password' => 'required|between:8,16',\n 'password_confirmation' => 'required|between:8,16'\n ];\n case 'admin.auth.edit.profile':\n return [\n 'email' => 'email',\n 'name' => 'between:1,128',\n ];\n default:\n return [\n //\n ];\n }\n }", "title": "" }, { "docid": "587798c2cff5f11345d54e6d037694c3", "score": "0.72861385", "text": "public function rules()\n {\n $routeName = $this->route()->getName();\n switch ($routeName) {\n case \"api.waiting.charges.delete\":\n $rule = [\n \"ids\" => \"required\",\n ];\n break;\n case \"api.waiting.charges.receipt_or_refund\":\n $rule = [\n 'id' => \"required\",\n 'amount' => \"required\"\n ];\n break;\n case \"\":\n $rule = [];\n break;\n };\n\n return $rule;\n }", "title": "" }, { "docid": "e8acf8a215dc7f28ecacce09548b382e", "score": "0.72833693", "text": "public function validation_rules() {\r\n\t\t$class = __CLASS__;\r\n\t\treturn $class::_object()->validates;\r\n }", "title": "" } ]
9527e48018e2de171f127aee2fe7681d
Static method. Filters the POST request to contain only client creatable columns. Everything else is unset. Values used in the parameter should be validated first.
[ { "docid": "95295c58921f81bfd9bac8983dba9c9b", "score": "0.7258789", "text": "public static function filterClientCreatableColumns(array $post);", "title": "" } ]
[ { "docid": "919fc133971ba23f11f3919f7ba999fa", "score": "0.57850873", "text": "public function filterClientUpdatableColumns(array $post);", "title": "" }, { "docid": "8014c883700ced4640df983f9813f140", "score": "0.5655429", "text": "protected function allowedDataFields(){\n // values that are allowed within data in jsonapi\n $jsonapiAllowed = ['type','relationships','attributes','links','meta'];\n // add id only if request is PATCH\n if($this->request->method() === \"PATCH\"){\n $jsonapiAllowed[] = 'id';\n }\n // return rule\n return [\n 'data' => 'array_has_only:'.implode(',',$jsonapiAllowed)\n ];\n }", "title": "" }, { "docid": "8970d7a790f18d9e0842784c21ceb5ad", "score": "0.548257", "text": "public function getClientRequiredFields(): array\n {\n return [];\n }", "title": "" }, { "docid": "e05712396ba3e20d724eb91d72a79604", "score": "0.53654814", "text": "public static function get_columns_form_disallowed_fields() {\n\t\treturn (array) apply_filters( 'wpforms_entries_table_fields_disallow', array( 'divider', 'html', 'pagebreak', 'captcha' ) );\n\t}", "title": "" }, { "docid": "1870f5f67dce0e223273278ea31ceccb", "score": "0.5316103", "text": "function single_form_add_visible_columns(){\n $master_table_visible_columns = $this->grants->single_form_add_visible_columns();\n $lookup_tables = $this->grants->lookup_tables();\n\n $get_all_table_fields = $this->get_all_table_fields();\n\n foreach ($get_all_table_fields as $get_all_table_field) {\n //Unset foreign keys columns, created_by and last_modified_by columns\n if( substr($get_all_table_field,0,3) == 'fk_' ||\n strpos($get_all_table_field,'_deleted_at') == true\n ){\n unset($get_all_table_fields[array_search($get_all_table_field,$get_all_table_fields)]);\n }\n }\n\n\n $visible_columns = $get_all_table_fields;\n $lookup_columns = array();\n\n if(is_array($master_table_visible_columns) && count($master_table_visible_columns) > 0 ){\n $visible_columns = $master_table_visible_columns;\n }else{\n\n if(is_array($lookup_tables) && count($lookup_tables) > 0 ){\n foreach ($lookup_tables as $lookup_table) {\n\n $lookup_table_columns = $this->get_all_table_fields($lookup_table);\n\n foreach ($lookup_table_columns as $lookup_table_column) {\n // Only include the name field of the look up table in the select columns\n if(strpos($lookup_table_column,'_name') == true){\n array_push($visible_columns,$lookup_table_column);\n }\n\n }\n }\n }\n\n }\n \n $controlled_visible_column = array();\n\n foreach($visible_columns as $column){\n if($this->grants->check_role_has_field_permission($this->controller,'create',$column)){\n $controlled_visible_column[] = $column;\n } \n }\n\n return $controlled_visible_column;\n }", "title": "" }, { "docid": "12e1ce6576215d17dad9cda07186ed77", "score": "0.5089374", "text": "static function getCreateFields();", "title": "" }, { "docid": "915af972e5d53d7ceb58c0651ab71de5", "score": "0.5078101", "text": "public function filters()\n {\n return [\n 'member_request_uuid' => 'trim',\n ];\n }", "title": "" }, { "docid": "19639ba2861afdff52ff7331bf851e9e", "score": "0.5042475", "text": "protected function getInputData ()\n {\n (new HCRivileClientsValidator())->validateForm();\n\n $_data = request()->all();\n\n if (array_has($_data, 'id'))\n array_set($data, 'record.id', array_get($_data, 'id'));\n\n array_set($data, 'record.COUNT', array_get($_data, 'count'));\n array_set($data, 'record.N08_KODAS_KS', array_get($_data, 'N08_KODAS_KS'));\n array_set($data, 'record.N08_RUSIS', array_get($_data, 'N08_RUSIS'));\n array_set($data, 'record.N08_PVM_KODAS', array_get($_data, 'N08_PVM_KODAS'));\n array_set($data, 'record.N08_IM_KODAS', array_get($_data, 'N08_IM_KODAS'));\n array_set($data, 'record.N08_PAV', array_get($_data, 'N08_PAV'));\n array_set($data, 'record.N08_ADR', array_get($_data, 'N08_ADR'));\n array_set($data, 'record.N08_KODAS_VS', array_get($_data, 'N08_KODAS_VS'));\n array_set($data, 'record.N08_PASTAS', array_get($_data, 'N08_PASTAS'));\n array_set($data, 'record.N08_ATSTOVAS', array_get($_data, 'N08_ATSTOVAS'));\n array_set($data, 'record.N08_E_MAIL', array_get($_data, 'N08_E_MAIL'));\n array_set($data, 'record.N08_FAX_NUM', array_get($_data, 'N08_FAX_NUM'));\n array_set($data, 'record.N08_TEL', array_get($_data, 'N08_TEL'));\n array_set($data, 'record.N08_MOB_TEL', array_get($_data, 'N08_MOB_TEL'));\n array_set($data, 'record.N08_KODAS_LS_1', array_get($_data, 'N08_KODAS_LS_1'));\n array_set($data, 'record.N08_KODAS_LS_2', array_get($_data, 'N08_KODAS_LS_2'));\n array_set($data, 'record.N08_KODAS_LS_3', array_get($_data, 'N08_KODAS_LS_3'));\n array_set($data, 'record.N08_KODAS_LS_4', array_get($_data, 'N08_KODAS_LS_4'));\n array_set($data, 'record.N08_TIPAS_PIRK', array_get($_data, 'N08_TIPAS_PIRK'));\n array_set($data, 'record.N08_TIPAS_TIEK', array_get($_data, 'N08_TIPAS_TIEK'));\n array_set($data, 'record.N08_KODAS_GS', array_get($_data, 'N08_KODAS_GS'));\n array_set($data, 'record.N08_CREDIT_LIM', array_get($_data, 'N08_CREDIT_LIM'));\n array_set($data, 'record.N08_KODAS_DS', array_get($_data, 'N08_KODAS_DS'));\n array_set($data, 'record.N08_DELSPINIGIAI', array_get($_data, 'N08_DELSPINIGIAI'));\n array_set($data, 'record.N08_KODAS_QS', array_get($_data, 'N08_KODAS_QS'));\n array_set($data, 'record.N08_NUOL_GR', array_get($_data, 'N08_NUOL_GR'));\n array_set($data, 'record.N08_KODAS_XS_T', array_get($_data, 'N08_KODAS_XS_T'));\n array_set($data, 'record.N08_KODAS_XS_P', array_get($_data, 'N08_KODAS_XS_P'));\n array_set($data, 'record.N08_KODAS_TS_T', array_get($_data, 'N08_KODAS_TS_T'));\n array_set($data, 'record.N08_KODAS_TS_P', array_get($_data, 'N08_KODAS_TS_P'));\n array_set($data, 'record.N08_ADD_DATE', array_get($_data, 'N08_ADD_DATE'));\n array_set($data, 'record.N08_SUTARTIS', array_get($_data, 'N08_SUTARTIS'));\n array_set($data, 'record.N08_KAIN_ABC', array_get($_data, 'N08_KAIN_ABC'));\n array_set($data, 'record.N08_DIENOS', array_get($_data, 'N08_DIENOS'));\n array_set($data, 'record.N08_TIEK_DIEN', array_get($_data, 'N08_TIEK_DIEN'));\n array_set($data, 'record.N08_KRED_LIM', array_get($_data, 'N08_KRED_LIM'));\n array_set($data, 'record.N08_PRIEDAI', array_get($_data, 'N08_PRIEDAI'));\n array_set($data, 'record.N08_KODAS_IS', array_get($_data, 'N08_KODAS_IS'));\n array_set($data, 'record.N08_KODAS_OS_P', array_get($_data, 'N08_KODAS_OS_P'));\n array_set($data, 'record.N08_KODAS_OS', array_get($_data, 'N08_KODAS_OS'));\n array_set($data, 'record.N08_KODAS_MS_P', array_get($_data, 'N08_KODAS_MS_P'));\n array_set($data, 'record.N08_KODAS_MS_T', array_get($_data, 'N08_KODAS_MS_T'));\n array_set($data, 'record.N08_VAL_POZ', array_get($_data, 'N08_VAL_POZ'));\n array_set($data, 'record.N08_KODAS_VL_1', array_get($_data, 'N08_KODAS_VL_1'));\n array_set($data, 'record.N08_KODAS_VL_2', array_get($_data, 'N08_KODAS_VL_2'));\n array_set($data, 'record.N08_KODAS_VL_3', array_get($_data, 'N08_KODAS_VL_3'));\n array_set($data, 'record.N08_KODAS_VL_4', array_get($_data, 'N08_KODAS_VL_4'));\n array_set($data, 'record.N08_KODAS_VL_5', array_get($_data, 'N08_KODAS_VL_5'));\n array_set($data, 'record.N08_KODAS_VL_6', array_get($_data, 'N08_KODAS_VL_6'));\n array_set($data, 'record.N08_POZ_DATE', array_get($_data, 'N08_POZ_DATE'));\n array_set($data, 'record.N08_BEG_DATE', array_get($_data, 'N08_BEG_DATE'));\n array_set($data, 'record.N08_END_DATE', array_get($_data, 'N08_END_DATE'));\n array_set($data, 'record.N08_ADDUSR', array_get($_data, 'N08_ADDUSR'));\n array_set($data, 'record.N08_USERIS', array_get($_data, 'N08_USERIS'));\n array_set($data, 'record.N08_R_DATE', array_get($_data, 'N08_R_DATE'));\n array_set($data, 'record.N08_GER_POZ', array_get($_data, 'N08_GER_POZ'));\n array_set($data, 'record.N08_KODAS_LS_5', array_get($_data, 'N08_KODAS_LS_5'));\n array_set($data, 'record.N08_KODAS_LS_6', array_get($_data, 'N08_KODAS_LS_6'));\n array_set($data, 'record.N08_KODAS_LS_7', array_get($_data, 'N08_KODAS_LS_7'));\n array_set($data, 'record.N08_KODAS_LS_8', array_get($_data, 'N08_KODAS_LS_8'));\n array_set($data, 'record.N08_T_LIM_POZ', array_get($_data, 'N08_T_LIM_POZ'));\n array_set($data, 'record.N08_T_KRED_LIM', array_get($_data, 'N08_T_KRED_LIM'));\n array_set($data, 'record.N08_KODAS_VL_LIM', array_get($_data, 'N08_KODAS_VL_LIM'));\n array_set($data, 'record.N08_KAINYNAS', array_get($_data, 'N08_KAINYNAS'));\n array_set($data, 'record.N08_AR_REIK_P', array_get($_data, 'N08_AR_REIK_P'));\n array_set($data, 'record.N08_AR_REIK_T', array_get($_data, 'N08_AR_REIK_T'));\n array_set($data, 'record.N08_REZERVAS', array_get($_data, 'N08_REZERVAS'));\n array_set($data, 'record.N08_INTRASTAT', array_get($_data, 'N08_INTRASTAT'));\n array_set($data, 'record.N08_WB_KR', array_get($_data, 'N08_WB_KR'));\n array_set($data, 'record.N08_WB_KR_GR', array_get($_data, 'N08_WB_KR_GR'));\n array_set($data, 'record.N08_SUMA_WK_LIMIT', array_get($_data, 'N08_SUMA_WK_LIMIT'));\n array_set($data, 'record.N08_SUMA_WK', array_get($_data, 'N08_SUMA_WK'));\n array_set($data, 'record.N08_KODAS_VL_U', array_get($_data, 'N08_KODAS_VL_U'));\n\n return makeEmptyNullable($data);\n }", "title": "" }, { "docid": "7a16773eaee95329ae53b0caa6819fde", "score": "0.4988799", "text": "public function getCreateFieldsMapping() : array {\n $fields = [];\n\n $vars = get_object_vars($this);\n unset($vars['dal']); // Remove the all model dal variable\n unset($vars['id']); // Remove id which is not necessary on create\n unset($vars['includedFields']); // Remove included fields\n\n foreach($vars as $key => $var) {\n $fields[$this->convertToUnderscore($key)] = $var;\n }\n\n return $fields;\n }", "title": "" }, { "docid": "f370f4cc8e5c4e634ce8bc699d85efc7", "score": "0.49785674", "text": "protected function getAllowedFields(): array\n {\n return [\n 'post_categories.id',\n 'post_categories.name',\n 'post_categories.deleted_at',\n 'post_categories.created_at',\n 'post_categories.updated_at',\n ];\n }", "title": "" }, { "docid": "0f5938dfbc08e6a79bbac8c48e609f8b", "score": "0.4958346", "text": "private function filters()\n {\n return $this->request->all();\n }", "title": "" }, { "docid": "a3853e6233ac07ef1cb7e6ff57c51375", "score": "0.49476784", "text": "public function acceptedRequestData()\n {\n return [\n 'obj_type',\n 'obj_id',\n 'collection_ident',\n ];\n }", "title": "" }, { "docid": "ce72c00ef268531e8d9b0f22e4b4f58f", "score": "0.4929337", "text": "public function onlyInput()\n\t{\n\t\treturn $this->withInput( $this->request->only( func_get_args() ) );\n\t}", "title": "" }, { "docid": "28aadab185c8511e874e7b13cabe8211", "score": "0.49286124", "text": "function getParameterFields() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "41da5fa3be4642a0827648ef40c9bc16", "score": "0.49234822", "text": "public function filters()\n {\n $filters = array(\n 'postOnly + delete', // we only allow deletion via POST request\n );\n\n return CMap::mergeArray($filters, parent::filters());\n }", "title": "" }, { "docid": "f8b5edebc7e830f55c4a3a212ce05e0a", "score": "0.49151042", "text": "public function filterPOST() {\n\t\t$_POST = $this->filter($_POST);\n\t\treturn $_POST;\n\t}", "title": "" }, { "docid": "3c5ee056e1e080fa37360cdd57c85ada", "score": "0.49149662", "text": "public function fields(NovaRequest $request)\n {\n return [];\n }", "title": "" }, { "docid": "e95d5e2d9b544a1abcd865bfe96f1062", "score": "0.4904825", "text": "public function createClient(){\n if (isset($_POST[\"frmcliente\"])) {\n $data = $_POST[\"frmcliente\"];\n $cliente = array_map('strtoupper', $data);\n $result = $this->model->createCliente($cliente);\n print_r($result);\n }\n }", "title": "" }, { "docid": "52f7fb7f33763056efcd7ae9d5e8c855", "score": "0.48858586", "text": "public function gatherCleanData() {\n\t\tif (!empty($_POST)) {\n\t\t\tforeach(array_keys($this->data) as $key) {\n\t\t\t\tswitch ($key) {\n\t\t\t\t\t// phone? date? password?\n\t\t\t\t\tcase ('email');\n\t\t\t\t\t$this->data[$key] = filter_var(trim($_POST[$key]), FILTER_SANITIZE_EMAIL);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tcase('name');\n\t\t\t\t\t$this->data[$key] = filter_var(trim($_POST[$key]), FILTER_SANITIZE_STRING);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tcase('robots');\n\t\t\t\t\t$this->data[$key] = filter_var(trim($_POST[$key]), FILTER_SANITIZE_STRING);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tdefault;\n\t\t\t\t\t$this->data[$key] = htmlentities(trim($_POST[$key]));\n\t\t\t\t\tbreak;\n\t\t\t\t} // switch\n\t\t\t} // foreach\n\t\t\treturn true;\n\t\t} else {return false;}\n\t}", "title": "" }, { "docid": "117e64dd672fb6dfecafc4d9b4966790", "score": "0.48846358", "text": "public function getRequestData() {\n\t\t$data = $this->Controller->request->data;\n\n\t\tif ($data) {\n\t\t\tforeach ($data as $model => $fields) {\n\t\t\t\tforeach ($fields as $key => $value) {\n\t\t\t\t\tif (\n\t\t\t\t\t\t(mb_substr($key, -5) === '_null') ||\n\t\t\t\t\t\t(mb_substr($key, -11) === '_type_ahead') ||\n\t\t\t\t\t\tin_array($key, array('redirect_to', 'log_comment', 'report_action'))\n\t\t\t\t\t) {\n\t\t\t\t\t\tunset($data[$model][$key]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "5b7c93cd18d1ac5f6545ed801202fc95", "score": "0.487553", "text": "public function buildCompanyData(){\n\n $data = request()->only([\"name\", \"email\", \"website\"]);\n //$data['created_by'] = auth()->user()->id;\n return $data;\n }", "title": "" }, { "docid": "7d25ff9b995c8b764cd72f5f8d50ae7b", "score": "0.48747367", "text": "public function columns(): array\n { \n return array_diff($this->fillable, $this->hidden);\n }", "title": "" }, { "docid": "04fbf9a2ef5738a4b410eb0514a66bc0", "score": "0.4850431", "text": "private function filter()\n {\n $this->chooseModal();\n $rrr = array();\n $rrr['id'] = $this->data['id'];\n $this->id = $this->data['id'] ?? array_shift($this->data);\n foreach ($this->data as $key => $val) {\n if (in_array($key, $this->columns)) {\n $rrr[$key] = $val;\n }\n }\n return $this->data = $rrr;\n }", "title": "" }, { "docid": "69eb61e78f3bd78630c1db75fc975ee4", "score": "0.48500052", "text": "public function getDataForClient()\n {\n $ret = array();\n foreach ($this->_data as $name => $value) {\n if (in_array($name, $this->_hiddenFromClientAttr)) {\n continue;\n }\n\n $ret[$name] = $value;\n }\n return $ret;\n }", "title": "" }, { "docid": "874aba7cbdf0359fbe6c6fd7a6cdf4bb", "score": "0.48493513", "text": "protected function buildFilterFields(): void\n {\n //====================================================================//\n // Creation Date\n $this->fieldsFactory()->create(SPL_T_DATETIME)\n ->identifier(\"createdAt\")\n ->name(\"Date Created\")\n ->description(\"Order Creation Date: Only used to Filter Orders for Optilog\")\n ->microData(\"http://schema.org/DataFeedItem\", \"dateCreated\")\n ->isRequired()\n ->isWriteOnly()\n ;\n }", "title": "" }, { "docid": "daa60b2fe3a33f9e52dbf8a77039ae26", "score": "0.48454094", "text": "private function filter()\n {\n $this->chooseModal();\n $rrr = array();\n $rrr['id'] = $this->vals['id'];\n foreach ($this->vals as $key => $val) {\n if (in_array($key, $this->columns)) {\n $rrr[$key] = $val;\n }\n }\n return $this->vals = $rrr;\n }", "title": "" }, { "docid": "1fb5905040c1dd64d8a3e389be3a54fe", "score": "0.484333", "text": "abstract public function getAllowedFields();", "title": "" }, { "docid": "1a0cd5d51a7216eeaf79a0df43382014", "score": "0.48392776", "text": "public function filterableFields() {\n\t\treturn static::FILTERABLE_FIELDS;\n\t}", "title": "" }, { "docid": "d3571edd5d33f6acbd41d9b6fecfabc5", "score": "0.4835747", "text": "protected function getOptionalDtoFields()\n {\n return [\n 'vrm',\n 'disc',\n ];\n }", "title": "" }, { "docid": "66a8996008ce8ce87212cae36eb94a53", "score": "0.48194262", "text": "public function validateRequest(){\n\t\t$this->draw = $this->request->draw;\n\t\t$this->columns = $this->request->columns;\n\t\t$this->order = $this->request->order;\n\t\t$this->start = $this->request->start;\n\t\t$this->length = $this->request->length;\n\n\t\t$validator = Validator::make($this->request->all(), [\n\t\t\t'draw' => 'required|numeric',\n\t\t\t'columns' => 'required|array',\n\t\t\t'order' => 'array',\n\t\t\t'start' => 'required',\n\t\t\t'length' => 'required',\n\t\t]);\n\n\t\tif($validator->fails()){\n\t\t\t$this->throwErr('Invalid datatable request');\n\t\t}\n\t}", "title": "" }, { "docid": "da393d85d66e387ff611ea6a49b26e6f", "score": "0.48093635", "text": "public function rules()\n {\n return [\n 'client_type_id' => 'required|exists:client_types,id',\n 'first_name1' => 'required|alpha',\n 'first_name2' => 'alpha',\n 'last_name1' => 'required|alpha',\n 'last_name2' => 'alpha',\n 'phone_number' => 'required|unique:clients,phone_number',\n 'email' => 'required|email|unique:clients,email',\n ];\n }", "title": "" }, { "docid": "f5994e904ef2d5897a97af8f48e291b1", "score": "0.4808832", "text": "public function filterRequestData(): void\n {\n // Filter Given Data From Request\n\t}", "title": "" }, { "docid": "70413e1734175a6ae43ef5bddda6f373", "score": "0.4804767", "text": "public function getPostDataUnsafe(FilterSet $filter = null): array\n {\n if (!$this->traitSecurity) {\n $this->traitSecuritySetup();\n }\n if ($filter) {\n return $filter($_POST);\n }\n return $_POST;\n }", "title": "" }, { "docid": "1fda07335ec211ee2e080dcaa958ebf1", "score": "0.48021165", "text": "abstract public function excluded_columns_for_insert();", "title": "" }, { "docid": "5061987ea4b3807251641b5d2fe45ad6", "score": "0.48002836", "text": "public abstract function getWhiteListFields(): array;", "title": "" }, { "docid": "12e4e82cf417c1658c5ae08314fb1e5c", "score": "0.4792947", "text": "public function filters()\n {\n return $this->request->all();\n }", "title": "" }, { "docid": "eed18eb951486c7d8553c4d9d3b21c5e", "score": "0.4791767", "text": "public static function fields($request)\n { \n return [ \n ];\n }", "title": "" }, { "docid": "3e3e3395eb2a4e90e8bdac911129b190", "score": "0.47704077", "text": "public function create()\n {\n if ($this->privileges[\"role\"] != 3 && $this->privileges[\"role\"] != 2) {\n return response()->json([\n 'message' => 'Forbidden'\n ], 403);\n }\n return PostsTranslate::getEditableColumns();\n }", "title": "" }, { "docid": "30413daa1d558dbdd50b904c7058b443", "score": "0.47667015", "text": "public function recuperaDatidaValidare(){\n $datiDaValidare; \n foreach ($_POST as $key => $value) {\n if($key === 'provincia' || $key === 'provinciaClinica' || $key ==='codiceFiscale')\n {\n $value = strtoupper($value);\n }\n $datiDaValidare[$key] = trim($value);\n }\n return $datiDaValidare;\n }", "title": "" }, { "docid": "37f6abc2eba835af02fad7852409e843", "score": "0.47565615", "text": "public function getPostFields () {}", "title": "" }, { "docid": "6c1f3e535484b9d7d202678ee55bcdfd", "score": "0.47551367", "text": "public function filters(NovaRequest $request): array\n {\n return [];\n }", "title": "" }, { "docid": "518c8a419726372168625cae34d6a44e", "score": "0.47467214", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'DELETE': {\n return [];\n }\n default: {\n return [\n 'user_id' => 'required|int:clients,user_id,'.$this->id,\n 'wife' => 'required|text:clienthasfamily,wife,',\n 'childrens' => 'required|text:clienthasfamily,childrens,',\n ];\n }\n }\n }", "title": "" }, { "docid": "59f05ede20c3a46bdfb3e9c2b10a9f68", "score": "0.47418427", "text": "private function sanitizeInput()\n {\n // remove whitespaces to the left and right of every values\n $_POST = array_map('trim', $_POST);\n\n $sanitizationParams = [\n 'name' => FILTER_SANITIZE_STRING,\n 'description' => FILTER_SANITIZE_STRING,\n 'image' => FILTER_UNSAFE_RAW,\n 'price' => [\n 'filter' => FILTER_SANITIZE_NUMBER_FLOAT,\n 'flags' => FILTER_FLAG_ALLOW_FRACTION\n ],\n 'quantity' => FILTER_SANITIZE_NUMBER_INT,\n ];\n\n $product = filter_var_array($_POST, $sanitizationParams);\n\n // since keys and values are not sent if checkbox is not\n // checked, we need to manually set the value\n $product['is_featured'] = isset($_POST['is-featured']);\n\n return $product;\n }", "title": "" }, { "docid": "8addaabc08db1c5834be8c4f6db360d4", "score": "0.47270232", "text": "protected function filterCredentials(Request $request): array\n {\n return $request->only(['id', 'rawId', 'response', 'type']);\n }", "title": "" }, { "docid": "07071c6199d171c1d6b25f71bf2ae989", "score": "0.47258982", "text": "public function rules()\n {\n return [\n 'rut' => [\n 'required',\n 'max:100',\n Rule::unique('clients')->ignore($this->client->id)\n ],\n 'email' => 'required|max:100|email',\n 'name' => 'required|max:255',\n 'primaryPhone' => 'required|max:50',\n 'secondaryPhone' => 'required|max:50',\n 'category' => 'required|max:255',\n 'website' => 'nullable|max:255',\n 'address' => 'required|max:255',\n 'contactName' => 'required|max:100',\n 'type' => 'required|max:255',\n 'stateId' => 'required|exists:locations,id',\n 'cityId' => 'required|exists:locations,id',\n ];\n }", "title": "" }, { "docid": "1e9510d9a2bd0c4e8cc18237468c5f2e", "score": "0.47204515", "text": "public function validInternship()\n {\n $requiredFields = [\"title\", \"company\", \"appTypeText\", \"location\", \"category\"];\n $errors = [];\n foreach ($requiredFields as $key) {\n if(empty(trim($_POST[$key]))) {\n $errors[$key.\"Error\"] = \"Required field\";\n }\n }\n\n return $errors;\n }", "title": "" }, { "docid": "15c2eefbb3d4849f3aaf88e9127d477c", "score": "0.47203726", "text": "public function getParameterAllowableValues()\n {\n return [\n self::PARAMETER_BRAND,\n self::PARAMETER_CATEGORY,\n ];\n }", "title": "" }, { "docid": "a1c018b5ca0b99463741f9ed9d3df9d9", "score": "0.4719063", "text": "public function should_return_valid_json_with_all_fields()\n {\n $this->expectsEvents(UserCreated::class);\n\n $response = $this->call('POST', '/v1/users', [\n 'firstname' => 'Berzel',\n 'lastname' => 'Tumbude',\n 'email' => 'berzel@app.com',\n 'password' => 'secret123',\n 'password_confirmation' => 'secret123'\n ]);\n\n $this->seeStatusCode(HttpStatus::CREATED);\n\n $this->seeJsonContains([\n 'id' => 1,\n 'firstname' => 'Berzel',\n 'lastname' => 'Tumbude',\n 'email' => 'berzel@app.com'\n ]);\n\n $this->seeJsonDoesntContains([\n 'password' => 'secret123',\n 'password_confirmation' => 'secret123'\n ]);\n }", "title": "" }, { "docid": "197930c3e2c4f525b91c88865fa7c1a4", "score": "0.47185788", "text": "public function fields(Request $request)\n { \n return [ \n ]; \n }", "title": "" }, { "docid": "b14bf4b03dbc0253f20983eebcf03d96", "score": "0.46953687", "text": "public function filters()\n {\n return [\n 'nome' => \"trim\",\n 'telefone' => \"trim\",\n 'email' => \"trim\",\n 'cep' => \"trim\",\n 'logradouro' => \"trim\",\n 'complemento' => \"trim\",\n 'bairro' => \"trim\",\n 'localidade' => \"trim\",\n 'uf' => \"trim\"\n ];\n }", "title": "" }, { "docid": "a17cf53d2adaceef3118eeb6ac829e2f", "score": "0.46915367", "text": "abstract public function fields(Request $request);", "title": "" }, { "docid": "13259a26212c1a12805bfc0a87155fb0", "score": "0.46905535", "text": "public function sanitise()\n\t{\n\t\tif ($this->Projects == '') \n\t\t{\n\t\t\t$this->Projects = '-1'; // Default is to select all projects.\t\n\t\t}\n\n\t\tif ($this->Clients == '')\n\t\t{\n\t\t\t$this->Clients = '-1'; // Default is to select all clients.\n\t\t}\n\t\t\n\t\tif ($this->Users == '')\n\t\t{\n\t\t\t$this->Users = '-1'; // Default is to select all users.\n\t\t}\n\n\t\t// If all clients is selected, make that the only entry in the field.\n\t\t$clientIDsArray = explode(',', $this->Clients);\n\t\tif (in_array('-1', $clientIDsArray))\n\t\t\t$this->Clients = '-1';\n\n\t\t// If all projects is selected, make that the only entry in the field.\n\t\t$projectIDsArray = explode(',', $this->Projects);\n\t\tif (in_array('-1', $projectIDsArray))\n\t\t\t$this->Projects = '-1';\n\n\t\t// If all users is selected, make that the only entry in the field.\n\t\t$userIDsArray = explode(',', $this->Users);\n\t\tif (in_array('-1', $userIDsArray)) \n\t\t\t$this->Users = '-1';\n\t\t\t\n\t}", "title": "" }, { "docid": "a7972bb351a4ed00aef91dcec8e8348f", "score": "0.46859103", "text": "public function rules()\n {\n return [\n 'adminId' => 'required|unique:clients,admin_id|exists:users,id',\n 'portfolioId' => 'required',\n 'clientName' => 'required|max:255',\n 'clientModel' => 'required|max:10',\n 'clientTheme' => 'required|max:30',\n 'clientValueTable' => 'required|max:30',\n ];\n }", "title": "" }, { "docid": "a07fd62db840cc63ae553daa0a466bb0", "score": "0.46832833", "text": "public function rules()\n {\n return [\n 'client'=>\"required|regex:/[^0]/\",\n 'invoice_name'=>\"required\",\n 'date_created'=>\"required|date\"\n ];\n }", "title": "" }, { "docid": "c2cdb8e3f9ffed236aef44ec8f7b9dc0", "score": "0.4680594", "text": "public function fields(Request $request)\n {\n return [\n Date::make('Date', 'created_at')\n ->rules(['required', 'date'])\n ->sortable(),\n\n Text::make('Title', 'title')\n ->sortable()\n ->rules(['required', 'min:3']),\n\n BelongsTo::make('User', 'user', User::class)\n ->sortable()\n ->hideWhenCreating()\n ->hideWhenUpdating(),\n\n BelongsTo::make('Project', 'project', Project::class)\n ->sortable()\n ->searchable(),\n\n Text::make('Client', 'client')\n ->exceptOnForms()\n ->resolveUsing(function ($client) {\n if (isset($client->name)) {\n return \"<a href='\" . url(config(\"nova.path\") . \"/resources/clients/\" . $client->id) . \"' \n class='no-underline dim text-primary font-bold'>\" . $client->name . \"</a>\";\n }\n return null;\n })->asHtml()\n ->onlyOnDetail(),\n\n Markdown::make('Notes', 'notes')\n ->alwaysShow(),\n\n Select::make('Type', 'type')->options([\n 'admin' => 'Administration',\n 'development' => 'Development',\n 'support' => 'Support',\n 'general' => 'General'\n ])\n ->sortable()\n ->rules(['required'])\n ->displayUsingLabels(),\n\n Number::make('Hours', 'hours')\n ->min(0)->step(0.01)\n ->sortable()\n ->rules(['required_without:minutes', 'numeric', 'nullable']),\n\n Number::make('Time in minutes', 'minutes')\n ->min(0)->step(1)\n ->rules(['required_without:hours', 'numeric', 'nullable'])\n ->help(\"This field will be converted to hours on save.\")\n ->onlyOnForms(),\n\n Boolean::make('Billable', 'billable')\n ->sortable(),\n\n Boolean::make('Invoiced', 'invoiced')\n ->sortable()\n ->hideWhenCreating()\n ];\n }", "title": "" }, { "docid": "67bfbc33557812c326b6f53524997d42", "score": "0.4678004", "text": "public function filters(NovaRequest $request)\n {\n return [];\n }", "title": "" }, { "docid": "67bfbc33557812c326b6f53524997d42", "score": "0.4678004", "text": "public function filters(NovaRequest $request)\n {\n return [];\n }", "title": "" }, { "docid": "67bfbc33557812c326b6f53524997d42", "score": "0.4678004", "text": "public function filters(NovaRequest $request)\n {\n return [];\n }", "title": "" }, { "docid": "67bfbc33557812c326b6f53524997d42", "score": "0.4678004", "text": "public function filters(NovaRequest $request)\n {\n return [];\n }", "title": "" }, { "docid": "1c465c488ba3df16719dae1cfc21a6e4", "score": "0.46733668", "text": "function checkBodyDeleteRequest(){\n $postDataJson = file_get_contents('php://input');\n\n # Get as an object\n $postData = json_decode($postDataJson, true);\n\n if(!isset($postData['user_id_to_delete'])){\n $response = ['error' => '%User id% is a required field for this operation'];\n return $response;\n }\n\n return $postData;\n}", "title": "" }, { "docid": "244a104727859825298f34246423fe6c", "score": "0.46663725", "text": "public function rules()\n {\n// .$this->route->getparameter('product'),\n return [\n 'cedula' => 'numeric|unique:clients,cedula,'.$this->route->getparameter('clients'),\n 'email' => 'email|unique:clients,email,'.$this->route->getparameter('clients'),\n 'name'=>'max:120|required|regex:[^[a-zA-Z]+(\\s*[a-zA-Z]*)*[a-zA-Z]+$]',\n 'estado'=>'not_in:0|required',\n 'tipo'=>'not_in:0|required',\n 'direccion'=>'max:30',\n 'telefono'=>'min:7|numeric',\n 'sexo'=>'not_in:0|required', \n 'comentarios'=>'max:120', \n ];\n }", "title": "" }, { "docid": "af480bcae2335f149842f68346896e78", "score": "0.46649072", "text": "protected function toExcludedPropertiesOnCreate(): array\n {\n return [];\n }", "title": "" }, { "docid": "a274e254b9db8400966774f19d32ff01", "score": "0.46627507", "text": "function checkBodyRequest(){\n $postDataJson = file_get_contents('php://input');\n\n # Get as an object\n $postData = json_decode($postDataJson, true);\n\n $response = [];\n\n if(!isset($postData['user_name'])){\n $response = ['error' => '%user_name% is a required field'];\n return $response;\n }\n\n if(!isset($postData['user_email'])){\n $response = ['error' => '%user_email% is a required field'];\n return $response;\n }\n\n if(!isset($postData['age'])){\n $response = ['error' => '%age% is a required field'];\n return $response;\n }\n\n return $postData;\n}", "title": "" }, { "docid": "25083d763b9ff3ee3ebb6f1015148d4b", "score": "0.465515", "text": "public static function validate($params)\n {\n $params = array_only($params, array_keys(self::getCreateProperties()));\n\n return parent::validate($params);\n\n }", "title": "" }, { "docid": "070293d06d561ef148350c1ccf7424d9", "score": "0.46512043", "text": "public function getFilterColumns() : array\n {\n return array_keys(self::$validationRules);\n }", "title": "" }, { "docid": "4ee83541664d425cbdc963003687addf", "score": "0.46409523", "text": "public function rules()\n {\n $rules = [];\n $this->endpoint = $this->path();\n $this->verb = $this->getMethod();\n\n if($this->verb == 'POST') {\n $rules = [\n 'customer_id' => 'required|numeric',\n 'product_id' => 'required|numeric',\n ];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "c53ec96a462f869f6c6ba85e2360da8d", "score": "0.4615908", "text": "private function validate_columns()\n\t{\n\t\tforeach ($this->columns as $column)\n\t\t{\n\t\t\tif (is_string($column) === FALSE || $this->db->fieldExists($column, $this->table) === FALSE)\n\t\t\t{\n\t\t\t\t$this->response(array(\n\t\t\t\t\t'error' => 'Invalid column.'\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a8dad04a8f2f93f463774d7177f2f80a", "score": "0.46155208", "text": "private function _getFilterData($params)\n {\n // Init empty array value\n $data = [];\n\n // Filter if have request value, empty in other case\n $data['filter-ship-name'] = !empty($params['filter-ship-name']) ? $params['filter-ship-name'] : '';\n $data['filter-company'] = !empty($params['filter-company']) ? $params['filter-company'] : '';\n $data['filter-classification'] = !empty($params['filter-classification']) ? $params['filter-classification'] : '';\n $data['filter-ship-type'] = !empty($params['filter-ship-type']) ? $params['filter-ship-type'] : '';\n $data['filter-imo-number'] = !empty($params['filter-imo-number']) ? $params['filter-imo-number'] : '';\n $data['filter-ship-nation'] = !empty($params['filter-ship-nation']) ? $params['filter-ship-nation'] : '';\n $data['filter-service-name'] = !empty($params['filter-service-name']) ? $params['filter-service-name'] : '';\n\n return $data;\n }", "title": "" }, { "docid": "9875f27eacf5ad14d2d64ba681c1e19d", "score": "0.46132937", "text": "protected function __getPostRemoveEmpty(){\r\n if($this->request->isPost()){\r\n foreach($this->request->getPost() as $key => $value){\r\n if(empty($value) || is_null($value)){\r\n unset($_POST[$key]);\r\n }\r\n }\r\n }\r\n else{\r\n foreach($this->request->getQuery() as $key => $value){\r\n if(empty($value) || is_null($value)){\r\n unset($_GET[$key]);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "05b32ecd5a7aa1aae9f7dbb93cdc740b", "score": "0.4611049", "text": "public function getIndexAllowedFilteringParameters();", "title": "" }, { "docid": "e49cf6d496ec29232ee3fc426709d75f", "score": "0.46110436", "text": "public function getExcludedFields();", "title": "" }, { "docid": "e5dd7a6dae08ad17dd0099ffc8b5a895", "score": "0.46039647", "text": "protected function requestFilter(){\n // return method specific rules\n if(isset($this->filter) && is_array($this->filter)){\n return $this->filter;\n }\n // or empty array if none are set\n return [];\n }", "title": "" }, { "docid": "3e99d3c684791dcf3a04702646e288fd", "score": "0.4601963", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'name' => 'required|string|between:5,32',\n 'status' => 'required|boolean'\n ];\n break;\n case 'PATCH':\n return [\n 'name' => 'string|between:5,32',\n 'status' => 'boolean',\n 'id'=>'exists:accounting_types'\n ];\n break;\n }\n }", "title": "" }, { "docid": "116f6c6e955ba8826958b9380fcb25ba", "score": "0.46018386", "text": "public function getIndexAllowedFields();", "title": "" }, { "docid": "15158c2629d4c90c5eba914cd8dab547", "score": "0.46001336", "text": "public function testLimitedFields()\n {\n $controller = $this->getMockBuilder(JsonApiEnabledInterface::class)->disableOriginalConstructor()->getMock();\n $requestBodyValidator = $this->getRequestBodyValidatorMock();\n $requestBodyValidator->method('validate')->willReturn(new ConstraintViolationList());\n $relationshipBodyValidator = $this->getRelationshipRequestBodyValidatorMock();\n $relationshipBodyDecoder = $this->getRelationshipRequestBodyDecoderMock();\n\n $apiConfig = new Config(\n new ApiConfig(\n \"\\stdClass\",\n null,\n null,\n null, $this->getRequestBodyDecoderMock(),\n false,\n $requestBodyValidator,\n $relationshipBodyValidator->reveal(),\n $relationshipBodyDecoder->reveal()\n ),\n new CreateConfig($this->getModelFactoryMock()),\n new IndexConfig(null, ['allowed']),\n new UpdateConfig(),\n new DeleteConfig(),\n new UpdateRelationshipConfig()\n );\n $controller->method('getJsonApiConfig')->willReturn($apiConfig);\n\n $requestDecoder = $this->getRequestDecoder($controller);\n\n // test single value\n $requestParameters = [];\n parse_str('filter[allowed]=yes', $requestParameters);\n $request = new Request($requestParameters);\n $result = $requestDecoder->decode($request);\n $this->assertEquals([\n 'allowed' => 'yes',\n ], $result->query->get('filter'));\n\n // test invalid because there is limitation to fields\n $requestParameters = [];\n parse_str('filter[forbidden]=no', $requestParameters);\n $request = new Request($requestParameters);\n // TODO expect exception\n $this->expectException(BadRequestHttpException::class);\n $requestDecoder->decode($request);\n }", "title": "" }, { "docid": "b72bd8aafbea395a17ed3061e7b4a376", "score": "0.4596445", "text": "protected function remove_empty_data() {\n\n\t\tforeach ( (array) $this->request_data as $key => $value ) {\n\n\t\t\tif ( is_array( $value ) ) {\n\n\t\t\t\tif ( empty( $value ) ) {\n\n\t\t\t\t\tunset( $this->request_data[ $key ] );\n\n\t\t\t\t} else {\n\n\t\t\t\t\tforeach ( $value as $inner_key => $inner_value ) {\n\n\t\t\t\t\t\tif ( is_null( $inner_value ) || '' === $inner_value ) {\n\t\t\t\t\t\t\tunset( $this->request_data[ $key ][ $inner_key ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else {\n\n\t\t\t\tif ( is_null( $value ) || '' === $value ) {\n\t\t\t\t\tunset( $this->request_data[ $key ] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "81ae0330d9a0bc74c602cc3421909ee6", "score": "0.45952332", "text": "public function postMetaValues() {\n $return = [];\n\n foreach ($this->contentFields() as $var => $prop) {\n $excludeDefault = (isset($prop['excludeDefault']) && $prop['excludeDefault']) ? true : false;\n $prop['val'] = ($excludeDefault) ? $prop['default'] : '';\n $return[$var] = request()->get($var, $prop['val']);\n }\n\n return $return;\n }", "title": "" }, { "docid": "c76d37d71f9af5896d3c483a43a2e779", "score": "0.45870626", "text": "function detail_multi_form_add_visible_columns($table){\n $detail_table_visible_columns = $this->grants->detail_multi_form_add_visible_columns($table);\n $lookup_tables = $this->grants->lookup_tables($table);\n\n $get_all_table_fields = $this->get_all_table_fields($table);\n\n foreach ($get_all_table_fields as $get_all_table_field) {\n //Unset foreign keys columns, created_by and last_modified_by columns\n if( substr($get_all_table_field,0,3) == 'fk_' ||\n strpos($get_all_table_field,'_deleted_at') == true\n ){\n unset($get_all_table_fields[array_search($get_all_table_field,$get_all_table_fields)]);\n }\n }\n\n\n $visible_columns = $get_all_table_fields;\n $lookup_columns = array();\n\n if(is_array($detail_table_visible_columns) && count($detail_table_visible_columns) > 0 ){\n $visible_columns = $detail_table_visible_columns;\n }else{\n if(is_array($lookup_tables) && count($lookup_tables) > 0 ){\n foreach ($lookup_tables as $lookup_table) {\n\n $lookup_table_columns = $this->get_all_table_fields($lookup_table);\n\n foreach ($lookup_table_columns as $lookup_table_column) {\n // Only include the name field of the look up table in the select columns\n if(strpos($lookup_table_column,'_name') == true){\n array_push($visible_columns,$lookup_table_column);\n }\n\n }\n }\n }\n }\n\n return $this->control_column_visibility($table,$visible_columns);\n\n }", "title": "" }, { "docid": "058fba6bd5cb76b1ea6b4d8c7a8ceae2", "score": "0.458578", "text": "public function rules()\n {\n if($this->method() === 'POST'){\n return [\n 'concern_type' => 'nullable|string',\n 'date' => 'nullable|date',\n 'time' => 'nullable',\n 'vehicle_id' => 'nullable|numeric'\n ];\n }\n return [];\n }", "title": "" }, { "docid": "357f5c4aa2d3625ca775f5d96ae36cdb", "score": "0.458493", "text": "public function post_rules()\n {\n if($this->is($this->api_base)){\n return [\n 'name' => 'required|string',\n 'from_city_id' => 'required|integer',\n 'from_city_id' => 'required|exists:cities,id',\n 'to_city_id' => 'required|integer',\n 'to_city_id' => 'required|exists:cities,id',\n\n 'routes.*' => 'integer',\n 'routes.*' => 'required|exists:routes,id'\n ];\n }\n }", "title": "" }, { "docid": "fb64b477cba09ea8be25c1307d854764", "score": "0.45772162", "text": "function requestParameterClean(){\n\t\t $requestParams = $this->requestParams;\n\t\t $cleanParams = array();\n\t\t foreach($requestParams as $paramKey => $paramVals){\n\t\t\t\tif(is_array($paramVals)){\n\t\t\t\t\t //value for the parameter is an array\n\t\t\t\t\t $cleanVals = array();\n\t\t\t\t\t foreach($paramVals as $val){\n\t\t\t\t\t\t if(strlen($val)>0 && $val != \" \"){\n\t\t\t\t\t\t\t\t$cleanVals[] = $val;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\t if(count($cleanVals)>0){\n\t\t\t\t\t\t $cleanParams[$paramKey] = $cleanVals;\n\t\t\t\t\t }\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t //value for the parameter is a simple value\n\t\t\t\t\t if(strlen($paramVals)>0 && $paramVals != \" \"){\n\t\t\t\t\t\t $cleanParams[$paramKey] = $paramVals;\n\t\t\t\t\t }\n\t\t\t\t\t \n\t\t\t\t}\n\t\t\t\t\n\t\t }\n\t\t \n\t\t $this->requestParams = $cleanParams;\n\t }", "title": "" }, { "docid": "53135f7352ccad2660bcd626468eb63f", "score": "0.45731333", "text": "protected function getInputData ()\n {\n (new HCCompaniesValidator())->validateForm();\n\n $_data = request()->all();\n\n if (array_has($_data, 'id'))\n array_set($data, 'record.id', array_get($_data, 'id'));\n\n array_set($data, 'record.company_code', array_get($_data, 'company_code'));\n array_set($data, 'record.name', array_get($_data, 'name'));\n array_set($data, 'record.vat', array_get($_data, 'vat'));\n array_set($data, 'record.country_id', array_get($_data, 'country_id'));\n array_set($data, 'record.municipality_id', array_get($_data, 'municipality_id'));\n array_set($data, 'record.city_id', array_get($_data, 'city_id'));\n array_set($data, 'record.type_id', array_get($_data, 'type_id'));\n array_set($data, 'record.logo_id', array_get($_data, 'logo_id'));\n array_set($data, 'record.website', array_get($_data, 'website'));\n\n return makeEmptyNullable($data);\n }", "title": "" }, { "docid": "7f1733e6f0843bf1d43315561abb42c5", "score": "0.45721188", "text": "public function filterAll(array $client)\n {\n foreach ($client as $key => $value) {\n switch ($key) {\n case 'id':\n $client[$key] = $this->filterId($value);\n break;\n case 'name':\n $client[$key] = $this->filterName($value);\n break;\n case 'email':\n $client[$key] = $this->filterEmail($value);\n break;\n }\n }\n\n return $client;\n }", "title": "" }, { "docid": "2fac5ad90b25fb49e0e78dc57cdb8fdf", "score": "0.45721048", "text": "protected function _prepareColumns()\n {\n return parent::_prepareColumns();\n }", "title": "" }, { "docid": "8b9a30b39e965eaaf08fadc7f73d6d3f", "score": "0.45716834", "text": "private function validateExport($request)\n {\n $validator = Validator::make($request->all(), [\n 'with_header' => ['nullable', 'boolean'],\n 'type' => ['required', 'string', 'in:darwin_core,custom'],\n ], [], [\n 'columns' => trans('labels.exports.columns'),\n 'with_header' => trans('labels.exports.with_header'),\n ]);\n\n $validator->sometimes('columns', [\n 'required', 'array', 'min:1', 'distinct',\n Rule::in($this->columns()),\n ], function ($input) {\n return $input->type === 'custom';\n });\n\n return $validator->validate();\n }", "title": "" }, { "docid": "7ada08b2f8a0378604a4766a5e662e2c", "score": "0.45646656", "text": "public function rules()\n {\n return [\n 'nom' => ['required','min:3',Rule::unique('clients','nom')->ignore($this->client)],\n 'email' => ['required','min:10','email',Rule::unique('clients','email')->ignore($this->client)],\n 'tel' => ['required','min:11','max:16','regex:/[0-9 ]+/',Rule::unique('clients','tel')->ignore($this->client)],\n 'adr' => ['required','min:10',Rule::unique('clients','adresse')->ignore($this->client)],\n 'typeC' =>['required_if:typ,=,null','nullable','exists:App\\Models\\Client_type,niveau_client'],\n 'typ' => ['required_if:typeC,=,null','nullable',Rule::unique('client_types','niveau_client')->ignore($this->client)]\n ]; \n }", "title": "" }, { "docid": "3db559644f58c3dd6623efb15bca466b", "score": "0.4561618", "text": "public function getFilterForUpdate()\n\t{\n\t\t$inputFilter = $this->getInputFilter();\n\t\t$inputFilter->remove('firstname')\n\t\t\t\t->remove('lastname')\n\t\t\t\t->remove('email')\n\t\t\t\t->remove('email_confirm');\n\t\treturn $inputFilter;\n\t}", "title": "" }, { "docid": "7db3c4b5fad806e9dcddbc79fe7764b5", "score": "0.45605737", "text": "public function only(array $data)\n {\n $filteredData = [];\n $internalData = (array)$this->data;\n\n foreach ($data as $value) {\n if (!array_key_exists($value, $internalData)) {\n echo \"The ({$value}) value not exist in Post Request\";\n }\n\n $filteredData[$value] = $internalData[$value];\n }\n\n return (object)$filteredData;\n }", "title": "" }, { "docid": "5ee5ffb509dfcac90c3da1d130de8f3a", "score": "0.4557842", "text": "public function fields(Request $request)\n {\n\n return [\n ID::make()->sortable(),\n\n Select::make('ประเภทงาน', 'trantype')->options([\n 'charter' => 'เหมาเที่ยว',\n 'piece' => 'รายชิ้น'\n ])->displayUsingLabels()\n ->size('w-1/2')\n ->exceptOnForms(),\n Text::make('เลขที่ใบรับงาน', 'tranjob_no')\n ->withMeta(['value' => Tranjob::nextTranjobNumber()])\n ->size('w-1/2'),\n Date::make('วันที่ใบรับงาน', 'tranjob_date')\n ->withMeta(['value' => Carbon::now()->toDateTimeString()])\n ->size('w-1/2'),\n Text::make('รหัสติดตามสินค้า', 'tracking_no')\n ->size('w-1/2'),\n\n BelongsTo::make('สาขาต้นทาง', 'branch_send', 'App\\Nova\\Branch')\n ->hideFromIndex()\n ->withMeta([\n 'value' => $this->user_id ?? auth()->user()->branch_id,\n 'belongsToId' => $this->user_id ?? auth()->user()->branch_id\n ])\n ->size('w-1/2'),\n BelongsTo::make('สาขาปลายทาง', 'branch_rec', 'App\\Nova\\Branch')\n ->hideFromIndex()\n ->size('w-1/2'),\n BelongsTo::make('ผู้ว่าจ้าง', 'customer_sender', 'App\\Nova\\Customer')\n ->searchable()\n ->size('w-1/2'),\n Select::make('เงื่อนไขการรับสินค้า', 'sendoptions')->options([\n 'ไปรับ' => 'ไปรับสินค้า',\n 'นำมาส่ง' => 'ผู้ส่งนำมาส่ง'\n ])->displayUsingLabels()\n ->hideFromIndex()\n ->withMeta(['value' => 'ไปรับ'])\n ->size('w-1/2'),\n\n\n BelongsTo::make('จุดรับสินค้า', 'loadaddress', 'App\\Nova\\Address')\n ->nullable()\n ->hideFromIndex()\n ->size('w-1/2'),\n BelongsTo::make('ผู้รับสินค้า', 'customer_reciever', 'App\\Nova\\Customer')\n ->size('w-1/2')\n ->searchable(),\n BelongsTo::make('จุดส่งสินค้า', 'deliveryaddress', 'App\\Nova\\Address')\n ->nullable()\n ->hideFromIndex()\n ->size('w-1/2'),\n Select::make('เงื่อนไขการส่งสินค้า', 'recieveoptions')->options([\n 'รับเอง' => 'รับเองที่สาขา',\n 'จัดส่ง' => 'จัดส่ง ณ จุดส่งสินค้า'\n ])->displayUsingLabels()\n ->hideFromIndex()\n ->withMeta(['value' => 'จัดส่ง'])\n ->size('w-1/2'),\n Select::make('เงื่อนไขการชำระเงิน', 'paymenttype')->options([\n 'cash-s' => 'เงินสดต้นทาง',\n 'cash-r' => 'เงินสดปลายทาง',\n 'cr-s' => 'เครดิตต้นทาง',\n 'cr-r' => 'เครดิตปลายทาง'\n ])->displayUsingLabels()\n ->hideFromIndex()\n ->withMeta(['value' => 'cash-s'])\n ->size('w-1/2'),\n BelongsTo::make('พนักงานตรวจรับสินค้า', 'employee', 'App\\Nova\\Employee')\n ->hideFromIndex()\n ->size('w-1/2'),\n BelongsTo::make('ผู้ทำรายการ', 'user', 'App\\Nova\\User')\n ->hideWhenCreating(),\n HasMany::make('รายการสินค้า', 'tranjob_details', 'App\\Nova\\Tranjob_detail'),\n\n ];\n }", "title": "" }, { "docid": "28823ed8d1cde73f617035704772331f", "score": "0.45555082", "text": "function master_multi_form_add_visible_columns(){\n $master_table_visible_columns = $this->grants->master_multi_form_add_visible_columns();\n $lookup_tables = $this->grants->lookup_tables();\n\n $get_all_table_fields = $this->get_all_table_fields();\n\n foreach ($get_all_table_fields as $get_all_table_field) {\n //Unset foreign keys columns, created_by and last_modified_by columns\n if( substr($get_all_table_field,0,3) == 'fk_' ||\n strpos($get_all_table_field,'_deleted_at') == true\n ){\n unset($get_all_table_fields[array_search($get_all_table_field,$get_all_table_fields)]);\n }\n }\n\n\n $visible_columns = $get_all_table_fields;\n $lookup_columns = array();\n\n if(is_array($master_table_visible_columns) && count($master_table_visible_columns) > 0 ){\n $visible_columns = $master_table_visible_columns;\n }else{\n\n if(is_array($lookup_tables) && count($lookup_tables) > 0 ){\n foreach ($lookup_tables as $lookup_table) {\n\n $lookup_table_columns = $this->get_all_table_fields($lookup_table);\n\n foreach ($lookup_table_columns as $lookup_table_column) {\n // Only include the name field of the look up table in the select columns\n if(strpos($lookup_table_column,'_name') == true){\n array_push($visible_columns,$lookup_table_column);\n }\n\n }\n }\n }\n\n }\n\n return $this->control_column_visibility($this->controller,$visible_columns);\n }", "title": "" }, { "docid": "f75d2ef070952512e8e332a731884533", "score": "0.45508584", "text": "public function getCustomFields()\n {\n $response = $this->request->get();\n $fields = collect(\\json_decode($response->getBody(), true))\n ->filter(static function ($field) {\n return $field['custom'];\n })->mapWithKeys(static function ($field) {\n $key = \\str_replace('customfield_', '', $field['id']);\n $name = Str::camel(Str::slug($field['name']));\n\n return [$key => $name];\n })\n ->toArray();\n\n return $fields;\n }", "title": "" }, { "docid": "c701efba6b6485041f127e8bd8f56413", "score": "0.4546378", "text": "public static function getFieldsValidate()\n {\n }", "title": "" }, { "docid": "46ef1dd99a31ac2b88e09a3f90ca1d4a", "score": "0.45424554", "text": "protected function allowedAttributes()\n {\n return [];\n }", "title": "" }, { "docid": "9d2e4fb596b0d70ea6d2d92d258374a6", "score": "0.4541868", "text": "public function getFilterAttributes($request)\n {\n $params['index'] = $this->index;\n $params['type'] = \"master\";\n $data = [];\n\n $params['body'] = [\n 'size' => 0,\n 'aggs' =>\n [\n 'company_name' =>\n [\n 'terms' =>\n [\n 'field' => 'metadata.company_name',\n 'size' => 1000,\n 'order' => [\n \"_term\" => \"asc\"\n ]\n ],\n ],\n 'corporate_grouping' =>\n [\n 'terms' =>\n [\n 'field' => 'metadata.corporate_grouping',\n 'size' => 1000,\n 'order' => [\n \"_term\" => \"asc\"\n ]\n ],\n ],\n 'contract_type' =>\n [\n 'terms' =>\n [\n 'field' => 'metadata.contract_type',\n 'size' => 1000,\n 'order' => [\n \"_term\" => \"asc\"\n ]\n ],\n ],\n ],\n ];\n if (isset($request['category']) && !empty($request['category'])) {\n $categoryfilter = $this->getCategory($request['category']);\n $params['body']['query'] = $categoryfilter;\n }\n\n $response = $this->search($params);\n $data['company_name'] = [];\n $data['corporate_grouping'] = [];\n $data['contract_type'] = [];\n foreach ($response['aggregations']['company_name']['buckets'] as $companyname) {\n array_push($data['company_name'], $companyname['key']);\n }\n foreach ($response['aggregations']['corporate_grouping']['buckets'] as $grouping) {\n array_push($data['corporate_grouping'], $grouping['key']);\n }\n foreach ($response['aggregations']['contract_type']['buckets'] as $type) {\n array_push($data['contract_type'], $type['key']);\n }\n $data['company_name'] = array_unique($data['company_name']);\n $data['corporate_grouping'] = array_unique($data['corporate_grouping']);\n $data['contract_type'] = array_unique($data['contract_type']);\n\n return $data;\n }", "title": "" }, { "docid": "d1e2945c718aaa0e376ba04f9229aa86", "score": "0.45407063", "text": "private function getEditableFields()\n {\n $fields = $this->data;\n unset($fields[static::$primary_key]);\n $fields = array_keys($fields);\n\n return $fields;\n }", "title": "" }, { "docid": "af3215cc1bab9924f9e16f24c9373a03", "score": "0.45338896", "text": "protected function remove_empty_data() {\n\n\t\tforeach ( (array) $this->request_data as $key => $value ) {\n\n\t\t\tif ( is_array( $value ) ) {\n\n\t\t\t\t// remove empty arrays\n\t\t\t\tif ( empty( $value ) ) {\n\n\t\t\t\t\tunset( $this->request_data[ $key ] );\n\n\t\t\t\t} else {\n\n\t\t\t\t\tforeach ( $value as $inner_key => $inner_value ) {\n\n\t\t\t\t\t\tif ( is_null( $inner_value ) || '' === $inner_value ) {\n\t\t\t\t\t\t\tunset( $this->request_data[ $key ][ $inner_key ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else {\n\n\t\t\t\tif ( is_null( $value ) || '' === $value ) {\n\t\t\t\t\tunset( $this->request_data[ $key ] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "79e0bd636af1624be46d7c858a8742be", "score": "0.4532927", "text": "function sanitize_columns($columns, $fields = NULL){\n $sanitized = array();\n if($fields === NULL){\n $fields = $this->display->handler->get_option('fields');\n }\n // Preconfigure the sanitized array so that the order is retained.\n foreach($fields as $field => $info){\n // Set to itself so that if it isn't touched, it gets column\n // status automatically.\n $sanitized[$field] = $field;\n }\n if(is_array($columns)){\n foreach($columns as $field => $column){\n // first, make sure the field still exists.\n if(!isset($sanitized[$field])){\n continue;\n }\n $column_name = key($column);\n // If the field is the column, mark it so, or the column\n // it's set to is a column, that's ok\n if($field == $column_name || $columns[$column_name] == $column && !empty($sanitized[$column_name])){\n $sanitized[$field] = $column;\n }\n // Since we set the field to itself initially, ignoring\n // the condition is ok; the field will get its column\n // status back.\n }\n }\n return $sanitized;\n }", "title": "" }, { "docid": "c677b2f08cb8108955d1b0faaa381b34", "score": "0.45316577", "text": "public function getFieldsAllowedToBeEmpty()\n {\n return $this->_required_fields_allowed_to_be_empty;\n }", "title": "" }, { "docid": "e4738d37e923c7e1aeeede42132b8e28", "score": "0.45293918", "text": "protected function _determineWriteableFields() {\n\t\t$this->_writeableFields = call_user_func(array(\n\t\t\t$this->_filter, 'filterWriteable'\n\t\t), $this, array_keys($this->_data));\n\t}", "title": "" }, { "docid": "5470728e738a7e8dbcec6709a9e13f3d", "score": "0.45278415", "text": "public function fields(Request $request)\n {\n return [\n ID::make()->sortable(),\n\n BelongsTo::make('Creator', 'creator', User::class)\n ->nullable()\n ->sortable()\n ->searchable(),\n\n BelongsTo::make('Age Group', 'ageGroup', AgeGroup::class)\n ->sortable()\n ->searchable(),\n\n\n Enum::make('Title')\n ->rules('required')\n ->attachEnum(PassengerTitle::class)\n ->sortable()\n ->hideFromIndex(),\n\n Text::make(__('Name'), 'name')\n ->rules('required', 'string')\n ->sortable(),\n\n Enum::make('Gender')\n ->attachEnum(PassengerGender::class)\n ->rules('required', 'string')\n ->sortable(),\n\n PhoneNumber::make(__('Phone'), 'phone')\n// ->countries(['DK', 'SWE', 'NO', 'UK', 'IQ'])\n// ->country('AUTO')\n ->disableValidation()\n ->format('### ########')\n ->rules('string', 'required')\n ->sortable(),\n\n Enum::make(__('Nationality'), 'nationality')\n ->attachEnum(Nationality::class)\n ->rules('required', 'string')\n ->hideFromIndex(),\n\n Enum::make(__('Citizenship'), 'citizenship')\n ->attachEnum(Citizenship::class)\n ->rules('required', 'string')\n ->hideFromIndex(),\n\n Date::make(__('Birth date'), 'birthdate')\n ->rules('required', 'date')\n ->hideFromIndex(),\n\n Text::make(__('Passport'), 'passport')\n ->rules('nullable', 'string')\n ->hideFromIndex(),\n\n Text::make(__('VISA'), 'visa')\n ->rules('nullable', 'string')\n ->hideFromIndex(),\n\n Country::make(__('VISA Country'), 'visa_country')\n ->rules('required_with:visa', 'nullable', 'string')\n ->hideFromIndex(),\n\n Date::make(__('Passport expiration date'), 'passport_expires_at')\n ->rules('required_with:passport', 'nullable', 'date', 'after_or_equal:+6 months')\n ->hideFromIndex(),\n\n Date::make(__('VISA expiration date'), 'visa_expires_at')\n ->rules('required_with:visa', 'nullable', 'date', 'after_or_equal:+6 months')\n ->hideFromIndex(),\n\n HasMany::make('tickets')\n ->onlyOnDetail()\n ];\n }", "title": "" } ]
dd36827f26294b48328a191bc84701f6
/ This class helps to logout an account that has logged in using a token
[ { "docid": "619c0dffb9ae74001b9728450f1690cc", "score": "0.0", "text": "function tokenLogout($aigaionRoot,$sitename,$serial,$hash)\r\n{\r\n require_once(dirname(__FILE__) . \"/httpclient/http.php\");\r\n $result = \"\";\r\n\t//set_time_limit(0);\r\n\t$http=new http_class;\r\n\r\n\t/* Connection timeout */\r\n\t$http->timeout=0;\r\n\r\n\t/* Data transfer timeout */\r\n\t$http->data_timeout=0;\r\n\r\n\t/* Output debugging information about the progress of the connection */\r\n\t$http->debug=0;\r\n\r\n\t/* Format dubug output to display with HTML pages */\r\n\t$http->html_debug=1;\r\n\r\n\r\n\t/*\r\n\t * Need to emulate a certain browser user agent?\r\n\t * Set the user agent this way:\r\n\t */\r\n\t//$http->user_agent=\"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\";\r\n\r\n\t/*\r\n\t * If you want to the class to follow the URL of redirect responses\r\n\t * set this variable to 1.\r\n\t */\r\n\t$http->follow_redirect=1;\r\n\r\n\t/*\r\n\t * How many consecutive redirected requests the class should follow.\r\n\t */\r\n\t$http->redirection_limit=5;\r\n\r\n\t/*\r\n\t * If your DNS always resolves non-existing domains to a default IP\r\n\t * address to force the redirection to a given page, specify the\r\n\t * default IP address in this variable to make the class handle it\r\n\t * as when domain resolution fails.\r\n\t */\r\n\t$http->exclude_address=\"\";\r\n\r\n\t/*\r\n\t * If you want to establish SSL connections and you do not want the\r\n\t * class to use the CURL library, set this variable to 0 .\r\n\t */\r\n\t$http->prefer_curl=0;\r\n\r\n\r\n $url= $aigaionRoot.\"/logintegration/logout/\".$sitename.\"/\".$serial.\"/\".$hash;\r\n\t/*\r\n\t * Generate a list of arguments for opening a connection and make an\r\n\t * HTTP request from a given URL.\r\n\t */\r\n\t$error=$http->GetRequestArguments($url,$arguments);\r\n\r\n//\t$arguments[\"PostFiles\"]=array(\r\n//\t\t\"userfile\"=>array(\r\n//\t\t\t\"Data\"=>\"This is just a plain text attachment file named attachment.txt .\",\r\n//\t\t\t\"Name\"=>\"attachment.txt\",\r\n//\t\t\t\"Content-Type\"=>\"automatic/name\",\r\n//\t\t),\r\n//\t\t\"anotherfile\"=>array(\r\n//\t\t\t\"FileName\"=>\"test_http_post.php\",\r\n//\t\t\t\"Content-Type\"=>\"automatic/name\",\r\n//\t\t)\r\n//\t);\r\n\r\n\t/* Set additional request headers */\r\n\t$arguments[\"Headers\"][\"Pragma\"]=\"nocache\";\r\n\r\n\t$error=$http->Open($arguments);\r\n\r\n\tif($error==\"\")\r\n\t{\r\n\t\t$error=$http->SendRequest($arguments);\r\n\r\n\t\tif($error==\"\")\r\n\t\t{\r\n\t\t\tfor(Reset($http->request_headers),$header=0;$header<count($http->request_headers);Next($http->request_headers),$header++)\r\n\t\t\t{\r\n\t\t\t\t$header_name=Key($http->request_headers);\r\n\t\t\t\tif(GetType($http->request_headers[$header_name])==\"array\")\r\n\t\t\t\t{\r\n\t\t\t\t\tfor($header_value=0;$header_value<count($http->request_headers[$header_name]);$header_value++)\r\n\t\t\t\t\t\t;//echo $header_name.\": \".$http->request_headers[$header_name][$header_value],\"\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\t;//echo $header_name.\": \".$http->request_headers[$header_name],\"\\r\\n\";\r\n\t\t\t}\r\n\t\t\t//echo \"</PRE>\\n\";\r\n\t\t\t//flush();\r\n\r\n\t\t\t$headers=array();\r\n\t\t\t$error=$http->ReadReplyHeaders($headers);\r\n\t\t\tif($error==\"\")\r\n\t\t\t{\r\n\t\t\t\t//echo \"<H2><LI>Response status code:</LI</H2>\\n<P>\".$http->response_status;\r\n\t\t\t\tswitch($http->response_status)\r\n\t\t\t\t{\r\n\t\t\t\t\tcase \"301\":\r\n\t\t\t\t\tcase \"302\":\r\n\t\t\t\t\tcase \"303\":\r\n\t\t\t\t\tcase \"307\":\r\n\t\t\t\t\t\t//echo \" (redirect to <TT>\".$headers[\"location\"].\"</TT>)<BR>\\nSet the <TT>follow_redirect</TT> variable to handle redirect responses automatically.\";\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t//echo \"</P>\\n\";\r\n\t\t\t\t//echo \"<H2><LI>Response headers:</LI</H2>\\n<PRE>\\n\";\r\n\t\t\t\tfor(Reset($headers),$header=0;$header<count($headers);Next($headers),$header++)\r\n\t\t\t\t{\r\n\t\t\t\t\t$header_name=Key($headers);\r\n\t\t\t\t\tif(GetType($headers[$header_name])==\"array\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor($header_value=0;$header_value<count($headers[$header_name]);$header_value++)\r\n\t\t\t\t\t\t\t;//echo $header_name.\": \".$headers[$header_name][$header_value],\"\\r\\n\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\t;//echo $header_name.\": \".$headers[$header_name],\"\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t\t//echo \"</PRE>\\n\";\r\n\t\t\t\t//flush();\r\n\r\n\t\t\t\t//echo \"<H2><LI>Response body:</LI</H2>\\n<PRE>\\n\";\r\n\t\t\t\tfor(;;)\r\n\t\t\t\t{\r\n\t\t\t\t\t$error=$http->ReadReplyBody($body,1000);\r\n\t\t\t\t\tif($error!=\"\"\r\n\t\t\t\t\t|| strlen($body)==0)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t$result = $body;\r\n\t\t\t\t}\r\n\t\t\t\t//echo \"</PRE>\\n\";\r\n\t\t\t\t//flush();\r\n\t\t\t}\r\n\t\t}\r\n\t\t$http->Close();\r\n\t}\r\n\tif(strlen($error))\r\n\t\t$result .= \"<CENTER><H2>Error: \".$error.\"</H2><CENTER>\\n\";\r\n\treturn $result;\r\n}", "title": "" } ]
[ { "docid": "d348104e1332126dc890baa98b86a3f4", "score": "0.8231722", "text": "public function logout() {\r\n\t\t// Generate new token\r\n\t\t$new_token = sha1 ( TOKEN_SALT . $this->user->email . Utils::generate_random_string () );\r\n\t\t// Add it to an array\r\n\t\t$data = Array (\r\n\t\t\t\t\"token\" => $new_token \r\n\t\t);\r\n\t\t// Update the user info with the array\r\n\t\tDB::instance ( DB_NAME )->update ( \"users\", $data, \"WHERE token = '\" . $this->user->token . \"'\" );\r\n\t\t\r\n\t\t// Delete their token cookie by setting it to a date in the past - effectively logging them out\r\n\t\tsetcookie ( \"token\", \"\", strtotime ( '-1 year' ), '/' );\r\n\t\t\r\n\t\t// Send them back to the home page\r\n\t\tRouter::redirect ( \"/\" );\r\n\t}", "title": "" }, { "docid": "b779ed6fd9fccc82e79c6538640717e5", "score": "0.809328", "text": "public function logout() {\n\t\t\t$new_token = sha1(TOKEN_SALT.$this->user->email.Utils::generate_random_string());\n\n\t\t\t# Create the data array we'll use with the update method\n\t\t\t# In this case, we're only updating one field, so our array only has one entry\n\t\t\t$data = Array(\"token\" => $new_token);\n\n\t\t\t# Do the update\n\t\t\tDB::instance(DB_NAME)->update(\"users\", $data, \"WHERE token = '\".$this->user->token.\"'\");\n\n\t\t\t# Delete their token cookie by setting it to a date in the past - effectively logging them out\n\t\t\tsetcookie(\"token\", \"\", strtotime('-1 year'), '/');\n\n\t\t\t# Send them back to the main index.\n\t\t\tRouter::redirect(\"/\");\n\n\t\t}", "title": "" }, { "docid": "54b1d705063c912dc493597b4f622b46", "score": "0.808272", "text": "public function logout() {\n $new_token = sha1(TOKEN_SALT.$this->user->email.Utils::generate_random_string());\n\n\n # Create the data array we'll use with the update method\n # In this case, we're only updating one field, so our array only has one entry\n $data = Array(\"token\" => $new_token);\n\n\n # Do the update\n DB::instance(DB_NAME)->update(\"users\", $data, \"WHERE token = '\".$this->user->token.\"'\");\n\n\n # Delete their token cookie by setting it to a date in the past - effectively logging them out\n setcookie(\"token\", \"\", strtotime('-1 year'), '/');\n\n\n # Send them back to the main index.\n Router::redirect(\"/\");\n }", "title": "" }, { "docid": "59dfa282286f4b106003dd78d09c64b9", "score": "0.80788773", "text": "public function logout()\n\t{\n\t\t$new_token = sha1(TOKEN_SALT.$this->user->email.Utils::generate_random_string());\n\t\n\t\t# Create the data array we'll use with the update method\n\t\t# In this case, we're only updating one field, so our array only has one entry\n\t\t$data = Array(\"token\" => $new_token);\n\t\n\t\t# Do the update\n\t\tDB::instance(DB_NAME)->update(\"users\", $data, \"WHERE token = '\".$this->user->token.\"'\");\n\t\n\t\t# Delete their token cookie - effectively logging them out\n\t\tsetcookie(\"token\", \"\", strtotime('-1 year'), '/');\n\t\n\t\t# Send them back to the main landing page\n\t\tRouter::redirect(\"/\");\n\t}", "title": "" }, { "docid": "ef1a7794334aff901193bf19e8f3cb64", "score": "0.8065951", "text": "public function logout() {\n $new_token = sha1(TOKEN_SALT.$this->user->email.Utils::generate_random_string());\n\n # Create the data array we'll use with the update method\n # In this case, we're only updating one field, so our array only has one entry\n $data = Array(\"token\" => $new_token);\n\n # Do the update\n DB::instance(DB_NAME)->update(\"users\", $data, \"WHERE token = '\".$this->user->token.\"'\");\n\n # Delete their token cookie - effectively logging them out\n setcookie(\"token\", \"\", strtotime('-1 year'), '/');\n setcookie(\"token\", \"\", strtotime('-1 year'), BASE_URL);\n\n //unset($_SESSION);\n session_destroy();\n\n # Send them back to the main landing page\n Router::redirect(\"/\");\n }", "title": "" }, { "docid": "6264e19284397ee0196dba98e067e599", "score": "0.79295623", "text": "public function logout() {\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(\"/index/unauthorized\");\n\t\t}\n\t\t\n\t\t# Generate and save a new token for next login\n\t\t$new_token = sha1(TOKEN_SALT.$this->user->email.Utils::generate_random_string());\n\n\t\t# Create the data array we'll use with the update method\n\t\t# In this case, we're only updating one field, so our array only has one entry\n\t\t$data = array(\"token\" => $new_token);\n\n\t\t# Do the update\n\t\tDB::instance(DB_NAME)->update(\"users\", $data, \"WHERE token = '\".$this->user->token.\"'\");\n\n\t\t# Delete their token cookie by setting it to a date in the past - effectively logging them out\n\t\tsetcookie(\"token\", \"\", strtotime('-1 year'), '/');\n\n\n\t\t# Send them to the main page\n\t\tRouter::redirect(\"/\");\n\n\t}", "title": "" }, { "docid": "0efab61ee87cd5b6491d78847ff86e93", "score": "0.7925373", "text": "public function logout() {\n\n // Create a new dummy token \n $new_token = sha1(TOKEN_SALT.$this->user->email.Utils::generate_random_string());\n\n $data = Array('token' => $new_token);\n\n DB::instance(DB_NAME)->update('users', $data, 'WHERE user_id ='. $this->user->user_id);\n\n\n // Delete the cookie\n setcookie('token', '', strtotime('-1 year'), '/');\n \n // Send user back to login page\n Router::redirect('/users/login');\n }", "title": "" }, { "docid": "a7e4930926e8011d256abb756f031759", "score": "0.7821826", "text": "public function logout() {\n\n if(!$this->user){\n Router:http_redirect('/users/login');\n } else {\n\n # Sanitize the user entered data to prevent any funny-business (re: SQL Injection Attacks)\n $_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n # Generate and save a new token for next login\n $new_token = sha1(TOKEN_SALT.$this->user->email_id.Utils::generate_random_string());\n\n # Create the data array we'll use with the update method\n # In this case, we're only updating one field, so our array only has one entry\n $data = Array(\"token\" => $new_token);\n\n # Do the update\n DB::instance(DB_NAME)->update(\"users\", $data, \"WHERE token = '\".$this->user->token.\"'\");\n # DB::instance(DB_NAME)->update(\"users\", $data, 'WHERE user_id= '.$this->user>user_id);\n\n # token = '\".$this->user->token.\"'\");\n\n # Delete their token cookie by setting it to a date in the past - effectively logging them out\n setcookie(\"token\", \"\", strtotime('-1 year'), '/');\n\n # Redirect to login page.\n Router::redirect(\"/users/login\");\n }\n\n }", "title": "" }, { "docid": "526af173fad92d78d5973d958f50a6c8", "score": "0.77585214", "text": "public function log_out() {\n\t\tif (isset($this->token)) {\n\t\t\tself::delete_login_token($this->token['selector']);\n\t\t}\n\t}", "title": "" }, { "docid": "ffe14461e239131e9b8335255b941c40", "score": "0.75515175", "text": "public function logout() {\n $new_token = sha1(TOKEN_SALT.$this->user->email.Utils::generate_random_string());\n\n # Create the data array we'll use with the update method\n # In this case, we're only updating one field, so our array only has one entry\n $data = Array(\"token\" => $new_token);\n\n # Do the update\n DB::instance(DB_NAME)->update(\"users\", $data, \"WHERE token = '\".$this->user->token.\"'\");\n\n # Delete their token cookie by setting it to a date in the past - effectively logging them out\n setcookie(\"token\", \"\", strtotime('-1 year'), '/');\n\n # Send them back to the main index.\n Router::redirect(\"/\");\n\n}", "title": "" }, { "docid": "763b4c3d3c4805582318bd66a3ed4796", "score": "0.7452809", "text": "public function logout()\n {\n $user = auth()->guard('sanctum')->user();\n\n $user->currentAccessToken()->delete();\n }", "title": "" }, { "docid": "8458575c79eec855c31a54c54f48a8c6", "score": "0.73447055", "text": "public function logout()\n {\n $accessToken = $this->auth->user()->token();\n\n $refreshToken = $this->db\n ->table('oauth_refresh_tokens')\n ->where('access_token_id', $accessToken->id)\n ->update([\n 'revoked' => true\n ]);\n\n $accessToken->revoke();\n\n $this->cookie->queue($this->cookie->forget(self::REFRESH_TOKEN));\n }", "title": "" }, { "docid": "01a8f48ebc69380dffe1d32013dcdef4", "score": "0.73440367", "text": "public function logout()\n {\n $token = JWTAuth::getToken();\n JWTAuth::invalidate($token);\n /*if you have separate table for login details*/\n LoginDetail::where('accessToken', $token)->delete();\n $this->setMeta('status', AppConstant::STATUS_OK);\n $this->setMeta('message', __('jwt.logout_success'));\n return response()->json($this->setResponse(), AppConstant::OK);\n }", "title": "" }, { "docid": "0e0bf71e803cc5c830272266f857061c", "score": "0.731531", "text": "public function logout($token) {\n $this->_login($token);\n return $this->_process('logout', array());\n }", "title": "" }, { "docid": "9e281c63907726523f8424d8b108b1ee", "score": "0.7313137", "text": "public function logout()\n {\n $token = JWTAuth::parseToken();\n\n $token->invalidate();\n\n return ['success' => 'token_invalidated'];\n }", "title": "" }, { "docid": "90109e7b55da547fd01467bb6c9367d4", "score": "0.731303", "text": "public function auth_logout();", "title": "" }, { "docid": "9246b906430a9ac839f72d0c8f70e80e", "score": "0.73033994", "text": "public function logout() {\n $auth_user = \\Auth::user();\n\n try {\n $token = JWTAuth::getToken();\n } catch (JWTException $e) {\n return $this->error($e->getMessage());\n }\n\n \\Cache::forget('direction');\n \\Cache::forget('locale');\n\n activity('logout')->log('logout');\n\n JWTAuth::invalidate($token);\n\n $config = $this->config->getConfig();\n return $this->success(['message' => trans('auth.logged_out'), 'config' => $config]);\n }", "title": "" }, { "docid": "68fa62e75fbffe7d7a1425d433d8ef40", "score": "0.7276883", "text": "public function logout()\n { \n\n $user_id = Auth::user()->id;\n\n $hasLogins = AauthAcessToken::where(\"user_id\",$user_id)->where(\"created_at\",\"<\",Date(\"Y-m-d H:i:s\"))->count();\n\n if ($hasLogins > 0){\n AauthAcessToken::where(\"user_id\",$user_id)\n ->where(\"created_at\",\"<\",Date(\"Y-m-d H:i:s\"))->delete();\n }\n }", "title": "" }, { "docid": "b7bdc632cf6fd72cff22bf97bd3e995c", "score": "0.72574496", "text": "public function user_logout() {\n if ($this->is_valid_auth_token(true, $return_message, $return_user_id)) {\n if (isset($this->request_data) && count($this->request_data) > 0) {\n $mandatory_key = array();\n $data = $this->request_data;\n $auth_token = isset($data['auth_token']) ? $data['auth_token'] : '';\n $device_token = isset($data['token']) ? $data['token'] : '';\n $data['user_id'] = $return_user_id;\n if (!mandatory_params_present($mandatory_key, $data, $missing_param)) {\n $response['message'] = $missing_param;\n $response['status'] = \"201\";\n $this->response($response, 200); // 200 being the HTTP response code\n } else {\n $user_data = $this->User_model->logout($data);\n $this->response($user_data, 200); // 200 being the HTTP response code\n }\n }\n } else {\n $response['message'] = $return_message;\n $response['status'] = \"210\";\n $this->response($response, 200); // 200 being the HTTP response code\n }\n }", "title": "" }, { "docid": "b70f7ccb171b40c9a4d4387ddfb353e2", "score": "0.7246213", "text": "public function logout() {\n\t\t\n\t\t//DELETE THE COOKIE!!!\n\t\tsetcookie (\"token\", $token, strtotime('-1 hour'), '/');\n\t\t\n\t\t$this->template->content = View::instance(\"v_users_logout\");\n\t\t\n\t\t$this->template->user = NULL;\n\t\t\n\t\techo $this->template;\n\t\t\n\t}", "title": "" }, { "docid": "adbe9f86ba7cf890b9ecb9fe98a26d09", "score": "0.7245578", "text": "public function performLogout() {\n // easy. if user is logged in, delete their token.\n if (Auth::check()) {\n Auth::user()->AauthAccessToken()->delete();\n return Response::json(\n array(\n 'status' => $this->successStatus,\n 'message' => \"User logged out.\",\n 'reason' => \"User logged out successfully.\",\n ), $this->successStatus\n );\n }\n }", "title": "" }, { "docid": "0954e76a31f45f15c5660b173727177b", "score": "0.72397983", "text": "public function logoutToken()\n {\n\n $email = $this->input->post('email');\n $idkaryawan = $this->input->post('karyawan');\n $token = $this->input->post('token');\n\n $data = array(\n 'success' => false,\n 'messages' => null,\n );\n\n $result = $this->AuthenticationModel->removeToken($email, $idkaryawan, $token);\n\n if ($result == false) {\n $data['messages'] = \"Remove Token failed\";\n } else {\n $data['success'] = true;\n $data['messages'] = \"Remove Token Success\";\n }\n echo json_encode($data);\n }", "title": "" }, { "docid": "c013ea010a311630ed85db19448fd64e", "score": "0.7238734", "text": "public function logout(){\n $this->api_token = NULL;\n }", "title": "" }, { "docid": "3d4f698930a07cf17b4d6720d6787921", "score": "0.7228076", "text": "public function logout()\n {\n $this->execute($this->httpClient->setEndPoint(self::ENDPOINT.'logout/'));\n\n self::$appKey = null;\n self::$sessionToken = null;\n self::$lastLogin = null;\n }", "title": "" }, { "docid": "652ecb12a4ac5841f44022987409b069", "score": "0.7214316", "text": "public function logout() {\n parent::logout();\n\n// if ($this->auth) {\n// $this->auth->logout();\n// $this->auth = null;\n// }\n }", "title": "" }, { "docid": "830f6cc6e418d4fb6ebc48b43dcc47ef", "score": "0.7210892", "text": "public function logout()\n {\n auth()->guard('api')->user()->token()->revoke();\n return $this->success(\"Successfully logged out\", Response::HTTP_OK);\n }", "title": "" }, { "docid": "41001c8058d19143faaf5643135f8ca4", "score": "0.71784616", "text": "public function logout() {\n $this->getSDK()->logout();\n }", "title": "" }, { "docid": "d6346de2f57239afdf129129a72d9a6c", "score": "0.7156491", "text": "public function logout(Request $request){\n $authToken = Auth()->user()->token();\n $authToken->revoke();\n if ($authToken->revoke()) {\n return $this->showMessage(\"successfully LogOut\", \"done\", 200);\n }\n\n }", "title": "" }, { "docid": "4dbe9e5df107663d913061f1c00481be", "score": "0.7148023", "text": "function logout() {\n $_SESSION[\"user\"] = null;\n\n // Regeneramos el token\n session_regenerate_id();\n}", "title": "" }, { "docid": "3df2042f16763bdd72c1d7acf8a346ef", "score": "0.7146215", "text": "public function logout()\n {\n $this->getSDK()->logout();\n }", "title": "" }, { "docid": "f67eb12bfae2cf1a1e6c80e111dbd1de", "score": "0.7128769", "text": "public function signOut(): void\n {\n $token = Auth::user()->token();\n $token->revoke();\n\n Passport::token()->where('user_id', Auth::id())->delete();\n }", "title": "" }, { "docid": "803d79c17087fa50db244106a76856e8", "score": "0.7122604", "text": "public function logout()\n {\n try\n {\n $accessToken = Auth::user()->token();\n \\DB::table('oauth_refresh_tokens')\n ->where('access_token_id', $accessToken->id)\n ->update([\n 'revoked' => true\n ]);\n\n $accessToken->revoke();\n return $this->sendSuccess(trans('message.logout_success'));\n } \n catch ( \\Exception $e) \n {\n $msg = $e->getMessage();\n return $this->sendError($msg);\n }\n }", "title": "" }, { "docid": "e1efcbd918e854a50f17591a796f5b53", "score": "0.7117057", "text": "public function logout()\n {\n if(Authenticate::check())\n {\n\t\t\t$carbonAPi = new Carbon51();\n\t\t\t\n\t\t\t$api_state = $carbonAPi->hasSession();\n\t\t\t$accessToken = $carbonAPi->getAccessToken($api_state);\n\t\t\t$carbonAPi->logoutapi($accessToken);\n\t\t\n Session::forget('user');\n return Redirect::to('/');\n exit();\n }\n\n }", "title": "" }, { "docid": "064bb7cd3ea63b2ec24d6ae24501aeb0", "score": "0.71039027", "text": "public static function destroyToken() {}", "title": "" }, { "docid": "168822db1be28cb036b81bd1dbfbd579", "score": "0.70877266", "text": "public function logoutUser();", "title": "" }, { "docid": "eb4a5dcc8286ce0dc5a6c1c37d509e18", "score": "0.70729506", "text": "public function logout()\n {\n request()->user()->token()->revoke();\n return response()->json([\n 'message' => 'Successfully logged out'\n ]);\n }", "title": "" }, { "docid": "091dd1606a9e24bc19c4a252433c42ee", "score": "0.7071556", "text": "public function logout()\n {\n Cache::forget('auth:' . $this->getAuthorizationToken());\n\n if (isset($this->events)) {\n $this->events->fire(new Events\\Logout($this->user));\n }\n\n // Once we have fired the logout event we will clear the users out of memory\n // so they are no longer available as the user is no longer considered as\n // being signed into this application and should not be available here.\n $this->user = null;\n\n $this->loggedOut = true;\n }", "title": "" }, { "docid": "5d4963b4a8ea256815a1b055cdb59325", "score": "0.70712966", "text": "public function logout()\n {\n $responsible = Auth::user();\n \n $responsible->token()->revoke();\n $responsible->token()->delete();\n \n return response()->json(['status' => 'success'], 200);\n }", "title": "" }, { "docid": "27f952c0fcaa0e9db3b7115210b798fa", "score": "0.7042298", "text": "private function logout() {\n $this->state->logOut();\n }", "title": "" }, { "docid": "e8ecdb7ec148d96a10ddb26d6f8de03c", "score": "0.7034729", "text": "public function logout() {\n $this->user = null;\n self::requestLogin(self::$REASON_LOGOUT);\n }", "title": "" }, { "docid": "35a3839ffc77345fd3f0bf0e9864911d", "score": "0.70159405", "text": "public function logout()\n {\n $this->_ephemeralData['loggedOutUser'] = $this->fetch();\n $this->setStatus(self::STATUS_LOGOFF);\n Zend_Auth::getInstance()->clearIdentity();\n }", "title": "" }, { "docid": "932a50836f6a412dad44670e721d550e", "score": "0.7014515", "text": "function openam_wp_logout() {\n\n\tif ( OPENAM_REST_ENABLED && OPENAM_LOGOUT_TOO ) {\n\n\t\t$tokenId = $_COOKIE[ OPENAM_COOKIE_NAME ];\n\n\t\tif( ! empty( $tokenId ) ) {\n\t\t\t$headers = array(\n\t\t\t\tOPENAM_COOKIE_NAME => $tokenId,\n\t\t\t\t'Content-Type' => 'application/json',\n\t\t\t);\n\t\t\t$url = OPENAM_BASE_URL . OPENAM_SESSION_URI . '?_action=logout';\n\t\t\t$response = wp_remote_post( $url, array(\n\t\t\t\t'headers' => $headers,\n\t\t\t\t'sslverify' => OPENAM_SSLVERIFY,\n\t\t\t) );\n\t\t\topenam_debug( 'wp_logout: RAW RESPONSE LOGOUT: ' . print_r( $response, true ) );\n\t\t\t$expiration_date = time() - 3600;\n\t\t\tsetcookie( OPENAM_COOKIE_NAME, '', $expiration_date, '/', DOMAIN );\n\t\t}\n\t}\n}", "title": "" }, { "docid": "6dc98416049347179c0f8cf02a5d59f5", "score": "0.70012736", "text": "public function logout(Request $request, Response $response, TokenInterface $token)\n {\n dd(\"hello\");\n }", "title": "" }, { "docid": "8f9736e7bf0c6d507731bbfef6eb2447", "score": "0.69967777", "text": "public function logout()\n\t{\n\n\n\t\t$userId = $this->data()->user_id;\n\n\t\tQuery::update('users', 'user_id', $userId, [\n\t\t\t'user_status' => 'offline'\n\t\t]);\n\n\t\tif (Query::count()) {\n\n\t\t\tQuery::update('user_logs', 'log_id', $this->_sessionLogId, [\n\t\t\t\t'logout_date' => date('Y-m-d H:m:s'),\n\t\t\t\t'log_status' => 'logout'\n\t\t\t]);\n\n\t\t}\n \n\t\t// Cookie::delete($this->_cookieName);\n\t\tSession::delete($this->_sessionName);\n\t\tSession::delete($this->_cashierName);\n\t\tSession::delete($this->_sessionLogId);\n\t}", "title": "" }, { "docid": "6238c8d7f52e063a9c37dc7195bce5e5", "score": "0.69870585", "text": "function logout(){\n\t\t$this->authController->logout();\n\t}", "title": "" }, { "docid": "bf3b47d96522c4ef2eac4b622919dc86", "score": "0.6977411", "text": "public function logout()\n {\n Auth::user()->token()->revoke();\n \n return response()->json(['message'=>'Logout SuccesFull'],200);\n }", "title": "" }, { "docid": "be01b051fb7fcf3d9d5e22454ff8ba1c", "score": "0.6970341", "text": "public function logout() {\n if(isset($_SESSION[USER_ID])) {\n session_destroy();\n $_SESSION = array();\n $this->echoResponse(200, ERROR_CODE_SUCCESS, \"User logged out\");\n } else {\n $this->echoResponse(200, ERROR_CODE_ACCOUNT_NOT_LOGGED_IN, \"User not logged in\");\n }\n }", "title": "" }, { "docid": "f5f61710e4dabb5b0ba96476afb987f1", "score": "0.69620526", "text": "public function logout()\n {\n User::current()->tokens()->delete();\n return response()->json(['message' => 'Successfully logged out']);\n }", "title": "" }, { "docid": "12cde97ca66344919060af5b032ee645", "score": "0.6954187", "text": "public function logout(Request $request, Response $response, TokenInterface $token): void\n {\n $this->doLogout($response);\n }", "title": "" }, { "docid": "0b9cfb6fe09c3726a9ac55e45259da4f", "score": "0.69404066", "text": "public function logout(Request $request){\n $request->user()->token()->revoke();\n return response()->json([\n 'message' => 'Successfully logged out'\n ]);\n }", "title": "" }, { "docid": "346de1864315881a7ab8c9dee044f0bd", "score": "0.6928359", "text": "Public function logout(Request $request){\n \n if (Auth::user()) {\n $token = Auth::user()->token();\n $token->revoke();\n return response()->json([\n 'success' => 'true',\n 'message' => 'Logout successfull'\n ], 200); \n }else {\n return response()->json([\n 'success' => false,\n 'message' => 'Unable to Logout'\n ]);\n }\n }", "title": "" }, { "docid": "a084a1f534100197b144c453a7b22e45", "score": "0.69262713", "text": "public function logout();", "title": "" }, { "docid": "a084a1f534100197b144c453a7b22e45", "score": "0.69262713", "text": "public function logout();", "title": "" }, { "docid": "a084a1f534100197b144c453a7b22e45", "score": "0.69262713", "text": "public function logout();", "title": "" }, { "docid": "a084a1f534100197b144c453a7b22e45", "score": "0.69262713", "text": "public function logout();", "title": "" }, { "docid": "a084a1f534100197b144c453a7b22e45", "score": "0.69262713", "text": "public function logout();", "title": "" }, { "docid": "a084a1f534100197b144c453a7b22e45", "score": "0.69262713", "text": "public function logout();", "title": "" }, { "docid": "a084a1f534100197b144c453a7b22e45", "score": "0.69262713", "text": "public function logout();", "title": "" }, { "docid": "a084a1f534100197b144c453a7b22e45", "score": "0.69262713", "text": "public function logout();", "title": "" }, { "docid": "72b177a5b81c1ae272b6a71eb16af992", "score": "0.6922728", "text": "public function logout(Request $request){\n $request->user()->token()->revoke();\n\n return response()->json([\n 'message' => 'Successfully logged out'\n ]);\n }", "title": "" }, { "docid": "ad1fdcf1f82905f9ca9dca5fc2390039", "score": "0.69175303", "text": "public function logout()\n {\n try {\n JWTAuth::invalidate(JWTAuth::getToken());\n return response()->json([\n 'status' => 'success',\n 'message' => [Lang::get('user.auth.succesLogout')]//'Successfully logged out'\n ], 200);\n } catch (JWTException $e) {\n return response()->json([\n 'status' => 'error',\n 'message' => [Lang::get('user.auth.errorLogout')]\n ], 500);\n }\n }", "title": "" }, { "docid": "94e01552d188e42540da19c8f6ccd20f", "score": "0.69111645", "text": "public function logout(Request $request): JsonResponse\n {\n $user = $request->user()->token();\n $user->revoke();\n\n return $this->successResponse(\"Logout successful\");\n }", "title": "" }, { "docid": "43d1e564712b4624bb637c6ac8b16f97", "score": "0.6909575", "text": "public function logout(){\n\t\t$this->simple_login->logout();\t\n\t}", "title": "" }, { "docid": "2b7a0b6e893a45844fa0991af073afa6", "score": "0.68939036", "text": "public function logout()\n {\n if (!$this->user) {\n $this->user = $this->session->get('user');\n }\n\n if ($this->user) {\n\n $token = $this->user->token;\n\n $this->user = null;\n\n $this->session->flush();\n\n $this->provider->logout($token);\n }\n\n return redirect(env('IDP_URL') . '?' . http_build_query([\n 'redirect' => env('APP_URL')\n ]));\n }", "title": "" }, { "docid": "186bb1ed69df6b071b28131937c6a03e", "score": "0.6885387", "text": "public function logout(Request $request) {\n\t\t$accessToken = $request->user()->token()->delete();\n\t\treturn response()->success(__('Logged out'));\n\t}", "title": "" }, { "docid": "20e9a3f31ba409b7a247922c29e3038d", "score": "0.6879129", "text": "function logout() {\n $uid = $this->input->post(\"uid\");\n $time_stamp = $this->input->post(\"time_stamp\");\n $headers = apache_request_headers();\n $this->check_token($uid, $headers['Tkn'], $time_stamp);\n /* Check token end */\n if (!empty($uid)) {\n $this->patholab_api_model->master_fun_update('admin_master', array(\"id\" => $uid), array(\"active_token\" => \"\"));\n echo $this->json_data(\"1\", \"\", \"\");\n } else {\n echo $this->json_data(\"0\", \"Parameter not passed\", \"\");\n }\n }", "title": "" }, { "docid": "5940724923ff58960dcb3e933196be1b", "score": "0.68655074", "text": "public function logout()\n\t\t{\n\t\t\t$result = $this->objFactory->getObjValidatorUser()->isValidUser();\n\n\t\t\tif(false != $result)\n\t\t\t{\n\t\t\t\t$this->objFactory->getObjUser()->sessionDestroy($result);\n\n\t\t\t\t$this->objFactory->getObjCookie()->\n\t\t\t\t\tdeleteCookie('id')->deleteCookie('session');\n\t\t\t}\n\n\t\t\t$this->objFactory->getObjDataContainer()->\n\t\t\t\tsetParams(['nextPage' => 'Logout', 'result' => $result]);\n\t\t}", "title": "" }, { "docid": "3a8f11537820f6ae7f3cf32a8e780170", "score": "0.6864193", "text": "public function logout()\n {\n $this->makeRequest('POST', 'logout');\n }", "title": "" }, { "docid": "3a8f11537820f6ae7f3cf32a8e780170", "score": "0.6864193", "text": "public function logout()\n {\n $this->makeRequest('POST', 'logout');\n }", "title": "" }, { "docid": "e8d1b22241453a1faa5ddef558f043c9", "score": "0.68591183", "text": "public function userLogout();", "title": "" }, { "docid": "e01950b5e155d63b57db7fcb72742ad7", "score": "0.68508625", "text": "public function logoutAction($userId, $token)\n {\n //find user id+token\n //set token to 0\n\n return 'Log out successful!';\n }", "title": "" }, { "docid": "979727b230158bff7cd820e5544e1fd1", "score": "0.6848639", "text": "public function logout()\n {\n $this->session->remove('auth');\n }", "title": "" }, { "docid": "338f5c3fca7bd52968ed31e7abcfa4bd", "score": "0.6838116", "text": "public function Logout() {\n\t\t$this->session->UnsetAuthenticatedUser();\n\t\t$this->session->AddMessage(\"success\", \"You have logged out.\");\n\t}", "title": "" }, { "docid": "a908651d11800a5e40c0aa5e52a64f10", "score": "0.6830772", "text": "public function logout()\n {\n $user = $this->user();\n\n // If we have an event dispatcher instance, we can fire off the logout event\n // so any further processing can be done. This allows the developer to be\n // listening for anytime a user signs out of this application manually.\n // $this->clearUserDataFromStorage();\n\n if (!is_null($this->user)) {\n // $this->cycleRememberToken($user);\n $user->destroyToken();\n }\n\n if (isset($this->events)) {\n $this->events->dispatch(new Events\\Logout($this->name, $user));\n }\n\n // Once we have fired the logout event we will clear the users out of memory\n // so they are no longer available as the user is no longer considered as\n // being signed into this application and should not be available here.\n $this->user = null;\n\n $this->loggedOut = true;\n }", "title": "" }, { "docid": "0491dde8b8c35f679a6ea8e3ce036095", "score": "0.6827699", "text": "function logout_user()\n {\n if (!isset($_POST['validator'])) {\n exit(\"No direct script access allowed\");\n }\n \n $param = new stdClass();\n $param->user_identifier = $this->input->post('user_identifier');\n $param->token = $this->input->post('token');\n \n $this->token_validate($param->user_identifier, $param->token);\n \n $this->load->model('muserlogin_model');\n \n $response = $this->muserlogin_model->do_logout($param);\n \n echo json_encode($response);\n }", "title": "" }, { "docid": "e09d7170384dccad313b7cbc85f48225", "score": "0.6824317", "text": "public function logout() {\n }", "title": "" }, { "docid": "49efa2c43197fcb56cec82075c763486", "score": "0.6815563", "text": "public function logout() {\r\n $this->storage->clearParams('auth');\r\n }", "title": "" }, { "docid": "332e11bff2a214c86077945c14952e52", "score": "0.6812915", "text": "public function logout() {\n\n $this->db->query(\"DELETE FROM users_session WHERE user_id = ?\", array($this->id));\n\n Session::delete($this->sessionName);\n Session::delete(Config::get(\"session/tokens/logout\"));\n Cookie::delete($this->cookieName);\n }", "title": "" }, { "docid": "363c46af0879a8d163c0f0b7f59b1350", "score": "0.6808196", "text": "function logout()\n\t{\n\t\t$this->adapter->logout();\n\t}", "title": "" }, { "docid": "ee03c8462d0cacbfef3a9c942686a4a2", "score": "0.68032396", "text": "abstract public function logout();", "title": "" }, { "docid": "e6cf8553a239afdd9f6fa4d41efeb5dc", "score": "0.68024284", "text": "public function func_logout()\n\t{\n\t\t// clear token from database\n\t\tUsers_model::delete_token(get_user_id(), TOKEN_TYPE_LOGIN);\n\t\tclear_token();\n\n\t\t$this->view_login();\n\t}", "title": "" }, { "docid": "7d4f6ac69762fbf78f5c15b5f3a4b4c8", "score": "0.6797944", "text": "public function logout(Request $request)\n {\n $request->user()->token()->revoke();\n return response()->json([\n 'message' => 'Successfully logged out'\n ]);\n }", "title": "" }, { "docid": "37f7502f6978167ef88a4dbab826bde5", "score": "0.67917943", "text": "public function logout (Request $request) \n\t{\n\t\t$this->validate($request, ['token' => 'required']);\n\t\t\n\t\ttry {\n\t\t\tJWTAuth::invalidate($request->input('token'));\n\t\t\treturn response()->json([\n\t\t\t\t'success' => true, \n\t\t\t\t'message'=> 'You have successfully logged out.'\n\t\t\t]);\n\n\t\t} catch (JWTException $e) {\n\t\t\t// something went wrong whilst attempting to encode the token\n\t\t\treturn response()->json([\n\t\t\t\t'success' => false, \n\t\t\t\t'error' => 'Failed to logout, please try again.'\n\t\t\t], 500);\n\t\t}\n\t}", "title": "" }, { "docid": "ba7d85f1d81b8cb2369a555b76df7538", "score": "0.67894363", "text": "public function logout()\n {\n auth('api')->logout();\n\n return $this->setMessage('退出成功')->toJson();\n }", "title": "" }, { "docid": "d15534140a9a95dd90ae42d5473050cb", "score": "0.677474", "text": "public function logout()\n {\n }", "title": "" }, { "docid": "f5132af709396ab0a26397531b9fb008", "score": "0.67578834", "text": "public function logout(Request $request) {\n\t\t$this->validate($request, ['token' => 'required']);\n\n\t\ttry {\n\t\t\tJWTAuth::invalidate($request->input('token'));\n\t\t\treturn response()->json('You have successfully logged out.', Response::HTTP_OK);\n\t\t} catch (JWTException $e) {\n\t\t\treturn response()->json('Failed to logout, please try again.', Response::HTTP_BAD_REQUEST);\n\t\t}\n\t}", "title": "" }, { "docid": "1cedefaf3d0ff5ec1c0b02c4e9ffa061", "score": "0.67477155", "text": "public function logout(){\n\t\t\tSession::delete('user.user_id');\n\t\t\tSession::delete('user.user_username');\n\t\t\tSession::delete('user.session_time');\n\t\t\t$obj_url = Request::instance()->domain().Request::instance()->baseFile().'/login/login';\n\t\t\tCommon::alert_success('退出成功',$obj_url);exit;\n\t\t}", "title": "" }, { "docid": "7b4039e3d3133a4f88c8d05e3b5fbe72", "score": "0.6744482", "text": "public function logoutAction()\n {\n $token = $this->getSsoToken();\n\n $this->getLogoutService()->logout($token);\n\n return $this->getPreparedResponse();\n }", "title": "" }, { "docid": "b7781d9dd53d4f1521d0b52f0900e747", "score": "0.674094", "text": "public function logout()\n {\n $data = [];\n\n return $this->doRequest(self::METHOD_LOGOUT, $data);\n }", "title": "" }, { "docid": "29c4882aa79cf0a17b45e0ac3ef20887", "score": "0.67394006", "text": "public function logout(Request $request)\n {\n $request->user()->token()->revoke();\n return response()->json([\n 'message' => 'Successfully logged out'\n ]);\n }", "title": "" }, { "docid": "daf57b69bf6395ee6a28ce1efb67c88d", "score": "0.6737339", "text": "public function logout ()\n {\n\n\tif ( $this->isLoggedIn () ) {\n\t //clear user details\n\t self::getInstance ()->clearIdentity () ;\n\t /* Trigger events after user has logged off */\n\t InfosysproAuth::attachEvents ( $this->locator ) ;\n\t InfosysproAuth::afterLogOut ( array ( 'sessionId' => session_id () ) ) ;\n return $this->_response(true, 'successfullyLoggedOut' ) ;\n\t} else {\n\t return $this->_response(false, 'failedToLogout') ;\n\t}\n }", "title": "" }, { "docid": "d3fa8b820239a123a29bf677d2b644a0", "score": "0.67315686", "text": "public function logout()\n {\n Pusher::trigger('my-channel', 'auth-event',\n ['user'=>User::find($this->guard()->id())->name, 'type'=>'logout']);\n\n Pusher::trigger('logout-channel', 'private-logout-event',\n ['user'=>User::find($this->guard()->id())->id]);\n $this->guard()->logout();\n return response()->json(['message' => 'Successfully logged out']);\n }", "title": "" }, { "docid": "f1954151a758410fa3ab63b6d22c15b4", "score": "0.6731172", "text": "public static function _DELETE_token (Request $request, Response $response, $args) { // LOGOUT\n // just remove the current token (most case)\n // already \"session_GET\", so it's ok to remove this token without more checking...\n self::$logger->info(\"Session->session_DELETE_token (current or other token). ARGS are \".print_r($args,true));\n \n $context = $request->getAttribute('context');\n if (isset($args['token'])) {\n // remove a token other than the current one\n // get uid of the target token. Will be requested a second time in auth_..., but... not really important ;)\n $targetuser = self::$SessionToken->get_user_by_token($args['token']);\n $args['uid'] = $targetuser['uid'];\n if (self::auth_can_delete_token($args['uid'], $context)) {\n self::$SessionToken->delete_token($args['token']);\n } else {\n return $response->withJson(['error' => 'You are not authorized to do this, of course'], 401);\n }\n } else {\n self::$SessionToken->delete_token($context['token']);\n }\n \n return $response->withJson(['result' => 'Bye'], 200);\n }", "title": "" }, { "docid": "19d4a576507fedf82d881e54f01bafeb", "score": "0.6723057", "text": "public function logout()\r\n {\r\n $this->proxy->logout();\r\n }", "title": "" }, { "docid": "089e9b5bd3a77296962f20f1941d2721", "score": "0.67070216", "text": "public function logout_post() {\n $response = ['status' => 0, 'message' => '', 'code' => ''];\n $this->form_validation->set_rules('access_token', 'access Token', 'trim|required');\n if ($this->form_validation->run() == TRUE) {\n $access_token = $this->input->post('access_token');\n $logout = $this->authex->logout($access_token);\n $response = [\n 'status' => 1,\n 'code' => parent::HTTP_OK,\n 'message' => $this->lang->line('logout_success')\n ];\n } else {\n $response = [\n 'status' => 0,\n 'code' => parent::HTTP_BAD_REQUEST,\n 'message' => $this->lang->line('invalid_request')\n ];\n }\n $this->response($response);\n }", "title": "" }, { "docid": "1155bae3a4c08c22aabd7e7399dbb4b0", "score": "0.6693056", "text": "public function logout(Request $request)\n {\n $this->validate($request, ['token' => 'required']);\n\n try {\n JWTAuth::invalidate($request->input('token'));\n return response()->json(['success' => true, 'message' => \"You have successfully logged out.\"]);\n } catch (JWTException $e) {\n // something went wrong whilst attempting to encode the token\n return response()->json(['success' => false, 'error' => 'Failed to logout, please try again.'], 500);\n }\n }", "title": "" }, { "docid": "eb437bbfc5dfd9afd9268510178f7bb8", "score": "0.66923124", "text": "public function logout() {\r\n \r\n }", "title": "" }, { "docid": "5e4373a412c6200dda39102bbe44f85e", "score": "0.6690892", "text": "final public function logout()\n {\n require_once 'api/Logout.class.php';\n \n $logout = new Api_Logout();\n \n if($this->_isCurlSet())\n {\n $logout->setCurlObject($this->_curl);\n }\n \n $logout->_sessionId = $this->_sessionId;\n \n $logout->execute();\n }", "title": "" }, { "docid": "5b7a2c8eafdbb1d27aa8356bc74988f3", "score": "0.6688273", "text": "public function logout(Request $request): JsonResponse\n {\n $request->user()->tokens()->delete();\n return ApiResponse::send(Response::HTTP_OK, [], \"Logout successful.\");\n }", "title": "" }, { "docid": "4f20295899f408c9361f470b09303a7e", "score": "0.66873574", "text": "function logout() {\n \n $data = array();\n $post_data = array();\n if ($_POST['user_id'] <> '' && $_POST['device_id'] <> '') {\n $this->common->matchSecretKey($_POST['user_id'], $this->secret_key);\n $this->resetBadgeNumber($_POST['user_id']);\n //$this->exitIfInactive($_GET['user_id']);\n \n $verify = $this->api_model->verify_user_id($_POST['user_id']);\n if($verify == 1){\n $post_data['user_id'] = $_POST['user_id'];\n $post_data['device_id'] = $_POST['device_id'];\n $result = $this->api_model->delete('user_firebase_tokens', $post_data);\n if($result){\n $this->makeLog($_POST['user_id'],\"Log out\", NULL,NULL, \"User has logged out.\");\n $data['status'] = 1;\n $data['message'] = \"Successfully logged out \";\n }\n else{\n $data['status'] = 0;\n $data['message'] = 'Failed to logout.';\n } \n \n }\n else if ($verify == -1){\n $data['status'] = 0;\n $data['error'] = 204;\n $data['message'] = 'The user you are trying to access is inactive.';\n }\n else {\n $data['status'] = 0;\n $data['message'] = 'User not Exists.';\n }\n } else {\n $data['status'] = 0;\n $data['error'] = 404;\n $data['message'] = 'Invalid data provided.';\n }\n header('Content-Type: application/json');\n echo json_encode($data, JSON_NUMERIC_CHECK);\n exit;\n }", "title": "" }, { "docid": "422e5969d07b0367a69806b8215c8241", "score": "0.66845137", "text": "public function logout(Request $request) {\n\n $request->user()->token()->revoke();\n\n return response()->json([\n 'message' => 'Se ha desconectado correctamente',\n ]);\n }", "title": "" } ]
da18532355c7acd9b64af486bd6b666a
Returns true if offset exists. False otherwise.
[ { "docid": "d5a301618ce775c73d44b723cf9bc722", "score": "0.0", "text": "public function offsetExists($offset)\n {\n return isset($this->container[$offset]);\n }", "title": "" } ]
[ { "docid": "c6eb9faf470ccbcaed1b6de98399c2dd", "score": "0.84607", "text": "public function hasOffset($offset);", "title": "" }, { "docid": "2e41f6d1503a2cac93f3ab1f09f2f2f8", "score": "0.84012026", "text": "public function offsetExists($offset)\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "085128addeeb17e323df2bccdfb26f18", "score": "0.83363456", "text": "public function offsetExists($offset)\n\t{\n\t\t$offset = self::normalizeKey($offset);\n\t\treturn $offset === false ? false : parent::offsetExists($offset);\n\t}", "title": "" }, { "docid": "77901041ededc9c107c754c5dd1186ed", "score": "0.8299889", "text": "public function offsetExists($offset)\n {\n return true;\n }", "title": "" }, { "docid": "5187a2fdee5c80eb53aab2bc610a0d76", "score": "0.82514536", "text": "public function offsetExists($offset): bool\n {\n return isset($this->raw[$offset]) && $this->raw[$offset] !== ['!re'];\n }", "title": "" }, { "docid": "d0a22466962c2facc51d9ca552c3575c", "score": "0.8216664", "text": "public function offsetExists($offset): bool {\n $length = $this->getLength();\n $offset = (int) $offset;\n if ($offset >= 0) {\n return ($length > $offset);\n }\n return ($length >= abs($offset));\n }", "title": "" }, { "docid": "3ce6074bc76b5e8541b39868c7f801c6", "score": "0.8202186", "text": "public function offsetExists($offset): bool\n {\n return !is_null($this->getAttribute($offset));\n }", "title": "" }, { "docid": "807ddcd7835a74cf707ae7c4d33ad8bc", "score": "0.8173572", "text": "function offsetExists ( $offset ) {\n return (strlen($this->data) / self::LEN) - 1 >= $offset;\n }", "title": "" }, { "docid": "5a275021fe1a4d3df9e49755b492a072", "score": "0.81631017", "text": "public function offsetExists($offset): bool\n {\n return isset($this->toArray()[$offset]);\n }", "title": "" }, { "docid": "c937c08ad495ddedc3c8ca63a0012278", "score": "0.8150394", "text": "public function offsetExists($offset): bool\n {\n return $this->getAttribute($offset) !== null;\n }", "title": "" }, { "docid": "c9fb51bc5526b83557dc6301094d77be", "score": "0.8142829", "text": "public function offsetExists($offset)\n {\n return !is_null($this->getAttribute($offset));\n }", "title": "" }, { "docid": "c76f6b4091a6ce766a93676b94b910ee", "score": "0.81392914", "text": "public function offsetExists( $offset): bool {\n $length = $this->count();\n $offset = (int) $offset;\n if ($offset >= 0) {\n return ($length > $offset);\n } \n return ($length >= abs($offset));\n }", "title": "" }, { "docid": "4e5d8d9b3a7284f2af2c10d8d4415552", "score": "0.81290424", "text": "public function offsetExists($offset) { \n return isset($this->data[$offset]);\n }", "title": "" }, { "docid": "bc8085903cbf5ab13c9e20b47c3458d2", "score": "0.8125741", "text": "public function offsetExists($offset) {\n\t\treturn $this->__isset($offset);\n\t}", "title": "" }, { "docid": "0f4ad12d44d1b9c2cb6761cec2d021b1", "score": "0.8125587", "text": "public function hasOffset(){\n return $this->_has(10);\n }", "title": "" }, { "docid": "4d46871f8366e99b77d8efe33e273a5b", "score": "0.8116342", "text": "public function offsetExists( mixed $offset ): bool {\n\t\t\t// TODO: Implement offsetExists() method.\n\t\t}", "title": "" }, { "docid": "8608b3dd89d9e9846ebf3d3b47c78d68", "score": "0.8114838", "text": "public function offsetExists($offset): bool\n {\n return $this->has($offset);\n }", "title": "" }, { "docid": "4bf598dd320247a38c443f674691d1e4", "score": "0.8099403", "text": "public function offsetExists(mixed $offset): bool\n {\n return $this->has($offset);\n }", "title": "" }, { "docid": "f135e6a126b41781cd876db17bf6c125", "score": "0.80964965", "text": "public function offsetExists($offset)\n\t{\n\t\treturn !($this->getMetaData($offset) === NULL);\n\t}", "title": "" }, { "docid": "8bb983ca1d813db70ae1d60b6fc2352e", "score": "0.8081735", "text": "public function offsetExists($offset): bool\n {\n return isset($this->array[$offset]);\n }", "title": "" }, { "docid": "bae4dafcfecca55d6d70cca4854a6270", "score": "0.8070857", "text": "public function offsetExists($offset) {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "2e6744cbec703a90cb40f011a13253df", "score": "0.8062333", "text": "public function offsetExists($offset) { return isset($this->$offset); }", "title": "" }, { "docid": "423fc958a33505ebd9132a0633ddbccd", "score": "0.80614585", "text": "public function offsetExists($offset): bool\n {\n return array_key_exists($offset, static::DEFAULT);\n }", "title": "" }, { "docid": "e74904301d5184d7304ba97ae87aa09b", "score": "0.80606437", "text": "public function offsetExists(mixed $offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "1ba5869293cde3f8d4f7eb01d4af5f26", "score": "0.80578625", "text": "public function offsetExists($offset) {\n\t\treturn $this->_data->keyExists($offset);\n\t}", "title": "" }, { "docid": "f363b5a0feecc0b9beda0a95dc7ed5df", "score": "0.8056223", "text": "public function offsetExists($offset) {\n return isset($this->elements[$offset]);\n }", "title": "" }, { "docid": "979d4af4554daedb0b05594d060aba37", "score": "0.805574", "text": "public function offsetExists($offset)\n {\n return isset($this->store[$offset]);\n }", "title": "" }, { "docid": "6201f56f92736e50c49f1ede0839f083", "score": "0.80515444", "text": "public function offsetExists($offset)\n\t{\n\t\treturn $this->exists($offset);\n\t}", "title": "" }, { "docid": "6201f56f92736e50c49f1ede0839f083", "score": "0.80515444", "text": "public function offsetExists($offset)\n\t{\n\t\treturn $this->exists($offset);\n\t}", "title": "" }, { "docid": "2537745cffa84e062d283f008a339387", "score": "0.8049501", "text": "public function offsetExists($offset)\n {\n return ! is_null($this->getAttribute($offset));\n }", "title": "" }, { "docid": "f90fb4343810ead76657d0a5bbece856", "score": "0.80460644", "text": "public function offsetExists($offset) {\n\t\treturn (isset($this->map[$offset]));\n\t}", "title": "" }, { "docid": "27ca457690ee5e7954ceaf90c1e2f53f", "score": "0.8033807", "text": "function offsetExists($offset) {\n\t\treturn ($offset < mb_strlen($this->text, 'UTF-8'));\n\t}", "title": "" }, { "docid": "db55fffdeba5780fbfa83f18a0964550", "score": "0.8030976", "text": "public function offsetExists($offset) { \n return isset($this->container[$offset]); \n }", "title": "" }, { "docid": "b8d4983fe33232cd9643c390c6a185ae", "score": "0.80271363", "text": "public function offsetExists($offset)\n\t{\n\t\treturn $this->__isset($offset);\n\t}", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "66b1482cf84462ef20ee26f66a3439a5", "score": "0.80232793", "text": "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "2fefb81b1881f3aaa7a0b1e512e9cc9e", "score": "0.80131507", "text": "public function offsetExists($offset) {\n return isset($this->pathData[$offset]);\n }", "title": "" }, { "docid": "a3fce2e07c468532aa3069a9ef6567f9", "score": "0.8013106", "text": "private function exists($offset = null)\n {\n return isset($this->container[$offset !== null ? $offset : $this->position]);\n }", "title": "" }, { "docid": "c15e533a540d041c8f8b92b4c6dedba7", "score": "0.80129236", "text": "public function offsetExists ($offset);", "title": "" }, { "docid": "77c9cc6f65271891c9831958c8f78654", "score": "0.8012261", "text": "public function offsetExists($offset)\n {\n return isset($this->data[$offset]) || (isset($this->keys[$offset]) && isset($this->data[$this->keys[$offset]]));\n }", "title": "" }, { "docid": "58caf92d72c5865e766a74c348114b7d", "score": "0.80093664", "text": "public function offsetExists($offset);", "title": "" }, { "docid": "10ccb7bbc2179aa4f78652d9e952fe44", "score": "0.80069476", "text": "public function offsetExists($offset) : bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "10ccb7bbc2179aa4f78652d9e952fe44", "score": "0.80069476", "text": "public function offsetExists($offset) : bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "10ccb7bbc2179aa4f78652d9e952fe44", "score": "0.80069476", "text": "public function offsetExists($offset) : bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "10ccb7bbc2179aa4f78652d9e952fe44", "score": "0.80069476", "text": "public function offsetExists($offset) : bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "10ccb7bbc2179aa4f78652d9e952fe44", "score": "0.80069476", "text": "public function offsetExists($offset) : bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "10ccb7bbc2179aa4f78652d9e952fe44", "score": "0.80069476", "text": "public function offsetExists($offset) : bool\n {\n return isset($this->container[$offset]);\n }", "title": "" }, { "docid": "ea42732bed1771ff5357a4569d434d8c", "score": "0.8006666", "text": "public function offsetExists($offset)\n {\n return ($this->__isset($offset));\n }", "title": "" }, { "docid": "40bfb575075463f3a03f4f7872552614", "score": "0.8003726", "text": "public function offsetExists($offset) {\r\n\t\treturn isset($this->elements[$offset]);\r\n\t}", "title": "" }, { "docid": "893d43943fc2e4c3b8ba05451fb7c8bd", "score": "0.80031693", "text": "public function offsetExists($offset) {\n return isset($this->$offset);\n }", "title": "" } ]
772f9be12abea33bb97daafd519225f9
FIRST CHECK IF THIS LOCK ALREADY EXISTS IN DB
[ { "docid": "7baa91f3f34c71152cfc58712103983c", "score": "0.0", "text": "public function storeLastHeartBeatInDatabase($last_heart_beat, $factory_name)\n {\n $stmt = $this->conn->prepare(\"SELECT g_factory_name FROM app_activated_gateways WHERE g_factory_name = ?\");\n $stmt->bind_param(\"s\", $factory_name);\n $stmt->execute();\n $stmt->store_result();\n\n if ($stmt->num_rows > 0){\n //gw already exists so update info\n $stmt = $this->conn->prepare(\"UPDATE app_activated_gateways SET g_date_last_reported = ? WHERE g_factory_name = ?\");\n $stmt->bind_param(\"ss\", $last_heart_beat, $factory_name);\n if ($stmt->execute()) {\n return SQL_SUCCESSFUL;\n } else {\n return SQL_UNSUCCESSFUL;\n }\n } else {\n //gw does not exist in db, so return FALSE\n return FACTORY_NAME_DOES_NOT_EXIST;\n }\n }", "title": "" } ]
[ { "docid": "75f9507677151ab7d3cd73c1cddb9f76", "score": "0.7153261", "text": "public function checkLock() {\n }", "title": "" }, { "docid": "9f237b615e17cc7b3803ebc8e0f5dca1", "score": "0.71196437", "text": "public function hasLock(){\n\t\tstatic $lock = -1;\n\t\tif(is_bool($lock)){\n\t\t\treturn $lock;\n\t\t}\n//lock table\n\t\t$this->lock(VALIDATION_SERVICES_TABLE, 'read');\n//if lock unavailable this will generate an error 1044 - access denied\n\n\t\t$lock = ($this->errno() == 0);\n\t\t$this->unlock();\n\t\treturn $lock;\n\t}", "title": "" }, { "docid": "c755946eac80858d1d143b8854cc4627", "score": "0.7053188", "text": "public function hasLock()\n {\n $lockInfo = wcmLock::get($this);\n return !($lockInfo->userId != 0);\n }", "title": "" }, { "docid": "2280d5ce0cbd207447b370b8fb4f0111", "score": "0.67714614", "text": "function check_lock() {\n\t\t$key = get_current_user_id().$_POST['lock_key'];\n\t\t$lock = get_transient(Ekklesia_Importer::$prefix.'lock');\n\t\tif ($lock !== false && $lock != $key) {\n\t\t\t$this->die_with_json(array('loop'=>'stop', 'page'=>'#ekklesia_importer_lock', 'buttons' => $this->build_button_array()));\n\t\t} else {\n\t\t\tset_transient(Ekklesia_Importer::$prefix.'lock', $key, 60*10); // keep lock for 10 min\n\t\t}\n\t}", "title": "" }, { "docid": "cb52d5641bf84034930cfe1d7b35c932", "score": "0.6697766", "text": "public function hasLock($key) {\n\t\t$stmt = $this->getStatement('exists');\n\t\t$stmt->execute(array('hash' => 'lock:'.sha1($key)));\n\n\t\t$row = $stmt->fetch(\\PDO::FETCH_ASSOC);\n\t\t$stmt->closeCursor();\n\n\t\treturn !empty($row);\n\t}", "title": "" }, { "docid": "38f0442830de31ac6c615d61106adbd4", "score": "0.666044", "text": "protected static function checkLock()\r\n {\r\n if (($time = Mage::app()->loadCache(self::CACHE_LOCK_ID))) {\r\n if ((time() - $time) <= self::LOCK_EXPIRE_INTERVAL) {\r\n return false;\r\n }\r\n }\r\n Mage::app()->saveCache(time(), self::CACHE_LOCK_ID, array(), self::LOCK_EXPIRE_INTERVAL);\r\n return true;\r\n }", "title": "" }, { "docid": "80918a6942e19237f3882abe24061448", "score": "0.6576198", "text": "function check_delete_lock()\n\t{\n\t\tlog_debug(\"inc_charts\", \"Executing check_delete_lock()\");\n\n\n\t\t// make sure chart has no transactions in it\n\t\t$sql_obj\t\t= New sql_query;\n\t\t$sql_obj->string\t= \"SELECT id FROM account_trans WHERE chartid='\". $this->id .\"' LIMIT 1\";\n\t\t$sql_obj->execute();\n\n\t\tif ($sql_obj->num_rows())\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\n\t\tunset($sql_obj);\n\n\n\t\t// make sure chart has no items belonging to it - this will catch quotes which\n\t\t// won't have any entry in the ledger table, but do have an entry in the items table\n\t\t$sql_obj\t\t= New sql_query;\n\t\t$sql_obj->string\t= \"SELECT id FROM account_items WHERE chartid='\". $this->id .\"' LIMIT 1\";\n\t\t$sql_obj->execute();\n\n\t\tif ($sql_obj->num_rows())\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\n\t\tunset($sql_obj);\n\n\n\t\t// unlocked\n\t\treturn 0;\n\n\t}", "title": "" }, { "docid": "cd29450806ef2fe193225e05ed77700f", "score": "0.65714365", "text": "public function hasLockFactory(): bool;", "title": "" }, { "docid": "9e103bec67753ee47e9036a45ba954f6", "score": "0.6529195", "text": "public function lock()\n {\n return null === $this->client->walletLock();\n }", "title": "" }, { "docid": "25b24ae799cb63b87b5663ff7a7dd38a", "score": "0.6511592", "text": "protected function isLockAlive()\n {\n $lockFile = Yii::getAlias(QueueManager::getInstance()->lockFile);\n\n if (file_exists($lockFile)) {\n $lockingPID = (int)trim(file_get_contents($lockFile));\n if ($lockingPID === getmypid()) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "4434582548c73d6230ec364e3a073f27", "score": "0.64671916", "text": "public function hasLockFile();", "title": "" }, { "docid": "9ea38c69242fd1e2a0e7bac875f3b4b8", "score": "0.6466736", "text": "private function WaitIfLock()\n {\n //Lock file to block file from modifications until is modified here first.\n $file_lock = $this->file . \".lock\";\n\n //Check if $file is not been modified already.\n if(file_exists($file_lock))\n {\n //Wait until the file is written by the other process\n while(file_exists($file_lock))\n {\n continue;\n }\n }\n }", "title": "" }, { "docid": "85e67095716548bff5f07a1dd93eec53", "score": "0.64511657", "text": "public function has_locking() {\n return false;\n }", "title": "" }, { "docid": "a0424dd587c8a33347e29870597af090", "score": "0.63496023", "text": "function is_process_lock($name)\n {\n global $storagedir,$process_locks_max_seconds;\n \n # Check that tmp/process_locks exists, create if not.\n # Since the get_temp_dir() method does this checking, omit: if(!is_dir($storagedir . \"/tmp\")){mkdir($storagedir . \"/tmp\",0777);}\n if(!is_dir(get_temp_dir() . \"/process_locks\")){mkdir(get_temp_dir() . \"/process_locks\",0777);}\n \n # No lock file? return false\n if (!file_exists(get_temp_dir() . \"/process_locks/\" . $name)) {return false;}\n if (!is_readable(get_temp_dir() . \"/process_locks/\" . $name)) {return true;} // Lock exists and cannot read it so must assume it's still valid\n $time=trim(file_get_contents(get_temp_dir() . \"/process_locks/\" . $name));\n if ((time() - (int) $time)>$process_locks_max_seconds) {return false;} # Lock has expired\n \n return true; # Lock is valid\n }", "title": "" }, { "docid": "757b47ad5dc72867cf69512b31220406", "score": "0.62709534", "text": "public function isLocked();", "title": "" }, { "docid": "757b47ad5dc72867cf69512b31220406", "score": "0.62709534", "text": "public function isLocked();", "title": "" }, { "docid": "757b47ad5dc72867cf69512b31220406", "score": "0.62709534", "text": "public function isLocked();", "title": "" }, { "docid": "757b47ad5dc72867cf69512b31220406", "score": "0.62709534", "text": "public function isLocked();", "title": "" }, { "docid": "757b47ad5dc72867cf69512b31220406", "score": "0.62709534", "text": "public function isLocked();", "title": "" }, { "docid": "757b47ad5dc72867cf69512b31220406", "score": "0.62709534", "text": "public function isLocked();", "title": "" }, { "docid": "6b8a2b9661e0cbeb04cc90ad6b8616b2", "score": "0.6224095", "text": "public function in_table_lock()\n\t{\n\t\treturn (bool) self::$table_locks;\n\t}", "title": "" }, { "docid": "0a378d020f9b56ff224df9e41aa76179", "score": "0.6183388", "text": "public function isIndexLockHeld()\n {\n //Manual lock indexing flag (for testing/holding the indexers for other reasons)\n if (file_exists($this->dir->getPath(\"var\") . \"/sinch_lock_indexers.flag\")) {\n return true;\n }\n\n //Import lock\n $current_vhost = $this->scopeConfig->getValue(\n 'web/unsecure/base_url',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n );\n $is_lock_free = $this->resourceConn->getConnection()->fetchOne(\"SELECT IS_FREE_LOCK('sinchimport_{$current_vhost}')\");\n if ($is_lock_free === '0') {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "0e6a8ac202e1001e74cf47d002df599a", "score": "0.6169025", "text": "public function useLock() : bool;", "title": "" }, { "docid": "61650bd67c451949f67910a34805630d", "score": "0.61130565", "text": "public function isLocked()\n {\n $this->lockInfo = wcmLock::get($this);\n return ($this->lockInfo->userId != 0 && $this->lockInfo->userId != wcmSession::getInstance()->userId);\n }", "title": "" }, { "docid": "f7d9aea460430907d0f66822e75eaf11", "score": "0.61095643", "text": "protected function isLocked()\n {\n $lockFile = Yii::getAlias(QueueManager::getInstance()->lockFile);\n\n if (file_exists($lockFile)) {\n $lockingPID = trim(file_get_contents($lockFile));\n if (posix_kill($lockingPID, 0)) {\n return true;\n }\n\n // Lock-file is stale, so kill it. Then move on to re-creating it.\n unlink($lockFile);\n }\n\n file_put_contents($lockFile, getmypid() . \"\\n\");\n\n return false;\n }", "title": "" }, { "docid": "cb198f218a794c8d56408dce9d9f8c61", "score": "0.6108863", "text": "protected function createLockFile() {\n if(! $this->checkBranch()) {\n return false;\n }\n $count = 0;\n while(true) {\n if($this->uniqueTouch($this->dblock)) {\n return true;\n }\n $count++;\n sleep(1);\n if($count > 30) {\n $this->err(\"Can not create lock file needed to modify database.\");\n return false;\n } elseif($count > 15) {\n // might be a stale lock file\n $this->cleanStaleLock();\n }\n }\n }", "title": "" }, { "docid": "c1197f7b9de5b4972ad635bea4e3a9b1", "score": "0.6038476", "text": "function isLocked()\n{\n if (file_exists(LOCK_FILE)) {\n $lockingPID = trim(file_get_contents(LOCK_FILE));\n $pids = explode(\"\\n\", trim(`ps -e | awk '{print $1}'`));\n if (in_array($lockingPID, $pids)) {\n return true;\n }\n unlink(LOCK_FILE);\n }\n file_put_contents(LOCK_FILE, getmypid() . \"\\n\");\n return false;\n\n}", "title": "" }, { "docid": "0c7802b7ea1e4796a07a99debb912f5b", "score": "0.6018752", "text": "public function isMutexUsed($name) {\n $lock_name = $this->config->getValue('db_name').'.'.$name;\n $q = \"SELECT IS_USED_LOCK('\".$lock_name.\"') AS result\";\n $ps = $this->execute($q);\n $row = $this->getDataRowAsArray($ps);\n return $row['result'] != null;\n }", "title": "" }, { "docid": "1deb1881d56b6edd58d1165f6b45b358", "score": "0.6017999", "text": "public function isLocked(): bool;", "title": "" }, { "docid": "1deb1881d56b6edd58d1165f6b45b358", "score": "0.6017999", "text": "public function isLocked(): bool;", "title": "" }, { "docid": "185e6212101938dfea4a4f94e83f438d", "score": "0.5999116", "text": "public function verifyLock()\n {\n if (!isset($_GET['u']))\n throw new InvalidRequestException;\n\n $uniqeId = $_GET['u'];\n\n try {\n $this->db->beginTransaction();\n\n $transaction = $this->db->find($uniqeId, true);\n\n if (!$transaction)\n throw new NotFoundTransactionException;\n\n if (!PortAbstract::checkVerifyKey($transaction))\n throw new InvalidRequestException;\n\n if ($transaction->status != PortAbstract::TRANSACTION_INIT)\n throw new RetryException;\n\n $this->buildPort($transaction->port_id);\n $this->portClass->transactionPending($transaction->id);\n\n $this->db->commit();\n } catch(\\Exception $e) {\n $this->db->rollBack();\n throw $e;\n }\n\n return $this->portClass->verify($transaction);\n }", "title": "" }, { "docid": "a477d8b331e0e2d6311049f58993ddd7", "score": "0.5980549", "text": "public function lockingRecord()\n {\n return true;\n }", "title": "" }, { "docid": "733afb70316fa304012f4c05521c0af6", "score": "0.58935785", "text": "private function lock(): bool {\n // Open lock file.\n $this->fp = fopen($this->lockfile, 'a');\n\n // Returns false if locked.\n if (!flock($this->fp, LOCK_EX|LOCK_NB)) return false;\n return true;\n // touch($this->lockfile);\n }", "title": "" }, { "docid": "c0aa77658b4ce07f8164c182ce413cf6", "score": "0.58827704", "text": "public function is_locked()\n\t{\n\t\treturn (bool)$this->lockoutTime(0);\n\t}", "title": "" }, { "docid": "d26666e63900d4116bb215e88da6cf66", "score": "0.5860232", "text": "public function isProcessLocked($lockName) {\n if ($this->connection->Exists($lockName.\"_lock\")) {\n return $this->connection->Get($lockName.\"_lock\");\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "d34d0bf1df9ea2ac65c75e31a082028c", "score": "0.5828277", "text": "public function checkIfAtLeastOnePartnerHadBeenLocked() {\n $partnerIds = $this->job->partnerIDsForDelivery;\n if (empty($partnerIds)) {\n return false;\n }\n \n $modelPartner = SingletonRegistry::getModelPartner();\n $count = $modelPartner->countLockedPartner($partnerIds);\n return ($count > 0);\n \n }", "title": "" }, { "docid": "0bc332b220e010bf02ce115db479f6f8", "score": "0.5827347", "text": "protected function txn_is_duplicate() {\n\n\t\tif($this->log_to_db) {\n\t\t\tif($this->connect_db()) {\n\t\t\t\tif(mysql_num_rows(mysql_query(\"SELECT txn_id FROM ipn WHERE txn_id='\".mysql_real_escape_string($this->ipn['txn_id'],$this->dbc).\"'\",$this->dbc)) != 0) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\n\t}", "title": "" }, { "docid": "5a30a4ce59eae3e29a8cacd12566442b", "score": "0.58143723", "text": "public function is_acquired() : bool ;", "title": "" }, { "docid": "3273c5bf8bb9cf1eb77c9b1d24788d4c", "score": "0.581121", "text": "public function lock($key) {\n\t\t$stmt = $this->getStatement('lock');\n\t\t$stmt->execute(array('hash' => 'lock:'.sha1($key), 'payload' => ''));\n\t\t$stmt->closeCursor();\n\n\t\treturn $stmt->rowCount() > 0;\n\t}", "title": "" }, { "docid": "37e8ccded28a5e0ba0d8abd039186160", "score": "0.57864964", "text": "public function hasLock($namespace, $key) {\n\t\treturn $this->primaryCache->hasLock($namespace, $key);\n\t}", "title": "" }, { "docid": "39d43125e506ff7ff200c231cd498828", "score": "0.57734007", "text": "public function isLocked(string $name): bool\n {\n $name = $this->addPrefix($name);\n\n return (bool)$this->resource->getConnection()->query(\n \"SELECT IS_USED_LOCK(?);\",\n [(string)$name]\n )->fetchColumn();\n }", "title": "" }, { "docid": "a5c56e7796de9097d55be2e7e8342613", "score": "0.5755064", "text": "protected function checkIsLocked()\n {\n if ($this->getIsLocked()) {\n throw new \\Exception(\n 'Query is locked. Use create() to create a new query.'\n );\n }\n }", "title": "" }, { "docid": "90f4f22f4c8c3723e0ce578b90049ca1", "score": "0.57490164", "text": "private function checkIsExists(): bool\n {\n $where = [\n $this->table . '.vendorId' => $this->vendorId,\n $this->table . '.list' => $this->list,\n ];\n\n if (!is_null($this->id)) {\n $where[$this->table. '.id !='] = $this->id;\n }\n\n $id = $this->readImproved([\n 'what' => ['id'],\n 'where' => $where\n ]);\n\n return !is_null($id);\n }", "title": "" }, { "docid": "9f09e83146c8d3cd4dd78f0a243c8df8", "score": "0.57145417", "text": "protected function _get_lock($session_id)\n {\n return true;\n }", "title": "" }, { "docid": "12784b404c3746a223a7e0fd713b8f63", "score": "0.5711679", "text": "public function validate(){\n if(!file_exists($this->path)){\n throw new \\Exception(sprintf(\"Lock '%s' destroyed\", $this->path));\n }\n if(@file_get_contents($this->path) !== $this->pid){\n throw new \\Exception(sprintf(\"Lock '%s' contains other pid\"));\n }\n }", "title": "" }, { "docid": "dca123c72c0341655af9de33d6bbebfc", "score": "0.5704374", "text": "public function isLocked()\n {\n return $this->_memContainer->isLocked();\n }", "title": "" }, { "docid": "db6392dbc03e20995657288c7ef25c36", "score": "0.5683563", "text": "public function lock_vitals(){\r\n\t\t$sql = \"UPDATE vitals SET vitals.lock=1 WHERE idvitals=\".$this->vitals_id;\r\n\t\tif (!mysql_query($sql)){ return false; } else { return true; }\r\n\t}", "title": "" }, { "docid": "38b44ad29dcaab0080c452f3ac87c90c", "score": "0.5660681", "text": "public function exists()\r\n\t{\r\n\t\t// Unfinished\r\n\t}", "title": "" }, { "docid": "1bee18e56295aa44886e3432eaf503e5", "score": "0.565919", "text": "protected function _lock($id)\n {\n $remaining = 30000000; // 30 seconds timeout, 30Million microsecs\n $timeout = 5000; // 5000 microseconds (5 ms)\n\n $result = $this->_table->lock_lock($id);\n\n if ($result) {\n return true; \n }\n\n // Possible solution for locking a non-existant document\n // Either we don't have a document, or we couldn't obtain the lock\n $doc = $this->_table->get($id);\n if (!isset($doc['id'])) {\n $this->write($id, serialize('')); \n }\n\n // Now try to get the lock again.\n do {\n $result = $this->_table->lock_lock($id);\n\n if ($result) {\n return true; \n }\n\n usleep($timeout);\n $remaining = $remaining - $timeout;\n\n // wait a little longer next time, 1 sec max wait\n $timeout = ($timeout < 1000000) ? $timeout * 2 : 1000000;\n\n } while ($remaining > 0);\n\n // aww shit. \n // How can we handle this better?\n $this->_table->lock_release($id); \n throw new Exception('Could not get session lock');\n }", "title": "" }, { "docid": "92ede7e3e366458cd28597772aaf59fd", "score": "0.56220263", "text": "public function isLocked($name)\n {\n return false !== $this->memcache->get($name);\n }", "title": "" }, { "docid": "bcc2fcc1633bdf61f79fb482fc2e7fc4", "score": "0.5609837", "text": "public function hasInTransaction(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "b1d5cbb980e1f2c600bd8dd2fdf10efa", "score": "0.5609589", "text": "public function lock(string $lockId) : bool;", "title": "" }, { "docid": "ed839c8f908d904077e6d384a0934204", "score": "0.56031436", "text": "protected function _isJobAlreadyRunning()\n {\n $blProcessFileExists = $this->_checkProcessFileExists();\n if (!$blProcessFileExists) {\n return;\n }\n\n try {\n $this->_checkProcessExists();\n } catch (Exception $e) {\n throw $e;\n }\n }", "title": "" }, { "docid": "4ecd347e77120e9a24e54fd5a54c8992", "score": "0.5601439", "text": "function exists() {\n\t\t// For right now, just check that the id is > 0\n\t\treturn (intval($this->getId()) > 0);\t\n\t}", "title": "" }, { "docid": "e9bd63772379c38f596d8693b36d9c14", "score": "0.5593498", "text": "protected function getLockStatus() {\n\t\t$key = static::getLockKey();\n\t\t\n\t\treturn (bool)$this->storage->isFreeLock( $key );\n\t}", "title": "" }, { "docid": "cb07f84d84bcf49299712f3175df3e8e", "score": "0.5592929", "text": "protected function freeLock()\n {\n if ( $this->noLock )\n {\n return true;\n }\n \n $this->unlock();\n }", "title": "" }, { "docid": "d19460c09bfeff3eebea7c6337a11b16", "score": "0.55899227", "text": "public function checkProcesses()\n\t{\n\t\t$locked_status = $this->isLocked();\n\n\t\tswitch($locked_status)\n\t\t{\n\t\t\tcase self::LOCK_EMPTY;\n\t\t\t\t$this->Lock();\n\t\t\t\treturn TRUE;\n\t\t\t\tbreak;\n\n\t\t\tcase self::LOCK_STALE;\n\t\t\t\t$this->log->Write(\"ERROR: Returns Processing found a stale lock!\");\n\t\t\t\t$this->failStaleProcesses();\n\t\t\t\t$this->Unlock();\n\t\t\t\t$this->Lock();\n\t\t\t\treturn TRUE;\n\t\t\t\tbreak;\n\n\t\t\tcase self::LOCK_VALID;\n\t\t\t\treturn FALSE;\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "1ac28a137db17dd782a34fb96521fc4b", "score": "0.55854475", "text": "public function isLocked() {\n throw new jackalope_NotImplementedException();\n }", "title": "" }, { "docid": "38cfbaae40ca6614779846f33f8cd80a", "score": "0.5575846", "text": "public function isMutexFree($name) {\n $lock_name = $this->config->getValue('db_name').'.'.$name;\n $q = \"SELECT IS_FREE_LOCK('\".$lock_name.\"') AS result\";\n $ps = $this->execute($q);\n $row = $this->getDataRowAsArray($ps);\n return $row['result'] === '1';\n }", "title": "" }, { "docid": "c341b27abdc7236ea841c8ac5c563a8b", "score": "0.55737525", "text": "public function check_exists() {\n\n\t\t// try import records first\n\t\t$found_nid = $this->check_import_records();\n\t\t\n\t\t// return nid if node found\n\t\tif(is_numeric($found_nid)) {\n\t\t\t$exists = db_result(db_query('SELECT status FROM {node} WHERE nid = %d', $found_nid));\n\t\t\tif($exists) {\n\t\t\t\t$this->obj_data['nid'] = $found_nid;\n\t\t\t\t$this->in_db = true;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\t\n\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8d8b1d464e99dad7620252f7396f123b", "score": "0.55673", "text": "public function Exists()\n\t{\n\t\t$this->_token = Token::where('user_id', $this->_userId)\n\t\t ->where('session_id', $this->_sessionId)\n\t\t ->where('expired', 0)\n\t\t ->first();\n\n\t\tif($this->_token != null)\n\t\t\t$this->Extend();\n\n\t\treturn $this->_token != null;\n\t}", "title": "" }, { "docid": "a1620fca35a8efd0f1b1f14c6ab32fa7", "score": "0.556714", "text": "function isOnLocked() {\n\n\t\t$obj_id = $this->guide_id;\n\n $query = \"SELECT `approval_id`, `trip_id_fk`, `timesheet_id_fk`\n FROM `approvals`\n WHERE `user_id_fk` = :user_id_fk AND `locked` IS NOT NULL\";\n\n $result = $this->db->select($query, array( 'user_id_fk' => $obj_id));\n\n\t\tif (count($result) == 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn $result;\n\t\t}\n\n\t}", "title": "" }, { "docid": "3326d191812c62a46e2019b3edb3d594", "score": "0.55668014", "text": "protected function lock()\n {\n $lockFilePath = $this->lockFilePath;\n\n // current time\n if (false === file_exists($lockFilePath)) {\n file_put_contents($lockFilePath, time());\n\n return true;\n } else {\n $timeSec = time();\n // time change file\n $timeFile = @filemtime($lockFilePath) ? @filemtime($lockFilePath) : time();\n\n // Now find out how much time has passed (in seconds)\n if (($timeSec - $timeFile) > $this->timeLock) {\n $this->unLock();\n file_put_contents($lockFilePath, time());\n\n return true;\n }\n\n return false;\n }\n }", "title": "" }, { "docid": "3380dcfe83284ddce142fdc9563496e4", "score": "0.5549283", "text": "public function exists(){\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\t\t\t\r\n\t\t\t$bReturn = false;\r\n\t\t\t\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$sql = \"SELECT COUNT(*) FROM $this->sqlTable WHERE = ?\";\r\n\r\n\t\t\t$result = $ks_db->query ( $sql, $this->id );\r\n\t\t\t\r\n\t\t\t//count how many rows found\r\n\t\t\t$totalRows = $result->fetchColumn();\r\n\t\t\t\r\n\t\t\tif ($totalRows > 0) {\r\n\t\t\t\t$bReturn = true;\r\n\t\t\t}else {\r\n\t\t\t\t$bReturn = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn $bReturn;\r\n\t\t\t\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "cad25d7a37d843e8ebf060527fda62c5", "score": "0.5544473", "text": "public function isSiteLocked(): bool\n {\n return file_exists($this->lockFlagPathAndFilename);\n }", "title": "" }, { "docid": "13fb958498b080d68ee75ab8b0e3022d", "score": "0.5536676", "text": "protected function checkDuplicate() {\n\t\tif (!$this->options['prevent-duplicates']\n\t\t\t|| empty($_SESSION['sq-last-'.$this->options['name']])\n\t\t\t|| $_SESSION['sq-last-'.$this->options['name']] !== md5(implode(',', $this->data))\n\t\t) {\n\t\t\treturn true;\n\t\t}\n\n\t\t$_SESSION['sq-last-'.$this->options['name']] = md5(implode(',', $this->data));\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ac284e1e79640331c45d3ca1fe76e889", "score": "0.55257887", "text": "public static function lockIsUsed(string $token): bool\n {\n $is_locked = Db::fetchRow(sprintf('select is_used_lock(%s) is_locked', Db::wrapChar($token)));\n return (bool)$is_locked['is_locked'];\n }", "title": "" }, { "docid": "3b63a90c3a8a02fa63c02f7b1942cb28", "score": "0.55066955", "text": "protected function _checkTxnId()\n {\n // check that txn_id has not been previously processed\n\n $this->_logger->info('Not doing _checkTxnId(' . $this->_ipnMessage->getTransactionId() . ')');\n\n return false;\n }", "title": "" }, { "docid": "8ef516e09739a8098ba2fbaa9d0bc36f", "score": "0.5493701", "text": "public function checkLock(Model $Model, $id) {\n\t\t$ancestors = $Model->getAncestors($id, false, array(\n\t\t\t$Model->alias . '.lock <> 0',\n\t\t\t$Model->alias . '.lock <> ' . $this->Auth->user('id')));\n\t\t$selfLock = $Model->find('first', array('conditions' => array(\n\t\t\t\t$Model->alias . '.lock <> 0',\n\t\t\t\t$Model->alias . '.lock <> ' . $this->Auth->user('id'),\n\t\t\t\t$Model->escapeField() => $id)));\n\t\t$descendents = $Model->getDecendents($id, false, array(\n\t\t\t$Model->alias . '.lock <> 0',\n\t\t\t$Model->alias . '.lock <> ' . $this->Auth->user('id')));\n\t\tif (!empty($ancestors) || !empty($selfLock) || !empty($descendents)) {\n\t\t\t//either an ancestor is locked, myself is locked or a descendent is locked\n\t\t\t$this->Session->setFlash('Records in this section are being edited by another user. You can only view at this time.');\n\t\t\treturn true;\n\t\t}\n\t\t$this->setLock($Model, $id);\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d98b39672f5117258d0309f8f23a0308", "score": "0.5493423", "text": "public function canSynchronize (): bool {\n return\n $this->isUpdateExpired()\n &&\n $this->isCheckExpired();\n }", "title": "" }, { "docid": "fb87cf7807a308c09c2c539f34136cb8", "score": "0.54906887", "text": "function isExisting()\n {\n return !$this->needInsert;\n }", "title": "" }, { "docid": "696e24d0c7474bf37b84e643b1e0c717", "score": "0.5484259", "text": "private function Lock()\n {\n //Lock file to block file from modifications.\n $file_lock = $this->file . \".lock\";\n\n //Create lock file\n if(file_exists($file_lock))\n {\n return false;\n }\n else\n {\n file_put_contents($file_lock, \"\");\n }\n\n return true;\n }", "title": "" }, { "docid": "a94fb4fcfeb43f0b7ea09d95ab6c9bc3", "score": "0.5473098", "text": "public function lock()\n {\n $entity = $this->prepareEntity()->where('id', $this->id);\n //$entity->getQuery()->lock();\n return $entity->oneOrFail();\n }", "title": "" }, { "docid": "15831afefdd02a75cfc1a8ccb59b4ac3", "score": "0.5462872", "text": "public function isLocked()\r\n {\r\n $now = Carbon::now();\r\n $start = Carbon::createFromFormat('Y-m-d H:i:s', $this->start_at);\r\n $end = Carbon::createFromFormat('Y-m-d H:i:s', $this->end_at);\r\n return ($now->between($start, $end) == false || $this->isClosed == 1);\r\n }", "title": "" }, { "docid": "dee7eae18d577bb550716dfff2a7416a", "score": "0.5443519", "text": "function CheckTransactionID($trans_id) {\n $txn_id = mysql_real_escape_string($trans_id);\n $sql = \"SELECT COUNT(*) FROM payment WHERE transaction_id = '$txn_id'\";\n $r = mysql_query($sql);\n \n if (!$r) {\n error_log(mysql_error());\n exit(0);\n }\n \n $exists = mysql_result($r, 0);\n mysql_free_result($r);\n \n if ($exists) {\n // $errmsg .= \"'transaction_id' has already been processed or already exist: \".$trans_id.\"\\n\";\n return true;\n }\n}", "title": "" }, { "docid": "b790fcdada28645be06bf8e593840cae", "score": "0.54326", "text": "function exist()\n {\n\n $sql = \"SELECT count(1) FROM online WHERE hash = ?\";\n $res = pdo_query($sql, $this->hash);\n return $res[0][0];\n\n }", "title": "" }, { "docid": "d30220d4a1f12a8da97d99ed6f84db93", "score": "0.5422501", "text": "function already_run() {\n $r = xModel::load('commission_fonction', array(\n 'id' => array(11)\n ))->get();\n return !$r;\n }", "title": "" }, { "docid": "514da21ad01a9d13fc966d93134e556a", "score": "0.5416702", "text": "private function checkForConflict(\\stdClass $statement, StoreOptions $opts) {\n\t \n\t //temporary hack to skip past this\n\t return true;\n\t \n $duplicate = $this->where($opts)\n ->where('id', $statement->id)\n ->where('active', true)\n ->first();\n\n if ($duplicate === null) return false;\n\n $this->compareForConflict($statement, json_decode($this->formatModel($duplicate)));\n return true;\n }", "title": "" }, { "docid": "ac8d1935678dc604df33fbdea5a88470", "score": "0.5412232", "text": "public function exists(Event $event)\n {\n return $this->cache->exists($event->mutexName());\n }", "title": "" }, { "docid": "3daa7fbb6500ea09336b41f33763ea2a", "score": "0.5398528", "text": "public function isLocked()\n {\n if ($this->getData('config')->getConfig('lock') == true) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "39ef3c13c19fe3dd1293dbb979547ba3", "score": "0.5396976", "text": "public function isAccountNonLocked()\n {\n return (!$this->suspended);\n }", "title": "" }, { "docid": "75fcee902d239d10f3911ec8281ff31c", "score": "0.5392921", "text": "public function inTransaction() {\n\t\tif(!$this->initialize()) return False;\n\t\treturn $this->PDOinstance->inTransaction();\n\t}", "title": "" }, { "docid": "199feff5a4a46d411ca596b9f130c007", "score": "0.53785604", "text": "public function isLocked(Request $request)\n {\n return $this->cache->hasItem(\n $this->getLockKey($request)\n );\n }", "title": "" }, { "docid": "72a1f51ef83a39f287f548776da63e88", "score": "0.5376312", "text": "function invoice_locked($invObj_or_id) {\n $locked = 0;\n $invObj = any2obj('invoice', $invObj_or_id);\n if($invObj->locked) return 1;\n \n $locked = $invObj->status == INV_STATUS_COMPLETE || ($invObj->total > INV_TOLERANCE && $invObj->balance < INV_TOLERANCE);\n if($locked) update_object('invoice', array('locked' => 1), $invObj->id);\n return $locked;\n}", "title": "" }, { "docid": "6195a903c5f06d6cc88278d6d9e6e428", "score": "0.53664917", "text": "public function checkIsSaved()\n {\n return $this->getID() > 0;\n }", "title": "" }, { "docid": "0a1e226bf2463b45483e14a194042ce8", "score": "0.53628606", "text": "function lime2node_acquire_lock_or_die()\n {\n global $spi_bus_lockfile;\n // ensure only one turnon/turnoff command can be running at any given time:\n if ( !FileLocker::lockFile($spi_bus_lockfile) ) {\n echo \"Can't lock file $spi_bus_lockfile: another operations is ongoing. Aborting.\\n\"; // this must be ECHOED!\n die();\n }\n }", "title": "" }, { "docid": "389a1e7b57af2983200d78f60f3d0de2", "score": "0.5361702", "text": "public function isLocked()\n {\n return $this->getLocked();\n }", "title": "" }, { "docid": "82745d6d824dcd90b13d0414c162627e", "score": "0.5358824", "text": "public function _get_lock($table_name, $record_id)\n\t{\n\t\t$query = DB::select()\n\t\t\t->where('table_name', '=', $table_name)\n\t\t\t->where('table_record', '=', $record_id);\n\t\t$logs = Sprig::factory('lock_sprig')\n\t\t\t->load($query);\n\t\t\n\t\tif($lock->loaded())\n\t\t{\n\t\t\treturn $lock;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "3d9a48bd502968d5887f780f47e20b7c", "score": "0.5358461", "text": "public function single_transaction_was_held() {\n\n\t\tif ( ! isset( $this->transactionResponse->responseCode ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn '4' == strtolower( (string) $this->transactionResponse->responseCode );\n\t}", "title": "" }, { "docid": "e393bd41efdd87061c404d1bd4056463", "score": "0.53368944", "text": "function blockExists($block)\r\n {\r\n return isset($this->_blocks[$block]);\r\n }", "title": "" }, { "docid": "8e0aecccdc0d050eaaf6b453f1995217", "score": "0.5330042", "text": "public static function createLock($name, $timeout = null) {\n\t\tglobal $wpdb;\n\t\t$oldBlogID = $wpdb->set_blog_id(0);\n\t\t\n\t\tif (function_exists('WP_Upgrader::create_lock')) {\n\t\t\t$result = WP_Upgrader::create_lock($name, $timeout);\n\t\t\t$wpdb->set_blog_id($oldBlogID);\n\t\t\treturn $result;\n\t\t}\n\t\t\n\t\tif (!$timeout) {\n\t\t\t$timeout = 3600;\n\t\t}\n\t\t\n\t\t$lock_option = $name . '.lock';\n\t\t$lock_result = $wpdb->query($wpdb->prepare(\"INSERT IGNORE INTO `{$wpdb->options}` (`option_name`, `option_value`, `autoload`) VALUES (%s, %s, 'no') /* LOCK */\", $lock_option, time()));\n\t\t\n\t\tif (!$lock_result) {\n\t\t\t$lock_result = get_option($lock_option);\n\t\t\tif (!$lock_result) {\n\t\t\t\t$wpdb->set_blog_id($oldBlogID);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\tif ($lock_result > (time() - $timeout)) {\n\t\t\t\t$wpdb->set_blog_id($oldBlogID);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\tself::releaseLock($name);\n\t\t\t$wpdb->set_blog_id($oldBlogID);\n\t\t\treturn self::createLock($name, $timeout);\n\t\t}\n\t\t\n\t\tupdate_option($lock_option, time());\n\t\t$wpdb->set_blog_id($oldBlogID);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d6b63056caec3e23ae5cda1acc5a71df", "score": "0.5327376", "text": "public function hasInsertOrUpdate(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "464de91619a54faaee5f0ad52ec404d1", "score": "0.5325065", "text": "private function checkAttempt($ip)\n {\n $attempt = Attempt::where('ip_address', md5($ip))\n ->get()\n ->first();\n\n if (!isset($attempt)) {\n\n $attempt = new Attempt();\n $attempt->ip_address = md5($ip);\n $attempt->count = 1;\n $attempt->save();\n return true;\n\n } else {\n\n if ($attempt->count >= $this->attempts) {\n\n if (!isset($attempt->lock_time)) {\n\n Attempt::where('id', $attempt->id)\n ->update([\n 'lock_time' => date('Y-m-d H:i:s')\n ]);\n\n return false;\n\n } else if (!$this->checkIfOlder($attempt->lock_time, $this->lockTime)) {\n\n return false;\n\n } else {\n\n Attempt::where('id', $attempt->id)\n ->update([\n 'count' => 1,\n 'lock_time' => null\n ]);\n\n return true;\n\n }\n\n } else {\n Attempt::where('id', $attempt->id)\n ->update([\n 'count' => $attempt->count + 1\n ]);\n return true;\n }\n\n }\n\n }", "title": "" }, { "docid": "ce77ff71211f227d31abc474db9490fa", "score": "0.5321299", "text": "public function lock(string $name, int $timeout = -1): bool\n {\n $name = $this->addPrefix($name);\n\n /**\n * Before MySQL 5.7.5, only a single simultaneous lock per connection can be acquired.\n * This limitation can be removed once MySQL minimum requirement has been raised,\n * currently we support MySQL 5.6 way only.\n */\n if ($this->currentLock) {\n throw new AlreadyExistsException(\n new Phrase(\n 'Current connection is already holding lock for $1, only single lock allowed',\n [$this->currentLock]\n )\n );\n }\n\n $result = (bool)$this->resource->getConnection()->query(\n \"SELECT GET_LOCK(?, ?);\",\n [(string)$name, (int)$timeout]\n )->fetchColumn();\n\n if ($result === true) {\n $this->currentLock = $name;\n }\n\n return $result;\n }", "title": "" }, { "docid": "0967f88f5b182396a1d45b5e88e6d12c", "score": "0.53174645", "text": "public function isAlreadyAvaliable() {\n if ($this->getAvaliabletimestamp() < time()) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "83ec76925cc9c720cc494a206c4043ee", "score": "0.53113383", "text": "public function exists()\n {\n return $this->backup()->exists();\n }", "title": "" }, { "docid": "1f3e8716ce0b144184be7b3d37b2e1e8", "score": "0.5283914", "text": "public function doesExistInDatabase(): bool;", "title": "" }, { "docid": "511e44c2c25e3679e7f6f9f0e1acbd7b", "score": "0.5279071", "text": "public function supportsLocks() {\n\n return $this->subject->supportsLocks();\n\n }", "title": "" }, { "docid": "198e1e48b3bb478d24bd0bdcd76db254", "score": "0.5276145", "text": "public function checkin()\r\n {\r\n if ($this->_id) {\r\n $item = $this->getTable();\r\n if (! $item->checkin($this->_id)) {\r\n $this->setError($this->_db->getErrorMsg());\r\n return false;\r\n }\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "410995d21804ddbff0e07da03f51f7fd", "score": "0.5275368", "text": "public function check_exists() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "381cbf19003cf4a11ecd86f68bf83040", "score": "0.5273321", "text": "function is_recording()\n{\n $lockfile = recording_lockfile();\n return file_exists($lockfile);\n}", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "8ae7989639409790cb11dbd3284a3a44", "score": "0.0", "text": "public function destroy(RestaurantData $restaurantData)\n {\n //\n }", "title": "" } ]
[ { "docid": "37dd170c1eaea50870a9bd20839ad070", "score": "0.7137241", "text": "public function remove(ResourceInterface $resource): void\n {\n }", "title": "" }, { "docid": "6f5cb91b0423a11c78f100fc165554df", "score": "0.6959094", "text": "public function delete(ResourceInterface $resource);", "title": "" }, { "docid": "4899cb69f473bc3ba1f4a04f43330487", "score": "0.67682105", "text": "public function delete($resource, $id);", "title": "" }, { "docid": "55490a425cec5f2c2efea8b737497612", "score": "0.6737496", "text": "public function deleteGameResource($resource){\n if($this->gameResourceExists($resource)){\n unlink($this->getResourceDataPath() . $resource . \".dat\");\n }\n }", "title": "" }, { "docid": "ef862fedfa2a9a53bdc0c931abd5b9ef", "score": "0.6707853", "text": "public function destroy()\n {\n $this->resource->delete();\n }", "title": "" }, { "docid": "033a3fd474fdaf2c9dbcf9853f451cd2", "score": "0.664397", "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": "4f49f964d082c69a3fe92671d08d3bc7", "score": "0.66371554", "text": "public function delete($cacheResource, $ignoreLifetime = false);", "title": "" }, { "docid": "47236fb1482f779e9251fd6998158877", "score": "0.65373594", "text": "public function deleteResource(PersistentResource $resource, $unpublishResource = true)\n {\n $this->initialize();\n\n $collectionName = $resource->getCollectionName();\n\n $result = $this->resourceRepository->countBySha1AndCollectionName($resource->getSha1(), $collectionName);\n if ($result > 1) {\n $this->logger->debug(sprintf('Not removing storage data of resource %s (%s) because it is still in use by %s other PersistentResource object(s).', $resource->getFilename(), $resource->getSha1(), $result - 1));\n } else {\n if (!isset($this->collections[$collectionName])) {\n $this->logger->warning(sprintf('Could not remove storage data of resource %s (%s) because it refers to the unknown collection \"%s\".', $resource->getFilename(), $resource->getSha1(), $collectionName), LogEnvironment::fromMethodName(__METHOD__));\n\n return false;\n }\n $storage = $this->collections[$collectionName]->getStorage();\n if (!$storage instanceof WritableStorageInterface) {\n $this->logger->warning(sprintf('Could not remove storage data of resource %s (%s) because it its collection \"%s\" is read-only.', $resource->getFilename(), $resource->getSha1(), $collectionName), LogEnvironment::fromMethodName(__METHOD__));\n\n return false;\n }\n try {\n $storage->deleteResource($resource);\n } catch (\\Exception $exception) {\n $this->logger->warning(sprintf('Could not remove storage data of resource %s (%s): %s.', $resource->getFilename(), $resource->getSha1(), $exception->getMessage()), LogEnvironment::fromMethodName(__METHOD__));\n\n return false;\n }\n if ($unpublishResource) {\n /** @var TargetInterface $target */\n $target = $this->collections[$collectionName]->getTarget();\n $target->unpublishResource($resource);\n $this->logger->debug(sprintf('Removed storage data and unpublished resource %s (%s) because it not used by any other PersistentResource object.', $resource->getFilename(), $resource->getSha1()));\n } else {\n $this->logger->debug(sprintf('Removed storage data of resource %s (%s) because it not used by any other PersistentResource object.', $resource->getFilename(), $resource->getSha1()));\n }\n }\n\n $resource->setDeleted();\n $this->resourceRepository->remove($resource);\n\n return true;\n }", "title": "" }, { "docid": "73af02f86d4e877d5ec7756885285cd4", "score": "0.6409313", "text": "function delete($resourceName);", "title": "" }, { "docid": "fd5668b2d59626254ea2b308c3b7b195", "score": "0.63944584", "text": "public function removeResource(Row_AclResource $resource)\r\n\t{\r\n\t\t$row = $this->_getAclRow($resource);\r\n\t\t$row->allow = 0;\r\n\t\t$row->save();\r\n\t}", "title": "" }, { "docid": "66cab78c708362190959631c44dd73a1", "score": "0.6300312", "text": "public function remove( $resource ) {\n \n $res = $this->get( $resource );\n \n if ($res == false) {\n return $this;\n }\n \n $resourceId = $res->getResourceId();\n \n $resourcesRemoved = array( $resourceId );\n if ( null !== ( $resourceParent = $this->_resources[$resourceId]['parent'] ) ) {\n unset( $this->_resources[$resourceParent->getResourceId()]['children'][$resourceId] );\n }\n foreach ( $this->_resources[$resourceId]['children'] as $childId => $child ) {\n $this->remove( $childId );\n $resourcesRemoved[] = $childId;\n }\n // удаляет и правила для рессурса\n foreach ( $resourcesRemoved as $resourceIdRemoved ) {\n foreach ( $this->_rules['byResourceId'] as $resourceIdCurrent => $rules ) {\n if ( $resourceIdRemoved === $resourceIdCurrent ) {\n unset( $this->_rules['byResourceId'][$resourceIdCurrent] );\n }\n }\n }\n\n unset( $this->_resources[$resourceId] );\n\n\n return $this;\n }", "title": "" }, { "docid": "2a10b35926876411b2e80108cfe22fca", "score": "0.6298291", "text": "public function remove() {\n // determine the name of the file\n $filename = $this->engine->cache_file_path($this->key(), $this->options);\n @unlink($filename);\n }", "title": "" }, { "docid": "89ce35850dffc0e6605778465129a8fa", "score": "0.62484", "text": "public function destroy(Resource $resource)\n {\n if (count($resource->photos)) { // delete photos from filesystem and storage.\n foreach ($resource->photos as $key => $photo) {\n $resource->deletePhoto($photo);\n }\n }\n $resource->delete();\n return redirect('/home')->with(['status' => 'Deivce successfully deleted']);\n }", "title": "" }, { "docid": "2367dd4337c36bfe160c73cbfe965a9c", "score": "0.6222181", "text": "public function testRemoveResource() {\n\n\t\t$file = $this->tempDir . DIRECTORY_SEPARATOR . 'test.txt';\n\t\tfile_put_contents($file, 'test');\n\n\t\t$this->assertTrue(file_exists($file));\n\n\t\t$container = new FilesystemResourceContainer($this->tempDir, FileResource::TYPE);\n\t\t$container->remove('test.txt');\n\n\t\t$this->assertFalse(file_exists($file));\n\t}", "title": "" }, { "docid": "07b2c5af4c184e58bf2887516d95f2ee", "score": "0.6152366", "text": "public function clearResource(){\n\t\t\tif ($this->resource !== null){\n\t\t\t\timagedestroy($this->resource);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "7e83a85a6ecaba18a97b363f757bfe88", "score": "0.61334383", "text": "public function remove() {\n\t\tunlink($this->getSrcImagePath());\n\t}", "title": "" }, { "docid": "0fd71148a5c7f18c479bf79390410ee6", "score": "0.6105545", "text": "public function delete(): void\n {\n if ($this->has($this->file))\n unlink($this->file);\n }", "title": "" }, { "docid": "eaf52922cf2f9f3851b5dee384bd6ceb", "score": "0.60544735", "text": "public static function remove($storageId) {\n\t\t$storageCache = new Storage($storageId);\n\t\t$numericId = $storageCache->getNumericId();\n\n\t\tif (strlen($storageId) > 64) {\n\t\t\t$storageId = md5($storageId);\n\t\t}\n\t\t$sql = 'DELETE FROM `*PREFIX*storages` WHERE `id` = ?';\n\t\t\\OC_DB::executeAudited($sql, array($storageId));\n\n\t\t$sql = 'DELETE FROM `*PREFIX*filecache` WHERE `storage` = ?';\n\t\t\\OC_DB::executeAudited($sql, array($numericId));\n\t}", "title": "" }, { "docid": "5d67ccf5357bc568ae73bc2554b4fcb3", "score": "0.60279834", "text": "function destroying_resource(Model $resource, Authenticatable $user = null)\n { \n return crud_event(\\Core\\Crud\\Events\\DestroyingResource::class, $resource, $user);\n }", "title": "" }, { "docid": "98d22295493f0020f84c312075af1ad7", "score": "0.60123336", "text": "function deleting_resource(Model $resource, Authenticatable $user = null)\n { \n return crud_event(\\Core\\Crud\\Events\\DeletingResource::class, $resource, $user);\n }", "title": "" }, { "docid": "a7e206f667720084df5493157a69cfb1", "score": "0.59848213", "text": "static private function _delResCache($resource)\n {\n $hash = self::getHashByResource($resource);\n foreach (self::$res as &$items) {\n if (!empty($items[$hash])) {\n unset($items[$hash]);\n }\n } \n }", "title": "" }, { "docid": "896e95e8d1abd4f6c5eecd1940391bef", "score": "0.5978198", "text": "public function unlinkStorage(): self\n {\n unlink($this->path);\n\n return $this;\n }", "title": "" }, { "docid": "46e2a3c32c6b5a596ae0cf2bf703c970", "score": "0.5958219", "text": "public function destroy($id)\n {\n $get=Document::where('id',$id)->first();\n if($get->photo!=null&&file_exists(\"/storage/$get->photo\")){\n unlink('storage/'.$get->photo);\n }\n $get->delete();\n return redirect()->route('listDocument');\n }", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "970f51bb911499288a1748bfe0157efa", "score": "0.5912158", "text": "public function delete($id) {\n $this->connectStorage($id);\n $this->storage->delete();\n }", "title": "" }, { "docid": "f1553c7757cc3676299373a5d3a835f9", "score": "0.5907517", "text": "public function destroy($id)\n {\n $uniforme = Uniforme::find();\n Storage::delete('file.jpg');\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": "47945b59946db62fc806604498e46323", "score": "0.58641815", "text": "public function remove(FileInterface $file): FileInterface;", "title": "" }, { "docid": "d3158d405d4b489191764d14126b6336", "score": "0.5857253", "text": "public function destroy($id)\n {\n $trigger = Resource::where('id', $id)->first();\n $file = $trigger->file;\n if (!empty($file)) {\n $upFile = new UploadFile();\n $upFile->deleteCurrentFile($file, 'resource');\n }\n $trigger->delete();\n return back();\n }", "title": "" }, { "docid": "ce513fb382cd88ef0817a244ce395271", "score": "0.5824645", "text": "public function destroy($id)\n {\n $image= Image::find($id); \n $name = $image->name;\n $file = '/images/'.$name;\n $thumbnail = '/uploads/thumbnail/'.$name;\n Storage::delete([$file, $thumbnail]); // delete from folder $image->delete(); // delete from table return redirect()->back(); \n }", "title": "" }, { "docid": "b6078f9d34f26c367a9797120d6006ab", "score": "0.5818996", "text": "public function resourceHasBeenDeleted();", "title": "" }, { "docid": "c8394dead7326b95b49dd4f6c575a34a", "score": "0.58155316", "text": "public function destroy($resource, $id)\n {\n $model = $this->model->find($id);\n $model->delete();\n Cache::flush();\n $fields = $this->getModelAttributes();\n return redirect()->route('admin.resource', [\n 'resource' => $this->modelName,\n ]);\n }", "title": "" }, { "docid": "633ae266a2f875f0726e79f6358f15aa", "score": "0.58142436", "text": "public function remove(string $key) {\n $this->storage->remove($key);\n }", "title": "" }, { "docid": "915ec80e489f9eed2bde0417b2f10a19", "score": "0.580295", "text": "public function testResourceRemoveOne()\n {\n $resourceArea = new Zend_Acl_Resource('area');\n $this->_acl->addResource($resourceArea)\n ->remove($resourceArea);\n $this->assertFalse($this->_acl->has($resourceArea));\n }", "title": "" }, { "docid": "f35aaf17008b130a60b3962b50777f92", "score": "0.5800284", "text": "public function unlink();", "title": "" }, { "docid": "b4ee6dc4b9942eba341457d6bf4d5638", "score": "0.5796796", "text": "public function removeFromStore()\n {\n if ($this->getHash() && $this->getType()) {\n $this->getFileStore()->delete($this->getHash(), $this->getType());\n } else {\n throw new SwompException(\"Cannot remove from Store - Hash and Type is required\");\n }\n }", "title": "" }, { "docid": "b48e565472dafa6e553cf8aee6f42a6a", "score": "0.578793", "text": "public function destroy($id)\n {\n $product = Pruduct::where('id', $id)->first();\n unlink('storage/' . $product->image);\n\n $product->delete();\n Session::flash('messege', 'Data berhasil di hapus.');\n return redirect()->back();\n }", "title": "" }, { "docid": "532f8d58b20e101c1f5035990ba18e7e", "score": "0.57871205", "text": "public function cleanStorage();", "title": "" }, { "docid": "5760f6df7c6ebd5440da74e84ef8e734", "score": "0.57779175", "text": "public function remove($identifier);", "title": "" }, { "docid": "5760f6df7c6ebd5440da74e84ef8e734", "score": "0.57779175", "text": "public function remove($identifier);", "title": "" }, { "docid": "0009889a5268b3415309c6899e972909", "score": "0.57663226", "text": "public function delete()\r\n {\r\n $path = $this->path;\r\n parent::delete();\r\n\r\n // Delete file if exists\r\n if($this->id && file_exists($path))\r\n {\r\n unlink($path);\r\n }\r\n\r\n }", "title": "" }, { "docid": "62c6b6bfe5aeaa08992c1c1ff2c5e9ec", "score": "0.5732295", "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->image))\n Storage::disk('public')->delete($obj->image);\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": "b6294af388de3ae8b010bbdd0e147a65", "score": "0.57102996", "text": "function destroyed_resource(Model $resource, Authenticatable $user = null)\n { \n return crud_event(\\Core\\Crud\\Events\\DestroyedResource::class, $resource, $user);\n }", "title": "" }, { "docid": "a1d82443b72d201e5ede999d05bf59f5", "score": "0.57096094", "text": "public function unsetStorageId()\r\n\t{\r\n\t\tunset($this->_storage_id);\r\n\t}", "title": "" }, { "docid": "9591ec5177ac179477cbd3c3ccaa275a", "score": "0.5706215", "text": "public function destroy($id)\n {\n $file = FileTask::findOrFail($id);\n Storage::delete($file->path); //delete from disk\n $file->delete(); //delete from db\n flash('File was removed!');\n return back();\n }", "title": "" }, { "docid": "cf195d4a522e74edc7019e572a06923c", "score": "0.5694188", "text": "public function destroy($id)\n {\n $storage = Storage::findOrFail($id);\n $storage->delete();\n return response()->json(['status' => 'success']);\n }", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "fe53bca8d325675dd4f80c6d519ce470", "score": "0.5679682", "text": "public function destroy($id)\n {\n \n $delete = Product::find($id);\n $image_path ='public/image/'. $delete->photo;\n unlink( $image_path);\n $delete->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "8bbd28cf62ed375a2f7518342e1d75ae", "score": "0.56680655", "text": "public function removeFile();", "title": "" }, { "docid": "a81365633fd5b106741f1068f03a568a", "score": "0.5654999", "text": "public function remove(object $entity): void;", "title": "" }, { "docid": "c1ecca5c35e22313e1c38b1ddca48883", "score": "0.56521606", "text": "public function destroy(FILE $file)\n {\n \n\n $url = str_replace('storage', 'public', $file->url);\n Storage::delete($url);\n\n\n $file->delete();\n\n return redirect()->route('admin.files.index')->with('eliminar', 'ok');\n }", "title": "" }, { "docid": "ac44db6cd2e11be0502437646b98bec0", "score": "0.56515306", "text": "public function untagResource($payload, $headers=[]) {\n $method = 'DELETE';\n $path = sprintf('/%s/tag', $this->apiVersion);\n $headers = $this->buildCommonHeaders($method, $path, $headers);\n $content = json_encode($payload);\n $headers['content-length'] = strlen($content);\n return $this->doRequest($method, $path, $headers, $data = $content);\n }", "title": "" }, { "docid": "3c36d7803d6dcac2a74d7850bf05b529", "score": "0.56461364", "text": "function deleteResource($model)\n {\n }", "title": "" }, { "docid": "198fe5623de140ddb980a64f1228ee9c", "score": "0.5643258", "text": "public function shutdownObject()\n {\n /** @var PersistentResource $resource */\n foreach ($this->resourceRepository->getAddedResources() as $resource) {\n if ($this->persistenceManager->isNewObject($resource)) {\n $this->deleteResource($resource, false);\n }\n }\n }", "title": "" }, { "docid": "6a133bf2a539adcebeeef545cb23bdf7", "score": "0.56398225", "text": "public function removeEntity($entity);", "title": "" }, { "docid": "ddb7a7e1bd529da0193a6825c4588bde", "score": "0.5632143", "text": "function deleted_resource(Model $resource, Authenticatable $user = null)\n { \n return crud_event(\\Core\\Crud\\Events\\DeletedResource::class, $resource, $user);\n }", "title": "" }, { "docid": "cfb60ffcc989888bf5132bd8f18d28f3", "score": "0.563189", "text": "public function destroy(string $storageKey): bool;", "title": "" }, { "docid": "227d7db0fe495cc1b0734cf71cbc6374", "score": "0.5627202", "text": "public function destroy($id)\n {\n try {\n $resource = Resource::findOrFail($id);\n auth()->user()->resources()->detach($id);\n } catch (\\Throwable $e) {\n throw abort(404);\n }\n\n return redirect()->back()\n ->with([\n 'status' => 'success-destroy-saved',\n 'message' => $resource->getMedia()[0]->file_name . ' was unsaved successfully!',\n 'resource_id' => $id\n ]);\n }", "title": "" }, { "docid": "b2deedc135e4e9a6d691a34bc62901e4", "score": "0.5602831", "text": "public function delete(): void\n {\n if ($this->exists()) {\n File::delete($this->path());\n }\n }", "title": "" }, { "docid": "29d3e4879d0ed5074f12cb963276b7cc", "score": "0.56021434", "text": "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "title": "" }, { "docid": "2551dae05d41b0f050dbd034df4e2093", "score": "0.5595374", "text": "public function remove()\n {\n $res = unlink($this->_path);\n return $res;\n }", "title": "" }, { "docid": "2dfd4b7a5b42f50b0f3186c2425fc4a3", "score": "0.55950236", "text": "public abstract function deleteAsset(Asset $asset);", "title": "" }, { "docid": "4a8532446eb5a624448dac28b0ab0abe", "score": "0.55868185", "text": "public function remove_to_cart($resource_id){\n\n $cart = Session::get('cart');\n\n $index = array_search($resource_id, $cart);\n if($index >= 0) {\n array_splice($cart, $index, 1);\n\n }\n\n Session::put('cart',$cart);\n\n return redirect('/cart');\n }", "title": "" }, { "docid": "4a8532446eb5a624448dac28b0ab0abe", "score": "0.55868185", "text": "public function remove_to_cart($resource_id){\n\n $cart = Session::get('cart');\n\n $index = array_search($resource_id, $cart);\n if($index >= 0) {\n array_splice($cart, $index, 1);\n\n }\n\n Session::put('cart',$cart);\n\n return redirect('/cart');\n }", "title": "" }, { "docid": "eb676b82c99dc848aabda71793e9f00a", "score": "0.55856013", "text": "public function destroy()\n {\n $filepath = $this->getFilepath();\n @unlink($filepath);\n }", "title": "" }, { "docid": "0f5a2d5d4ccb6690f2c9b7c1ad81379c", "score": "0.55815697", "text": "public function delete() {\n\t\treturn unlink($this->path);\n\t}", "title": "" }, { "docid": "abcaf8d103f03089c84f7aa510afb02a", "score": "0.5578945", "text": "public function delete()\n {\n if (null !== $this->repository) {\n $this->repository->close();\n }\n\n $this->file->delete($this->filePath);\n $this->filePath = '';\n }", "title": "" }, { "docid": "6955ff701e4315c5cfa7e2767eafdbcf", "score": "0.55788815", "text": "public function clear($in_storage_too = true);", "title": "" }, { "docid": "f576b22c84d78e83b91d5036361a095c", "score": "0.55780953", "text": "public function delete($filename = null);", "title": "" }, { "docid": "0d6640f36c0ca88fbe56977a74dad5f1", "score": "0.55737436", "text": "public function remove(MediaInterface $media);", "title": "" }, { "docid": "930240c93dd67bc31042064adb044402", "score": "0.55683106", "text": "public function destroy($id) {\n $data = Product::findOrFail($id);\n @unlink(storage_path('app/public/product/' . $data->product_image));\n $data->delete();\n return redirect('product')->with('success', 'Product is successfully deleted');\n }", "title": "" }, { "docid": "f7e801c4eebb9a1d03e7feec4ecd5f21", "score": "0.5567041", "text": "public function destroy($id)\n {\n $realestate = Realestate::findOrfail($id);\n if( count($realestate->files) > 0 )\n {\n if(Storage::disk('public')->exists($realestate->files[0]->path))\n Storage::disk('public')->delete($realestate->files[0]->path);\n\n $realestate->files()->delete();\n }\n\n $realestate->delete();\n\n\n return redirect()->route('realestate_index');\n\n }", "title": "" }, { "docid": "f392b1ed7db16f604f843adb672ef950", "score": "0.55653834", "text": "public function destroy($id)\n {\n $slide = Slide::find($id);\n if(Storage::delete('public/slides/'.$slide->slides)){\n $slide->delete();\n return redirect('Viewall/All_slide')->with('error','Slide deleted');\n }\n}", "title": "" }, { "docid": "0a10bad03f5df8b55f39176b0c613baa", "score": "0.55647546", "text": "public function remove(string $path)\n {\n $this->set($path, null);\n }", "title": "" }, { "docid": "adc4e9de22fd8f0d6314e35dcee0b8e0", "score": "0.5563022", "text": "public function remove(string $object): void;", "title": "" }, { "docid": "37d5927bb51b78bdcea795a632988120", "score": "0.55617017", "text": "public function removeTransactionResource($hash)\n\t{\n\t\t$path = $this->getTransactionResourcePath($hash);\n\t\treturn $this->deleteTransactionResource($path);\n\t}", "title": "" }, { "docid": "61d679086bf634ff55d0bc8a41a70710", "score": "0.5561249", "text": "public function destroy($id)\n {\n $user =DB::table('users')->where('id',$id)->first();\n $photo = $user->photo;\n \n unlink($photo);\n DB::table('users')->where('id',$id)->delete();\n \n }", "title": "" }, { "docid": "40424bbe7e79c788acc8e40fa96c2e17", "score": "0.5556214", "text": "public function destroy($id)\n {\n \n $product = Product::findOrFail($id);\n\n if($product->delete()) {\n\n return new ProductResource($product);\n }\n }", "title": "" }, { "docid": "b877c987e8cb3298dc4c9f11662792f9", "score": "0.55559146", "text": "public function destroy($id)\n {\n $path = File::findOrFail($id)->path; \n //esto me va a borrar del storage el archivo que le diga. De todas formas el find or fail me tiene que traer la dirreccion\n Storage::delete( $path ); \n\t\tFile::findOrFail($id)->delete(); \n\t\treturn redirect('/home');\n }", "title": "" }, { "docid": "09d16b97894d6829ff484d20cf378f8f", "score": "0.555526", "text": "public function destroy(Request $request, $id){\n $file = File::whereCodeName($id)->firstOrFail();\n //unlink elimina el archivo de la aplicacion\n unlink(public_path('storage/'. Auth::id() .'/' . $file->code_name));\n\n //eliminar de base de datos\n $file->delete();\n\n //avisar que se ha borrado archivo al usuario\n Alert::info('¡Ateción!', 'Se ha eliminado el archivo');\n return back();\n }", "title": "" }, { "docid": "19530e0d90a5511cefec030646832ac7", "score": "0.55509293", "text": "function deleteResource($id)\n\t{\n\t if(empty($id)) \n throw new App_Db_Exception_Table('Resource ID is not specified');\n\t\t\n\t\t$this->db_delete($this->_table, array('id'=>$id));\n\t}", "title": "" }, { "docid": "3fa04699fe14eb03c48cfde3470db201", "score": "0.55502915", "text": "public function destroy($id)\n {\n $file = Upload::findOrFail($id);\n if(File::exists(public_path($file->filename))){\n unlink(public_path($file->filename));\n File::delete(public_path($file->filename));\n }\n $file->delete();\n return redirect()->back()->with('success','Deleted Successfully');\n //\n }", "title": "" }, { "docid": "94b6f2ef01c97218c0ea77ca980a8947", "score": "0.55452746", "text": "public function wipeStorage(): void\n {\n $this->storageAdapter->wipeStorage();\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": "51ecf73cbf0ed20291ef32754f32287e", "score": "0.55377126", "text": "public function destroy($id)\n {\n $site_image = DB::table('site_images')->where('id',$id)->first();\n $image=$site_image->image_name;\n unlink($image);\n DB::table('site_images')->where('id',$id)->delete();\n\n redirect()->back()->with('success', 'site image removed successfully');\n }", "title": "" }, { "docid": "30d0b23b0b35054a9dcfaf9fdc529aa5", "score": "0.5532588", "text": "public function destroy($id)\n {\n\n $p = Product::where('id' , $id)->first();\n if(File::exists($p->image)){\n File::delete($p->image);\n }\n $p->delete();\n return redirect()->back();\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": "" } ]
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "27b082d34c18b3b8d6c45a04bd7b1e2b", "score": "0.0", "text": "public function edit($id)\n {\n // $post = Posts::find($id);\n }", "title": "" } ]
[ { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.7692893", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.7692893", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "8f5529ba137277265d5572c380aac566", "score": "0.76910913", "text": "public function editAction()\n {\n $this->view->title .= ' - Edit Resource';\n\n $id = $this->_getParam('id');\n if (empty($id)) {\n throw new RuntimeException('Missing parameter id.');\n }\n\n $resourceResource = $this->_helper->modelResource('Resources');\n $resource = $resourceResource->find($id);\n if (!count($resource)) {\n throw new RuntimeException('Cannot found resource ' . $id);\n }\n $resource = $resource->getIterator()->current();\n\n $form = $this->_helper->form();\n $request = $this->getRequest();\n if ($request->isPost() && $form->isValid($request->getPost())) {\n $data = $form->getValues();\n unset($data['id']); //unset data for zf 1.6\n $resource->populate($data);\n if (!$resource->save()) {\n throw new RuntimeException('Save Resource failure!');\n }\n\n $this->_helper->flashMessenger(\"Save Resource \\\"{$resource->name}\\\" successful!\");\n $this->view->messages = $this->_helper->flashMessenger->getCurrentMessages();\n $this->_helper->flashMessenger->clearCurrentMessages();\n }\n $form->setDefaults($resource->toArray());\n $form->setDefault('id', $resource->id);\n $this->view->form = $form;\n }", "title": "" }, { "docid": "5069ab4d37ad8824f8739ff562d0d370", "score": "0.74427706", "text": "function editForm() {\n render(\"guest/update\");\n }", "title": "" }, { "docid": "6f88bb286afae4ce47ad9810da77dffb", "score": "0.7220439", "text": "public function editAction() {\r\n\t\t$id = $this->getInput('id');\r\n\t\t$info = Super_Service_Resource::get(intval($id));\r\n\t\t\r\n\t\t$this->assign('info', $info);\r\n\t}", "title": "" }, { "docid": "84fa42f4318791adb736d823ce255f40", "score": "0.7115206", "text": "public function edit() {\n \n $partner = $this->partner_model->get_by_id($this->input->get('id'));\n if (!is_null($partner)) {\n echo $this->load->view('partner/edit_form', array(\n 'id' =>$partner->id,\n 'name' => $partner->name\n ), TRUE);\n }\n else {\n echo show_404('The resource you requested was not found');\n } \n }", "title": "" }, { "docid": "7f75b87329616886dbf4cacf219053f8", "score": "0.7070694", "text": "public function editAction()\n {\n $this->formClass = EditForm::class;\n\n return parent::editAction();\n }", "title": "" }, { "docid": "da32ec30ea6b151bdb0d8c95b7fbef49", "score": "0.7062849", "text": "public function edit($id)\n\t{\n\t\t$resource = Resource::find($id);\n\n\t\tif (Auth::id() !== ($resource->user_id))\n\t\t{\n\t\t\treturn Redirect::back()->withFlashMessage('You cannot edit this resource');\n\t\t}\n\n\t\treturn View::make('resources.edit')->with('resource', $resource);\n\t}", "title": "" }, { "docid": "5a02684925f991ee39abcb153d80d058", "score": "0.7008457", "text": "public function edit()\r\n {\r\n return view('hr::edit');\r\n }", "title": "" }, { "docid": "06b34b79c3a9b611ad6ef22ee71c20e7", "score": "0.6987668", "text": "public function edit()\n {\n return view('redistask::edit');\n }", "title": "" }, { "docid": "53fbc8894a41287014c5edbb650194bf", "score": "0.6966032", "text": "public function editAction() {\r\n\t\t$id = $this->getInput('id');\r\n\t\t$info = Gou_Service_Resource::get(intval($id));\r\n\t\t\r\n\t\tlist(,$resource_imgs) = Gou_Service_ResourceImg::getList(0, 10, array('resource_id'=>intval($id)), array('id'=>'ASC'));\r\n\t\t$this->assign('resource_imgs', $resource_imgs);\r\n\t\t\r\n\t\t$this->assign('info', $info);\r\n\t}", "title": "" }, { "docid": "7e492dbc3c5834bd8dcf322b6e0bebf4", "score": "0.6945628", "text": "public function editAction() {\n $patientID = $this->getParam('id');\n\n $form = new Application_Form_Patient();\n $form->getElement('submit')->setLabel(\"Daten ändern\");\n\n $request = $this->getRequest();\n\n // Wenn das Formular abgesedet wurde, neue Daten Speichern\n // Wenn kein post Request vorliegt => Erster Seitenaufruf, Patient wird anhand der uebergebenen ID ins Formular eingetragen.\n\n if ($this->getRequest()->isPost()) {\n if ($form->isValid($request->getPost())) {\n $patient = new Application_Model_Patient_Patient($form->getValues());\n $mapper = new Application_Model_Patient_PatientMapper();\n $mapper->save($patient);\n return $this->_helper->redirector('list');\n }\n } else {\n $patient = new Application_Model_Patient_Patient();\n $mapper = new Application_Model_Patient_PatientMapper();\n $mapper->find($patientID, $patient);\n\n\n $form->populate($patient->getKeyValueArray());\n }\n\n $this->view->form = $form;\n }", "title": "" }, { "docid": "a5aafcf2a2bbeb05f135b2394c4525d2", "score": "0.6944655", "text": "public function action_edit() {\n\t\tif (empty($this->id)) {\n\t\t\tthrow new Kohana_Exception('No ID received for view');\n\t\t}\n\n\t\t$this->load_model('edit');\n\n\t\tif ( ! empty($_POST)) {\n\t\t\t$this->save_model();\n\t\t}\n\n\t\t$this->template->page_title = 'Edit - ' . $this->page_title_append;\n\t\t$view_title = $this->get_page_title_message('editing_item');\n\t\t$view_content = $this->model->get_form(array(\n\t\t\t'mode' => 'edit',\n\t\t));\n\t\t$this->add_default_view($view_title, $view_content);\n\t}", "title": "" }, { "docid": "5528e9d735a1d9a4a8c37629a76211ee", "score": "0.6944128", "text": "public function show_editform() {\n $this->item_form->display();\n }", "title": "" }, { "docid": "5984290a0d4758b0ead36edab74a7fcb", "score": "0.69379073", "text": "public function edit($id)\n {\n $title = $this->model->getTitle();\n $form_title = $this->name;\n $forms = $this->model->getFormList();\n $data = $this->model->find($id);\n return view('admin.layouts.edit')->with(compact('data','forms', 'title', 'form_title'));\n }", "title": "" }, { "docid": "439b2cee9a4232572f243ce40fe7ff37", "score": "0.6936526", "text": "public function edit($id)\n\t{\n\t\t$resource = Resource::find($id);\n\n\t\t// queries the schools db table, orders by type and lists type and id\n\t \t$school_options = DB::table('schools')->orderBy('type', 'asc')->lists('type','type');\n\t \t$year_options = DB::table('years')->lists('year','year');\n\t \t$unit_options = DB::table('units')->lists('unit','unit');\n\t \t$resourceTypes_options = DB::table('resource_types')->orderBy('type', 'asc')->lists('type','type');\n\n\t \t$options = [\n\n\t \t\t'school_options' => $school_options, \n\t \t\t'year_options' => $year_options, \n\t \t\t'unit_options' => $unit_options,\n\t \t\t'resourceType_options' => $resourceTypes_options\n\t \t];\n\n\t return View::make('resources.edit', array('options' => $options, 'resource' => $resource));\n\n\n\n\t}", "title": "" }, { "docid": "44db8e15fc1352a7c519823621a72cc9", "score": "0.69331795", "text": "public function edit()\n {\n return view('coreplanification::edit');\n }", "title": "" }, { "docid": "6f12de6367ed6b5e724959286c687d98", "score": "0.6924614", "text": "public function edit($id)\n\t{\n\t\t$model = SysDetailFormManager::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysDetailFormManagerForm', [\n \t'method' => 'POST',\n \t'url' => 'detailformmanager/update/'.$id,\n \t'model' => $model,\n \t]);\n\n\t\treturn View::make('dynaflow::detailformmanager.form', compact('form'));\n\t}", "title": "" }, { "docid": "32d0551d54bd22e3701bf40a8c1cbd2e", "score": "0.6904719", "text": "public function edit()\n {\n return view('partnermanagement::edit');\n }", "title": "" }, { "docid": "7b1b04ea22eb307dae4782d1893d684f", "score": "0.68787277", "text": "public function edit()\n {\n return view('app::edit');\n }", "title": "" }, { "docid": "be7762755fcfeef213c7106eb19a722a", "score": "0.68687415", "text": "public function edit()\n {\n return view('frontend::edit');\n }", "title": "" }, { "docid": "bd55c6cca624fddd49faf3e7f8d44ebc", "score": "0.6867638", "text": "public function editAction()\n {\n// \treturn array('form'=>$form);\n }", "title": "" }, { "docid": "311e3f6fa3d20c187430d7b70defb091", "score": "0.68635666", "text": "public function editAction()\n {\n $this->loadLayout();\n $this->renderLayout();\n }", "title": "" }, { "docid": "a093d663f095c2eff827fd56ba3f1c5c", "score": "0.6835696", "text": "public function edit()\n {\n return view('taskmanagement::edit');\n }", "title": "" }, { "docid": "96e7a1a8798dd32cbc9d0fff02092958", "score": "0.683385", "text": "public function edit($id)\n\t{\n\t\t$this->resources = array('driver' => $this->resource\n \t\t\t\t\t\t);\n\t\treturn $this->respondTo(\n\t\t\tarray('html'=> function()\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t $this->layout->nest('content', $this->view, $this->resources);\n\t\t\t\t \t\t\t},\n\t\t\t\t 'js' => function()\n\t\t\t\t \t\t {\n\t\t\t\t \t\t \t $form = View::make($this->form, $this->resources)->render();\n\t\t\t\t \t\t \t return View::make('admin.shared.modal', array('body' => $form))->render();\n\t\t\t\t \t\t }\n\t\t\t\t )\n\t\t\t);\n\t}", "title": "" }, { "docid": "a66e6ee3bd0d4fa614c8f657ecc1c30e", "score": "0.68047357", "text": "public function edit(Form $form)\n {\n //\n }", "title": "" }, { "docid": "9c40deb595ac4a285fa76f490ad8b576", "score": "0.67989755", "text": "public function fieldEditAction() {\n\n parent::fieldEditAction();\n\n //GENERATE FORM\n $form = $this->view->form;\n\n if ($form) {\n $form->setTitle('Edit Form Question');\n $form->removeElement('search');\n $form->removeElement('display');\n $form->removeElement('show');\n $form->addElement('hidden', 'show', array('value' => 0));\n $form->removeElement('error');\n $form->removeElement('style');\n }\n }", "title": "" }, { "docid": "e3fad094d4252fd72e2502d403dfc367", "score": "0.67960227", "text": "public function edit()\n {\n return view('product::edit');\n }", "title": "" }, { "docid": "38b95b158cfbd7d6008eb1313d74dead", "score": "0.67904013", "text": "public function editProduct()\n {\n $this->configureFormRenderer('required');\n\n $this->productForm->addProductId();\n $this->productForm->populateFrom($product = $this->catalog->productOf($id = 1));\n\n echo $this->view->render('examples/edit-information.html.twig', [\n 'form' => $this->productForm->buildView(),\n ]);\n }", "title": "" }, { "docid": "1f3e62c409733532dc3f0f85568bdbb0", "score": "0.6761064", "text": "public function edit($id)\n\t{\n\t\treturn view($this->plural.'.edit', [$this->singular => $this->model->findOrFail($id)]);\n\t}", "title": "" }, { "docid": "2e451cbecb2a4edf2e18ea359a84b198", "score": "0.6758181", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('OffresBundle:Offres')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Offres entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('OffresBundle:Offres:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "1ad8f42c84160b8c6ce6296389de89c9", "score": "0.6757268", "text": "function edit( $resource ){\n\n $brands = allWithoutTrash('product_brands' );\n\n\n $stocks = get('inventory', $resource);\n\n $product = get( 'products', $resource );\n\n return view( 'admin/product/add_product', compact( 'product', 'brands', 'stocks' ));\n}", "title": "" }, { "docid": "c687e229c70d5b2bb3174acd2887d935", "score": "0.67551833", "text": "public function edit($id)\n {\n //Open form in edit mode.\n $product = Product::findOrFail($id);\n return view('admin.Products.edit')->with('product', $product);\n }", "title": "" }, { "docid": "aae9d312c6fa709ae12d3c879ef9a3f2", "score": "0.67495203", "text": "public function edit(Form $form)\n {\n $form = Form::find($form->id);\n $data = array(\n 'form' => $form,\n 'types' => $this->getType()\n );\n return view('./form/form', $data);\n }", "title": "" }, { "docid": "173e18a8d00009c51c3e2b096afa35c6", "score": "0.67494076", "text": "public function edit()\n {\n $rmk = Specialization::find($id);\n return view('specialization.edit', compact('rmk'));\n }", "title": "" }, { "docid": "de59ebe43d3ccd460af8c204a2ce504f", "score": "0.674883", "text": "public function editAction()\n {\n# $page = $this->_helper->db->findById();\n# $this->view->form = $this->_getForm($page);\n# $this->_processPageForm($page, 'edit');\n }", "title": "" }, { "docid": "bcf716390400a7068b7e1c48017f7c0f", "score": "0.67475426", "text": "function edit()\n\t{\n\t\t$id = $this->ci->uri->segment($this->config['uri_segment']+1);\n\t\treturn $this->_form($id);\n\t}", "title": "" }, { "docid": "7b5265e5c66828f2674f182bfb554b6b", "score": "0.67471254", "text": "public function edit()\n {\n return view('feaccount::edit');\n }", "title": "" }, { "docid": "7e53728fc096714ffa60b9478bd64083", "score": "0.67435557", "text": "function edit()\n {\n JRequest::setVar('view', 'team');\n JRequest::setVar('layout', 'form');\n JRequest::setVar('hidemainmenu', 1);\n\n parent::display();\n }", "title": "" }, { "docid": "668b7d8579ddada4536a4181f3e08041", "score": "0.6737808", "text": "public function edit()\n {\n return view('rekanan::edit');\n }", "title": "" }, { "docid": "7cb2b004357f9ffd5cddc45388789b2a", "score": "0.6736445", "text": "public function edit($id)\n {\n $this->data['obj'] = FormObject::find($id);\n $this->data['title'] = \"Edit \" . $this->data['obj']->name . \" Property\";\n $this->data['url'] = 'system/form-objects/' . $id;\n $this->data['method'] = 'put';\n $this->data['sites'] = Site::whereActive(1)->get()->all();\n\n $this->data['hotels'] = Hotel::all();\n\n return view('system.forms.form-object', $this->data);\n }", "title": "" }, { "docid": "a57bcfb849abf842f54ab142f87778dc", "score": "0.6734803", "text": "public function edit($id)\n {\n $resource = Resource::findOrFail($id);\n return view('admin.portal.edit', compact('resource'));\n }", "title": "" }, { "docid": "ff86c2f46684f81c5fd959adb2807f9e", "score": "0.67255336", "text": "public function edit($id)\n {\n $product = $this->products->findById($id);\n return View::make('products._form', compact('product'));\n }", "title": "" }, { "docid": "e144891e4fdc3366376e396b701fbf99", "score": "0.6711672", "text": "public function edit()\n\t{\n\t\t$jInput = JFactory::getApplication()->input;\n\t\t$jInput->set('view', 'item');\n\t\t$jInput->set('layout', 'default');\n\t\t$jInput->set('hidemainmenu', 1);\n\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "c53a972e2af2970da7bb04372311a3a5", "score": "0.669989", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('AppBundle:Programas')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Programas entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('AppBundle:Programas:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "aae7f4b0c772355bb99330a14ba29014", "score": "0.6696947", "text": "public function edit($id)\n\t{\n return View::make('matrimonials.edit');\n\t}", "title": "" }, { "docid": "883502561745369884d7fc695ef1624e", "score": "0.6691808", "text": "public function edit($id)\n\t{\n return View::make('requirements.edit');\n\t}", "title": "" }, { "docid": "439487f339021f8335c9eeaa79db8fa8", "score": "0.6690575", "text": "public function edit(FormBuilder $formBuilder, $id)\n {\n $data['title'] = $this->title;\n $tbl = $this->table->find($id);\n $data['form'] = $formBuilder->create('App\\Forms\\TypeBookForm', [\n 'method' => 'PUT',\n 'model' => $tbl,\n 'url' => route($this->uri.'.update', $id)\n ]);\n\n $data['url'] = route($this->uri.'.index');\n return view($this->folder.'.create', $data);\n }", "title": "" }, { "docid": "1507a482b7f295d6473bdf19d6d3da89", "score": "0.6678381", "text": "function edit( $resource ){\n\n $receivables = get( 'receivables', $resource );\n\n return view( 'admin/receivables/add_receivables', compact( 'receivables' ) );\n\n}", "title": "" }, { "docid": "2e96703e3ded22777d115212adcbfa8e", "score": "0.66781634", "text": "public function edit($id)\n {\n return view('manage::edit');\n }", "title": "" }, { "docid": "f2990bfbaee0f3cc29d99eb0cccdfc5d", "score": "0.6674401", "text": "public function edit(Entity $entity)\n {\n $this->authorize('update', $entity);\n\n return view('entities.edit', [\n 'entity' => $entity,\n ]);\n }", "title": "" }, { "docid": "b182548861e62c722e9b46c8496db241", "score": "0.6673116", "text": "public function edit($id)\n {\n $this->setOperation('update');\n if ($this->tienePermiso('update')) {\n\n // get entry ID from Request (makes sure its the last ID for nested resources)\n $id = $this->getCurrentEntryId() ?? $id;\n $entry = $this->getEntry($id);\n\n $this->data = array();\n // get the info for that entry\n $this->data['title'] = $this->getTitle() ?? trans('cesi::core.crud.edit') . ' ' . $this->entity_name;\n $this->data['heading'] = $this->getHeading() ?? $this->entity_name_plural;\n $this->data['subheading'] = $this->getSubheading() ?? trans('cesi::core.crud.edit').' '.$this->entity_name;\n $this->data['entry'] = $entry;\n $this->data['contentClass'] = $this->getEditContentClass();\n $this->data['routerAlias'] = $this->getRouterAlias();\n $this->data['resourceAlias'] = $this->getResourceAlias();\n $this->data['hasUploadFields'] = $this->hasUploadFields('update', $entry->getKey());\n\n // TODO ?? $this->data['saveAction'] = $this->getSaveAction();\n // $this->data['fields'] = $this->getCrud()->getUpdateFields($id);\n\n $this->data['id'] = $id;\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->getEditView(), $this->filterEditViewData($this->data));\n } else {\n return view('cesi::errors.401');\n }\n }", "title": "" }, { "docid": "23695efbb416dcbac50f5655f76220eb", "score": "0.6671321", "text": "public function edit()\n {\n return view('mpcs::edit');\n }", "title": "" }, { "docid": "9eabaca39cbbc769fdc4d4613662986d", "score": "0.6670628", "text": "public function edit($id)\n {\n $form = Form::find( $id );\n return view('editar', [\n 'item' => $form,\n ]);\n }", "title": "" }, { "docid": "98a687ec9cd21bb18a66914c17a84262", "score": "0.666875", "text": "function viewedit() {\n $id = Request::read('email');\n $error = Request::read('r'); \n \n if($error == -1){\n $error = 'No se ha editado';\n }\n \n $usuario = $this->getModel()->getUsuario($id);\n $email = $usuario->getEmail();\n \n \n $this->getModel()->addData('email', $email);\n $this->getModel()->addData('error', $error);\n \n $this->getModel()->addFile('form', 'sections/user/formEdit.html');\n }", "title": "" }, { "docid": "8aecb685b024e89667372cb88e6534b5", "score": "0.6665608", "text": "public function edit()\n {\n $product = $this->model('IndexModel')->get($this->getParam()['id']);\n\n $this->template('edit', $product);\n }", "title": "" }, { "docid": "897c904da29480933d49a2afe6a447fa", "score": "0.6664957", "text": "public function edit()\n {\n return view('core::edit');\n }", "title": "" }, { "docid": "47e15a6904083b2dac82790c56050341", "score": "0.66649014", "text": "public function showEditJobForm($id){\n \t$jobData = Job::find($id);\n \treturn view('employer.employer_edit_job', compact('jobData'));\n }", "title": "" }, { "docid": "55bfb83b470d662ff8fb0f9f1f658c98", "score": "0.6653699", "text": "public function edit($id)\n\t{\n\t\t$form = \\View::make('project.form');\n\t\t$form->project = Project::find($id);\n\t\t$form->action = array('action' => array('Toomdrix\\Pm\\ProjectController@update', $form->project->id),'class'=>'form-signup');\n\t\treturn $form;\n\t}", "title": "" }, { "docid": "f7bd52c4216f50ae40e29aa9291a3153", "score": "0.66463226", "text": "public function edit($id) {}", "title": "" }, { "docid": "028c8bc8d418c3bcb062ed6c39f57a64", "score": "0.6643353", "text": "public function edit($id)\n {\n $asociado = Asociado::getPersonaAsociadoSingle($id);\n $asociado->persona;\n $title = 'Editad asociado: '.$asociado->persona->primer_nombre;\n $form_data = ['route' => ['asociado.update',$asociado->id],'method' => 'PUT'];\n $cliente_id_field = '';\n $cliente_id = $asociado->cliente_id;\n\n return view('asociado.form')->with(compact('asociado','title','form_data','cliente_id_field','cliente_id'));\n }", "title": "" }, { "docid": "45821cecfbb5732cd269059f6aad418f", "score": "0.66403663", "text": "function edit()\n\t{\n\t\tJRequest::setVar( 'view', 'editlieux' );\n\t\tJRequest::setVar( 'layout', 'edit_form' );\n\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "e4c3c0cbb7ac2570554ac1a25beb95aa", "score": "0.66388327", "text": "public function edit()\n {\n return view('berita::edit');\n }", "title": "" }, { "docid": "ab2518ea287ee8d0a67051d27dc511a8", "score": "0.66294515", "text": "public function edit($id)\n\t{\n $form_data = ['route' => [self::$prefixRoute . 'update', $this->membership->id], 'method' => 'PUT'];\n\n return view(self::$prefixView . 'form', compact('form_data'))\n \t->with(['membership' => $this->membership]);\n\t}", "title": "" }, { "docid": "55c0c1d3fd64720346563285fe8ebb07", "score": "0.6628236", "text": "public function edit($id)\n {\n return view('employee.edit_form',['employee' => User::findOrFail($id)]);\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6627662", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "4ba8a0764293ed6e4bdc9a47879f5cdb", "score": "0.66251445", "text": "public function edit($id)\n {\n $item = Provider::find($id);\n return View('provider.form', [\"item\" => $item, 'type' => 'edit']);\n }", "title": "" }, { "docid": "c2183a818e413caf29da395ac5aa45fe", "score": "0.6625103", "text": "public function edit($id)\n\t{\n\t\t$datos['empresa'] = Empresa::find($id);\n\t\t$datos['form'] = array('route'=> array('datos.empresas.update', $id), 'method' => 'PATCH');\n\t\t\n\t\treturn View::make('datos/empresas/list-edit-form')->with('datos', $datos);\n\t}", "title": "" }, { "docid": "1a4ead4c141c44cd189d59dd857cc05f", "score": "0.6621553", "text": "public function edit($field)\n {\n $field = Fields::find($field);\n return view('admin.fields.form',[\n 'active' => 'Fields',\n 'action' => 'Edit',\n 'field' => $field,\n ]);\n }", "title": "" }, { "docid": "5004b89ebea0b269b185830cb2f7e2f7", "score": "0.6621499", "text": "public function edit($id)\n {\n $this->view->guest = $this->model->edit($id);\n $this->view->render($this->_path . '/edit');\n \n }", "title": "" }, { "docid": "4085123883432653825ea3d6eca4c3ba", "score": "0.66196555", "text": "public function edit(Form $form, Event $event)\n {\n return view('form.edit', compact('event', 'form'));\n }", "title": "" }, { "docid": "8310a47ca16507655295572f382e4e29", "score": "0.6616868", "text": "public function edit($id)\n {\n // first : retrieve flower info and show the form to update flower\n }", "title": "" }, { "docid": "8c2bb4ce9efff69262207822b4887159", "score": "0.66112494", "text": "public function edit($id)\n {\n $template = (object) $this->template;\n $form = $this->form();\n $data = Penduduk::findOrFail($id);\n return view('admin.master.edit',compact('template','form','data'));\n }", "title": "" }, { "docid": "9a57ebf3330d38ff3b1cfbadfc9fc69b", "score": "0.66103256", "text": "function edit() {\n\t\t\n\t\tif ($_POST) {\n\t\t\t$this->entity->update($_POST);\n\t\t\t$this->_relative_redirect('view');\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "12e1c226dd6ae426a8e7bea555851773", "score": "0.6606947", "text": "public function edit($id)\n {\n \t$manufacturer = Manufacturer::findOrFail($id);\n return view('backend.module.manufacturer.edit',['manufacturer' => $manufacturer]);\n }", "title": "" }, { "docid": "c6087fca66897a650dc6e75718832e74", "score": "0.66025347", "text": "public function edit($id)\n\t{\n $form_data = ['route' => [self::$prefixRoute . 'update', $this->generic_medication->id], 'method' => 'PUT'];\n \n return view(self::$prefixView . 'formm', compact('form_data'))\n \t->with(['generic_medication' => $this->generic_medication]);\n\t}", "title": "" }, { "docid": "a12dc077ea7b8efef6338c64b0b115cb", "score": "0.66000247", "text": "public function edit($id)\n {\n // get the nerd\n $product = Product::find($id);\n\n // show the edit form and pass the nerd\n return View::make('products.edit')\n ->with('product', $product);\n }", "title": "" }, { "docid": "2b5fb043a3c87778cf2cebbc780df3b7", "score": "0.659838", "text": "public function edit()\n\t{\n\t\tparent::edit();\n\t}", "title": "" }, { "docid": "2a47ad7ce79b806f24d1a15c7fc9c440", "score": "0.6596694", "text": "public function edit($id)\n {\n return view('frontend::edit');\n }", "title": "" }, { "docid": "203016e427fa0c848cb2dfcb175f5f26", "score": "0.65909845", "text": "public function edit($id)\n\t{\n\t\t//\n\t\treturn \"Se muestra formulario para editar Fabricante con id: $id\";\n\t}", "title": "" }, { "docid": "6d657e63dc93b082619d2f7dcb0b720c", "score": "0.65891075", "text": "public function edit($id)\n {\n //mostrar formulario d edicion\n }", "title": "" }, { "docid": "7b2f75aaedf8589b46dde92aafda12f3", "score": "0.6586938", "text": "public function editAction()\n\t{\n\t\t$accountId = $this->_getParam('id');\n\t\t$accountTable = new AccountTable();\n\t\tif ($accountId) $account = $accountTable->find($accountId);\n\t\telse {\n\t\t\t/* Redirect to some error page */\n\t\t}\n\t\t\n\t\t/* Setup view data */\n\t\t$view = $this->getView();\n\t\t\n\t\t$view->title = \"Edit Account\";\n\t\t$view->account = $account;\n\t\t$view->error = NULL;\n\t\t\n\t\t/* And render it */\t\t\n\t\t$this->render('account/AccountEditView.php');\n\t}", "title": "" }, { "docid": "7f6e393f74ad5b78eb86af1fb59ad0f7", "score": "0.65856075", "text": "public function edit($id)\n {\n $data = User::findOrFail($id);\n $template = (object)$this->template;\n $form = $this->form();\n return view('admin.master.edit',compact('template','form','data'));\n }", "title": "" }, { "docid": "2ca5925eff8fd2c9f2e5fb536e2717b3", "score": "0.65842867", "text": "function edit()\n\t{\n\t\tJRequest::setVar( 'edit', true );\n\t\t$model\t=& $this->getModel( 'Item' );\n\t\t$model->checkout();\n\n\t\t$view =& $this->getView( 'Item' );\n\t\t$view->setModel( $model, true );\n\t\t// Set the layout and display\n\t\t$view->setLayout('form');\n\t\t$view->edit();\n\t}", "title": "" }, { "docid": "df89a714812746e77528c831bc256a8a", "score": "0.6574023", "text": "public function edit($id)\n {\n $this->user->offers()->findOrFail($id);\n\n return view('admin.offer.edit_form', [\n 'route_base_url' => 'offer',\n 'model_name' => '\\App\\Models\\Offer',\n 'model_id' => $id,\n ]);\n }", "title": "" }, { "docid": "568ce94a39ba9f1d0b81cd0579729a5f", "score": "0.6571842", "text": "public function edit()\n {\n $view = $this->getView('election', 'html');\n $view->setModel($this->getModel('election'), true);\n //JRequest::setVar('hidemainmenu', 1);\n\n $view->display();\n }", "title": "" }, { "docid": "87f80527ccf944a69125ffa41418e52d", "score": "0.656931", "text": "public function edit()\n {\n return view('inventory::edit');\n }", "title": "" }, { "docid": "87f80527ccf944a69125ffa41418e52d", "score": "0.656931", "text": "public function edit()\n {\n return view('inventory::edit');\n }", "title": "" }, { "docid": "ce4fc37201a9083467febf6f580c94ee", "score": "0.6567868", "text": "public function edit($id) {\n $urinalysis = Urinalysis::ConsolidatedId($id)->first();\n $urinalysisRef = UrinalysisRef::all();\n return view('pages.urinalysis.form', [\"urinalysis\" => $urinalysis, 'urinalysisRef' => $urinalysisRef, 'mode' => 'EDIT']);\n }", "title": "" }, { "docid": "df0197e5108b918276674eb05562c1d7", "score": "0.65657616", "text": "public function editAction()\n {\n $page = Pages::findFirst(\n [\n 'conditions' => 'id = :id:',\n 'bind' => ['id' => (int) $this->dispatcher->getParam('id')],\n ]\n );\n if ($page === false) {\n return $this->dispatcher->forward(['action' => 'error404']);\n }\n $this->assets\n ->collection('ace')\n ->addJs('scripts/ace/ace.js');\n $page->content = htmlentities($page->content);\n $this->view->page = $page;\n $this->view->title = $page->title.' – Edit ';\n $editable = new \\stdClass();\n $editable->content = $page->content;\n $editable->id = $page->id;\n $this->view->form = new \\Kolibri\\Forms\\Edit($editable);\n }", "title": "" }, { "docid": "d49dc9860beddbcef1bd1992ac80ce76", "score": "0.656234", "text": "public function action_edit()\r\n\t{\r\n\t\t$item_id = $this->request->param('params');\r\n\r\n\t\t$element = ORM::Factory($this->_resource, $item_id);\r\n\r\n\t\t$form = Formo::form()->orm('load', $element);\r\n\t\t$form->add('update', 'submit', 'Save');\r\n\r\n\t\tif($form->load($_POST)->validate())\r\n\t\t{\r\n\t\t\tif($this->_update_passed($form, $element))\r\n\t\t\t{\r\n\t\t\t\t$element->save();\r\n\t\t\t\t$form->orm('save_rel', $element);\r\n\r\n\t\t\t\t$this->request->redirect(Route::get($this->_route_name)->uri( array('controller' => $this->controller)));\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->_update_error($form, $element);\r\n\t\t}\r\n\r\n\t\t$view = $this->template->content;\r\n\t\t$view->set(\"formo\", $form);\r\n\t}", "title": "" }, { "docid": "469fc3592be913e351b579a5c9fe18dc", "score": "0.65604365", "text": "public function edit()\n {\n $organization = OwnerOrganization::find(0);\n return view('modules.system.OwnerOrganization.form', compact('organization'));\n }", "title": "" }, { "docid": "59702db081c964bfd257f5f4ed31ec07", "score": "0.6559696", "text": "public function edit($id){\n $entry = Entry::find($id);\n $this->authorize('update', $entry); //Access Controll using policies\n return view('entries.edit',compact('entry'));\n }", "title": "" }, { "docid": "3cee07ed8f37cad18680bc48310b6842", "score": "0.6559204", "text": "public function edit()\n {\n return view('tenderpurchaserequest::edit');\n }", "title": "" }, { "docid": "531deb797a3602e8ea456bf473e6c600", "score": "0.6543909", "text": "public function edit($id)\n\t{\n\t\t$record = Record::find($id);\n\n\t\treturn View::make('records.edit', compact('record'));\n\t}", "title": "" }, { "docid": "5c6c8de62974cc03322207e7d02b68d7", "score": "0.6542949", "text": "public function edit($id) {\r\n\t\t$data ['aluno'] = Aluno::findOrFail ( $id );\r\n\t\t$data ['page_title'] = 'Editar aluno';\r\n\t\treturn view ( 'paginas.cadastro.aluno.create-edit' )->with ( $data );\r\n\t}", "title": "" }, { "docid": "0108853fa0d0f8ddd5e30d5bd2f3f67d", "score": "0.6542555", "text": "public function edit($id)\n\t{\n // Get the student\n $student = Student::find($id);\n\n // show the edit form and pass the nerd\n return View::make('students.edit')->with('student', $student);\n\t}", "title": "" }, { "docid": "0b8bea11641b000a8cc94135b0aa739a", "score": "0.6542523", "text": "public function edit($id)\n {\n return view('slo::edit');\n }", "title": "" }, { "docid": "3d60dba5b14a240b364d0e8824386a7e", "score": "0.6542473", "text": "public function edit($id)\n {\n $electric = $this->electricService->findById($id);\n return view('electric.update' ,compact('electric'));\n }", "title": "" }, { "docid": "4530461421ee8156467d6dfae72cde9c", "score": "0.6540356", "text": "public function edit($id)\n {\n static::setInstanceModel($model = $this->model()->findOrFail($id));\n $this->renderForm($model);\n $this->renderButton($model);\n return view(static::$baseView.'.edit');\n }", "title": "" }, { "docid": "5cddc5545db4d8408b496a8b468427fc", "score": "0.6539553", "text": "public function edit($project_id) {\n $project = Project::withTrashed()->where('id', $project_id)->first();\n\n if (empty($project)) {\n return abort(404);\n }\n $form = new AdministrationForm();\n $form->route(Administration::route('projects.store'));\n $form->model($project);\n $form->route(Administration::route('projects.update', $project->id));\n $form->method('PUT');\n $form->form(ProjectForm::class);\n\n\n Breadcrumbs::register('administration', function ($breadcrumbs) {\n $breadcrumbs->parent('base');\n $breadcrumbs->push(trans('projects::admin.module_name'), Administration::route('projects.index'));\n $breadcrumbs->push(trans('administration::admin.edit'));\n });\n\n Administration::setTitle(trans('projects::admin.article') . ' - ' . trans('administration::admin.edit') . ' #' . $project->id);\n\n return $form->generate();\n }", "title": "" } ]
54006a510960569dee9196f1e7743d96
Add a child to the object
[ { "docid": "f46a41d646d5df576005f05836d671d6", "score": "0.59298694", "text": "protected function addChild($key, $arr) {\r\n\t\t$this->children[$key] = $arr;\r\n\t}", "title": "" } ]
[ { "docid": "471839ac3341aac37e12c47bb7ab66f5", "score": "0.72582555", "text": "function add_child(&$child) {\r\n\t\t$this->children[] =& $child;\r\n\t\t$child->set_parent($this);\r\n\t}", "title": "" }, { "docid": "546ff75cf39bc098828e75525de97931", "score": "0.71616596", "text": "public function add($child) {\r\n\t\tif (is_array($child)) {\r\n\t\t\tforeach ($child as $valor) {\r\n\t\t\t\t$this->children[] = $valor;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->children[] = $child;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0cc5589d4be4e132fe6bf1e34808ca70", "score": "0.7069505", "text": "public function addChild($child) {\n\t\t$this->_children[$child->id] = $child;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "99705167373b282b8072ed0b166062b0", "score": "0.7021933", "text": "public function add($child)\r\n {\r\n if ($child instanceof self) {\r\n $child->setParent($this);\r\n }\r\n $this->children[] = $child;\r\n }", "title": "" }, { "docid": "4d6fa9d62efcdd29a592a1daec890978", "score": "0.6984607", "text": "public function addChild(CompositeInterface $child);", "title": "" }, { "docid": "0ec7f62b1b20a83266485b7fb3ded3d4", "score": "0.694158", "text": "public function addChild($name, Mapping $child)\n {\n $this->children[$name] = $child;\n }", "title": "" }, { "docid": "392c1d01a82e829f8465c9d2dfeb0b70", "score": "0.6798028", "text": "public function appendChild($child)\n {\n $this->children[] = $child;\n }", "title": "" }, { "docid": "0ec8c624ce40f3ddcdc174227f4f97dc", "score": "0.67599666", "text": "function new_child($child,$child_name){\r\n\t if(isset($this->$child_name)){\r\n $this->new_child_array($child,$child_name);\r\n\t }else{\r\n \t $this->$child_name=&$child;\r\n\t }\r\n\t}", "title": "" }, { "docid": "e51c287317f629880977935156d1d387", "score": "0.6652254", "text": "function add_child($item)\n {\n \tif($this->debug>0){error_log('New LP - In learnpathItem::add_child()',0);}\n \tif(!empty($item))\n \t{\n \t\t//do not check in DB as we expect the call to come from the learnpath class which should\n \t\t//be aware of any fake\n \t\t$this->children[] = $item;\n \t}\n }", "title": "" }, { "docid": "b8b44280f689bc4d053d3e3371a83ab7", "score": "0.6490664", "text": "public function addChild(NodeInterface $child)\n {\n $this->children[$child->getName()] = $child;\n }", "title": "" }, { "docid": "0e7b659e912dbfd2d172f0cf5c0dcfbd", "score": "0.6467166", "text": "public function add_child(BuckysBBCodeNode $child){\n $this->children[] = $child;\n $child->set_parent($this);\n }", "title": "" }, { "docid": "8c16bfa0cdaa6675c9d8dae8b14c1eb8", "score": "0.6418734", "text": "public function addChild($parent, $child)\r\n\t{\r\n\t\tif ($parent->name === $child->name) {\r\n\t\t\tthrow new InvalidParamException(\"Cannot add '{$parent->name}' as a child of itself.\");\r\n\t\t}\r\n\r\n\t\tif ($parent instanceof Permission && $child instanceof Role) {\r\n\t\t\tthrow new InvalidParamException(\"Cannot add a role as a child of a permission.\");\r\n\t\t}\r\n\r\n\t\tif ($this->detectLoop($parent, $child)) {\r\n\t\t\tthrow new InvalidCallException(\"Cannot add '{$child->name}' as a child of '{$parent->name}'. A loop has been detected.\");\r\n\t\t}\r\n\r\n\t\t$this->db->getCollection($this->itemChildTable)\r\n\t\t\t->insert(['parent' => $parent->name, 'child' => $child->name]);\r\n\r\n\t\t$this->invalidateCache();\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "25f6d7c5ab4913a0cf67c95122149de3", "score": "0.6294401", "text": "public function add_child($name){\n $name = mb_strtolower($name, 'UTF-8');\n\n if (!isset($this->children[$name])){\n $this->children[$name] = 1;\n if (isset($this->attributes[$name . \"_id\"]))\n print_error(\"attribute and subelement name colision\", 90);\n } else {\n $this->children[$name] += 1;\n if (isset($this->attributes[$name . $this->children[$name] . \"_id\"]) || isset($this->attributes[$name . $this->children[$name] - 1 . \"_id\"]))\n print_error(\"attribute and subelement name colision\", 90);\n }\n }", "title": "" }, { "docid": "1733fb55427b95b965e7e7ecf25a67ac", "score": "0.6273235", "text": "public function addChild(ElementInterface $child)\n {\n $this->children[] = $child;\n }", "title": "" }, { "docid": "e1cd44d35da86979c9f0e2ad8757fdba", "score": "0.6271754", "text": "public function addChild(FileInterface $child): void;", "title": "" }, { "docid": "b51dd52b66dabbb7d09dc278175b2467", "score": "0.62355596", "text": "public function addChild ($name, $value = null, $namespace = null) {}", "title": "" }, { "docid": "b51dd52b66dabbb7d09dc278175b2467", "score": "0.62355596", "text": "public function addChild ($name, $value = null, $namespace = null) {}", "title": "" }, { "docid": "b51dd52b66dabbb7d09dc278175b2467", "score": "0.62355596", "text": "public function addChild ($name, $value = null, $namespace = null) {}", "title": "" }, { "docid": "4631f771b534271a755be6457b727b25", "score": "0.6231671", "text": "public function addNode(){\r\n if(!empty($this->child)){\r\n $this->child->addNode();\r\n }else{\r\n $this->child = new BranchNode($this->node_index + 1);\r\n }\r\n }", "title": "" }, { "docid": "c6e1018eca7de749ed3375ebb867be6e", "score": "0.622569", "text": "public static function add_child_to_root($child, $field)\n\t{\t\tif(self::child_has_parent($child)) { return; }\n\n\t\t$child->create_link();\n\t}", "title": "" }, { "docid": "ccbeec03b734ddf095b2acf7cd52a048", "score": "0.6172216", "text": "function addChild( &$dataElement ) {\n\t\t$this->childs[] = &$dataElement;\n\t\t$this->childsByName[ $dataElement->getName() ] = &$dataElement;\n\t}", "title": "" }, { "docid": "e6ba3b4197fb3086f4f07465fc2cd420", "score": "0.6168485", "text": "public function addChildren(Chunk $child) : void\n {\n $this->children[] = $child;\n }", "title": "" }, { "docid": "618bcab3bffab8e6be928f1224cadbef", "score": "0.61287856", "text": "private function addChild(Node $node) {\n array_push($this->children, $node);\n }", "title": "" }, { "docid": "4a4f0b092eac35a171e461947b783296", "score": "0.6118748", "text": "public static function add_child_to_parent($child, $parent, $field)\n\t{\t\tif(self::child_has_parent($child, $parent)) { return; }\n\t\n\t\tforeach($parent->links() as $parentlink)\n\t\t{\n\t\t\t$child->create_link($parentlink);\t\n\t\t}\n\t\t\n\t\t$parent->child_count(1);\n\t\t\n\t\t$child->add_dependant_save_node($parent);\n\t\t\n\t\t/*\n\t\t// tell the registry that the parent needs saving if we save the child\n\t\t$registry = Jquarry_Registry::instance();\n\t\t\n\t\t$registry->add_dependant_save_node($child, $parent);\n\t\t*/\n\t}", "title": "" }, { "docid": "8be02ede2859e1436a4bb2181ac0c8da", "score": "0.60498196", "text": "public function setChild($key, $value)\n {\n if (empty($key)) {\n $this->children[] = $value;\n } else {\n $this->children[$key] = $value;\n }\n }", "title": "" }, { "docid": "4f3d2b6c5d4763e4c1338501765f58c4", "score": "0.59893024", "text": "public function addChild($dt)\n {\n $stamp = $dt->format('Y-m-d H:i:s');\n\n // Does it already exist?\n $children = $this->getChildren();\n if (isset($children[$stamp])) return;\n\n $data = $this->getTransactionData();\n if (empty($data)) self::error('Parent transaction not found');\n\n // Clean it up for child\n unset($data['id']);\n $data['date_occurred'] = $stamp;\n\n // Save child\n Transaction_Model::save($data);\n $child_id = Transaction_Model::lastInsertId();\n\n // Save link\n self::save([\n 'transaction_recurring_id' => $this->getRecurringId(),\n 'transaction_id' => $child_id,\n ], static::$trt_table);\n }", "title": "" }, { "docid": "f8021d4cc2d98f8630b3cf4840203eda", "score": "0.5988263", "text": "public function addChild($pid) {\n return array_push($this->_childs, $pid);\n }", "title": "" }, { "docid": "c365d41b5095712d788aa087a7228262", "score": "0.59854865", "text": "public function addChild ($child, $childIndex = FALSE)\n {\n if ($child instanceof Element || is_string($child) || is_numeric($child)) {\n\n if ($childIndex === FALSE || $childIndex < 0 || $childIndex >= count($this->_children)) {\n $this->_children[] = $child;\n } else {\n $this->_children = array_merge(\n array_slice($this->_children, 0, $childIndex),\n [$child],\n array_slice($this->_children, $childIndex)\n );\n }\n } else {\n throw new ChildException('Invalid child data type');\n }\n\n return $this;\n }", "title": "" }, { "docid": "9a38469a0be4b80be28c8b6772cad559", "score": "0.5971901", "text": "abstract public function addChild(NodeInterface $node): NodeInterface;", "title": "" }, { "docid": "2d1557c69f7c1bb8764d53cedf3e3391", "score": "0.59673554", "text": "public function addChild(&$child, $key = false) {\n\n if ($child) {\n\n if ($key) {\n $this->children[$key] = $child;\n } else {\n $this->children[] = $child;\n }\n\n if (!is_array($child)) {\n if ($parent = $child->getParent()) {\n $parent->removeChild($child);\n }\n $child->setParent($this);\n } else {\n foreach($child as $child_) {\n if ($parent = $child_->getParent()) {\n $parent->removeChild($child_);\n }\n $child_->setParent($this);\n }\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "cdb1d4837bd70120fa5bd0c4b791c6a5", "score": "0.595636", "text": "public static function add_child($child, $parent = null, $field = null)\n\t{\n\t\t$field = self::child_field_name($field);\n\t\t\n\t\tif($parent)\n\t\t{\n\t\t\treturn self::add_child_to_parent($child, $parent, $field);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn self::add_child_to_root($child, $field);\n\t\t}\n\t}", "title": "" }, { "docid": "65c0ad35ac88218e403a762d1a1e3f63", "score": "0.5952879", "text": "public function testAddChild()\n {\n $this->setUp('a');\n\n $child = new Node('c');\n\n $node = $this->root->addChild($child);\n\n $tag = $this->root->render();\n\n $expected = '<a><c></c></a>';\n\n $this->assertEquals($tag, $expected);\n }", "title": "" }, { "docid": "24001cf9661d870973a92b7a076076f1", "score": "0.5951347", "text": "public abstract function add($object);", "title": "" }, { "docid": "d4621954e3675bc1a64e28e180d803c7", "score": "0.5813805", "text": "public function addChild(HtmlElementInterface $child) {\n\t\t$this->children[] = $child;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "8d1266f3bd8989f7cc60c4daa27745aa", "score": "0.57927173", "text": "public function addChild(self $childItem)\n {\n $this->children[] = $childItem;\n\n return $this;\n }", "title": "" }, { "docid": "040f5ecc19eb73b8c01ad02b84ce30c2", "score": "0.5791948", "text": "public function add($child, $runValidation = true, $runTransaction = true)\n {\n return $child->appendTo($this->owner, $runValidation, $runTransaction);\n }", "title": "" }, { "docid": "9148c2bf742978e8592f1525f011b96f", "score": "0.57880896", "text": "public function addChild(NavBarElement $child){\n $this->child[] = $child;\n return $this;\n }", "title": "" }, { "docid": "3511e185929210c744ef8ec7221ba697", "score": "0.57708067", "text": "public function add($value) {\n if ($this->parent->exists) {\n if (empty($this->parent->reference) || 0 === key($this->parent->reference)) {\n $this->parent->reference[]= $value;\n return Applied::$CLEANLY;\n } else {\n $this->parent->reference['-']= $value;\n return Applied::$CLEANLY;\n }\n } else {\n return new PathDoesNotExist($this->path());\n }\n }", "title": "" }, { "docid": "8fc574cc2658657b1b5295af12260b37", "score": "0.5761153", "text": "public function addChild($name, $value=null, $domElement=null) {\n if(isset($domElement)) {\n $child = $domElement->appendChild($this->createElement($name));\n } else {\n $child = $this->root->appendChild($this->createElement($name));\n }\n if(isset($value)) {\n $child->appendChild($this->createTextNode($value));\n }\n return $child;\n }", "title": "" }, { "docid": "2748c8f8f1b7f1c7e00bb866bafb6425", "score": "0.5715711", "text": "public function createChild() {\n\t\tif($this->competition_type == self::TYPE_ROUND)\n\t\t\treturn null;\n\n $model = Competition::getNew($this->childType());\n\t\t$model->parent_id = $this->id;\n\t\t$model->copyAttributes($this);\n\t\t$model->save();\n\t\tYii::trace(print_r($model->errors, true) , 'Competition::createChild');\t\t\n return $model;\n\t}", "title": "" }, { "docid": "cb286ddcc3eac700069a5a2823dc41d1", "score": "0.56992525", "text": "public function testAddChild()\n {\n $this->session(['Auth' => $this->authData]);\n\n $this->get('profiles/add/child/1');\n $this->assertResponseSuccess();\n $this->assertNoRedirect();\n\n $profilesCount = TableRegistry::get('Profiles')->find()->count();\n $unionsCount = TableRegistry::get('Unions')->find()->count();\n $unitsCount = TableRegistry::get('Units')->find()->count();\n\n $this->post('profiles/add/child/1', [\n 'ta' => null,\n 'ln' => 'Duck',\n 'fn' => 'Dewey',\n 'g' => 'm',\n 'l' => 1,\n 'units' => [0 => [\n 'kind' => 'c',\n 'union_id' => 1\n ]]\n ]);\n\n $this->assertResponseSuccess();\n $this->assertRedirect(['controller' => 'Profiles', 'action' => 'view', 3]);\n $this->assertFlashElement('Flash/success');\n\n $this->assertEquals($profilesCount + 1, TableRegistry::get('Profiles')->find()->count());\n $this->assertEquals($unionsCount, TableRegistry::get('Unions')->find()->count());\n $this->assertEquals($unitsCount + 1, TableRegistry::get('Units')->find()->count());\n\n $profile = TableRegistry::get('Profiles')->get(3);\n $this->assertEquals('Dewey Duck', $profile->d_n);\n }", "title": "" }, { "docid": "4d47072254b896732b29b15e079eba89", "score": "0.5655532", "text": "public function addChild(HTMLElement $child){\n if(in_array($this->tag, self::VOID_TAG)){\n throw new DomainException(\"{$this->tag} is a void tag, it can not have childs!\");\n }\n array_push($this->childs, $child);\n }", "title": "" }, { "docid": "9d20468f6a0b92101ad89cff8b510bf7", "score": "0.5638063", "text": "final public function addChildFrame($frame)\n\t{\n\t\t$this->__children_frames[] = $frame;\n\t}", "title": "" }, { "docid": "146fdfecf0a3549bd10d031fe58b9804", "score": "0.5630725", "text": "public function make_child() {\n if (! empty( $this->data['course_id'] ) && $this->data['course_id']) {\n $this->data['parent_course_id'] = $this->data['course_id'];\n unset( $this->data['course_id'] );\n }\n }", "title": "" }, { "docid": "ee1c154d662c22a35ab5f0181b024032", "score": "0.56285125", "text": "public function setChild($child)\n {\n $this->child = $child;\n return $this;\n }", "title": "" }, { "docid": "d61396f541737a85950d643937ca6c7d", "score": "0.5593787", "text": "public function addChild(EntityTest2Dto $child)\n {\n $this->setChild($child);\n $child->setParent($this);\n $this->setValue();\n $child->setPrintR($this->pushPrintR($child->getPrintR()));\n\n return $this;\n }", "title": "" }, { "docid": "c1079fd9be8db6f078c8345f1afa4df4", "score": "0.5576042", "text": "public function addChild($child, $before = true, $position = -1)\n {\n if ($child instanceof Element)\n {\n $toAdd = array(\n 'element' => $child,\n 'before' => $before // before internal text?\n );\n $nrChilds = \\count($this->childs);\n if ($position == - 1 || $position >= $nrChilds)\n {\n // the inserted position is the end of the array\n $position = $nrChilds;\n\n }\n else\n {\n // we need to make room for the new Element\n for($i = $nrChilds; $i > $position; $i--)\n {\n $this->childs[$i] = $this->childs[$i - 1];\n }\n }\n\n $toAdd['position'] = $position;\n $this->childs[$position] = $toAdd;\n }\n\n return $this;\n }", "title": "" }, { "docid": "9b5495cd36b4f3a9d18451244f3a3d47", "score": "0.55599165", "text": "public static function add(&$objeto){\n\t\treturn parent::add($objeto);\n\t}", "title": "" }, { "docid": "32e6fff7ba9be2f4a0b4a11799b8bc9b", "score": "0.5548411", "text": "public function actionAddAuthItemChild()\r\n {\r\n if (request()->isAjax) {\r\n $row = request()->post('AuthItemChild');\r\n if((request()->post('isNewRecord') && request()->post('_action') == 'load' && empty($row)) || request()->post('_action') == 'add')\r\n $row[] = [];\r\n return $this->renderAjax('_formAuthItemChild', ['row' => $row]);\r\n } else {\r\n throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\r\n }\r\n }", "title": "" }, { "docid": "83d4d3673b96c15795ccc5445bf6dbd7", "score": "0.55475515", "text": "private function addChild($id, $parentId)\n {\n if (!array_key_exists($parentId, $this->tree)) {\n $this->tree[$parentId] = array();\n }\n array_push($this->tree[$parentId], $id);\n }", "title": "" }, { "docid": "52cce9ad4bed89a5ee11f14ea703c76b", "score": "0.55153155", "text": "static public function addChildNode(SimpleXMLElement $context, $name, $value='')\n {\n $child = $context->addChild($name);\n if (trim($value)) {\n $child->{0} = $value;\n }\n return $child;\n }", "title": "" }, { "docid": "de9d99d4490352d624bfa40c2d83b7ca", "score": "0.5515194", "text": "private function _assignChild($parent, $children) {\n if ($parent) {\n $auth = Yii::app()->authManager;\n /* @var $auth CDbAuthManager */\n foreach ($children as $child) {\n $auth->addItemChild($parent, $child);\n }\n }\n }", "title": "" }, { "docid": "36a4ae8fdf1e9434b503c14c6b545c5f", "score": "0.55077296", "text": "public function add();", "title": "" }, { "docid": "36a4ae8fdf1e9434b503c14c6b545c5f", "score": "0.55077296", "text": "public function add();", "title": "" }, { "docid": "36a4ae8fdf1e9434b503c14c6b545c5f", "score": "0.55077296", "text": "public function add();", "title": "" }, { "docid": "92758f6a9eabadf4168e3977eb616668", "score": "0.55041975", "text": "function appendChild($child) {\n\t\tif (($child instanceof synd_node_used)) {\n\t\t\tif (null === $this->_leasings)\n\t\t\t\t$this->getLeasings();\n\t\t\tif (!in_array($child->nodeId, $this->_leasings)) {\n\t\t\t\t$this->_leasings[] = $child->nodeId;\n\t\t\t\t$this->_node_onchange_internal();\n\t\t\t}\n\t\t\treturn $child;\n\t\t}\n\t\treturn parent::appendChild($child);\n\t}", "title": "" }, { "docid": "8eb9523c81c124941241f5a85875c622", "score": "0.5473263", "text": "public function addChild(IMessagePart $part, ?int $position = null);", "title": "" }, { "docid": "749ab1da74926de3919bf2487f77be1b", "score": "0.5468558", "text": "abstract public function add();", "title": "" }, { "docid": "878c3b7f2f115524e3864bc3e18daa72", "score": "0.5463322", "text": "function newnode_child($nodename,$parentname ) {\r\n\t\t $objfound= $this->find_name($parentname);\r\n\t\t if ($this->find_name($parentname)==1){\r\n\t\t\t$newnobj = $this-> newnode($nodename);\r\n\t\t\t$this->parent_obj_name($newnobj,$parentname);//debug thi smay not work\r\n\t\t\t\r\n\t\t }\r\n\t\t return 0;//DEBUG - not tested\r\n\t }", "title": "" }, { "docid": "b1f77f8d3032693195047d84bb1f4954", "score": "0.5461912", "text": "public function addParent(IView $parent, IView $child);", "title": "" }, { "docid": "27130317732fcae43ebe9eda475420f8", "score": "0.54548407", "text": "function addChild($name, $pattern, $data);", "title": "" }, { "docid": "1f7248302d0098951e26868741891478", "score": "0.54510987", "text": "function new_child_array($child,$child_name){\r\n\t\t//create array and set old child object to the first array element...\r\n\t\tif(is_object($this->$child_name)){\r\n\t\t\t$tmp_obj=$this->$child_name;\r\n\t\t\t$this->$child_name=Array();\r\n\t\t\t$this->new_child_array($tmp_obj,$child_name);\r\n\t\t}\r\n\t\t//push child reference into child array...\r\n\t\t$this->{$child_name}[]=&$child;\r\n\t\t$last_index=count($this->$child_name)-1;\r\n\t\treturn $last_index;\r\n\t}", "title": "" }, { "docid": "349f127c74a46f5bb8bfc0ce3322b7b6", "score": "0.5450059", "text": "public function addItemChild($itemName, $childName)\n\t{\n\t\t// Make sure that the item doesn't already have this child.\n\t\tif( $this->hasItemChild($itemName, $childName)===false )\n\t\t\treturn parent::addItemChild($itemName, $childName);\n\t}", "title": "" }, { "docid": "b1d32708e0f4a1a364373c6ba62ed8b0", "score": "0.5441539", "text": "public function addChildNode($name, $node)\n {\n $this->internalChildnodes[$name] = $node;\n $node->setParentNode($this);\n }", "title": "" }, { "docid": "45dad2e0ea64be1e252f2f7ab0eb6078", "score": "0.5440722", "text": "function appendChild($child) {\r\n\t\t$ret = NULL;\r\n\t\tif ($child instanceof ODPElement) {\r\n\t\t\t$uc_child = $child->getElement();\r\n\t\t\tif (is_null($this->elem)) {\r\n\t\t\t\t$ret = parent :: appendChild($uc_child);\r\n\t\t\t} else {\r\n\t\t\t\t$ret = $this->elem->appendChild($uc_child);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$ret = parent :: appendChild($child);\r\n\t\t}\r\n\t\treturn $ret;\r\n\t}", "title": "" }, { "docid": "9fb880b89b9127b618036e5ea51aa756", "score": "0.5416275", "text": "public static function add(int $parent, int $child)\n {\n self::addItselfAsParent($child);\n\n if ($parent != 0) {\n $parentsOfParent = self::getParents($parent);\n\n foreach ($parentsOfParent as $parentId) {\n self::addChildToParent($parentId, $child);\n }\n }\n }", "title": "" }, { "docid": "98fcfecde29ace7a7d37332bf2e6d439", "score": "0.5410631", "text": "function add_relationship($item) {\n $this->__belongs_to = array('property' => 'fields', 'instance' => $item);\n }", "title": "" }, { "docid": "7002679564c4bd6ed2a37893b039b5d2", "score": "0.5410561", "text": "public function addChild(Vcgen_node $node)\n {\n $this->childNodes[] = $node;\n return $this;\n }", "title": "" }, { "docid": "92abb384f3efbfb8c5f3077d93d5c038", "score": "0.54046404", "text": "function childOf(&$Parent){\r\n\t\t$this->_Parent = & $Parent;\r\n\t}", "title": "" }, { "docid": "72578bdfdc78097573270d16b3ceab70", "score": "0.5403863", "text": "public function addNewChildAccount(Requests\\CreateChildRequest $request)\n\t{\n\n\t\t/* get the values from the form */\n\t\t$input['username'] = Request::get('username');\n\t\t$input['grade'] = Request::get('grade');\n\t\t$input['password']=Request::get('password');\n\t\t$input['parent_id']=Auth::user()->id;\n\t\t$input ['published_at']=Carbon::now();\n\t\t$input['childname']=Request::get('childname');\n\t\t$input['childlastname']=Request::get('childlastname');\n\t\t$input['type']='child';\n\t\t$input['email'] = Request::get('username');\n\n\t\t/*add details to the children table */\n\t\tChild::create($request->all());\n\n\t\t/* add details to the users table */\n\t\tUser::create([\n\t\t\t'name'=>$input['childname'],\n\t\t\t'email'=> $input['email'],\n\t\t\t'password'=>bcrypt($input['password']),\n\t\t\t'type'=>'child',\n\t\t]);\n\n\t\t/* Input the parent id */\n\t\tDB::table('children')\n\t\t\t->where('username','=',$input['username'])\n\t\t\t->update(['parent_id'=>$input['parent_id']]);\n\n\t\tMail::send\n\t\t(\n\t\t\t'mail/childAccountMail',\n\t\t\tarray('user'=>Auth::user()->name,\n\t\t\t\t'childname'=> $input['childname'],\n\t\t\t\t'childlastname'=> $input['childlastname'],\n\t\t\t\t'username'=>$input['email'],\n\t\t\t\t'password'=>$input['password']),\n\t\t\tfunction($message)\n\t\t\t{\n\t\t\t\t$message->to(Auth::user()->email,Auth::user()->name)->subject('Kids Corner');\n\t\t\t}\n\t\t);\n\n\t\tflash()->success('A child account was successfully created','Good Job');\n\t\treturn redirect('viewChildAccounts');\n\n\n\t}", "title": "" }, { "docid": "6d0ac90213d5b76327e36acd3144aa3a", "score": "0.5385257", "text": "public function add($item) {\n\t\tif(is_array($item)) {\n\t\t\t$this->importArray($item); \n\t\t} else {\n\t\t\t$item->setParent($this); \n\t\t\t$this->children->add($item); \n\t\t}\n\t\treturn $this; \n\t}", "title": "" }, { "docid": "5ae5e2ebd1d55a611d5670d1dd03c9ae", "score": "0.53747857", "text": "protected function add_update($child, $growth)\n {\n $this->height = max(($child->height + 1), $this->height);\n $this->size += $growth;\n if($this->parent)\n {\n $this->parent->add_update($this, $growth);\n } \n }", "title": "" }, { "docid": "eaf0a6d07035633696304205998687be", "score": "0.53677475", "text": "public function add(){\n\t\t\t$this->postObject = new Category();\n\t\t\t$categories = $this->postObject->getCategories();\n\t\t\t$this->set('categories',$categories);\n\n\t}", "title": "" }, { "docid": "f00e5298f017a8f866089990c9832d55", "score": "0.534657", "text": "function setObject( $path, &$holder, &$child )\r\n\t{\r\n\t\t$leafs = explode($this->separator, $path );\r\n\t\tif ( $leafs[0] == '' ) array_shift( $leafs );\r\n\t\tarray_shift( $leafs );\r\n\t\t$childName = array_pop( $leafs );\r\n\r\n\t\t$target = $holder;\r\n\t\tforeach( $leafs as $leaf ) {\r\n\t\t\tif ( $target === null ) { //create new leaf if not exists\r\n\t\t\t\t$target = new stdclass;\r\n\t\t\t\t$target->{$leaf} = new stdclass;\r\n\t\t\t}\r\n\t\t\t$target = $target->{$leaf};\r\n\t\t}\r\n\t\t$target->{$childName} = $child;\r\n\t\treturn $target;\r\n\t}", "title": "" }, { "docid": "0af7c8285edcffafaa1fe1048755ced2", "score": "0.53454876", "text": "public function getChildByName($name);", "title": "" }, { "docid": "9e965a650be3878ccfc7c0f006118b77", "score": "0.53297365", "text": "public function create()\n {\n $child = new Child;\n\n return view('children.create',[\n 'child'=>$child,\n ]); \n }", "title": "" }, { "docid": "6bfdd309944a644b32c2fd5c0e83f032", "score": "0.5322694", "text": "function add($child) {\n if (!($child instanceof TZIntellitimeLogger)) {\n throw new InvalidArgumentException(\"Must be of type TZIntellitimeLogger\");\n }\n $this->children[] = $child;\n }", "title": "" }, { "docid": "0b666dc60b935c5067f4945e473ff878", "score": "0.53107077", "text": "public function child($transaction_id, $child_id=null)\n {\n $order = Order::where('transaction_id', $transaction_id)->firstOrFail();\n\n if ($child_id) $child = Child::where('order_id', $order->id)->where('id', $child_id)->firstOrFail();\n else $child = new Child();\n\n $this->layout->content = \n View::make('orders/child')\n ->with('child', $child)\n ->with('order', $order)\n ->with('title', 'Order form')\n ->with('subtitle', 'add a child');\n }", "title": "" }, { "docid": "1a88d3c7b2dc14f9d3e8427d4a03963f", "score": "0.5285707", "text": "function Add($Title, $Description, $ParentID = null)\n\t{\n\t\tif ($ParentID === null)\n\t\t\t$ParentID = $this->RootID ();\n\t\treturn $this->{$this->Type ()}->InsertChildData ( array (\"Title\" => $Title, \"Description\" => $Description ), \"ID=?\", $ParentID );\n\t}", "title": "" }, { "docid": "6ff6830d259df32ca1a49bc8935ac782", "score": "0.5277599", "text": "public function add()\n\t{\n\n\t}", "title": "" }, { "docid": "6ff6830d259df32ca1a49bc8935ac782", "score": "0.5277599", "text": "public function add()\n\t{\n\n\t}", "title": "" }, { "docid": "6ff6830d259df32ca1a49bc8935ac782", "score": "0.5277599", "text": "public function add()\n\t{\n\n\t}", "title": "" }, { "docid": "1563042a815643e38d837b9dec6a3f89", "score": "0.52773184", "text": "public function addChildCommand(\\Framework\\CLI\\IArgumentCommand $command)\n\t{\n\t\t$this->_children[$command->getCommand()] = $command;\n\t}", "title": "" }, { "docid": "17284885a1872ceeb95dad567a5eac60", "score": "0.52769536", "text": "public function testAddChildReturnValue()\n {\n $this->setUp('a');\n\n $child = new Node('c');\n\n $node = $this->root->addChild($child);\n\n $this->assertSame($node, $this->root);\n }", "title": "" }, { "docid": "b54c331e61150fa39432d48af0099e52", "score": "0.52606124", "text": "public static function addChild(\\SimpleXMLElement $root, \\SimpleXMLElement $child)\n {\n $node = $root->addChild($child->getName(), (string) $child);\n foreach($child->attributes() as $attr => $value) {\n $node->addAttribute($attr, $value);\n }\n foreach($child->children() as $ch) {\n static::addChild($node, $ch);\n }\n }", "title": "" }, { "docid": "53de01d8169d2ccb3591c6ed8e0eb255", "score": "0.5241909", "text": "public function add() \n\t{\n\t}", "title": "" }, { "docid": "bcd8ffb0701c4d2476a700b0107d3d67", "score": "0.5237707", "text": "public function duplicateAsChild($id) {\n\t\t$newSiteTree = $this->duplicate();\n\t\t$newSiteTree->ParentID = $id;\n\t\t$newSiteTree->write();\n\t}", "title": "" }, { "docid": "37f27d0cc5fc89b31f3d007bf785d2d7", "score": "0.5234624", "text": "public function add()\n\t{\n\t}", "title": "" }, { "docid": "8c2b1d1e5a447246afce2346aec70159", "score": "0.5228466", "text": "public function add(){\n }", "title": "" }, { "docid": "742bdb0afb449ebc59b5f940ec8065b7", "score": "0.522692", "text": "public function setChild($value,$options=array('required'=>true)){ \n $this->_data['child'] = new ZendT_Type_Number($value,array('numDecimal'=>2));\n if ($options['db'])\n $this->_data['child']->setValueFromDb($value);\n \n if (!$options['db']){\n \n if ($options['required'])\n $this->isRequired($value,'child');\n \n }\n return $this;\n }", "title": "" }, { "docid": "779d7b7d50e4db7e58679f2168f90404", "score": "0.5219232", "text": "public function addChildren(ArrayCollection $collection);", "title": "" }, { "docid": "1ba03bc0cb1e1e5961c712e36918902d", "score": "0.5207766", "text": "protected function addNodeToDocument(Child $child)\n {\n $styles = $this->prepareNodeStyles($child->getNodeName(), $child->getAttributes());\n $currentX = $this->getCurrentX();\n\n if (null !== $this->yOverride) {\n $currentY = $this->yOverride;\n $this->yOverride = null;\n } else {\n $currentY = $this->getCurrentY();\n }\n\n $wrapLength = ($this->x > $this->pageMargins['left']) ?\n $this->page->getWidth() - $this->pageMargins['right'] - $this->x :\n $this->page->getWidth() - $this->pageMargins['right'] - $this->pageMargins['left'];\n\n // Image node\n if ($child->getNodeName() == 'img') {\n $image = Document\\Page\\Image::createImageFromFile($this->fileDir . '/' . $child->getAttribute('src'));\n $width = null;\n $height = null;\n $align = null;\n\n if ($child->hasAttribute('width')) {\n $width = (strpos($child->getAttribute('width'), '%')) ?\n $this->page->getWidth() * ((int)$child->getAttribute('width') / 100) : (int)$child->getAttribute('width');\n } else if ($child->hasAttribute('height')) {\n $height = (strpos($child->getAttribute('height'), '%')) ?\n $this->page->getHeight() * ((int)$child->getAttribute('height') / 100) : (int)$child->getAttribute('height');\n } else if (null !== $styles['width']) {\n $width = (strpos($styles['width'], '%')) ?\n $this->page->getWidth() * ((int)$styles['width'] / 100) : (int)$styles['width'];\n } else if (null !== $styles['height']) {\n $height = (strpos($styles['height'], '%')) ?\n $this->page->getHeight() * ((int)$styles['height'] / 100) : (int)$styles['height'];\n }\n\n if (null !== $width) {\n $image->resizeToWidth($width);\n } else if (null !== $height) {\n $image->resizeToHeight($height);\n }\n\n if (null === $height) {\n $height = (null !== $image->getResizedHeight()) ? $image->getResizedHeight() : $image->getHeight();\n }\n\n if ($child->hasAttribute('align')) {\n $align = strtoupper($child->getAttribute('align'));\n } else if (isset($styles['float'])) {\n $align = strtoupper($styles['float']);\n }\n\n if ($align == 'LEFT') {\n $box = [\n 'left' => $currentX,\n 'right' => $currentX + $width + ($styles['marginRight'] ?? 0),\n 'top' => $currentY,\n 'bottom' => $currentY - $height - ($styles['marginBottom'] ?? 0)\n ];\n $this->textWrap = new Document\\Page\\Text\\Wrap('RIGHT', $this->pageMargins['left'], $this->page->getWidth() - $this->pageMargins['right'], $box);\n } else if ($align == 'RIGHT') {\n $box = [\n 'left' => $this->page->getWidth() - $this->pageMargins['right'] - $width - ($styles['marginLeft'] ?? 0),\n 'right' => $this->page->getWidth() - $this->pageMargins['right'],\n 'top' => $currentY,\n 'bottom' => $currentY - $height - ($styles['marginBottom'] ?? 0)\n ];\n $this->textWrap = new Document\\Page\\Text\\Wrap('LEFT', $this->pageMargins['left'], $this->page->getWidth() - $this->pageMargins['right'], $box);\n }\n\n if (null !== $this->textWrap) {\n $newY = $currentY - ((null !== $image->getResizedHeight()) ? $image->getResizedHeight() : $image->getHeight());\n if ($align == 'RIGHT') {\n $this->page->addImage($image, ($this->page->getWidth() - $this->pageMargins['right'] - $width), $newY);\n } else {\n $this->page->addImage($image, $currentX, $newY);\n }\n $currentY -= $styles['lineHeight'];\n $this->y += $styles['lineHeight'];\n } else {\n $currentY -= (null !== $image->getResizedHeight()) ? $image->getResizedHeight() : $image->getHeight();\n $this->y += (null !== $image->getResizedHeight()) ? $image->getResizedHeight() : $image->getHeight();\n $this->page->addImage($image, $currentX, $currentY);\n $currentY -= $styles['lineHeight'];\n $this->y += $styles['lineHeight'];\n }\n // Table node\n } else if ($child->getNodeName() == 'table') {\n $tableWidth = $this->page->getWidth() - $this->pageMargins['left'] - $this->pageMargins['right'];\n $columnCount = count($child->getChild(0)->getChildNodes());;\n $rowCount = 0;\n $columnWidth = floor($tableWidth / $columnCount);\n $fontObject = $this->document->getFont($styles['currentFont']);\n $currentRow = 0;\n $currentX = $this->pageMargins['left'] + 10;\n $thHeight = 0;\n $offset = 0;\n $startY = $currentY;\n\n foreach ($child->getChildNodes() as $childNode) {\n if (($childNode->getNodeName() == 'tr') && ($childNode->hasChildNodes())) {\n foreach ($childNode->getChildNodes() as $grandChild) {\n if ($grandChild->getNodeName() == 'th') {\n $thString = $grandChild->getNodeValue();\n\n $thStringWidth = $fontObject->getStringWidth($thString, $styles['fontSize']);\n if ($thStringWidth > ($columnWidth - 20)) {\n $strings = $this->getStringLines($thString, $styles['fontSize'], $columnWidth - 20, $fontObject);\n foreach ($strings as $i => $string) {\n $text = new Document\\Page\\Text($string, $styles['fontSize']);\n $this->page->addText($text, $styles['currentFont'], $currentX, ($currentY - ($styles['fontSize'] * $i)));\n }\n $newThHeight = (count($strings) * $styles['fontSize']) + 20;\n if ($newThHeight > $thHeight) {\n $thHeight = $newThHeight;\n $offset = $thHeight - 30;\n }\n } else {\n $text = new Document\\Page\\Text($thString, $styles['fontSize']);\n $this->page->addText($text, $styles['currentFont'], $currentX, $currentY);\n }\n $currentX += $columnWidth;\n }\n }\n }\n }\n\n foreach ($child->getChildNodes() as $childNode) {\n if (($childNode->getNodeName() == 'tr') && ($childNode->hasChildNodes())) {\n $rowCount++;\n $currentX = $this->pageMargins['left'] + 10;\n foreach ($childNode->getChildNodes() as $grandChild) {\n if ($grandChild->getNodeName() == 'td') {\n $text = new Document\\Page\\Text($grandChild->getNodeValue(), $styles['fontSize']);\n $this->page->addText($text, $styles['currentFont'], $currentX, $currentY - $offset);\n $currentX += $columnWidth;\n }\n }\n $currentY -= 25;\n }\n }\n\n $currentY += 15;\n $x1 = $this->pageMargins['left'];\n/*\n\n $finalHeight = (25 * $rowCount);\n $path = new Document\\Page\\Path();\n $path->drawRectangle($x1, $currentY, $tableWidth, $finalHeight);\n $this->page->addPath($path);\n\n for ($i = 1; $i < $columnCount; $i++) {\n $path = new Document\\Page\\Path();\n $path->drawLine($x1 + ($i * $columnWidth), $currentY, $x1 + ($i * $columnWidth), $this->page->getHeight() - $finalHeight + 35);\n $this->page->addPath($path);\n }\n */\n\n for ($i = 0; $i < $rowCount; $i++) {\n if (($i == 0) && ($thHeight > 0)) {\n $lineY = $startY - $thHeight + 20;\n } else {\n $lineY = ($startY - ($i * 25) - 10) - $offset;\n }\n $path = new Document\\Page\\Path();\n $path->drawLine($x1, $lineY, $tableWidth + $this->pageMargins['left'], $lineY);\n $this->page->addPath($path);\n /*\n if (($i == 1) && ($thHeight > 0)) {\n $lineY = ($currentY + ($i * 25));\n } else {\n $lineY = ($currentY + ($i * 25));\n }\n $path = new Document\\Page\\Path();\n $path->drawLine($x1, $lineY, $tableWidth + $this->pageMargins['left'], $lineY);\n $this->page->addPath($path);\n */\n }\n\n\n // Text node\n } else {\n if (null !== $this->textWrap) {\n $box = $this->textWrap->getBox();\n if ($this->textWrap->isRight()) {\n $startX = $box['right'];\n $startY = $box['top'] - $styles['fontSize'];\n $edgeX = $wrapLength;\n $edgeY = $box['bottom'];\n } else {\n $startX = $currentX;\n $startY = $box['top'] - $styles['fontSize'];\n $edgeX = $box['left'] - 40;\n $edgeY = $box['bottom'];\n }\n } else {\n $startX = $currentX;\n $startY = $currentY;\n $edgeX = $wrapLength;\n $edgeY = $this->pageMargins['bottom'];\n }\n\n $textStream = new Document\\Page\\Text\\Stream($startX, $startY, $edgeX, $edgeY);\n $textStream->setCurrentStyle(\n $styles['currentFont'],\n $styles['fontSize'],\n new Document\\Page\\Color\\Rgb($styles['color'][0], $styles['color'][1], $styles['color'][2])\n );\n $streamY = $styles['lineHeight'] ?? null;\n $textStream->addText($child->getNodeValue(), $streamY);\n\n if ($child->hasChildNodes()) {\n foreach ($child->getChildNodes() as $grandChild) {\n $gcStyles = $this->prepareNodeStyles($grandChild->getNodeName(), $grandChild->getAttributes(), $styles);\n $textStream->setCurrentStyle(\n $gcStyles['currentFont'],\n $gcStyles['fontSize'],\n new Document\\Page\\Color\\Rgb($gcStyles['color'][0], $gcStyles['color'][1], $gcStyles['color'][2])\n );\n $streamY = $gcStyles['lineHeight'] ?? null;\n $textStream->addText($grandChild->getNodeValue(), $streamY);\n }\n }\n\n $this->page->addTextStream($textStream);\n\n $orphanStream = clone $textStream;\n $hasOrphans = false;\n\n while ($orphanStream->hasOrphans($this->document->getFonts())) {\n $orphanStream = $orphanStream->getOrphanStream();\n if ($orphanStream->getCurrentY() <= $this->pageMargins['bottom']) {\n $currentY = $this->newPage();\n $orphanStream->setCurrentY($currentY);\n } else {\n $orphanStream->setStartX($this->pageMargins['left']);\n $orphanStream->setEdgeX($wrapLength);\n $orphanStream->setEdgeY($this->pageMargins['bottom']);\n }\n\n $orphanStream->setCurrentX($currentX);\n $this->page->addTextStream($orphanStream);\n\n $orphanStream = clone $orphanStream;\n $hasOrphans = true;\n }\n\n if ($hasOrphans) {\n $this->yOverride = $orphanStream->getCurrentY();\n } else {\n $this->yOverride = null;\n $this->y += (!empty($styles['marginBottom'])) ? $styles['marginBottom'] : 25;\n }\n }\n }", "title": "" }, { "docid": "c29c1ccaa88e383851318fc890bf604e", "score": "0.5202501", "text": "public function addText(string $text){\n array_push($this->childs, $text);\n }", "title": "" }, { "docid": "7357b30c70cdc6959c662dd822aebf37", "score": "0.51732224", "text": "public function setchild(&$tree,$idx=-1)\r\n {\r\n if($idx<0)$idx=$this->key();\r\n $item = &$this->items[$idx];\r\n $item[$this->childfieldidx]=$tree->handle;\r\n $tree->parentc=$this->handle;\r\n $tree->parenti=$idx;\r\n }", "title": "" }, { "docid": "8bc78f2148c45fdeec30b168b4ea61d5", "score": "0.5169695", "text": "public function makeChildOf($node) {\n return $this->moveTo($node, 'child');\n }", "title": "" }, { "docid": "6c2fbf4bca0573be7c6224c29c93dbb2", "score": "0.51427484", "text": "public function addChildCommand( $url, $image, $text, $conditions = array(), $params = array() )\n {\n $conditions[] = 'child';\n $this->addCommand( $url, $image, $text, $conditions, true, false, $params );\n }", "title": "" }, { "docid": "4362516a57531c402ee9a4966d609242", "score": "0.51315224", "text": "function addElement($ref) {\n $this->element[]=&$ref;\n $ref->setContainer($this);\n if (strtolower(get_class($ref))==\"synowner\") $this->ownerField=$ref->name;\n }", "title": "" }, { "docid": "8cb7b7c6f2efb4f571f997ea47d8eb0d", "score": "0.51284915", "text": "public function addParent($value)\n {\n $this->parents[] = $value;\n }", "title": "" }, { "docid": "f2ac630fa957544bde090986d46a2e6e", "score": "0.5121807", "text": "public function actionAddChildItem($parent,$child,$type){\r\n $response = array();\r\n if(!Yii::app()->request->isAjaxRequest){\r\n throw new CHttpException(400,'Bad Request');\r\n }\r\n if($parent===$child){\r\n $response['Message']=$child.' Cannot Assign Item To Itself';\r\n if($type==2){\r\n echo CJSON::encode($response);\r\n }else{\r\n echo CJSON::encode($response);\r\n }\r\n }else{\r\n $model = Yii::app()->authManager->getAuthItem($parent);\r\n if(empty($model)){\r\n $model = Yii::app()->authManager->createAuthItem($parent, $type,$parent,NULL, NULL);\r\n }\r\n $childName = urldecode($child);\r\n $childitem = Yii::app()->authManager->getAuthItem($child);\r\n if(empty($childitem)){\r\n $childitem = Yii::app()->authManager->createAuthItem($child, $type, $child,NULL, NULL);\r\n }\r\n if( $childName!==null && $model->hasChild($childName)==false ){\r\n try{\r\n $model->addChild($childName);\r\n $response['Message']=$child.' Child Assigned';\r\n }catch(Exception $e){\r\n $response['Message']=$e->getMessage();\r\n }\r\n\r\n }else{\r\n $response['Message']=$child.' Child Already Assigned';\r\n }\r\n // if AJAX request, we should not redirect the browser\r\n if(isset($_POST['ajax'])===false)\r\n if($type==2){\r\n \r\n echo CJSON::encode($response);\r\n }else{\r\n echo CJSON::encode($response);\r\n //$this->renderPartial('_availableactions',array('availableactions'=>$availableactions,'filtersForm'=>$filtersForm,'model'=>$role),false,true);\r\n //$this->redirect(array('editRole?role='.$parent.'#yw2_tab_1'));\r\n }\r\n }\r\n }", "title": "" }, { "docid": "fc638f4477164d6452db9b404522b2f1", "score": "0.5121499", "text": "public function ycRegisterChild(&$childref,$c_uuid) {\n\t\t$this->$_yc_children[$c_uuid] &= $childref;\n\t}", "title": "" } ]
60421cfa64084d8cdb47c50094a51e43
convert topic_id to topic name
[ { "docid": "e51883f6821943f7de3cdb0a8fe3be00", "score": "0.6711361", "text": "function idToTopic($topic_id) {\n\n global $db, $newsapi;\n\n $query = \"SELECT topic FROM topics WHERE topic_id = :topic_id\";\n $statement = $db->prepare($query);\n $statement->bindValue(':topic_id', $topic_id);\n $statement->execute();\n $topic_name = $statement->fetch();\n $statement->closeCursor();\n\n return $topic_name['topic'];\n}", "title": "" } ]
[ { "docid": "784bd542ba4894420e6b4b45bc603d3a", "score": "0.73273224", "text": "public function FldrName() {\n\treturn sprintf(KS_FMT_TOPICID,$this->KeyValue());\n }", "title": "" }, { "docid": "421008d9779d45fb2f4c45c32e69d6cd", "score": "0.69265914", "text": "function getTopicNameById($id)\n{\n\tglobal $con;\n\t$sql = \"SELECT name FROM topics WHERE id=$id\";\n\t$result = mysqli_query($con, $sql);\n\t$topic = mysqli_fetch_assoc($result);\n\treturn $topic['name'];\n}", "title": "" }, { "docid": "ef3d7fe4a1c7e51e4cebe155641f9241", "score": "0.67343974", "text": "public static function topicName($project, $topic)\n {\n return self::getTopicNameTemplate()->render([\n 'project' => $project,\n 'topic' => $topic,\n ]);\n }", "title": "" }, { "docid": "d543e2b3d0d7b276e0ddc56fd75d4db6", "score": "0.6715738", "text": "function _topic_new_msg ($topic_id) {\n\t\treturn main()->USER_ID ? (is_array($this->topic_watch) && array_key_exists($topic_id, $this->topic_watch) ? 'N' : '-') : '-';\n\t}", "title": "" }, { "docid": "cabf03d2f9e0a0c92eac5ff0ff1f1f32", "score": "0.6610572", "text": "public function topicNameToQueue(string $topic): string;", "title": "" }, { "docid": "01f1ae6a11af6e6a37d04a73f0d27cc3", "score": "0.6528771", "text": "public function getTopicName()\n {\n return $this->topicName;\n }", "title": "" }, { "docid": "8956ff7c6a0add4767d2f12ec59a419d", "score": "0.643583", "text": "public function getIdTopic()\n {\n return $this->idTopic;\n }", "title": "" }, { "docid": "dcb2b888d7b3fc4ba9e9ef0a80cfd305", "score": "0.6416294", "text": "public function getTopicSlug()\n {\n return Topic::where('id', $this->content_id)->first()->slug;\n }", "title": "" }, { "docid": "a910b1e3d1911251c360722a6ed5f5f0", "score": "0.63769734", "text": "public function getTopicIdentifier()\n {\n if (array_key_exists(\"topicIdentifier\", $this->_propDict)) {\n return $this->_propDict[\"topicIdentifier\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "5100d75e831879bc5042e030417c3855", "score": "0.6288692", "text": "public function getTopicId()\n {\n return (int)$this->topic_id;\n }", "title": "" }, { "docid": "0a7bf649f451b183291ffb254c92f672", "score": "0.6256105", "text": "function sn_mqtt_get_topic($pkt)\r\n{\r\n\t$msg_type = bin2int($pkt[0], 0, 1) >> 4;\r\n\r\n\tif($msg_type != MQTT_CTRL_PUBLISH)\r\n\t\treturn \"\";\r\n\r\n\t$remain_length = sn_mqtt_decode_length($pkt);\r\n\t$var_head_pos = strlen($pkt) - $remain_length;\r\n\t$pointer = $var_head_pos;\r\n\t$msb = bin2int($pkt[$pointer++], 0, 1);\r\n\t$lsb = bin2int($pkt[$pointer++], 0, 1);\r\n\t$topic_length = ($msb << 8) + $lsb;\r\n\r\n\t$topic = substr($pkt, $pointer, $topic_length);\r\n\r\n\treturn $topic;\r\n}", "title": "" }, { "docid": "7e09f55ef4f75b8fb32a4a8851f2c05c", "score": "0.618113", "text": "public function get_catid_title_tuid($topic_id) {\n\t\t$topic_id = ( int ) $topic_id;\n\t\t\n\t\t$qry = 'SELECT cat_id,title,uid AS tuid FROM ' . PREFIX . 'codo_topics WHERE topic_id=' . $topic_id;\n\t\t$res = $this->db->query ( $qry );\n\t\t\n\t\tif ($res) {\n\t\t\t\n\t\t\t$result = $res->fetch ();\n\t\t\treturn $result;\n\t\t}\n\t\t\n\t\treturn false; // an error occured\n\t}", "title": "" }, { "docid": "4057d1d7486a1b0b42a9d70a6248b0e5", "score": "0.6146165", "text": "public static function getTopicById($id) {\n $topic = TopicAbm::listTopics(array('idTopic' => $id));\n return $topic;\n }", "title": "" }, { "docid": "a4a65b153a54612aeeb76c47403030bc", "score": "0.6100891", "text": "public function getRelatedBundlesTopicTitle($slp_id){\n\t\t\n\t\tforeach ($this->_collective->related_bundles->bundle as $bundle){\n\t\t\t\n\t\t\tif($bundle->id==$slp_id){\n\t\t\t\t\n\t\t\t\t$bundleTitle = $bundle->topic_title;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\n\t\treturn $bundleTitle;\n\t}", "title": "" }, { "docid": "7da12aa94c9d9c0b396ddb08b8742e2c", "score": "0.60871166", "text": "protected function render_topic($topic){\r\n\t\treturn \"<b><u>\". htmlspecialchars($topic) . \": </b></u><br>\";\r\n\t}", "title": "" }, { "docid": "ce6431872e60bb96822deaff57875b8f", "score": "0.5952114", "text": "public function get_topic_author( $topic_id = '' ) {\n\n\t\t\tglobal $wpdb;\n\n\t\t\t$db = SFTOPICS;\n\n\t\t\treturn $wpdb->get_var( $wpdb->prepare( \"SELECT user_id FROM {$db} WHERE topic_id = %d;\", $topic_id ) );\n\n\t\t}", "title": "" }, { "docid": "de4b1ce76ac229e8f517e07522d702ad", "score": "0.59477353", "text": "function getTopicIdByName($name)\n{\n\tglobal $con;\n\t$sql = \"SELECT id FROM topics WHERE name='$name'\";\n\t$result = mysqli_query($con, $sql);\n\t$topic = mysqli_fetch_assoc($result);\n\treturn $topic['id'];\n}", "title": "" }, { "docid": "00c0648781c779316489f3817e09fc10", "score": "0.5883949", "text": "public function getTopicConstant()\n {\n return isset($this->topic_constant) ? $this->topic_constant : '';\n }", "title": "" }, { "docid": "9b9afe33eb7e52f4cd722b10fee3991e", "score": "0.587458", "text": "public function getName(): string\n {\n return 'topics';\n }", "title": "" }, { "docid": "ba7a2bf6067ff01d7c90e5c33fac8589", "score": "0.5822703", "text": "public function getTopic() {\n\t\treturn isset($this['topic']) ? $this['topic'] : 0;\n\t}", "title": "" }, { "docid": "36a3ec592022460ccd35872e9598378f", "score": "0.5808496", "text": "public function transformName()\n {\n if ($this->shortGridIdentifier === null) {\n return Str::slug(Str::singular($this->getId()), '_');\n }\n\n return $this->shortGridIdentifier;\n }", "title": "" }, { "docid": "c241e316258962301bbf65437d7e116e", "score": "0.57608855", "text": "public function topic()\n {\n return $this->metadata['topic'] ?? null;\n }", "title": "" }, { "docid": "27df40b6a6d8d1c5be1e860ee95faeeb", "score": "0.5756282", "text": "function sf_create_name_extract($name)\r\n{\r\n\t$name=apply_filters('sf_show_topic_title', $name);\r\n\t$name = stripslashes($name);\r\n\tif(strlen($name) > 35) $name = substr($name, 0, 35).'...';\r\n\treturn $name;\r\n}", "title": "" }, { "docid": "1055621e71a1b2d60e37844ed73a75bf", "score": "0.5755492", "text": "function _forum_new_msg ($forum_id) {\n\t\treturn main()->USER_ID ? (is_array($this->topic_watch) && in_array($forum_id, $this->topic_watch) ? 'N' : '-') : '-';\n\t}", "title": "" }, { "docid": "eab009fd733233c7e3e7ba63a98a5849", "score": "0.57542086", "text": "public function getTopic()\n {\n return $this->topic;\n }", "title": "" }, { "docid": "eab009fd733233c7e3e7ba63a98a5849", "score": "0.57542086", "text": "public function getTopic()\n {\n return $this->topic;\n }", "title": "" }, { "docid": "eab009fd733233c7e3e7ba63a98a5849", "score": "0.57542086", "text": "public function getTopic()\n {\n return $this->topic;\n }", "title": "" }, { "docid": "eab009fd733233c7e3e7ba63a98a5849", "score": "0.57542086", "text": "public function getTopic()\n {\n return $this->topic;\n }", "title": "" }, { "docid": "50ad4b48c599adb06346223a0a164841", "score": "0.575168", "text": "public function getTopic($topic_id){\n \t$this->db->query(\"SELECT topics.* , users.username, users.name, users.avatar FROM topics\n \t\t\t\t\t INNER JOIN users\n \t\t\t\t\t ON topics.user_id = users.id\n \t\t\t\t\t WHERE topics.id = :id\");\n \t$this->db->bind(':id' , $topic_id);\n \t$row = $this->db->single();\n \treturn $row;\n }", "title": "" }, { "docid": "d1aeb3e41fb74eb55db462d8bf2f3000", "score": "0.5703065", "text": "function bbps_modify_title($title, $topic_id = 0){\n\t$topic_id = bbp_get_topic_id( $topic_id );\n\t$title = \"\";\n\t$topic_author_id = bbp_get_topic_author_id();\n\tglobal $current_user;\n\tget_currentuserinfo();\n\t$user_id = $current_user->ID;\n\t\n\t$claimed_user_id = get_post_meta($topic_id, '_bbps_topic_claimed', true);\n\t\tif($claimed_user_id > 0){\n\t\t\t$user_info = get_userdata ($claimed_user_id);\n\t\t\t$claimed_user_name = $user_info->user_login;\n\t\t}\n\n\t//2 is the resolved status ID\n\tif (get_post_meta( $topic_id, '_bbps_topic_status', true ) == 2)\n\t\techo '<span class=\"label label-success\">Resolved</span>';\n\t//we only want to display the urgent topic status to admin and moderators\n\tif (get_post_meta( $topic_id, '_bbps_urgent_topic', true ) == 1 && (current_user_can('administrator') || current_user_can('bbp_moderator')))\n\t\techo '<span class=\"label label-warning\">Urgent</span>';\n\t//claimed topics also only get shown to admin and moderators and the person who owns the topic\n\tif (get_post_meta( $topic_id, '_bbps_topic_claimed', true ) > 0 && (current_user_can('administrator') || current_user_can('bbp_moderator') || $topic_author_id == $user_id ) ){\n\t\t//if this option == 1 we display the users name not [claimed]\n\t\tif( get_option( '_bbps_claim_topic_display' ) == 1)\n\t\t\techo '<span class=\"label label-info\">['. $claimed_user_name . ']</span>';\n\t\telse\n\t\t\techo '<span class=\"label label-info\">Claimed</span>';\n\t}\n}", "title": "" }, { "docid": "53f792aa510f0422df6101c4422f1c5b", "score": "0.5689081", "text": "public function getTopic() {\n return $this->topic;\n }", "title": "" }, { "docid": "b41caf374a83673fb5b14f9b900e1e1c", "score": "0.56354684", "text": "function get_forum_id($topic_id)\n\t{\n\t\tglobal $db, $lang;\n\n\t\t$sql = \"SELECT forum_id FROM \" . TOPICS_TABLE . \" WHERE topic_id = \" . $topic_id;\n\t\t$result = $db->sql_query($sql);\n\t\tif ($row = $db->sql_fetchrow($result))\n\t\t{\n\t\t\t$forum_id = $row['forum_id'];\n\t\t\t$db->sql_freeresult($result);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $forum_id;\n\t}", "title": "" }, { "docid": "4e0da238c77c6f40e0823d2ed61ee31c", "score": "0.56283516", "text": "public function manage_topic(Request $request,$id){\n\t\t\n\t\t$paramArray = explode(\"-\",$id);\n\t\t$id = $paramArray[0];\n\t\t$objection = isset($paramArray[1]) ? $paramArray[1] : null;\n\t\t\n\t\t$topic = Topic::where('id',$id)->first();\n \n $nickNames = Nickname::personNickname();\n\t\t$request->merge(['namespace'=>$topic->namespace_id]);\n\t\tif(!count($topic)) return back();\n $namespaces= Namespaces::all();\n\t\t\n\t\treturn view('topics.managetopic', compact('topic','objection','nickNames','namespaces'));\n\t\t\n\t}", "title": "" }, { "docid": "c33fb71d1c6818452088f885043fcc18", "score": "0.56197697", "text": "public function getTopic(): string|null\n {\n if (!$this->hasTopic()) {\n $this->setTopic($this->getDefaultTopic());\n }\n return $this->topic;\n }", "title": "" }, { "docid": "7fb68cbead58ebca41bda990a10a1a15", "score": "0.5596708", "text": "public function get_reference()\n {\n $topic_title = '\"' . $this->get_data(\"post_subject\") . '\"';\n return $topic_title;\n }", "title": "" }, { "docid": "e043012ab9b1ecf187455aa5934a8af8", "score": "0.55849814", "text": "public function getName()\n {\n return 'chat.channel.topic';\n }", "title": "" }, { "docid": "08f6131a10c40fd9beef0ec8728e039f", "score": "0.5575175", "text": "public function topicCreated($topic);", "title": "" }, { "docid": "f281e54620cf47e7154e36b7e469b2e0", "score": "0.55503905", "text": "public function createTopic();", "title": "" }, { "docid": "1ec243b6de473e07743566dd2ee7cf8c", "score": "0.55488604", "text": "private function getTableNameFromIdName($id){\n\t\t$temp = explode(\"_\", $id);\n\t\treturn $temp[0];\n\t}", "title": "" }, { "docid": "adece3b6448df48c3b86986104a34056", "score": "0.5528442", "text": "public function getTopicForPost(int $postId)\n {\n $post = $this->getPost($postId);\n return $post->topic->slug;\n }", "title": "" }, { "docid": "1d3a54123a6b22c2e2bbfe9ff69392a8", "score": "0.55196875", "text": "function getTitleForNodeId($a_id) {\n\t\treturn ilObject::_lookupTitle(ilObject::_lookupObjId($a_id));\n\t}", "title": "" }, { "docid": "21e7a03edc480f31343557fbb9a23c8e", "score": "0.5513942", "text": "public function topic($topic_name)\n {\n $application = Drush::getApplication();\n $input = new ArrayInput([$topic_name], null);\n return $application->run($input);\n }", "title": "" }, { "docid": "4a38a9e39366993dfa24b3dace7f9427", "score": "0.5500894", "text": "function getTitleForNodeId($a_id)\n\t{\n\t\t$c = $this->getTitleModifier();\n\t\tif (is_callable($c))\n\t\t{\n\t\t\treturn $c($a_id);\n\t\t}\n\t\treturn ilObject::_lookupTitle(ilObject::_lookupObjId($a_id));\n\t}", "title": "" }, { "docid": "29346c969029730e3ca0ceb29d5b2d8d", "score": "0.54904634", "text": "function topic_by_id($id)\r\n\t{\r\n\t$sql = \"SELECT * FROM categories WHERE id='$id' LIMIT 1\";\r\n\t$query = $this->db->query($sql);\r\n\t\tif ($query->num_rows == 0) {\r\n\t\t\treturn 0;\r\n\t\t} else {\r\n\t\t\t$row = $query->fetch_assoc();\r\n\t\t\treturn $row;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "04050e4db839fccbc97812753a205981", "score": "0.54565024", "text": "function getPostTopic($post_id){\n\tglobal $con;\n\t$sql = \"SELECT * FROM topics WHERE id=\n\t\t\t(SELECT topic_id FROM post_topic WHERE post_id=$post_id) LIMIT 1\";\n\t$result = mysqli_query($con, $sql);\n\t$topic = mysqli_fetch_assoc($result);\n\treturn $topic;\n}", "title": "" }, { "docid": "01a708ca7db070192214f77d23dbac9a", "score": "0.5456363", "text": "public function getTopic()\n {\n return isset($this->topic) ? $this->topic : null;\n }", "title": "" }, { "docid": "fb9e8badb81946268cdf38116e7a120c", "score": "0.5441613", "text": "function get_category_name_from_id($id) {\n global $pdo;\n $query = \"SELECT * FROM categories WHERE cat_id = :cid\";\n $stmt = $pdo->prepare($query);\n $stmt->execute(array(':cid' => $id));\n $cat_row = $stmt->fetch(PDO::FETCH_ASSOC);\n return $cat_row['cat_title'];\n }", "title": "" }, { "docid": "728e0bc63246883b5f53aeceb5cbec00", "score": "0.5428719", "text": "function build_id( $id )\n\t{\n\t\tif( strpos( $id, '_', 0 ) !== 0 )\n\t\t\t$id = '_' . $id;\n\n\t\treturn $id;\n\t}", "title": "" }, { "docid": "f129803e1623132650693c395b7ce983", "score": "0.54039645", "text": "public function setTopicIdentifier($val)\n {\n $this->_propDict[\"topicIdentifier\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "2adb8f5e6000cccc4140912681bcb6d2", "score": "0.5402012", "text": "function event_onNewTopic($topicId) {\r\n\t\t$null = null;\r\n\r\n\t\t$this->initPaginateInfos(true);\r\n\r\n\t\t$this->parent->pp_playHookObjList('forum_event_onNewTopic', $null, $this);\r\n\r\n\t\t$this->event_onUpdateInForum();\r\n\t}", "title": "" }, { "docid": "66c070485b8d85081e6873deb86f413a", "score": "0.53922397", "text": "function fetch_article_title_plain($id)\r\n\t{\r\n\t\tglobal $ilance;\r\n\t\t\r\n\t\t$retstr = '';\r\n\t\t\r\n\t\t$result = $ilance->db->query(\"\r\n\t\t\tSELECT subject\r\n\t\t\tFROM \" . DB_PREFIX . \"kbposts\r\n\t\t\tWHERE postsid = '\" . intval($id) . \"'\r\n\t\t\", 0, null, __FILE__, __LINE__);\r\n\t\tif ($obj = $ilance->db->fetch_object($result))\r\n\t\t{\r\n\t\t\t$retstr = stripslashes($obj->subject);\r\n\t\t}\r\n\t\t\r\n\t\treturn $retstr;\r\n\t}", "title": "" }, { "docid": "a30ce95926b54d1a9d1606afba4102f9", "score": "0.5372295", "text": "public static function idToName($id) {\n return DB::queryFirstField(\"SELECT \".Emu::Get('table.Users.username').\" FROM \".Emu::Get('tablename.Users').\" WHERE id =%i LIMIT 1\", $id);\n }", "title": "" }, { "docid": "7c27eebe95a2b4d33737bad3e23636b3", "score": "0.53702706", "text": "public function setIdTopic($idTopic)\n {\n $this->idTopic = $idTopic;\n\n return $this;\n }", "title": "" }, { "docid": "4f1979cd049bac04ed23f29f67d459e0", "score": "0.5370049", "text": "public function topicData($topicid) \n{\n\t$query = $this->dbh->prepare('SELECT * FROM `topics` WHERE `id`= ?');\n\t$query->bindValue(1, $topicid);\n\ttry\n\t{\n\t\t$query->execute();\n\t\treturn $query->fetch();\n\t} \n\tcatch(PDOException $e)\n\t{\n\t\tdie($e->getMessage());\n\t}\n}", "title": "" }, { "docid": "3213e64743ee5807846f1e44885a18d6", "score": "0.53662694", "text": "public function getName()\n {\n return 'course.notification.topic';\n }", "title": "" }, { "docid": "ef20e25dcd3f59a73616c8c450b7c22d", "score": "0.53646696", "text": "function fetch_article_title($id)\r\n\t{\r\n\t\tglobal $ilance;\r\n\t\t\r\n\t\t$retstr = '';\r\n\t\t\r\n\t\t$result = $ilance->db->query(\"\r\n\t\t\tSELECT subject\r\n\t\t\tFROM \" . DB_PREFIX . \"kbposts\r\n\t\t\tWHERE postsid = '\" . intval($id) . \"'\r\n\t\t\", 0, null, __FILE__, __LINE__);\r\n\t\tif ($obj = $ilance->db->fetch_object($result))\r\n\t\t{\r\n\t\t\t$retstr = '<strong>' . stripslashes($obj->subject) . '</strong>';\r\n\t\t}\r\n\t\t\r\n\t\treturn $retstr;\r\n\t}", "title": "" }, { "docid": "c956e2312b1032c798f0d42a20631165", "score": "0.5346087", "text": "public function getSoftwareTopicPhotoTitle(){\n\t\treturn $this->_collective->software_topic_photo->title;\n\t}", "title": "" }, { "docid": "2dad1d90f1ccb48289581dc57c440f97", "score": "0.53454727", "text": "public function getTopics($idtopic)\n {\n\n $this->db->where('id_cat', $idtopic);\n return $this->db->get(\"ac_discussion_thread\");\n }", "title": "" }, { "docid": "f3dc6381e5668184dc1cc514c1e4cd6f", "score": "0.5328111", "text": "public static function api_topic_templet(&$topic=array()){\n $str = <<<EOF\n <div class=\"ui header\">\n <a class=\"ui small avatar image\"><img src=\"{$topic['user']['home_url']}\" alt=\"{$topic['user']['nickname']}\"></a>\n <div class=\"content\">\n {$topic['title']}\n <div class=\"sub header attribute\">\n <span class=\"category\"><a href=\"{app_url_topic}/c{$topic['category']['_id']}\" class=\"ui magenta link\">{$topic['category']['title']}</a></span>&nbsp;|\n <span>{$topic['user']['nickname']} 发表于 {$topic['created_on_format']}</span>&nbsp;|\n <span>浏览数: {$topic['view_count']}</span>\n </div>\n </div>\n </div>\n <div class=\"course\">\n <div class=\"cont\">\n {$topic['description']}\n </div>\t\t\t\t\t\n </div>\nEOF;\n return self::api_templet($str);\n }", "title": "" }, { "docid": "e122555deb513b2161f7473e7c0ec1e7", "score": "0.53200525", "text": "public function topicDestination(string $topic): Topic\n {\n $context = $this->context();\n $topic = $context->createTopic($topic);\n\n if ($topic instanceof AmqpTopic) {\n $topic->setType(AmqpTopic::TYPE_FANOUT);\n $topic->addFlag(AmqpTopic::FLAG_DURABLE);\n }\n\n if ($this->config['auto_declare'] && $context instanceof AmqpContext) {\n $context->declareTopic($topic);\n }\n\n return $topic;\n }", "title": "" }, { "docid": "3e24e68eb47f805767e824199428c720", "score": "0.5318206", "text": "function getNamespaceNameFromId($id) {\n global $wgContLang, $wgExtraNamespaces;\n $namespace = \"\";\n if(isset($wgExtraNamespaces[$id])) {\n $namespace = $wgExtraNamespaces[$id] . \":\";\n } elseif($id == 0) {\n $namespace = \"\";\n } else {\n $namespace = $wgContLang->getNsText($id) . \":\";\n }\n return $namespace;\n }", "title": "" }, { "docid": "427bed5927f11fc62fde58aff8c33505", "score": "0.531444", "text": "public function topicType($type = null) {\n\t\tif (!$type) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$types = $this->options('topicTypes');\n\n\t\treturn $this->output('<strong>' . $types[$type] . '</strong>');\n\t}", "title": "" }, { "docid": "58d75b082fb6fb25b45171fc122a35c5", "score": "0.5304496", "text": "public function getTopic()\n {\n if (!$this->isPropertyAvailable(\"Topic\")) {\n return null;\n }\n return $this->getProperty(\"Topic\");\n }", "title": "" }, { "docid": "d9dbb0619cfee80d913ae71c0d13ca51", "score": "0.5267636", "text": "public static function getNameFromFolder($id)\n {\n $data = explode('/', $id);\n switch ($data[sizeof($data) - 1]) {\n case 'jingles':\n return 'My Jingles';\n break;\n case 'beds':\n return 'My Beds';\n break;\n case 'links':\n return 'My Links';\n break;\n case 'sfx':\n return 'My Sound Effects';\n break;\n case 'other':\n return 'My Misc Things';\n break;\n default:\n return 'ERR_USR_PRESET_NOT_FOUND: '.$id;\n break;\n }\n }", "title": "" }, { "docid": "491afed5dbc59df4f69c0c67ee4aa496", "score": "0.5267414", "text": "function getCategoryName($id)\n\t{\n\t\t$sql = \"SELECT name FROM ia32_category WHERE id = '\".stripquotes($id).\"'\";\n\t\t$recs = $this->db32select($sql);\n\n\t\treturn $recs[0]['name'];\n\t}", "title": "" }, { "docid": "08d4a4a72f6e89eb4b0c51d100899e67", "score": "0.5258837", "text": "public function setTopic($topic) {\n\t\t$this['topic'] = (int) $topic;\n\t}", "title": "" }, { "docid": "f3da0efa4532e6c6a4118c21efa27cd5", "score": "0.525488", "text": "function sn_mqtt_create_unsubscribe_packet($topic, $msg_id)\r\n{\r\n\t// Variable header\r\n\t$variable_header = sprintf(\"%c\", $msg_id >> 8);\r\n\t$variable_header .= sprintf(\"%c\", $msg_id & 0xff);\r\n\r\n\t// Payload\r\n\t$payload = \"\";\r\n\r\n\t$payload .= sn_mqtt_encode_string($topic); // Topic name.\r\n\r\n\t$remain_length = strlen($variable_header) + strlen($payload);\r\n\r\n\t// Fixed Header\r\n\t$flags = 0x02; // $qos = 1; $dup_flag = $retain_flag = 0;\r\n\t$byte1 = (MQTT_CTRL_UNSUBSCRIBE << 4) | $flags;\r\n\t$fixed_header = sprintf(\"%c\", $byte1);\r\n\t$fixed_header .= sn_mqtt_encode_length($remain_length);\r\n\r\n\t$pkt = $fixed_header.$variable_header.$payload;\r\n\r\n\treturn $pkt;\r\n}", "title": "" }, { "docid": "7ae565a497894a88ffde6b30a18abad0", "score": "0.52543104", "text": "function get_post_name_from_id($id) {\n global $pdo;\n $query = \"SELECT * FROM posts WHERE post_id = $id\";\n $stmt = $pdo->query($query);\n $post_row = $stmt->fetch(PDO::FETCH_ASSOC);\n return $post_row['post_title'];\n }", "title": "" }, { "docid": "bbc239f277a2aae5d517378f7f2af43e", "score": "0.5249122", "text": "public static function underscore(string $id): string\n {\n return strtolower(preg_replace(['/([A-Z]+)([A-Z][a-z])/', '/([a-z\\d])([A-Z])/'], ['\\\\1_\\\\2', '\\\\1_\\\\2'], strtr($id, '_', '.')));\n }", "title": "" }, { "docid": "434c9799409f1940d62d9711caaca390", "score": "0.5246541", "text": "public function training_name_by_training_id($training_id){\n $training = Training::whereId($training_id)->firstOrFail();\n return $training->training_name;\n\n }", "title": "" }, { "docid": "cbb6852af3464d8cbe42badde9fc55f2", "score": "0.52418786", "text": "public function topic()\n {\n return $this->belongsTo(Topic::class, 'TopicID');\n }", "title": "" }, { "docid": "bfbed4c77387e69a9bc60ca78f05ec5d", "score": "0.52380675", "text": "public function gen_topic_arr($topics, $cid) {\n\t\t$_topics = array ();\n\t\t$user = \\CODOF\\User\\User::get ();\n\t\t$uid = $user->id;\n\t\t\n\t\t$i = 0;\n\t\t\n\t\tforeach ( $topics as $topic ) {\n\t\t\t\n\t\t\t$message = \\CODOF\\Format::message ( $topic ['message'] );\n\t\t\t\n\t\t\t$_topics [$i] = array (\n\t\t\t\t\t\"id\" => $topic ['id'],\n\t\t\t\t\t\"avatar\" => \\CODOF\\Util::get_avatar_path ( $topic ['avatar'], $topic ['id'] ),\n\t\t\t\t\t\"name\" => $topic ['name'],\n\t\t\t\t\t\"role\" => \\CODOF\\User\\User::getRoleName ( $topic ['rid'] ),\n\t\t\t\t\t\"post_created\" => \\CODOF\\Time::get_pretty_time ( $topic ['post_created'] ),\n\t\t\t\t\t\"topic_created\" => $topic ['topic_created'],\n\t\t\t\t\t\"topic_id\" => $topic ['topic_id'],\n\t\t\t\t\t\"post_id\" => $topic ['post_id'],\n\t\t\t\t\t\"safe_title\" => \\CODOF\\Filter::URL_safe ( html_entity_decode ( $topic ['title'] ) ),\n // nguoianphu Do not encode URL\n \"title\" => html_entity_decode($topic['title']), \n\t\t\t\t\t\"no_replies\" => \\CODOF\\Util::abbrev_no ( ($topic ['no_posts'] - 1), 1 ),\n\t\t\t\t\t\"no_views\" => \\CODOF\\Util::abbrev_no ( $topic ['no_views'], 1 ),\n\t\t\t\t\t\"last_post_name\" => $topic ['lname'],\n\t\t\t\t\t\"last_post_uid\" => $topic ['luid'],\n\t\t\t\t\t\"sticky\" => Forum::isSticky ( $topic ['topic_status'] ),\n\t\t\t\t\t\"closed\" => Forum::isClosed ( $topic ['topic_status'] ),\n\t\t\t\t\t\"last_post_id\" => $topic ['last_post_id'],\n\t\t\t\t\t\"last_post_time\" => \\CODOF\\Time::get_pretty_time ( ($topic ['lpost_time'] != $topic ['topic_created']) ? $topic ['lpost_time'] : NULL ) \n\t\t\t);\n\t\t\t\n\t\t\t$excerpt = \\CODOF\\Format::excerpt ( $message, $topic ['topic_id'], $_topics [$i] [\"safe_title\"] );\n\t\t\t$_topics [$i] [\"message\"] = $excerpt ['message'];\n\t\t\t$_topics [$i] [\"overflow\"] = $excerpt ['overflow'];\n\t\t\t\n\t\t\tif ($topic ['uid'] == $uid) {\n\t\t\t\t\n\t\t\t\t// this topic belongs to current user\n\t\t\t\t$_topics [$i] ['can_edit_topic'] = $user->can ( array (\n\t\t\t\t\t\t'edit my topics',\n\t\t\t\t\t\t'edit all topics' \n\t\t\t\t), $cid );\n\t\t\t\t$_topics [$i] ['can_delete_topic'] = $user->can ( array (\n\t\t\t\t\t\t'delete my topics',\n\t\t\t\t\t\t'delete all topics' \n\t\t\t\t), $cid );\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t$_topics [$i] ['can_edit_topic'] = $user->can ( 'edit all topics', $cid );\n\t\t\t\t$_topics [$i] ['can_delete_topic'] = $user->can ( 'delete all topics', $cid );\n\t\t\t}\n\t\t\t\n\t\t\t$_topics [$i] ['can_manage_topic'] = $_topics [$i] ['can_edit_topic'] || $_topics [$i] ['can_delete_topic'];\n\t\t\t\n\t\t\tif (isset ( $search )) {\n\t\t\t\t\n\t\t\t\t$_topics [$i] ['in_search'] = true;\n\t\t\t}\n\t\t\t\n\t\t\tif (in_array ( $topic ['topic_id'], $this->new_topic_ids )) {\n\t\t\t\t\n\t\t\t\t$_topics [$i] [\"new_topic\"] = true;\n\t\t\t}\n\t\t\t\n\t\t\tif (in_array ( $topic ['topic_id'], $this->new_replies )) {\n\t\t\t\t\n\t\t\t\t$_topics [$i] [\"new_replies\"] = $this->new_replies [$topic ['topic_id']] [0];\n\t\t\t\t$_topics [$i] [\"last_reply_id\"] = $this->new_replies [$topic ['topic_id']] [1];\n\t\t\t}\n\t\t\t\n\t\t\tif (isset ( $this->tags [$topic ['topic_id']] )) {\n\t\t\t\t\n\t\t\t\t$_topics [$i] [\"tags\"] = $this->tags [$topic ['topic_id']];\n\t\t\t}\n\t\t\t\n\t\t\t$i ++;\n\t\t}\n\t\t\n\t\treturn $_topics;\n\t}", "title": "" }, { "docid": "c1f5ee1bf8d8cadd1d9785d1e10bcaa8", "score": "0.52355456", "text": "public function topic(){\n return $this->belongsTo(Topic::class, 'topic_id', 'id');\n }", "title": "" }, { "docid": "51c9d43b3933c930aaa898ef1fbadeb6", "score": "0.5234577", "text": "public static function underscore($id)\n {\n return strtolower(preg_replace(array('/([A-Z]+)([A-Z][a-z])/', '/([a-z\\d])([A-Z])/'), array('\\\\1_\\\\2', '\\\\1_\\\\2'), strtr($id, '_', '.')));\n }", "title": "" }, { "docid": "145597b2e15fd2c3d3caa973d690b2ef", "score": "0.52310663", "text": "public function get_topic_urn(string $accesstoken, string $topic) : string {\n\t\t$url = 'https://api.linkedin.com/v2/learningClassifications?q=keyword&keyword='.$topic.'&fields=urn';\n\t\t$urns = array();\n\t\t$courseurns = array();\n\t\t$curl = new curl();\n\t\t$topicurn = \"\";\n\t\t\n\t\t$curl->setHeader('Authorization: Bearer '.$accesstoken);\n $response_json = $curl->get($url);\n\t\t$response = json_decode($response_json, true);\n\t\t\n\t\tif(isset($response['elements']) && count($response['elements'])) {\n\t\t\tforeach ($response['elements'] AS $key => $val) {\n\t\t\t\t$topicurn = $val['urn'];\n\t\t\t}\n\t\t\t\n\t\t} elseif($response == \"\") {\n\t\t\terror_log(date(\"m/d/Y h:i:s\").$response_json.\"\\n\", 3, self::LOG_PATH);\n\t\t}else {\n\t\t\terror_log(date(\"m/d/Y h:i:s\").\"::Empty topic URN returned\".\"\\n\", 3, self::LOG_PATH);\n\t\t}\n\t\t\n\t\treturn $topicurn;\n\t}", "title": "" }, { "docid": "5cab5f15cf077028251059327328295e", "score": "0.52308714", "text": "function CleanID($id)\r\n{\r\n\treturn str_replace('[', '_', str_replace(']', '', str_replace(' ', '_', $id)));\r\n}", "title": "" }, { "docid": "118554401ae23f54a4e4b1a9184c2126", "score": "0.5217424", "text": "public function getChannelName($id){\n\t\t$channel_id = $id; \n\t\t$channel__name_dat = DB::select(DB::raw(\"SELECT channel_name as Channel_Name FROM channels WHERE id =\".$channel_id));\n\t\t$ch_name = $channel__name_dat[0]->Channel_Name;\n\t\treturn $ch_name;\n\t}", "title": "" }, { "docid": "4cf1229a7f7b4eb96ba865c5d1764cf8", "score": "0.5215285", "text": "private function createSlug() {\r\n \r\n $proposal = substr(create_slug($this->title), 0, 60);\r\n \r\n $result = $this->db->fetchAll(\"SELECT topic_id FROM nuke_bbtopics WHERE url_slug = ?\", $proposal); \r\n \r\n if (count($result)) {\r\n $proposal .= count($result);\r\n }\r\n \r\n $this->url_slug = $proposal;\r\n \r\n }", "title": "" }, { "docid": "dc5f32e5457095cbe18290b91561899d", "score": "0.5212496", "text": "public function topic()\n {\n return $this->belongsTo('App\\Models\\Topic', 'topic_id');\n }", "title": "" }, { "docid": "a9ef50603db37b3baa41ecf28c2091a1", "score": "0.5207485", "text": "function sn_mqtt_create_subscribe_packet($topic, $qos, $msg_id)\r\n{\r\n\t// Variable header\r\n\t$variable_header = sprintf(\"%c\", $msg_id >> 8);\r\n\t$variable_header .= sprintf(\"%c\", $msg_id & 0xff);\r\n\r\n\t// Payload\r\n\t$payload = \"\";\r\n\r\n\t$payload .= sn_mqtt_encode_string($topic); // Topic name.\r\n\t$payload .= sprintf(\"%c\", $qos);\r\n\r\n\t$remain_length = strlen($variable_header) + strlen($payload);\r\n\r\n\t// Fixed Header\r\n\t$flags = 0x02; // $dup_flag = 0; $qos = 1; $retain_flag = 0;\r\n\t$byte1 = (MQTT_CTRL_SUBSCRIBE << 4) | $flags;\r\n\t$fixed_header = sprintf(\"%c\", $byte1);\r\n\t$fixed_header .= sn_mqtt_encode_length($remain_length);\r\n\r\n\t$pkt = $fixed_header.$variable_header.$payload;\r\n\r\n\treturn $pkt;\r\n}", "title": "" }, { "docid": "e11fd219c1b78df08e11436020a47e5e", "score": "0.5204305", "text": "function translate($id){\n switch ($id) {\n case 0:\n return \"Top\";\n case 1:\n return \"Jungle\";\n case 2:\n return \"Mid\";\n case 3:\n return \"Support\";\n case 4:\n return \"Marksman\";\n default:\n return \"Undetermined\";\n }\n}", "title": "" }, { "docid": "56101cbe79e81eb90474fb339a2b14c2", "score": "0.51929", "text": "function acf_get_term_post_id( $taxonomy, $term_id ) {\n\t_deprecated_function( __FUNCTION__, '5.9.2', 'string format term_%d' );\n\treturn 'term_' . $term_id;\n}", "title": "" }, { "docid": "521fb4242551e920b574d89484491bfb", "score": "0.5185975", "text": "public function deleteTopic($id){\r\n\t\t$this->model_forum->deleteTopic($id);\r\n\t\tredirect('forum');\r\n\t}", "title": "" }, { "docid": "a9899deb2c5c3aa8e86f334151b4e373", "score": "0.51848197", "text": "public function getTopicDropdown($package_id)\n { \n $package_data = TestPackage::find($package_id);\n\n return BoardStandardSubjectChapterTopic::with(['topic'])\n ->where('BoardID', $package_data->BoardID)\n ->where('StandardID', $package_data->StandardID)\n ->where('SubjectID', $package_data->SubjectID)\n ->get()\n ->pluck('topic.TopicName','topic.TopicID');\n }", "title": "" }, { "docid": "6b9a3bccaf1475ebb62b34c6412a656d", "score": "0.51767504", "text": "public static function get_category_name_by_id( $id ) {\n global $wpdb;\n $cat = $wpdb->get_row( $wpdb->prepare( 'SELECT gt_name FROM ' . self::get_table_name() . ' WHERE gt_id=%d', $id ), ARRAY_A );\n if ( !is_array( $cat ) ) {\n return '&nbsp;';\n }\n else {\n return $cat[ 'gt_name' ];\n }\n }", "title": "" }, { "docid": "09142aeab9e59085fcb4d2fdf6a188f8", "score": "0.5165946", "text": "public function getTopic()\n {\n if (!$this->topic) {\n $this->topic = TopicModel::findById($this->getTopicId());\n }\n\n return $this->topic;\n }", "title": "" }, { "docid": "3d6e420428f10175c6a990310c30164f", "score": "0.51624364", "text": "public function nombre_karting($id)\n {\n $data = Kartings_model::traer_registro($id); \n if (!(NULL==($data)))\n {\n $nombre = $data->nombre;\n } \n return $nombre;\n }", "title": "" }, { "docid": "3ce936fe6375cbd098a99e1324c4d774", "score": "0.51614255", "text": "public function getTopic($count = 1)\n {\n return $this->plural('stratum', 'strata', $count);\n }", "title": "" }, { "docid": "4224b551259dd08b7a2a01e0a444ec54", "score": "0.51605654", "text": "function fieldIdToObjectName($field_id) {\r\n $endsWith = '_id'; //Make sure it ends in _id\r\n if (!(substr($field_id, -strlen($endsWith)) == $endsWith)) {\r\n return false;\r\n }\r\n $objectName = toCamelCase(substr($field_id, 0, -strlen($endsWith)));\r\n return $objectName;\r\n}", "title": "" }, { "docid": "86b849fa4712558321d3ac0e931bec84", "score": "0.51604384", "text": "public function withTopic(string $topic): Message;", "title": "" }, { "docid": "9641be618b1309d5f5485b59275a5343", "score": "0.51558614", "text": "function sf_get_topic_url_newpost($forumslug, $topicid, $postid, $postindex=0)\r\n{\r\n\t$topicslug=sf_get_topic_slug($topicid);\r\n\t$out = '<a href=\"'.sf_build_url($forumslug, $topicslug, 1, $postid, $postindex).'\">'.sf_get_topic_name($topicslug).'</a>'.\"\\n\";\r\n\treturn $out;\r\n}", "title": "" }, { "docid": "edac1db0f9c1e97089d1f329ed92921c", "score": "0.5149169", "text": "public function ircTopic($channel, $topic = null);", "title": "" }, { "docid": "e2a13aa2ad5a6b3da43d0d969294cc07", "score": "0.51439", "text": "function return_subject_name(int $id): string\n{\n $subject = Subject::find_by_id($id);\n return $subject->menu_name;\n}", "title": "" }, { "docid": "5a72464e8e510c016a068cd7aa3b3a0d", "score": "0.5137374", "text": "public static function id2name($id=0)\n {\n if (!empty($id)) { // No category has been selected\n $db = PHPFrame::DB();\n $sql = \"SELECT name FROM #__projects WHERE id = :id\";\n return $db->fetchColumn($sql, array(\":id\"=>$id));\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "af9d17df15d5cf1c8cf8a8da371bd891", "score": "0.5135213", "text": "function sn_mqtt_get_message_id($pkt)\r\n{\r\n\t$msg_type = bin2int($pkt[0], 0, 1) >> 4;\r\n\r\n\t$remain_length = sn_mqtt_decode_length($pkt);\r\n\t$var_head_pos = strlen($pkt) - $remain_length;\r\n\r\n\t$msg_id = 0;\r\n\r\n\tswitch($msg_type)\r\n\t{\r\n\t\tcase MQTT_CTRL_PUBLISH:\r\n\t\t\t$qos = (bin2int($pkt[0], 0, 1) & (MQTT_HEAD_FLAG_QOS_1 | MQTT_HEAD_FLAG_QOS_2)) >> 1;\r\n\r\n\t\t\tif($qos)\r\n\t\t\t{\r\n\t\t\t\t$msb = bin2int($pkt[$var_head_pos], 0, 1);\r\n\t\t\t\t$lsb = bin2int($pkt[$var_head_pos + 1], 0, 1);\r\n\t\t\t\t$topic_length = ($msb << 8) + $lsb;\r\n\r\n\t\t\t\t$msb_pos = $var_head_pos + 2 + $topic_length;\r\n\r\n\t\t\t\t$msb = bin2int($pkt[$msb_pos], 0, 1);\r\n\t\t\t\t$lsb = bin2int($pkt[$msb_pos + 1], 0, 1);\r\n\t\t\t\t$msg_id = ($msb << 8) + $lsb;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase MQTT_CTRL_PUBACK:\r\n\t\tcase MQTT_CTRL_PUBREC:\r\n\t\tcase MQTT_CTRL_PUBREL:\r\n\t\tcase MQTT_CTRL_PUBCOMP:\r\n\t\tcase MQTT_CTRL_SUBSCRIBE:\r\n\t\tcase MQTT_CTRL_SUBACK:\r\n\t\tcase MQTT_CTRL_UNSUBSCRIBE:\r\n\t\tcase MQTT_CTRL_UNSUBACK:\r\n\t\t\t$msb = bin2int($pkt[$var_head_pos], 0, 1);\r\n\t\t\t$lsb = bin2int($pkt[$var_head_pos + 1], 0, 1);\r\n\t\t\t$msg_id = ($msb << 8) + $lsb;\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\t$msg_id = 0;\r\n\t}\r\n\r\n\treturn $msg_id;\r\n}", "title": "" }, { "docid": "073db651e7087720612d5dc9a74c764e", "score": "0.51313263", "text": "function update_file_name($file, $no) {\n\t$pos = strrpos($file,'.');\n\t$ext = substr($file,$pos); \n\t$dir = strrpos($file,'/');\n\t$dr = substr($file,0,($dir+1)); \n\n\t$arr = explode('/',$file);\n\t$fName = trim($arr[(count($arr) - 1)],$ext);\n\n\t$exist = FALSE;\n\t$idFile = 'topic'.$no;\n\twhile(!$exist){\n\t\tif(file_exists($idFile)||file_exists($file)){\n\t\t\tcontinue;\n\t\t} else {\n\t\t\t$exist = TRUE;\n\t\t\t$file = $idFile.$ext;\n\t\t}\n\t}\n\n\treturn $file;\n}", "title": "" }, { "docid": "bbde448a4adc5eadaf2cdbbd01f42cf8", "score": "0.51248914", "text": "function setTopic(string $topic, string $reason = '');", "title": "" }, { "docid": "8451e5b8c185bb961c631287ea4eda3a", "score": "0.5123986", "text": "public function findAnswersTopic($idTopic)\n {\n $bdd = $this->bdd;\n\n $query = \"SELECT * FROM comments WHERE AnswerId =$idTopic\";\n\n $req = $bdd->prepare($query);\n $req->bindValue('id', $idTopic, PDO::PARAM_INT);\n $req->execute();\n\n $answs = array();\n\n while ($row = $req-> fetch(PDO::FETCH_ASSOC)){\n\n $answ = new Reply();\n $answ->setId($row['CommentId']);\n $answ->setAuthor($row['Author']);\n $answ->setCreationDate($row['CreationDate']);\n $answ->setAnswer($row['Answ']);\n $answ->setAnswerId($row['AnswerId']);\n $answ->setModeration($row['Warning']);\n\n $answs[] = $answ;\n }\n return $answs;\n }", "title": "" }, { "docid": "664a85f2e2d42427fdd2eacdfde32902", "score": "0.51238185", "text": "public function getDefaultTopic(): string|null\n {\n return null;\n }", "title": "" }, { "docid": "ddcce2d761b72dd8297273482361f1b4", "score": "0.5120655", "text": "public\n function renameKey(){\n foreach ($this->duckduckgoResults->RelatedTopics[0] as $arr) {\n $arr['content'] = $arr['Text'];\n unset($arr['Text']);\n }\n\n }", "title": "" } ]
2fcf38bad66e9c6adbdfc6d4db7f7881
Form API callback: Processes the menu_levels field element. Adjusts the parents of menu_levels to save its children at the top level.
[ { "docid": "9f257072d06cda102bad9e251cd4a68d", "score": "0.0", "text": "public static function processToParent(&$element, FormStateInterface $form_state, &$complete_form) {\n array_pop($element['#parents']);\n return $element;\n }", "title": "" } ]
[ { "docid": "f05c5ab1b7407b2b652798472db0e198", "score": "0.6450889", "text": "protected function populateTree($levels)\n\t{\n\t\tforeach ($levels as $item)\n\t\t{\n\t\t\t$class = $this->enabled ? $item->class : 'disabled';\n\n\t\t\tif ($item->type === 'separator')\n\t\t\t{\n\t\t\t\t$this->tree->addChild(new Node\\Separator($item->title));\n\t\t\t}\n\t\t\telseif ($item->type === 'heading')\n\t\t\t{\n\t\t\t\t// We already excluded heading type menu item with no children.\n\t\t\t\t$this->tree->addChild(new Node\\Heading($item->title, $class, null, $item->icon), $this->enabled);\n\n\t\t\t\tif ($this->enabled)\n\t\t\t\t{\n\t\t\t\t\t$this->populateTree($item->submenu);\n\t\t\t\t\t$this->tree->getParent();\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif ($item->type === 'url')\n\t\t\t{\n\t\t\t\t$cNode = new Node\\Url($item->title, $item->link, $item->browserNav, $class, null, $item->icon);\n\t\t\t\t$this->tree->addChild($cNode, $this->enabled);\n\n\t\t\t\tif ($this->enabled)\n\t\t\t\t{\n\t\t\t\t\t$this->populateTree($item->submenu);\n\t\t\t\t\t$this->tree->getParent();\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif ($item->type === 'component')\n\t\t\t{\n\t\t\t\t$cNode = new Node\\Component($item->title, $item->element, $item->link, $item->browserNav, $class, null, $item->icon);\n\t\t\t\t$this->tree->addChild($cNode, $this->enabled);\n\n\t\t\t\tif ($this->enabled)\n\t\t\t\t{\n\t\t\t\t\t$this->populateTree($item->submenu);\n\t\t\t\t\t$this->tree->getParent();\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif ($item->type === 'container')\n\t\t\t{\n\t\t\t\t// We already excluded container type menu item with no children.\n\t\t\t\t$this->tree->addChild(new Node\\Container($item->title, $item->class, null, $item->icon), $this->enabled);\n\n\t\t\t\tif ($this->enabled)\n\t\t\t\t{\n\t\t\t\t\t$this->populateTree($item->submenu);\n\n\t\t\t\t\t// Add a separator between dynamic menu items and components menu items\n\t\t\t\t\tif (count($item->submenu) && count($item->components))\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->tree->addChild(new Node\\Separator);\n\t\t\t\t\t}\n\n\t\t\t\t\t$this->populateTree($item->components);\n\n\t\t\t\t\t$this->tree->getParent();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ad6a4caedaed5bc3c7f8a0f22db7f368", "score": "0.63632315", "text": "public function manage_levels() {\n $content = $this->llocation->level_list();\n $this->template->full_admin_html_view($content);\n }", "title": "" }, { "docid": "ded40fa223ee02a4a7744090f4ccbc0e", "score": "0.5897871", "text": "function buildMenu () {\n // if ($check == false) {\n $menu = $this->getDocuments(true);\n $conditionsMenu['PoliciesSubtypesDefinition.status'] = 'Active';\n $this->LoadModel('PoliciesSubtypesDefinition');\n $submenu = $this->PoliciesSubtypesDefinition->find('list',array('fields'=>array('id','description'),'conditions'=>$conditionsMenu));\n foreach ($menu as $id_menu => $PoliciesType) {\n if (empty($PoliciesType['PoliciesSubtype'])) {\n $setMenu[$PoliciesType['PoliciesType']['id']][$PoliciesType['PoliciesType']['description']] = null;\n } else {\n foreach ($PoliciesType['PoliciesSubtype'] as $id_policies_subtype => $PoliciesSubtype) {\n $setMenu[$PoliciesType['PoliciesType']['id']][$PoliciesType['PoliciesType']['description']][$PoliciesSubtype['policies_subtypes_definitions_id']] = $submenu[$PoliciesSubtype['policies_subtypes_definitions_id']];\n }\n }\n }\n $this->set(compact('setMenu'));\n // \t\tdebug($menu);\n // \t\tdebug($submenu);\n // \t\tdebug($setMenu);\n // } else {\n // return false;\n // }\n\t}", "title": "" }, { "docid": "c0a700e9e2a6d1c8e65992e66d605923", "score": "0.57811666", "text": "public function level()\n\t{\n\t\t#--------------------------------------------------------------------------\n\t\t# Mempersiapkan pengambilan data dari MODEL Mlevel\n\t\t#--------------------------------------------------------------------------\n\t\t$this->load->model('Mlevel');\n\n\t\t#--------------------------------------------------------------------------\n\t\t# Proses pengambilan data ditampung dalam variabel $con\n\t\t#--------------------------------------------------------------------------\n\t\t$con['data']\t\t= $this->Mlevel->get_data();\n\t\t$con['next_level']\t= $this->Mlevel->get_next_level();\n\n\t\t#--------------------------------------------------------------------------\n\t\t# Hasil pengambilan data di tampilkan ke Halaman LEVEL\n\t\t#--------------------------------------------------------------------------\n\t\t$this->init('vmenu-level', $con);\n\t}", "title": "" }, { "docid": "b79df47549f1cfd478eb3b8306c9f105", "score": "0.5765684", "text": "function create_sub_menus($parent_id,$i_mnu_id,$i_layer=0)\r\n{\r\n try\r\n {\r\n \t$s_ret_=\"\";\r\n \r\n\t\t\t$CI =& get_instance();\t\t\t\r\n\t\t\t$admin_loggedin = $CI->session->userdata(\"admin_loggedin\");\r\n\t\t\t$CI->load->model('menu_model');\r\n\t\t\t$s_wh_cl = \" WHERE i_parent_id = {$parent_id} \"; \r\n\t\t\t$sub_menu = $CI->menu_model->fetch_menus_navigation($s_wh_cl,decrypt($admin_loggedin['user_type_id']));\t\t\r\n \r\n foreach($sub_menu as $con=>$mnus)\r\n {\r\n\t\t\t\t\r\n\t\t\t\t$tmp = create_sub_menus2($mnus['id'],$i_mnu_id,$con);\r\n\t\t\t\tif(trim($tmp)!='' || $mnus['i_total_controls']>0)\r\n\t\t\t\t{\r\n\t\t\t\t\t$s_link=($mnus[\"s_link\"]!=\"\"?admin_base_url().$mnus[\"s_link\"]:\"javascript:void(0);\");\r\n\t\t\t\t\t$s_ret_.='<li><a id=\"mnu_'.$i_mnu_id.'_'.$con.'\" href=\"'.$s_link.'\">'.$mnus['s_name'].'</a>';\r\n\t\t\t\t\t$s_ret_.=$tmp;\r\n\t\t\t\t\t$s_ret_.='</li>';\r\n\t\t\t\t\tunset($tmp);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}///end for \r\n\t\t\t \r\n unset($con,$mnus,$s_link,$admin_loggedin);\r\n \t\t\r\n return ($s_ret_!=\"\"?'<ul class=\"sub\">'.$s_ret_.'</ul>':'');\r\n }\r\n catch(Exception $err_obj)\r\n {\r\n show_error($err_obj->getMessage());\r\n }\r\n}", "title": "" }, { "docid": "8a35a050f0198910c95d053912168737", "score": "0.573431", "text": "function admin_menu_by_role_settings_form_submit($form, &$form_state) {\n foreach ($form_state['values']['roles'] as $rid => $values) {\n\n $current = $form['roles'][$rid]['menu']['#default_value'];\n if ( '0' == $current ) {\n $current = NULL;\n }\n\n $new = $values['menu'];\n if ( '0' == $new ) {\n $new = NULL;\n }\n else {\n $new = array_search($new, $form['#admin_menu_id']);\n }\n\n if ( is_null($current) ) {\n if ( !is_null($new) ) {\n // if current value is not set (null) and toolbar changed (not null), insert\n db_query(\"INSERT INTO {admin_menu_role} VALUES(%d, '%s', %d)\", $rid, $new, $values['weight']);\n }\n }\n else {\n if ( is_null($new) ) {\n // if current value is set (not null) and new value is disabled(not null) - delete\n db_query(\"DELETE FROM {admin_menu_role} WHERE rid=%d \", $rid);\n\n }\n else {\n // if current value is set (not null) and new value is different (not 'current'),\n // but not disabled (not null) - update\n db_query(\"UPDATE {admin_menu_role} SET name='%s', weight=%d WHERE rid=%d\", $new, $values['weight'], $rid);\n }\n }\n }\n drupal_set_message(t('The configuration options have been saved.'));\n}", "title": "" }, { "docid": "c8f3aa0e224eb62613e61bd1484f21bf", "score": "0.57240444", "text": "function create_menus()\r\n{\r\n try\r\n {\r\n\t\t//$s_active = '';\r\n\t\t$s_str = '';\r\n\t\t$CI =& get_instance();\r\n\t\t$admin_loggedin = $CI->session->userdata(\"admin_loggedin\");\r\n\t\t\r\n\t\t$CI->load->model('menu_model');\r\n\t\t$s_where = \" WHERE i_parent_id = 0 \";\r\n\t\t$top_menu = $CI->menu_model->fetch_menus_navigation($s_where,decrypt($admin_loggedin['user_type_id']));\r\n\t\t//print_r($top_menu);exit;\r\n\t\tforeach($top_menu as $key=>$menus)\r\n\t\t{\t\r\n\t\t\tif($key == 0)\r\n\t\t\t{\r\n\t\t\t\t$s_active='class=\"active\"';\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\t\r\n\t\t\t\t$s_active= '';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$tmp = create_sub_menus($menus['id'],$key);\r\n\t\t\t\r\n\t\t\tif(trim($tmp)!='' || $menus['i_total_controls']>0)\r\n\t\t\t{\t\t\t\t\r\n\t\t\t\t$s_str .= '<li class=\"line\"><a id=\"mnu_'.$key.'\" href=\"javascript:void(0);\" '.$s_active.'><b>'.$menus['s_name'].'</b></a>';\t\t\t\r\n\t\t\t\t$s_str.= $tmp;\t\t\t\r\n\t\t\t\t$s_str.= '</li>';\r\n\t\t\t\tunset($tmp);\t\t\t\t\r\n\t\t\t}\r\n\t\t \r\n\t\t} // end for\r\n\t\t//var_dump($s_str);\r\n\t\t$s_str='<ul class=\"select\">'.$s_str.'</ul>';\r\n\t\techo $s_str;\t \r\n\t\tunset($admin_loggedin,$menus,$key,$top_menu); \r\n\t}\r\n catch(Exception $err_obj)\r\n {\r\n show_error($err_obj->getMessage());\r\n }\r\n}", "title": "" }, { "docid": "93254954060a345d4dc3d50aeacdb835", "score": "0.57048273", "text": "private function _saveMenu($inputs, $isRoot=false)\n {\n $count = 0;\n for ($i = 0; $i < count($inputs['menu_id']); $i++) {\n //Create New or Modify Existing Sub Menu\n $menu = ($inputs['menu_id'][$i] > 0) \n ? Menu::find($inputs['menu_id'][$i]) \n : new Menu();\n \n $menu->name = Str::upper($inputs['name'][$i]);\n $menu->url = $inputs['url'][$i];\n $menu->icon = $inputs['icon'][$i];\n $menu->active = $inputs['active'][$i];\n $menu->type = $inputs['type'][$i];\n $menu->sequence = $inputs['sequence'][$i];\n $menu->save();\n $count++;\n (isset($inputs['role_id'][$i + 1])) \n ? $menu->roles()->sync($inputs['role_id'][$i + 1]) \n : $menu->roles()->sync([]);\n\n if ($isRoot) {\n $root = Menu::find($inputs['parent_id'][$i]);\n $menu->makeChildOf($root); //Attach a Parent(Menu) to it\n }\n }\n \n return $count;\n }", "title": "" }, { "docid": "4650a81dc348dfe5d68ece2c0df1bd73", "score": "0.56902814", "text": "public function update_nav_menu() {\n\t\t$items = isset( $_POST['tc-mega-menu'] ) ? $_POST['tc-mega-menu'] : array();\n\n\t\tif ( empty( $items ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tforeach ( $items as $menu_id => $values ) {\n\t\t\tupdate_post_meta( $menu_id, 'tc-mega-menu', $values );\n\t\t}\n\t}", "title": "" }, { "docid": "5bc0f62795119b87ce3e86f7cf9635af", "score": "0.56664187", "text": "function chainsms_civicrm_navigationMenu(&$params) {\n $sAdministerMenuId = CRM_Core_DAO::getFieldValue('CRM_Core_BAO_Navigation', 'Administer', 'id', 'name');\n $sSystemSettingsMenuId = CRM_Core_DAO::getFieldValue('CRM_Core_BAO_Navigation', 'System Settings', 'id', 'name');\n\n // Get the maximum key of $params\n $insertKey = ( max(array_keys($params)) ) + 2;\n\n $params[$sAdministerMenuId]['child'][$sSystemSettingsMenuId]['child'][$insertKey] = array(\n 'attributes' => array(\n 'label' => 'SMS Survey Swear Filter',\n 'name' => 'SMSSurveySwearFilter',\n 'url' => 'civicrm/smssurvey/swearfilter',\n 'permission' => null,\n 'operator' => null,\n 'separator' => null,\n 'parentID' => $sSystemSettingsMenuId,\n 'navID' => $insertKey,\n 'active' => 1\n )\n );\n\n // get the id of the Mailings Menu\n $mailingsMenuId = CRM_Core_DAO::getFieldValue('CRM_Core_BAO_Navigation', 'Mailings', 'id', 'name');\n\n // Create the SMS Survey submenu\n // Get the maximum key of $params\n $insertKey = max(array_keys($params[$mailingsMenuId]['child'])) + 1;\n\n $subMenuId = $insertKey;\n\n $params[$mailingsMenuId]['child'][$subMenuId] = array(\n 'attributes' => array(\n 'label' => SURVEY_SUBMENU_LABEL,\n 'name' => SURVEY_SUBMENU_LABEL,\n 'url' => null,\n 'permission' => null,\n 'operator' => null,\n 'separator' => null,\n 'parentID' => $mailingsMenuId,\n 'navID' => $subMenuId,\n 'active' => 1\n )\n );\n\n // Populate the submenu\n $chainSmsMessagesKey = max(array_keys($params[$mailingsMenuId]['child'])) + 1;\n\n $params[$mailingsMenuId]['child'][$subMenuId]['child'][$chainSmsMessagesKey] = array(\n 'attributes' => array(\n 'label' => 'Chain SMS Messages',\n 'name' => 'SMSSurveyChains',\n 'url' => 'civicrm/smssurvey/chains',\n 'permission' => 'view all contacts',\n 'operator' => NULL,\n 'separator' => FALSE,\n 'parentID' => $subMenuId,\n 'navID' => $chainSmsMessagesKey,\n 'active' => 1\n )\n );\n\n $smsSurveyTranslateKey = $chainSmsMessagesKey + 1;\n\n $params[$mailingsMenuId]['child'][$subMenuId]['child'][$smsSurveyTranslateKey] = array(\n 'attributes' => array(\n 'label' => 'Translate Responses',\n 'name' => 'Translator',\n 'url' => 'civicrm/smssurvey/translate',\n 'permission' => 'view all contacts',\n 'operator' => NULL,\n 'separator' => FALSE,\n 'parentID' => $subMenuId,\n 'navID' => $smsSurveyTranslateKey,\n 'active' => 1\n )\n );\n\n $smsSurveyCleanKey = $smsSurveyTranslateKey + 1;\n\n $params[$mailingsMenuId]['child'][$subMenuId]['child'][$smsSurveyCleanKey] = array(\n 'attributes' => array(\n 'label' => 'Clean Translated Responses',\n 'name' => 'TranslationCleaner',\n 'url' => 'civicrm/smssurvey/translationcleaning',\n 'permission' => 'view all contacts',\n 'operator' => NULL,\n 'separator' => FALSE,\n 'parentID' => $subMenuId,\n 'navID' => $smsSurveyCleanKey,\n 'active' => 1\n )\n );\n}", "title": "" }, { "docid": "7286688c643e83d5ab6c31d059d5a3db", "score": "0.5663014", "text": "function display_children($parent, $level, $user)\n {\n\n\n $sql = \"SELECT a.menu_id, a.menu_titulo,a.menu_icon, a.menu_link, Deriv1.Count as Count FROM menu a\n LEFT OUTER JOIN (SELECT menu_parent, COUNT(*) AS Count FROM menu GROUP BY menu_parent) Deriv1 ON a.menu_id = Deriv1.menu_parent\n LEFT JOIN menuperfil pr on pr.menu_id= a.menu_id\n LEFT JOIN usuarioperfil up on up.perfil_id= pr.perfil_id\n WHERE a.menu_parent = \".$parent.\" and up.usuario_id = \".$user.\" group by a.menu_id,a.menu_titulo, a.menu_icon,a.menu_link, Deriv1.count order by menu_orden asc\";\n\n/*\n $sql = \"SELECT m.menu_id, m.menu_titulo, m.menu_link,Deriv1.menu_parent, Deriv1.Count, m.menu_icon FROM menu m\n\t\t\t\t\t\t LEFT JOIN (SELECT menu_parent, COUNT(*) AS Count FROM menu GROUP BY menu_parent) \n\t\t\t\t\t\t Deriv1 ON m.menu_id = Deriv1.menu_parent \n\t\t\t\t\t\t where m.menu_parent =\" . $parent . \" group by m.menu_id order by m.menu_orden\";\n\n*/\n $result = $this->Consulta($sql);\n\n if ($this->num_rows($result) > 0)\n {\n\n while ($resultados = $this->fetch_array($result))\n {\n\n if($resultados['Count'] >0)\n {\n echo '<li class=\"dropdown\">\n <a href=\"'.$resultados['menu_link'].'\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" role=\"button\" aria-haspopup=\"true\" aria-expanded=\"false\">'.$resultados['menu_icon'].'&nbsp;&nbsp;&nbsp;'.$resultados['menu_titulo'].' <span class=\"caret\"></span></a>\n <ul class=\"dropdown-menu\">';\n $menu = new Menu();\n $menu->display_children($resultados['menu_id'], $level + 1, $user);\n echo '</ul></li>';\n }\n else if($resultados['Count'] ==0){\n echo '<li><a href=\"'.$resultados['menu_link'].'\">'.$resultados['menu_icon'].'&nbsp;&nbsp;'.$resultados['menu_titulo']. '</a></li>'; //'<li class=\"active\"><a href=\"#\">Link <span class=\"sr-only\">(current)</span></a></li>\n }\n else;\n\n\n }\n }\n\n }", "title": "" }, { "docid": "44fe11821eda8c59526ee890fff30254", "score": "0.5615839", "text": "public function saveLevel(Request $request)\n {\n $inputs = $request->all();\n $root = ($inputs['level'] >= 2) ? true : false;\n $count = $this->_saveMenu($inputs, $root);\n \n $this->setFlashMessage($count . ' Menus Level '.$inputs['level'].' has been successfully updated.', 1);\n \n return redirect('/menus/level/' . $inputs['level']);\n }", "title": "" }, { "docid": "3ad5e257549593cbf5ad489f34a07ba6", "score": "0.5563104", "text": "function __generateMenu() {\n\t\t//$options['conditions']['Menu.enable'] = 1;\n\t\t$options['fields'] = array('id', 'name', 'url', 'parent_id','title');\n\t\t$options['order']['lft'] = 'asc';\n\t\t$this->EvaMenu->recursive = -1;\n $menus = $this->EvaMenu->find('threaded',$options);\n //pr($menus);\n\t\t//return $menus;\n //$this->loadModel('GroupsMenu');\n //$groupmenu = $this->GroupsMenu->find('list', array( 'conditions'=>array('group_id'=>$this->Myappuser->getGroupId()), \n //'fields'=>array('menu_id','group_id')));\n\n if ( $menus && count( $menus ) > 0 ) {\n $list_menus = \"<ul class='sf-menu'>\";\n foreach ( $menus as $menu ) {\n // only write menu for user group\n //if ( isset($groupmenu[$menu['EvaMenu']['id']]) ){\n // if current top menu has children\n if ( $this->__hasChild( &$menu['children'] ) ) {\n // 1st li or top parent\n if(isset($menu['EvaMenu']['title'])){\n\t\t\t\t\t\t\t$list_menus .= \"<li class='current'><a href='\" . Helper::url($menu['EvaMenu']['url']) .\"' title='\" . $menu['EvaMenu']['title'] .\"'>\" . $menu['EvaMenu']['name'] . \"</a>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!isset($menu['EvaMenu']['title'])){\n\t\t\t\t\t\t\t$list_menus .= \"<li class='current'><a href='\" . Helper::url($menu['EvaMenu']['url']) .\"'>\" . $menu['EvaMenu']['name'] . \"</a>\";\n\t\t\t\t\t\t}\n //$list_menus .= \"<li class='current'><a href='\" . Helper::url($menu['EvaMenu']['url']) .\"' title='\" . $menu['EvaMenu']['name'] . \"'>\" . $menu['EvaMenu']['name'] . \"</a>\";\n $this->__generateChildMenu( &$menu['children'], &$list_menus);\n } else {\n\t\t\t\t\t\tif(isset($menu['EvaMenu']['title'])){\n\t\t\t\t\t\t\t$list_menus .= \"<li><a href='\" . Helper::url($menu['EvaMenu']['url']) .\"' title='\".$menu['EvaMenu']['title']. \"'>\" . $menu['EvaMenu']['name'] . \"</a>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!isset($menu['EvaMenu']['title'])){\n\t\t\t\t\t\t\t$list_menus .= \"<li><a href='\" . Helper::url($menu['EvaMenu']['url']) .\"'>\" . $menu['EvaMenu']['name'] . \"</a>\";\n\t\t\t\t\t\t}\n //$list_menus .= \"<li><a href='\" . Helper::url($menu['EvaMenu']['url']) .\"' title='\" . $menu['EvaMenu']['name'] . \"'>\" . $menu['EvaMenu']['name'] . \"</a>\";\n }\n\n $list_menus .= \"</li>\";\n //}\n }\n $list_menus .= \"</ul>\";\n $list_menus .= \"</li>\";\n\t\t\t//pr($list_menus);\n return $list_menus . \"</ul>\";\n }\n }", "title": "" }, { "docid": "fc0aca2d535f55913aab5d4ce3f67f81", "score": "0.5558186", "text": "function build_menu($menu_data_row,$parent_child){\n\t\t$menu_mod = new TblCoreMenus();\n\t\t$mclass = '';\n\t\tif($parent_child == \"p\"){\n\t\t\t$menu_data_row = json_decode($menu_data_row);\n\t\t\t$mclass = '';\n\t\t}\n\t\t\n\t\tif($parent_child == \"c\"){\n\t\t\t$menu_data_row = $menu_data_row->children;\n\t\t\t\n\t\t}\n\t\t$menu_ul = \"\";\n\t\tif($menu_data_row != \"\"){\n\t\t$menu_ul = '<ol class=\"dd-list\">';\n\t\t\n\t\t\tforeach($menu_data_row as $key => $value){\n\t\t\t\t\n\n\t\t\t\t\t$id_data = explode('~',$value->id);\n\t\t\t\t\t$feature_id\t= $id_data[0];\n\t\t\t\t\t$type = $id_data[1];\n\t\t\t\t\t$type_value = 'Custom Link';\n\t\t\t\t\t\n\t\t\t\t\tif($type == 'pg'){\n\t\t\t\t\t\t$type_value = 'Page';\n\t\t\t\t\t}else if($type == 'ct'){\n\t\t\t\t\t\t$type_value = 'Categories';\n\t\t\t\t\t}\n\t\t\t\t\t$menu_name\t= $id_data[2];\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$menu_detail = $menu_mod->get_menu_data($feature_id);\n\t\t\t\t\t\n\t\t\t\t\t$menu_ul .= '<li class=\"dd-item\" id=\"li_id_' . $feature_id. '\" data-id=\"' . $value->id . '\" >';\n\t\t\t\t\t\n\t\t\t\t\t$menu_ul .= '<div class=\"dd-handle togle_head\" >' . $menu_name . '</div>';\n\t\t\t\t\t\tif(isset($value->children)){\n\t\t\t\t\t\t\t$menu_ul .= $this->build_menu($value,'c');\n\t\t\t\t\t\t}\n\t\t\t\t\t$menu_ul .= '<div class=\"panel-tools\"><a class=\"btn btn-xs collapses\" href=\"javascript:void(0)\" onclick=\"expand_collaps(\\'' . $feature_id . '\\',\\'' . $feature_id . '\\',\\'' . $menu_detail['name']. '\\',\\'' . $menu_name . '\\')\" >' . $type_value . '</a></div></li>\n\t\t\t\t\t';\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t$menu_ul .= '</ol>';\n\t\t}\n\t\treturn $menu_ul;\n\t\t\n\t}", "title": "" }, { "docid": "0dbb02929ff3bb8049be4fd88867ba40", "score": "0.55570525", "text": "public function saveAdminMenu(AdminMenu $adminMenu);", "title": "" }, { "docid": "cd57afc4bfa71e278a508cef8e66e434", "score": "0.554776", "text": "public function save_sub_menu( $id_menu ){\n\n\t\t$this->Menu_model->save_sub_menu( $_POST );\n\n\t\tredirect(base_url().\"admin/menu/submenu/\". $id_menu );\n\t}", "title": "" }, { "docid": "0283bb1004b419ad6297b637228768f0", "score": "0.55411494", "text": "function jjamerson_preprocess_menu_tree(&$variables) {\n}", "title": "" }, { "docid": "e8ae2126d37bf59a1d3e4b29aeecb781", "score": "0.5532113", "text": "function careerfy_mega_update_custom_nav_fields($menu_id, $menu_item_db_id, $args) {\n // Check if element is properly sent\n $megamenu_value = 'off';\n $view_value = 'image-text';\n\n if (isset($_POST['menu-item-megamenu'][$menu_item_db_id])) {\n $megamenu_value = $_POST['menu-item-megamenu'][$menu_item_db_id];\n } else {\n $megamenu_value = 'off';\n }\n\n if (isset($_POST['menu-item-view'][$menu_item_db_id])) {\n $view_value = $_POST['menu-item-view'][$menu_item_db_id];\n } else {\n $view_value = 'image-text';\n }\n\n if (isset($_POST['menu-item-video'][$menu_item_db_id])) {\n $video_value = $_POST['menu-item-video'][$menu_item_db_id];\n } else {\n $video_value = '';\n }\n\n if (isset($_POST['menu-item-image-title'][$menu_item_db_id])) {\n $image_title_value = $_POST['menu-item-image-title'][$menu_item_db_id];\n } else {\n $image_title_value = '';\n }\n\n if (isset($_POST['menu-item-image-paragragh'][$menu_item_db_id])) {\n $image_title_para_value = $_POST['menu-item-image-paragragh'][$menu_item_db_id];\n } else {\n $image_title_para_value = '';\n }\n\n if (isset($_POST['menu-item-image-title-2'][$menu_item_db_id])) {\n $image_title_2_value = $_POST['menu-item-image-title-2'][$menu_item_db_id];\n } else {\n $image_title_2_value = '';\n }\n\n if (isset($_POST['menu-item-image-img'][$menu_item_db_id])) {\n $image_img_value = $_POST['menu-item-image-img'][$menu_item_db_id];\n } else {\n $image_img_value = '';\n }\n\n if (isset($_POST['menu-item-visifor'][$menu_item_db_id])) {\n $menu_item_visifor = $_POST['menu-item-visifor'][$menu_item_db_id];\n } else {\n $menu_item_visifor = 'all';\n }\n\n update_post_meta($menu_item_db_id, '_menu_item_megamenu', sanitize_text_field($megamenu_value));\n update_post_meta($menu_item_db_id, '_menu_item_view', sanitize_text_field($view_value));\n update_post_meta($menu_item_db_id, '_menu_item_video', $video_value);\n update_post_meta($menu_item_db_id, '_menu_item_image_title', $image_title_value);\n update_post_meta($menu_item_db_id, '_menu_item_image_paragragh', $image_title_para_value);\n update_post_meta($menu_item_db_id, '_menu_item_image_title_2', $image_title_2_value);\n update_post_meta($menu_item_db_id, '_menu_item_image_img', $image_img_value);\n update_post_meta($menu_item_db_id, '_menu_item_visifor', $menu_item_visifor);\n do_action('careerfy_mega_menu_items_save', $menu_item_db_id);\n }", "title": "" }, { "docid": "c6cfcf48bd23a102ea6892dc2a989275", "score": "0.5517647", "text": "function theme_admin_menu_by_role_settings_form($form) {\n $rows = array();\n foreach (element_children($form['roles']) as $rid) {\n $element = &$form['roles'][$rid];\n $row = array();\n\n $element['weight']['#attributes']['class'] = 'weight-group';\n $element['itemid']['#attributes']['class'] = 'itemid';\n $row[] = drupal_render($element['title']);\n $row[] = drupal_render($element['menu']);\n $row[] = drupal_render($element['weight']) . drupal_render($element['id']);\n\n $rows[] = array('data' => $row, 'class' => 'draggable');\n }\n if (empty($rows)) {\n $empty_message = t('No menu found');\n $rows[] = array(array('data' => $empty_message, 'colspan' => '3'));\n }\n $header = array(t('Role'), t('Menu'), t('Weight'));\n drupal_add_tabledrag('admin_menu_by_role_roles_order_table', 'order', 'sibling', 'weight-group');\n $output = theme('table', $header, $rows, array('id' => 'admin_menu_by_role_roles_order_table'));\n $output .= drupal_render($form);\n\n return $output;\n}", "title": "" }, { "docid": "aa9e79097bdb8b71a56ed0753115bcbf", "score": "0.5505044", "text": "function mybeforeChildren($level) { \n\t\t\n\t\tif ($level == 0)\n\t\t\treturn '<ul class=\"nav navbar-nav\">' . CR; \n\t\telseif ($level == 1)\n\t\t\treturn '<ul class=\"dropdown-menu\">' . CR;\n\t\telse\n\t\t\treturn '';\n\t}", "title": "" }, { "docid": "a2d8438b11f7f84da959e535fe1280a2", "score": "0.5491693", "text": "function top_groups_modifymenu() {\n add_menu_page('Training Groups', //page title\n 'Training Groups', //menu title\n 'manage_options', //capabilities\n 'top_groups_list', //menu slug\n 'top_groups_list' //function\n );\n \n //this is a submenu\n add_submenu_page('top_groups_list', //parent slug\n 'Add New Group', //page title\n 'Add New', //menu title\n 'manage_options', //capability\n 'top_groups_new', //menu slug\n 'top_groups_new'); //function\n \n //this submenu is HIDDEN, however, we need to add it anyways\n add_submenu_page(null, //parent slug\n 'Edit Group', //page title\n 'Edit', //menu title\n 'manage_options', //capability\n 'top_groups_edit', //menu slug\n 'top_groups_edit'); //function\n }", "title": "" }, { "docid": "931db30549361f97dfda2d946a8e7183", "score": "0.5476322", "text": "public function newMenuPost()\n {\n try {\n if (!$_REQUEST['menu_item']) {\n throw new Exception(_('Menu Item or title cannot be blank'));\n }\n if (!$_REQUEST['menu_description']) {\n throw new Exception(_('A description needs to be set'));\n }\n if ($_REQUEST['menu_default']) {\n self::getClass('PXEMenuOptionsManager')\n ->update(\n '',\n '',\n array(\n 'default' => 0\n )\n );\n }\n $Menu = self::getClass('PXEMenuOptions')\n ->set('name', $_REQUEST['menu_item'])\n ->set('description', $_REQUEST['menu_description'])\n ->set('params', $_REQUEST['menu_params'])\n ->set('regMenu', $_REQUEST['menu_regmenu'])\n ->set('args', $_REQUEST['menu_options'])\n ->set('default', $_REQUEST['menu_default']);\n if (!$Menu->save()) {\n throw new Exception(_('Menu create failed'));\n }\n $countDefault = self::getClass('PXEMenuOptionsManager')\n ->count(\n array(\n 'default' => 1\n )\n );\n if ($countDefault == 0 || $countDefault > 1) {\n self::getClass('PXEMenuOptions', 1)->set('default', 1)->save();\n }\n self::$HookManager\n ->processEvent(\n 'MENU_ADD_SUCCESS',\n array(\n 'Menu' => &$Menu\n )\n );\n self::setMessage(_('Menu Added'));\n self::redirect(\n sprintf(\n '?node=%s&sub=edit&%s=%s',\n $this->node,\n $this->id,\n $Menu->get('id')\n )\n );\n } catch (Exception $e) {\n self::$HookManager\n ->processEvent(\n 'MENU_ADD_FAIL',\n array(\n 'Menu' => &$Menu\n )\n );\n self::setMessage($e->getMessage());\n self::redirect($this->formAction);\n }\n }", "title": "" }, { "docid": "2c2b2d6d44f0e13675c24bf88205c21d", "score": "0.5465953", "text": "function <%= themeMachineName %>_build_menu($variables) {\n $items = menu_tree($variables['menu_tree']);\n $menu_links = array(\n 'items' => array(),\n 'title' => '',\n 'attributes' => array(),\n );\n\n foreach ($items as $key => $item) {\n if (is_numeric($key)) {\n $active_state = NULL;\n if (in_array('active-trail', $item['#attributes']['class'])) {\n $active_state = 'active';\n }\n // Create sub-menu.\n foreach ($item['#below'] as $key => $value) {\n if (is_numeric($key)) {\n $sub_menu_links = array(\n 'items' => array(),\n 'title' => '',\n 'type' => 'ul',\n 'attributes' => array('class' => array('menu', 'vertical')),\n );\n foreach ($item['#below'] as $key => $subitem) {\n if (is_numeric($key)) {\n $sub_menu_links['items'][] = l($subitem['#title'], $subitem['#href']);\n }\n }\n }\n }\n\n // Build main menu.\n if (!empty($sub_menu_links)) {\n // Add class to li if sub-menu exists else.\n $menu_links['items'][] = array(\n 'data' => l($item['#title'], $item['#href']) . theme('item_list', $sub_menu_links),\n 'class' => array($active_state),\n );\n }\n else {\n $menu_links['items'][] = array(\n 'data' => l($item['#title'], $item['#href']),\n );\n }\n\n // Reset sub-menu.\n unset($sub_menu_links);\n }\n }\n\n return theme('prepare_menu_items', $menu_links);\n}", "title": "" }, { "docid": "660bc2b508aa184c94df435854b63127", "score": "0.54416424", "text": "public function CreateMenuMultiLevel($arr,$id='0')\r\n\t{\r\n\t\tforeach($arr as $item){\r\n\t\tif($item['parent_id']==$id){\r\n\t\t\techo '<li><a href=\"'.$item['link'].'\" >',$item['label'],'</a>';\r\n\t\t\t\techo '<ul class=\"dropdownMenu\" >';\r\n\t\t\t\t\t$this->CreateMenuMultiLevel($arr,$item['item_id']);\r\n\t\t\t\techo '</ul>';\r\n\t\t\techo '</li>';\r\n\t\t}\r\n\t\t\r\n\t}\r\n}", "title": "" }, { "docid": "361d5f42f34c9296ded8fe249abbf894", "score": "0.5427848", "text": "protected function _prepareForm() {\r\n $group = $this->getGroup();\r\n $attributes = $this->getAttributes();\r\n\r\n $menu = Mage::registry('current_menu');\r\n \r\n $form = new Varien_Data_Form();\r\n $form->setDataObject($menu);\r\n\r\n $fieldset = $form->addFieldset('fieldset_group_' . $group->getId(), array(\r\n 'legend' => Mage::helper('menubuilder')->__($group->getAttributeGroupName())\r\n ));\r\n //$fieldset->addType('colorpicker', Mage::getConfig()->getBlockClassName('menubuilder/adminhtml_form_element_colorpicker'));\r\n\r\n if ($this->getAddHiddenFields()) {\r\n if (!$menu->getId()) {\r\n // path\r\n if ($this->getRequest()->getParam('parent')) {\r\n $fieldset->addField('path', 'hidden', array(\r\n 'name' => 'path',\r\n 'value' => $this->getRequest()->getParam('parent')\r\n ));\r\n }\r\n else {\r\n $fieldset->addField('path', 'hidden', array(\r\n 'name' => 'path',\r\n 'value' => 1\r\n ));\r\n }\r\n }\r\n else {\r\n $fieldset->addField('id', 'hidden', array(\r\n 'name' => 'id',\r\n 'value' => $menu->getId()\r\n ));\r\n $fieldset->addField('path', 'hidden', array(\r\n 'name' => 'path',\r\n 'value' => $menu->getPath()\r\n ));\r\n }\r\n }\r\n\r\n $this->_setFieldset($attributes, $fieldset);\r\n \r\n if($menu->getMenuCode()) {\r\n \t$menu->lockAttribute('menu_code');\r\n \tif($element = $form->getElement('image')) {\r\n \t\t$element->setLabel('Background Image');\r\n \t}\r\n }\r\n \r\n if ($menu->hasLockedAttributes()) {\r\n foreach ($menu->getLockedAttributes() as $attribute) {\r\n if ($element = $form->getElement($attribute)) {\r\n $element->setReadonly(true, true);\r\n }\r\n }\r\n }\r\n\r\n $form->addValues($menu->getData());\r\n $form->setFieldNameSuffix('general');\r\n $this->setForm($form);\r\n\r\n return parent::_prepareForm();\r\n }", "title": "" }, { "docid": "c3d3949ce94e7f9fe29d3bf9da482a04", "score": "0.5427034", "text": "function action_add_menu_entries() {\n $pages = $this->pagesInstance;\n\t\tforeach ( $pages->get_all_pages() as $page_info ) {\n if(!is_null($page_info['parent'])) {\n add_submenu_page(\n $page_info['parent'],\n $page_info['title'],\n ( $page_info['menu-title'] ? $page_info['menu-title'] : $page_info['title'] ),\n 'administrator',\n $page_info['slug'],\n $page_info['callback']\n );\n }\n\t\t}\n\n // View Website Button\n add_menu_page(\n\t\t\t'Kodeo Admin UI View Site Button',\n esc_html__( 'View Website', 'animo' ),\n\t\t\t'read',\n\t\t\t'kodeo-home',\n\t\t\t'__return_false',\n\t\t\t'dashicons-admin-home',\n\t\t\t1\n\t\t);\n\n global $menu;\n // 0 = menu_title, 1 = capability, 2 = menu_slug, 3 = page_title, 4 = classes, 5 = hookname, 6 = icon_url\n\n foreach($menu as $key => $item) {\n if($item[2] == \"kodeo-home\") {\n $menu[$key][2] = home_url();\n break;\n }\n }\n }", "title": "" }, { "docid": "aaf2cfbdd46a4dfe45c1ee93418cbe61", "score": "0.5413786", "text": "function plain_encuesta_form_menu(){\n // esta funcion recive nombre de la pagina que se mostrara, nombre que tendra en el menu, que tipo de usuario la vera o accedera, nombre de variable url (?page=custom_theme_options), funcion que se ejecutara al precionar click en el item del menu que se creara, el nombre del icono qu wordpress tiene reservado una lista completa, y en que posicion estara esta va de 5 en 5\n add_menu_page('Encuesta', 'Encuesta', 'administrator', 'encuesta_form', 'plain_encuesta_form_comments', 'dashicons-id-alt', 20);\n\n // agregar un sub menu como los otros tienes en el dashboard de wordpress\n // el primer parametro recive el slug del padre, el segundo nombre igual que tercero,cuarto quien lo vera, el slug del este submenu tiene que ser diferente al de su padre y la funcion que ejecutara que por ende como estamos copiando la misma funcionalidad de los otros submenu del dashboard entonses llevara al mismo lugar que el padre\n add_submenu_page('encuesta_form', 'Todas las Encuestas', 'Todas las Encuestas', 'administrator', 'encuesta_form_comments', 'plain_encuesta_form_comments');\n\n\n }", "title": "" }, { "docid": "61915241698ec21f426142f2b0645ea5", "score": "0.53986275", "text": "private function buildMenu()\n {\n foreach ($this->menuEntries as $menuEntry) {\n $this->buildMenuItem($menuEntry[0], $menuEntry[1], $menuEntry[2], $menuEntry[3], $menuEntry[4]);\n }\n }", "title": "" }, { "docid": "d1ee42a1eb8bcf7c8e8d3480ed868a1e", "score": "0.5394327", "text": "function menu_manage($mid, $option='configure') {\r\n $form['md_megamenu'] = array(\r\n '#type' => 'fieldset',\r\n '#collapsible' => FALSE,\r\n '#collapsed' => FALSE,\r\n '#tree' => TRUE,\r\n );\r\n\r\n $menu_array = array();\r\n\r\n if ($option == 'edit') {\r\n $breadcrumps = drupal_get_breadcrumb();\r\n $breadcrumps[] = '<a></a>';\r\n drupal_set_breadcrumb($breadcrumps);\r\n $data = drupal_get_form('edit_mmenu', $mid);\r\n\r\n $menu_array[0] = array(\r\n '#type' => 'markup',\r\n 'markup' => $data,\r\n );\r\n\r\n $form['md_megamenu'] += $menu_array;\r\n }\r\n elseif ($option == 'configure') {\r\n $data = drupal_get_form('configure_menu', $mid);\r\n\r\n $menu_array[0] = array(\r\n '#type' => 'markup',\r\n 'markup' => $data,\r\n );\r\n\r\n $form['md_megamenu'] += $menu_array;\r\n }\r\n\r\n return $form;\r\n}", "title": "" }, { "docid": "795a0107e9a837a080896c369ab9bb96", "score": "0.53913325", "text": "function create_sub_menus2($parent_id,$i_main_menu,$i_sub_menu)\r\n{\r\n try\r\n {\r\n \t$s_ret_=\"\";\r\n\t\t\t$CI =& get_instance();\r\n\t\t\t$admin_loggedin = $CI->session->userdata(\"admin_loggedin\");\r\n\t\t\t$CI->load->model('menu_model');\r\n\t\t\t$s_wh_cl = \" WHERE i_parent_id = {$parent_id} \"; \r\n\t\t\t$sub_menu = $CI->menu_model->fetch_menus_navigation($s_wh_cl,decrypt($admin_loggedin['user_type_id']));\r\n \r\n foreach($sub_menu as $con=>$mnus)\r\n {\r\n\t\t\t\tif($mnus['i_total_controls']>0)\r\n\t\t\t\t{\t\t\t\t\r\n\t\t\t\t\t$s_link=($mnus[\"s_link\"]!=\"\"?admin_base_url().$mnus[\"s_link\"]:\"javascript:void(0);\");\t\r\n\t\t\t\t\t$s_ret_.='<li><a id=\"mnu_'.$i_main_menu.'_'.$i_sub_menu.'_'.$con.'\" href=\"'.$s_link.'\">'.$mnus['s_name'].'</a>';\r\n\t\t\t\t\t$s_ret_.='</li>';\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}///end for\r\n ///////////end Sub sub menu exists i.e layer 2///////\r\n unset($con,$mnus,$s_link,$admin_loggedin);\r\n ///end if\r\n\t return ($s_ret_!=\"\"?'<ul class=\"sub2\">'.$s_ret_.'</ul>':'');\r\n }\r\n catch(Exception $err_obj)\r\n {\r\n show_error($err_obj->getMessage());\r\n }\r\n}", "title": "" }, { "docid": "95391fc907a8c61907f3e6ac7e0e69cd", "score": "0.5387949", "text": "public function store(CoreMenuRequest $request){\n $parent_level = $this->set_parent_level($request->menu_parent_id);\n\n if($parent_level['level'] != 4){\n $menu_id = Menu::insertGetId([\n 'menu_div_id' => $request->menu_div_id,\n 'menu_parent_id' => $parent_level['parent'],\n 'menu_nama_ina' => $request->menu_nama_ina,\n 'menu_nama_eng' => $request->menu_nama_eng,\n 'menu_controller' => $request->menu_controller,\n 'menu_route_name' => $request->menu_route_name,\n 'menu_folder_view' => $request->menu_folder_view,\n 'menu_icon' => $request->menu_icon,\n 'menu_publish_ke_user' => ($request->menu_publish_ke_user == 'on' ? 'Y' : 'N'),\n 'menu_order' => $request->menu_order,\n 'menu_level' => $parent_level['level'],\n 'menu_createdat' => date('Y-m-d H:i:s'),\n 'menu_createdby' => session('user_id'),\n ]);\n \n if(!empty($request->perm_nama)){\n foreach($request->perm_nama as $i => $r){\n DB::table('dev_mapping_permission_ke_menu')\n ->insert([\n 'map_menu_id' => $menu_id,\n 'map_perm_nama' => $i\n ]);\n }\n }\n \n if(!empty($menu_id)){\n // Asumsinya, jika controller = # maka menu tersebu akan menjadi parent menu\n if($request->menu_controller != '#'){\n $this->make_controller($request->menu_controller, $request->menu_nama_ina, $request->menu_folder_view);\n $this->create_module_dir(strtolower($request->menu_folder_view));\n $this->create_module_index_file($request->menu_folder_view, $request->menu_route_name);\n $this->declare_route($request->menu_route_name, $request->menu_controller);\n }\n }\n \n $res = [\n 'msg_title' => 'Berhasil',\n 'msg_body' => 'Data berhasil disimpan.',\n ];\n $res_code = 200;\n }else{\n $res = [\n 'msg_title' => 'Gagal',\n 'msg_body' => 'Level parent menu tidak mendukung.'\n ];\n $res_code = 400;\n }\n\n return response()->json($res, $res_code);\n }", "title": "" }, { "docid": "4e11eb93efd8fdaf782c90b430e18b46", "score": "0.53871614", "text": "function minima_preprocess_menu_tree(&$variables) {\n // Add default class for all menus.\n $variables['attributes_array']['class'][] = 'nav';\n\n // Merge attributes from the tree (these can be set in hook_block_view_alter).\n // See minima_block_view_alter().\n if (!empty($variables['tree']['#attributes'])) {\n $variables['attributes_array'] = array_merge_recursive(\n $variables['attributes_array'],\n $variables['tree']['#attributes']\n );\n }\n\n // Set the children (default functionality).\n $variables['tree'] = $variables['tree']['#children'];\n}", "title": "" }, { "docid": "c548d384cfa1b91b130e33757b351513", "score": "0.53821266", "text": "public function setParentMenu($menu);", "title": "" }, { "docid": "6b597c5f73a020a78d36692c809ad87b", "score": "0.5381602", "text": "function gemini_migrate_d5_form_menu() {\n // drupal_set_message('Are you sure you want to run the custom import script? No going back without re-installing the database!!!', 'warning');\n\n $form['menu'] = array(\n '#collapsible' => FALSE,\n '#collapsed' => FALSE\n );\n\n $header = array(\n 'menu_type' => t('Menu Type'),\n 'source_total' => t('Source'),\n 'destination_total' => t('Destination')\n );\n\n $options = gemini_migrate_d5_get_menu_type_table();\n\n $form['menu']['table'] = array(\n '#type' => 'tableselect',\n '#header' => $header,\n '#options' => $options,\n '#empty' => t('No users found'),\n );\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Submit'),\n );\n\n return $form;\n}", "title": "" }, { "docid": "976ffe0b876c952bd69d5e9e57b22ba8", "score": "0.53682786", "text": "public function addMenu()\n {\n $this->load->model('admin/sitesettingsmodel','ss');\n if($this->input->post())\n {\n $name = $this->input->post('m_name');\n $url = $this->input->post('m_url');\n $icon = $this->input->post('m_icon');\n $active = $this->input->post('m_active');\n $group = $this->input->post('m_group');\n $pid = $this->input->post('m_pid');\n\n $menu_arr = array(\n 'icon' => $icon,\n 'url' =>$url,\n 'label'=>$name,\n 'active'=>$active,\n 'status' => '1'\n );\n $flg = $this->ss->addmenu($menu_arr,$group,$pid);\n if (!empty($flg)) {\n $this->session->set_flashdata('successmessage', 'Menu added successfully');\n } else {\n $this->session->set_flashdata('errormessage', 'Oops! something went wrong. Please try again');\n }\n $redirect=site_url('admin/menu-manager');\n redirect($redirect);\n }\n $data = array();\n \n $data['menues'] =$this->ss->getallmenu();\n $getsitename = getsitename();\n $this->layouts->set_title($getsitename . ' |Site Settings');\n $this->layouts->render('admin/addmenu', $data, 'admin');\n }", "title": "" }, { "docid": "b9092c0491dbf6000602684aa61ce3fe", "score": "0.53664225", "text": "function end_lvl(&$output, $depth = 0, $args = array()) {\n\n $careerfy_parent_id = $this->CurrentItem->menu_item_parent;\n $parent_nav_mega = get_post_meta($this->parent_menu_item_id, '_menu_item_megamenu', true);\n $parent_nav_mega_view = get_post_meta($this->parent_menu_item_id, '_menu_item_view', true);\n\n $indent = str_repeat(\"\\t\", $depth);\n\n if ($parent_nav_mega == 'on' && $depth == 0) {\n if ($parent_nav_mega_view == 'image-text') {\n $_menu_item_image_title = get_post_meta($this->parent_menu_item_id, '_menu_item_image_title', true);\n $_menu_item_image_paragragh = get_post_meta($this->parent_menu_item_id, '_menu_item_image_paragragh', true);\n $_menu_item_image_title_2 = get_post_meta($this->parent_menu_item_id, '_menu_item_image_title_2', true);\n $_menu_item_image_img = get_post_meta($this->parent_menu_item_id, '_menu_item_image_img', true);\n\n if ($_menu_item_image_paragragh != '') {\n $output .= '\n\t\t\t\t\t<li class=\"col-md-5\">\n\t\t\t\t\t\t<h4>' . $_menu_item_image_title . '</h4>\n\t\t\t\t\t\t<div class=\"careerfy-mega-text\">\n\t\t\t\t\t\t\t<p>' . $_menu_item_image_paragragh . '</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</li>';\n }\n if ($_menu_item_image_img != '') {\n $output .= '\n\t\t\t\t\t<li class=\"col-md-5\">\n\t\t\t\t\t\t<h4>' . $_menu_item_image_title_2 . '</h4>\n\t\t\t\t\t\t<a class=\"careerfy-thumbnail\">\n\t\t\t\t\t\t\t<img src=\"' . $_menu_item_image_img . '\" alt=\"\">\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>';\n }\n }\n if ($parent_nav_mega_view == 'video') {\n $_menu_item_video = get_post_meta($this->parent_menu_item_id, '_menu_item_video', true);\n if ($_menu_item_video != '') {\n $output .= '\n\t\t\t\t\t<li class=\"col-md-6\">\n\t\t\t\t\t\t<a class=\"careerfy-thumbnail\">\n\t\t\t\t\t\t\t' . wp_oembed_get($_menu_item_video, array('height' => 300)) . '\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>';\n }\n }\n }\n $output .= $indent . \"</ul>\\n\";\n $item_id = $this->parent_menu_item_id . $this->child_menu_item_id;\n }", "title": "" }, { "docid": "fde0b34817bfce9b0f2ef55e3854f318", "score": "0.53659064", "text": "function display_childrenuser($parent, $level, $procdf) \n\t\t\t\t{\n\t\t\t\t $sqls = \"SELECT menu_code, menu_name, menu_type, menu_seq \".\n\t\t\t\t \" FROM menud Where menu_stat = 'ACTIVE'\".\n\t\t\t \" and menu_type in ('Sub Menu','Program') and menu_parent = '\".$parent.\"'\".\n \t\t \t \" ORDER BY menu_seq\"; \n \t\t \t \n\t\t\t \t $rs_results = mysql_query($sqls); \n\t\t\t\t \n\t\t\t\t // display each child \n\t\t\t\t $i = 0;\n\t\t\t\t while ($i <> $level){\n\t\t\t\t \t$ind = $ind.\"---\";\n\t\t\t\t \t$i = $i + 1;\n\t\t\t\t }\t\n\t\t\t\t \n\t\t\t\t while ($row = mysql_fetch_assoc($rs_results)) { \n\t\t\t echo '<tr class=\"toggleable\" style=\"display:none\">';\n if ($row['menu_type'] == \"Sub Menu\"){\n\t\t\t echo '<td style=\"color:#3333CC; font-weight:bold;\">'.$ind.'>'.$row['menu_name'].\" (\".$row['menu_type'].\")\".'</td>';\n \t\t }else{\n\t\t\t\t echo '<td style=\"color:green; font-weight:bold;\">'.$ind.'>'.$row['menu_name'].\" (\".$row['menu_type'].\")\".'</td>';\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t $sql1 = \"select accessr, insertr, updater, viewr, deleter\";\n $sql1 .= \" from progauth\";\n $sql1 .= \" where username ='\".$procdf.\"'\";\n $sql1 .= \" and program_name ='\".$row['menu_code'].\"'\";\n \n $sql_result1 = mysql_query($sql1);\n $row1 = mysql_fetch_array($sql_result1);\n $prochkac = $row1[0];\n $prochkad = $row1[1];\n\t\t\t\t\t $prochkup = $row1[2];\n\t\t\t\t\t $prochkvi = $row1[3];\n\t\t\t\t\t $prochkde = $row1[4];\n\n if ($prochkac == 1){\n $varchk1ac = 'checked';\n }else{\n $varchk1ac = \"\";\n }\n if ($prochkad == 1){\n $varchk1ad = \"checked\";\n }else{\n $varchk1ad = \"\";\n } \n\t\t\t\t\t if ($prochkup == 1){\n $varchk1up = \"checked\";\n }else{\n $varchk1up = \"\";\n } \n\t\t\t\t\t if ($prochkvi == 1){\n $varchk1vi = \"checked\";\n }else{\n $varchk1vi = \"\";\n } \n\t\t\t\t\t if ($prochkde == 1){\n $varchk1de = \"checked\";\n }else{\n $varchk1de = \"\";\n } \n\n if ($row['menu_type'] == \"Sub Menu\"){\n \techo '<td></td>';\n \t \techo '<td align=\"center\"><input type=\"checkbox\" name=\"menucdac[]\" id= \"mmenuacid\" value=\"'.$row['menu_code'].'\" DISABLED '.$varchk1ac.'/>'.'</td>';\n \t }else{\n \techo '<td></td>';\n \techo '<td align=\"center\"><input type=\"checkbox\" name=\"menucdac[]\" id= \"mmenuacid\" value=\"'.$row['menu_code'].'\" DISABLED '.$varchk1ac.'/>'.'</td>';\n \techo '<td align=\"center\"><input type=\"checkbox\" name=\"menucdad[]\" id= \"mmenuadid\" value=\"'.$row['menu_code'].'\" DISABLED '.$varchk1ad.'/>'.'</td>';\n \techo '<td align=\"center\"><input type=\"checkbox\" name=\"menucdup[]\" id= \"mmenuupid\" value=\"'.$row['menu_code'].'\" DISABLED '.$varchk1up.'/>'.'</td>';\n \techo '<td align=\"center\"><input type=\"checkbox\" name=\"menucdvi[]\" id= \"mmenuviid\" value=\"'.$row['menu_code'].'\" DISABLED '.$varchk1vi.'/>'.'</td>';\n \techo '<td align=\"center\"><input type=\"checkbox\" name=\"menucdde[]\" id= \"mmenudeid\" value=\"'.$row['menu_code'].'\" DISABLED '.$varchk1de.'/>'.'</td>';\n \t\t} \n \t echo '</tr>';\n\t\t\t\t\t\t// call this function again to display this \n \t\t\t \t// child's children \n \t\t\t\t display_childrenuser($row['menu_code'], $level+1, $procdf); \n \t\t\t } \n\t\t\t\t}", "title": "" }, { "docid": "17f5b23be617ee0b9897ef63903eef7d", "score": "0.53656244", "text": "function l_build_menu() {\n\t\t$data = array();\n\t\t\t\n\t\t$q = $this->_ci->db->select(\"A.KD_MENU, ID_PARENT, MENU, URL, ICON\")\n\t\t\t\t\t\t ->from(\"HC_MENU A\")\n\t\t\t\t\t\t ->join(\"HC_AKSES_MENU B\", \"A.KD_MENU = B.KD_MENU\", \"INNER\")\n\t\t\t\t\t\t ->where('KD_STATUS', 1)\n\t\t\t\t\t\t ->where(\"USERNAME\", $this->_ci->session->userdata('username'))\n\t\t\t\t\t\t ->order_by('NO_URUT', 'ASC')\n\t\t\t\t\t\t ->get();\n\t\tif ($q->num_rows() > 0) {\n\t\t\t// variabel ref penampung\n\t\t\t$refs = array();\n\t\t\t\n\t\t\t// variable list penampung\n\t\t\t$list = array();\n\t\t\t\n\t\t\tforeach ($q->result_array() as $result) {\n\t\t\t\t$thisref\t\t\t = &$refs[$result['KD_MENU']];\n\t\t\t\t$thisref['KD_MENU']\t = $result['KD_MENU'];\n\t\t\t\t$thisref['ID_PARENT'] = $result['ID_PARENT'];\n\t\t\t\t$thisref['MENU']\t = $result['MENU'];\n\t\t\t\t$thisref['URL']\t\t = $result['URL'];\n\t\t\t\t$thisref['ICON']\t = $result['ICON'];\n\t\t\t\t\t\t\t\t\n\t\t\t\t// jika id_parent bernilai null\n\t\t\t\tif ($result['ID_PARENT'] == NULL) {\n\t\t\t\t\t$list[$result['KD_MENU']] = &$thisref;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$refs[$result['ID_PARENT']]['CHILDREN'][$result['KD_MENU']] = &$thisref;\n\t\t\t\t}\n\n\t\t\t\t$data = $list;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$q->free_result();\n\t\t\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "a42703f88e6b2ad56dd6dd1b1c1975bf", "score": "0.5364454", "text": "public function run()\n {\n //菜单数据\n\n $menus = [\n [\n 'name'=>'用户管理',\n 'group'=>'menu',\n 'pid'=>0,\n 'level'=>1,\n 'children'=>[\n [\n 'name'=>'用户列表',\n 'group'=>'menu',\n 'level'=>2,\n ]\n\n ]\n ],\n\n [\n 'name'=>'分类管理',\n 'group'=>'menu',\n 'pid'=>0,\n 'level'=>1,\n 'children'=>[\n [\n 'name'=>'分类列表',\n 'group'=>'menu',\n 'level'=>2,\n ],\n [\n 'name'=>'添加分类',\n 'group'=>'menu',\n 'level'=>2,\n ]\n\n ]\n ],\n\n\n [\n 'name'=>'商品管理',\n 'group'=>'menu',\n 'pid'=>0,\n 'level'=>1,\n 'children'=>[\n [\n 'name'=>'商品列表',\n 'group'=>'menu',\n 'level'=>2,\n ],\n [\n 'name'=>'添加商品',\n 'group'=>'menu',\n 'level'=>2,\n ]\n\n ]\n ],\n\n [\n 'name'=>'评价管理',\n 'group'=>'menu',\n 'pid'=>0,\n 'level'=>1,\n 'children'=>[\n [\n 'name'=>'评价列表',\n 'group'=>'menu',\n 'level'=>2,\n ]\n ]\n ],\n\n\n [\n 'name'=>'订单管理',\n 'group'=>'menu',\n 'pid'=>0,\n 'level'=>1,\n 'children'=>[\n [\n 'name'=>'订单列表',\n 'group'=>'menu',\n 'level'=>2,\n ]\n ]\n ],\n\n\n [\n 'name'=>'轮播管理',\n 'group'=>'menu',\n 'pid'=>0,\n 'level'=>1,\n 'children'=>[\n [\n 'name'=>'轮播列表',\n 'group'=>'menu',\n 'level'=>2,\n ],\n [\n 'name'=>'添加轮播',\n 'group'=>'menu',\n 'level'=>2,\n ]\n ]\n ],\n\n\n\n [\n 'name'=>'菜单管理',\n 'group'=>'menu',\n 'pid'=>0,\n 'level'=>1,\n 'children'=>[\n [\n 'name'=>'菜单列表',\n 'group'=>'menu',\n 'level'=>2,\n ],\n [\n 'name'=>'添加菜单',\n 'group'=>'menu',\n 'level'=>2,\n ]\n ]\n ],\n\n ];\n\n\n //循环插入数据库\n foreach ($menus as $one){\n $children = $one['children'];\n unset($one['children']);\n $one_menu = Category::create($one);\n $one_menu->childs()->createMany($children);\n }\n //清空缓存\n forget_cache_category();\n }", "title": "" }, { "docid": "bb5474ebbec62f4aa4aabb2f9fd3d170", "score": "0.53503436", "text": "function loadAdminMenu()\n {\n $db = DBs::getInstance();\n $q = \"SELECT\n `\" . TblSysMenuAdm . \"`.*, `\" . TblSysSprMenuAdm . \"`.`name`\n FROM\n `\" . TblSysMenuAdm . \"`, `\" . TblSysSprMenuAdm . \"`\n WHERE\n `\" . TblSysMenuAdm . \"`.`group` = '\" . $this->group . \"'\n AND `\" . TblSysSprMenuAdm . \"`.`cod` = `\" . TblSysMenuAdm . \"`.`id`\n AND `\" . TblSysSprMenuAdm . \"`.`lang_id` = '\" . _LANG_ID . \"'\n ORDER BY `\" . TblSysMenuAdm . \"`.`level`, `\" . TblSysMenuAdm . \"`.`move`\n \";\n\n $res = $db->db_Query($q);\n// echo '<br>WriteMenu:: $q='.$q.' $res='.$res;\n if (!$res) {\n return false;\n }\n $rows = $db->db_GetNumRows($res);\n// echo '<br>$rows='.$rows;\n if ($rows == 0) {\n return false;\n }\n\n for ($i = 0; $i < $rows; $i++) {\n $row = $db->db_FetchAssoc($res);\n $this->setAdminMenuTreeItem($row['level'], $row['id'], $row);\n $this->setAdminMenuDataItem($row['id'], $row);\n }\n// var_dump($this->adminMenuTree);\n// var_dump($this->adminMenuData);\n return true;\n }", "title": "" }, { "docid": "eb522c40ae7c3a866e4deff5c125ecb5", "score": "0.53462756", "text": "function callbackChangelevels($name, $field, $data) {\n include_once(PAPAYA_INCLUDE_PATH.'system/base_statictables.php');\n $changeLevels = base_statictables::getChangeLevels();\n $result = '<div class=\"dialogGroup dialogScale\">';\n foreach ($changeLevels as $i => $v) {\n $selected = (isset($data[$i])) ? 'checked=\"checked\"' : '';\n $result .= sprintf(\n '<input type=\"checkbox\" name=\"%s[%s][%d]\" value=\"1\" %s></input>%s<br />'.LF,\n papaya_strings::escapeHTMLChars($this->paramName),\n papaya_strings::escapeHTMLChars($name),\n (int)$i,\n $selected,\n papaya_strings::escapeHTMLChars($v)\n );\n }\n $result .= '</div>';\n return $result;\n }", "title": "" }, { "docid": "972872df0368cd47414950558e06d90b", "score": "0.5345731", "text": "function md_megamenu_edit_links_form_submit($form, &$form_state) {\r\n $tabs = json_decode($form_state['values']['save_data']);\r\n $settings = array();\r\n foreach ($tabs as $pos => $tab) {\r\n # process for tab\r\n $tab_settings = $tab->settings;\r\n\r\n $settings['general']['is_dropdown_menu'] = $tab_settings->mnu_fly_type;\r\n $settings['general']['title_enable'] = $tab_settings->title_enabled;\r\n $settings['general']['title'] = $tab_settings->mnu_title;\r\n $settings['general']['path'] = $tab_settings->mnu_path;\r\n $settings['general']['description'] = $tab_settings->mnu_desc;\r\n $settings['general']['icon'] = $tab_settings->icon_url;\r\n $settings['general']['css_class'] = $tab_settings->mnu_class;\r\n\r\n $settings['layout']['col_grid'] = $tab_settings->mnu_layout->numCol;\r\n $settings['layout']['rows_setting'] = $tab_settings->mnu_layout->setting;\r\n $settings['layout']['is_full_width'] = $tab_settings->mnu_layout->isFullWidth;\r\n $settings['layout']['submenu_width'] = $tab_settings->mnu_layout->subWidth;\r\n\r\n if ($tab_settings->tab_id == 0) {\r\n $tab_record = MDMegaTab::create($tab_settings->mnu_id, $pos, $tab->subMenu, $settings);\r\n }\r\n else {\r\n $tab_record = MDMegaTab::getTabById($tab_settings->tab_id);\r\n $tab_record->position = $pos;\r\n $tab_record->settings = $settings;\r\n $tab_record->items = $tab->subMenu;\r\n\r\n $tab_record->save();\r\n }\r\n }\r\n\r\n if ($form_state['values']['op'] == 'Save') {\r\n $form_state['redirect'] = 'admin/structure/md-megamenu';\r\n }\r\n else {\r\n if (isset($_GET['destination'])) {\r\n $form_state['redirect'] = array(current_path(), array('query' => drupal_get_destination()));\r\n unset($_GET['destination']);\r\n }\r\n }\r\n\r\n drupal_set_message(t('Megamenu <em>' . $form_state['values']['menu_title'] . '</em> has been edited.'));\r\n}", "title": "" }, { "docid": "bf037efe99cac1ca1f9eb09ac0d05dc8", "score": "0.53454554", "text": "function showLMenu(&$menu_tree) {\r\n foreach ($menu_tree as $menu) {\r\n ?>\r\n <li>\r\n <?php\r\n if (sizeof($menu->slaves['MenuItem']) > 0) {\r\n ?>\r\n <a href=\"<?php if($menu->mi_category == 'outer_url') echo $menu->link; else echo 'index.php?'.$menu->link ?>\">\r\n <?php echo $menu->name; ?></a>\r\n <ul>\r\n\t <?php showLMenu($menu->slaves['MenuItem']); ?>\r\n </ul>\r\n <?php\r\n } else {\r\n ?>\r\n <a href=\"<?php if($menu->mi_category == 'outer_url') echo $menu->link; else echo 'index.php?'.$menu->link ?>\">\r\n <?php echo $menu->name; ?></a>\r\n <?php\r\n }\r\n ?>\r\n </li>\r\n <?php\r\n }\r\n }", "title": "" }, { "docid": "65f8423b2be3cd2c80ec23c3fa2e073b", "score": "0.53258115", "text": "function action_update_menu()\n\t{\n\t\tlog_debug(\"inc_charts\", \"Executing action_update_menu()\");\n\n\t\t// start transaction\n\t\t$sql_obj = New sql_query;\n\t\t$sql_obj->trans_begin();\n\n\n\t\t// fetch all the menu options\n\t\t$sql_obj_menu\t\t= New sql_query;\n\t\t$sql_obj_menu->string\t= \"SELECT id, value FROM `account_chart_menu`\";\n\t\t$sql_obj_menu->execute();\n\t\t$sql_obj_menu->fetch_array();\n\n\t\tforeach ($sql_obj_menu->data as $data_menu)\n\t\t{\n\t\t\t// check if any current settings exist\n\t\t\t$sql_obj->string\t= \"SELECT id FROM account_charts_menus WHERE chartid='\". $this->id .\"' AND menuid='\". $data_menu[\"id\"] .\"' LIMIT 1\";\n\t\t\t$sql_obj->execute();\n\n\t\t\t\n\t\t\tif ($sql_obj->num_rows())\n\t\t\t{\n\t\t\t\t// chart has this menu option set\n\n\t\t\t\t// if the new setting is \"off\", delete the current setting.\n\t\t\t\tif ($this->data[\"menuoptions\"][ $data_menu[\"value\"] ] != \"on\")\n\t\t\t\t{\n\t\t\t\t\t$sql_obj->string\t= \"DELETE FROM account_charts_menus WHERE chartid='\". $this->id .\"' AND menuid='\". $data_menu[\"id\"] .\"' LIMIT 1\";\n\t\t\t\t\t$sql_obj->execute();\n\t\t\t\t}\n\n\t\t\t\t// if new setting is \"on\", we don't need todo anything.\n\t\t\t}\n\t\t\telse\n\t\t\t{\t// no current option exists\n\n\t\t\t\t// if the new option is \"on\", insert a new entry\n\t\t\t\tif ($this->data[\"menuoptions\"][ $data_menu[\"value\"] ] == \"on\")\n\t\t\t\t{\n\t\t\t\t\t$sql_obj->string\t= \"INSERT INTO account_charts_menus (chartid, menuid) VALUES ('\". $this->id .\"', '\". $data_menu[\"id\"] .\"')\";\n\t\t\t\t\t$sql_obj->execute();\n\t\t\t\t}\n\n\t\t\t\t// if new option is \"off\", we don't need todo anything.\n\t\t\t}\n\t\t\t\n\t\t} // end of loop through menu items\n\n\n\t\t// commit\n\t\tif (error_check())\n\t\t{\n\t\t\t$sql_obj->trans_rollback();\n\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sql_obj->trans_commit();\n\n\t\t\treturn 1;\n\t\t}\n\n\t}", "title": "" }, { "docid": "4feaf31f81f475e524995c0b321819ab", "score": "0.53227514", "text": "public function save_menu(){\n\t\t$menu_session = $this->session->menu;\t\n\t\tparametros($menu_session);\n\n\t\t$this->Menu_model->save_menu( $_POST );\n\n\t\tredirect(base_url().\"admin/menu/index\");\n\t}", "title": "" }, { "docid": "a4aca32e6b2c9ebab905d30fd46bcb3e", "score": "0.5321847", "text": "private function _createMenuOptions() {\n\n $result = array();\n\n $menu_items = $this->_CI->administrator_model->getAll_categories();\n\n foreach ($menu_items as $item) {\n\n if($item->parent != null){\n continue;\n }\n\n $menu_elements = [];\n $menu_elements['title'] = $item->c_name;\n $menu_elements['children'] = array();\n\n $x = 1;\n\n foreach ($menu_items as $child_item){\n\n if($child_item->parent != $item->c_name) {\n continue;\n }\n\n $menu_elements['children']['item-' . $x] = array();\n $menu_elements['children']['item-' . $x]['name'] = $child_item->c_name;\n $menu_elements['children']['item-' . $x]['slug'] = $child_item->slug;\n\n $x++;\n }\n\n $menu_elements['n_child'] = $x-1;\n\n $result[] = $menu_elements;\n }\n\n return $result;\n }", "title": "" }, { "docid": "1e1a4720ba2efd3b619b4e3bdd6f8835", "score": "0.5317671", "text": "function insert_level() {\n\t\t//echo \"<pre>\"; print_r($_POST);\n\t\t// form validation rules\n\t\t$this->form_validation->set_rules('levelname', 'Level Name', 'required');\n\t\tif ($this->form_validation->run() == FALSE)\n\t\t{\n\t\t\t$this->add_new();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$data['title'] = \"Add Level\";\n\t\t\t$data['resultstatus'] = $this->difficult_level->insert_level();\n\t\t\t$this->load->view(\"quiz\".'/add_level', $data);\n\t\t}\n\t}", "title": "" }, { "docid": "88b9814182626a1873dbf4bcee23fc93", "score": "0.5314871", "text": "function md_megamenu_configure_form($form, &$form_state, $menu_ids = NULL) {\r\n $form = array();\r\n $settings = MDMegaMenu::getDefaultSettings();\r\n $module_path = drupal_get_path('module', 'md_megamenu');\r\n drupal_add_css($module_path . '/css/mega_menu.css');\r\n drupal_add_css($module_path . '/js/colorpicker/css/colorpicker.css');\r\n\r\n drupal_add_library('system', 'ui.tabs');\r\n drupal_add_library('system', 'jquery.cookie');\r\n drupal_add_js($module_path . '/js/colorpicker/js/colorpicker.js');\r\n drupal_add_js($module_path . '/js/jquery.choosefont.js');\r\n drupal_add_js($module_path . '/js/md.menu-settings.js');\r\n\r\n drupal_set_title(t('Create new megamenu'));\r\n\r\n $menu = NULL;\r\n if (!is_null($menu_ids) && count($menu_ids) > 0) {\r\n $menu = MDMegaMenu::getById($menu_ids[0]);\r\n if ($menu) {\r\n $settings = $menu->settings;\r\n }\r\n\r\n drupal_set_title(t('MD Megamenu Configure: ' . $menu->title));\r\n }\r\n\r\n $form['menu_title'] = array(\r\n '#type' => 'textfield',\r\n '#title' => 'Menu name',\r\n '#required' => TRUE,\r\n '#default_value' =>($menu) ? $menu->title : \"\",\r\n );\r\n\r\n $form['machine_name'] = array(\r\n '#type' => 'machine_name',\r\n '#title' => t('Machine name'),\r\n '#default_value' => ($menu) ? $menu->machine_name: \"\",\r\n '#maxlength' => MENU_MAX_MENU_NAME_LENGTH_UI,\r\n '#description' => t('A unique name to construct the URL for the menu. It must only contain lowercase letters, numbers and hyphens.'),\r\n '#machine_name' => array(\r\n 'exists' => 'md_megamenu_check_machine_name',\r\n 'source' => array('menu_title'),\r\n 'replace_pattern' => '[^a-z0-9-]+',\r\n 'replace' => '-',\r\n ),\r\n '#disabled' => (($menu) && $menu->machine_name != ''),\r\n );\r\n\r\n $form['menu_description'] = array(\r\n '#type' => 'textarea',\r\n '#title' => 'Description',\r\n '#rows' => 2,\r\n '#resizable' => FALSE,\r\n '#default_value' => ($menu) ? $menu->description : \"\",\r\n );\r\n\r\n $form['menu_id_editted'] = array(\r\n '#type' => 'hidden',\r\n '#value' => ($menu) ? $menu->mid : 0,\r\n );\r\n\r\n $form['settings_header'] = array(\r\n '#markup' => '<div id=\"megamenu-settings\" class=\"megamenu-settings clearfix\">\r\n <div class=\"md-listleft\">\r\n <ul class=\"clearfix\">\r\n <li class=\"subtab-item clearfix first\"><a class=\"subtab-link\" href=\"#edit-general-settings\">General</a></li>\r\n <li class=\"subtab-item clearfix\"> <a class=\"subtab-link\" href=\"#edit-animation-settings\">Animation</a> </li>\r\n <li class=\"subtab-item clearfix\"> <a class=\"subtab-link\" href=\"#edit-style-settings\">Design</a> </li>\r\n <li class=\"subtab-item clearfix last\"> <a class=\"subtab-link\" href=\"#edit-font-settings\">Text &amp; Typography</a> </li>\r\n </ul>\r\n </div>\r\n <div class=\"md-listcontent\">',\r\n );\r\n\r\n # General settings\r\n $form['general_settings'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('class' => array('md-tabcontent', 'clearfix'), ),\r\n );\r\n\r\n $form['general_settings']['dm_left'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('class' => array('dmg-left')),\r\n );\r\n\r\n $orientations = array('horizontal' => t('Horizontal'), 'vertical' => t('Vertical'), );\r\n $form['general_settings']['dm_left']['dmg_orientation'] = array(\r\n '#type' => 'select',\r\n '#title' => 'Orientation',\r\n '#options' => $orientations,\r\n '#default_value' => $settings['general']['dmg_orientation'],\r\n );\r\n\r\n $form['general_settings']['dm_left']['dmg_submenuw'] = array(\r\n '#type' => 'textfield',\r\n '#title' => 'Vertical Megamenu Width',\r\n '#field_suffix' => 'px',\r\n '#default_value' => $settings['general']['dmg_submenuw'],\r\n '#attributes' => array('class' => array('w60')),\r\n );\r\n\r\n $form['general_settings']['dm_left']['dmg_verdir'] = array(\r\n '#type' => 'select',\r\n '#title' => t('Vertical direction'),\r\n '#options' => array('ltr' => t('Left to right'), 'rtl' => t('Right to left')),\r\n '#default_value' => $settings['general']['dmg_verdir'],\r\n );\r\n\r\n $form['general_settings']['dm_left']['dmg_fullwidth'] = array(\r\n '#type' => 'checkbox',\r\n '#title' => 'Menu bar fullwidth',\r\n '#default_value' => $settings['general']['dmg_fullwidth'],\r\n );\r\n\r\n $form['general_settings']['dm_left']['dmg_customwidth'] = array(\r\n '#type' => 'textfield',\r\n '#title' => t('Custom width'),\r\n '#default_value' => $settings['general']['dmg_customwidth'],\r\n '#field_suffix' => 'px',\r\n '#attributes' => array('class' => array('w60')),\r\n );\r\n\r\n $form['general_settings']['dm_left']['dmg_defaultheight'] = array(\r\n '#type' => 'checkbox',\r\n '#title' => 'Custom menu height',\r\n '#default_value' => $settings['general']['dmg_defaultheight'],\r\n );\r\n\r\n $form['general_settings']['dm_left']['dmg_customheight'] = array(\r\n '#type' => 'textfield',\r\n '#title' => t('Custom height'),\r\n '#default_value' => $settings['general']['dmg_customheight'],\r\n '#field_suffix' => 'px',\r\n '#attributes' => array('class' => array('w60')),\r\n );\r\n\r\n $form['general_settings']['dm_left']['dmg_fixed'] = array(\r\n '#type' => 'checkbox',\r\n '#title' => t('Menu fixed'),\r\n '#default_value' => $settings['general']['dmg_fixed'],\r\n );\r\n\r\n $form['general_settings']['dm_left']['dmg_showfixed'] = array(\r\n '#type' => 'checkbox',\r\n '#title' => t('Button to show/hide the menu bar'),\r\n '#default_value' => $settings['general']['dmg_showfixed'],\r\n );\r\n\r\n $form['general_settings']['dm_left']['dmg_position'] = array(\r\n '#type' => 'select',\r\n '#title' => t('Position'),\r\n '#options' => array('center_top' => t('Center top'), 'center_bottom' => t('Center bottom')),\r\n '#default_value' => $settings['general']['dmg_position'],\r\n );\r\n\r\n $form['general_settings']['dm_right'] = array(\r\n '#type' => 'checkboxes',\r\n '#options' => array(\r\n 'dmg_responsive' => t('Enable responsive'),\r\n 'dmg_arrow' => t('Auto generate arrow'),\r\n 'dmg_desc' => t('Menu description'),\r\n 'dmg_cssclasses' => t('Custom css classes'),\r\n 'dmg_menuicon' => t('Use menu icon'),\r\n 'dmg_menuitemicon' => t('Use menu item icon'),\r\n 'dmg_clickoutside' => t('Clicks outside to close'),\r\n ),\r\n '#default_value' => $settings['general']['dm_right'],\r\n );\r\n\r\n # Animation settings\r\n $form['animation_settings'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('class' => array('md-tabcontent', 'clearfix'))\r\n );\r\n\r\n $form['animation_settings']['dma_left'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('class' => array('dma-left')),\r\n );\r\n\r\n $form['animation_settings']['dma_left']['dma_animation'] = array(\r\n '#type' => 'select',\r\n '#title' => t('Animation'),\r\n '#options' => array('slide' => t('Slide'), 'fade' => t('Fade'), 'none' => t('None')),\r\n '#default_value' => $settings['animation']['dma_animation'],\r\n );\r\n\r\n $form['animation_settings']['dma_left']['dma_trigger'] = array(\r\n '#type' => 'select',\r\n '#title' => t('Trigger'),\r\n '#options' => array('hover_intent' => t('Hover intent'), 'hover' => t('Hover'), 'click' => t('Click')),\r\n '#default_value' => $settings['animation']['dma_trigger'],\r\n );\r\n\r\n $form['animation_settings']['dma_left']['dma_easing'] = array(\r\n '#type' => 'select',\r\n '#title' => t('Easing'),\r\n '#options' => array(\r\n '0' => t('None'),\r\n 'jswing' => t('jswing'),\r\n 'easeInQuad' => t('easeInQuad'),\r\n 'easeOutQuad' => t('easeOutQuad'),\r\n 'easeInOutQuad' => t('easeInOutQuad'),\r\n 'easeInCubic' => t('easeInCubic'),\r\n 'easeOutCubic' => t('easeOutCubic'),\r\n 'easeInOutCubic' => t('easeInOutCubic'),\r\n 'easeInQuart' => t('easeInQuart'),\r\n 'easeOutQuart' => t('easeOutQuart'),\r\n 'easeInOutQuart' => t('easeInOutQuart'),\r\n 'easeInQuint' => t('easeInQuint'),\r\n 'easeOutQuint' => t('easeOutQuint'),\r\n 'easeInOutQuint' => t('easeInOutQuint'),\r\n 'easeInSine' => t('easeInSine'),\r\n 'easeOutSine' => t('easeOutSine'),\r\n 'easeInOutSine' => t('easeInOutSine'),\r\n 'easeInExpo' => t('easeInExpo'),\r\n 'easeOutExpo' => t('easeOutExpo'),\r\n 'easeInOutExpo' => t('easeInOutExpo'),\r\n 'easeInCirc' => t('easeInCirc'),\r\n 'easeOutCirc' => t('easeOutCirc'),\r\n 'easeInOutCirc' => t('easeInOutCirc'),\r\n 'easeInElastic' => t('easeInElastic'),\r\n 'easeOutElastic' => t('easeOutElastic'),\r\n 'easeInOutElastic' => t('easeInOutElastic'),\r\n 'easeInBack' => t('easeInBack'),\r\n 'easeOutBack' => t('easeOutBack'),\r\n 'easeInOutBack' => t('easeInOutBack'),\r\n 'easeInBounce' => t('easeInBounce'),\r\n 'easeOutBounce' => t('easeOutBounce'),\r\n 'easeInOutBounce' => t('easeInOutBounce'),\r\n ),\r\n '#default_value' => $settings['animation']['dma_easing'],\r\n );\r\n\r\n $form['animation_settings']['dma_right'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('class' => array('dma-right')),\r\n );\r\n\r\n $form['animation_settings']['dma_right']['dma_show'] = array(\r\n '#type' => 'textfield',\r\n '#title' => t('Menu speed show'),\r\n '#field_suffix' => 'milisecond',\r\n '#default_value' => $settings['animation']['dma_show'],\r\n '#attributes' => array('class' => array('w60')),\r\n );\r\n\r\n $form['animation_settings']['dma_right']['dma_hide'] = array(\r\n '#type' => 'textfield',\r\n '#title' => t('Menu speed hide'),\r\n '#field_suffix' => 'milisecond',\r\n '#default_value' => $settings['animation']['dma_hide'],\r\n '#attributes' => array('class' => array('w60')),\r\n );\r\n\r\n $form['animation_settings']['dma_right']['dma_delay'] = array(\r\n '#type' => 'textfield',\r\n '#title' => t('Menu speed delay'),\r\n '#field_suffix' => 'milisecond',\r\n '#default_value' => $settings['animation']['dma_delay'],\r\n '#attributes' => array('class' => array('w60')),\r\n );\r\n\r\n # Design settings\r\n $form['style_settings'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('class' => array('md-tabcontent', 'clearfix'))\r\n );\r\n\r\n $form['style_settings']['dms_predefine'] = array(\r\n '#type' => 'select',\r\n '#title' => t('Predefined styles'),\r\n '#options' => array(\r\n 'style1' => t('Style 1'),\r\n 'style2' => t('Style 2'),\r\n 'style3' => t('Style 3'),\r\n 'style4' => t('Style 4'),\r\n 'custom' => t('Custom style'),\r\n ),\r\n '#default_value' => $settings['design']['dms_predefine'],\r\n\t\t\t'#description' => t('@1. <div class=\"md-guide-custom-style\"><p>@2</p><ul><li>@3</li><li>@4</li><li>@5</li><li>@6</li></ul></div>', array(\r\n\t\t\t\t'@1' => 'Choose style for your megamenu', \r\n\t\t\t\t'@2' => 'CSS file name suggest:', \r\n\t\t\t\t'@3' => 'your_default_theme/css/md-megamenu-machine_name.css', \r\n\t\t\t\t'@4' => 'your_default_theme/css/md-megamenu.css',\r\n\t\t\t\t'@5' => 'sites/all/libraries/megadrupal/megamenu/md-megamenu-machine_name.css',\r\n\t\t\t\t'@6' => 'sites/all/libraries/megadrupal/megamenu/md-megamenu.css',\r\n\t\t\t)),\r\n );\r\n\r\n $form['style_settings']['dms_custom'] = array(\r\n '#type' => 'textarea',\r\n '#title' => t('Custom CSS'),\r\n '#resizable' => FALSE,\r\n '#default_value' => $settings['design']['dms_custom'],\r\n );\r\n\r\n\r\n $form['style_settings']['dms_style_header'] = array(\r\n '#markup' => '<div id=\"dms-subtabs\" class=\"md-subtabs\">\r\n <div class=\"md-subtabs-head\">\r\n <ul class=\"clearfix\">\r\n <li class=\"subtab-item clearfix first\"><a class=\"subtab-link\" href=\"#edit-style-top-level\">Top level</a></li>\r\n <li class=\"subtab-item clearfix\"> <a class=\"subtab-link\" href=\"#edit-style-sub-level\">Sub level</a> </li>\r\n <li class=\"subtab-item clearfix\"> <a class=\"subtab-link\" href=\"#edit-style-hoveritem-level\">Hover mega item</a> </li>\r\n </ul>\r\n </div>',\r\n );\r\n\r\n # Design: Custom top level\r\n $form['style_settings']['style_top_level'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('class' => array('md-subtabcontent', 'clearfix'))\r\n );\r\n md_megamenu_prepare_design_level_style($form, 'top', $settings['design']);\r\n\r\n # Design: Custom sub level\r\n $form['style_settings']['style_sub_level'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('class' => array('md-subtabcontent', 'clearfix'))\r\n );\r\n\r\n md_megamenu_prepare_design_level_style($form, 'sub', $settings['design']);\r\n\r\n # Design: Custom hover mega item\r\n $form['style_settings']['style_hoveritem_level'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('class' => array('md-subtabcontent', 'clearfix'))\r\n );\r\n\r\n md_megamenu_prepare_design_level_style($form, 'hoveritem', $settings['design']);\r\n\r\n $form['style_settings']['dms_style_footer'] = array(\r\n '#markup' => '</div>',\r\n );\r\n\r\n # Text/Typography settings\r\n $form['font_settings'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('class' => array('md-tabcontent', 'clearfix')),\r\n );\r\n\r\n $form['font_settings']['dmf_ucf'] = array(\r\n '#type' => 'checkbox',\r\n '#title' => t('Use custom font'),\r\n '#description' => t('Check this if you want to use font from Google Webfonts or Typekit'),\r\n '#default_value' => $settings['text_typography']['dmf_ucf'],\r\n );\r\n\r\n $form['font_settings']['dmf_google'] = array(\r\n '#type' => 'textarea',\r\n '#title' => t('@import'),\r\n '#resizable' => FALSE,\r\n '#rows' => 1,\r\n '#description' => t(\"For example: &lt;link href='<strong>http://fonts.googleapis.com/css?family=Roboto+Condensed</strong>' rel='stylesheet' type='text/css'&gt\"),\r\n '#default_value' => $settings['text_typography']['dmf_google'],\r\n '#prefix' => '<div id=\"customfont-wrap\" class=\"form-subform\"><h3>Google Web Fonts</h3>\r\n <ul class=\"steps\">\r\n <li>Go to <a href=\"http://www.google.com/webfonts\" target=\"_blank\">www.google.com/webfonts</a>, choose your fonts and add to collection</li>\r\n <li>Click &quot;Use&quot; in the bottom bar after choose fonts</li>\r\n <li>Find &quot;Add this code to your website&quot;, copy from <strong>http://</strong> to the nearest <strong>\\'</strong> and paste it below to activate.</li>\r\n </ul>',\r\n );\r\n\r\n $form['font_settings']['dmf_typekit'] = array(\r\n '#type' => 'textfield',\r\n '#title' => t('Enter Your Typekit ID'),\r\n '#description' => t('<strong>* Note:</strong> Your kit must contain fonts and be published before entering your Typekit ID below. Check out <a href=\"http://help.typekit.com/customer/portal/articles/6780-adding-fonts-to-your-site\" target=\"_blank\">this article at Typekit\\'s Help Center</a> for detailed information on how to add fonts to your kit. (Make sure you skip the part about adding CSS selectors, and remember to republish your kit after making any changes.)'),\r\n '#default_value' => $settings['text_typography']['dmf_typekit'],\r\n '#prefix' => '<h3>Typekit</h3>\r\n <ul class=\"steps\">\r\n <li>Go to <a href=\"http://typekit.com/\" target=\"_blank\">www.typekit.com</a> and Log in to your account</li>\r\n <li>In the top bar of the Typekit website, click the green &quot;Launch Kit Editor&quot; button.</li>\r\n <li>In the top bar of the popup that appears, click the &quot;Kit Settings&quot; link and paste your domain. Once you\\'ve done this, click &quot;Save Settings.&quot;</li>\r\n <li>In the same top bar of the popup, click the &quot;embed code&quot; link.</li>\r\n <li>In the overlay that appears, there is a line at the bottom that says, &quot;If you are using a plugin or service that asks for a Typekit ID, use this: ____.&quot; This is your Typekit ID. Paste it below to activate.</li>\r\n </ul>',\r\n '#suffix' => '</div>',\r\n );\r\n\r\n $form['font_settings']['dmf_font_header'] = array(\r\n '#markup' => '<div id=\"dmf-subtabs\" class=\"md-subtabs\">\r\n <div class=\"md-subtabs-head\">\r\n <ul class=\"clearfix\">\r\n <li class=\"subtab-item clearfix first\"><a class=\"subtab-link\" href=\"#edit-font-top-level\">Top level</a></li>\r\n <li class=\"subtab-item clearfix\"> <a class=\"subtab-link\" href=\"#edit-font-sub-level\">Sub level</a> </li>\r\n </ul>\r\n </div>',\r\n );\r\n\r\n #Font: top level\r\n $form['font_settings']['font_top_level'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('class' => array('md-subtabcontent', 'clearfix'))\r\n );\r\n\r\n $form['font_settings']['font_top_level']['typo_top_level_html'] = array(\r\n '#markup' => '<h3>' . t('Font style') . '</h3>',\r\n );\r\n\r\n $form['font_settings']['font_top_level']['typo_top_level'] = array(\r\n '#type' => 'hidden',\r\n '#default_value' => $settings['text_typography']['typo_top_level'],\r\n '#prefix' => '<div id=\"typo-top-level\" class=\"choosefont clearfix\">',\r\n '#suffix' => '</div>',\r\n );\r\n\r\n $form['font_settings']['font_top_level']['link_style_text'] = array(\r\n '#markup' => '<h3>Link style</h3>',\r\n );\r\n\r\n $form['font_settings']['font_top_level']['link_style_header'] = array(\r\n '#markup' => '<div id=\"md-font-top-level-tabs\" class=\"md-subtabs\">\r\n <div class=\"md-subtabs-head\">\r\n <ul class=\"clearfix\">\r\n <li class=\"subtab-item clearfix first\"> <a class=\"subtab-link\" href=\"#link-regular\">Regular</a> </li>\r\n <li class=\"subtab-item clearfix\"> <a class=\"subtab-link\" href=\"#link-rollover\">Rollover</a> </li>\r\n <li class=\"subtab-item clearfix\"> <a class=\"subtab-link\" href=\"#link-visited\">Visited</a> </li>\r\n <li class=\"subtab-item clearfix last\"> <a class=\"subtab-link\" href=\"#link-on\">On</a> </li>\r\n </ul>\r\n </div>',\r\n );\r\n\r\n // Link regular\r\n $form['font_settings']['font_top_level']['link_regular'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('id' => array('link-regular'), 'class' => array('md-subtabcontent', 'clearfix')),\r\n );\r\n\r\n md_megamenu_prepare_link_style($form, 'regular', 'top', $settings['text_typography']);\r\n\r\n // Link rollover\r\n $form['font_settings']['font_top_level']['link_rollover'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('id' => array('link-rollover'), 'class' => array('md-subtabcontent', 'clearfix')),\r\n );\r\n\r\n md_megamenu_prepare_link_style($form, 'rollover', 'top', $settings['text_typography']);\r\n\r\n // Link visited\r\n $form['font_settings']['font_top_level']['link_visited'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('id' => array('link-visited'), 'class' => array('md-subtabcontent', 'clearfix')),\r\n );\r\n\r\n md_megamenu_prepare_link_style($form, 'visited', 'top', $settings['text_typography']);\r\n\r\n // Link on\r\n $form['font_settings']['font_top_level']['link_on'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('id' => array('link-on'), 'class' => array('md-subtabcontent', 'clearfix')),\r\n );\r\n\r\n md_megamenu_prepare_link_style($form, 'on', 'top', $settings['text_typography']);\r\n\r\n $form['font_settings']['font_top_level']['link_style_footer'] = array(\r\n '#markup' => '</div><!-- /#md-font-top-level-tabs -->',\r\n );\r\n\r\n # Font: sub level\r\n $form['font_settings']['font_sub_level'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('class' => array('md-subtabcontent', 'clearfix'))\r\n );\r\n\r\n $form['font_settings']['font_sub_level']['link_style_text'] = array(\r\n '#markup' => '<h3>Link style</h3>',\r\n );\r\n\r\n $form['font_settings']['font_sub_level']['link_style_header'] = array(\r\n '#markup' => '<div id=\"md-font-sub-level-tabs\" class=\"md-subtabs\">\r\n <div class=\"md-subtabs-head\">\r\n <ul class=\"clearfix\">\r\n <li class=\"subtab-item clearfix first\"> <a class=\"subtab-link\" href=\"#link-regular\">Regular</a> </li>\r\n <li class=\"subtab-item clearfix\"> <a class=\"subtab-link\" href=\"#link-rollover\">Rollover</a> </li>\r\n <li class=\"subtab-item clearfix\"> <a class=\"subtab-link\" href=\"#link-visited\">Visited</a> </li>\r\n <li class=\"subtab-item clearfix last\"> <a class=\"subtab-link\" href=\"#link-on\">On</a> </li>\r\n </ul>\r\n </div>',\r\n );\r\n\r\n // Link regular\r\n $form['font_settings']['font_sub_level']['link_regular'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('id' => array('link-regular'), 'class' => array('md-subtabcontent', 'clearfix')),\r\n );\r\n\r\n md_megamenu_prepare_link_style($form, 'regular', 'sub', $settings['text_typography']);\r\n\r\n // Link rollover\r\n $form['font_settings']['font_sub_level']['link_rollover'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('id' => array('link-rollover'), 'class' => array('md-subtabcontent', 'clearfix')),\r\n );\r\n\r\n md_megamenu_prepare_link_style($form, 'rollover', 'sub', $settings['text_typography']);\r\n\r\n // Link visited\r\n $form['font_settings']['font_sub_level']['link_visited'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('id' => array('link-visited'), 'class' => array('md-subtabcontent', 'clearfix')),\r\n );\r\n\r\n md_megamenu_prepare_link_style($form, 'visited', 'sub', $settings['text_typography']);\r\n\r\n // Link on\r\n $form['font_settings']['font_sub_level']['link_on'] = array(\r\n '#type' => 'container',\r\n '#attributes' => array('id' => array('link-on'), 'class' => array('md-subtabcontent', 'clearfix')),\r\n );\r\n\r\n md_megamenu_prepare_link_style($form, 'on', 'sub', $settings['text_typography']);\r\n\r\n $form['font_settings']['font_sub_level']['link_style_footer'] = array(\r\n '#markup' => '</div><!-- /#md-font-sub-level-tabs -->',\r\n );\r\n\r\n // text sublevel\r\n $form['font_settings']['font_sub_level']['text_sub_level_html'] = array(\r\n '#markup' => '<h3>' . t('Text style') . '</h3>',\r\n );\r\n\r\n $form['font_settings']['font_sub_level']['text_sub_level'] = array(\r\n '#type' => 'hidden',\r\n '#default_value' => $settings['text_typography']['text_sub_level'],\r\n '#prefix' => '<div id=\"text-sub-level\" class=\"choosefont clearfix\">',\r\n '#suffix' => '</div>',\r\n );\r\n\r\n $form['font_settings']['font_sub_level']['text_sub_level_color'] = array(\r\n '#type' => 'textfield',\r\n '#title' => t('Color'),\r\n '#default_value' => $settings['text_typography']['text_sub_level_color'],\r\n '#prefix' => '<div class=\"form-font-color\">',\r\n '#suffix' => '</div>',\r\n '#attributes' => array('class' => array('form-colorpicker')),\r\n );\r\n\r\n // header (.mm-header)\r\n $form['font_settings']['font_sub_level']['header_sub_level_html'] = array(\r\n '#markup' => '<h3>' . t('Header style') . '</h3>',\r\n );\r\n\r\n $form['font_settings']['font_sub_level']['header_sub_level'] = array(\r\n '#type' => 'hidden',\r\n '#default_value' => $settings['text_typography']['header_sub_level'],\r\n '#prefix' => '<div id=\"header-sub-level\" class=\"choosefont clearfix\">',\r\n '#suffix' => '</div>',\r\n );\r\n\r\n $form['font_settings']['font_sub_level']['header_sub_level_color'] = array(\r\n '#type' => 'textfield',\r\n '#title' => t('Color'),\r\n '#default_value' => $settings['text_typography']['header_sub_level_color'],\r\n '#prefix' => '<div class=\"form-font-color\">',\r\n '#suffix' => '</div>',\r\n '#attributes' => array('class' => array('form-colorpicker')),\r\n );\r\n\r\n $i = 1;\r\n while ($i <= 6) {\r\n $form['font_settings']['font_sub_level']['h' . $i . '_sub_level_html'] = array(\r\n '#markup' => '<h3>' . t('Header ' . $i . ' style') . '</h3>',\r\n );\r\n\r\n $form['font_settings']['font_sub_level']['h' . $i . '_sub_level'] = array(\r\n '#type' => 'hidden',\r\n '#default_value' => $settings['text_typography']['h' . $i . '_sub_level'],\r\n '#prefix' => '<div id=\"h' . $i . '-sub-level\" class=\"choosefont clearfix\">',\r\n '#suffix' => '</div>',\r\n );\r\n\r\n $form['font_settings']['font_sub_level']['h' . $i . '_sub_level_color'] = array(\r\n '#type' => 'textfield',\r\n '#title' => t('Color'),\r\n '#default_value' => $settings['text_typography']['h' . $i . '_sub_level_color'],\r\n '#prefix' => '<div class=\"form-font-color\">',\r\n '#suffix' => '</div>',\r\n '#attributes' => array('class' => array( 'form-colorpicker')),\r\n );\r\n\r\n $i++;\r\n }\r\n\r\n $form['font_settings']['dmf_font_footer'] = array(\r\n '#markup' => '</div>',\r\n );\r\n\r\n $form['settings_footer'] = array(\r\n '#markup' => '</div></div>',\r\n );\r\n\r\n $form['savedcolor1'] = array(\r\n '#type' => 'hidden',\r\n '#default_value' => $settings['savedcolor'],\r\n '#attributes' => array('id' => 'savedcolor1'),\r\n );\r\n\r\n $form['save_menu'] = array(\r\n '#type' => 'submit',\r\n '#value' => 'Save',\r\n );\r\n\r\n if ($form['menu_id_editted']['#value'] > 0) {\r\n $form['save_edit_mmenu_'] = array(\r\n '#type' => 'submit',\r\n '#value' => 'Save & Edit',\r\n );\r\n\r\n # Check user permission to show delete button\r\n if (user_access('delete md_megamenu')) {\r\n $form['delete_menu'] = array(\r\n '#type' => 'submit',\r\n '#value' => 'Delete',\r\n );\r\n }\r\n }\r\n\r\n // Load font styles\r\n $fonts = load_font_configure($settings);\r\n drupal_add_js(array('font_array' => $fonts[0]), 'setting');\r\n drupal_add_js(array('font_vars' => $fonts[1]), 'setting');\r\n // add for fonts END\r\n\r\n return $form;\r\n}", "title": "" }, { "docid": "253db0b8a667d127353667c7a98128ca", "score": "0.53094935", "text": "function csco_admin_modify_menu_walker() {\n\n\t/**\n\t * Custom Walker for Nav Menu Editor\n\t */\n\tclass CSCO_Menu_Item_Walker extends Walker_Nav_Menu_Edit {\n\n\t\t/**\n\t\t * Start the element output.\n\t\t *\n\t\t * We're injecting our custom fields after the div.submitbox\n\t\t *\n\t\t * @see Walker_Nav_Menu::start_el()\n\t\t * @since 0.1.0\n\t\t * @since 0.2.0 Update regex pattern to support WordPress 4.7's markup.\n\t\t *\n\t\t * @param string $output Passed by reference. Used to append additional content.\n\t\t * @param object $item Menu item data object.\n\t\t * @param int $depth Depth of menu item. Used for padding.\n\t\t * @param array $args Menu item args.\n\t\t * @param int $id Nav menu ID.\n\t\t */\n\t\tfunction start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {\n\t\t\t$item_output = '';\n\n\t\t\tparent::start_el( $item_output, $item, $depth, $args, $id );\n\n\t\t\t$output .= preg_replace(\n\t\t\t\t// NOTE: Check this regex from time to time!\n\t\t\t\t'/(?=<(fieldset|p)[^>]+class=\"[^\"]*field-move)/',\n\t\t\t\t$this->get_fields( $item, $depth, $args ),\n\t\t\t\t$item_output\n\t\t\t);\n\t\t}\n\n\t\t/**\n\t\t * Get custom fields\n\t\t *\n\t\t * @access protected\n\t\t * @since 0.1.0\n\t\t * @uses add_action() Calls 'menu_item_custom_fields' hook\n\t\t *\n\t\t * @param object $item Menu item data object.\n\t\t * @param int $depth Depth of menu item. Used for padding.\n\t\t * @param array $args Menu item args.\n\t\t * @param int $id Nav menu ID.\n\t\t *\n\t\t * @return string Form fields\n\t\t */\n\t\tprotected function get_fields( $item, $depth, $args = array(), $id = 0 ) {\n\t\t\tob_start();\n\n\t\t\t/**\n\t\t\t * Get menu item custom fields\n\t\t\t *\n\t\t\t * @since 0.1.0\n\t\t\t * @since 1.0.0 Pass correct parameters.\n\t\t\t *\n\t\t\t * @param int $item_id Menu item ID.\n\t\t\t * @param object $item Menu item data object.\n\t\t\t * @param int $depth Depth of menu item. Used for padding.\n\t\t\t * @param array $args Menu item args.\n\t\t\t *\n\t\t\t * @return string Custom fields HTML.\n\t\t\t */\n\t\t\tdo_action( 'wp_nav_menu_item_data_fields', $item->ID, $item, $depth, $args );\n\n\t\t\treturn ob_get_clean();\n\t\t}\n\t}\n}", "title": "" }, { "docid": "3d377eff60b66de5b277dde8250c1699", "score": "0.5307685", "text": "public function testUpdate()\n {\n $menuData = [\n 'field' => 'value',\n 'max_depth' => 5,\n 'max_children' => 5\n ];\n $storeResponse = $this->postJson('/api/menus', $menuData);\n $newMenuData = [\n 'field' => 'new_value',\n 'max_depth' => 15,\n 'max_children' => 25\n ];\n $response = $this->put('/api/menus/' . $storeResponse->json('id'), $newMenuData);\n\n $response->assertStatus(Response::HTTP_OK);\n $response->assertJson($newMenuData);\n }", "title": "" }, { "docid": "3bcac34e162b9bca32d9665194e05724", "score": "0.53016394", "text": "public function adminMenu() {\n\t\tglobal $menu;\n\n\t\tif ( ! acf_get_setting( 'show_admin' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$type = get_post_type_object( 'acf-field-group' );\n\t\t$parent = \"edit.php?post_type={$type->name}\";\n\n\t\t// Remove the CPT sub-menus. We need to re-add them with the appropriate\n\t\t// capability for editing field groups.\n\n\t\tremove_submenu_page( $parent, $parent );\n\t\tremove_submenu_page( $parent, \"post-new.php?post_type={$type->name}\" );\n\n\t\tadd_submenu_page(\n\t\t\t$parent,\n\t\t\t$type->labels->all_items,\n\t\t\t$type->labels->all_items,\n\t\t\t$type->cap->edit_posts,\n\t\t\t$parent\n\t\t);\n\n\t\tadd_submenu_page(\n\t\t\t$parent,\n\t\t\t$type->labels->add_new_item,\n\t\t\t$type->labels->new_item,\n\t\t\t$type->cap->create_posts,\n\t\t\t\"post-new.php?post_type={$type->name}\"\n\t\t);\n\n\t\t// Changes the capability for the ACF top-level menu so that users who\n\t\t// can edit have access to the the menu page. This should be fixed in\n\t\t// core WP b/c it's not picking up that there are sub-menus that the\n\t\t// user has permission for.\n\t\tforeach ( $menu as $menu_key => $menu_item ) {\n\n\t\t\tif ( $parent === $menu_item[2] ) {\n\n\t\t\t\tif ( current_user_can( 'edit_acf_field_groups' ) ) {\n\t\t\t\t\t$menu[ $menu_key ][1] = 'edit_acf_field_groups';\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "392bbb181912569980664423aa111bc5", "score": "0.5277067", "text": "function create_module_input_menus($module_data)\r\n\t{\r\n\t\r\n\t\tglobal $CONFIG, $objDates;\r\n\t\t\r\n\t\t$menus_array = array();\r\n\t\tif ($_GET['action']=='modify') {\r\n\t\t\r\n\t\t\t$status_key\t\t = $module_data['status_key'];\r\n\t\t\t$icon_key\t\t = $module_data['icon_key']; \r\n\t\t\t$change_status_date = $module_data['change_status_date']; \r\n\t\t\t$change_status_key = $module_data['change_status_key']; \r\n\t\t\t\t\t\r\n\t\t\r\n\t\t} else {\r\n\t\t\t\t\r\n\t\t\t$change_status_date_month\t = $_POST['change_status_date_month'];\r\n\t\t\t$change_status_date_day\t = $_POST['change_status_date_day'];\r\n\t\t\t$change_status_date_year\t = $_POST['change_status_date_year'];\r\n\t\t\t$status_key\t\t\t\t = $_POST['status_key'];\r\n\t\t\t$icon_key\t\t\t\t\t = isset($_POST['icon_key'])? $_POST['icon_key']: '1' ;\r\n\t\t\t$change_status_key\t\t\t= $_POST['change_status_key'];\r\n\t\t\t$change_status_date\t\t = $_POST['change_status_date'];\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tif ($change_status_date_month!='') {\r\n\t\r\n\t\t\t$change_status_date = mktime(0, 0,0 ,$change_status_date_month,$change_status_date_day,$change_status_date_year );\r\n\t\r\n\t\t}\r\n\r\n \r\n\t\t//generate icons menu\r\n\t\t$icon_sql = \"SELECT name, icon_key from {$CONFIG['DB_PREFIX']}icons ORDER BY name\";\r\n\t\t$menus_array['icon_menu'] = make_menu($icon_sql,'icon_key',$icon_key,'1', false, false);\r\n\r\n\t\tif (!is_object($objDates)) {\r\n\r\n\t\t\tif (!class_exists('InteractDate')) {\r\n\r\n\t\t\t\trequire_once($CONFIG['BASE_PATH'].'/includes/lib/date.inc.php');\r\n\t\r\n\t\t\t}\r\n\r\n\t\t\t$objDates = new InteractDate();\r\n\t\t}\r\n\t\t\r\n\t\t$menus_array['date_menu'] = $objDates->createDateSelect('change_status_date',$change_status_date, false);\r\n\t\t\t\t\r\n\t\treturn $menus_array;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c631071112834a1c1f56371af57d3689", "score": "0.5268431", "text": "public function testStoreMenu()\n {\n $menuData = [\n 'field' => 'value',\n 'max_depth' => 5,\n 'max_children' => 5\n ];\n $response = $this->postJson('/api/menus', $menuData);\n\n $response->assertStatus(Response::HTTP_CREATED);\n $response->assertJson($menuData);\n }", "title": "" }, { "docid": "1dbf2d4aa1cc572fea1646053dfa2024", "score": "0.526596", "text": "public static function admin_menu(){\r\n\t\tadd_submenu_page( 'pmpro-membershiplevels', __( 'Approvals', 'pmpro' ), __( 'Approvals', 'pmpro' ), 'pmpro_approvals', 'pmpro-approvals', array( 'PMPro_Approvals', 'admin_page_approvals' ) );\r\n }", "title": "" }, { "docid": "3f0c33c8f9893fd8178f73ca104e9cf3", "score": "0.52642804", "text": "function reservasiChildMenu(){\n add_submenu_page( \n 'reservasi_pengunjung' \n , 'Reservasi Kategori Umum' \n , 'Kategori Umum'\n , 'manage_options'\n , 'kategori_umum'\n , 'reservasiUmumInit' );\n add_submenu_page( \n 'reservasi_pengunjung' \n , 'Reservasi Kategori Khusus' \n , 'Kategori Khusus'\n , 'manage_options'\n , 'kategori_khusus'\n , 'reservasiKhususInit' );\n add_submenu_page( \n 'reservasi_pengunjung' \n , 'Reservasi Kategori Pelajar' \n , 'Kategori Pelajar'\n , 'manage_options'\n , 'kategori_pelajar'\n , 'reservasiPelajarInit' );\n add_submenu_page( \n 'reservasi_pengunjung' \n , 'Reservasi Kategori Asing' \n , 'Kategori Asing'\n , 'manage_options'\n , 'kategori_asing'\n , 'reservasiAsingInit' );\n add_submenu_page( \n 'reservasi_pengunjung' \n , 'Report Reservasi' \n , 'Report Reservasi'\n , 'manage_options'\n , 'report'\n , 'reportReservasiInit' );\n }", "title": "" }, { "docid": "a2c42e7825bf96b443adc1e4f05e4992", "score": "0.52629304", "text": "function cs_mega_update_custom_nav_fields($menu_id, $menu_item_db_id, $args) {\n // Check if element is properly sent\n $megamenu_value = 'off';\n $columns_value = 'off';\n $subtitle_value = '';\n $tooltip_value = '';\n $bg_value = '';\n\n if (isset($_REQUEST['menu-item-megamenu'][$menu_item_db_id])) {\n $megamenu_value = $_REQUEST['menu-item-megamenu'][$menu_item_db_id];\n } else {\n $megamenu_value = 'off';\n }\n\n if (isset($_REQUEST['menu-item-columns'][$menu_item_db_id])) {\n $columns_value = $_REQUEST['menu-item-columns'][$menu_item_db_id];\n } else {\n $columns_value = 'off';\n }\n\n if (isset($_REQUEST['menu-item-subtitle'][$menu_item_db_id])) {\n $subtitle_value = $_REQUEST['menu-item-subtitle'][$menu_item_db_id];\n } else {\n $subtitle_value = '';\n }\n\n if (isset($_REQUEST['menu-item-tooltip'][$menu_item_db_id])) {\n $tooltip_value = $_REQUEST['menu-item-tooltip'][$menu_item_db_id];\n } else {\n $tooltip_value = '';\n }\n\n if (isset($_REQUEST['menu-item-bg'][$menu_item_db_id])) {\n $bg_value = $_REQUEST['menu-item-bg'][$menu_item_db_id];\n } else {\n $bg_value = '';\n }\n\n update_post_meta($menu_item_db_id, '_menu_item_megamenu', sanitize_text_field($megamenu_value));\n update_post_meta($menu_item_db_id, '_menu_item_columns', sanitize_text_field($columns_value));\n update_post_meta($menu_item_db_id, '_menu_item_subtitle', sanitize_text_field($subtitle_value));\n update_post_meta($menu_item_db_id, '_menu_item_tooltip', sanitize_text_field($tooltip_value));\n update_post_meta($menu_item_db_id, '_menu_item_bg', sanitize_text_field($bg_value));\n }", "title": "" }, { "docid": "eebabba56c29ede2649247bd734d9820", "score": "0.5256901", "text": "function phptemplate_navigation_links_level($tree_page, $tree_all) {\n $links = array();\n foreach ($tree_all as $key => $item) {\n $item_page = $tree_page[$key];\n $item_all = $tree_all[$key];\n if (!$item_all['link']['hidden']) {\n $class = '';\n $l = $item_all['link']['localized_options'];\n $l['href'] = $item_all['link']['href'];\n $l['title'] = $item_all['link']['title'];\n if ($item_page['link']['in_active_trail']) {\n if ($l['href'] != $_GET['q']) {\n $class = ' active-trail';\n }\n }\n if ($item_all['below']) {\n $l['children'] = phptemplate_navigation_links_level($item_page['below'], $item_all['below']);\n }\n // Keyed with the unique mlid to generate classes in theme_links().\n $links['menu-'. $item_all['link']['mlid'] . $class] = $l;\n }\n }\n return $links;\n}", "title": "" }, { "docid": "e29744798a8eef214784aefd4c05a0d1", "score": "0.52509505", "text": "public function onLevelChange()\n {\n\n }", "title": "" }, { "docid": "e483a78124cbb898ca36284770ed71dd", "score": "0.5246598", "text": "function md_megamenu_import_form($form, &$form_state) {\r\n # Get all CuteSliders are existing\r\n $menus = MDMegaMenu::getAll();\r\n\r\n $menu_options = array();\r\n foreach ($menus as $menu) {\r\n $menu_options[$menu->mid] = $menu->title;\r\n }\r\n $form['export'] = array(\r\n '#type' => 'fieldset',\r\n '#title' => t('Export'),\r\n '#collapsible' => FALSE,\r\n );\r\n\r\n $form['export']['menus'] = array(\r\n '#type' => 'radios',\r\n '#title' => t('Choose menu to export'),\r\n '#options' => $menu_options,\r\n '#default_value' => array(),\r\n );\r\n\r\n $form['export']['export_button'] = array(\r\n '#markup' => '<div><input type=\"button\" name=\"export-button\" class=\"form-submit\" value=\"Export\" /></div>'\r\n );\r\n\r\n $form['export']['export_data'] = array(\r\n '#type' => 'textarea',\r\n '#title' => t('Export data'),\r\n '#default_value' => '',\r\n '#description' => t('Copy this data and paste into input in Import form of site that you want to import.'),\r\n '#resizable' => FALSE,\r\n );\r\n\r\n $form['import'] = array(\r\n '#type' => 'fieldset',\r\n '#title' => t('Import'),\r\n '#collapsible' => FALSE,\r\n );\r\n\r\n $form['import']['machine_name'] = array(\r\n '#type' => 'textfield',\r\n '#title' => t('Machine name'),\r\n '#default_value' => '',\r\n '#description' => t('Enter the machine name to use for this MD Megamenu if it is different from the source MD Megamenu. Leave blank to use the name of the MD Megamenu.'),\r\n '#resizable' => FALSE,\r\n );\r\n\r\n $form['import']['import_data'] = array(\r\n '#type' => 'textarea',\r\n '#title' => t('Import data'),\r\n '#default_value' => '',\r\n '#description' => t('Paste MDMegamenu data export from another site here to import to this site.'),\r\n '#resizable' => FALSE,\r\n );\r\n\r\n $form['import']['import_submit'] = array(\r\n '#type' => 'submit',\r\n '#value' => t('Import'),\r\n );\r\n\r\n drupal_add_js(drupal_get_path('module', 'md_megamenu') . '/js/md-megamenu-export.js');\r\n\r\n return $form;\r\n}", "title": "" }, { "docid": "d4b7621c16884c1f4f5c98696e9da4c1", "score": "0.5243694", "text": "public function menu_edit_by_id($id)\n {\n// return $query->result();\n\n $menuname = $this->input->post('menuname');\n $insertby = $this->input->post('insertby');\n $level = $this->input->post('level');\n $date=date(\"Y-m-d\");\n\n\n //\n\n if ($level=='0'){\n\n\n\n $data = array(\n\n 'menuName' => $menuname,\n 'parentId' => '0',\n 'level'=>$level,\n 'lastModifiedBy' => $insertby,\n 'lastModifiedDate'=>$date\n\n );\n $data = $this->security->xss_clean($data);\n $this->db->where('menuId', $id);\n $this->db->update('menu', $data);\n\n }\n else {\n $parent_id = $this->input->post('menu_name');\n if ($parent_id == null) {\n return false;\n }elseif ($parent_id == 'Select Menu')\n {\n return false;\n }\n else {\n $data = array(\n\n 'menuName' => $menuname,\n 'parentId' => $parent_id,\n 'level' => $level,\n 'lastModifiedBy' => $insertby,\n 'lastModifiedDate' => $date\n\n );\n $data = $this->security->xss_clean($data);\n $this->db->where('menuId', $id);\n $this->db->update('menu', $data);\n }\n }\n }", "title": "" }, { "docid": "f4aa23a73772575d62f96e67b9fc1f55", "score": "0.5242162", "text": "public function FieldsUpdateMenus(){\n $this->_arregloCampos=array(\"descriptionMenu\",\"iconMenu\");\n return $this->_arregloCampos;\n }", "title": "" }, { "docid": "5b32553f4e1156fb751fd49ed3e9fee5", "score": "0.52396065", "text": "public static function createLevels($menuItems)\n\t{\n\t\t$result = array();\n\t\t$result[1] = array();\n\n\t\tforeach ($menuItems as $i => &$item)\n\t\t{\n\t\t\t// Resolve the alias item to get the original item\n\t\t\tif ($item->type == 'alias')\n\t\t\t{\n\t\t\t\tstatic::resolveAlias($item);\n\t\t\t}\n\n\t\t\tif ($item->link = in_array($item->type, array('separator', 'heading', 'container')) ? '#' : trim($item->link))\n\t\t\t{\n\t\t\t\t$item->submenu = array();\n\t\t\t\t$item->class = isset($item->img) ? $item->img : '';\n\t\t\t\t$item->scope = isset($item->scope) ? $item->scope : null;\n\t\t\t\t$item->browserNav = $item->browserNav ? '_blank' : '';\n\n\t\t\t\t$result[$item->parent_id][$item->id] = $item;\n\t\t\t}\n\t\t}\n\n\t\t// Move each of the items under respective parent menu items.\n\t\tif (count($result[1]))\n\t\t{\n\t\t\tforeach ($result as $parentId => &$mItems)\n\t\t\t{\n\t\t\t\tforeach ($mItems as &$mItem)\n\t\t\t\t{\n\t\t\t\t\tif (isset($result[$mItem->id]))\n\t\t\t\t\t{\n\t\t\t\t\t\t$mItem->submenu = &$result[$mItem->id];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Return only top level items, subtree follows\n\t\treturn $result[1];\n\t}", "title": "" }, { "docid": "12fdedd0c87a2b028858a1c09e474e7e", "score": "0.52383727", "text": "function RenderHTMLMenu(){\n\t\t$this->printCSSMenu();\n\t\t$get=$this->getNameMenuFile();\n\t\tif(file_exists($get)){\n\t\t\t$this->setNameXML($get);\n\t\t\t\n\t\t\t$hcoinc=$this->getElementByTagName('menu_[a-z]{1,50}');\n\t\t\t\n\t\t\tfor($i=0;$i<=(count($hcoinc)-1);$i++){\n\t\t\t\t$aux=explode('_',$hcoinc[$i]);\n\t\t\t\t$menuaux[]=$aux[1];\n\t\t\t\t$menul[]=$aux[1];\n\t\t\t}\n\t\t\t\n\t\t\t//buscar los menu que no son de nivel 0\n\t\t\t$encontrado=0;\n\t\t\t$l=0;\n\t\t\t$n=0;\n\t\t\tfor($i=0;$i<=(count($hcoinc)-1);$i++){\n\t\t\t\t$cadena=$menul[$i].'_menuchild_[0-9]{1,5}';\n\t\t\t\t$conci=$this->getElementByTagName($cadena);\n\t\t\t\tif(count($conci)>0 && count($conci)<2){\n\t\t\t\t\t$auxme=explode('-',$conci);\n\t\t\t\t\t$this->childs[$n]=$auxme[0];\n\t\t\t\t\t$n++;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfor($j=0,$x=$n;$j<=(count($conci)-1),$x<=(count($conci)+$n-1);$j++,$x++){\n\t\t\t\t\t\t$auxme=explode('-',$conci[$j]);\n\t\t\t\t\t\t$this->childs[$x]=$auxme[0];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//pasar los menus que son de nivel 0 (nivel superior)\n\t\t\t$l=0;\n\t\t\t$e=-2;\n\t\t\tfor($i=0;$i<=(count($hcoinc)-1);$i++){\n\t\t\t\t$menupa=$menul[$i];\n\t\t\t\tfor($j=0;$j<=(count($this->childs)-1);$j++){\n\t\t\t\t\tif($this->childs[$j]==$menupa){\n\t\t\t\t\t\t$e=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($e==-2){\n\t\t\t\t\t$menufinal[$l]=$menul[$i];\n\t\t\t\t\t$l++;\n\t\t\t\t}\n\t\t\t\t$e=-2;\n\t\t\t}\n\t\t\t//crear el menu HTML\n\t\t\t?>\n\t\t\t<div class=\"menu\">\n\t\t\t<ul>\n\t\t\t<?php\n\t\t\tfor($i=0;$i<=(count($menufinal)-1);$i++){\n\t\t\t\t$nombremenu=$menufinal[$i];\n\t\t\t\t$nombremenucs=str_replace('_',' ',$nombremenu);\n\t\t\t\techo(\"<li><a class=\\\"hide\\\">\".ucwords($nombremenucs).\"</a>\");\n\t\t\t\t?>\n\t\t\t\t<!--[if lte IE 6]>\n\t\t\t\t<a href=\\\"#\\\">DEMOS\n\t\t\t\t<table><tr><td>\n\t\t\t\t<![endif]-->\n\t\t\t\t<ul>\n\t\t\t\t<?php\n\t\t\t\t\n\t\t\t\t$cadena=$nombremenu.'_menuchild[a-z_]{1,50}[0-9]{1,5}';\n\t\t\t\t$icoinc=$this->getElementByTagName($cadena);\n\t\t\t\tif(count($icoinc)>0){\n\t\t\t\t\tfor($j=0;$j<=(count($icoinc)-1);$j++){\n\t\t\t\t\t\t$enlace=$nombremenu.'_menuchild_'.$j;\n\t\t\t\t\t\t$links[]=$this->getElementByTagName($enlace);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor($f=0;$f<=(count($links)-1);$f++){\n\t\t\t\t\t\t$variop=explode('-',$links[$f]);\n\t\t\t\t\t\t$menun='menu_'.$variop[0];\n\t\t\t\t\t\t$cadena=$variop[0].'_menuoption_[0-9]{1,5}';\n\t\t\t\t\t\t$ncoinc=$this->getElementByTagName($cadena);\n\t\t\t\t\t\t\t$auxmenu=$variop[0];\n\t\t\t\t\t\t\t$auxmenu=str_replace('_',' ',$auxmenu);\n\t\t\t\t\t\t\techo(\"<li><a class=\\\"hide\\\" href='?m=\".$variop[0].\"' >\".ucwords($auxmenu).\"></a>\")\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t <!--[if lte IE 6]>\n\t\t\t\t\t\t <a class=\"sub\" href=\"../menu/hover_click.html\" title=\"Hover/click with no active/focus borders\">HOVER/CLICK &gt;\n\t\t\t\t\t\t <table><tr><td>\n\t\t\t\t\t\t <![endif]-->\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\tif(count($ncoinc)>0){\n\t\t\t\t\t\t\t\tif(count($ncoinc)>0 && count($ncoinc)<2){\n\t\t\t\t\t\t\t\t\t$varios=explode('-',$ncoinc);\n\t\t\t\t\t\t\t\t\t$auxmenu=$varios[0];\n\t\t\t\t\t\t\t\t\t$auxmenu=str_replace('_',' ',$auxmenu);\n\t\t\t\t\t\t\t\t\techo(\"<li><a href='?m=\".$varios[1].\"'>\".$auxmenu.\"</a></li>\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t$linksb=array();\n\t\t\t\t\t\t\t\t\tfor($j=0;$j<=(count($ncoinc)-1);$j++){\n\t\t\t\t\t\t\t\t\t\t$enlace=$variop[0].'_menuoption_'.$j;\n\t\t\t\t\t\t\t\t\t\t$linksb[]=$this->getElementByTagName($enlace);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfor($k=0;$k<=(count($linksb)-1);$k++){\n\t\t\t\t\t\t\t\t\t\t$variop=explode('-',$linksb[$k]);\n\t\t\t\t\t\t\t\t\t\t$auxmenu=$variop[0];\n\t\t\t\t\t\t\t\t\t\t$auxmenu=str_replace('_',' ',$auxmenu);\n\t\t\t\t\t\t\t\t\t\t$auxmenu=ucwords($auxmenu);\n\t\t\t\t\t\t\t\t\t\techo(\"<li><a href=\\\"?m=$variop[1]\\\">{$auxmenu}</a></li>\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$linksb=array();\n\t\t\t\t\t\t\t\t\t$ncoinc=array();\n\t\t\t\t\t\t\t\t\t$icoinc=array();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t?>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t<!--[if lte IE 6]>\n\t\t\t\t\t</td></tr></table>\n\t\t\t\t </a>\n\t\t\t\t <![endif]-->\n\t\t\t\t\t<?php\n\t\t\t\t\t}\n\t\t\t\t\t$links=array();\n\t\t\t\t}\n\n\t\t\t\t$cadena=$nombremenu.'_menuoption_[a-z_]{0,50}[0-9]{1,5}';\n\t\t\t\t$vcoinc=$this->getElementByTagName($cadena);\n\t\t\t\tif(count($vcoinc)>0){\n\t\t\t\t\tif(count($vcoinc)>0 && count($vcoinc)<2){\n\t\t\t\t\t\t$varios=explode('-',$vcoinc);\n\t\t\t\t\t\t$auxmenu=$varios[0];\n\t\t\t\t\t\t$auxmenu=str_replace('_',' ',$auxmenu);\n\t\t\t\t\t\t$auxmenu=ucwords($auxmenu);\n\t\t\t\t\t\techo(\"<li><a href='?m=\".$varios[1].\"'>\".$auxmenu.\"</a></li>\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tfor($j=0;$j<=(count($vcoinc)-1);$j++){\n\t\t\t\t\t\t\t$enlace=$nombremenu.'_menuoption_'.$j;\n\t\t\t\t\t\t\t$linksb[]=$this->getElementByTagName($enlace);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor($k=0;$k<=(count($linksb)-1);$k++){\n\t\t\t\t\t\t\t$variop=explode('-',$linksb[$k]);\n\t\t\t\t\t\t\t$auxmenu=$variop[0];\n\t\t\t\t\t\t\t$auxmenu=str_replace('_',' ',$auxmenu);\n\t\t\t\t\t\t\t$auxmenu=ucwords($auxmenu);\n\t\t\t\t\t\t\techo(\"<li><a href=\\\"?m=$variop[1]\\\">{$auxmenu}</a></li>\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$linksb=array();\n\t\t\t\t\t\t$ncoinc=array();\n\t\t\t\t\t\t$icoinc=array();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t?>\n\t\t <!--[if lte IE 6]>\n\t\t <a class=\\\"sub\\\" href=\\\"../menu/hover_click.html\\\" title=\\\"Hover/click with no active/focus borders\\\">HOVER/CLICK &gt;\n\t\t <table><tr><td>\n\t\t <![endif]-->\n\t\t\t<!--[if lte IE 6]>\n\t\t\t</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t </a>\n\t\t <![endif]-->\n\t\t\n\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<?php\n\t\t\t}\n\t\t\t?>\n\t\t\t</ul>\t\n\t\t</div>\n\t\t<?php\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "364295947777ff2db631f73168350e8f", "score": "0.5237746", "text": "public function renderForm() {\n $menu_tree = \\Drupal::service('toolbar.menu_tree');\n $parameters = new MenuTreeParameters();\n $parameters->setRoot('system.admin')\n ->excludeRoot()\n ->setMaxDepth(4)\n ->onlyEnabledLinks();\n $manipulators = [\n ['callable' => 'menu.default_tree_manipulators:checkAccess'],\n ['callable' => 'menu.default_tree_manipulators:generateIndexAndSort'],\n ['callable' => 'toolbar_tools_menu_navigation_links'],\n ['callable' => 'social_admin_menu.administrator_menu_tree_manipulators:checkAccess'],\n ];\n $tree = $menu_tree->load(NULL, $parameters);\n $tree = $menu_tree->transform($tree, $manipulators);\n $element['toolbar_administration'] = [\n '#type' => 'container',\n '#attributes' => [\n 'class' => ['toolbar-menu-administration'],\n ],\n '#cache' => [\n 'contexts' => [\n 'user.roles',\n ],\n ],\n 'administration_menu' => $menu_tree->build($tree),\n ];\n return $element;\n }", "title": "" }, { "docid": "58387e5cc2812ee6746490e7d81cb6f0", "score": "0.52357554", "text": "public function hook_menu() {\n $items = parent::hook_menu();\n $items[CITY_PATH . '/%city'] = array(\n 'title callback' => 'node_page_title',\n 'title arguments' => array(1),\n 'page callback' => 'city_page_view',\n 'page arguments' => array(1),\n 'access arguments' => array('access content'),\n );\n $items[CITY_PATH . '/%city/view'] = array(\n 'title' => 'View',\n 'type' => MENU_DEFAULT_LOCAL_TASK,\n 'weight' => -10,\n );\n $items[CITY_PATH . '/%city/edit'] = array(\n 'title' => 'Edit',\n 'page callback' => 'city_page_edit',\n 'page arguments' => array(1),\n 'access arguments' => array('administer users'),\n 'weight' => 0,\n 'type' => MENU_LOCAL_TASK,\n 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,\n 'file' => 'city.admin.inc',\n 'file path' => drupal_get_path('module', 'geowidget_city')\n );\n $items[CITY_PATH . '/%city/edit'] = array(\n 'title' => 'Edit',\n 'page callback' => 'city_page_edit',\n 'page arguments' => array(1),\n 'access arguments' => array('administer users'),\n 'weight' => 0,\n 'type' => MENU_LOCAL_TASK,\n 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,\n 'file' => 'city.admin.inc',\n 'file path' => drupal_get_path('module', 'geowidget_city')\n );\n $items[CITY_PATH . '/%city/delete'] = array(\n 'title' => 'Delete',\n 'page callback' => 'drupal_get_form',\n 'page arguments' => array('city_page_delete_confirm_form', 1),\n 'access arguments' => array('administer users'),\n 'weight' => 4,\n 'type' => MENU_LOCAL_TASK,\n 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,\n 'file' => 'city.admin.inc',\n 'file path' => drupal_get_path('module', 'geowidget_city')\n );\n return $items;\n }", "title": "" }, { "docid": "cb379890ed4c6a2cfc0f59d92f88e14e", "score": "0.52353245", "text": "function menu_add_menu($menu, $module) {\n global $_menu;\n foreach ($menu as $key => $item) {\n $keys = explode('/', $key);\n array_shift($keys);\n $parent = &$_menu;\n $path = '';\n foreach ($keys as $value) {\n $path .= '/' . $value;\n if (!array_key_exists($value, $parent['submenu'])) {\n $parent['submenu'][$value] = array(\n 'submenu' => array(),\n 'menu' => array(\n 'module' => $module,\n 'path' => $path,\n ),\n );\n }\n $parent = &$parent['submenu'][$value];\n }\n $parent['menu'] += $item;\n }\n}", "title": "" }, { "docid": "1e913dd4fd0b7597fa06f72d48f6df00", "score": "0.5233765", "text": "public function update_bp_menus()\n\t\t{\n\t\t\tglobal $bp;\n\n\t\t\tif ( \n\t\t\t\t! is_user_logged_in() || \n\t\t\t\t! User::hasRole('gf') || \n\t\t\t\t( $bp->displayed_user->domain != $bp->loggedin_user->domain ) ) return;\n\n\t\t\tbp_core_new_nav_item( array(\n\t\t\t\t'name' => __( 'Financials', 'alphasss-gf-finances' ),\n\t\t\t\t'slug' => $this->slug,\n\t\t\t\t'position' => 200,\n\t\t\t\t'screen_function' => 'alphasss_gf_finances_screen_grid',\n\t\t\t\t'default_subnav_slug' => 'my-accounting'\n\t\t\t) );\n\n\t\t\t$alphasss_gf_finances_link = $bp->displayed_user->domain . $this->slug . '/';\n\n\t\t\tbp_core_new_subnav_item( array(\n\t\t\t\t'name' => __( 'Accounting', 'alphasss-gf-finances' ),\n\t\t\t\t'slug' => 'my-accounting',\n\t\t\t\t'parent_slug' => $this->slug,\n\t\t\t\t'parent_url' => $alphasss_gf_finances_link,\n\t\t\t\t'screen_function' => 'alphasss_gf_finances_screen_grid',\n\t\t\t\t'position' => 10\n\t\t\t) );\n\n\t\t\tbp_core_new_subnav_item( array(\n\t\t\t\t'name' => __( 'Time Value', 'alphasss-gf-finances' ),\n\t\t\t\t'slug' => 'my-time-value',\n\t\t\t\t'parent_slug' => $this->slug,\n\t\t\t\t'parent_url' => $alphasss_gf_finances_link,\n\t\t\t\t'screen_function' => 'alphasss_gf_finances_time_value_screen',\n\t\t\t\t'position' => 20\n\t\t\t) );\n\n\t\t\tbp_core_new_subnav_item( array(\n\t\t\t\t'name' => __( 'Levels', 'alphasss-gf-finances' ),\n\t\t\t\t'slug' => 'levels',\n\t\t\t\t'parent_slug' => $this->slug,\n\t\t\t\t'parent_url' => $alphasss_gf_finances_link,\n\t\t\t\t'screen_function' => 'alphasss_gf_finances_levels_screen',\n\t\t\t\t'position' => 30\n\t\t\t) );\n\t\t}", "title": "" }, { "docid": "84e08721171d9524d5484e7d6f75376c", "score": "0.5226278", "text": "function getMenuMergeFields(&$menuArray, $depth = 1) {\n\t\t\n\t\t\n\t\t//Convert from a nested arrays to a flat array\n\t\t$ni = -1;\n\t\t$nodes = [];\n\t\t$loopThrough = $menuArray;\n\t\twhile (!empty($loopThrough)) {\n\t\t\tforeach ($loopThrough as &$menu) {\n\t\t\t\t\n\t\t\t\tif (empty($menu['children'])) {\n\t\t\t\t\t$loopThrough = [];\n\t\t\t\t} else {\n\t\t\t\t\t$loopThrough = $menu['children'];\n\t\t\t\t\tunset($menu['children']);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$nodes[++$ni] = $menu;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tunset($loopThrough);\n\t\t\n\t\t\n\t\t//Auto-add the home page to the start, depending on the plugin settings\n\t\tswitch ($this->setting('breadcrumb_trail')) {\n\t\t\tcase 'other_menu_node':\n\t\t\t\t$position = explode('_', $this->setting('breadcrumb_prefix_menu'));\n\t\t\t\t$menuNodeId = $position[1] ?? 0;\n\t\t\t\t$prefixPage = ze\\menu::getContentItem($menuNodeId);\n\t\t\t\t$cID = $prefixPage['content_id'];\n\t\t\t\t$cType = $prefixPage['content_type'];\n\t\t\t\tze\\content::langEquivalentItem($cID, $cType);\n\t\t\t\t$page = $this->getSpecificPage($cID, $cType);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'do_not_prefix':\n\t\t\t\t$page = false;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'site_home_page':\n\t\t\tdefault:\n\t\t\t\t$page = $this->getHomepage(ze::$visLang);\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t//Only auto-add the home page if it's not the same as the first node\n\t\tif ($page && !empty($page['name'])) {\n\t\t\tif (!isset($nodes[0])\n\t\t\t || ($nodes[0]['name'] != $page['name']\n\t\t\t && $nodes[0]['url'] != ($page['url'] ?? ''))\n\t\t\t) {\n\t\t\t\tarray_unshift($nodes, $page);\n\t\t\t\t++$ni;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//Have an option to add the conductor's slides on to the end of the breadcrumb trail,\n\t\t//if this plugin is in a nest, the plugin setting is enabled, and there are some back-links\n\t\tif (isset($this->parentNest)\n\t\t && $this->setting('add_conductor_slides')\n\t\t && !empty($nodes)\n\t\t && ($backs = $this->parentNest->getBackLinks())\n\t\t && (!empty($backs))) {\n\t\t\t\n\t\t\t//Loop through each back link\n\t\t\t$copy = $nodes[$ni];\n\t\t\t$first = true;\n\t\t\t$nextName = null;\n\t\t\t$ci = 0;\n\t\t\tforeach ($backs as $state => $back) {\n\t\t\t\t\n\t\t\t\t//Prefer to use the name from the previous smart-breadcrumbs if we can,\n\t\t\t\t//but otherwise use the name from the slide.\n\t\t\t\tif ($nextName !== null) {\n\t\t\t\t\t$name = $nextName;\n\t\t\t\t} else {\n\t\t\t\t\t$name = $this->parentNest->formatTitleText($back['slide']['name_or_title']);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Check if any smart breadcrumbs have been defined\n\t\t\t\t$smart = [];\n\t\t\t\t$nextName = null;\n\t\t\t\tif (!empty($back['smart'])) {\n\t\t\t\t\tforeach ($back['smart'] as $vbc) {\n\t\t\t\t\t\t$copy['name'] = $vbc['name'];\n\t\t\t\t\t\t$copy['current'] = $vbc['current'];\n\t\t\t\t\t\t$copy['css_class'] = $vbc['css_class'] ?? '';\n\t\t\t\t\t\t$copy['open_in_new_window'] = false;\n\t\t\t\t\t\t$copy['url'] = ze\\link::toItem(\n\t\t\t\t\t\t\tze::$cID, ze::$cType, false, $vbc['request'], ze::$alias,\n\t\t\t\t\t\t\t$autoAddImportantRequests = false\n\t\t\t\t\t\t);\n\t\t\t\t\t\t$smart[] = $copy;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Remember the name of the current smart breadrcumb for the next loop\n\t\t\t\t\t\tif ($vbc['current']) {\n\t\t\t\t\t\t\t$nextName = $vbc['name'];\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$url = ze\\link::toItem(\n\t\t\t\t\tze::$cID, ze::$cType, false, $back['requests'], ze::$alias,\n\t\t\t\t\t$autoAddImportantRequests = false\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\t//For the first conductor link, override the last breadcrumb rather than adding a second identical breadcrumb.\n\t\t\t\tif ($first) {\n\t\t\t\t\t$first = false;\n\t\t\t\t\t$nodes[$ni]['url'] = $url;\n\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t//Remove the \"current\" highlight from any previous links.\n\t\t\t\t\tfor (; $ci <= $ni; ++$ci) {\n\t\t\t\t\t\t$nodes[$ci]['current'] = false;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t//For all subsequent links, create a new breadcrumb as a copy of the previous one,\n\t\t\t\t\t//with the name and link changed.\n\t\t\t\t\t$copy['open_in_new_window'] = false;\n\t\t\t\t\t$copy['name'] = $name;\n\t\t\t\t\t$copy['url'] = $url;\n\t\t\t\t\t$copy['current'] = true;\n\t\t\t\t\t\n\t\t\t\t\t$nodes[++$ni] = $copy;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$nodes[$ni]['smart'] = $smart;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$mergeFields = [];\n\t\tforeach ($nodes as $ni => $node) {\n\t\t\t$mrg = $this->getMenuNodeMergeFields($ni + 1, 1, $node);\n\t\t\t\n\t\t\tif (!empty($node['smart'])) {\n\t\t\t\t$mrg['Smart'] = [];\n\t\t\t\tforeach ($node['smart'] as $vi => $vbc) {\n\t\t\t\t\t$mrg['Smart'][] = $this->getMenuNodeMergeFields($ni + 1, $vi + 1, $vbc);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$mergeFields[] = $mrg;\n\t\t}\n\t\t\n\t\treturn $mergeFields;\n\t}", "title": "" }, { "docid": "259ce62d77587ec538e4861e73221717", "score": "0.5225633", "text": "function menuMain()\n\t{\n\t $session_data = $this->session->userdata('logged_in');\n\t\t$data['username'] = $session_data['username'];\n\t\t$username=$session_data['username'];\n\t\t$this->db->select('permissions.Menu_id as menuId');\n\t\t$this->db->from('permissions');\n\t\t$this->db->join('users','permissions.Group_id=users.grupoId');\n\t\t$this->db->join('menu','permissions.Menu_id = menu.id');\n\t\t$this->db->where('users.username',$username);\n\t\t$resultdb = $this->db->get();\n\t\t$folder = array();\n\t\t\n\t\tif($resultdb->num_rows()!=0){\n\t\t\t$in = '(';\n\n\t\t\t/* fetch associative array */\n\t\t\tforeach($resultdb->result_array() as $user){\n\t\t\t\t$in .= $user['menuId'] . \",\";\n\t\t\t}\n\t\t\t$in = substr($in, 0, -1).')' ;\n\t\t\t\t\t\n\t\t\t/* free result set */\n\t\t\t$resultdb->free_result(); \n\t\t\t\t \n\t\t\t$resultdb = $this->db->query(\"SELECT * FROM MENU WHERE parent_id IS NULL AND id in\". $in);\n\t\t\t\t\t\t\n\t\t\tif ($resultdb->result_array()!=0) {\n\t\t\t\tforeach($resultdb->result_array() as $r){\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t$sqlquery=$this->db->query(\"SELECT * FROM MENU WHERE parent_id=\".$r['id']. \" AND id in\". $in);\n\t\t\t\t\t// check if have a child node\n\t\t\t\t\tif ($nodes = $sqlquery) {\n\t\t\t\t\t\n\t\t\t\t\t\t// determine number of rows result set\n\t\t\t\t\t\t$count = $nodes->num_rows();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tif ($count > 0){\n\n\t\t\t\t\t\t\t// if have a child\n\t\t\t\t\t\t\t$r['leaf'] = false;\n\n\t\t\t\t\t\t\t$r['items'] = array();\n\n\t\t\t\t\t\t\tforeach($nodes->result_array() as $item){\n\t\t\t\t\t\t\t\t$item['leaf'] = true;\n\t\t\t\t\t\t\t\t$r['items'][] = $item;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// if have no child\n\t\t\t\t\t\t\t$r['leaf'] = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$folder[] = $r;\n\t\t\t\t\t\t\n\t\t\t\t\t}\t\n\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\techo json_encode(array(\n\t\t\t\"items\" => $folder\n\t\t));\t\n\t \n\t\n\t}", "title": "" }, { "docid": "ac586258ca4a0df82d724126969eb24b", "score": "0.52115345", "text": "private function getMenuRecursion($mainMenu, $menuCssClass = '') {\n global $menuHtml;\n $menuHtml .= '<nav class=\"'. ($menuCssClass != '' ? $menuCssClass : 'sidebar-nav') .'\">';\n $menuHtml .= '<ul id=\"sidebarnav\">';\n foreach ($mainMenu as $menuKey => $menu) {\n if ($this->admin->isAllowed($menu['controller'], $menu['action'])) {\n $anchorTagAttr = $cssClassList = array();\n $cssClassList[] = $elLIClass = $this->isCurrentMenuClass($menuKey);\n $hasChild = (isset($menu['child']) && count($menu['child']) > 0) ? TRUE : FALSE;\n if (!isset($menu['title']) || !$menu['title']) {\n $menu['title'] = $menuKey;\n }\n $menuHtml .= '<li data-name=\"'.$menu['title'].'\" class=\"'. ($hasChild ? $elLIClass : '') .'\">';\n if ($hasChild) {\n $cssClassList[] = \"has-arrow\";\n $anchorTagAttr['aria-expanded'] = \"false\";\n }\n $cssClass = implode($cssClassList, ' ');\n $menuHtml .= $this->tag->linkTo( [ (isset($menu['link']) ? $this->url->get(\"/admin\" . $menu['link']) : 'javascript:void(0);'), $menu['title'] , \"aria-expanded\" =>\"false\", \"class\" => $cssClass.\" waves-effect waves-dark\", $anchorTagAttr] );\n if ($hasChild) {\n $menuHtml .= '<ul aria-expanded=\"false\" class=\"collapse\">';\n foreach ($menu['child'] as $childMenuKey => $childMenu) {\n if ($this->admin->isAllowed($childMenu['controller'], $childMenu['action'])) {\n $cssClassList = array();\n $cssClassList[] = $this->isCurrentMenuClass($menuKey,$childMenuKey);\n $cssClass = implode($cssClassList, ' ');\n $menuHtml .= '<li class=\"'.$cssClass.'\">';\n $menuHtml .= $this->tag->linkTo(array((isset($childMenu['link']) ? '/admin' . $childMenu['link'] : '#'), $childMenu['title'], \"class\" => $cssClass));\n $menuHtml .= '</li>';\n }\n }\n $menuHtml .= '</ul>';\n }\n $menuHtml .= '</li>';\n }\n\n }\n $menuHtml .= '</ul></nav>'; \n }", "title": "" }, { "docid": "dad8b2fd71dbf5b6dac8f60e0118dd70", "score": "0.52030945", "text": "function _mai_limit_menu_depth( $args ) {\n\t$args['depth'] = 1;\n\treturn $args;\n}", "title": "" }, { "docid": "4b7fb0e604fc709a80e20ce01d2bbdf5", "score": "0.5198704", "text": "public function addFieldsToCmsMainForm(Varien_Event_Observer $event)\r\n {\r\n $isElementDisabled = Mage::getSingleton('admin/session')->isAllowed('cms/page/save') ? false : true;\r\n\r\n $form = $event->getForm();\r\n $model = Mage::registry('cms_page');\r\n /* @var $form Varien_Data_Form */\r\n $fieldset = $form->addFieldset('cmsmenu', array('legend' => Mage::helper('cmsmenu')->__('CMS Menu Settings'), 'class' => 'fieldset-wide'));\r\n \r\n $fieldset->addField('show_in_menu', 'select', array(\r\n 'name' => 'show_in_menu',\r\n 'label' => Mage::helper('cmsmenu')->__('Show in CMS Menu'),\r\n 'title' => Mage::helper('cmsmenu')->__('Show in CMS Menu'),\r\n 'required' => false,\r\n 'disabled' => $isElementDisabled,\r\n 'value' => $model->getMenuOrder(),\r\n 'options' => array(1 => Mage::helper('cmsmenu')->__('show'), 0 => Mage::helper('cmsmenu')->__('do not show')),\r\n ));\r\n \r\n $fieldset->addField('menu_group', 'text', array(\r\n 'name' => 'menu_group',\r\n 'label' => Mage::helper('cmsmenu')->__('Menu Group'),\r\n 'title' => Mage::helper('cmsmenu')->__('Menu Group'),\r\n 'required' => false,\r\n 'disabled' => $isElementDisabled,\r\n 'value' => $model->getMenuGroup(),\r\n ));\r\n \r\n $fieldset->addField('name_in_menu', 'text', array(\r\n 'name' => 'name_in_menu',\r\n 'label' => Mage::helper('cmsmenu')->__('name in CMS Menu'),\r\n 'title' => Mage::helper('cmsmenu')->__('name in CMS Menu'),\r\n 'required' => false,\r\n 'disabled' => $isElementDisabled,\r\n 'value' => $model->getMenuOrder(),\r\n 'note' => 'Wenn dieses Feld leer gelassen wird, wird der Seitentitel verwendet'\r\n ));\r\n \r\n $fieldset->addField('menu_order', 'text', array(\r\n 'name' => 'menu_order',\r\n 'label' => Mage::helper('cmsmenu')->__('Position in CMS Menu'),\r\n 'title' => Mage::helper('cmsmenu')->__('Position in CMS Menu'),\r\n 'required' => false,\r\n 'disabled' => $isElementDisabled,\r\n 'value' => $model->getMenuOrder(),\r\n 'note' => 'Bitte eine Zahl eingeben'\r\n ));\r\n }", "title": "" }, { "docid": "21e18a4cb08549cf9643e0d5aa5a9977", "score": "0.5196916", "text": "function admin_menu_tree_dynamic(array $expand_map) {\n $p_columns = array();\n for ($i = 1; $i <= MENU_MAX_DEPTH; $i++) {\n $p_columns[] = 'p' . $i;\n }\n\n // Fetch p* columns for all router paths to expand.\n $router_paths = array_keys($expand_map);\n $plids = db_select('menu_links', 'ml')\n ->fields('ml', $p_columns)\n ->condition('router_path', $router_paths)\n ->execute()\n ->fetchAll(PDO::FETCH_ASSOC);\n\n // Unlikely, but possible.\n if (empty($plids)) {\n return array();\n }\n\n // Use queried plid columns to query sub-trees for the router paths.\n $query = db_select('menu_links', 'ml');\n $query->join('menu_router', 'm', 'ml.router_path = m.path');\n $query\n ->fields('ml')\n ->fields('m', array_diff(drupal_schema_fields_sql('menu_router'), drupal_schema_fields_sql('menu_links')));\n\n // The retrieved menu link trees have to be ordered by depth, so parents\n // always come before their children for the storage logic below.\n foreach ($p_columns as $column) {\n $query->orderBy($column, 'ASC');\n }\n\n $db_or = db_or();\n foreach ($plids as $path_plids) {\n $db_and = db_and();\n // plids with value 0 may be ignored.\n foreach (array_filter($path_plids) as $column => $plid) {\n $db_and->condition($column, $plid);\n }\n $db_or->condition($db_and);\n }\n $query->condition($db_or);\n $result = $query\n ->execute()\n ->fetchAllAssoc('mlid', PDO::FETCH_ASSOC);\n\n // Store dynamic links grouped by parent path for later merging and assign\n // placeholder expansion arguments.\n $tree_dynamic = array();\n foreach ($result as $mlid => $link) {\n // If contained in $expand_map, then this is a (first) parent, and we need\n // to store by the defined 'parent' path for later merging, as well as\n // provide the expansion map arguments to apply to the dynamic tree.\n if (isset($expand_map[$link['path']])) {\n $parent_path = $expand_map[$link['path']]['parent'];\n $link['expand_map'] = $expand_map[$link['path']]['arguments'];\n }\n // Otherwise, just store this link keyed by its parent path; the expand_map\n // is automatically derived from parent paths.\n else {\n $parent_path = $result[$link['plid']]['path'];\n }\n\n $tree_dynamic[$parent_path][] = $link;\n }\n\n return $tree_dynamic;\n}", "title": "" }, { "docid": "5e0fba7573dc9bae546ab8e72d327436", "score": "0.5190065", "text": "function mbmDropDownMenus($menu_id=0){\r\n\tglobal $DB;\r\n\tstatic $k=0;\r\n\t\r\n\t$buf_s = '<ul ';\r\n\tswitch($k){\r\n\t\tcase 0:\r\n\t\t\t$buf_s .= ' class=\"dropdown\"';\r\n\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\t$buf_s .= ' class=\"sub_menu\"';\r\n\t\tbreak;\r\n\t}\r\n\t$buf_s .= '>';\r\n\t$buf_e = '</ul>';\r\n\t$buf = '';\r\n\t\r\n\t$q = \"SELECT * FROM \".PREFIX.\"menus WHERE st='1' AND lev<='\".$_SESSION['lev'].\"' AND lang='\".$_SESSION['ln'].\"' \";\r\n\t$q .= \"AND menu_id = '\".$menu_id.\"' \";\r\n\t$q .= \"ORDER BY pos\";\r\n\t\r\n\t$r = $DB->mbm_query($q);\r\n\t\r\n\t$k++;\r\n\tfor($i=0;$i<$DB->mbm_num_rows($r);$i++){\r\n\t\t$buf .= '<li>';\r\n\t\t\t$buf .= '<a href=\"'.mbmMenuLink($DB->mbm_result($r,$i,\"id\"),$DB->mbm_result($r,$i,\"link\")).'\">';\r\n\t\t\t\t$buf .= $DB->mbm_result($r,$i,\"name\");\r\n\t\t\t$buf .= '</a>';\r\n\t\t\tif($DB->mbm_check_field(\"menu_id\",$DB->mbm_result($r,$i,\"id\"),\"menus\") == 1){\r\n\t\t\t\t$buf .= mbmDropDownMenus($DB->mbm_result($r,$i,\"id\"));\r\n\t\t\t}\r\n\t\t$buf .= '</li>';\r\n\t}\r\n\t\r\n\treturn $buf_s.$buf.$buf_e;\r\n}", "title": "" }, { "docid": "0d1a438efb510340c0db83b7c9069c0e", "score": "0.51867056", "text": "public function addAndUpdateMenu() {\n $menu = $this->input->post('menu');\n \n $this->MMenu->addMenu(json_decode($menu, TRUE));\n \n $config = array(\n \"tag_name\" => \"a\",\n \"tag_container_name\" => \"ol\"\n );\n header('Location: ' . base_url() . 'menu/menus', 301);\n }", "title": "" }, { "docid": "d3a0eaa88aab41147c814e5a6fed386e", "score": "0.51683515", "text": "function genMenuItems($pid, $level) {\n\t\tif (@$this->children[$pid]) {\n\t\t\t$i = 0;\n\t\t\tforeach ($this->children[$pid] as $row) {\n\t\t\t\t\n\t\t\t\t$this->menuObj->genMenuItem( $row, $level, $i);\n\n\t\t\t\t// show menu with menu expanded - submenus visible\n\t\t\t\t$this->genMenuItems( $row->id, $level+1 );\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "1f1eb0e472b5ca93580dfaed41e2aa8c", "score": "0.51618564", "text": "function _menu_subtree($menu_name, $mlid) {\n static $index = array();\n static $indexed = array();\n\n // This looks expensive, but menu_tree_all_data uses static caching.\n $tree = menu_tree_all_data($menu_name);\n\n // Index the menu tree to find ancestor paths for each item.\n if (!isset($indexed[$menu_name])) {\n $index += _menu_index($tree);\n $indexed[$menu_name] = TRUE;\n }\n // If the menu tree does not contain this item, stop.\n if (!isset($index[$mlid])) {\n return array();\n }\n\n // Traverse the tree using the ancestor path.\n foreach ($index[$mlid]['parents'] as $id) {\n $key = $index[$id]['key'];\n if (isset($tree[$key])) {\n $tree = $tree[$key]['below'];\n }\n else {\n return array();\n }\n }\n\n // Go one level further to go below the current item.\n $key = $index[$mlid]['key'];\n return isset($tree[$key]) ? menu_tree_output($tree[$key]['below']) : array();\n}", "title": "" }, { "docid": "d2af6d76c4726539377659f17001ffb5", "score": "0.51613444", "text": "public static function echo_menu_admin($menu_array) \r\n {\r\n foreach ($menu_array as $menu) {\r\n \r\n echo \"<li style='padding-top:10px'><div class=\\\"menu-grid-text\\\">\" . str_repeat('&nbsp;&nbsp;&nbsp;',$menu->depth_level) . \r\n \"<a href='\" . base_url() . 'admin/menu/edit_menu_item/' . $menu->menu_items_id . \"'>\"\r\n . $menu->text . \"</a></div>\";\r\n echo \"<div class=\\\"menu-grid-link\\\">\" .\r\n \"<a href=\\\"\" . base_url() . $menu->link . \"\\\" target=\\\"_blank\\\">\" .\r\n base_url() . mb_substr($menu->link, 0, 100) .\r\n \"</a></div>\";\r\n \r\n echo '<div class=\"article-grid-edit-links\">' .\r\n '<a href=\"' . base_url() . 'admin/menu/edit_menu_item/' . $menu->menu_items_id . '\" title=\"Измени\">' .\r\n '<img src=\"' . base_url() . 'public/images/edit_pencil_24_24.png\" alt=\"\" /></a>';\r\n if(count($menu->children) == 0)\r\n {\r\n echo '&nbsp;|&nbsp;' .\r\n '<a href=\"#\" class=\"delete-link\" title=\"Избриши\" rel=\"' . $menu->menu_items_id . '\">' . \r\n '<img src=\"' . base_url() . 'public/images/delete_red_24_24.png\" alt=\"\" /></a>&nbsp;|&nbsp;';\r\n }\r\n if ($menu->depth_level == 0)\r\n {\r\n '<a href=\"\">' .\r\n '<img src=\"' . base_url() . 'public/images/drag_24_24.png\" alt=\"\" /></a>';\r\n }\r\n echo '</div>';\r\n \r\n \r\n echo \"<div class=\\\"clear\\\"></div>\";\r\n //see if this menu has children\r\n if (array_key_exists('children', $menu) and count($menu->children) > 0) {\r\n echo '<ul>';\r\n //echo the child menu\r\n self::echo_menu_admin($menu->children);\r\n echo '</ul>';\r\n }\r\n echo '</li>';\r\n }\r\n }", "title": "" }, { "docid": "0b226ba487fb78ae21f5215e841c80ac", "score": "0.51604617", "text": "function staff_level_list_menu($current_staff_level_id=\"\",$type='none',$form_name='form1',$condition='')\n{\n\tif(empty($current_staff_level_id))//第一次进入初始化为‘全部’\n\t{\n\t\t$current_staff_level_id=get_bottom_id('staff_level','staff_level_id');\n\t}\n\tif($condition=='only_staff')\n\t{\n\t\t$bottom_id=get_bottom_id('staff_level','staff_level_id');\n\t\t$querystring=\"select * from staff_level where staff_level_id<>$bottom_id order by staff_level_id \";\n\t}\n\tif($condition=='')\n\t{\n\t\t$querystring=\"select * from staff_level order by staff_level_id \";\n\t}\n\t//echo $querystring;\n\t$rs=mysql_query($querystring);\n\tif($type=='auto_post_back')\n\t{\n\t\techo \"<select name=\\\"staff_level_id\\\" onchange=document.$form_name.submit()>\";\n\t}\n\telse\n\t{\n\t\techo \"<select name=\\\"staff_level_id\\\" >\";\n\t}\n\n\twhile($row=mysql_fetch_array($rs))\n\t{\n\t\t$select_vlaue=$row[staff_level_id];\n\t\t$select_display_value=$row[staff_level_name];\n\t\tif($select_vlaue==$current_staff_level_id)\n\t\t{\n\t\t\techo \"<option value='$select_vlaue' selected>$select_display_value</option>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo \"<option value=$select_vlaue>$select_display_value</option>\";\n\n\t\t}\n\n\t}\n\techo \"</select>\";\n\n\n}", "title": "" }, { "docid": "5c1b2b02479b2d19df2f6ae285293661", "score": "0.51580775", "text": "public function admin_save_new_fields( $menu_id, $menu_item_db_id, $menu_item_args ) {\n\n\t\t// Check ajax.\n\t\tif ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Security.\n\t\tcheck_admin_referer( 'update-nav_menu', 'update-nav-menu-nonce' );\n\n\t\t// Mega Menu Fields.\n\t\tforeach ( self::$fields as $_key => $field ) {\n\t\t\t$key = sprintf( 'menu-item-%s', $_key );\n\n\t\t\t// Sanitize field.\n\t\t\tif ( isset( $_POST[ $key ][ $menu_item_db_id ] ) ) { // Input Var ok.\n\t\t\t\t$value = sanitize_text_field( wp_unslash( $_POST[ $key ][ $menu_item_db_id ] ) ); // Input Var ok.\n\t\t\t} else {\n\t\t\t\t$value = null;\n\t\t\t}\n\n\t\t\t// Update field.\n\t\t\tif ( ! is_null( $value ) ) {\n\t\t\t\tupdate_post_meta( $menu_item_db_id, $key, $value );\n\t\t\t} else {\n\t\t\t\tdelete_post_meta( $menu_item_db_id, $key );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c45a9c080178a1f7f07d5ae48577e25f", "score": "0.5154642", "text": "public function hook_menu() {\n // TODO: EntityDefaultUIController controller automatically adds the menu\n // to import entities, but there is a bug with this action and can not work\n // with the version of your entity_api module, track the issue # 2112755\n // https://www.drupal.org/node/2112755\n $wildcard = isset($this->entityInfo['admin ui']['menu wildcard']) ? $this->entityInfo['admin ui']['menu wildcard'] : '%entity_object';\n\n $items = parent::hook_menu();\n\n // Change the overview menu type for the list of K First Login Manager.\n $items[$this->path]['type'] = MENU_LOCAL_TASK;\n\n // Replaces default entity title.\n $items[$this->path]['title'] = 'K First Login Manager';\n\n // Extend the 'edit' path.\n $items['k_first_login_manager/' . $wildcard . '/edit'] = array(\n 'title callback' => 'k_first_login_manager_page_title',\n 'title arguments' => array(1),\n 'page callback' => 'entity_ui_get_form',\n 'page arguments' => array($this->entityType, 1),\n 'access callback' => 'entity_access',\n 'access arguments' => array('edit', $this->entityType),\n );\n\n // Extend the 'add' path.\n $items[$this->path . '/add'] = array(\n 'title callback' => 'entity_ui_get_action_title',\n 'title arguments' => array('add', $this->entityType),\n 'page callback' => 'entity_ui_bundle_add_page',\n 'page arguments' => array($this->entityType),\n 'access callback' => 'entity_access',\n 'access arguments' => array('create', $this->entityType),\n );\n\n $items[$this->path . '/add/%'] = array(\n 'title callback' => 'entity_ui_get_action_title',\n 'title arguments' => array('add', $this->entityType, $this->id_count + 1),\n 'page callback' => 'entity_ui_get_bundle_add_form',\n 'page arguments' => array($this->entityType, $this->id_count + 1),\n 'access callback' => 'entity_access',\n 'access arguments' => array('create', $this->entityType),\n );\n\n $items['k_first_login_manager/' . $wildcard] = array(\n 'title callback' => 'k_first_login_manager_page_title',\n 'title arguments' => array(1),\n 'page callback' => 'k_first_login_manager_page_view',\n 'page arguments' => array(1),\n 'access callback' => 'entity_access',\n 'access arguments' => array('view', $this->entityType),\n );\n\n return $items;\n }", "title": "" }, { "docid": "ad93950792ea7ca26443696ff69a0c71", "score": "0.5137884", "text": "private function setMenuArray() {\n if (!count($this->objarr))\n die(\"Il menù non ha elementi.\");\n //ordino l' array in base alle chiavi. una volta ordinato l' array aggiungo la chiave indicante il livello. \n //l' ordine numerico mi serve solo ad ordinare l' array. Una volta che è ordinata sarà importante solo il livello in cui andrà posizionato l' item.\n //ottengo l' array con gli index che indicano le varie posiziono\n $arr_keys = array_keys($this->objarr);\n\n sort($arr_keys); //ordino l' array $arr_keys\n\n $lastlevel = 1;\n \n for ($i = 0; $i < count($arr_keys); $i++) {\n\n $obj = $this->objarr[$arr_keys[$i]]; //prelevo l' oggetto in base alla sequenza di chiavi ordinata\n\n $level = $this->getItemLevel($obj); //calcolo quale dovrà essere la profondità dell' oggetto nel sottomenù\n \n if ($level == 1) { //se si tratta del primo oggetto\n $this->addToMenu($obj);\n } else if ($level > $lastlevel) { //primo item che apre un sottomenù\n $this->addToSubMenu($obj, 1);\n } else if ($level < $lastlevel) { //è il caso in cui è < ma diverso da 1. Si collegherà al submenù che precede l' ultimo o il penultimo, ecc. in base al salto di profondita rispetto al caso precedente.\n $this->addToSubMenu($obj, $level - $lastlevel);\n }else\n $this->addToSubMenu($obj, 0); //è il caso in cui il livello rimane uguale e non si crea quindi un nuovo sottomenù\n\n $lastlevel = $level;\n \n }//close for\n }", "title": "" }, { "docid": "5c0058c2737134ac831646bf2d954463", "score": "0.5133502", "text": "function tst_admin_menu_labels(){ /* change adming menu labels */\n global $menu, $submenu;\n\t\n //lightbox \n foreach($submenu['options-general.php'] as $order => $item){\n\t\t\n if(isset($item[2]) && $item[2] == 'responsive-lightbox'){\n\t\t\t$submenu['options-general.php'][$order][0] = 'Lightbox';\t\t\t\n\t\t} \n }\n\t\n\t//forms\n\tforeach($menu as $order => $item){\n \n if($item[2] == 'ninja-forms'){ \n $menu[$order][0] = __('Forms', 'tst'); \n break;\n }\n } \n}", "title": "" }, { "docid": "b5fc57b691667c535845e17cd9cd15ee", "score": "0.5129924", "text": "public function admin_menu() {\n\t\t// Access capability.\n\t\t$access_cap = apply_filters( 'optimizeform_core_admin_parent_menu_access_cap', 'manage_options' );\n\t\t// Menu riority.\n\t\t$menu_priority = apply_filters( 'optimizeform_core_admin_parent_menu_priority', 4.9 );\n\t\t// Menu icon.\n\t\t$menu_icon = apply_filters( 'optimizeform_core_admin_parent_menu_icon', OPTIMIZEFORM_CORE_URL . 'assets/images/admin-menu-icon.png' );\n\n\t\t// Register menu.\n\t\t$admin_page = add_menu_page(\n\t\t\t__( 'OptimizeForm Core', 'optimizeform-core' ),\n\t\t\t__( 'OptimizeForm', 'optimizeform-core' ),\n\t\t\t$access_cap,\n\t\t\t'optimizeform-core',\n\t\t\t'__return_false',\n\t\t\t$menu_icon,\n\t\t\t$menu_priority\n\t\t );\n\t}", "title": "" }, { "docid": "7a68d29c6f17281639be1ed07020bd6d", "score": "0.5129908", "text": "function outm_survey_menu() {\n add_menu_page('survey', //page title\n 'Survey', //menu title\n 'manage_options', //capabilities\n 'outm_survey_list', //menu slug\n 'outm_survey_list' //function\n );\n\n //this is a submenu\n add_submenu_page('outm_survey_list', //parent slug\n 'Add New Client', //page title\n 'Add New', //menu title\n 'manage_options', //capability\n 'outm_survey_create', //menu slug\n 'outm_survey_create'); //function\n //this submenu is HIDDEN, however, we need to add it anyways\n add_submenu_page(null, //parent slug\n 'Update Client', //page title\n 'Update', //menu title\n 'manage_options', //capability\n 'outm_survey_update', //menu slug\n 'outm_survey_update'); //function \n add_submenu_page(null, //parent slug\n 'Export Client', //page title\n 'Export', //menu title\n 'manage_options', //capability\n 'outm_survey_export', //menu slug\n 'outm_survey_export'); //function \n\n}", "title": "" }, { "docid": "3efa66d817906200635c17254662e51e", "score": "0.51274717", "text": "public function run()\n {\n $SubMenus = [\n //مدیر - سفارشات\n\n 1 => [\n 'سفارشات' => [\n [\n 'SubMenu' => 'سفارشات جدید',\n 'Url' => 'OL',\n 'StatusId' => '1', //new registered orders\n 'Icon' => 'fa fa-star',\n ],\n [\n 'SubMenu' => 'فاکتورهای صادر شده',\n 'Url' => 'OL',\n 'StatusId' => '2',// issued invoices\n 'Icon' => 'fa fa-bullseye',\n ],\n [\n 'SubMenu' => 'دریافتی',\n 'Url' => 'OL',\n 'StatusId' => '3',//Paid Invoices\n 'Icon' => 'fa fa-bullseye',\n ],\n [\n 'SubMenu' => 'اختصاص به مترجم',\n 'Url' => 'OL',\n 'StatusId' => '4',//Assign to translator\n 'Icon' => 'fa fa-bullseye',\n ],\n [\n 'SubMenu' => 'سفارشات در حال انجام',\n 'Url' => 'OL',\n 'StatusId' => '5',//In Progress\n 'Icon' => 'fa fa-clock-o',\n ],\n [\n 'SubMenu' => 'بررسی نهایی',\n 'Url' => 'OL',\n 'StatusId' => '6', //final check\n 'Icon' => 'fa fa-clock-o',\n ],\n [\n 'SubMenu' => 'لغو شده توسط مشتری',\n 'Url' => 'OL',\n 'StatusId' => '9',//CRejected orders\n 'Icon' => 'fa fa-exclamation-triangle',\n ],[\n 'SubMenu' => 'لغو شده توسط مترجم',\n 'Url' => 'OL',\n 'StatusId' => '10', //TRejected orders\n 'Icon' => 'fa fa-exclamation-triangle',\n ],\n [\n 'SubMenu' => 'لیست سفارشات تکمیل شده',\n 'Url' => 'OL',\n 'StatusId' => '8', //Finished orders\n 'Icon' => 'fa fa-certificate',\n ],\n [\n 'SubMenu' => 'لیست تمام سفارشات',\n 'Url' => 'OL', //All Orders\n 'StatusId' => '',\n 'Icon' => 'fa fa-list',\n ],\n ],\n//\n// 'کاربران' => [\n// [\n// 'SubMenu' => 'لیست کاربران',\n// 'Url' => 'AUL', //Admin Users List (/users')\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-list',\n// ],\n// [\n// 'SubMenu' => 'درخواست همکاری',\n// 'Url' => 'AUE', //Admin->Users->Employment Request (/employment request)\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-user-plus',\n// ],\n// ],\n//\n// 'پیام ها' => [\n// [\n// 'SubMenu' => 'نوشتن پیام',\n// 'Url' => 'AMC', //Admin->Messages->Compose (/compose)\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-commenting',\n// ],\n// [\n// 'SubMenu' => 'دریافتی',\n// 'Url' => 'AMI', //Admin->Messages->Inbox (/inbox)\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-envelope',\n// ],\n// [\n// 'SubMenu' => 'ارسالی',\n// 'Url' => 'AMS', //Admin->Messages->Sent (/sent)\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-paper-plane',\n// ],\n// [\n// 'SubMenu' => 'پیش نویس ها',\n// 'Url' => 'AMD', //Admin->Messages->Draft (/draft)\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-wpforms',\n// ],\n// [\n// 'SubMenu' => 'حذف شده',\n// 'Url' => 'AMT', //Admin->Messages->Trash (/trash)\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-trash',\n// ],\n// ],\n//\n// 'امور مالی و حسابداری' => [\n// [\n// 'SubMenu' => 'گردش مالی',\n// 'Url' => 'AAF', //Admin->Accounting->Finance (/finance)\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-money',\n// ],\n// [\n// 'SubMenu' => 'دریافت و پرداخت',\n// 'Url' => 'AAT', //Admin->Accounting->Transaction (/transaction)\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-usd',\n// ],\n// ],\n//\n// 'تنظیمات' => [\n// [\n// 'SubMenu' => 'بانک ها',\n// 'Url' => '/dashboard/Bank',\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-bank',\n// ],\n// [\n// 'SubMenu' => 'سفارشات',\n// 'Url' => 'ASO', //Admin->Setting->Orders Setting (/orders setting)\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-shopping-basket',\n// ],\n// [\n// 'SubMenu' => 'کاربران',\n// 'Url' => 'ASU', //Admin->Setting->Users Setting (/users setting)\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-user-circle-o',\n// ],\n// [\n// 'SubMenu' => 'پیام ها',\n// 'Url' => 'ASM', //Admin->Setting->Messages Setting (/emails setting)\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-envelope-o',\n// ],\n// [\n// 'SubMenu' => 'مالی و حسابداری',\n// 'Url' => 'ASF', //Admin->Setting->Finance Setting (/finance setting)\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-area-chart',\n// ],\n// [\n// 'SubMenu' => 'زبان ها',\n// 'Url' => 'ASL', //Admin->Setting->Languages Setting (/languages setting)\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-language',\n// ],\n// [\n// 'SubMenu' => 'زمینه ها',\n// 'Url' => 'ASTF', //Admin->Setting->Translation Fields Setting (/fields setting)\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-tasks',\n// ],\n// ],\n// 'راهنما' => [\n// [\n// 'SubMenu' => 'راهنمای مدیر',\n// 'Url' => 'AG', //Admin->Guidline (/admin guide)\n// 'Parameters'=>'',\n// 'Icon' => 'fa fa-info-circle',\n// ],\n// ],\n ],//end of admin role id\n\n\n //مترجم - سفارشات\n 5 => [\n 'سفارشات' => [\n [\n 'SubMenu' => 'جدید',\n 'Url' => 'OL',\n 'StatusId' => '4', //orders that pending to accept by translator\n 'Icon' => 'fa fa-star',\n ],\n [\n 'SubMenu' => 'دریافت شده',\n 'Url' => 'OL',\n 'StatusId' => '5', //in progress orders\n 'Icon' => 'fa fa-clock-o',\n ],\n [\n 'SubMenu' => 'تحویل شده',\n 'Url' => 'OL',\n 'StatusId' => '6', //delivered orders\n 'Icon' => 'fa fa-check-square-o',\n ],\n [\n 'SubMenu' => 'تکمیل شده',\n 'Url' => 'OL',\n 'StatusId' => '8', //finished orders\n 'Icon' => 'fa fa-check-square-o',\n ],\n [\n 'SubMenu' => 'سفارشات لغو شده',\n 'Url' => 'OL',\n 'StatusId' => '10',\n 'Icon' => 'fa fa-check-square-o',\n ],\n [\n 'SubMenu' => 'تمام سفارشات',\n 'Url' => 'OL',\n 'StatusId' => '',\n 'Icon' => 'fa fa-check-square-o',\n ],\n ],\n\n// 'پیام ها' => [\n// [\n// 'SubMenu' => 'نوشتن پیام',\n// 'Url' => '/compose',\n// 'Icon' => 'fa fa-commenting',\n// ],\n// [\n// 'SubMenu' => 'دریافتی',\n// 'Url' => '/inbox',\n// 'Icon' => 'fa fa-envelope',\n// ],\n// [\n// 'SubMenu' => 'ارسالی',\n// 'Url' => '/sent',\n// 'Icon' => 'fa fa-paper-plane',\n// ],\n// [\n// 'SubMenu' => 'پیش نویس ها',\n// 'Url' => '/draft',\n// 'Icon' => 'fa fa-wpforms',\n// ],\n// ],\n//\n// 'امور مالی و حسابداری' => [\n// [\n// 'SubMenu' => 'جزئیات درآمد',\n// 'Url' => '/transaction',\n// 'Icon' => 'fa fa-usd',\n// ],\n// [\n// 'SubMenu' => 'تسویه شده',\n// 'Url' => '/transaction',\n// 'Icon' => 'fa fa-credit-card',\n// ],\n// ],\n//\n// 'تنظیمات' => [\n// [\n// 'SubMenu' => 'پروفایل',\n// 'Url' => '/transaction',\n// 'Icon' => 'fa fa-address-card-o',\n// ],\n// [\n// 'SubMenu' => 'امنیت',\n// 'Url' => '/transaction',\n// 'Icon' => 'fa fa-lock',\n// ],\n// [\n// 'SubMenu' => 'مالی و حسابداری',\n// 'Url' => '/transaction',\n// 'Icon' => 'fa fa-usd',\n// ],\n// ],\n//\n// 'راهنما' => [\n// [\n// 'SubMenu' => 'راهنمای مترجم',\n// 'Url' => '/trans guide',\n// 'Icon' => 'fa fa-info-circle',\n// ],\n// ],\n ], //end of translator role id\n\n // مشتری\n 11 => [\n 'سفارشات' => [\n [\n 'SubMenu' => 'ثبت سفارش جدید',\n 'Url' => 'Order.index',\n 'StatusId' => '',\n 'Icon' => 'fa fa-star',\n ],\n [\n 'SubMenu' => 'ثبت شده',\n 'Url' => 'OL',\n 'StatusId'=>'1', //new registered orders\n 'Icon' => 'fa fa-clock-o',\n ],\n [\n 'SubMenu' => 'در حال انجام',\n 'Url' => 'OL',\n 'StatusId'=>'5', //in progress orders\n 'Icon' => 'fa fa-clock-o',\n ],\n [\n 'SubMenu' => 'لغو شده',\n 'Url' => 'OL',\n 'StatusId'=>'9',\n 'Icon' => 'fa fa-exclamation-triangle',\n ],\n [\n 'SubMenu' => 'سفارشات تکمیل شده',\n 'Url' => 'OL',\n 'StatusId' => '8',\n 'Icon' => 'fa fa-certificate',\n ],\n [\n 'SubMenu' => 'لیست سفارشات',\n 'Url' => 'OL',\n 'StatusId' => '',\n 'Icon' => 'fa fa-list',\n\n ]\n ],\n\n// 'پیام ها' => [\n// [\n// 'SubMenu' => 'نوشتن پیام',\n// 'Url' => '/compose',\n// 'Icon' => 'fa fa-commenting',\n// ],\n// [\n// 'SubMenu' => 'دریافتی',\n// 'Url' => '/inbox',\n// 'Icon' => 'fa fa-envelope',\n// ],\n// [\n// 'SubMenu' => 'ارسالی',\n// 'Url' => '/sent',\n// 'Icon' => 'fa fa-paper-plane',\n// ],\n// [\n// 'SubMenu' => 'پیش نویس ها',\n// 'Url' => '/draft',\n// 'Icon' => 'fa fa-wpforms',\n// ],\n// [\n// 'SubMenu' => 'حذف شده',\n// 'Url' => '/trash',\n// 'Icon' => 'fa fa-trash',\n// ],\n// ],\n\n 'امور مالی و حسابداری' => [\n [\n 'SubMenu' => 'فاکتور',\n 'Url' => 'OL',\n 'StatusId' => '2',\n 'Icon' => 'fa fa-clipboard',\n ],\n// [\n// 'SubMenu' => 'سوابق پرداخت',\n// 'Url' => '/sent',\n// 'Icon' => 'fa fa-money',\n// ],\n ],\n\n// 'تنظیمات' => [\n// [\n// 'SubMenu' => 'پروفایل',\n// 'Url' => '/transaction',\n// 'Icon' => 'fa fa-address-card-o',\n// ],\n// [\n// 'SubMenu' => 'امنیت',\n// 'Url' => '/transaction',\n// 'Icon' => 'fa fa-lock',\n// ],\n// ],\n//\n// 'راهنما' => [\n// [\n// 'SubMenu' => 'راهنمای مشتری',\n// 'Url' => '/customer guide',\n// 'Icon' => 'fa fa-info-circle',\n// ],\n// ],\n ], // end of customer\n\n ];\n\n foreach ($SubMenus as $role => $Menus) {\n foreach ($Menus as $Main => $sub) {\n foreach ($sub as $item) {\n\n DB::table('user_sub_menus')->insert([\n 'role_id' => $role,\n 'user_main_menu' => $Main,\n 'SubMenu' => $item['SubMenu'],\n 'Url' => $item['Url'],\n 'StatusId' => $item['StatusId'],\n 'Icon' => $item['Icon'],\n ]);\n }\n }\n\n }\n }", "title": "" }, { "docid": "a33f9523e37d55b8253e0cc8ba689ced", "score": "0.51222146", "text": "function WriteSidebarMenu($item=0, $node=0){\n $menu = $this->getAdminMenuTreeItem($item);\n// var_dump($menu);\n if(!is_array($menu) OR count($menu)==0){\n ?><div class=\"alert alert-warning alert-dismissible\"><h4><i class=\"icon fa fa-warning\"></i>Alert!</h4>Sorry, Admin menu not exist :(</div><?\n return false;\n }\n if($node==0){\n $ul_class = \"sidebar-menu\";\n }else{\n $ul_class = \"treeview-menu\";\n }\n if($node!=1){\n ?><ul class=\"<?php echo $ul_class;?>\"><?php\n }\n\n foreach($menu as $level=>$data){\n $pointer_right = '';\n if($node==0){\n $li_class = \"header\";\n $href = \"#\";\n }elseif($this->isSubLevels($level)){\n $li_class = \"treeview\";\n //echo '<br>$this->module='.$this->module.' $level='.$level;\n //echo '<br>qqq='.$this->isCatASubcatOfLevel($this->module, $level);\n if($this->menu_id>0 AND $this->isCatASubcatOfLevel($this->menu_id, $level)){\n $li_class .= ' active';\n }\n $href = \"#\";\n $pointer_right = '<i class=\"fa fa-angle-left pull-right\"></i>';\n }elseif($data['function']==$this->module){\n $li_class = \"active\";\n $href = \"?module=\".$data['function'];\n }else{\n $li_class = \"\";\n $href = \"?module=\".$data['function'];\n }\n ?>\n <li class=\"<?php echo $li_class;?>\">\n <?php\n if($node>0){\n ?><a href=\"<?php echo $href;?>\"><i class=\"fa fa-circle-o\"></i> <span><?php echo $data['name'];?></span> <?php echo $pointer_right?></a><?php\n }else{\n echo $data['name'];\n }\n\n if($this->isSubLevels($level)){\n $this->WriteSidebarMenu($level, $node+1);\n }\n ?>\n </li>\n <?php\n\n }\n if($node!=1) {\n ?></ul><?php\n }\n }", "title": "" }, { "docid": "907aaba1e330c7f623a7f256dcd5274e", "score": "0.5117459", "text": "function levels()\n\t{\n\n\n\t\tif (isset($this->SESS->cache['mc']['player']['level_list']) !== FALSE)\n\t\t{\n\t\t\t$this->SESS->cache['mc']['player']['levels'] = PHP_EOL . \"levels: [\" . trim($this->SESS->cache['mc']['player']['level_list'], \",\") . PHP_EOL . \"]\";\n\t\t\tunset($this->SESS->cache['mc']['player']['level_list']);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->_log_item(\"ERROR in MC Player plugin: 'levels' container specified, but no 'level' items were found\");\n\t\t\treturn $this->TMPL->no_results();\n\t\t}\n\t}", "title": "" }, { "docid": "68657ab6b7f0b935d56e1bd9b0583da2", "score": "0.5110824", "text": "public function run()\n {\n DB::table('menus')->truncate();\n DB::table('menus')->insert(\n array\n (\n /**\n *\n * @user management\n *\n */\n\n array('id'=>'1','parent_id' => 0,'action'=>NULL,'name' => 'Add Role', 'menu_url' => 'add-role.index', 'module_id' => '1', 'status' => '1','module_group_id'=>'1'),\n array('id'=>'2','parent_id' => 1,'action'=> 1,'name' => 'Add', 'menu_url' => 'add-role.create', 'module_id' => '1', 'status' => '1','module_group_id'=>'1.1'),\n array('id'=>'3','parent_id' => 1,'action'=> 1,'name' => 'Edit', 'menu_url' => 'add-role.edit', 'module_id' => '1', 'status' => '1','module_group_id'=>'1.2'),\n array('id'=>'4','parent_id' => 1,'action'=> 1,'name' => 'Delete', 'menu_url' => 'add-role.destroy', 'module_id' => '1', 'status' => '1','module_group_id'=>'1.3'),\n\n array('id'=>'5','parent_id' => 0,'action'=>NULL,'name' => 'Role Permission', 'menu_url' => 'permission.index', 'module_id' => '1', 'status' => '1','module_group_id'=>'1.4'),\n array('id'=>'6','parent_id' => 0,'action'=>NULL,'name' => 'Change Password', 'menu_url' => 'changePassword.index', 'module_id' => '1', 'status' => '1','module_group_id'=>'1.5'),\n\n array('id'=>'7','parent_id' => 0,'action'=>NULL,'name' => '', 'menu_url' => 'user.index', 'module_id' => '2', 'status' => '1','module_group_id'=>'2'),\n array('id'=>'8','parent_id' => 7,'action'=> 7,'name' => 'Add', 'menu_url' => 'user.create', 'module_id' => '1', 'status' => '1','module_group_id'=>'2.1'),\n array('id'=>'9','parent_id' => 7,'action'=> 7,'name' => 'Edit', 'menu_url' => 'user.edit', 'module_id' => '1', 'status' => '1','module_group_id'=>'2.2'),\n array('id'=>'10','parent_id' => 7,'action'=> 7,'name' => 'Delete', 'menu_url' => 'user.destroy', 'module_id' => '1', 'status' => '1','module_group_id'=>'2.3'),\n\n )\n );\n\n }", "title": "" }, { "docid": "c9f897dd16697d452dd66c29e9ba82f3", "score": "0.5110558", "text": "private function save()\r\n\t\t{\r\n //Abort if user is not logged\r\n if(!$this->User->isLogged()) return;\r\n \r\n\t\t\t//Retrieve menu ID\r\n\t\t\t$request = 'SELECT menu_id FROM users_menus WHERE user_id = ?';\r\n\t\t\t$stmt = $this->DB->query($request, array($this->User->getID()));\r\n $data = $stmt->fetch();\r\n\t\t\t//A menu already exists\r\n\t\t\tif($data)\r\n\t\t\t\t$this->id = (int)$data['menu_id'];\r\n\t\t\t//Create a new menu ID\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$request = 'INSERT INTO users_menus (user_id) VALUES (?)';\r\n\t\t\t\t$this->DB->query($request, array($this->User->getID()));\r\n\t\t\t\t$this->id = $this->DB->insertID();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Update menu date and timestamp\r\n\t\t\t$request = 'UPDATE users_menus'\r\n . ' SET menu_date = :date'\r\n\t\t\t\t\t. ' WHERE user_id = :user_id AND menu_id = :id';\r\n\t\t\t$this->DB->query($request, array(\r\n ':date' => $this->date,\r\n ':user_id' => $this->User->getID(),\r\n ':id' => $this->id\r\n ));\r\n\t\t\r\n\t\t\t//Delete all data with current menu ID\r\n\t\t\t$request = 'DELETE FROM menus_quickmeals WHERE menu_id = ?';\r\n\t\t\t$this->DB->query($request, array($this->id));\r\n\t\t\t$request = 'DELETE FROM menus_recipes WHERE menu_id = ?';\r\n\t\t\t$this->DB->query($request, array($this->id));\r\n\t\t\t$request = 'DELETE FROM menus_shopping WHERE menu_id = ?';\r\n\t\t\t$this->DB->query($request, array($this->id));\r\n\t\t\t$request = 'DELETE FROM shopping_ingredients WHERE menu_id = ?';\r\n\t\t\t$this->DB->query($request, array($this->id));\r\n\t\t\t$request = 'DELETE FROM shopping_items WHERE menu_id = ?';\r\n\t\t\t$this->DB->query($request, array($this->id));\r\n\t\t\t$request = 'DELETE FROM shopping_modifications WHERE menu_id = ?';\r\n\t\t\t$this->DB->query($request, array($this->id));\r\n\t\t\t//Delete only shared shopping list that are older than 2 weeks\r\n\t\t\t$request = 'DELETE FROM shared_shopping WHERE menu_id = ?'\r\n\t\t\t\t\t. ' AND DATEDIFF(shopping_date, CURDATE()) < -' . C::MENU_DAYS_PAST;\r\n\t\t\t$this->DB->query($request, array($this->id));\r\n\t\t\t\r\n\t\t\t//Create requests to insert menu content in database\r\n\t\t\t$quickmeals_request = 'INSERT INTO menus_quickmeals (menu_id, menu_day, quickmeal_id) VALUES (?, ?, ?)';\r\n\t\t\t$recipes_request = 'INSERT INTO menus_recipes (menu_id, menu_day, pos, recipe_id, guests) VALUES (?, ?, ?, ?, ?)';\r\n\t\t\t$shopping_request = 'INSERT INTO menus_shopping (menu_id, menu_day, status) VALUES (?, ?, ?)';\r\n\t\t\t$ing_request = 'INSERT INTO shopping_ingredients (menu_id, menu_day, ing_id, quantity, unit) VALUES (?, ?, ?, ?, ?)';\r\n\t\t\t$items_request = 'INSERT INTO shopping_items (menu_id, menu_day, item_id, item_text, item_category) VALUES (?, ?, ?, ?, ?)';\r\n\t\t\t$modif_request = 'INSERT INTO shopping_modifications (menu_id, menu_day, ing_id, quantity, unit) VALUES (?, ?, ?, ?, ?)';\r\n\t\t\t\r\n\t\t\t//Loop through the menu content\r\n\t\t\t$quickmeals_params = array();\r\n $recipes_params = array();\r\n $shopping_params = array();\r\n $shared_params = array();\r\n $ing_params = array();\r\n $items_params = array();\r\n $modif_params = array();\r\n\t\t\tforeach($this->content as $day_index => $day)\r\n\t\t\t{\r\n\t\t\t\t//Quick meals\r\n\t\t\t\t$quickmeals = $day['quickmeals'];\r\n\t\t\t\tforeach($quickmeals as $quickmeal_id)\r\n\t\t\t\t{\r\n $quickmeals_params[] = array(\r\n $this->id,\r\n $day_index,\r\n $quickmeal_id\r\n );\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t//Recipes\r\n\t\t\t\t$recipes = $day['recipes'];\r\n\t\t\t\tforeach($recipes['ids'] as $pos => $recipe_id)\r\n\t\t\t\t{\r\n if($recipe_id)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$recipes_params[] = array(\r\n $this->id,\r\n $day_index,\r\n $pos,\r\n $recipe_id,\r\n $recipes['guests'][$pos]\r\n );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Shopping\r\n\t\t\t\t$shopping = $day['shopping'];\r\n\t\t\t\tif($shopping['status'])\r\n\t\t\t\t{\r\n\t\t\t\t\t$status = $shopping['status'];\r\n\t\t\t\t\t$ing = $shopping['ingredients'];\r\n\t\t\t\t\t$items = $shopping['items'];\r\n\t\t\t\t\t$modif = $shopping['modifications'];\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Status\r\n\t\t\t\t\t$shopping_params[] = array(\r\n $this->id,\r\n $day_index,\r\n $status\r\n );\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Ingredients\r\n\t\t\t\t\tforeach($ing as $ing_qty)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$ing_params[] = array(\r\n $this->id,\r\n $day_index,\r\n $ing_qty->getID(),\r\n $ing_qty->getQuantity(),\r\n $ing_qty->getUnit()\r\n );\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Items\r\n\t\t\t\t\tforeach($items as $item)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$items_params[] = array(\r\n $this->id,\r\n $day_index,\r\n $item['id'],\r\n $item['text'],\r\n $item['category']\r\n );\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Modifications\r\n\t\t\t\t\tforeach($modif as $ing_qty)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$modif_params[] = array(\r\n $this->id,\r\n $day_index,\r\n $ing_qty->getID(),\r\n $ing_qty->getQuantity(),\r\n $ing_qty->getUnit()\r\n );\r\n \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Send requests\r\n\t\t\tif(count($quickmeals_params)) \r\n $this->DB->query($quickmeals_request, $quickmeals_params);\r\n\t\t\tif(count($recipes_params)) \r\n $this->DB->query($recipes_request, $recipes_params);\r\n\t\t\tif(count($shopping_params)) \r\n $this->DB->query($shopping_request, $shopping_params);\r\n\t\t\tif(count($ing_params)) \r\n $this->DB->query($ing_request, $ing_params);\r\n\t\t\tif(count($items_params)) \r\n $this->DB->query($items_request, $items_params);\r\n\t\t\tif(count($modif_params)) \r\n $this->DB->query($modif_request, $modif_params);\r\n\t\t}", "title": "" }, { "docid": "2d04ecc3e5a2ccd2597153c65e5bb371", "score": "0.5110403", "text": "function q_mk_modifymenu() {\n add_menu_page('Quote Of The Day', //page title\n 'Quote Of The Day', //menu title\n 'manage_options', //capabilities\n 'q_mk_list', //menu slug\n 'q_mk_list' //function\n );\n\n //this is a submenu\n add_submenu_page('q_mk_create', //parent slug\n 'Add New Quote', //page title\n 'Add New', //menu title\n 'manage_options', //capability\n 'q_mk_create', //menu slug\n 'q_mk_create'); //function\n\n //this submenu is HIDDEN, however, we need to add it anyways\n add_submenu_page(null, //parent slug\n 'Update Quote', //page title\n 'Update', //menu title\n 'manage_options', //capability\n 'q_mk_update', //menu slug\n 'q_mk_update'); //function\n}", "title": "" }, { "docid": "fbd011bd2a93d6accac62ccb8a388821", "score": "0.51005816", "text": "public function newMenu()\n {\n $this->title = _('Create New iPXE Menu Entry');\n $this->templates = array(\n '${field}',\n '${input}',\n );\n $menudefault = (\n $_REQUEST['menu_default'] ?\n ' checked' :\n ''\n );\n $fields = array(\n _('Menu Item:') => sprintf(\n '<input type=\"text\" name=\"menu_item\" value='\n . '\"%s\" id=\"menu_item\"/>',\n $_REQUEST['menu_item']\n ),\n _('Description:') => sprintf(\n '<textarea cols=\"40\" rows=\"2\" name='\n . '\"menu_description\">%s</textarea>',\n $_REQUEST['menu_description']\n ),\n _('Parameters:') => sprintf(\n '<textarea cols=\"40\" rows=\"8\" name='\n . '\"menu_params\">%s</textarea>',\n $_REQUEST['menu_params']\n ),\n _('Boot Options:') => sprintf(\n '<input type=\"text\" name=\"menu_options\" id='\n . '\"menu_options\" value=\"%s\"/>',\n $_REQUEST['menu_options']\n ),\n _('Default Item:') => sprintf(\n '<input type=\"checkbox\" name=\"menu_default\" value=\"1\" id=\"'\n . 'menudef\"%s/><label for=\"menudef\"></label>',\n $menudefault\n ),\n _('Menu Show with:') => self::getClass(\n 'PXEMenuOptionsManager'\n )->regSelect(\n $_REQUEST['menu_regmenu']\n ),\n '&nbsp;' => sprintf(\n '<input type=\"submit\" value=\"%s %s\"/>',\n self::$foglang['Add'],\n _('New Menu')\n ),\n );\n foreach ((array)$fields as $field => &$input) {\n $this->data[] = array(\n 'field'=>$field,\n 'input'=>$input,\n );\n unset($input);\n }\n unset($fields);\n self::$HookManager\n ->processEvent(\n 'BOOT_ITEMS_ADD',\n array(\n 'data' => &$this->data,\n 'templates' => &$this->templates,\n 'attributes' => &$this->attributes,\n 'headerData' => &$this->headerData\n )\n );\n printf(\n '<form method=\"post\" action=\"%s\">',\n $this->formAction\n );\n $this->render();\n echo \"</form>\";\n }", "title": "" }, { "docid": "bf6e5a593c80a79ea3a3d5835d8c78ec", "score": "0.5087879", "text": "public function addMenuAndChildren($entry, array & $array)\n {\n if($entry == 0)\n return;\n\n $menuDB = $this->getMenu($entry);\n $menu = [\n \"id\" \t\t=> $entry,\n \"text0\" \t\t=> $menuDB[\"text0_0\"],\n \"text1\" \t\t=> $menuDB[\"text0_1\"],\n \"options\" \t\t=> [],\n \"conditions\" \t=> [],\n ];\n\n // Process conditions\n $menuConditionsDB = $this->getMenuConditions($entry, $menuDB[\"text_id\"]);\n foreach($menuConditionsDB as $key => $condition) {\n $menu[\"conditions\"][$key] = [\n \"id\"\t\t=> $condition['id'],\n \"source\" \t=> $condition['source'],\n \"type\" \t=> $condition['type'],\n \"target\" \t=> $condition['target'],\n \"value1\" \t=> $condition['value1'],\n \"value2\" \t=> $condition['value2'],\n \"value3\" \t=> $condition['value3'],\n \"reverse\" \t=> $condition['reverse'],\n ];\n }\n\n // Process options\n $menuOptionsDB = $this->getMenuOptions($entry);\n foreach($menuOptionsDB as $key => $option) {\n $menu[\"options\"][$option['id']] = [\n \"id\" \t\t=> $option['id'],\n \"icon\" \t\t=> $option['option_icon'],\n \"text\" \t\t=> $option['option_text'],\n \"flag\" \t\t=> $option['npc_option_npcflag'],\n \"next\" \t\t=> $option['action_menu_id'],\n \"conditions\"\t=> [ ],\n ];\n\n // Process options conditions\n $menuOptionsConditionsDB = $this->getMenuOptionsConditions($entry);\n foreach($menuOptionsConditionsDB as $keyCondition => $condition) {\n $menu[\"options\"][$key][\"conditions\"][$condition['id']] = [\n \"id\"\t\t=> $condition['id'],\n \"source\" \t=> $condition['source'],\n \"type\" \t=> $condition['type'],\n \"target\" \t=> $condition['target'],\n \"value1\" \t=> $condition['value1'],\n \"value2\" \t=> $condition['value2'],\n \"value3\" \t=> $condition['value3'],\n \"reverse\" \t=> $condition['reverse'],\n ];\n }\n }\n $array['menus'][$menu['id']] = $menu;\n $array['main'] = $menu['id'];\n\n // If any option points to a menu, process it too\n foreach($menuOptionsDB as $key => $option) {\n $next = $menu[\"options\"][$option['id']][\"next\"];\n if($next != 0 && !$this->hasMenu($array, $next))\n $this->addMenuAndChildren($next, $array);\n }\n return $array;\n }", "title": "" }, { "docid": "ab6f74a428fe7cd494831e2a9a403520", "score": "0.50850224", "text": "function ControlOnLoad(){\n \t$this->Request->SetValue(\"library\", \"changemenu\");\n \t$this->MenuType=$this->Request->Value(\"menu\");\n parent::ControlOnLoad();\n }", "title": "" }, { "docid": "a5df877754ef8de84489d140fff81c6a", "score": "0.50847006", "text": "function buildOneLevel($level, $items, $parentIsActive){\n\t\t$rc = '';\n\t\tif ($items != null && count($items) > 0){\n\t\t\t$entries = '';\n\t\t\t$name = $this->prefixPartMenu . 'LEVEL_' . $level;\n\t\t\t$template = $this->parts[$name];\n\t\t\tforeach ($items as $item){\n\t\t\t\t$name = $this->prefixPartMenu . 'ENTRY_' . $level;\n\t\t\t\t$templateEntry = $this->parts[$name];\n\t\t\t\t$templateEntry = str_replace(\"###link###\", $item->link, $templateEntry);\n\t\t\t\t$templateEntry = str_replace(\"###title###\", $item->title, $templateEntry);\n\n\t\t\t\t$classCurrent = $item->active ? rtrim($this->parts['CLASS_CURRENT']) : '';\n\t\t\t\t$templateEntry = str_replace(\"###class_current###\", $classCurrent, $templateEntry);\n\n\t\t\t\t$submenus = '';\n\t\t\t\tif ($parentIsActive\n\t\t\t\t\t\t|| ($item->active || $this->expanded) && count($item->submenus) > 0){\n\t\t\t\t\t$submenus = $this->buildOneLevel($level + 1, $item->submenus, $item->active);\n\t\t\t\t}\n\t\t\t\t$templateEntry = str_replace(\"###SUBMENUS###\", $submenus, $templateEntry);\n\n\t\t\t\t$templateId = strcmp($item->id, '-') == 0 ? '' : rtrim($this->parts['ID']);\n\t\t\t\tif (!empty ($templateId))\n\t\t\t\t\t$templateId = str_replace('###id###', $item->id, $templateId);\n\t\t\t\t$templateEntry = str_replace(\"###id###\", $templateId, $templateEntry);\n\n\t\t\t\t$entries .= $templateEntry;\n\t\t\t}\n\t\t\t$rc = str_replace('###ENTRIES###', $entries, $template);\n\t\t}\n\t\treturn $rc;\n\t}", "title": "" }, { "docid": "0ba20ae3a1b87788356e5a7a7854b037", "score": "0.5079679", "text": "public function getStructure()\n {\n $location = $this->identifier;\n\n if (is_integer($location)) {\n $menuID = $location;\n } else {\n // Make sure the menu is registered\n if (!has_theme_menu($location)) {\n return false;\n }\n\n $menuID = (int) get_active_menu_id($location, 0);\n\n if (!$menuID) {\n return $menuID;\n }\n }\n\n $menuModel = new MenuModel;\n $this->menu = $menuModel->read($menuID, ['menu_id']);\n\n if (!$this->menu) {\n return false;\n }\n\n $app = app();\n $pool = $app->cache;\n\n $cache = $pool->getItem(\"parsedMenu/{$menuID}\");\n $data = $cache->get();\n\n // If the cache exists serve from there\n if ($cache->isHit()) {\n return $data;\n }\n\n $menuRelModel = new MenuRelModel;\n\n $menuItems = $menuRelModel->select(['*'])\n ->where('menu_id', '=', $menuID)\n ->orderBy('sort')\n ->execute();\n\n $ref = [];\n $items = [];\n\n while ($item = $menuItems->fetch()) {\n $thisRef = &$ref[$item['item_id']];\n\n $thisRef['parent_id'] = $item['parent_id'];\n $thisRef['item_label'] = __(str_locale_handle('menu-' . $item['item_label']), _T, ['defaultValue' => $item['item_label']]);\n $thisRef['item_url'] = $item['item_url'];\n $thisRef['item_id'] = $item['item_id'];\n $thisRef['item_class'] = $item['item_class'];\n $thisRef['item_icon'] = $item['item_icon'];\n\n if ((int) $item['parent_id'] === 0) {\n $items[$item['item_id']] = &$thisRef;\n } else {\n $ref[$item['parent_id']]['child'][$item['item_id']] = &$thisRef;\n }\n }\n\n\n $cache->set($items);\n $cache->expiresAfter(config('menu_cache_lifetime', 86400));\n $pool->save($cache);\n\n return $items;\n }", "title": "" }, { "docid": "82c0b15773bda9191eadd6fe09eb9e58", "score": "0.507249", "text": "function page_menu_multilevel()\n {\n ?>\n <div class=\"navbar navbar-fixed-top\">\n <div class=\"navbar-inner\">\n <div class=\"container\">\n <a class=\"btn btn-navbar\" data-toggle=\"collapse\" data-target=\".nav-collapse\">\n <span class=\"icon-bar\"></span> \n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n </a>\n\n <div class=\"nav-collapse\">\n <ul class=\"nav\">\n <a class=\"brand\" href=\"#\">Present Ideas</a>\n <li class=\"active\"><a href=\"#\">Home</a></li>\n <li><a href=\"#\">Blog</a></li>\n <li><a href=\"#\">About</a></li>\n <li><a href=\"#\">Help</a></li>\n <li class=\"dropdown\" id=\"accountmenu\">\n <a class=\"dropdown-toggle\" data-toggle=\"dropdown\" href=\"#\">Account Settings<b class=\"caret\"></b></a>\n <ul class=\"dropdown-menu\">\n <li><a href=\"#\">Login</a></li>\n <li class=\"dropdown-submenu\">\n <a tabindex=\"-1\" href=\"#\">More options</a>\n <ul class=\"dropdown-menu\">\n <li><a tabindex=\"-1\" href=\"#\">Second level</a></li>\n <li class=\"dropdown-submenu\">\n <a href=\"#\">More..</a>\n <ul class=\"dropdown-menu\">\n <li><a href=\"#\">3rd level</a></li>\n <li><a href=\"#\">3rd level</a></li>\n </ul>\n </li>\n <li><a href=\"#\">Second level</a></li>\n <li><a href=\"#\">Second level</a></li>\n </ul>\n </li>\n <li><a href=\"#\">Register</a></li>\n <li class=\"divider\"></li>\n <li><a href=\"#\">Logout</a></li>\n </ul>\n </li>\n </ul>\n <ul class=\"nav pull-right\">\n\n </ul>\n </div><!--/.nav-collapse -->\n </div>\n </div>\n </div>\n \n <!-- or with bootstrap 3 -->\n <div class=\"navbar navbar-fixed-top navbar-default\">\n <div class=\"navbar-header\"><a class=\"navbar-brand\" href=\"#\">Present Ideas</a><a class=\"navbar-toggle\"\n data-toggle=\"collapse\" data-target=\".navbar-collapse\">\n <span class=\"glyphicon glyphicon-bar\"></span> \n <span class=\"glyphicon glyphicon-bar\"></span>\n <span class=\"glyphicon glyphicon-bar\"></span>\n </a>\n </div>\n <div class=\"container\">\n <div class=\"navbar-collapse\">\n <ul class=\"nav navbar-nav\">\n <li class=\"active\"><a href=\"#\">Home</a>\n </li>\n <li><a href=\"#\">Blog</a>\n </li>\n <li><a href=\"#\">About</a>\n </li>\n <li><a href=\"#\">Help</a>\n </li>\n <li class=\"dropdown\" id=\"accountmenu\"> <a class=\"dropdown-toggle\" data-toggle=\"dropdown\" href=\"#\">Account Settings<b class=\"caret\"></b></a>\n\n <ul\n class=\"dropdown-menu\">\n <li><a href=\"#\">Login</a>\n </li>\n <li class=\"dropdown-submenu\"> <a tabindex=\"-1\" href=\"#\">More options</a>\n\n <ul class=\"dropdown-menu\">\n <li><a tabindex=\"-1\" href=\"#\">Second level</a>\n </li>\n <li class=\"dropdown-submenu\"> <a href=\"#\">More..</a>\n\n <ul class=\"dropdown-menu\">\n <li><a href=\"#\">3rd level</a>\n </li>\n <li><a href=\"#\">3rd level</a>\n </li>\n </ul>\n </li>\n <li><a href=\"#\">Second level</a>\n </li>\n <li><a href=\"#\">Second level</a>\n </li>\n </ul>\n </li>\n <li><a href=\"#\">Register</a>\n </li>\n <li class=\"divider\"></li>\n <li><a href=\"#\">Logout</a>\n </li>\n </ul>\n </li>\n </ul>\n <ul class=\"nav pull-right navbar-nav\"></ul>\n </div>\n <!--/.navbar-collapse -->\n </div>\n </div>\n \n <?php\n }", "title": "" }, { "docid": "ad051a2b8daadd54dbcaa365ae4e96d3", "score": "0.5068271", "text": "protected function convertBuiltMenuToIdTree(array $build) {\n $level = [];\n foreach (Element::children($build) as $id) {\n $level[$id] = [];\n if (isset($build[$id]['below'])) {\n $level[$id] = $this->convertBuiltMenuToIdTree($build[$id]['below']);\n }\n }\n return $level;\n }", "title": "" }, { "docid": "d7323e5ea367a803490630e619d2ebe3", "score": "0.5067263", "text": "function getMenu($menu_id, $sub_menus = TRUE, $max_levels = -1, $current_id = 0, $parent_id = 0, $menu_array = array(), $sql_loop_guard = 20, $menuitemparents = array()) {\n\t\tglobal $db;\n\n\t\tif($max_levels != false) {\n\t\t\tif($max_levels > 0) {\n\t\t\t\t$max_levels--;\n\t\t\t}\n\n\t\t\t$return = '';\n\t\t\t$parent_id = intval($parent_id);\n\t\t\t$idand = '';\n\n\t\t\tif(FALSE != $menu_id && empty($menu_array)) {\n\t\t\t\t$sql = <<<SQL\n\t\t\t\t\t\tSELECT \n\t\t\t\t\t\t\t# main menu\n\t\t\t\t\t\t\tm.name,\n\t\t\t\t\t\t\tm.class as menu_class,\n\t\t\t\t\t\t\t#menu_items\n\t\t\t\t\t\t\tmi.menu_item_id, \n\t\t\t\t\t\t\tmi.page_id,\n\t\t\t\t\t\t\tmi.link,\n\t\t\t\t\t\t\tmi.title,\n\t\t\t\t\t\t\tmi.sort,\n\t\t\t\t\t\t\tmi.parent_id,\n\t\t\t\t\t\t\tmi.sub_menu_id,\n\t\t\t\t\t\t\tmi.class,\n\t\t\t\t\t\t\t#page_items\n\t\t\t\t\t\t\tp.title AS page_title,\n\t\t\t\t\t\t\tp.url AS url\n\t\t\t\t\t\tFROM menu_items mi\n\t\t\t\t\t\tLEFT JOIN pages p ON p.page_id = mi.page_id\n\t\t\t\t\t\tINNER JOIN menus AS m ON (mi.menu_id=m.menu_id)\n\t\t\t\t\t\tWHERE mi.menu_id = {$menu_id}\n\t\t\t\t\t\tORDER BY mi.sort ASC, mi.title ASC\nSQL;\n\t\t\t\t$items = $db->fetch_array($sql);\n\n\t\t\t\t$menuitemparents = $this->getMenuItemParents($current_id);\n\t\t\t} else {\n\t\t\t\t$items = $menu_array;\n\t\t\t\t$menuitemparents = $menuitemparents;\n\t\t\t}\n\t\t\tif(count($items) > 0 && is_array($items)) {\n\t\t\t\t$counter = 0;\n\t\t\t\tforeach ($items as $y => $item) {\n\t\t\t\t\tif($parent_id == $item['parent_id']) {\n\t\t\t\t\t\tif(0 == $counter) {\n\t\t\t\t\t\t\t$return = '<ul class=\"';\n//\t\t\t\t\t\t\t. .'\">';\n\t\t\t\t\t\t\tif(!empty($item['menu_class'])) {\n\t\t\t\t\t\t\t\t$return .= ' '. $item['menu_class'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$return .= '\">';\n\t\t\t\t\t\t\t$counter++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$class = $item['class'];\n\t\t\t\t\t\tif($item['page_id'] == $current_id) {\n\t\t\t\t\t\t\t// if $item['link'] is used and menu is generated for home page, anything with $item['link'] would show true. So we do the following to prevent that.\n\t\t\t\t\t\t\tif($item['link'] == '')\n\t\t\t\t\t\t\t\t$class .= ' current active ';\n\t\t\t\t\t\t} else if(in_array($item['menu_item_id'], $menuitemparents) === true) {\n\t\t\t\t\t\t\t$class .= ' parent ';\n\t\t\t\t\t\t}\n//\t\t\t\t\t\t$class .= ' loop'. $counter .' ';\n\n\t\t\t\t\t\tif(str_word_count($item['title']) > 3) {\n\t\t\t\t\t\t\t//$class .= ' two ';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($y == 0)\n\t\t\t\t\t\t\t$class .= ' first ';\n\t\t\t\t\t\tif($y + 1 == count($items))\n\t\t\t\t\t\t\t$class .= ' last ';\n\n\t\t\t\t\t\t$target = '';\n\t\t\t\t\t\t$error = false;\n\t\t\t\t\t\tif($item['link']) {\n\n\t\t\t\t\t\t\tif($item['link'] == '/') {\n\t\t\t\t\t\t\t\t$link = $item['link'];\n\t\t\t\t\t\t\t} else if(strpos($item['link'], '/') === 0) {\n\t\t\t\t\t\t\t\t$link = $item['link'];\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif(strpos($item['link'], 'http://') === false && strpos($item['link'], 'https://') === false) {\n\t\t\t\t\t\t\t\t\t$item['link'] = 'http://' . $item['link'];\n\t\t\t\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\t\t\t$link = $item['link'];\n\t\t\t\t\t\t\t\t$target = ' target=\"_blank\" ';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(!$item['title']) {\n\t\t\t\t\t\t\t\tif(!$item['page_title'])\n\t\t\t\t\t\t\t\t\t$error = true;\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t$item['title'] = $item['page_title'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!$item['url'])\n\t\t\t\t\t\t\t\t$item['url'] = '/';\n\t\t\t\t\t\t\t$link = $item['url'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n//\t\t\t\t\t\t$class .= \"menu_item_id_\". $item['menu_item_id'] .\" parent_id_\". $item['parent_id'] .\" max_levels_\". $max_levels .\" internal-loops-\". $this->loops;\n\n\t\t\t\t\t\tif(!$error) {\n\t\t\t\t\t\t\t$return .= <<<HTML\n\t\t\t\t\t\t\t\t\t<li class=\"{$class}\">\n\t\t\t\t\t\t\t\t\t\t<a href=\"{$link}\" {$target}><div>{$item['title']}</div></a>\nHTML;\n\t\t\t\t\t\t\tif($sub_menus && $item['sub_menu_id'] > 0 && $sql_loop_guard > 0) {\n\t\t\t\t\t\t\t\t$sql_loop_guard--;\n\t\t\t\t\t\t\t\t$subMenuId = $item['sub_menu_id'];\n\t\t\t\t\t\t\t\t$menuItemId = 0;\n\t\t\t\t\t\t\t\t$passItems = array();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$subMenuId = null;\n\t\t\t\t\t\t\t\t$menuItemId = $item['menu_item_id'];\n\t\t\t\t\t\t\t\t$passItems = $items;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$return .= $this->getMenu($subMenuId, $sub_menus, $max_levels, $current_id, $menuItemId, $passItems, $sql_loop_guard, $menuitemparents);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$return .= \"</li>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif($counter > 0)\n\t\t\t\t\t$return .= '</ul>';\n\t\t\t}\n\n\t\t\tif('' == $return) {\n\t\t\t\t$sql = \"SELECT parent_id FROM menu_items WHERE menu_item_id='{$parent_id}'\";\n\t\t\t\t$parent = $db->query_first($sql);\n\n\t\t\t\tif(isset($parent['parent_id']) && $parent['parent_id']) {\n\t\t\t\t\t$return = $this->getMenu($menu_id, false, 1, $current_id, $parent['parent_id']);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $return;\n\t\t}\n\t}", "title": "" }, { "docid": "0d62ea4eb0f582096479af6df6f0bb26", "score": "0.50668687", "text": "public function buildMenu() {\n\t\t$html = $this->fetchPage(SITE . '/lessons/');\n\t\t$xpath = $this->parseHtml($html);\n\t\t\n\t\t$lessonTitles = $xpath->query(\"//div[@class='lessoncat']/span\");\n\t\t$lessonSubTitles = $xpath->query(\"//div[@class='lessoncat']//ul\");\n\t\t$menu = [];\n\t\tforeach($lessonTitles as $key => $l) {\n\t\t\t$title = $l->textContent;\n\t\t\tif (!$lessonSubTitles->item($key)) continue;\n\n\t\t\tforeach($lessonSubTitles->item($key)->childNodes as $sl) {\n\t\t\t\t$subTitle = $sl->textContent;\n\t\t\t\t$uri = explode('/', trim($sl->firstChild->attributes[0]->nodeValue));\n\t\t\t\t$menu[$title][] = [\t\n\t\t\t\t\t'name' \t=> trim($subTitle),\n\t\t\t\t\t'data'\t=> $uri[count($uri)-2]\n\t\t\t\t];\n\t\t\t}\n\t\t}\n\n\t\tfile_put_contents('home.json', json_encode($menu, JSON_PRETTY_PRINT));\n\t\t$this->menus = $menu;\n\t}", "title": "" }, { "docid": "0cbc8c06aadeb2e12f218929b06d64be", "score": "0.506486", "text": "public function fill_levels_local(&$levelitems, &$element, $depth) {\n\n/* if (array_key_exists($element['object']->id, $this->modx)) { // don't include something made only for a different group\n return;\n } else */\n \tif ($element['type'] == 'category') { // prepare unique identifier\n $element['eid'] = 'c'.$element['object']->id;\n $this->catitems[$element['object']->id] = $element['object']->fullname;\n } else if (in_array($element['type'], array('item', 'courseitem', 'categoryitem'))) {\n $element['eid'] = 'i'.$element['object']->id;\n $this->items[$element['object']->id] =& $element['object'];\n $this->levelitems[$element['object']->id] =& $element;\n if ($element['type'] == 'categoryitem' && array_key_exists($element['object']->iteminstance,$this->catitems)) {\n\t $this->items[$element['object']->id]->itemname = $this->catitems[$element['object']->iteminstance];\n }\n }\n\n if (empty($element['children'])) {\n return;\n }\n $prev = 0;\n foreach ($element['children'] as $sortorder=>$child) {\n grade_tree_local::fill_levels_local($this->levelitems, $element['children'][$sortorder], $depth);\n }\n }", "title": "" } ]
43176f113972e8c2100ba8b6daf8e913
Test serialization with url parse exception
[ { "docid": "769670936393b2386f18c76b7f85a60b", "score": "0.8075637", "text": "public function testSerializationWithUrlParseException()\n {\n $userPictures = new UserPictures();\n $this->generateCacheManager('http://blah.com:abcdef');\n $this->generateRequestContext();\n $this->serializeObject($userPictures, [\n 'includeHost' => false,\n ]);\n }", "title": "" } ]
[ { "docid": "31f99cf063ea64c34937517ba0f94bb4", "score": "0.62642866", "text": "public function testExceptionOnInvalidUrl()\n {\n $this->expectException(InvalidUrlException::class);\n $this->scraper->load('this-is-not-a-url');\n }", "title": "" }, { "docid": "9b75a6fd88d94156b1b728134c35b9a2", "score": "0.6207201", "text": "public function testGeoUriSerialization()\n {\n $geo = Kernel::create(GeoUri::class, ['geo:1.23,-9.87,234.5']);\n $this->assertEquals('geo:1.23,-9.87,234.5', strval($geo));\n }", "title": "" }, { "docid": "8b30c71bad754dd9dd22520e00b800b4", "score": "0.60220665", "text": "public function testParsingTheUrl(): void {\r\n \r\n $entity = new UrlParser('http://user:pass@mail.sub.example.com:8080/path?foo=bar&baz=quez#fragment');\r\n $url = $entity -> getParsedUrl();\r\n\r\n $this -> assertEquals($url, (object) [\r\n \r\n 'scheme' => 'http',\r\n 'user' => 'user',\r\n 'password' => 'pass',\r\n 'subDomain' => 'mail.sub',\r\n 'domain' => 'example',\r\n 'extension' => 'com',\r\n 'port' => 8080,\r\n 'path' => '/path',\r\n 'query' => 'foo=bar&baz=quez',\r\n 'fragment' => 'fragment',\r\n ]);\r\n }", "title": "" }, { "docid": "860931d50ec732c1363405b953a60588", "score": "0.5989285", "text": "public function testCallingUnserializeDirectlyWithWrongDataFails()\n {\n $this->expectException('\\UnexpectedValueException');\n\n $fakeInfo = serialize(array('fake' => 'info'));\n\n CURLFileSerializer::create(new CURLFile(__DIR__.'/Resources/file.txt'))\n ->unserialize($fakeInfo);\n }", "title": "" }, { "docid": "897bdc0fdedfb7bde5bd8cff24dcb280", "score": "0.59181005", "text": "public function testToString()\n {\n $url = new Url('https://www.google.com');\n static::assertSame('https://www.google.com/', (string)$url);\n }", "title": "" }, { "docid": "9f125bf59aa60ca4d254e08c63aa2f51", "score": "0.58934385", "text": "public function test_can_be_encoded_to_json() : void\n {\n $value = 'valid-slug';\n $slug = Slug::fromString($value);\n \n self::assertSame('valid-slug', $slug->jsonSerialize());\n }", "title": "" }, { "docid": "553d151777b26a49e22ce5cb45a7656f", "score": "0.5862795", "text": "public function testParsingTheUrlQuery(): void {\r\n\r\n $entity = new UrlParser('http://example.com/?foo=bar&baz=quez');\r\n $query = $entity -> getParsedQuery();\r\n\r\n $this -> assertEquals($query, (object) [\r\n\r\n 'foo' => 'bar',\r\n 'baz' => 'quez'\r\n ]);\r\n }", "title": "" }, { "docid": "d5d55a5b01d8b9eb1aaaaaba50e5987f", "score": "0.5834973", "text": "public function testParseExceptions()\n {\n \n }", "title": "" }, { "docid": "e2bd47c6d6e753f23944980c8f3fd954", "score": "0.58045524", "text": "public function testUrlInValidShouldAssertFalse()\n {\n $url_Shorter= new UrlShortener();\n $url = \"httpdss://en.wikipedia.org/wiki/H-I\";\n $this->assertFalse($url_Shorter->validateUrl($url));\n }", "title": "" }, { "docid": "7d32b00e6be6167499aca10ec74797de", "score": "0.5798322", "text": "public function testInvalidUrl1()\n\t{\n\t\t$this->expectsException(UnsupportedVariableTypeException::class, ['url' => []]);\n\t}", "title": "" }, { "docid": "80322999843284ba491d679172db237f", "score": "0.5791028", "text": "function testGetUrl() {\n\t\t$result = $this->helper->url($this->data);\n\t\t$this->assertEqual($result, '/foo/bar/baz/uuid/foo.txt');\n\t}", "title": "" }, { "docid": "ed76c20222d097652844bd58785e81f6", "score": "0.56826836", "text": "public function testInvalidUrl()\n {\n $this->expectException(ShortUrlException::class);\n $this->shortener->shorten('some-string.com');\n }", "title": "" }, { "docid": "ed76c20222d097652844bd58785e81f6", "score": "0.56826836", "text": "public function testInvalidUrl()\n {\n $this->expectException(ShortUrlException::class);\n $this->shortener->shorten('some-string.com');\n }", "title": "" }, { "docid": "cb1b66607fe1cff60cec4771a797f2a4", "score": "0.5659554", "text": "public function testNotSerializingGivesACURLFile()\n {\n $curlFileSerializer = CURLFileSerializer::create(new CURLFile(__DIR__.'/Resources/file.txt'));\n\n $this->assertInstanceOf(\n 'CURLFile',\n $curlFileSerializer->getCURLFile()\n );\n }", "title": "" }, { "docid": "8339f9c25f689ec20281fc05d353bab2", "score": "0.56520563", "text": "public function testNeedsValidUrl(): void\n {\n $this->expectException(InvalidUrlException::class);\n\n new UrlEditor('invalid-url');\n }", "title": "" }, { "docid": "9ded00840788396cad918254e50d0fb0", "score": "0.564795", "text": "public function testRawBodySetFromUrl()\n {\n $request = Request::createFromUrl('/foo', 'GET', [], [], [], [], [], 'foo-bar-baz');\n $this->assertEquals('foo-bar-baz', $request->getRawBody());\n }", "title": "" }, { "docid": "0846ea40b88ac7ce862bdd6a4e88902b", "score": "0.56352603", "text": "function it_throws_exception_on_invalid_json()\n {\n // Haven't still figured how to test it\n\n }", "title": "" }, { "docid": "b7117ea8026a7b1c3f24fd001e7d57ff", "score": "0.5632686", "text": "function ur_is_json( $str ) {\n\t$json = json_decode( $str );\n\treturn $json && $str !== $json;\n}", "title": "" }, { "docid": "aceec864b132d8ca03644db12db8d81d", "score": "0.56077176", "text": "public function testProcess_Exception_InvalidData() \n {\n $this->setExpectedException('Q\\Transform_Exception', \"Wrong parameter type : array given when string should be pass\");\n $transform = new Transform_Unserialize_PHP();\n $contents = $transform->process(array());\n }", "title": "" }, { "docid": "461ad0e95132df34ecd22787baee5e60", "score": "0.55986506", "text": "public function testParse()\n {\n $urlGenerator = app('image.url');\n\n $url = '/uploads/image/300x300/rotate-90/negative/image.jpg';\n $config = [\n 'format' => '{dirname}/{filters}/{basename}.{extension}',\n 'filters_format' => 'image/{filter}',\n 'filter_format' => '{key}-{value}',\n 'filter_separator' => '/'\n ];\n $this->assertEquals($this->image->parse($url, $config), $urlGenerator->parse($url, $config));\n }", "title": "" }, { "docid": "0a978fc6ae033272ec40863514ca3ea1", "score": "0.5587272", "text": "function testSingleSlashUrls()\n {\n $this->obj->url = $this->exampleUrl;\n $ret = $this->strategy->parseQueryString($this->obj);\n\n // assert expected keys present, default module + mgr values\n $this->assertTrue(array_key_exists('moduleName', $ret));\n $this->assertTrue(array_key_exists('managerName', $ret));\n // assert expected values present\n $this->assertEqual(count($ret), 2);\n }", "title": "" }, { "docid": "480eae7d7458172e292bd549dac123b7", "score": "0.5558167", "text": "public function testInstanciation()\n {\n $url = new Url();\n $this->assertTrue(is_a($url, \"Applistic\\Http\\Url\"));\n }", "title": "" }, { "docid": "ef3bcb476d722ed553276ce151be0732", "score": "0.5558041", "text": "public function testInvalidUrls(string $string)\n {\n $this->expectException(InvalidUrlException::class);\n $this->expectExceptionMessage('Invalid URL.');\n new Url($string);\n }", "title": "" }, { "docid": "b4c8730861ab4a14b5b615e6b66cfe60", "score": "0.5533837", "text": "function testIsValidUrl() {\n $this->assertTrue(is_valid_url('http://www.google.com'));\n $this->assertTrue(is_valid_url('http://www.google.com/'));\n $this->assertTrue(is_valid_url('http://google.com'));\n $this->assertTrue(is_valid_url('http://google.com/?search_for=12'));\n $this->assertTrue(is_valid_url('http://google.com/index.php?search_for=12'));\n $this->assertFalse(is_valid_url('ilija studen'));\n }", "title": "" }, { "docid": "af88d6848b6f0df518bfa1ca3819c579", "score": "0.5466366", "text": "public function testInvalidJsonOutput()\n {\n $data = '\"in_office\": true}';\n $output = new \\FurryBear\\Output\\Strategy\\JsonToObject();\n \n try {\n $output->convert($data);\n } catch (\\FurryBear\\Common\\Exception\\InvalidJsonException $e) {\n $this->setExpectedException('\\\\FurryBear\\\\Common\\\\Exception\\\\InvalidJsonException', 'Invalid json');\n throw new \\FurryBear\\Common\\Exception\\InvalidJsonException('Invalid json');\n }\n }", "title": "" }, { "docid": "a93e341cbb423a580a9b4a5b39ac462f", "score": "0.545219", "text": "public function testIncorrectUrlReturnsFalse()\n {\n $_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1';\n $_SERVER['HTTP_HOST'] = 'baz.com';\n $_SERVER['SERVER_PORT'] = 80;\n $_SERVER['REQUEST_URI'] = '/foo/bar/baz';\n $request = Request::createFromGlobals();\n $this->assertFalse($request->isUrl('http://foo.com/foo/bar/baz'));\n $this->assertFalse($request->isUrl(\"http://baz[\\.]+\\.com/foo/baz/.*\", true));\n }", "title": "" }, { "docid": "36cb9fc148e6904f9a2f66e136ede50a", "score": "0.5433732", "text": "function unserialize_handler($errno, $errstr)\n{\n throw new Exception('error detected');\n \n return false;\n}", "title": "" }, { "docid": "6c474204e7d3b1e45c8f0e2c45030990", "score": "0.5433167", "text": "public function testInvalidGeoUri()\n {\n Kernel::create(GeoUri::class, ['geo:1.23,abc']);\n }", "title": "" }, { "docid": "b6dca1e9a79e61db8c699ac9e0395817", "score": "0.5429837", "text": "public function testSerialize()\n {\n $data = $expected = [\n 'repository_url' => 'repository.url',\n 'label' => 'upstream label',\n 'machine_name' => 'upstream machine name',\n 'id' => 'id',\n 'key' => 'value',\n ];\n $expected['organization'] = null;\n $model = new Upstream((object)$data);\n $this->assertEquals($expected, $model->serialize());\n }", "title": "" }, { "docid": "2b7962b61d030c7fad2abde7d67c84ee", "score": "0.54093385", "text": "public function testSerializeCURLFile()\n {\n $curlFileSerializer = CURLFileSerializer::create(new CURLFile(__DIR__.'/Resources/file.txt'));\n $serialized = serialize($curlFileSerializer);\n\n $this->assertTrue(is_string($serialized));\n }", "title": "" }, { "docid": "76e5789d6e91c3c1a490ed218ea0d6b2", "score": "0.5366873", "text": "function testSomeInvalidURIs() {\n $this->expect404onGET(\"/widgets/by-id\");\n $this->expect404onGET(\"/widgets/about\");\n $this->expect404onGET(\"/widgets/by-id/\");\n $this->expect404onGET(\"/widgets/by-id/0\");\n $this->expect404onGET(\"/widgets/by-id/-4095\");\n }", "title": "" }, { "docid": "20a19535a47833f89432a77c55209dc1", "score": "0.53585696", "text": "public function test_parse_file_as_json_validation()\n {\n $this->expectException('Exception');\n\n parse_file_as_json(public_path('robots.txt'));\n }", "title": "" }, { "docid": "e5d422182387695baf3a97c2f4b487ce", "score": "0.5353479", "text": "public function testToString() {\n\n $this->assertEquals(self::URI_HOST, (string) $this->host);\n\n }", "title": "" }, { "docid": "572238d4115b0b2d470499c92f7f322a", "score": "0.5352854", "text": "public function testValidator276() {\n $validator = new Url();\n\n $this->assertTrue($validator->isValid(\"http://www.apache.org/test/index.html\"), \"http://apache.org/ should be allowed by default\");\n\n $this->assertFalse($validator->isValid(\"file:///C:/some.file\"), \"file:///c:/ shouldn't be allowed by default\");\n\n $this->assertFalse($validator->isValid(\"file:///C:\\\\some.file\"), \"file:///c:\\\\ shouldn't be allowed by default\");\n\n $this->assertFalse($validator->isValid(\"file:///etc/hosts\"), \"file:///etc/ shouldn't be allowed by default\");\n\n $this->assertFalse($validator->isValid(\"file://localhost/etc/hosts\"), \"file://localhost/etc/ shouldn't be allowed by default\");\n\n $this->assertFalse($validator->isValid(\"file://localhost/c:/some.file\"), \"file://localhost/c:/ shouldn't be allowed by default\");\n\n // Turn it on, and check\n // Note - we need to enable local urls when working with file:\n $validator = new Url([\"http\", \"file\"], Url::ALLOW_LOCAL_URLS);\n\n $this->assertTrue($validator->isValid(\"http://www.apache.org/test/index.html\"), \"http://apache.org/ should be allowed by default\");\n\n $this->assertTrue($validator->isValid(\"file:///C:/some.file\"), \"file:///c:/ should now be allowed\");\n\n // Currently, we don't support the c:\\ form\n $this->assertFalse($validator->isValid(\"file:///C:\\\\some.file\"), \"file:///c:\\\\ shouldn't be allowed\");\n\n $this->assertTrue($validator->isValid(\"file:///etc/hosts\"), \"file:///etc/ should now be allowed\");\n\n $this->assertTrue($validator->isValid(\"file://localhost/etc/hosts\"), \"file://localhost/etc/ should now be allowed\");\n\n $this->assertTrue($validator->isValid(\"file://localhost/c:/some.file\"), \"file://localhost/c:/ should now be allowed\");\n\n // These are never valid\n $this->assertFalse($validator->isValid(\"file://C:/some.file\"), \"file://c:/ shouldn't ever be allowed, needs file:///c:/\");\n\n $this->assertFalse($validator->isValid(\"file://C:\\\\some.file\"), \"file://c:\\\\ shouldn't ever be allowed, needs file:///c:/\");\n }", "title": "" }, { "docid": "f3429664a046133c3575a312a9bf58c0", "score": "0.5349852", "text": "public function testUri()\n {\n\n $pass = is_readable(TEST_URI) || filter_var(TEST_URI, FILTER_VALIDATE_URL);\n\n $this->assertTrue($pass, 'Uri expects a valid absolute path of file or a valid url address.');\n\n }", "title": "" }, { "docid": "56944aff08cf586c509da7674fdeb71e", "score": "0.5308827", "text": "public function testIncorrectJson()\n {\n $this->prepareAssert()->process('{dewwe=}');\n }", "title": "" }, { "docid": "8139506691ce12527d59408b78d1ee5b", "score": "0.5291131", "text": "function testGetUrlWithArbitraryDownloadExt() {\n\t\t$this->data['ext'] = 'bar';\n\t\t$result = $this->helper->url($this->data);\n\t\t$this->assertEqual($result, '/foo/bar/baz/uuid/foo.bar');\n\t}", "title": "" }, { "docid": "c653f3ef465c1e600bcc12988447977d", "score": "0.5287402", "text": "public function testCreateParserFor()\n {\n $serializationMap = array('n-triples', 'rdf-json', 'rdf-xml', 'rdfa', 'turtle');\n\n foreach ($serializationMap as $serialization) {\n $this->assertTrue(is_object($this->fixture->createSerializerFor($serialization)));\n }\n }", "title": "" }, { "docid": "c3fa1bf4184e24300415a199768327ef", "score": "0.52840877", "text": "public function test_parse() {\n $this->parse_repetitive_string('c:/looks/like/a/path');\n $this->parse_repetitive_string('http://looks/like/an/url');\n }", "title": "" }, { "docid": "b7c4bc34252cb983627ae9c3b97f8c8c", "score": "0.5282828", "text": "public function testMalformedLinks()\n {\n $sut = new LinkValidator();\n $this->assertFalse($sut->isValid('sdfsdadfasf'));\n $this->assertFalse($sut->isValid('http:'));\n $this->assertFalse($sut->isValid('http//testdomain.com'));\n }", "title": "" }, { "docid": "0f653c72e2cb4e5971124f675f262232", "score": "0.5273604", "text": "public function testGetUrl() {\n\t\t// Get the standard URL with no replacements\n\t\tCore\\Request::setUrl('/index/foo/bar/foobar');\n\t\t$this->assertEquals(Core\\Request::getUrl(), '/index/foo/bar/foobar');\n\n\t\t// And try replacing slashes with underscores\n\t\t$this->assertEquals(Core\\Request::getUrl('_'), '_index_foo_bar_foobar');\n\t}", "title": "" }, { "docid": "a8e0cf5d00cbd2cc372188628f073fbf", "score": "0.52606916", "text": "public function testUnserializeCURLFile()\n {\n $curlFileSerializer = CURLFileSerializer::create(new CURLFile(__DIR__.'/Resources/file.txt'));\n $serialized = serialize($curlFileSerializer);\n $curlFileSerializer = unserialize($serialized);\n\n $this->assertInstanceOf(\n 'GisoStallenberg\\\\CURLFileSerializer\\\\CURLFileSerializer',\n $curlFileSerializer\n );\n }", "title": "" }, { "docid": "f8b1b2ccbc96614d1c951997d14f846b", "score": "0.52477294", "text": "public function testPathRootless()\r\n {\r\n $this->assertParsing(\r\n 'http:this/is/path',\r\n 'http', null, null, null, 'this/is/path', null, null\r\n );\r\n }", "title": "" }, { "docid": "44ecb5127862154795ba4b9e97f4d554", "score": "0.52082986", "text": "public function testUrlInputFactory()\n {\n $input = new InputUrl();\n $input->setUrl('http://www.google.com/testvideo.mp4');\n\n $broadcast = new LiveBroadcast();\n $broadcast->setInput($input);\n\n $inputFactory = InputFactory::loadInputStream($broadcast);\n\n self::assertInstanceOf('Martin1982\\LiveBroadcastBundle\\Streams\\Input\\Url', $inputFactory);\n }", "title": "" }, { "docid": "4635eabbfbde4ec685edd6dd203cceee", "score": "0.5203767", "text": "function rest_is_valid_url( $url, $request = null, $key = null ) {\n\tif ( ! is_string( $url ) || empty( $url ) ) {\n\t\treturn false;\n\t}\n\treturn filter_var( $url, FILTER_VALIDATE_URL );\n}", "title": "" }, { "docid": "ab82dbb356af6c0b4fd75c53828bc48a", "score": "0.5200951", "text": "public function testConstructInvalidContentType() {\n $phalconRequest = $this\n ->getMockBuilder('Phalcon\\Http\\Request')\n ->disableOriginalConstructor()\n ->getMock();\n\n $_SERVER['HTTP_CONTENT_TYPE'] = 'application/xml';\n new \\Maleficarum\\Request\\Request($phalconRequest, 'JsonParser');\n }", "title": "" }, { "docid": "9ef53b36a70f5c65059821d482af762a", "score": "0.5200264", "text": "public function fromJsonMapperShouldThrowExceptionOnInvalidJson()\n {\n $invalidJson = '{\"test: 0}';\n\n $this->expectException(JsonParserException::class);\n $request = Request::fromJson($invalidJson);\n $request->getBasket();\n }", "title": "" }, { "docid": "4c8373d322d83b3a056185bb4799a4f5", "score": "0.51987755", "text": "public function testSerializationWithoutHost()\n {\n $userPictures = new User();\n $this->generateCacheManager('/');\n $this->generateRequestContext(true, true);\n $data = $this->serializeObject($userPictures, [\n 'includeHost' => false,\n 'vichUploaderSerialize' => true,\n 'includeOriginal' => false,\n ]);\n\n static::assertEquals('/a/path/to/an/image1.png', $data['cover']);\n static::assertEquals('/a/path/to/an/image2.png', $data['photo']);\n }", "title": "" }, { "docid": "7613c7e3e11c57f2264bc7c44bc45987", "score": "0.51963764", "text": "public function testTrimmingTheUrlPath(): void {\r\n\r\n $entity = new UrlParser('http://example.com/path/');\r\n $this -> assertEquals($entity -> getTrimmedPath(), 'path/');\r\n }", "title": "" }, { "docid": "608086ceeef3f6a0367b6049d0ec59d2", "score": "0.5175684", "text": "public function testMissingHostname()\n {\n $this->expectException(InvalidUrlException::class);\n $this->expectExceptionMessage('Missing hostname.');\n new Url('/path?q=search');\n }", "title": "" }, { "docid": "ffa1512093ca93bd9f15b93906ac8d92", "score": "0.51734626", "text": "public function testFullUrlIsSetFromUrl()\n {\n $url = 'https://foo.com:8080/bar/baz?dave=young';\n $request = Request::createFromUrl($url, 'GET');\n $this->assertEquals($url, $request->getFullUrl());\n }", "title": "" }, { "docid": "0d7faa1dc46293e7977cb47a04eabefe", "score": "0.5171053", "text": "public function test_parse_file_as_json_error()\n {\n $this->expectException('ErrorException');\n\n parse_file_as_json(public_path('non-existing-file.txt')); \n }", "title": "" }, { "docid": "2eb59f7e8ad10294bd7589f846c6bb70", "score": "0.5155854", "text": "public function testFormat () {\n $g = new Graphite_GraphBuilder();\n $g->field('sample', array('data' => 'sample'));\n $this->assertContains('format=json', $g->url('json'));\n $this->assertContains('format=xml', $g->url('xml'));\n $this->assertContains('format=csv', $g->url('csv'));\n }", "title": "" }, { "docid": "e22b2832fcb65f9a72724a63641de1c0", "score": "0.5133843", "text": "public function testUnsupportedDeserializeData()\n {\n $entityMock = new SerializableMock1();\n $entityMock->deserialize(array(\n 'fake_member' => 'fake_data',\n ));\n }", "title": "" }, { "docid": "5ee8bf8d75727e3dc530ca5d014d98a0", "score": "0.51217604", "text": "public function testCorruptedISBN()\n {\n $response = $this->get('/details', [\"ISBN\"=>\"000\"]);\n\n $response->assertStatus(500);\n }", "title": "" }, { "docid": "1a776e83a2e91985439ded79d41fe523", "score": "0.5107311", "text": "public function testReadWithInvalidJson(): void\n {\n $this->expectException(CakeException::class);\n $this->expectExceptionMessage('Error parsing JSON string fetched from config file `invalid.json`');\n $engine = new JsonConfig($this->path);\n $engine->read('invalid');\n }", "title": "" }, { "docid": "c6dfa18343ba6291bcb3f2b37b42df1b", "score": "0.5104395", "text": "public function testSendNoUrl()\n {\n $this->expectException(NoUrlException::class);\n $this->restClass->get()->send();\n }", "title": "" }, { "docid": "d3eadb9e52d881e6328c955298647ffc", "score": "0.5103455", "text": "public function test_parse_throwsInvalidArgumentException_ifOutputIsNotString()\n\t{\n\t\t$this->setExpectedException('InvalidArgumentException');\n\t\t\n\t\t(new Xml())->parse(999);\n\t\t\n\t\treturn;\n\t}", "title": "" }, { "docid": "299cb8a7d77cf95e9df0e6fb8325416e", "score": "0.50849617", "text": "public function testUnSerializeNonImplemented()\n {\n $this->initializeProxy();\n try {\n $this->proxy->unserialize('');\n } catch (Exception\\MethodNotImplemented $e) {\n return;\n } catch (\\Exception $e) {\n }\n\n $this->fail('Error, the proxy must throw an Exception\\MethodNotImplemented exception when unserialize is not implemented into in actives states');\n }", "title": "" }, { "docid": "53c78346982b997482b151edb9f0ddd9", "score": "0.50724345", "text": "public function testInvalidStreamResource()\n {\n $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage(\"Input is not a stream\");\n new StreamedPart('invalid stream resource');\n }", "title": "" }, { "docid": "52db2753dfba5b2d1c69e837ace67932", "score": "0.50719887", "text": "public function testUrlValidation()\n {\n $this->artisan('download:url', ['url' => 'none'])\n ->expectsOutput('The url format is invalid.')\n ->assertExitCode(400);;\n }", "title": "" }, { "docid": "cf362d704457ce74dc3bdd5714d776ee", "score": "0.5065362", "text": "public function testPathSetFromUrl()\n {\n $request = Request::createFromUrl('http://foo.com/bar', 'GET');\n $this->assertEquals('/bar', $request->getPath());\n }", "title": "" }, { "docid": "57ca53ea78e649eed8e50c45fd76f408", "score": "0.50644046", "text": "public function testPredictableDecoding()\n {\n $decoded = UriGeller::decode($this->encoded, $this->secret);\n $this->assertEquals($decoded, $this->decoded);\n }", "title": "" }, { "docid": "5cd1533a406581fcae294f651752373c", "score": "0.5061759", "text": "public function testGettingNonStandardURL()\n {\n $_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1';\n $_SERVER['SERVER_PORT'] = 8080;\n $_SERVER['SERVER_NAME'] = 'foo.com';\n $_SERVER['REQUEST_URI'] = '/bar';\n $request = Request::createFromGlobals();\n $this->assertEquals('http://foo.com:8080/bar', $request->getFullUrl());\n }", "title": "" }, { "docid": "ad9960d740cbec4f2be4dcef6dd6684f", "score": "0.5061149", "text": "public function setUrl($url)\n {\n if(filter_var($url, FILTER_VALIDATE_URL,FILTER_FLAG_SCHEME_REQUIRED)===$url)\n {\n $this->url=$url;\n return true;\n }\n throw new Exception('URL invalide');\n}", "title": "" }, { "docid": "1c556d78eb3297d933e181d460969e25", "score": "0.5059735", "text": "public function testDataIntegrity()\n {\n $encoded = UriGeller::encode($this->decoded, $this->secret);\n $decoded = UriGeller::decode(\"changed \" . $encoded, $this->secret);\n $this->assertNull($decoded);\n }", "title": "" }, { "docid": "9a88fe4c5951144c8e7b1f5bc6f6d080", "score": "0.5058357", "text": "public function testExample()\n {\n $repository = new UrlTaskRepository();\n $url = 'https://www.cashber.kz/images/logo_main.png?time=' . time();\n $model = $repository->createFromUrl($url);\n $this->assertEquals(TasksTableSeeder::NEW_ID, $model->id);\n $this->assertEquals($url, $model->url);\n }", "title": "" }, { "docid": "67953114d62f5664a1e360196806b4d3", "score": "0.50563586", "text": "public function testCallWithInvalidXml()\n {\n $this->object->call($this->anHttpParam('not a very well formed xml'));\n\n }", "title": "" }, { "docid": "8f7de9afcac8dd37fef27794825c1d71", "score": "0.50517136", "text": "public function testHttpsSerialization()\n {\n $userPictures = new UserPictures();\n $this->generateCacheManager();\n $this->generateRequestContext(true, true);\n $data = $this->serializeObject($userPictures, [\n 'includeHost' => true,\n 'vichUploaderSerialize' => true,\n 'includeOriginal' => true,\n ]);\n\n static::assertEquals('https://example.com:8800/uploads/photo.jpg', $data['photo']);\n static::assertEquals('http://example.com:8800/a/path/to/an/image1.png', $data['cover']['big']);\n static::assertEquals('http://example.com:8800/a/path/to/an/image2.png', $data['cover']['small']);\n static::assertEquals('http://example.com:8800/a/path/to/an/image3.png', $data['photoThumb']['thumb_filter']);\n static::assertEquals('/uploads/photo.jpg', $data['photoThumb']['original']);\n }", "title": "" }, { "docid": "d8c7edc60db820df157eb1a07674427f", "score": "0.50513464", "text": "public function testHasItemThatIsUrl() {\n $this->assertInstanceOf('NYPL\\Bibliophpile\\ListUrl', $this->item->item());\n $this->assertEquals(\n 'http://www.online-literature.com/dickens/olivertwist/', \n $this->item->item()->url());\n }", "title": "" }, { "docid": "a704dad02731b38305eb2ab2f4c71143", "score": "0.50450903", "text": "public function testSerializeNonImplemented()\n {\n $this->initializeProxy();\n try {\n serialize($this->proxy);\n } catch (Exception\\MethodNotImplemented $e) {\n return;\n } catch (\\Exception $e) {\n }\n\n $this->fail('Error, the proxy must throw an Exception\\MethodNotImplemented exception when serialize is not implemented into in actives states');\n }", "title": "" }, { "docid": "ed8962c979cc1a46e4162b939d922cae", "score": "0.5043997", "text": "public function test_url_value() {\n\t\t$field = FrmField::getOne( $this->get_field_key( 'url' ) );\n\t\t$this->assertNotEmpty( $field );\n\n\t\t$this->set_required_field( $field );\n\n\t\t$errors = $this->check_single_value( array( $field->id => 'http://' ) );\n\t\t$this->assertTrue( isset( $errors[ 'field' . $field->id ] ), 'http:// passed required validation ' . print_r( $errors, 1 ) );\n\t}", "title": "" }, { "docid": "be991709f239ba7f3f7012822cf52bbe", "score": "0.504084", "text": "public function testUrlPathInvalidArgumentExceptionIsInvalidArgumentException()\n {\n self::expectException(InvalidArgumentException::class);\n self::expectExceptionMessage('This is a UrlPathInvalidArgumentException.');\n\n throw new UrlPathInvalidArgumentException('This is a UrlPathInvalidArgumentException.');\n }", "title": "" }, { "docid": "ce72dd766c61fb3ae69a4fbf52ade1d9", "score": "0.5029128", "text": "public function testFail()\n {\n $url = TEST_URL . \"/ajax/city/get_images\";\n ob_start();\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_POST, true);\n curl_setopt($ch, CURLOPT_URL, $url);\n $response = curl_exec($ch);\n $this->assertEquals(true, $response);\n $json = ob_get_contents();\n $return = json_decode($json);\n $this->assertEquals('false', $return->success);\n $this->assertEquals('', $return->data);\n ob_end_clean();\n }", "title": "" }, { "docid": "1329a217ac5c8acaa430c45c6b597b67", "score": "0.50285566", "text": "public function testIfURLSettersAreWorking(): void {\r\n\r\n require('assets' . DIRECTORY_SEPARATOR . 'urls.php');\r\n\r\n foreach($urls as $url => $components) {\r\n\r\n $entity = new UrlParser($url);\r\n\r\n foreach($this -> components as $component => $value) {\r\n\r\n $entity -> {'set' . ucfirst($component)}($value);\r\n $this -> assertEquals($entity -> {'get' . ucfirst($component)}(), $value);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "42e2f89bdcd90ba67f34b2fe927f7d29", "score": "0.5017555", "text": "protected function checkUrl()\n {\n if (empty($this->value())) {\n throw new EmptyUrlException();\n }\n if (filter_var($this->value(), FILTER_VALIDATE_URL) === false) {\n throw new InvalidUrlException();\n }\n }", "title": "" }, { "docid": "e5cc5349df20db1ebde82d1e59b2a5b3", "score": "0.5011205", "text": "public function testAddBuildingFileByURL()\n {\n }", "title": "" }, { "docid": "44306a25ca7fdb1e1cfd1af9943fd20e", "score": "0.50090253", "text": "public function testSerializationWithOriginNormalizer()\n {\n $userPictures = new UserPictures();\n $this->generateCacheManager();\n $this->generateRequestContext();\n $data = $this->serializeObject($userPictures, [\n 'includeHost' => false,\n 'vichUploaderSerialize' => true,\n 'includeOriginal' => true,\n 'originUrlNormalizer' => OriginUrlNormalizer::class,\n ]);\n\n static::assertEquals('/uploads/newPhoto.jpg', $data['photoThumb']['original']);\n static::assertEquals('/uploads/newPhoto.jpg', $data['photo']);\n }", "title": "" }, { "docid": "b594d6924045a525a33a47149de40108", "score": "0.5005342", "text": "function is_url($url){\n\t\t$this->zajlib->deprecated(\"Use url->valid() instead.\");\n\t\treturn $this->valid($url);\n\t}", "title": "" }, { "docid": "c8673ea0442d364e233f7be46429d537", "score": "0.50028104", "text": "public function testLoadUnparsableFile()\n {\n // phpcs:disable Generic.PHP.NoSilencedErrors.Discouraged\n $path = $this->getPathToFixture('pass/unparsable.ini');\n $data = @$this->obj->loadFile($path);\n // phpcs:enable\n\n $this->assertEquals([], $data);\n }", "title": "" }, { "docid": "fdc9a14613e131fe8acbbb63eccf381e", "score": "0.49983367", "text": "function invalid_url($url) {\n return filter_var($url, FILTER_VALIDATE_URL) === FALSE;\n}", "title": "" }, { "docid": "f56efd3a0ed09224b73493f97be5c98c", "score": "0.49909866", "text": "public function testAccessControlBadJson(): void\n {\n $mockHandler = new MockHandler([]);\n $client = new Client(\n new GuzzleClient([\n 'handler' => $mockHandler,\n ]),\n new ExceptionHandler()\n );\n $service = new ResponseFactory($client);\n\n $request = new ServerRequest(\n [],\n [],\n null,\n 'POST',\n stream_for('invalid[]')\n );\n\n $this->expectException(InvalidSearchRequestException::class);\n $this->expectExceptionMessage('An exception occurred while trying to decode the json request.');\n\n $service->sendRequest($request);\n }", "title": "" }, { "docid": "dedff78ff3453b4dbea6d23e401c2859", "score": "0.49899167", "text": "public function testIsThereAnySyntaxError()\n {\n $var = new Serializer();\n $this->assertTrue(is_object($var));\n unset($var);\n }", "title": "" }, { "docid": "5f72d53616242802284c1b73248a01d0", "score": "0.49889228", "text": "public function testAttemptingToConstructInstanceWithInvalidStringThrowsException()\n {\n $artistAdapter = new \\MphpMusicBrainz\\Adapter\\Xml\\Result\\ArtistResultAdapter('a random string');\n }", "title": "" }, { "docid": "2c97ff2dfe09a4ba694c8eb5460dfd7a", "score": "0.49850392", "text": "public function testGetContentInvalidJson()\n {\n $body = 'foobar';\n $response = new Response(\n 200,\n array('Content-Type'=>'application/json'),\n \\GuzzleHttp\\Psr7\\Utils::streamFor($body)\n );\n\n $this->assertEquals($body, ResponseMediator::getContent($response));\n }", "title": "" }, { "docid": "9c2a57a083a1d8bdc237d508dbb7675b", "score": "0.49810952", "text": "public function testInvalidEndpoint2()\n\t{\n\t\t$process = new NodeProcess();\n\n\t\t$this->expectException( InvalidArgumentException::class );\n\t\t$process->setAssignedWsEndpointUrl( 'notreal' );\n\t}", "title": "" }, { "docid": "d5654d03c8d5ab90f665634e6e2b97d5", "score": "0.49768096", "text": "public function testExceptionThrownWithInvalidNumberSegments()\n {\n $this->expectException(InvalidArgumentException::class);\n SignedJwt::createFromString('foo.bar');\n }", "title": "" }, { "docid": "1d21ac8cf429aa4d0ebe92428a93bc62", "score": "0.4974551", "text": "public function testGetUri(): void\n {\n $uri = (new Request())->getUri();\n\n $this->assertIsObject($uri);\n }", "title": "" }, { "docid": "27150a9b42246a66d7b82fcf47f26420", "score": "0.4973112", "text": "public function testGetUri() {\n $phalconRequest = $this\n ->getMockBuilder('Phalcon\\Http\\Request')\n ->getMock();\n\n $request = new \\Maleficarum\\Request\\Request($phalconRequest, 'JsonParser');\n\n $this->assertSame('', $request->getUri());\n }", "title": "" }, { "docid": "1fcf7109e759567198d20757c3773500", "score": "0.49668965", "text": "public function testParseMethodReturnPatternLikeString()\n {\n $mock = $this->createMock(\\Gomail\\Routing\\Parser\\ParseParamsFromURL::class);\n $mock->method('parse')->willReturn(['([0-9]+)']);\n $this->assertIsArray($mock->parse(['{id}']));\n }", "title": "" }, { "docid": "0bb99cb24ef9fc6bd31f9b9c861a3e40", "score": "0.4964907", "text": "public function __construct() {\n // the fourth arg is forceLang and if left to default (true) then the url is malformed - core bug as of 1.3.0\n }", "title": "" }, { "docid": "9edc32ecd43ab54a35cc511a3221cce5", "score": "0.49645856", "text": "public function testSerializationWithHostAndHostForOriginal()\n {\n $userPictures = new UserPictures();\n $this->generateCacheManager();\n $this->generateRequestContext(true, true);\n $data = $this->serializeObject($userPictures, [\n 'includeHost' => true,\n 'vichUploaderSerialize' => true,\n 'includeOriginal' => true,\n 'includeHostForOriginal' => true,\n ]);\n\n static::assertEquals('https://example.com:8800/uploads/photo.jpg', $data['photo']);\n static::assertFalse(strpos($data['cover']['original'], 'https://example.com:8800'));\n static::assertEquals('https://example.com:8800/uploads/photo.jpg', $data['photoThumb']['original']);\n }", "title": "" }, { "docid": "fb238f78465900b25ba5726bbb6fb69f", "score": "0.49577338", "text": "public function testProxySerialization()\n {\n $userPictures = new UserPictures();\n $this->generateCacheManager();\n $this->generateRequestContext(false, true);\n $this->eventManager->addEventListeners($this->requestContext, $this->cacheManager, $this->vichStorage);\n $data = $this->serializeObject($userPictures);\n\n static::assertEquals('http://example.com:8800/a/path/to/an/image1.png', $data['cover']['big']);\n static::assertEquals('http://example.com:8800/a/path/to/an/image2.png', $data['cover']['small']);\n static::assertEquals('http://example.com:8000/uploads/photo.jpg', $data['photo']);\n static::assertEquals('http://example.com:8800/a/path/to/an/image3.png', $data['photoThumb']);\n }", "title": "" }, { "docid": "215d65ef5a209f1a921464aca4d30a36", "score": "0.49562445", "text": "public function testLoad_BadInput()\n\t{\n\t\t$form = new JFormInspector('form1');\n\n\t\t$this->assertThat(\n\t\t\t$form->load(123),\n\t\t\t$this->isFalse(),\n\t\t\t'Line:' . __LINE__ . ' A non-string should return false.'\n\t\t);\n\n\t\t$this->assertThat(\n\t\t\t$form->load('junk'),\n\t\t\t$this->isFalse(),\n\t\t\t'Line:' . __LINE__ . ' An invalid string should return false.'\n\t\t);\n\n\t\t$this->assertThat(\n\t\t\t$form->getXml(),\n\t\t\t$this->isNull(),\n\t\t\t'Line:' . __LINE__ . ' The internal XML should be false as returned from simplexml_load_string.'\n\t\t);\n\n\t\t$this->assertThat(\n\t\t\t$form->load('<notform><test /></notform>'),\n\t\t\t$this->isTrue(),\n\t\t\t'Line:' . __LINE__ . ' Invalid root node name from string should still load.'\n\t\t);\n\n\t\t$this->assertThat(\n\t\t\t$form->getXml()->getName(),\n\t\t\t$this->equalTo('form'),\n\t\t\t'Line:' . __LINE__ . ' The internal XML should still be named \"form\".'\n\t\t);\n\n\t\t// Test for irregular object input.\n\n\t\t$form = new JFormInspector('form1');\n\n\t\t$this->assertThat(\n\t\t\t$form->load(simplexml_load_string('<notform><test /></notform>')),\n\t\t\t$this->isTrue(),\n\t\t\t'Line:' . __LINE__ . ' Invalid root node name from XML object should still load.'\n\t\t);\n\n\t\t$this->assertThat(\n\t\t\t$form->getXml()->getName(),\n\t\t\t$this->equalTo('form'),\n\t\t\t'Line:' . __LINE__ . ' The internal XML should still be named \"form\".'\n\t\t);\n\t}", "title": "" }, { "docid": "4873d128e2ce9f127d89ad8e3a274e8b", "score": "0.49550036", "text": "public function testLineUpInvalidDateSupplied()\n {\n $this->withoutExceptionHandling();\n\n $response = $this->get('/api/line-up/asdfasdf/kfm');\n\n $response->assertStatus(422);\n }", "title": "" }, { "docid": "555f0549521ae5c5603ea78fe3985535", "score": "0.49487156", "text": "public function test_requests() {\n $this->assertTrue( is_string( yourls_http_get( 'http://10.0.0.666/' ) ) );\n }", "title": "" }, { "docid": "a49e85293e58ec095c0b8538487737c5", "score": "0.49486816", "text": "public function __construct($url, $isAbsolute = true)\n {\n if ($isAbsolute) {\n if (!preg_match(self::ABS_URL_REGEXP, $url)) {\n throw new UrlFormatException(Messages::urlMalformedUrl($url));\n }\n } else {\n if (!preg_match(self::REL_URL_REGEXP, $url)) { //TODO: this matches EVERYTHING!!! what's the intent here? see #77\n throw new UrlFormatException(Messages::urlMalformedUrl($url));\n }\n }\n\n $this->_parts = parse_url($url);\n if ($this->_parts === false) {\n throw new UrlFormatException(Messages::urlMalformedUrl($url));\n }\n \n $path = $this->getPath(); \n if ($path != null) {\n $this->_segments = explode('/', trim($path, '/'));\n foreach ($this->_segments as $segment) {\n $segment = trim($segment);\n if (empty($segment)) {\n throw new UrlFormatException(Messages::urlMalformedUrl($url));\n }\n }\n }\n\n $this->_urlAsString = $url;\n }", "title": "" }, { "docid": "0b76be2143d78a9707ecba05f5190798", "score": "0.4947778", "text": "public function testCreateInstanceWithParams()\n {\n $object = RequestUri::getInstance(RequestUriTest::URL);\n $this->assertInstanceOf(RequestUri::class, $object);\n\n return $object;\n }", "title": "" }, { "docid": "0991639bcfa1beab8108cfa83fdfb9b6", "score": "0.49467713", "text": "public function testAddWarehouseFileByURL()\n {\n }", "title": "" }, { "docid": "22a3fa66db5ca11e5b3defdc14bcee0c", "score": "0.494204", "text": "public function testIfURLGettersAreWorking(): void {\r\n\r\n require('assets' . DIRECTORY_SEPARATOR . 'urls.php');\r\n\r\n foreach($urls as $url => $components) {\r\n\r\n $entity = new UrlParser($url);\r\n\r\n foreach($components as $component => $value) {\r\n $this -> assertEquals($entity -> {'get' . ucfirst($component)}(), $value);\r\n }\r\n }\r\n }", "title": "" } ]
9652e1461f80b5007ed0972918c9805c
Set all the table column values at once
[ { "docid": "012872698156ec4a4b8f58871e353b09", "score": "0.0", "text": "public function setColumns($columns = null)\n {\n if (null !== $columns) {\n if (is_array($columns) || ($columns instanceof \\ArrayObject)) {\n $this->rowGateway->setColumns((array)$columns);\n } else if ($columns instanceof AbstractRecord) {\n $this->rowGateway->setColumns($columns->toArray());\n } else if (($columns instanceof \\ArrayAccess) && method_exists($columns, 'toArray')) {\n $this->rowGateway->setColumns($columns->toArray());\n } else {\n throw new Exception('The parameter passed must be an arrayable object.');\n }\n }\n\n return $this;\n }", "title": "" } ]
[ { "docid": "d571648596b31f301d3c6063cb52470f", "score": "0.7440256", "text": "abstract protected function set_columns();", "title": "" }, { "docid": "a48f120d53e03d752ed47680c8171ac6", "score": "0.70489335", "text": "public function setColumns();", "title": "" }, { "docid": "18bb86064a913a0de4c005ff6a550df2", "score": "0.692798", "text": "public function autosetColumns()\n {\n $value = $this->value;\n if (empty($this->columns)) {\n $dataValue = $value;\n if (count($dataValue)) {\n $firstValue = (array) $dataValue[0];\n foreach (array_keys($firstValue) as $header) {\n $this->addColumn($header);\n }\n }\n }\n }", "title": "" }, { "docid": "faabcaaba5e00aeca69c8aed522a38c4", "score": "0.6789911", "text": "public function setColumnMapping()\n {\n // and store them in the array\n $columns = Schema::getColumnListing($this->table);\n $i = 0;\n while ($i < (sizeof($columns))) {\n array_push($this->mapping, $columns[$i]);\n $i++;\n }\n\t\t//dd($columns);\n }", "title": "" }, { "docid": "deb16d21176196253ef65486fe4ddd15", "score": "0.6733252", "text": "public function _setTableAttributes() {\n\t\t\n $this->_query ='SHOW COLUMNS FROM '.$this->_tableName;\n $result = $this->_db->query($this->_query);\n $column_names =array();\n while($row = $result->fetch_assoc()){\n $this->{$row['Field']} =null;\n $column_names[] = $row['Field'];\n }\n return $column_names;\n }", "title": "" }, { "docid": "010bd5abbcf183e5b7acb6e58bbbeb41", "score": "0.65567285", "text": "protected function setColumnProperties()\n {\n // First of all, add the id (or any other primary key), if not available\n if (! $this->requestedColumns->contains('name', $this->primaryColumn)) {\n $this->selectColumns[] = $this->primaryColumn;\n }\n\n $this->requestedColumns->each(function ($column) {\n $this->setColumnPropertiesFor($column);\n });\n }", "title": "" }, { "docid": "b6319f87ee6e9840823be0eaeb29697d", "score": "0.6530354", "text": "private function setTableData() {\n $dataTable = new database\\gentable\\Data();\n $arrData = $dataTable->getDataTable($this->tableName);\n $this->pkName = $arrData['pk'];\n $this->arrFieldsTable = $arrData['fields'];\n }", "title": "" }, { "docid": "180e82448d420ab0335ed03618b6ab52", "score": "0.6518094", "text": "public function setValues()\n {\n $fields = Field::find()\n ->select('id,name,title,type_id,is_multilingual,is_active')\n ->with('fieldValue')\n ->with(['fieldValues' => function ($query) {\n return $query->indexBy('language');\n }])\n ->with(['fieldType' => function ($query) {\n return $query->select('id,name,is_file_upload');\n }])\n ->indexBy('name')\n ->asArray()\n ->all();\n $this->_values = $fields;\n }", "title": "" }, { "docid": "53fb30abbf9b36c47c94ca82867d08ab", "score": "0.6298447", "text": "public function fillDefaultValues()\n {\n foreach($this->table_desc as $field_name => $field_desc)\n {\n if($this->hasDefaultValue($field_name) && $this->isEmpty($this->$field_name))\n $this->$field_name = $this->getDefaultValue($field_name);\n }\n }", "title": "" }, { "docid": "4d24ec8b416df4a80a4c83b078e6f7a0", "score": "0.6206651", "text": "public function SetColumn( $fieldlist ) {\r\n\r\n\t\t$this->m_columns = array( );\r\n\t\t$this->m_values = array( );\r\n\r\n\t\t$this->m_columns[]= $fieldlist;\r\n\r\n\t}", "title": "" }, { "docid": "462ff261607b3410d59fbcc228510ca7", "score": "0.6133313", "text": "function set_tbl_row($i_strTable, $i_arrDataValues) {\n $sqldata = \"SET \";\n $blnStarted = FALSE;\n reset($i_arrDataValues);\n while (list($col, $val) = each($i_arrDataValues)) {\n if (isset($col)) {\n if ($blnStarted) { $sqldata .= \", \"; }\n if (isset($val)) {\n $sqldata .= $col . \" = \" . $this->quote_smart($val);\n } else {\n $sqldata .= $col . \" = NULL\";\n }\n $blnStarted = TRUE;\n }\n }\n $strSQL = \"UPDATE $i_strTable \" . $sqldata .\n \" WHERE id = \" . $this->get_allianceid();\n//echo \"SQL:\\\"$strSQL\\\"<BR>\";\n $result = mysql_query ($strSQL) or die(\"set_tbl_data:\" . mysql_error() );\n }", "title": "" }, { "docid": "26fe29eb0520724334fd20053815198d", "score": "0.6121848", "text": "public function setValues($table, array $keys, array $values, array $updatePreconditionValues = []);", "title": "" }, { "docid": "a045e3e5c2a451c07d5417bfcc5f7f41", "score": "0.60681784", "text": "public function initialize_columns()\n {\n $helper_class = $this->get_table()->get_helper_class_name();\n \n foreach ($helper_class::get_table_columns() as $column)\n {\n $this->add_column($column);\n }\n }", "title": "" }, { "docid": "af0087be08c08a26928eba7ca9085d6a", "score": "0.605523", "text": "protected function resetColumn(){\n\t\t$this->default = null;\n\t\t$this->nullable = null;\n\t\t$this->length = null;\n\t\t$this->name = null;\n\t\t$this->onupdate = null;\n\t\t$this->comment = null;\n\t\t$this->type = 'INTEGER';\n\t}", "title": "" }, { "docid": "0e661a36d927d188e6fa7090f7100938", "score": "0.6043299", "text": "function set_values() {\n\t\tparent::set_values();\n\t}", "title": "" }, { "docid": "736e7fe9853efa71e9a772bebb5e0101", "score": "0.60275686", "text": "public function setValues($params = array()):EasyQueryBuilder{\n //and value represent the value to be set to the column while updating the table\n $this->values = $params;\n return $this;\n }", "title": "" }, { "docid": "85f93778cc05d508e23afb2a67c5c47b", "score": "0.6026119", "text": "function setUpdatedColumnMode($table){\n $this->addTableForDeleted();\n $this->addColumns($table);\n $this->addTriggers($table);\n }", "title": "" }, { "docid": "0d80c949a548ed58a8db638174412a41", "score": "0.6022223", "text": "function set_table( $val ){\n $this->table = $val;\n $this->structure = null;\n\t\t\t}", "title": "" }, { "docid": "ee80a52abead92db04d7015855cb4cf1", "score": "0.6018622", "text": "public function setColumnValueOnScaffold() {\r\n\t\t$this->scaffold->columnValues[$this->column] = $this->getValue();\r\n\t}", "title": "" }, { "docid": "2b11c7be0f607a68cae2901b6d0dfbe7", "score": "0.60163283", "text": "public function setData($data)\n\t{\n\t\tforeach ($data as $name => $value)\n\t\t{\n\t\t\t$name = explode('_', $name);\n\n\t\t\t$column = '';\n\t\t\tforeach ($name as $key)\n\t\t\t{\n\t\t\t\t$column .= ucwords($key);\n\t\t\t}\n\n\t\t\tcall_user_func(array($this, 'set' . $column), $value);\n\t\t}\n\t}", "title": "" }, { "docid": "afb8f98ef4b93c1bdd6ba74a053af9e0", "score": "0.5995021", "text": "public function set_multiple( $data ) {\n\t\tif ( ! is_array( $data ) ) {\n\t\t\treturn;\n\t\t}\n\t\tforeach ( $data as $col => $datum ) {\n\t\t\t$this->$col = $datum;\n\t\t}\n\t}", "title": "" }, { "docid": "c0ef10d520852bae459367434344016b", "score": "0.5943602", "text": "public function pushValuesToDB()\n\t{\n\t\t$row = $this->getRowDictionary();\n\t\tunset($row[$this->pk_name]); //we don't want to change the ID\n\t\t$this->db->editRow(\n\t\t\t$this->table_model->getTableName(),\n\t\t\t$this->pk_name,\n\t\t\t$this->getPrimaryKey(),\n\t\t\t$row);\n\t}", "title": "" }, { "docid": "fa7b96a7d4b1e4b16bfe4ae7c67c57b5", "score": "0.5864131", "text": "function setEntireCol($x){\n\tfor($i = 1; $i < $rows; $i ++){\n\t\t$column[$i] = getCellValue($i, $x);\n\t}\n\n}", "title": "" }, { "docid": "31ec00d9f174e42735eabe7ba46757d1", "score": "0.5848075", "text": "private function _loadColumns(): void {\n\t\t$pool = $this->application->cacheItemPool();\n\t\t$table = $this->table;\n\n\t\ttry {\n\t\t\t$cacheItem = $pool->getItem(__CLASS__ . \"::column_cache::$table\");\n\t\t\tif ($cacheItem->isHit()) {\n\t\t\t\t$this->table_columns = $cacheItem->get();\n\t\t\t\treturn;\n\t\t\t}\n\t\t} catch (InvalidArgumentException) {\n\t\t\t$cacheItem = null;\n\t\t}\n\n\t\ttry {\n\t\t\t$columns = $this->database()->tableColumns($this->table);\n\t\t\t$this->table_columns = [];\n\t\t\tforeach ($columns as $object) {\n\t\t\t\t$name = $object->name();\n\t\t\t\t$this->table_columns[$name] = $object->sql_type();\n\t\t\t}\n\t\t\tif ($cacheItem) {\n\t\t\t\t$pool->saveDeferred($cacheItem->set($this->table_columns));\n\t\t\t}\n\t\t} catch (BaseException $e) {\n\t\t\tif ($cacheItem) {\n\t\t\t\ttry {\n\t\t\t\t\t$pool->deleteItem($cacheItem->getKey());\n\t\t\t\t} catch (InvalidArgumentException) {\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthrow new Semantics('No database table columns for {table}', ['table' => $table], 0, $e);\n\t\t}\n\t}", "title": "" }, { "docid": "23a81cbfb0afea332fbd348071712b2c", "score": "0.5836444", "text": "function setAutocolumn(){\n if( $this->belongsto != \"\" ){\n $alias = $this->columnname;\n $alias = preg_replace( \"/_id$/\", \"\", $alias );\n $c = $alias.\"_\";\n $a = array();\n foreach( preg_split( \"/,/\", $this->listby ) as $l ){ // OK\n $a[] = $c.$l;\n }\n $this->autocolumn = $a;\n }else{\n $this->autocolumn = array();\n }\n }", "title": "" }, { "docid": "6b62161a66f15eae786db9a1d422d317", "score": "0.58310103", "text": "function set_tbl_data($i_strTable, $i_strFieldName, $i_DataValue) {\n $strSQL = \"UPDATE $i_strTable \" .\n \" SET $i_strFieldName = \" . $this->quote_smart($i_DataValue) .\n \" WHERE id = \". $this->get_allianceid();\n//echo \"SQL:\\\"$strSQL\\\"<BR>\";\n $result = mysql_query ($strSQL) or die(\"set_tbl_data:\" . mysql_error() );\n }", "title": "" }, { "docid": "ae7ee51e6b92cc5ddb70f3e1802d984f", "score": "0.5817343", "text": "public function setColumns(array $columns);", "title": "" }, { "docid": "08a20b7c9ae6372d78b3f8d56bd17273", "score": "0.5800292", "text": "public function set($columns = [])\n {\n if (empty($columns))\n return $this;\n\n $setted = $this->specialize();\n $setted->restrict_to(self::UPDATE, true);\n\n $tag_prefix = \"__set{$this->_height}\";\n\n $setted->set = [];\n foreach ($columns as $name => $value) {\n $field_name_tag = \"{{$tag_prefix}_$name}\";\n $setted->arguments[$field_name_tag] = $name;\n if (is_null($value)) {\n $field_value_tag = \"{{$tag_prefix}_{$name}_value}\";\n $setted->arguments[$field_value_tag] = 'NULL';\n } else {\n $field_value_tag = \":{$tag_prefix}_{$name}_value\";\n $setted->arguments[$field_value_tag] = $value;\n }\n $setted->set[] = \"$field_name_tag = $field_value_tag\";\n }\n $setted->set = 'SET ' . join(', ', $setted->set);\n\n return $setted;\n }", "title": "" }, { "docid": "137f1bab2674d063cea8e595e127d080", "score": "0.5788521", "text": "function setColumns($cols) {\n\t\t$this->cols = $cols;\n\t}", "title": "" }, { "docid": "f876ea81eb39f1917ff6c9fc9b14b4be", "score": "0.57846385", "text": "public function setColumnData($data)\n\t{\n\t\t$this->column_data = $data;\n\t\t$this->column_data['date_created'] = strtotime($data['date_created']);\n\t}", "title": "" }, { "docid": "e2829a7a5348ae06908277fdc2062bc0", "score": "0.5764983", "text": "private function _columnDefaults(): void {\n\t\tforeach (array_keys($this->column_types) as $column) {\n\t\t\tif (array_key_exists($column, $this->column_defaults)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$this->column_defaults[$column] = $this->_memberDefault($column);\n\t\t}\n\t}", "title": "" }, { "docid": "0d70d42b86a84804d1356940bf338f52", "score": "0.5749224", "text": "public function setData(string $table, $data);", "title": "" }, { "docid": "9de14b02120f60d5dc61358edd752419", "score": "0.5736605", "text": "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setTabla('');\n $this->setId_pau('');\n $this->setId_tipo_dossier('');\n $this->setF_ini('');\n $this->setF_camb_dossier('');\n $this->setStatus_dossier('');\n $this->setF_status('');\n $this->setPrimary_key($aPK);\n }", "title": "" }, { "docid": "9b097842a50aff19e222b38271e0e646", "score": "0.57087964", "text": "public function set_cols($cols=\"*\"){\r\n try{\r\n // if array provided\r\n if(is_array($cols)){\r\n $cols = implode(\",\",$cols);\r\n }\r\n\r\n\r\n $cols = trim($cols);\r\n $generated_cols = \"\";\r\n $check = substr_count($cols,\",\",0);\r\n\r\n // if one parameter is passed\r\n if($check == 0){\r\n // check if its the universal selector\r\n if($cols == \"*\"){\r\n $generated_cols = \"*\";\r\n }else{\r\n $table = $this->get_table();\r\n\r\n // if theres no table set\r\n if(is_null($table)){\r\n\r\n if(!$this->is_field($cols)){\r\n throw new Exception(\"' \".$cols.\" ' is not a field in any table the database\", 1);\r\n }\r\n\r\n }else{\r\n\r\n if(!$this->field_in_table($cols,$table)){\r\n throw new Exception(\"' \".$cols.\" ' is not a field in ' \".$table.\" '\", 1); \r\n }\r\n\r\n }\r\n $generated_cols = $cols;\r\n }\r\n\r\n }\r\n\r\n\r\n // if two or more cols are passed\r\n\r\n if($check > 0){\r\n $cols = explode(\",\",$cols);\r\n $cols_num = count($cols);\r\n $divider = \",\";\r\n $counter = 0;\r\n\r\n foreach($cols as $col){\r\n $col = trim($col);\r\n $counter ++;\r\n\r\n $table = $this->get_table();\r\n\r\n // if theres no table set\r\n if(is_null($table)){\r\n\r\n if(!$this->is_field($col)){\r\n throw new Exception(\"' \".$col.\" ' is not a field in any table the database\", 1);\r\n }\r\n\r\n }else{\r\n\r\n if(!$this->field_in_table($col,$table)){\r\n throw new Exception(\"' \".$col.\" ' is not a field in ' \".$table.\" '\", 1); \r\n }\r\n\r\n }\r\n if($counter == $cols_num){\r\n $divider = \"\";\r\n }\r\n $generated_cols .=$col.$divider;\r\n }\r\n\r\n }\r\n\r\n\r\n\r\n $this->cols = $generated_cols;\r\n return true;\r\n\r\n\r\n\r\n }catch( Exception $e ) {\r\n $message = $e->getMessage();\r\n \r\n die( $message );\r\n }\r\n\r\n\r\n}", "title": "" }, { "docid": "aee5a3ded273d822d68ad0b89f63f019", "score": "0.570605", "text": "public function setValues()\n {\n $this->values = [\n $this->first_name,\n $this->last_name\n ];\n }", "title": "" }, { "docid": "5ee2cd55ff84567efef6af2b46ce1065", "score": "0.57011193", "text": "private function setShowTableData()\n\t{\n\t\t$final_coloumn_list \t\t\t= $this->getTableColumnList();\n\t\tif(count($final_coloumn_list)){\n\t\t\t$all_data \t\t\t\t\t= $this->generateTableData($final_coloumn_list);\n\t\t\t$this->show_table_data \t\t= $all_data;\n\t\t\t$extra_fields \t\t\t\t= array_diff_key($this->extra_coloumn,$final_coloumn_list);\n\t\t\t$view_final_coloumn_list \t= array_merge($extra_fields,$final_coloumn_list);\n\t\t\t$this->show_table_coloumns \t= $this->action_type == \"list\" ? $final_coloumn_list :$view_final_coloumn_list;\n\t\t}else{\n\t\t\tabort(403, 'No coloumn found');\n\t\t}\n\t}", "title": "" }, { "docid": "5f9722d7a90e042e75ae144d6570faad", "score": "0.56959724", "text": "public function setTable(string $table): void\n\t{\n\t\t// Set the table\n\t\t$this->table = $table;\n\n\t\t// Queries may be added before a table has been set\n\t\t// If no table was set, set the pending table\n\t\tif (isset($this->pending['column']['SPECIAL_T_B_C']))\n\t\t{\n\t\t\t$this->pending['column'][$table] = $this->pending['column']['SPECIAL_T_B_C'];\n\n\t\t\tunset($this->pending['column']['SPECIAL_T_B_C']);\n\t\t}\n\t}", "title": "" }, { "docid": "1be22fb3ceb1b0ff509bb456eee74479", "score": "0.56437284", "text": "private function DbColumns(){\n\n $this->user_table_columns = explode(',', extras::USER_TB);\n $this->nazaac_property_registration_columns = explode(',', extras::NAZAC_PROPERTY_REGISTRATION_COLUMN);\n $this->property_type_table_columns = explode(',', extras::PROPERTY_TYPE_TABLE_COLUMNS);\n $this->property_listing_table_column = explode(',',extras::PROPERTY_LISTING_TABLE_COLUMN);\n $this->setup_table_column = explode(',',extras::SETUP_TABLE_COLUMN);\n $this->property_location_table_column = explode(',',extras::LOCATION_TABLE_COLUMN);\n $this->property_category_table_column = explode(',',extras::PROPERTY_CATEGORY_TABLE_COLUMN);\n $this->payment_mood_columns = explode(',',extras::PAYMENT_MOOD_TABLE_COLUMN);\n $this->booked_property_columns = explode(',',extras::BOOKED_PROPERTY_TABLE_COLUMNS);\n\n }", "title": "" }, { "docid": "406d18b4bc3f012ec08dfbbc7006bc6a", "score": "0.5640692", "text": "protected function resetFieldValues()\n {\n if (EncryptHelper::getAadSource() === \"ID\") {\n $db = $this->config()->db;\n foreach ($this->record as $k => $v) {\n $dbClass = $db[$k] ?? null;\n if ($dbClass && EncryptHelper::isEncryptedDbClass($dbClass)) {\n $this->dbObject($k)->setValue($v);\n }\n }\n }\n }", "title": "" }, { "docid": "2ef7150dc8a349d48e36a7b70f14b0a3", "score": "0.562813", "text": "final public function _initializeColumnTypes(): void {\n\t\tif (count($this->column_types) === 0) {\n\t\t\t$this->dynamic_columns = true;\n\t\t} elseif (!$this->dynamic_columns) {\n\t\t\treturn;\n\t\t}\n\t\t/* Loaded already or initialized already */\n\t\tif (count($this->table_columns) !== 0) {\n\t\t\treturn;\n\t\t}\n\t\t/* Loaded already or initialized already */\n\t\tif (count($this->column_types) > 0 && count($this->primary_keys) === 0) {\n\t\t\tthrow new Semantics('No support for database synchronized column without primary_keys defined {class}', ['class' => get_class($this)]);\n\t\t}\n\t\t$this->_loadColumns();\n\t\tif (count($this->column_types) === 0 && count($this->table_columns) > 0) {\n\t\t\t$this->_implyColumnTypes();\n\t\t}\n\t}", "title": "" }, { "docid": "f561c748d80d1ddcfd983d3bd752f248", "score": "0.56075734", "text": "public function __set($key, $value)\n {\n $this->columns[$key] = $value;\n }", "title": "" }, { "docid": "9a3385d42ad9f102514aa0d740b985c4", "score": "0.5606619", "text": "private function _setCellArrayValues() {\n static::$CellArrayValues [] = $this->cellValue;\n \n }", "title": "" }, { "docid": "8d0420eda59a25fa83dec826a1578fe0", "score": "0.5599114", "text": "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_usuario('');\n $this->setUsuario('');\n $this->setPassword('');\n $this->setEmail('');\n $this->setId_pau('');\n $this->setNom_usuario('');\n $this->setId_role('');\n $this->setPrimary_key($aPK);\n }", "title": "" }, { "docid": "3c3de2daf70601dc76fd053d6720c6cb", "score": "0.5593656", "text": "public function setData($data)\n\t{\n\t\tif ( ! empty($data))\n\t\t{\n\t\t\t$this->data = array();\n\n\t\t\t// Default settings for columns\n\t\t\t$defaults = array(\n\t\t\t\t'type'\t\t=> self::COL_TEXT,\n\t\t\t\t'encode'\t=> FALSE\n\t\t\t);\n\n\t\t\t$this->config['total_rows'] = 0;\n\n\t\t\t// Normalize the table data for plugging into table view\n\t\t\tforeach ($data as $heading => $rows)\n\t\t\t{\n\t\t\t\tif ($this->config['subheadings'] === FALSE)\n\t\t\t\t{\n\t\t\t\t\t$rows = array($rows);\n\t\t\t\t}\n\n\t\t\t\tforeach ($rows as $row)\n\t\t\t\t{\n\t\t\t\t\t// Make sure we have the same number of columns in the row\n\t\t\t\t\t// as was set using setColumns\n\t\t\t\t\tif (array_key_exists('columns', $row))\n\t\t\t\t\t{\n\t\t\t\t\t\t$count = count($row['columns']);\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$count = count($row);\n\t\t\t\t\t}\n\t\t\t\t\tif ($count != count($this->columns))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new \\InvalidArgumentException('Data must have the same number of columns as the set columns.');\n\t\t\t\t\t}\n\n\t\t\t\t\t$attrs = array();\n\n\t\t\t\t\tif (count(array_diff(array_keys($row), array('attrs', 'columns'))) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$attrs = $row['attrs'];\n\t\t\t\t\t\t$row = $row['columns'];\n\t\t\t\t\t}\n\n\t\t\t\t\t$i = 0;\n\t\t\t\t\t$data_row = array();\n\n\t\t\t\t\tforeach ($row as $item)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Get the settings for this column, we'll set some on\n\t\t\t\t\t\t// cell for easy access by the view\n\t\t\t\t\t\t$col_settings = array_values(array_slice($this->columns, $i, 1));\n\n\t\t\t\t\t\t// Normal cell content\n\t\t\t\t\t\tif ( ! is_array($item))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$settings = array(\n\t\t\t\t\t\t\t\t'content' \t=> $item,\n\t\t\t\t\t\t\t\t'type' \t\t=> $col_settings[0]['type'],\n\t\t\t\t\t\t\t\t'encode' \t=> $col_settings[0]['encode']\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t$data_row[] = array_merge($defaults, $settings);\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$settings = array_merge($defaults, $item);\n\t\t\t\t\t\t\t$settings['type'] = $col_settings[0]['type'];\n\n\t\t\t\t\t\t\tif ($settings['type'] == self::COL_TEXT)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$settings['encode'] = $col_settings[0]['encode'];\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$data_row[] = array_merge(array('content' => ''), $settings);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Validate the some of the types\n\t\t\t\t\t\tswitch ($settings['type'])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcase self::COL_CHECKBOX:\n\t\t\t\t\t\t\t\tif ( ! isset($settings['name']) OR ! isset($settings['value']))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthrow new \\InvalidArgumentException('Checkboxes require a name and value.');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase self::COL_TOOLBAR:\n\t\t\t\t\t\t\t\tif ( ! isset($settings['toolbar_items']))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthrow new \\InvalidArgumentException('No toolbar items set for toolbar column type.');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$i++;\n\t\t\t\t\t}\n\n\t\t\t\t\t$data_row = array(\n\t\t\t\t\t\t'attrs'\t\t=> $attrs,\n\t\t\t\t\t\t'columns'\t=> $data_row\n\t\t\t\t\t);\n\n\t\t\t\t\t// Group by subheading only if there is no search criteria,\n\t\t\t\t\t// we drop the headings when showing search results\n\t\t\t\t\tif ($this->config['subheadings'] && empty($this->config['search']))\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->data[$heading][] = $data_row;\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$this->data[] = $data_row;\n\t\t\t\t\t}\n\n\t\t\t\t\t$this->config['total_rows']++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If this table is not paginated, handle sorting automatically\n\t\t\tif ($this->config['autosort'])\n\t\t\t{\n\t\t\t\t$this->sortData();\n\t\t\t}\n\n\t\t\t// Handle search with a simple strpos()\n\t\t\tif ($this->config['autosearch'])\n\t\t\t{\n\t\t\t\t$this->searchData();\n\t\t\t}\n\n\t\t\t// Apply pagination after search\n\t\t\tif ($this->config['autosort'] && $this->config['limit'] != 0)\n\t\t\t{\n\t\t\t\t$offset = ($this->config['page'] - 1) * $this->config['limit'];\n\n\t\t\t\t$this->data = array_slice($this->data, $offset, $this->config['limit']);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3dbb81f4b15129bc136e1a48de281c22", "score": "0.55836374", "text": "private function adjust_values(){\n\n // If no SEO name, and model is updateable\n if ( $this->is_updateable() &&\n\n $this->has_column('seo_name') && ( $this->array_values['seo_name'] != $this->seo_name())){\n\n $this->array_values['seo_name'] = $this->seo_name();\n\n $this->put('Update to refresh SEO name');\n }\n\n // Is a Unique Object Id used but not present\n if ( $this->has_column('unique_object_id') && ! $this->array_values['unique_object_id']){\n\n // Set a Unique Object Id\n $this->array_values['unique_object_id'] = (string) new Unique_Object_Id();\n\n $this->put('Setting Unique Object Id');\n\n }\n\n\n\n }", "title": "" }, { "docid": "0d42f57897aa446e539322b937400cbc", "score": "0.55749327", "text": "public function __set($column, $value) {\n if(array_key_exists($column, $this->castedAttributes)) {\n // unset casted value to generate new value next time\n unset($this->castedAttributes[$column]);\n }\n $this->attributes[$column] = static::get_decasted_value($column, $value);\n }", "title": "" }, { "docid": "fa69c96ad8170c5471930c7fe9c3f9b5", "score": "0.55690014", "text": "public function setValues( $values){}", "title": "" }, { "docid": "9e66f2fcf63b2bae1b2b493f4d7745ef", "score": "0.556595", "text": "public function fill($data)\n {\n $this->data = $data;\n\n $this->value = Arr::get($data, $this->column, $this->value);\n\n $this->formatValue();\n }", "title": "" }, { "docid": "42592ccf33771b5e8f12a204458d89ae", "score": "0.55614716", "text": "public function setData($dataArr) {\n foreach (array_keys($dataArr) as $colName) {\n if ($this->hasCol($colName)) {\n $this->row[$colName] = $dataArr[$colName];\n }\n }\n }", "title": "" }, { "docid": "42592ccf33771b5e8f12a204458d89ae", "score": "0.55614716", "text": "public function setData($dataArr) {\n foreach (array_keys($dataArr) as $colName) {\n if ($this->hasCol($colName)) {\n $this->row[$colName] = $dataArr[$colName];\n }\n }\n }", "title": "" }, { "docid": "064a24f691d576f7291746f19453cca1", "score": "0.5551311", "text": "public function setData() {\n $this->dt_num_divisions = count($this->getDivisions());\n if ($this->dt_num_divisions == 0)\n $this->dt_num_races = 0;\n else\n $this->dt_num_races = floor(count($this->getRaces()) / $this->dt_num_divisions);\n\n // hosts and conferences\n $this->dt_confs = array();\n $this->dt_hosts = array();\n foreach ($this->getHosts() as $host) {\n $this->dt_confs[$host->conference->id] = $host->conference->id;\n $this->dt_hosts[$host->id] = $host->nick_name;\n }\n\n // boats\n $this->dt_boats = array();\n foreach ($this->getBoats() as $boat)\n $this->dt_boats[$boat->id] = $boat->name;\n\n $this->dt_singlehanded = ($this->isSingleHanded()) ? 1 : null;\n $this->dt_season = $this->getSeason();\n\n // status\n $this->dt_status = $this->calcStatus();\n DB::set($this);\n }", "title": "" }, { "docid": "b2a23d5eeacca3af659187e4a9c85c96", "score": "0.55408317", "text": "public function ResetColumns( ) {\r\n\t\t$this->m_a_columns = array( );\r\n\r\n\r\n\t}", "title": "" }, { "docid": "a893a7c5776f7cac788de2dac6e86cab", "score": "0.55361104", "text": "public function populate($row) {\r\n foreach ($row as $key => $value) {\r\n $this->$key = $value;\r\n }\r\n }", "title": "" }, { "docid": "fd298e39362910c99c5ae37276900b16", "score": "0.5531264", "text": "private static function setFieldsFromTable()\n {\n $resource = Database::executeQuery(\"SHOW COLUMNS FROM \" . self::$table);\n \n if(!mysqli_num_rows($resource) > 0)\n return false;\n\n $columns = array();\n\n while($rows = mysqli_fetch_assoc($resource))\n $columns[] = $rows['Field'];\n\n return implode(\", \", $columns);\n }", "title": "" }, { "docid": "66f066d269c593a336f204f93a01e6f0", "score": "0.5526565", "text": "private function reset_idiorm_state() {\n\t\t$this->values = [];\n\t\t$this->result_columns = [ '*' ];\n\t\t$this->using_default_result_columns = true;\n\t}", "title": "" }, { "docid": "1b1cf2c89f118eff817d1452f502716f", "score": "0.55245376", "text": "public function reset()\n {\n $this->values[self::table_name] = null;\n $this->values[self::primary_key] = self::$fields[self::primary_key]['default'];\n $this->values[self::unique_key] = null;\n }", "title": "" }, { "docid": "c3c0b63fdc13104f3373a7be43445ccd", "score": "0.5520494", "text": "private function createUpdateColumnsAndValues()\n\t{\n\t\t$returnData = FALSE;\n\n\t\t// $this->data must be a 1-dimensional array\n\t\tif (!$this->has2dData())\n\t\t{\n\t\t\tforeach ($this->data as $columnName => $value)\n\t\t\t{\n\t\t\t\t// skip from passing if not an array, if not in list of columns to skip,\n\t\t\t\t// or not in table skeleton at all (for exapmple $_POST['action']) \n\t\t\t\tif (!is_array($value) && !in_array($columnName, $this->columnsToSkip) && array_key_exists($columnName, $this->tableSkeleton))\n\t\t\t\t{\n\t\t\t\t\t//if (!$this->isColumnBinary($columnName))\n\t\t\t\t\t\t$value = Database::escape_string($value);\n\t\t\t\t\t\n\t\t\t\t\t$value \t = $this->getQuotedValue($value, $columnName);\n\t\t\t\t\t$returnData[] = $columnName . '=' . $value;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$returnData = join(', ', $returnData);\n\t\t}\n\t\t\n\t\treturn $returnData;\n\t}", "title": "" }, { "docid": "4defcb6db36663f96c1c8797d0086d5c", "score": "0.55181926", "text": "protected function initColumns()\n\t{\n\t\tif($this->columns===array())\n\t\t{\n\t\t\tif($this->dataProvider instanceof CActiveDataProvider)\n\t\t\t\t$this->columns=$this->dataProvider->model->attributeNames();\n\t\t\telse if($this->dataProvider instanceof IDataProvider)\n\t\t\t{\n\t\t\t\t// use the keys of the first row of data as the default columns\n\t\t\t\t$data=$this->dataProvider->getData();\n\t\t\t\tif(isset($data[0]) && is_array($data[0]))\n\t\t\t\t\t$this->columns=array_keys($data[0]);\n\t\t\t}\n\t\t}\n\t\t$id=$this->getId();\n\t\tforeach($this->columns as $i=>$column)\n\t\t{\n\t\t\tif(is_string($column))\n\t\t\t\t$column=$this->createDataColumn($column);\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(!isset($column['class']))\n\t\t\t\t\t$column['class']='CDataColumn';\n\t\t\t\t$column=Yii::createComponent($column, $this);\n\t\t\t}\n\t\t\tif(!$column->visible)\n\t\t\t{\n\t\t\t\tunset($this->columns[$i]);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif($column->id===null)\n\t\t\t\t$column->id=$id.'_c'.$i;\n\t\t\t$this->columns[$i]=$column;\n\t\t}\n\n\t\tforeach($this->columns as $column)\n\t\t\t$column->init();\n\t}", "title": "" }, { "docid": "e22ecb87a1b6c5c174a28e91f077e676", "score": "0.5518002", "text": "public function setData(array $data): void\n {\n if ($data === []) {\n return;\n }\n\n foreach ($data as $column => $value) {\n $this->register($column, $value);\n }\n }", "title": "" }, { "docid": "ff1fa2e24cfdeb751ae4c2cdc78a4f7f", "score": "0.55042595", "text": "static function setUpColumns($columns)\n {\n $columns->id = Column::AUTO_ID;\n $columns->name = Column::create()->setStringLength(15, true);\n $columns->age = Column::INTEGER;\n $columns->weight = Column::INTEGER + Column::UNSIGNED;\n $columns->url = Column::STRING;\n $columns->birthDate = Column::TIMESTAMP;\n }", "title": "" }, { "docid": "b98a785abe9c1dfabf8c13b85bc46810", "score": "0.54977995", "text": "abstract public static function populate_columns( $col, $post_id );", "title": "" }, { "docid": "c5d1d35545cea7b6b7cc8277ee06a919", "score": "0.54876465", "text": "private function setMeta()\n {\n $columns = array();\n foreach ($this->meta['tableInfo']['columns'] as $colInfo) {\n $columns[] = \\array_filter($colInfo, 'strlen');\n }\n $this->meta['tableInfo']['columns'] = $columns;\n unset(\n $this->meta['columns'],\n $this->meta['columnNames'],\n $this->meta['totalCols']\n );\n if (!$this->meta['inclContext']) {\n unset($this->meta['inclContext']);\n }\n if (!$this->haveTableData()) {\n unset(\n $this->meta['caption'],\n $this->meta['inclContext'],\n $this->meta['sortable'],\n $this->meta['tableInfo']\n );\n }\n $this->logEntry['meta'] = $this->meta;\n }", "title": "" }, { "docid": "50a92acc9bdec554782614a4f9199bab", "score": "0.5487325", "text": "public function update() {\n\n //if($this->id){\n $query = 'UPDATE '.$this->_tableName.' SET ';\n\n $columns = $this->_columns;\n array_shift($columns); \n $set =array();\n foreach($columns as $column){\n $set[] = ' '.$column .'=\\''.$this->{$column}.'\\'';\n \n }\n $query.=implode(',',$set);\n $query.= \" WHERE id = '{$this->id}'\";\n //}\n \n }", "title": "" }, { "docid": "f2bcee0e5b8a3ce0070930e56955ff9f", "score": "0.5482038", "text": "public function processColumns();", "title": "" }, { "docid": "ffcc9ae53d899287aa5f45393236cade", "score": "0.54716766", "text": "protected function setColumns(Array $columns)\n {\n foreach($columns as $key => $col)\n {\n if ($relation = $this->hasForeignKey($key))\n {\n $this->class->$key = $this->createRelationship($relation);\n continue;\n }\n $this->class->$key = $this->setColumn($key, $col);\n }\n }", "title": "" }, { "docid": "6bf275979c7dda5c6a8b8f0cd7722001", "score": "0.54678786", "text": "public function setTableAutoColumns($value) {\n $this->table_autocols = $value;\n }", "title": "" }, { "docid": "2b57dc07b35ef3b6732969e2b5d58922", "score": "0.54577494", "text": "public function set($params = array()):EasyQueryBuilder{\n //$params (parameters) are set of key-value pairs where key represent the column \n //and value represent the value to be set to the column while updating the table\n $this->qry .= \" set \";\n foreach ($params as $key => $value) {\n $this->qry .= $key.\" = ? ,\"; \n $val = $this->getCorrectValue($value);\n array_push($this->values,$val);\n }\n $this->qry = rtrim($this->qry,',');\n return $this;\n }", "title": "" }, { "docid": "a7514fcf744f1dd598911fd0f43aa606", "score": "0.5437624", "text": "private static function _dummy_table_cell_reset()\n {\n $CI =& get_instance();\n if($CI instanceof CIPHPUnitTestNullCodeIgniter) {\n CIPHPUnitTest::createCodeIgniterInstance();\n $CI =& get_instance();\n }\n $CI->load->model('table_cell_model');\n\n $table_cell = $CI->table_cell_model->get(self::$_dummy_ids['table_cell']);\n if(is_null($table_cell)) {\n self::_dummy_table_cell_get();\n } else {\n $dummy_values =& self::$_dummy_values['table_cell'];\n $question_id = self::_dummy_question_get();\n\n $table_cell = array(\n 'FK_Question' => $question_id,\n 'Content' => $dummy_values['content'],\n 'Column_Nb' => $dummy_values['column'],\n 'Row_Nb' => $dummy_values['row'],\n 'Header' => $dummy_values['header'],\n 'Display_In_Question' => $dummy_values['display']\n );\n\n $CI->table_cell_model->update(self::$_dummy_ids['table_cell'], $table_cell);\n }\n }", "title": "" }, { "docid": "dcd742e95a684a6fb95606740cb10273", "score": "0.54319954", "text": "public function set_table($data){\r\n\t\tif (is_array($data))\r\n\t\t\t$this->table=$data[0];\r\n\t\telse\r\n\t\t\t$this->table=$data;\r\n\t}", "title": "" }, { "docid": "b97b06d577e6b34285d7ca4d087d04f4", "score": "0.5426519", "text": "public function gdoColumnDefine() {}", "title": "" }, { "docid": "b478df20479cf900de0d573069feddcc", "score": "0.54251105", "text": "protected function set_column_headers()\n {\n }", "title": "" }, { "docid": "a259f6ea5b884c75c26d314731ffc39b", "score": "0.5424807", "text": "private function prepCols() : self\n {\n\n // Lvd.\n $colsAr = [];\n\n // Find all Tables.\n foreach ($this->sheet->getColsWidth() as $colId => $width) {\n $colsAr[] = [\n '@customWidth' => '1',\n '@max' => $colId,\n '@min' => $colId,\n '@width' => $width,\n ];\n }\n\n // If there are merges - list them.\n if (count($colsAr) > 0) {\n $this->array['worksheet']['@@']['cols'] = [];\n $this->array['worksheet']['@@']['cols']['@@']['col'] = $colsAr;\n } else {\n unset($this->array['worksheet']['@@']['cols']);\n }\n\n return $this;\n }", "title": "" }, { "docid": "70440dfd1bc015b8cad28fc0ad16fdff", "score": "0.54189354", "text": "private function _implyColumnTypes(): void {\n\t\t$data_type = $this->database()->types();\n\t\tforeach ($this->table_columns as $name => $sql_type) {\n\t\t\t$this->column_types[$name] = $data_type->native_type_to_data_type($sql_type);\n\t\t}\n\t}", "title": "" }, { "docid": "dec504761eac2ad3f05fbe1ad0458645", "score": "0.5404214", "text": "public function prepareDataset()\n {\n if ($this->query === null) {\n return;\n }\n\n $query = $this->query;\n $data = ($query instanceof ActiveQuery) ? $query->all() : $query->queryAll();\n\n $this->data = $this->defaultData;\n foreach ($data as $index => $set) {\n $this->prepareSet($set, $index);\n }\n }", "title": "" }, { "docid": "63603b1679b017e9f0e6b0237e8e3a2f", "score": "0.5403627", "text": "static function setRecords($tbl, $_DATA){\n $_RS = Array();\n // Table Column ListUP\n if($colums = DB::getSchemaBuilder()->getColumnListing($tbl)){ \n foreach($colums as $k=>$v){\n if(array_key_exists($v, $_DATA)){\n \n $columType = DB::getSchemaBuilder()->getColumnType($tbl, $v);\n // if($columType!='integer'){\n // $_DATA[$v]=\"'\".$_DATA[$v].\"'\";\n // }\n\n $_RS[$v]=$_DATA[$v];\n }\n }\n }\n return $_RS;\n }", "title": "" }, { "docid": "b792dd50d0bb9a6615aa51c9fb3e0141", "score": "0.54028106", "text": "public function setAttrsFromDbData($rowsPerTable)\n {\n $headerRows = $rowsPerTable[self::HEADER_TABLE];\n $this->header = $headerRows[0];\n $this->FirstName = $this->header->first_name;\n $this->FamilyName = $this->header->name;\n\n $this->hobbyRows = $rowsPerTable[self::HOBBIES_TABLE];\n asort($this->hobbyRows);\n $this->Hobbies = array();\n foreach ($this->hobbyRows as $row) {\n array_push($this->Hobbies, $row->name);\n }\n\n }", "title": "" }, { "docid": "1e148b79fdd6e88b8b3497f314da9e94", "score": "0.54014057", "text": "protected function mapAttributes()\n {\n $data = json_decode($this->data, true);\n $fields = $this->getTableColumns();\n foreach ($this->attributes as $key => $value) {\n if (!in_array($key, $fields)) {\n $data[$key] = $value;\n unset($this->attributes[$key]);\n }\n }\n $this->data = json_encode($data);\n }", "title": "" }, { "docid": "23cd4eb167b3ead2152b66c4603a2a40", "score": "0.5398518", "text": "public function initializeData() \n\t{\n\t\t// first clear the data since there may be data already\n\t\t$this->data = $this->tableSkeleton;\n\t}", "title": "" }, { "docid": "85e0714c6d3cdd2220c93bcd7d1497b0", "score": "0.5386543", "text": "protected function setAttributes($columns)\n {\n $this->foreignKeys = collect($columns)->filter(function($column) {\n return $column->key == 'foreign';\n });\n\n $this->primaryKeys = collect($columns)->filter(function($column) {\n return $column->key == 'primary';\n });\n\n $this->fillColumns($columns);\n }", "title": "" }, { "docid": "adb0ff5c88e602f535547abab261450c", "score": "0.5383131", "text": "protected function initColumns()\n\t{\n\t\tif($this->columns===array())\n\t\t{\n\t\t\tif($this->dataProvider instanceof CActiveDataProvider)\n\t\t\t\t$this->columns=$this->dataProvider->model->attributeNames();\n\t\t\telse if($this->dataProvider instanceof IDataProvider)\n\t\t\t{\n\t\t\t\t// use the keys of the first row of data as the default columns\n\t\t\t\t$data=$this->dataProvider->getData();\n\t\t\t\tif(isset($data[0]) && is_array($data[0]))\n\t\t\t\t\t$this->columns=array_keys($data[0]);\n\t\t\t}\n\t\t}\n\t\t$id=$this->getId();\n\t\tforeach($this->columns as $i=>$column)\n\t\t{\n\t\t\tif(is_string($column))\n\t\t\t\t$column=$this->createDataColumn($column);\n\t\t\telseif(is_array($column))\n\t\t\t{\n\t\t\t\tif(!isset($column['class'])) {\n\t\t\t\t\t// note: EDataColumn instead of CDataColumn\n\t\t\t\t\t$column['class']=$this->dataColumnClass;\n\t\t\t\t}\n\t\t\t\t$column=Yii::createComponent($column, $this);\n\t\t\t\tforeach($this->columnBehaviors as $columnBehavior) {\n\t\t\t\t\tif (!isset($columnBehavior['provides']) || !method_exists($column, $columnBehavior['provides'])) {\n\t\t\t\t\t\t$column->attachBehavior($columnBehavior['name'],$columnBehavior['class']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!$this->includeInvisible && !$column->visible)\n\t\t\t{\n\t\t\t\tunset($this->columns[$i]);\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\t$column->visible = true;\n\t\t\t}\n\t\t\tif($column->id===null)\n\t\t\t\t$column->id=$id.'_c'.$i;\n\t\t\t$this->columns[$i]=$column;\n\t\t}\n\n\t\tforeach($this->columns as $column)\n\t\t\t$column->init();\n\t}", "title": "" }, { "docid": "fcbc9a056a1451bacf7c36921b2dbc3c", "score": "0.5380084", "text": "public function prefetchAllValues()\r\n {\r\n $tblName = $this->m_tblName;\r\n $id = $this->getValue(\"id\");\r\n $sql = \"SELECT * FROM $tblName WHERE id=:id;\";\r\n\r\n // fetch associative array for result.\r\n $qry = $this->getConnection()->prepare($sql);\r\n\r\n $qry->bindValue(\"id\", $id, PDO::PARAM_INT);\r\n $qry->execute();\r\n\r\n // for each column:\r\n $row = $qry->fetch(PDO::FETCH_ASSOC);\r\n\r\n if(count($row) == 0)\r\n return false;\r\n\r\n foreach($this->m_arrColNames as $colName)\r\n {\r\n // fetch and store in old and new array.\r\n $this->m_oldValues[$colName] = $row[$colName];\r\n $this->m_newValues[$colName] = $row[$colName];\r\n }\r\n\r\n // return success.\r\n return true;\r\n }", "title": "" }, { "docid": "bf044c700fd328dc88ab40aae22af0c9", "score": "0.5375978", "text": "public function __set($name, $value) {\n\t\t$this->cols[$this->mappings[$name]] = $value;\n\t}", "title": "" }, { "docid": "d3694d1aec57f8d5d30f6125885208d4", "score": "0.5373644", "text": "protected function initializeValues()\n {\n foreach ($this->buildAttributeList() as $name => $options) {\n $this->valueList[$name] = null;\n }\n }", "title": "" }, { "docid": "c2bed42276d542c9c1b81984cb4eb71e", "score": "0.53730905", "text": "public function setTableDefinition()\n {\n foreach ($this->_options['fields'] as $field)\n $this->hasColumn($field.$this->_options['column_suffix'], 'string');\n $this->addListener(new Doctrine_Template_Listener_Serializable($this->_options));\n }", "title": "" }, { "docid": "f5730b8d793db20dd2f52d585bb5af60", "score": "0.5370666", "text": "protected function setValues()\n {\n $this->values = [\n 'firstName' => $this->user->getFirstName(),\n 'lastName' => $this->user->getLastName(),\n 'userName' => $this->user->getUserName(),\n 'password' => $this->user->getPassword(),\n 'email' => $this->user->getEmail(),\n 'isAdmin' => $this->user->isAdmin()\n ];\n }", "title": "" }, { "docid": "ed177e5fc253f9765552824864ba9169", "score": "0.53700465", "text": "public function set_available_col_values($cols){\n\t\t$this->available_col_values = $cols;\n\t}", "title": "" }, { "docid": "480079a7f986352ed82b8d57dc0bfc5e", "score": "0.536952", "text": "public function __set($column, $val) {\n if(in_array($column, $this->_properties) || array_key_exists($column, $this->_properties)) {\n $this->_values[$column] = $val;\n } else {\n $this->$column = $val;\n }\n }", "title": "" }, { "docid": "573d0a8ec0107559594be4fd38ddff0b", "score": "0.5364543", "text": "public function init() {\r\n $this->validColumns = $this->getValidTableColumns(\"sanitycheck\");\r\n }", "title": "" }, { "docid": "077cf853c45ea1c93f199df0b83378fc", "score": "0.5357592", "text": "function db_select_into_properties( $statement = NULL ) {\n\n if( $statement != NULL ) $this->db_connection->db_run_query( $statement );\n\n $curr_row_array = $this->db_connection->db_fetch_next_row( DB_FETCHMODE_ASSOC );\n if( ! is_array( $curr_row_array )) return NULL;\n\n foreach( $curr_row_array as $colname => $col_value ) {\n $this->$colname = $col_value;\n }\n return DB_OK;\n }", "title": "" }, { "docid": "cacdc63bbeadb32944acee043bf76c3d", "score": "0.5346344", "text": "function setNullAllAtributes()\n {\n $this->setId_schema('');\n $this->setId_tipo_activ('');\n $this->setNombre('');\n $this->setId_tipo_proceso_sv('');\n $this->setId_tipo_proceso_ex_sv('');\n $this->setId_tipo_proceso_sf('');\n $this->setId_tipo_proceso_ex_sf('');\n }", "title": "" }, { "docid": "8f5e1d3e01c4441d6a885466fc2ac0f9", "score": "0.53358465", "text": "function setallvalues($id=\"\",$condition=\"\")\n\t{\n\t\t$rs=$this->fetchrecordset($id, $condition);\n\t\tif($arfield_option= mysql_fetch_array($rs))\n\t\t{\n\t\t\t$this->field_option_id = $arfield_option[\"field_option_id\"];\n\t\t\t$this->field_id = $arfield_option[\"field_id\"];\n\t\t\t$this->field_option = $arfield_option[\"field_option\"];\n\t\t\t$this->file_type_id = $arfield_option[\"file_type_id\"];\n\t\t\t$this->show_field_ids = $arfield_option[\"show_field_ids\"];\n\t\t\t$this->hide_field_ids = $arfield_option[\"hide_field_ids\"];\n\t\t\t$this->field_option_order = $arfield_option[\"field_option_order\"];\n\t\t\t$this->field_option_isactive = $arfield_option[\"field_option_isactive\"];\n\t\t\t$this->created_by = $arfield_option[\"created_by\"];\n\t\t\t$this->created_date = $arfield_option[\"created_date\"];\n\t\t\t$this->updated_by = $arfield_option[\"updated_by\"];\n\t\t\t$this->updated_date = $arfield_option[\"updated_date\"];\n\t\t}\n\t}", "title": "" }, { "docid": "158518559c9c0806ad2a9ddb5766c460", "score": "0.5331516", "text": "public function reloadValues()\n {\n $this->values = $this->getValues();\n }", "title": "" }, { "docid": "06d06333fa60b3f366670a924628ee34", "score": "0.53306454", "text": "protected function setFromRowDictionary($row)\n\t{\n\t\tforeach($row as $column_name=>$column_value)\n\t\t{\n\t\t\t$this->row[$column_name] = $column_value;\n\t\t}\n\t}", "title": "" }, { "docid": "e63be18817da0bb06fafb2c303d7517c", "score": "0.5328665", "text": "function __construct() {\n parent::__construct();\n $columns = $this->getColumns();\n foreach ($columns as $key => $value) {\n $this->select_column[] = $this->table.'.'.$value;\n }\n }", "title": "" }, { "docid": "4be8d27785b5efd697d03653c9e13363", "score": "0.5328134", "text": "protected function _initTable( $table )\n {\n $this->_table = array();\n\n foreach ( $table->columns() as $column ) {\n $this->_table[$column->name()] = $column->type();\n }\n }", "title": "" }, { "docid": "8fbb6ccc6a9549194afc3ce775dd562a", "score": "0.5326073", "text": "public function setElementProperties(DC_Table $dc)\n\t{\n\t\n\t\tif($dc->activeRecord->type != 'colsetStart' || $dc->activeRecord->sc_type == \"\") return '';\n\t\n\t\t$objEnd = $this->Database->prepare(\"SELECT sorting FROM tl_content WHERE sc_name=?\")->execute($dc->activeRecord->sc_name . '-End');\n\t\t\n\t\t$arrSet = array(\n\t\t\t'protected' => $dc->activeRecord->protected,\n\t\t\t'groups' => $dc->activeRecord->groups,\n\t\t\t'guests' => $dc->activeRecord->guests\n\t\t);\n\t\t\n\t\t$this->Database->prepare(\"UPDATE tl_content %s WHERE pid=? AND sorting > ? AND sorting <= ?\")->set($arrSet)->execute($dc->activeRecord->pid,$dc->activeRecord->sorting,$objEnd->sorting);\n\t\t\n\t\n\t}", "title": "" }, { "docid": "7ee63c56674667f75647bae1d8ea5124", "score": "0.53254664", "text": "public function alterTable(){\n\n \tif( empty($this->dbh) ){ return $this; }\n\n \t$this->dump();\n\n \t$sql = \"DESCRIBE $this->table;\";\n \t$statement = $this->dbh->prepare($sql);\n \t$statement->execute();\n\n \t$statement->setFetchMode(PDO::FETCH_OBJ);\n \t$data = $statement->fetchAll();\n\n \t$temp_def = $this->table_definition;\n \t$obray_fields = array(0=>\"slug\",2=>\"parent_id\",3=>\"OCDT\",4=>\"OCU\",5=>\"OMDT\",6=>\"OMU\");\n \tforEach( $obray_fields as $of ){ unset($this->table_definition[$of]); }\n\n \t$data_types = unserialize(__DATATYPES__);\n\n \tforEach($data as $def){\n\n \t\tif( array_key_exists(\"store\",$def) == FALSE || (array_key_exists(\"store\",$def) == TRUE && $def[\"store\"] == TRUE ) ){\n\n\t \tif( array_search($def->Field,$obray_fields) === FALSE ){\n\t\t \tif( isSet($this->table_definition[$def->Field]) ){\n\n\n\t\t\t \t/*********************************************************************************\n\n\t\t\t \t\t1.\tUpdate field data type if table is different from table definition.\n\n\t\t\t \t*********************************************************************************/\n\n\t\t\t \tif( $this->enable_data_type_changes && isSet($this->table_definition[$def->Field][\"data_type\"]) ){\n\t\t\t \t\t$data_type = $this->getDataType($this->table_definition[$def->Field]);\n\n\t\t\t \t\tif( str_replace('size',$data_type[\"size\"],$data_types[$data_type[\"data_type\"]][\"my_sql_type\"]) != $def->Type ){\n\t\t\t\t \t\tif( !isSet($this->table_alterations) ){ $this->table_alterations = array(); }\n\t\t\t\t \t\t$sql = \"ALTER TABLE $this->table MODIFY COLUMN \".$def->Field.\" \".str_replace('size',$data_type[\"size\"],$data_types[$data_type[\"data_type\"]][\"sql\"]);\n\t\t\t\t \t\t$statement = $this->dbh->prepare($sql);\n\t\t\t\t \t\t$this->table_alterations[] = $statement->execute();\n\n\t\t\t \t\t}\n\n\t\t\t \t}\n\n\t\t\t \tunset( $this->table_definition[$def->Field] );\n\n\t\t\t \t/*********************************************************************************\n\n\t\t\t \t\t2.\tRemove columns that don't exist in the table definition if enableDrop\n\t\t\t \t\t\tis set.\n\n\t\t\t \t*********************************************************************************/\n\n\t\t \t} else {\n\t\t\t \tif( $this->enable_column_removal && isSet($_REQUEST[\"enableDrop\"]) ){\n\t\t\t \t\tif( !isSet($this->table_alterations) ){ $this->table_alterations = array(); }\n \t\t\t\t\t\t$sql = \"ALTER TABLE $this->table DROP COLUMN $def->Field\";\n\t\t\t \t\t$statement = $this->dbh->prepare($sql);\n\t\t\t \t\t$this->table_alterations[] = $statement->execute();\n\t\t\t \t}\n\t\t \t}\n\t \t}\n\n\t \t}\n \t}\n\n \t/*********************************************************************************\n\n \t\t3.\tAdd fields if they don't exist in the table but do in the table definition\n\n \t*********************************************************************************/\n\n \tif( $this->enable_column_additions ){\n\t \tforEach($this->table_definition as $key => $def){\n\t \t\tif( array_key_exists(\"store\",$def) == FALSE || (array_key_exists(\"store\",$def) == TRUE && $def[\"store\"] == TRUE ) ){\n\t\t \t\tif( !isSet($this->table_alterations) ){ $this->table_alterations = array(); }\n\t\t \t\t$data_type = $this->getDataType($def);\n\t\t\t \t$sql = \"ALTER TABLE $this->table ADD ($key \".str_replace('size',$data_type[\"size\"],$data_types[$data_type[\"data_type\"]][\"sql\"]).\")\";\n\t\t \t\t$statement = $this->dbh->prepare($sql);\n\t\t \t\t$this->table_alterations[] = $statement->execute();\n\t \t\t}\n\t \t}\n \t}\n\n \t$this->table_definition = $temp_def;\n\n }", "title": "" }, { "docid": "1e99d222e07316355bf7e48bd96b48e7", "score": "0.53177744", "text": "public function testFetchTableCols()\n {\n $this->_fetchTableCols();\n }", "title": "" }, { "docid": "42949f6cca1110f8b749326295d9f9c2", "score": "0.5316548", "text": "private function setRowsCols() {\r\n\r\n // get the number of columns\r\n $this->cols = count($this->header);\r\n\r\n // get the number of rows (not including the header)\r\n $rowcount = 0;\r\n while((fgetcsv($this->file,0,\",\")) !== FALSE) {\r\n $rowcount++;\r\n }\r\n $rows = $rowcount - 1;\r\n\r\n // if no rows are in the file\r\n if($rows == 0) {\r\n $rows++;\r\n }\r\n $this->rows = $rows;\r\n\r\n // reset the file pointer\r\n fseek($this->file,0);\r\n }", "title": "" }, { "docid": "162a89ccc7b90e75b62ac174cc091841", "score": "0.5310095", "text": "public function setColumns(){\r\n\t\t$tmpArgArr = func_get_args();\r\n\t\tif(!isset($tmpArgArr[0])){\r\n\t\t\tSGF::eventLog('setColumns', 0, 'no $columnNames inputted.', 'error');\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t$scColumnNames = explode(',', $tmpArgArr[0]);\r\n\t\t$scNumOfColBefore = count(array_keys($this->valueArray));\r\n\t\tforeach($scColumnNames as $scColumnName){\r\n\t\t\tif(!array_key_exists(trim($scColumnName), $this->valueArray)){\r\n\t\t\t $this->valueArray[trim($scColumnName)] = '';\r\n\t\t\t}\r\n\t\t}\r\n\t\tSGF::eventLog('setColumns', 0, (count(array_keys($this->valueArray)) - $scNumOfColBefore).' new column ware created.');\r\n\t\treturn count(array_keys($this->valueArray));\r\n\t}", "title": "" }, { "docid": "456a0da6ac2db353f898271f2c0497b1", "score": "0.5300284", "text": "public function setFromArray(array $data)\n\t{\n\t\t//原来是array_intersect_key($data, $this->getArrayCopy()),现在取消参数列表检查,因此直接使用data\n\t\tforeach ($data as $columnName => $value) {\n\t\t\t$this[$columnName] = $value;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" } ]
f7d4d39cbafb3fda85251f6a71f93706
Registers the `areas_of_practice` taxonomy, for use with 'post'.
[ { "docid": "102b86d1a35a60b0f1f227e10b26a55e", "score": "0.77748686", "text": "function areas_of_practice_init() {\n\tregister_taxonomy( 'areas-of-practices', array( 'attorneys' ), array(\n\t\t'hierarchical' => false,\n\t\t'public' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => false,\n\t\t'query_var' => true,\n\t\t'rewrite' => true,\n\t\t'capabilities' => array(\n\t\t\t'manage_terms' => 'edit_posts',\n\t\t\t'edit_terms' => 'edit_posts',\n\t\t\t'delete_terms' => 'edit_posts',\n\t\t\t'assign_terms' => 'edit_posts',\n\t\t),\n\t\t'labels' => array(\n\t\t\t'name' => __( 'Areas of Practices', 'waffleiron' ),\n\t\t\t'singular_name' => _x( 'Area of Practice', 'taxonomy general name', 'waffleiron' ),\n\t\t\t'search_items' => __( 'Search Areas of Practices', 'waffleiron' ),\n\t\t\t'popular_items' => __( 'Popular Areas of Practices', 'waffleiron' ),\n\t\t\t'all_items' => __( 'All Areas of Practices', 'waffleiron' ),\n\t\t\t'parent_item' => __( 'Parent Areas of Practice', 'waffleiron' ),\n\t\t\t'parent_item_colon' => __( 'Parent Areas of Practice:', 'waffleiron' ),\n\t\t\t'edit_item' => __( 'Edit Areas of Practice', 'waffleiron' ),\n\t\t\t'update_item' => __( 'Update Areas of Practice', 'waffleiron' ),\n\t\t\t'view_item' => __( 'View Areas of Practice', 'waffleiron' ),\n\t\t\t'add_new_item' => __( 'Add New Areas of Practice', 'waffleiron' ),\n\t\t\t'new_item_name' => __( 'New Areas of Practice', 'waffleiron' ),\n\t\t\t'separate_items_with_commas' => __( 'Separate areas-of-practices with commas', 'waffleiron' ),\n\t\t\t'add_or_remove_items' => __( 'Add or remove areas-of-practices', 'waffleiron' ),\n\t\t\t'choose_from_most_used' => __( 'Choose from the most used areas-of-practices', 'waffleiron' ),\n\t\t\t'not_found' => __( 'No areas-of-practices found.', 'waffleiron' ),\n\t\t\t'no_terms' => __( 'No areas-of-practices', 'waffleiron' ),\n\t\t\t'menu_name' => __( 'Areas of Practices', 'waffleiron' ),\n\t\t\t'items_list_navigation' => __( 'Areas of Practices list navigation', 'waffleiron' ),\n\t\t\t'items_list' => __( 'Areas of Practices list', 'waffleiron' ),\n\t\t\t'most_used' => _x( 'Most Used', 'areas-of-practice', 'waffleiron' ),\n\t\t\t'back_to_items' => __( '&larr; Back to Areas of Practices', 'waffleiron' ),\n\t\t),\n\t\t'show_in_rest' => true,\n\t\t'rest_base' => 'areas-of-practice',\n\t\t'rest_controller_class' => 'WP_REST_Terms_Controller',\n\t) );\n\n}", "title": "" } ]
[ { "docid": "09e138cad02d305c3304cfc428f2737d", "score": "0.6436479", "text": "public function register_custom_post_taxonomy() {\n\t\t}", "title": "" }, { "docid": "8c28ee200480b85135824fe50665d09a", "score": "0.63721067", "text": "static function register_taxonomy() {\n\t\tregister_taxonomy(\n\t\t\tstatic::$taxonomy,\n\t\t\t'post',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'SOL Post Formats' ),\n\t\t\t\t//'rewrite' => array( 'slug' => 'sol-post-format' ),\n\t\t\t\t'rewrite' => false,\n\t\t\t\t'capabilities' => array(\n\t\t\t\t\t'manage_terms' => 'activate_plugins',\n\t\t\t\t\t'edit_terms' => 'activate_plugins',\n\t\t\t\t\t'delete_terms' => 'activate_plugins',\n\t\t\t\t\t'assign_terms' => 'edit_posts'\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "997b6ebad4bbce13b50860db1e0f3083", "score": "0.62907356", "text": "function functional_area_init() {\n // create a new taxonomy\n $labels = array(\n 'name' => __( 'Functional Areas' ),\n 'singular_name' => __( 'Functional Area' ),\n 'search_items' => __( 'Search Functional Areas' ),\n 'all_items' => __( 'All Functional Areas' ),\n 'parent_item' => __( 'Parent Functional Area' ),\n 'parent_item_colon' => __( 'Parent Functional Area:' ),\n 'edit_item' => __( 'Edit Functional Area' ),\n 'update_item' => __( 'Update Functional Area' ),\n 'add_new_item' => __( 'Add New Functional Area' ),\n 'new_item_name' => __( 'New Functional Area' ),\n 'menu_name' => __( 'Functional Area' ),\n );\n\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'functional-area' ),\n 'show_in_rest' => true,\n );\n\n register_taxonomy( 'functional-area', array( 'post' ), $args );\n}", "title": "" }, { "docid": "a8bf7c6abc92ab49653a4957ec9f3759", "score": "0.61785287", "text": "public function create_faq_taxonomies(){\n // Add new taxonomy, make it hierarchical (like categories)\n $labels = array(\n 'name' => _x('Question Types', 'taxonomy general name'),\n 'singular_name' => _x('Question Type', 'taxonomy singular name'),\n 'search_items' => __('Search Question Types'),\n 'all_items' => __('All Question Types'),\n 'parent_item' => __('Parent Type'),\n 'parent_item_colon' => __('Parent Type:'),\n 'edit_item' => __('Edit Question Type'),\n 'update_item' => __('Update Question Type'),\n 'add_new_item' => __('Add New Question Type'),\n 'new_item_name' => __('New Question Type'),\n 'menu_name' => __('Question Types'),\n );\n\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array('slug' => 'type'),\n 'show_in_nav_menus' => true,\n );\n\n register_taxonomy('questiontype', array('pzfaq'), $args);\n }", "title": "" }, { "docid": "bf8dd131998ff6d329a4364723e3b4be", "score": "0.6104971", "text": "public function register_custom_post_types() {\n\t\t$this->register_post_type_area_entrega();\n\t}", "title": "" }, { "docid": "f870576469d2998f93fae1c85f8fe6a8", "score": "0.60587823", "text": "function registerTaxonomy()\n{\n\n // Use GenerateWP for generating code for custom taxonomy\n // https://generatewp.com/taxonomy/\n}", "title": "" }, { "docid": "1f28a2ab2de39bb46be0983043147cc2", "score": "0.60280544", "text": "function createTaxonomies()\n {\n // register_taxonomy(\"event_type\", array(\"event\"), $eventType[\"args\"]);\n }", "title": "" }, { "docid": "81d7fc756725bcf17cfe319572128d9f", "score": "0.6022744", "text": "function adleex_post_init()\r\n{\r\n register_taxonomy_for_object_type('adleex_topic', 'post'); \r\n \r\n}", "title": "" }, { "docid": "c50dd6c8d302a2802f9896a1a5e36e88", "score": "0.5999073", "text": "public static function registerPostTypeAndTaxonomies()\r\n {\r\n return;\r\n }", "title": "" }, { "docid": "3413fb08a3928c2b008ae78faad6b1a7", "score": "0.5986322", "text": "function register_post_types() {\r\n $lecture_post_def = array(\r\n 'label' => __( 'Lecture', 'bpsp' ),\r\n 'singular_label' => __( 'Lecture', 'bpsp' ),\r\n 'description' => __( 'BuddyPress ScholarPress Courseware Lectures', 'bpsp' ),\r\n 'public' => BPSP_DEBUG,\r\n 'publicly_queryable' => false,\r\n 'exclude_from_search' => true,\r\n 'show_ui' => BPSP_DEBUG,\r\n 'capability_type' => 'lecture',\r\n 'hierarchical' => true,\r\n 'rewrite' => false,\r\n 'query_var' => false,\r\n 'supports' => array( 'title', 'editor', 'author', 'page-attributes' ),\r\n 'taxonomies' => array( 'group_id' )\r\n );\r\n if( !register_post_type( 'lecture', $lecture_post_def ) )\r\n wp_die( __( 'BuddyPress Courseware error while registering lecture post type.', 'bpsp' ) );\r\n \r\n $course_rel_def = array(\r\n 'public' => BPSP_DEBUG,\r\n 'show_ui' => BPSP_DEBUG,\r\n 'hierarchical' => false,\r\n 'label' => __( 'Course ID', 'bpsp'),\r\n 'query_var' => 'course_id',\r\n 'rewrite' => false,\r\n 'capabilities' => array(\r\n 'manage_terms' => 'manage_course_id',\r\n 'edit_terms' => 'manage_course_id',\r\n 'delete_terms' => 'manage_course_id',\r\n 'assign_terms' => 'edit_courses'\r\n )\r\n );\r\n register_taxonomy( 'course_id', array( 'lecture' ), $course_rel_def );\r\n \r\n if( !get_taxonomy( 'course_id' ) )\r\n wp_die( __( 'BuddyPress Courseware error while registering course taxonomy.', 'bpsp' ) );\r\n }", "title": "" }, { "docid": "e8e40bf45197cb40ff48539d5e2d6572", "score": "0.59045726", "text": "public function register() {\n\t\tregister_taxonomy( static::TAXONOMY, Ideas::POST_TYPE, $this->get_args() );\n\t\tregister_taxonomy_for_object_type( static::TAXONOMY, Ideas::POST_TYPE );\n\t}", "title": "" }, { "docid": "4f87db19df0dbee4d8d7dd7be765086e", "score": "0.58975804", "text": "public function registerTaxonomies() {\n\t\t/* chayka: registerTaxonomies */\n }", "title": "" }, { "docid": "829d1a2cf353ee15b9d4c0a615bae8e7", "score": "0.58745915", "text": "function expertise_init() {\n // create a new taxonomy\n $labels = array(\n 'name' => __( 'Expertise' ),\n 'singular_name' => __( 'Expertise' ),\n 'search_items' => __( 'Search Expertise' ),\n 'all_items' => __( 'All Expertise' ),\n 'parent_item' => __( 'Parent Expertise' ),\n 'parent_item_colon' => __( 'Parent Expertise:' ),\n 'edit_item' => __( 'Edit Expertise' ),\n 'update_item' => __( 'Update Expertise' ),\n 'add_new_item' => __( 'Add New Expertise' ),\n 'new_item_name' => __( 'New Expertise' ),\n 'menu_name' => __( 'Expertise' ),\n );\n\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'expertise' ),\n 'show_in_rest' => true,\n );\n\n register_taxonomy( 'expertise', array( 'post' ), $args );\n}", "title": "" }, { "docid": "7389b022a6efc0313cfa47ba6e7b6040", "score": "0.5868961", "text": "function create_area_cpt() {\n\n\t$labels = array(\n\t\t'name' => _x( 'Areas', 'Post Type General Name', 'sqe-custom' ),\n\t\t'singular_name' => _x( 'Area', 'Post Type Singular Name', 'sqe-custom' ),\n\t\t'menu_name' => _x( 'Areas', 'Admin Menu text', 'sqe-custom' ),\n\t\t'name_admin_bar' => _x( 'Area', 'Add New on Toolbar', 'sqe-custom' ),\n\t\t'archives' => __( 'Area Archives', 'sqe-custom' ),\n\t\t'attributes' => __( 'Area Attributes', 'sqe-custom' ),\n\t\t'parent_item_colon' => __( 'Parent Area:', 'sqe-custom' ),\n\t\t'all_items' => __( 'All Areas', 'sqe-custom' ),\n\t\t'add_new_item' => __( 'Add New Area', 'sqe-custom' ),\n\t\t'add_new' => __( 'Add New', 'sqe-custom' ),\n\t\t'new_item' => __( 'New Area', 'sqe-custom' ),\n\t\t'edit_item' => __( 'Edit Area', 'sqe-custom' ),\n\t\t'update_item' => __( 'Update Area', 'sqe-custom' ),\n\t\t'view_item' => __( 'View Area', 'sqe-custom' ),\n\t\t'view_items' => __( 'View Areas', 'sqe-custom' ),\n\t\t'search_items' => __( 'Search Area', 'sqe-custom' ),\n\t\t'not_found' => __( 'Not found', 'sqe-custom' ),\n\t\t'not_found_in_trash' => __( 'Not found in Trash', 'sqe-custom' ),\n\t\t'featured_image' => __( 'Featured Image', 'sqe-custom' ),\n\t\t'set_featured_image' => __( 'Set featured image', 'sqe-custom' ),\n\t\t'remove_featured_image' => __( 'Remove featured image', 'sqe-custom' ),\n\t\t'use_featured_image' => __( 'Use as featured image', 'sqe-custom' ),\n\t\t'insert_into_item' => __( 'Insert into Area', 'sqe-custom' ),\n\t\t'uploaded_to_this_item' => __( 'Uploaded to this Area', 'sqe-custom' ),\n\t\t'items_list' => __( 'Areas list', 'sqe-custom' ),\n\t\t'items_list_navigation' => __( 'Areas list navigation', 'sqe-custom' ),\n\t\t'filter_items_list' => __( 'Filter Areas list', 'sqe-custom' ),\n\t);\n\t$args = array(\n\t\t'label' => __( 'Area', 'sqe-custom' ),\n\t\t'description' => __( 'Custom Post Type for Area', 'sqe-custom' ),\n\t\t'labels' => $labels,\n\t\t'menu_icon' => 'dashicons-admin-site-alt3',\n\t\t'supports' => array('title', 'thumbnail'),\n\t\t'taxonomies' => array(),\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'menu_position' => 5,\n\t\t'show_in_admin_bar' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'can_export' => true,\n\t\t'has_archive' => true,\n\t\t'hierarchical' => false,\n\t\t'exclude_from_search' => false,\n\t\t'show_in_rest' => true,\n\t\t'publicly_queryable' => true,\n\t\t'capability_type' => 'post',\n\t);\n\tregister_post_type( 'area', $args );\n\n}", "title": "" }, { "docid": "ce8e567723f9157c4c846b57341d5b1c", "score": "0.5837526", "text": "function on_init_create_page_taxonomy ()\n{\n register_taxonomy (\n 'cap-sidebar',\n 'page',\n array (\n 'label' => __ ('Capitularia Sidebar', 'capitularia'),\n 'public' => false,\n 'show_ui' => true,\n 'rewrite' => false,\n 'hierarchical' => false,\n )\n );\n register_taxonomy_for_object_type ('cap-sidebar', 'page');\n}", "title": "" }, { "docid": "ec569e90f79a4a0ee3ff250776cb5fca", "score": "0.5821773", "text": "function register_cpt_scenario() {\n $labels = array(\n 'name' => _x('Scenarios','scenarios'),\n 'singular_name' => _x('Scenario','scenario'),\n 'all_items' => ('All Scenarios'),\n 'add_new_item' => ('Add New Scenario'),\n 'edit_item' => ('Edit Scenario'),\n 'search_items' => ('Search Scenarios'),\n 'view_item' => ('View Scenario'),\n );\n\n $args = array(\n 'label' => __('Scenarios', 'scenarios'),\n 'labels' => $labels,\n 'public' => true,\n 'taxonomies' => array('category'),\n );\n\n register_post_type('scenario',$args);\n}", "title": "" }, { "docid": "1408ade7f32f2803b0ccab6737dbf39f", "score": "0.5806032", "text": "public function registerTaxonomy()\t{\r\n\t \tif(!empty($this->_postTypes) && count($this->_postTypes))\t{\r\n\t \t\t$firstPostType = array_shift($this->_postTypes);\r\n\t \t\tregister_taxonomy($this->_name,$firstPostType,$this->_args);\r\n\t \t\tforeach($this->_postTypes as $postType)\t{\r\n\t \t\t\tregister_taxonomy_for_object_type($this->_name,$postType);\r\n\t \t\t}\r\n\t \t\tarray_unshift($this->_postTypes, $firstPostType);\r\n\t \t}\r\n\t }", "title": "" }, { "docid": "6b5e1b178e66e1d141c44484783c88cc", "score": "0.5791391", "text": "public function register_taxonomy()\n {\n $labels = [\n 'name' => _x('Divisions', 'taxonomy general name', 'custom-post-type-staff'),\n 'singular_name' => _x('Division', 'taxonomy singular name', 'custom-post-type-staff'),\n 'search_items' => __('Search Divisions', 'custom-post-type-staff'),\n 'all_items' => __('All Divisions', 'custom-post-type-staff'),\n 'parent_item' => __('Parent Division', 'custom-post-type-staff'),\n 'parent_item_colon' => __('Parent Division:', 'custom-post-type-staff'),\n 'edit_item' => __('Edit Division', 'custom-post-type-staff'),\n 'update_item' => __('Update Division', 'custom-post-type-staff'),\n 'add_new_item' => __('Add New Division', 'custom-post-type-staff'),\n 'new_item_name' => __('New Division Name', 'custom-post-type-staff'),\n 'menu_name' => __('Divisions', 'custom-post-type-staff'),\n ];\n\n register_taxonomy('division', ['staff'], [\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => ['slug' => _x('division', 'Division Slug', 'custom-post-type-staff')],\n ]);\n }", "title": "" }, { "docid": "9c459924584d32de0061e05d9f05a302", "score": "0.57766384", "text": "function han_dwa_qa_register_cpt_tax() {\n // Create the Q&A post type\n $qaCptArgs = array(\n 'public' => true,\n 'rewrite' => array(\n 'slug' => 'Q&A'\n ),\n 'has_archive' => true,\n 'hierarchical' => false,\n 'supports' => array( 'title', 'editor' ),\n 'menu_icon' => 'dashicons-megaphone',\n 'labels' => array(\n 'name' => __( \"Q&A's\", 'han-dwa-qa' ),\n \t\t'singular_name' => __( 'Q&A', 'han-dwa-qa' ),\n \t\t'menu_name' => __( \"Q&A's\", 'han-dwa-qa' ),\n \t\t'name_admin_bar' => __( 'Q&A', 'han-dwa-qa' ),\n \t\t'add_new' => __( 'Add new Q&A', 'han-dwa-qa' ),\n \t\t'add_new_item' => __( 'Add new Q&A', 'han-dwa-qa' ),\n \t\t'new_item' => __( 'New Q&A', 'han-dwa-qa' ),\n \t\t'edit_item' => __( 'Edit Q&A', 'han-dwa-qa' ),\n \t\t'view_item' => __( 'View Q&A', 'han-dwa-qa' ),\n \t\t'all_items' => __( \"All Q&A's\", 'han-dwa-qa' ),\n \t\t'search_items' => __( \"Find Q&A's\", 'han-dwa-qa' ),\n \t\t'not_found' => __( \"No Q&A's found\", 'han-dwa-qa' ),\n \t\t'not_found_in_trash' => __( \"No Q&A's found in the trash\", 'han-dwa-qa' )\n )\n );\n\n register_post_type( HAN_DWA_QA_CPT, $qaCptArgs );\n\n // Create the class taxonomy\n\t$qaClassTaxArgs = array(\n\t\t'hierarchical' => true,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'query_var' => true,\n\t\t'rewrite' => array(\n 'slug' => __( 'class', 'han-dwa-qa' )\n ),\n 'labels' => array(\n \t 'name' => __( 'Classes', 'han-dwa-qa' ),\n \t\t'singular_name' => __( 'Class', 'han-dwa-qa' ),\n \t\t'search_items' => __( 'Find classes', 'han-dwa-qa' ),\n \t\t'all_items' => __( 'All classes', 'han-dwa-qa' ),\n 'parent_item' => __( 'Parent class', 'han-dwa-qa' ),\n \t\t'parent_item_colon' => __( 'Parent class', 'han-dwa-qa' ) . '.',\n \t\t'edit_item' => __( 'Edit class', 'han-dwa-qa' ),\n \t\t'update_item' => __( 'Update class', 'han-dwa-qa' ),\n \t\t'add_new_item' => __( 'Add new class', 'han-dwa-qa' ),\n \t\t'new_item_name' => __( 'New class name', 'han-dwa-qa' ),\n \t\t'menu_name' => __( 'Classes', 'han-dwa-qa' )\n \t)\n\t);\n\n\tregister_taxonomy( HAN_DWA_QA_CLASS_TAX, array( HAN_DWA_QA_CPT ), $qaClassTaxArgs );\n\n // Create the questions post type\n $qaCptQuestionArgs = array(\n 'public' => false,\n 'show_ui' => true,\n 'has_archive' => false,\n 'hierarchical' => false,\n 'supports' => array( 'title' ),\n 'menu_icon' => 'dashicons-format-status',\n 'labels' => array(\n 'name' => __( 'Posted items', 'han-dwa-qa' ),\n \t\t'singular_name' => __( 'Posted item', 'han-dwa-qa' ),\n \t\t'menu_name' => __( 'Posted items', 'han-dwa-qa' ),\n \t\t'name_admin_bar' => __( 'Posted items', 'han-dwa-qa' ),\n \t\t'add_new' => __( 'Add new item', 'han-dwa-qa' ),\n \t\t'add_new_item' => __( 'Add new item', 'han-dwa-qa' ),\n \t\t'new_item' => __( 'New item', 'han-dwa-qa' ),\n \t\t'edit_item' => __( 'Edit item', 'han-dwa-qa' ),\n \t\t'view_item' => __( 'View item', 'han-dwa-qa' ),\n \t\t'all_items' => __( 'All items', 'han-dwa-qa' ),\n \t\t'search_items' => __( 'Find items', 'han-dwa-qa' ),\n \t\t'not_found' => __( 'No items found', 'han-dwa-qa' ),\n \t\t'not_found_in_trash' => __( 'No items found in the trash', 'han-dwa-qa' )\n ),\n 'map_meta_cap' => true,\n 'capabilities' => array(\n 'create_posts' => 'han_dwa_qa_create_question'\n )\n );\n\n register_post_type( HAN_DWA_QA_QUESTION_CPT, $qaCptQuestionArgs );\n}", "title": "" }, { "docid": "7c8a3d7d1a6be5c73e8669a4e490dd92", "score": "0.5771028", "text": "function create_ot_attendance() {\n register_post_type( 'ot-attendance',\n array(\n 'labels' => array(\n 'name' => 'Attendance',\n 'singular_name' => 'Attendance',\n 'add_new' => 'Add New',\n 'add_new_item' => 'Add New Attendance',\n 'edit' => 'Edit',\n 'edit_item' => 'Edit Attendance',\n 'new_item' => 'New Attendance',\n 'view' => 'View',\n 'view_item' => 'View Attendance',\n 'search_items' => 'Search Attendance',\n 'not_found' => 'No Attendance found',\n 'not_found_in_trash' => 'No Attendance found in Trash',\n 'parent' => 'Parent Attendance'\n ),\n 'show_in_menu' => 'edit.php?post_type=online-course',\n 'public' => true,\n 'publicly_queryable' => false,\n 'exclude_from_search' => true,\n 'menu_position' => 35,\n 'supports' => array( 'title','custom-fields' ),\n 'taxonomies' => array( '' ),\n 'has_archive' => true,\n )\n );\n}", "title": "" }, { "docid": "9ccdd0c24c0062643ad25622429ffbca", "score": "0.57530165", "text": "function create_taxonomy() {\n register_taxonomy(\n 'map-point-category',\n array('map-point'),\n array(\n 'label' => __('Map Point Category'),\n 'rewrite' => array('slug' => 'map-point-category'),\n 'capabilities' => array(\n 'assign_terms' => 'list_users',\n 'edit_terms' => 'list_users',\n 'manage_terms' => 'list_users',\n 'delete_terms' => 'list_users',\n ),\n 'public' => true,\n 'show_in_rest' => true,\n 'query_var' => true\n )\n );\n}", "title": "" }, { "docid": "632848f8a14b7ed0e68d2a98282c040e", "score": "0.57320076", "text": "function register_taxonomies() {\n }", "title": "" }, { "docid": "632848f8a14b7ed0e68d2a98282c040e", "score": "0.57320076", "text": "function register_taxonomies() {\n }", "title": "" }, { "docid": "6745e3db124a9c0af3c3adb5889c19a0", "score": "0.57282716", "text": "public function majal_create_alumni_taxonomies() {\n\n\t\t//////////////////////////////////\n\t\t//// Taxonomy for Industry Area //\n\t\t//////////////////////////////////\n\n\t\t$labels = array(\n\t\t\t'name'\t\t\t\t\t=> _x( 'Industry Areas', 'taxonomy general name' ),\n\t\t\t'singular_name'\t\t\t=> _x( 'Industry Area', 'taxonomy singular name' ),\n\t\t\t'search_items'\t\t\t=> __( 'Search Industry Areas' ),\n\t\t\t'all_items'\t\t\t\t=> __( 'All Industry Areas' ),\n\t\t\t'parent_item'\t\t\t=> __( 'Parent Industry Areas' ),\n\t\t\t'parent_item_colon'\t\t=> __( 'Parent Industry Areas:' ),\n\t\t\t'edit_item'\t\t\t\t=> __( 'Edit Industry Area' ),\n\t\t\t'update_item'\t\t\t=> __( 'Update Industry Area' ),\n\t\t\t'add_new_item'\t\t\t=> __( 'Add New Industry Area' ),\n\t\t\t'new_item_name'\t\t\t=> __( 'New Industry Area' ),\n\t\t\t'menu_name'\t\t\t\t=> __( 'Industry Areas' ),\n\t\t);\n\t\t$args = array(\n \t\t'public'\t\t\t\t=> true,\n \t\t'show_in_nav_menus'\t\t=> true,\n \t\t'labels'\t\t\t\t=> $labels,\n \t\t'hierarchical'\t\t\t=> true,\n\t\t\t'rewrite'\t\t\t\t=> array( 'slug' => 'industry_area' ),\n\t\t\t'show_admin_column'\t\t=> true,\n\t\t\t'sort'\t\t\t\t\t=> false\n\t\t);\n\t\tregister_taxonomy( 'majal_employmentindustry', 'majal_alumni', $args );\n\n\t\t////////////////////////////////////\n\t\t//// Taxonomy for Graduation Year //\n\t\t////////////////////////////////////\n\n\t\t$labels = array(\n\t\t\t'name'\t\t\t\t\t=> _x( 'Graduation Year', 'taxonomy general name' ),\n\t\t\t'singular_name'\t\t\t=> _x( 'Graduation Year', 'taxonomy singular name' ),\n\t\t\t'search_items'\t\t\t=> __( 'Search Graduation Years' ),\n\t\t\t'all_items'\t\t\t\t=> __( 'All Graduation Years' ),\n\t\t\t'edit_item'\t\t\t\t=> __( 'Edit Graduation Year' ),\n\t\t\t'update_item'\t\t\t=> __( 'Update Graduation Year' ),\n\t\t\t'add_new_item'\t\t\t=> __( 'Add New Graduation Year' ),\n\t\t\t'new_item_name'\t\t\t=> __( 'New Graduation Year' ),\n\t\t\t'menu_name'\t\t\t\t=> __( 'Graduation Years' ),\n\t\t);\n\t\t$args = array(\n \t\t'public'\t\t\t\t=> true,\n \t\t'show_in_nav_menus'\t\t=> true,\n \t\t'labels'\t\t\t\t=> $labels,\n \t\t'hierarchical'\t\t\t=> true,\n\t\t\t'rewrite'\t\t\t\t=> array( 'slug' => 'graduation_year' ),\n\t\t\t'show_admin_column' \t=> true,\n\t\t\t'sort'\t\t\t\t\t=> false\n\t\t);\n\t\tregister_taxonomy( 'majal_graduationyear', 'majal_alumni', $args );\n\t}", "title": "" }, { "docid": "ec0206b4f2aa72544896b758c2c2f8d8", "score": "0.57104737", "text": "function create_posttype(){\n\tregister_post_type('content-area', \n\t\tarray(\n\t\t\t'labels' => array(\n\t\t\t\t\t'name' => __('Content Area'), \n\t\t\t\t\t'singular_name' => __('Content Area'),\n\t\t\t\t), \n\t\t\t\t'supports' => array('title', 'editor','thumbnail', 'comments', 'revisions'), \n\t\t\t\t'public' => true, \n\t\t\t\t'has_archive' => true, \n\t\t\t\t'rewrite' => array('slug' => 'content-area'), \n\t\t\t\t'hierarchical' => true\n\t\t\t)\n\t\t); \n\n\tregister_post_type('work-sample', \n\t\tarray(\n\t\t\t'labels' => array(\n\t\t\t\t\t'name' => __('Work Sample'), \n\t\t\t\t\t'singular_name' => __('Work Sample'),\n\t\t\t\t), \n\t\t\t\t'supports' => array('title', 'editor', 'thumbnail', 'comments', 'revisions'), \n\t\t\t\t'public' => true, \n\t\t\t\t'has_archive' => true, \n\t\t\t\t'rewrite' => array('slug' => 'work-sample'), \n\t\t\t\t'hierarchical' => true\n\t\t\t)\n\t\t); \n}", "title": "" }, { "docid": "4df8713e0c714a7a0f875a17a36ed764", "score": "0.5706468", "text": "function axiom_create_faq_taxonomies() \n{ \n //labels for FAQ Category custom post type:\n $FAQ_category_labels = array(\n 'name' => _x( 'FAQ Categories', \"FAQ Categories general name\" , 'default' ),\n 'singular_name' => _x( \"FAQ Category' , 'FAQ Category singular name\" , 'default' ),\n 'search_items' => __( 'Search in FAQ Categories' , 'default'),\n 'all_items' => __( 'All FAQ Categories' , 'default'),\n 'most_used_items' => null,\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Edit FAQ Category' , 'default'), \n 'update_item' => __( 'Update FAQ Category' , 'default'),\n 'add_new_item' => __( 'Add new FAQ Category' , 'default'),\n 'new_item_name' => __( 'New FAQ Category' , 'default'),\n 'menu_name' => __( 'Categories' , 'default'),\n );\n \n register_taxonomy('faq-category', array('faq'), array(\n 'hierarchical' => true,\n 'labels' => $FAQ_category_labels,\n 'singular_name' => 'FAQ Category',\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array('slug' => 'faq-category' )\n ));\n}", "title": "" }, { "docid": "f7686ce5b99b836b883d377de03d3e68", "score": "0.56684464", "text": "function people_init() {\n register_taxonomy(\n 'people',\n 'post',\n array(\n 'label' => __( 'People' ),\n 'rewrite' => array( 'slug' => 'person' ),\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n )\n );\n}", "title": "" }, { "docid": "4b97304f7a6f3e1b88c1e0a977dea592", "score": "0.562045", "text": "public function register_territory_taxonomy() : void {\n\t\tregister_taxonomy(\n\t\t\tself::TAXONOMY_SLUG,\n\t\t\t[ 'product', 'post' ],\n\t\t\t[\n\t\t\t\t'labels' => create_territory_taxonomy_labels( 'Territories', 'Territory' ),\n\t\t\t\t'hierarchical' => false,\n\t\t\t\t'query_var' => true,\n\t\t\t\t'rewrite' => true,\n\t\t\t\t'show_ui' => true,\n\t\t\t\t'show_in_nav_menus' => true,\n\t\t\t\t'show_tagcloud' => false,\n\t\t\t\t'show_admin_column' => false,\n\t\t\t\t'public' => false,\n\t\t\t\t'show_in_menu' => true,\n\t\t\t\t'show_in_rest' => false,\n\t\t\t\t'capabilities' => [\n\t\t\t\t\t'manage_terms' => 'manage_territory',\n\t\t\t\t\t'edit_terms' => 'edit_territory',\n\t\t\t\t\t'delete_terms' => 'delete_territory',\n\t\t\t\t\t'assign_terms' => 'assign_territory',\n\t\t\t\t],\n\t\t\t\t'show_in_rest' => true,\n\t\t\t]\n\t\t);\n\t}", "title": "" }, { "docid": "8fcdd9ebd30c318cf1df093b9e25fd41", "score": "0.5616286", "text": "public static function registerDetermineTaxonomy() {\n\t\tadd_action( 'init', array(__CLASS__, 'init'), 99999999 );\n\t}", "title": "" }, { "docid": "fa8a6dfc4fa2fd929fa8a18bdb91ef50", "score": "0.5609752", "text": "function byadr_register_cpt_faq() {\n\n\t$labels = array(\n\t\t'name' => _x( 'FAQs', 'Post Type General Name', 'byadr' ),\n\t\t'singular_name' => _x( 'FAQ', 'Post Type Singular Name', 'byadr' ),\n\t\t'menu_name' => __( 'FAQ', 'byadr' ),\n\t\t'name_admin_bar' => __( 'FAQs', 'byadr' ),\n\t\t'archives' => __( 'Item Archives', 'byadr' ),\n\t\t'parent_item_colon' => __( 'Parent Item:', 'byadr' ),\n\t\t'all_items' => __( 'All Items', 'byadr' ),\n\t\t'add_new_item' => __( 'Add New Item', 'byadr' ),\n\t\t'add_new' => __( 'Add New', 'byadr' ),\n\t\t'new_item' => __( 'New Item', 'byadr' ),\n\t\t'edit_item' => __( 'Edit Item', 'byadr' ),\n\t\t'update_item' => __( 'Update Item', 'byadr' ),\n\t\t'view_item' => __( 'View Item', 'byadr' ),\n\t\t'search_items' => __( 'Search Item', 'byadr' ),\n\t\t'not_found' => __( 'Not found', 'byadr' ),\n\t\t'not_found_in_trash' => __( 'Not found in Trash', 'byadr' ),\n\t\t'featured_image' => __( 'Featured Image', 'byadr' ),\n\t\t'set_featured_image' => __( 'Set featured image', 'byadr' ),\n\t\t'remove_featured_image' => __( 'Remove featured image', 'byadr' ),\n\t\t'use_featured_image' => __( 'Use as featured image', 'byadr' ),\n\t\t'insert_into_item' => __( 'Insert into item', 'byadr' ),\n\t\t'uploaded_to_this_item' => __( 'Uploaded to this item', 'byadr' ),\n\t\t'items_list' => __( 'Items list', 'byadr' ),\n\t\t'items_list_navigation' => __( 'Items list navigation', 'byadr' ),\n\t\t'filter_items_list' => __( 'Filter items list', 'byadr' ),\n\t);\n\t$args = array(\n\t\t'label' => __( 'FAQ', 'byadr' ),\n\t\t'description' => __( 'Preguntas frecuentes', 'byadr' ),\n\t\t'labels' => $labels,\n\t\t'supports' => array( 'title', 'editor', ),\n\t\t'hierarchical' => false,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'menu_position' => 25,\n\t\t'menu_icon' => 'dashicons-welcome-comments',\n\t\t'show_in_admin_bar' => true,\n\t\t'show_in_nav_menus' => false,\n\t\t'can_export' => true,\n\t\t'has_archive' => true,\t\t\n\t\t'exclude_from_search' => false,\n\t\t'publicly_queryable' => true,\n\t\t'capability_type' => 'page',\n\t);\n\tregister_post_type( 'faq', $args );\n\n}", "title": "" }, { "docid": "d5dc0ccdd3e7ec75e39e5ebd383bd29b", "score": "0.5601423", "text": "function register_taxonomies() {\n\t}", "title": "" }, { "docid": "d5dc0ccdd3e7ec75e39e5ebd383bd29b", "score": "0.5601423", "text": "function register_taxonomies() {\n\t}", "title": "" }, { "docid": "d5dc0ccdd3e7ec75e39e5ebd383bd29b", "score": "0.5601423", "text": "function register_taxonomies() {\n\t}", "title": "" }, { "docid": "3f1c8b8c782f41178cc1f999d846ca08", "score": "0.55802554", "text": "function ideasform_init()\n {\n register_post_type('idea', array(\n 'labels' => array(\n 'name' => \"Ideen\",\n 'singular_name' => \"Idee\",\n 'all_items' => \"Alle Ideen\",\n 'archives' => \"Ideen Archiv\",\n 'attributes' => \"Ideen Attribute\",\n 'insert_into_item' => \"Idee hinzufügen\",\n 'uploaded_to_this_item' => \"Upload\",\n 'featured_image' => \"Bild\",\n 'set_featured_image' => \"Bild setzen\",\n 'remove_featured_image' => \"Bild entfernen\",\n 'use_featured_image' => \"Als Bild benutzen\",\n 'filter_items_list' => \"Ideen filtern\",\n 'items_list_navigation' => \"Ideen navigation\",\n 'items_list' => \"Ideen\",\n 'new_item' => \"Neue Idee\",\n 'add_new' => \"Hinzufügen\",\n 'add_new_item' => \"Neue Idee hinzugügen\",\n 'edit_item' => \"Idee bearbeiten\",\n 'view_item' => \"Idee ansehen\",\n 'view_items' => \"Ideen ansehen\",\n 'search_items' => \"Suche\",\n 'not_found' => \"Keine Ergebnisse\",\n 'not_found_in_trash' => \"Keine Ideen im Papierkorb\",\n 'parent_item_colon' => \"Übergeordnete Idee\",\n 'menu_name' => \"Ideen\",\n ),\n 'public' => true,\n 'hierarchical' => false,\n 'show_ui' => true,\n 'show_in_nav_menus' => true,\n 'supports' => array('title', 'editor'),\n 'has_archive' => true,\n 'rewrite' => true,\n 'query_var' => true,\n 'menu_position' => null,\n 'menu_icon' => 'dashicons-lightbulb',\n 'show_in_rest' => true,\n 'rest_base' => 'idea',\n 'rest_controller_class' => 'WP_REST_Posts_Controller',\n ));\n }", "title": "" }, { "docid": "326efb5d5f3e1b219bafcf9502dbd3fa", "score": "0.55800515", "text": "function register_faq_custom_post_type()\n{\n $features = get_all_post_type_features('post', array(\n 'excerpt',\n 'comments',\n 'trackbacks',\n 'custom-fields',\n 'thumbnail',\n ));\n \n $features[] = 'page-attributes';\n \n $args = array(\n 'description' => 'Frequently Asked Questions (FAQ)',\n 'label' => __('FAQs', FAQ_MODULE_TEXT_DOMAIN),\n 'labels' => get_post_type_type_labels_config('faq', 'FAQ', 'FAQs'),\n 'public' => true,\n 'supports' => $features,\n 'menu_position' => 5,\n 'menu_icon' => 'dashicons-editor-help',\n 'has_archive' => true,\n // 'show_in_rest' => true,\n );\n\n register_post_type('faq', $args);\n}", "title": "" }, { "docid": "20527a3c0c2e2c5fb66ee6fbdbf0c588", "score": "0.5579428", "text": "function nomads_init_property() {\n\t\tregister_taxonomy(\n\t\t\t'property',\t\n\t\t\t'nomads_apartment',\n\t\t\tarray(\n\t\t\t\t'labels' => array(\n\t\t\t\t\t'name' \t\t\t\t=> __( 'Properties' ),\n\t\t\t\t\t'singular_name' \t=> __( 'Property' ),\n\t\t\t\t\t'menu_name'\t\t\t=> __( 'Properties' ),\n\t\t\t\t\t'add_new_item' \t\t=> __( 'Add New Property' )\n\t\t\t\t),\n\t\t\t\t'rewrite' => array( 'slug' => 'property' ),\n\t\t\t\t'hierarchical' => true\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "0ffcba7c1c98e6f41d8207da8beb0535", "score": "0.55704707", "text": "function jtsternberg_taxonomies_register() {\n\n\tjtsternberg_taxonomies();\n\n\tjtsternberg_orientation_select_metabox();\n}", "title": "" }, { "docid": "32dc57be3f7bee3388971cf91057e25a", "score": "0.5556836", "text": "function nomads_init_apartment() {\n\t register_post_type( 'nomads_apartment',\n\t array(\n\t 'labels' => array(\n\t 'name' \t\t\t\t=> __( 'Apartments' ),\n\t 'singular_name' \t=> __( 'Apartment' ),\n\t 'menu_name' \t\t=> __( 'Apartments' ),\n\t 'name_admin_bar' \t=> __( 'All Apartments' ),\n\t 'add_new' \t\t\t=> __( 'Add New Apartment' ),\n\t 'edit_item'\t\t \t=> __( 'Edit Apartment' ),\n\t 'new_item'\t\t\t=> __( 'Add New Apartment' ),\n\t 'view_item'\t\t\t=> __( 'View Apartment' ),\n\t 'search_item'\t\t=> __( 'Search Apartments' ),\n\t 'not_found'\t\t\t=> __( 'No Apartments Found' )\n\t ),\n\t 'public' => true,\n\t 'has_archive' => true,\n\t 'menu_icon' => 'dashicons-location',\n\t 'supports' => array( 'title', 'editor', 'thumbnail' )\n\t )\n\t );\n\t}", "title": "" }, { "docid": "a56735d17c497f08685c0b9110a002db", "score": "0.55539495", "text": "function cptui_register_my_taxes() {\n\n\t/**\n\t * Taxonomy: Capabilities.\n\t */\n\n\t$labels = array(\n\t\t\"name\" => __( \"Capabilities\", \"custom-post-type-ui\" ),\n\t\t\"singular_name\" => __( \"Capability\", \"custom-post-type-ui\" ),\n\t);\n\n\t$args = array(\n\t\t\"label\" => __( \"Capabilities\", \"custom-post-type-ui\" ),\n\t\t\"labels\" => $labels,\n\t\t\"public\" => true,\n\t\t\"publicly_queryable\" => true,\n\t\t\"hierarchical\" => false,\n\t\t\"show_ui\" => true,\n\t\t\"show_in_menu\" => true,\n\t\t\"show_in_nav_menus\" => true,\n\t\t\"query_var\" => true,\n\t\t\"rewrite\" => array( 'slug' => 'capability', 'with_front' => true, ),\n\t\t\"show_admin_column\" => false,\n\t\t\"show_in_rest\" => true,\n\t\t\"rest_base\" => \"capability\",\n\t\t\"rest_controller_class\" => \"WP_REST_Terms_Controller\",\n\t\t\"show_in_quick_edit\" => false,\n\t\t);\n\tregister_taxonomy( \"capability\", array( \"portfolio\" ), $args );\n}", "title": "" }, { "docid": "2926df333f1d1336155aa71cb96ce262", "score": "0.552839", "text": "function create_posttype()\n{\n register_post_type(\n 'occasions',\n // CPT Options\n array(\n 'labels' => array(\n 'name' => __('Véhicules'),\n 'singular_name' => __('Véhicules'),\n 'add_new_item' => __('Ajouter un nouveau véhicule'),\n 'edit_item' => __('Editer le véhicule'),\n 'update_item' => __('Modifier le véhicule'),\n 'search_items' => __('Rechercher un véhicule'),\n ),\n 'public' => true,\n 'has_archive' => 'true',\n 'rewrite' => array('slug' => 'occasions'),\n 'show_in_rest' => true,\n 'menu_icon' => 'dashicons-admin-tools',\n 'taxonomies' => array('category', 'post_tag'),\n )\n );\n}", "title": "" }, { "docid": "616602f6fb5e468a5ea66a2bbba711f8", "score": "0.5510267", "text": "public function register_taxonomy()\n\t{\n\n\t\tregister_taxonomy( 'faq-category', array( 'faq' ), array(\n\t\t\t'hierarchical' => TRUE,\n\t\t\t'labels' => array(\n\t\t\t'name' => _x( 'FAQ Categories', 'taxonomy general name', 'custom-post-type-faq' ),\n\t\t\t\t'singular_name' => _x( 'FAQ Category', 'taxonomy singular name', 'custom-post-type-faq' ),\n\t\t\t\t'search_items' => __( 'Search FAQ Categories', 'custom-post-type-faq' ),\n\t\t\t\t'all_items' => __( 'All FAQ Categories', 'custom-post-type-faq' ),\n\t\t\t\t'parent_item' => __( 'Parent FAQ Category', 'custom-post-type-faq' ),\n\t\t\t\t'parent_item_colon' => __( 'Parent FAQ Category:', 'custom-post-type-faq' ),\n\t\t\t\t'edit_item' => __( 'Edit FAQ Category', 'custom-post-type-faq' ),\n\t\t\t\t'update_item' => __( 'Update FAQ Category', 'custom-post-type-faq' ),\n\t\t\t\t'add_new_item' => __( 'Add New FAQ Category', 'custom-post-type-faq' ),\n\t\t\t\t'new_item_name' => __( 'New FAQ Category Name', 'custom-post-type-faq' ),\n\t\t\t\t'menu_name' => __( 'FAQ Categories', 'custom-post-type-faq' ),\n\t\t\t),\n\t\t\t'show_ui' => TRUE,\n\t\t\t'query_var' => TRUE,\n\t\t\t'rewrite' => array( 'slug' => _x( 'faq-category', 'Slug', 'custom-post-type-faq' ) ),\n\t\t\t'show_admin_column' => TRUE,\n\t\t));\n\n\t}", "title": "" }, { "docid": "8fc47e26ed3426e17e223d6ec8d6a381", "score": "0.5487309", "text": "public function register_taxonomy() {\n\n\t\tregister_taxonomy( 'wpforms_log_type', 'wpforms_log', array( 'public' => false ) );\n\t}", "title": "" }, { "docid": "ce73bb85e27ffa0876db525cb771e01b", "score": "0.5487008", "text": "function content_create_glossary_taxonomy(){\r\n if(!taxonomy_exists('alpha_cat')){\r\n register_taxonomy('alpha_cat',array('glossary'),array(\r\n 'show_ui' => false\r\n ));\r\n }\r\n}", "title": "" }, { "docid": "66c89d41900e425b4674c92d2ebb92cc", "score": "0.54864067", "text": "function create_ot_group() {\n register_post_type( 'ot-att-group',\n array(\n 'labels' => array(\n 'name' => 'Attendees Group',\n 'singular_name' => 'Attendees Group',\n 'add_new' => 'Add Attendees Group',\n 'add_new_item' => 'Add New Attendees Group',\n 'edit' => 'Edit',\n 'edit_item' => 'Edit Attendees Group',\n 'new_item' => 'New Attendees Group',\n 'view' => 'View',\n 'view_item' => 'View Attendees Group',\n 'search_items' => 'Search Attendees Group',\n 'not_found' => 'No Online Attendees Group found',\n 'not_found_in_trash' => 'No Attendees Group found in Trash',\n 'parent' => 'Parent Attendees Group'\n ),\n 'show_in_menu' => 'edit.php?post_type=online-course',\n 'public' => true,\n 'publicly_queryable' => false,\n 'exclude_from_search' => true,\n 'menu_position' => 15,\n 'supports' => array( 'title','custom-fields' ),\n 'taxonomies' => array( '' ),\n 'has_archive' => true,\n )\n );\n}", "title": "" }, { "docid": "11600a7b8f486287e54f0d51311cfc77", "score": "0.54858774", "text": "function create_ot_course() {\n register_post_type( 'online-course',\n array(\n 'labels' => array(\n 'name' => 'Online Courses',\n 'singular_name' => 'Online Course',\n 'add_new' => 'Add Online Course',\n 'add_new_item' => 'Add New Online Course',\n 'edit' => 'Edit',\n 'edit_item' => 'Edit Online Course',\n 'new_item' => 'New Online Course',\n 'view' => 'View',\n 'view_item' => 'View Online Course',\n 'search_items' => 'Search Online Courses',\n 'not_found' => 'No Online Courses found',\n 'not_found_in_trash' => 'No Online Courses found in Trash',\n 'parent' => 'Parent Online Course'\n ),\n\n 'public' => true,\n 'publicly_queryable' => true,\n 'menu_position' => 15,\n 'supports' => array( 'title', 'editor', 'comments', 'thumbnail', 'custom-fields' ),\n 'taxonomies' => array( '' ),\n 'menu_icon' => plugins_url( 'images/teaching.png', __FILE__ ),\n 'has_archive' => true,\n )\n );\n// flush_rewrite_rules();\n}", "title": "" }, { "docid": "314a8d19fee670ad7646ceceb7c9d14b", "score": "0.5485315", "text": "function region_taxonomy() {\n $labels = array(\n 'name' => 'Regions',\n 'singular_name' => 'Region',\n 'menu_name' => 'Regions',\n 'all_items' => 'All Regions',\n 'parent_item' => 'Parent Region',\n 'parent_item_colon' => 'Parent Region:',\n 'new_item_name' => 'New Region Name',\n 'add_new_item' => 'Add New Region',\n 'edit_item' => 'Edit Region',\n 'update_item' => 'Update Region',\n 'separate_items_with_commas' => 'Separate regions with commas',\n 'search_items' => 'Search region',\n 'add_or_remove_items' => 'Add or remove regions',\n 'choose_from_most_used' => 'Choose from the most used regions',\n );\n\n $rewrite = array(\n 'with_front' => true,\n 'slug' => 'region',\n );\n\n $args = array(\n 'labels' => $labels,\n 'rewrite' => $rewrite,\n 'hierarchical' => true,\n 'public' => true,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'show_in_nav_menus' => true,\n );\n\n register_taxonomy( 'region', 'post', $args );\n}", "title": "" }, { "docid": "c871ea93064e892fc12632cc17c44415", "score": "0.54753584", "text": "function custom_post_init() {\n $args = array(\n\t 'supports' => array('title', 'editor', 'thumbnail', 'page-attributes'),\n 'public' => true,\n 'label' => 'Portal Items',\n\t 'taxonomies' => array( 'category' ),\n\t 'hierarchical' => true,\n\t 'exclude_from_search' => true\n );\n register_post_type( 'portal', $args );\n\t $caseargs = array(\n\t 'supports' => array('title', 'editor', 'thumbnail', 'page-attributes'),\n 'public' => true,\n 'label' => 'Case Studies',\n\t 'taxonomies' => array( 'category' ),\n\t 'hierarchical' => true,\n );\n register_post_type( 'case', $caseargs );\n}", "title": "" }, { "docid": "35f8874ecccbae7f73a64917e33534e9", "score": "0.54464686", "text": "public function supplementTaxonomies();", "title": "" }, { "docid": "f87fe50be4bb4c7ad91c74ce3027f65a", "score": "0.54366297", "text": "function axiom_faq_type_init() \n{\n $labels = array(\n 'name' => __('FAQs' , 'default'),\n 'singular_name' => __('FAQ' , 'default'),\n 'add_new' => _x('Add New', 'FAQs labels', 'default'),\n 'all_items' => __('All FAQs' , 'default'),\n 'add_new_item' => __('Add New FAQ' , 'default'),\n 'edit_item' => __('Edit FAQ' , 'default'),\n 'new_item' => __('New FAQ' , 'default'),\n 'view_item' => __('View FAQs' , 'default'),\n 'search_items' => __('Search FAQs' , 'default'),\n 'not_found' => __('No FAQs found' , 'default'),\n 'not_found_in_trash'=> __('No FAQs found in Trash', 'default'), \n 'parent_item_colon' => ''\n );\n \n $args = array(\n 'labels' => $labels,\n 'public' => true,\n 'publicly_queryable'=> true,\n 'show_ui' => true, \n 'query_var' => true,\n 'rewrite' => array('slug' => _x( 'faq', \n 'FAQ main slug (“slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens. )', \n 'default'),\n 'with_front'=> true),\n 'capability_type' => 'post',\n 'hierarchical' => false,\n 'menu_position' => 34,\n 'supports' => array('title','editor','thumbnail', 'page-attributes')\n ); \n register_post_type( 'faq',$args);\n}", "title": "" }, { "docid": "4003cfc6c477d24fcf8370632f3cd3e9", "score": "0.54296225", "text": "function dhali_register_taxonomy() {\n\tregister_taxonomy_for_object_type( 'category', 'attachment' );\n\tregister_taxonomy_for_object_type( 'category', 'page' );\n}", "title": "" }, { "docid": "042d7411650a4ceb6636d593c8492b41", "score": "0.5405074", "text": "function new_taxonomy($name, $post_types, $options = array()) {\n\n if (!is_array($name)) {\n $name = array(\n \"singular\" => $name,\n \"plural\" => pluralize($name)\n );\n }\n\n $uc_plural = __(ucwords(preg_replace(\"/_/\", \" \", $name[\"plural\"])), \"wl\");\n $uc_singular = __(ucwords(preg_replace(\"/_/\", \" \", $name[\"singular\"])), \"wl\");\n\n $labels = array(\n \"name\" => $uc_singular,\n \"singular_name\" => $uc_singular,\n \"search_items\" => sprintf(__(\"Search %s\", \"wl\"), $uc_plural),\n \"all_items\" => sprintf(__(\"All %s\", \"wl\"), $uc_plural),\n \"parent_item\" => sprintf(__(\"Parent %s\", \"wl\"), $uc_singular),\n \"parent_item_colon\" => sprintf(__(\"Parent %s:\", \"wl\"), $uc_singular),\n \"edit_item\" => sprintf(__(\"Edit %s\", \"wl\"), $uc_singular),\n \"update_item\" => sprintf(__(\"Update %s\", \"wl\"), $uc_singular),\n \"add_new_item\" => sprintf(__(\"Add new %s\", \"wl\"), $uc_singular),\n \"new_item_name\" => sprintf(__(\"New %s Name\", \"wl\"), $uc_singular),\n \"menu_name\" => $uc_plural\n );\n\n $options = array_merge(array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_in_rest' => true,\n 'query_var' => true,\n 'rewrite' => array('slug' => $name[\"plural\"])\n ), $options);\n\n register_taxonomy(\n $name[\"singular\"],\n $post_types,\n $options\n );\n\n }", "title": "" }, { "docid": "48d4ff802f0bc2911fca1c60bf0ad0b3", "score": "0.5403666", "text": "public function register_taxonomy_args() {\n\t\t$exhibition_type_labels = array(\n\t\t\t'name' => _x( 'Exhibition Type', 'Taxonomy General Name', 'tmsc' ),\n\t\t\t'singular_name' => _x( 'Exhibition Type', 'Taxonomy Singular Name', 'tmsc' ),\n\t\t\t'menu_name' => __( 'Exhibition Types', 'tmsc' ),\n\t\t\t'all_items' => __( 'All Exhibition Types', 'tmsc' ),\n\t\t\t'new_item_name' => __( 'New Exhibition Type', 'tmsc' ),\n\t\t\t'add_new_item' => __( 'Add New Exhibition Type', 'tmsc' ),\n\t\t\t'edit_item' => __( 'Edit Exhibition Type', 'tmsc' ),\n\t\t\t'update_item' => __( 'Update Exhibition Type', 'tmsc' ),\n\t\t\t'view_item' => __( 'View Exhibition Type', 'tmsc' ),\n\t\t\t'separate_items_with_commas' => __( '', 'tmsc' ),\n\t\t\t'add_or_remove_items' => __( 'Add or remove items', 'tmsc' ),\n\t\t\t'choose_from_most_used' => __( 'Choose from the most used', 'tmsc' ),\n\t\t\t'popular_items' => __( 'Popular Exhibition Types', 'tmsc' ),\n\t\t\t'search_items' => __( 'Search Exhibition Types', 'tmsc' ),\n\t\t\t'not_found' => __( 'Not Found', 'tmsc' ),\n\t\t\t'no_terms' => __( 'No items', 'tmsc' ),\n\t\t\t'items_list' => __( 'Exhibition Types list', 'tmsc' ),\n\t\t\t'items_list_navigation' => __( 'Exhibition Types list navigation', 'tmsc' ),\n\t\t);\n\t\t$rewrite_args = array(\n\t\t\t'slug' => 'exhibition-type',\n\t\t\t'with_front' => true,\n\t\t\t'hierarchical' => true,\n\t\t\t'ep_mask' => 0,\n\t\t);\n\t\t$exhibition_type_args = array(\n\t\t\t'labels' => $exhibition_type_labels,\n\t\t\t'hierarchical' => true,\n\t\t\t'public' => true,\n\t\t\t'show_ui' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'show_in_nav_menus' => true,\n\t\t\t'show_in_rest' => true,\n\t\t\t'show_tagcloud' => false,\n\t\t\t'rewrite' => $rewrite_args,\n\t\t);\n\t\treturn $exhibition_type_args;\n\t}", "title": "" }, { "docid": "35beb2f28dafa5edda601ade847508c6", "score": "0.5392494", "text": "function setup() {\n\tregister_post_type( 'homes',\n\t\tarray(\n\t\t 'labels' => array(\n\t\t\t'name' => 'Homes',\n\t\t\t'singular_name' => 'homes'\n\t\t ),\n\t\t 'public' => true,\n\t\t 'has_archive' => false,\n\t\t 'menu_position' => 5,\n\t\t)\n\t);\n\n\tregister_taxonomy(\n\t\t'community',\n\t\t'homes',\n\t\tarray(\n\t\t\t'labels' => array(\n\t\t\t\t'name' => 'Community',\n\t\t\t\t'add_new_item' => 'Add New Community',\n\t\t\t\t'new_item_name' => \"New Community\"\n\t\t\t),\n\t\t\t'show_ui' => true,\n\t\t\t'show_tagcloud' => false,\n\t\t\t'hierarchical' => true, \n\t\t\t\"show_admin_column\" => true\n\t\t)\n\t);\n\n\tregister_taxonomy(\n\t\t'builders',\n\t\t'homes',\n\t\tarray(\n\t\t\t'labels' => array(\n\t\t\t\t'name' => 'Builders',\n\t\t\t\t'add_new_item' => 'Add New Builder',\n\t\t\t\t'new_item_name' => \"New Builder\"\n\t\t\t),\n\t\t\t'show_ui' => true,\n\t\t\t'show_tagcloud' => false,\n\t\t\t'hierarchical' => true, \n\t\t\t\"show_admin_column\" => true\n\t\t)\n\t);\n}", "title": "" }, { "docid": "0a0fdb7ce22b2d16cf7271a827ee21e0", "score": "0.53828603", "text": "function register_taxonomies(){\n register_taxonomy(\n 'type',\n 'services',\n array(\n 'label' => __( 'Type' ),\n 'rewrite' => array( 'slug' => 'type' ),\n 'hierarchical' => true,\n )\n );\n\t\t}", "title": "" }, { "docid": "d84797a071321f9d85aa3c4b2155298d", "score": "0.53734446", "text": "function go_register_tax_and_cpt() {\n\tgo_register_task_tax_and_cpt();\n\tgo_register_store_tax_and_cpt();\n\tflush_rewrite_rules();\n}", "title": "" }, { "docid": "38951fb4db2154abf40d0293c5d3c7a6", "score": "0.5369421", "text": "function create_post_type() {\n register_post_type( 'jugaad_tutorials',\n array(\n 'labels' => array(\n 'name' => _x( 'Tutorials', 'post type general name' ),\n 'singular_name' => _x( 'Tutorial' , 'post type singular name' ),\n 'add_new' => _x('Add New', 'tutorial'),\n 'add_new_item' => __('Add New Tutorial'),\n 'edit_item' => __('Edit Tutorial'),\n 'new_item' => __('New Tutorial'),\n 'all_items' => __('All Tutorials'),\n 'view_item' => __('View Tutorial'),\n 'search_items' => __('Search Tutorials'),\n 'not_found' => __( 'No tutorials found' ),\n 'not_found_in_trash' => __( 'No tutorials found in the Trash' ),\n 'parent_item_colon' => '',\n 'menu_name' => 'Tutorials'\n ),\n 'description' => 'Holds all the Tutorials for the DO section',\n 'public' => true,\n 'menu_position' => 4,\n 'supports' => array('title', 'editor', 'publicize', 'excerpt', 'thumbnail', 'comments', 'author'),\n 'has_archive' => true,\n 'rewrite' => array('slug' => 'do', 'with_front' => false),\n 'menu_icon' => 'dashicons-hammer',\n )\n );\n register_post_type( 'jugaad_events',\n array(\n 'labels' => array(\n 'name' => _x( 'Events', 'post type general name' ),\n 'singular_name' => _x( 'Event' , 'post type singular name' ),\n 'add_new' => _x('Add New', 'event'),\n 'add_new_item' => __('Add New Event'),\n 'edit_item' => __('Edit Event'),\n 'new_item' => __('New Event'),\n 'all_items' => __('All Events'),\n 'view_item' => __('View Event'),\n 'search_items' => __('Search Events'),\n 'not_found' => __( 'No events found' ),\n 'not_found_in_trash' => __( 'No events found in the Trash' ),\n 'parent_item_colon' => '',\n 'menu_name' => 'Events'\n ),\n 'description' => 'Holds all the Events for the GO section',\n 'public' => true,\n 'menu_position' => 5,\n 'supports' => array('title', 'editor', 'publicize', 'excerpt', 'thumbnail'),\n 'has_archive' => true,\n 'rewrite' => array('slug' => 'go', 'with_front' => false),\n 'menu_icon' => 'dashicons-tickets-alt',\n )\n );\n}", "title": "" }, { "docid": "31d4d57c08f9e6b3237b3c466f584278", "score": "0.5364534", "text": "function mk_register_post_types() {\n\tregister_post_type( 'course', [\n\t\t'labels' => [\n\t 'name' => 'Course',\n\t 'singular_name'=> 'Course',\n\t 'menu_name' => 'Courses',\n\t 'name_admin_bar' => 'Course',\n\t 'add_new' => 'Add New',\n\t 'add_new_item' => 'Add New Course',\n\t 'new_item' => 'New Course',\n\t 'edit_item' => 'Edit Course',\n\t 'view_item' => 'View Course',\n\t 'all_items' => 'All Courses',\n\t 'search_items' => 'Search Courses',\n\t 'parent_item_colon' => 'Parent Courses:',\n\t 'not_found' => 'No Courses found',\n\t 'not_found_in_trash' => 'No Courses found in Trash',\n\t 'archives' => 'Course archives',\n\t 'insert_into_item' => 'Insert into Course',\n\t 'uploaded_to_this_item' => 'Uploaded to this Course',\n\t 'filter_items_list' => 'Filter Courses list',\n\t 'items_list_navigation' => 'Courses list navigation',\n\t 'items_list' => 'Courses list',\n\n\t\t],\n\t\t'description' => 'A course educates about one overarching topic.',\n\t\t'public' => true,\n\t\t'show_in_rest' => false,\n\t\t'taxonomies' => [ 'subject' ],\n\t] );\n\n\tregister_post_type( 'lesson', [\n\t\t'labels' => [\n\t 'name' => 'Lesson',\n\t 'singular_name'=> 'Lesson',\n\t 'menu_name' => 'Lessons',\n\t 'name_admin_bar' => 'Lesson',\n\t 'add_new' => 'Add New',\n\t 'add_new_item' => 'Add New Lesson',\n\t 'new_item' => 'New Lesson',\n\t 'edit_item' => 'Edit Lesson',\n\t 'view_item' => 'View Lesson',\n\t 'all_items' => 'All Lessons',\n\t 'search_items' => 'Search Lessons',\n\t 'parent_item_colon' => 'Parent Lessons:',\n\t 'not_found' => 'No Lessons found',\n\t 'not_found_in_trash' => 'No Lessons found in Trash',\n\t 'archives' => 'Lesson archives',\n\t 'insert_into_item' => 'Insert into Lesson',\n\t 'uploaded_to_this_item' => 'Uploaded to this Lesson',\n\t 'filter_items_list' => 'Filter Lessons list',\n\t 'items_list_navigation' => 'Lessons list navigation',\n\t 'items_list' => 'Lessons list',\n\n\t\t],\n\t\t'description' => 'A Lesson educates about one thing in a Course.',\n\t\t'public' => true,\n\t\t'show_in_rest' => false,\n\t\t'taxonomies' => [],\n\t] );\n\n\tregister_post_type( 'test', [\n\t\t'labels' => [\n\t 'name' => 'Test',\n\t 'singular_name'=> 'Test',\n\t 'menu_name' => 'Tests',\n\t 'name_admin_bar' => 'Test',\n\t 'add_new' => 'Add New',\n\t 'add_new_item' => 'Add New Test',\n\t 'new_item' => 'New Test',\n\t 'edit_item' => 'Edit Test',\n\t 'view_item' => 'View Test',\n\t 'all_items' => 'All Tests',\n\t 'search_items' => 'Search Tests',\n\t 'parent_item_colon' => 'Parent Tests:',\n\t 'not_found' => 'No Tests found',\n\t 'not_found_in_trash' => 'No Tests found in Trash',\n\t 'archives' => 'Test archives',\n\t 'insert_into_item' => 'Insert into Test',\n\t 'uploaded_to_this_item' => 'Uploaded to this Test',\n\t 'filter_items_list' => 'Filter Tests list',\n\t 'items_list_navigation' => 'Tests list navigation',\n\t 'items_list' => 'Tests list',\n\t\t],\n\t\t'description' => 'A Test is an assessment in a course.',\n\t\t'public' => true,\n\t\t'show_in_rest' => false,\n\t\t'taxonomies' => [],\n\t] );\n}", "title": "" }, { "docid": "c2f826792e4153e28ec20498ad83bd8d", "score": "0.5360556", "text": "function create_ot_course_regis() {\n register_post_type( 'ot-course-regis',\n array(\n 'labels' => array(\n 'name' => 'Course Registration',\n 'singular_name' => 'Course Registration',\n 'add_new' => 'Add New',\n 'add_new_item' => 'Add New Course Registration',\n 'edit' => 'Edit',\n 'edit_item' => 'Edit Course Registration',\n 'new_item' => 'New Course Registration',\n 'view' => 'View',\n 'view_item' => 'View Course Registration',\n 'search_items' => 'Search Course Registration',\n 'not_found' => 'No Course Registration found',\n 'not_found_in_trash' => 'No Course Registration found in Trash',\n 'parent' => 'Parent Course Registration'\n ),\n 'show_in_menu' => 'edit.php?post_type=online-course',\n 'public' => true,\n 'publicly_queryable' => false,\n 'exclude_from_search' => true,\n 'menu_position' => 1,\n 'supports' => array( 'custom-fields' ),\n 'taxonomies' => array( '' ),\n 'has_archive' => true, \n )\n );\n}", "title": "" }, { "docid": "7f85c16ce72ba6e1a8a34b5491a7474c", "score": "0.5358622", "text": "function create_post_type_faq()\n{\n\n register_post_type( 'Journal', \n array(\n 'labels' => array(\n 'name' => __( 'Journal' ),\n 'singular_name' => __( 'Journal' ),\n 'add_new' => __( 'Add New' ),\n 'add_new_item' => __( 'Add New Journal' ),\n 'edit_item' => __( 'Edit Journal' ),\n 'new_item' => __( 'New Journal' ),\n 'view_item' => __( 'View Journal' ),\n 'not_found' => __( 'Sorry, we couldn\\'t find the Journal you are looking for.' )\n ),\n 'public' => true,\n 'publicly_queryable' => true,\n 'exclude_from_search' => true,\n 'has_archive' => true,\n 'hierarchical' => false, \n 'capability_type' => 'post',\n 'menu_icon' => 'dashicons-id-alt', \n 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' )\n\n\n\n\n ) \n ); \n register_post_type( 'Events', \n array(\n 'labels' => array(\n 'name' => __( 'Events' ),\n 'singular_name' => __( 'Events' ),\n 'add_new' => __( 'Add New' ),\n 'add_new_item' => __( 'Add New Events' ),\n 'edit_item' => __( 'Edit Events' ),\n 'new_item' => __( 'New Events' ),\n 'view_item' => __( 'View Events' ),\n 'not_found' => __( 'Sorry, we couldn\\'t find the Events you are looking for.' )\n ),\n 'public' => true,\n 'publicly_queryable' => true,\n 'exclude_from_search' => true,\n 'has_archive' => true,\n 'hierarchical' => false, \n 'capability_type' => 'post',\n 'menu_icon' => 'dashicons-id-alt', \n 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' )\n\n\n\n\n ) \n ); \n register_post_type( 'News', \n array(\n 'labels' => array(\n 'name' => __( 'News' ),\n 'singular_name' => __( 'News' ),\n 'add_new' => __( 'Add New' ),\n 'add_new_item' => __( 'Add New News' ),\n 'edit_item' => __( 'Edit News' ),\n 'new_item' => __( 'New News' ),\n 'view_item' => __( 'View News' ),\n 'not_found' => __( 'Sorry, we couldn\\'t find the News you are looking for.' )\n ),\n 'public' => true,\n 'publicly_queryable' => true,\n 'exclude_from_search' => true,\n 'has_archive' => true,\n 'hierarchical' => false, \n 'capability_type' => 'post',\n 'menu_icon' => 'dashicons-id-alt', \n 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' )\n\n\n\n\n ) \n ); \n register_post_type( 'Notice', \n array(\n 'labels' => array(\n 'name' => __( 'Notice' ),\n 'singular_name' => __( 'Notice' ),\n 'add_new' => __( 'Add New' ),\n 'add_new_item' => __( 'Add New Notice' ),\n 'edit_item' => __( 'Edit Notice' ),\n 'new_item' => __( 'New Notice' ),\n 'view_item' => __( 'View Notice' ),\n 'not_found' => __( 'Sorry, we couldn\\'t find the Notice you are looking for.' )\n ),\n 'public' => true,\n 'publicly_queryable' => true,\n 'exclude_from_search' => true,\n 'has_archive' => true,\n 'hierarchical' => false, \n 'capability_type' => 'post',\n 'menu_icon' => 'dashicons-id-alt', \n 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' )\n\n\n\n\n ) \n ); \n}", "title": "" }, { "docid": "cd8e53cefdf6f422054832123bfb1144", "score": "0.5351814", "text": "function fandom_init() {\n $args = array(\n 'label' => 'Fandom',\n 'public' => true,\n 'show_ui' => true,\n 'capability_type' => 'post',\n 'hierarchical' => false,\n 'rewrite' => array('slug' => 'fandom'),\n 'query_var' => true,\n 'menu_icon' => 'dashicons-video-alt',\n 'supports' => array(\n 'title',\n 'editor',\n 'excerpt',\n 'trackbacks',\n 'custom-fields',\n 'comments',\n 'revisions',\n 'thumbnail',\n 'author',\n 'page-attributes',),\n 'taxonomies' => array( 'fandom_category'),\n );\n register_post_type( 'fandom', $args );\n}", "title": "" }, { "docid": "6a545dc5ea3aaad641289e5b44bcd1e9", "score": "0.5351811", "text": "public static function register_story() {\n register_post_type(self::$post_type, [\n 'labels' => [\n 'name' => __('Истории', 'knife-theme'),\n 'singular_name' => __('История', 'knife-theme'),\n 'menu_name' => __('Истории', 'knife-theme'),\n 'name_admin_bar' => __('Историю', 'knife-theme'),\n 'parent_item_colon' => __('Родительская история:', 'knife-theme'),\n 'all_items' => __('Все истории', 'knife-theme'),\n 'add_new_item' => __('Добавить новую историю', 'knife-theme'),\n 'add_new' => __('Добавить новую', 'knife-theme'),\n 'new_item' => __('Новая история', 'knife-theme'),\n 'edit_item' => __('Редактировать историю', 'knife-theme'),\n 'update_item' => __('Обновить историю', 'knife-theme'),\n 'view_item' => __('Просмотреть историю', 'knife-theme'),\n 'view_items' => __('Просмотреть истории', 'knife-theme'),\n 'search_items' => __('Искать историю', 'knife-theme'),\n 'insert_into_item' => __('Добавить в историю', 'knife-theme'),\n 'not_found' => __('Историй не найдено', 'knife-theme'),\n 'not_found_in_trash' => __('В корзине ничего не найдено', 'knife-theme')\n ],\n 'label' => __('Истории', 'knife-theme'),\n 'description' => __('Лучшие фото-истории интернета', 'knife-theme'),\n 'supports' => ['title', 'thumbnail', 'revisions', 'excerpt', 'author'],\n 'hierarchical' => true,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 9,\n 'menu_icon' => 'dashicons-slides',\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => true,\n 'exclude_from_search' => false,\n 'publicly_queryable' => true,\n 'capability_type' => 'post',\n ]);\n }", "title": "" }, { "docid": "0e20679176877833dacbb8b78bd91eb4", "score": "0.53495705", "text": "function register_post_types() {\n }", "title": "" }, { "docid": "b75c6077c52b27e4a04e48e607228331", "score": "0.53494114", "text": "function user_region_taxonomy() {\n $labels = array(\n 'name' => 'Regions',\n 'singular_name' => 'Region',\n 'menu_name' => 'Regions',\n 'all_items' => 'All Regions',\n 'parent_item' => 'Parent Region',\n 'parent_item_colon' => 'Parent Region:',\n 'new_item_name' => 'New Region Name',\n 'add_new_item' => 'Add New Region',\n 'edit_item' => 'Edit Region',\n 'update_item' => 'Update Region',\n 'separate_items_with_commas' => 'Separate regions with commas',\n 'search_items' => 'Search region',\n 'add_or_remove_items' => 'Add or remove regions',\n 'choose_from_most_used' => 'Choose from the most used regions',\n );\n\n $rewrite = array(\n 'with_front' => true,\n 'slug' => 'user_region',\n );\n\n $capabilities = array(\n 'manage_terms' => 'edit_users',\n 'edit_terms' => 'edit_users',\n 'delete_terms' => 'edit_users',\n 'assign_terms' => 'read',\n );\n\n $args = array(\n 'labels' => $labels,\n 'rewrite' => $rewrite,\n 'capabilities' => $capabilities,\n 'hierarchical' => true,\n 'public' => true,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'show_in_nav_menus' => true,\n );\n\n register_taxonomy( 'user_region', 'user', $args );\n}", "title": "" }, { "docid": "b6944f98ac11780ed0c91ea1fc8ed781", "score": "0.53408724", "text": "public function create_post_type() {\n\n /* $labels = array(\n 'name' => __( 'Glossary Terms', WPG_TEXTDOMAIN ),\n 'singular_name' => __( 'Glossary Term', WPG_TEXTDOMAIN ),\n 'add_new' => __( 'Add New Term', WPG_TEXTDOMAIN ),\n 'add_new_item' => __( 'Add New Glossary Term', WPG_TEXTDOMAIN ),\n 'edit_item' => __( 'Edit Glossary Term', WPG_TEXTDOMAIN ),\n 'new_item' => __( 'Add New Glossary Term', WPG_TEXTDOMAIN ),\n 'view_item' => __( 'View Glossary Term', WPG_TEXTDOMAIN ),\n 'search_items' => __( 'Search Glossary Terms', WPG_TEXTDOMAIN ),\n 'not_found' => __( 'No Glossary Terms found', WPG_TEXTDOMAIN ),\n 'not_found_in_trash' => __( 'No Glossary Terms found in trash', WPG_TEXTDOMAIN )\n);*/\n\n$labels = array(\n \n \n 'name' => __( 'Projects', WPG_TEXTDOMAIN ),\n 'singular_name' => __( 'Project', WPG_TEXTDOMAIN ),\n 'add_new' => __( 'Add New Project', WPG_TEXTDOMAIN ),\n 'add_new_item' => __( 'Add New Ovoid Project', WPG_TEXTDOMAIN ),\n 'edit_item' => __( 'Edit Ovoid Project', WPG_TEXTDOMAIN ),\n 'new_item' => __( 'Add New Ovoid Project', WPG_TEXTDOMAIN ),\n 'view_item' => __( 'View Ovoid Project', WPG_TEXTDOMAIN ),\n 'search_items' => __( 'Search Ovoid Projects', WPG_TEXTDOMAIN ),\n 'not_found' => __( 'No Ovoid Projects found', WPG_TEXTDOMAIN ),\n 'not_found_in_trash' => __( 'No Ovoid Projects found in trash', WPG_TEXTDOMAIN )\n \n );\n\n\n\n register_post_type( $this->custom_type,\n array(\n \n 'labels' => $labels, \n 'public' => true,\n 'has_archive' => true,\n 'rewrite' => array('slug' => $this->custom_type),\n 'supports' => array( 'title','editor','thumbnail' ),\n ) \n );\n register_taxonomy_for_object_type( 'category', 'posts' );\n }", "title": "" }, { "docid": "43829e2e13819b328408928915b658ba", "score": "0.5339783", "text": "function mindset_register_taxonomies() {\n $labels = array(\n 'name' => _x( 'Work Types', 'taxonomy general name' ),\n 'singular_name' => _x( 'Work Type', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Work Types' ),\n 'all_items' => __( 'All Work Types' ),\n 'parent_item' => __( 'Parent Work Type' ),\n 'parent_item_colon' => __( 'Parent Work Type:' ),\n 'edit_item' => __( 'Edit Work Type' ),\n 'update_item' => __( 'Update Work Type' ),\n 'add_new_item' => __( 'Add New Work Type' ),\n 'new_item_name' => __( 'New Work Type Name' ),\n 'menu_name' => __( 'Work Type' ),\n );\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'work-types' ),\n );\n register_taxonomy( 'work-type', array( 'work' ), $args ); \n // (name, which custom post type, $arg) \n\n // Add Featured taxonomy\n $labels = array(\n 'name' => _x( 'Featured', 'taxonomy general name' ),\n 'singular_name' => _x( 'Featured', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Featured' ),\n 'all_items' => __( 'All Featured' ),\n 'parent_item' => __( 'Parent Featured' ),\n 'parent_item_colon' => __( 'Parent Featured:' ),\n 'edit_item' => __( 'Edit Featured' ),\n 'update_item' => __( 'Update Featured' ),\n 'add_new_item' => __( 'Add New Featured' ),\n 'new_item_name' => __( 'New Work Featured' ),\n 'menu_name' => __( 'Featured' ),\n );\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'featured' ),\n );\n register_taxonomy( 'featured', array( 'work' ), $args ); \n\n // Add partnerlink taxonomy\n $labels = array(\n 'name' => _x( 'Partner Types', 'taxonomy general name' ),\n 'singular_name' => _x( 'Partner Types', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Partner Types' ),\n 'all_items' => __( 'All Partner Types' ),\n 'parent_item' => __( 'Parent Partner Types' ),\n 'parent_item_colon' => __( 'Parent Partner Types:' ),\n 'edit_item' => __( 'Edit Partner Types' ),\n 'update_item' => __( 'Update Partner Types' ),\n 'add_new_item' => __( 'Add New Partner Types' ),\n 'new_item_name' => __( 'New Work Partner Types' ),\n 'menu_name' => __( 'Partner Types' ),\n );\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'Partner Types' ),\n );\n register_taxonomy( 'partner-type', array( 'partner-link' ), $args ); \n\n\n\n }", "title": "" }, { "docid": "aa6e8864c7607ceaa0a85d474defe126", "score": "0.53344715", "text": "function register_post_types() {\n\n }", "title": "" }, { "docid": "689bb60d66f546ccc7ae1d5ab2f94463", "score": "0.5334275", "text": "function location_init() \n{\n\t$name ='location';\n\t$object_type = array('cs-course', \n\t\t\t\t\t\t'maths-course', \n\t\t\t\t\t\t'ams-course', \n\t\t\t\t\t\t'person');\n\t$args = array(\n\t\t'label'=> 'Locations',\n\t\t'hierarchical' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => false,\n\t\t'show_in_nav_menus' => true\t\t\n\t);\n\tregister_taxonomy( $name, $object_type, $args);\n}", "title": "" }, { "docid": "0e4fd1588a03a3fff7114164bf6b4520", "score": "0.533261", "text": "function murrietamusicstudio_interview_questions() {\n\t\t$args = array(\n\t\t\t\"labels\" => array(\n\t\t\t\t\"name\" => __( \"Interview Questions\" ),\n\t\t\t\t\"singular_name\" => __( \"Interview Question\" )\n\t\t\t),\n\t\t\t\"description\" => __( \"Description\", \"murrietamusicstudio\" ),\n\t\t\t\"public\" => true,\n\t\t\t\"publicly_queryable\" => true,\n\t\t\t\"rewrite\" => array( \"slug\" => \"interview-questions\"),\n\t\t\t\"show_ui\" => true,\n\t\t\t\"menu_postion\" => 20\n\t\t\t\n\t\t);\n\t\t\n\t\tregister_post_type( \"interview-questions\", $args);\n\t}", "title": "" }, { "docid": "2a5949d870fb2266b533b4d2c975a764", "score": "0.53296953", "text": "function addSnowAndGarlandAdminArea(&$admin_areas)\n{\n global $txt;\n loadLanguage('SnowAndGarland/SnowAndGarland');\n\n $admin_areas['config']['areas']['modsettings']['subsections']['snow_and_garland'] = array($txt['SnowAndGarland']);\n}", "title": "" }, { "docid": "cfe365ac3869fbcdad5c3472c5655143", "score": "0.5326375", "text": "function _exa_snippets_register_post_type() {\n\t$labels = array(\n\t\t'name' => _x( 'Post Types', 'Post Type General Name', 'Exa' ),\n\t\t'singular_name' => _x( 'Post Type', 'Post Type Singular Name', 'Exa' ),\n\t\t'menu_name' => __( 'Snippets', 'Exa' ),\n\t\t'name_admin_bar' => __( 'Snippet', 'Exa' ),\n\t\t'archives' => __( 'Snippet Archives', 'Exa' ),\n\t\t'attributes' => __( 'Snippet Attributes', 'Exa' ),\n\t\t'parent_item_colon' => __( 'Parent Snippet:', 'Exa' ),\n\t\t'all_items' => __( 'All Snippets', 'Exa' ),\n\t\t'add_new_item' => __( 'Create New Snippet', 'Exa' ),\n\t\t'add_new' => __( 'Create New', 'Exa' ),\n\t\t'new_item' => __( 'New Snippet', 'Exa' ),\n\t\t'edit_item' => __( 'Edit Snippet', 'Exa' ),\n\t\t'update_item' => __( 'Update Snippet', 'Exa' ),\n\t\t'view_item' => __( 'View Snippet', 'Exa' ),\n\t\t'view_items' => __( 'View Snippets', 'Exa' ),\n\t\t'search_items' => __( 'Search Snippet', 'Exa' ),\n\t\t'not_found' => __( 'Not found', 'Exa' ),\n\t\t'not_found_in_trash' => __( 'Not found in Trash', 'Exa' ),\n\t\t'featured_image' => __( 'Featured Image', 'Exa' ),\n\t\t'set_featured_image' => __( 'Set featured image', 'Exa' ),\n\t\t'remove_featured_image' => __( 'Remove featured image', 'Exa' ),\n\t\t'use_featured_image' => __( 'Use as featured image', 'Exa' ),\n\t\t'insert_into_item' => __( 'Insert into Snippet', 'Exa' ),\n\t\t'uploaded_to_this_item' => __( 'Uploaded to this Snippet', 'Exa' ),\n\t\t'items_list' => __( 'Snippets list', 'Exa' ),\n\t\t'items_list_navigation' => __( 'Snippets list navigation', 'Exa' ),\n\t\t'filter_items_list' => __( 'Filter Snippets list', 'Exa' ),\n\t);\n\t$args = array(\n\t\t'label' => __( 'Post Type', 'Exa' ),\n\t\t'description' => __( 'Post Type Description', 'Exa' ),\n\t\t'labels' => $labels,\n\t\t'supports' => array( 'title' ),\n\t\t'taxonomies' => array(),\n\t\t'hierarchical' => false,\n\t\t'public' => false,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'menu_position' => 5,\n\t\t'menu_icon' => 'dashicons-editor-code',\n\t\t'show_in_admin_bar' => true,\n\t\t'show_in_nav_menus' => false,\n\t\t'can_export' => false,\n\t\t'has_archive' => false,\t\t\n\t\t'exclude_from_search' => true,\n\t\t'publicly_queryable' => false,\n\t\t'rewrite' \t\t\t=> array( 'slug' => false, 'with_front' => false ), \n\t\t'capability_type' => 'post',\n\t\t'show_in_rest' => false,\n\n\t);\n\tregister_post_type( 'snippet', $args );\n}", "title": "" }, { "docid": "95f03425041e9e35e9efec4006607916", "score": "0.53154176", "text": "abstract function register_taxonomy_args();", "title": "" }, { "docid": "7c874ac23b98ac645b467400bd344c83", "score": "0.5296951", "text": "function register_faq_cpt() {\n\n $labels = array(\n 'name' => _x( 'FAQs', 'faq' ),\n 'singular_name' => _x( 'FAQ', 'faq' ),\n 'add_new' => _x( 'Add New', 'faq' ),\n 'add_new_item' => _x( 'Add New FAQ', 'faq' ),\n 'edit_item' => _x( 'Edit FAQ', 'faq' ),\n 'new_item' => _x( 'New FAQ', 'faq' ),\n 'view_item' => _x( 'View FAQ', 'faq' ),\n 'search_items' => _x( 'Search FAQs', 'faq' ),\n 'not_found' => _x( 'No faqs found', 'faq' ),\n 'not_found_in_trash' => _x( 'No faqs found in Trash', 'faq' ),\n 'parent_item_colon' => _x( 'Parent FAQ:', 'faq' ),\n 'menu_name' => _x( 'FAQs', 'faq' ),\n );\n\n $args = array(\n 'labels' => $labels,\n 'hierarchical' => false,\n\n 'supports' => array( 'title', 'editor' ),\n 'public' => false,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 20,\n 'menu_icon' => plugin_dir_url( __FILE__ ) . 'images/faq-menu-small.png',\n 'show_in_nav_menus' => true,\n 'publicly_queryable' => true,\n 'exclude_from_search' => false,\n 'has_archive' => false,\n 'query_var' => true,\n 'can_export' => true,\n 'rewrite' => true,\n 'capability_type' => 'post'\n );\n\n register_post_type( 'faq', $args );\n }", "title": "" }, { "docid": "b6b000e362501443075641fa0426b28d", "score": "0.5285675", "text": "public function register_tipo_for_cpt()\n {\n $taxonomy_slug = 'tipo';\n $post_type = $this->get_slug();\n\n $labels = array(\n 'name' => __('Tipos'),\n 'singular_name' => __('Tipo'),\n 'search_items' => __('Pesquisar tipos'),\n 'popular_items' => __('Tipos populares'),\n 'all_items' => __('Todos os tipos'),\n 'parent_items' => __('Tipos superiores'),\n 'parent_item_colon' => __('Tipos superiores:'),\n 'edit_item' => __('Editar tipo'),\n 'view_item' => __('Ver tipo'),\n 'update_item' => __('Actualizar tipo'),\n 'add_new_item' => __('Adicionar novo tipo'),\n 'new_item_name' => __('Novo tipo'),\n 'separate_items_with_commas' => __('Separar tipos com vírgulas'),\n 'add_or_remove_items' => __('Adicionar ou remover tipo'),\n 'choose_from_most_used' => __('Escolher dos tipos mais usados'),\n 'not_found' => __('Nenhum tipo encontrado'),\n 'no_terms' => __('Sem tipo'),\n 'filter_by_item' => __('Filtrar por tipo'),\n 'back_to_items' => __('Voltar aos tipos'),\n );\n\n register_taxonomy(\n $taxonomy_slug,\n $post_type,\n array(\n 'labels' => $labels,\n 'description' => __('Tipos de Veículos transformados'),\n 'public' => true,\n 'hierarchical' => true,\n 'show_in_rest' => true,\n 'show_admin_column' => true,\n // 'meta_box_cb' => [$this, ''],\n 'rewrite' => array('slug' => $taxonomy_slug, 'with_front' => false),\n 'sort' => true\n )\n );\n }", "title": "" }, { "docid": "0f938e5072d6bd582f4c3b25621f543e", "score": "0.5285105", "text": "public function register_post_type()\n\t{\n\n\t\tregister_post_type( 'faq', array(\n\t\t\t\t'labels' => array(\n\t\t\t\t'name' => _x( 'FAQ', 'post type general name', 'custom-post-type-faq' ),\n\t\t\t\t'singular_name' => _x( 'FAQ', 'post type singular name', 'custom-post-type-faq' ),\n\t\t\t\t'add_new' => _x( 'Add New', 'FAQ', 'custom-post-type-faq' ),\n\t\t\t\t'add_new_item' => __( 'Add New FAQ', 'custom-post-type-faq' ),\n\t\t\t\t'edit_item' => __( 'Edit FAQ', 'custom-post-type-faq' ),\n\t\t\t\t'new_item' => __( 'New FAQ', 'custom-post-type-faq' ),\n\t\t\t\t'view_item' => __( 'View FAQ', 'custom-post-type-faq' ),\n\t\t\t\t'view_items' => __('View FAQ'),\n\t\t\t\t'search_items' => __( 'Search FAQ', 'custom-post-type-faq' ),\n\t\t\t\t'not_found' => __( 'No FAQ found', 'custom-post-type-faq' ),\n\t\t\t\t'not_found_in_trash' => __( 'No FAQ found in Trash', 'custom-post-type-faq' ),\n\t\t\t\t'parent_item_colon' => __('Parent FAQ:', 'custom-post-type-faq' ),\n\t\t\t\t'all_items' => __( 'All FAQ', 'custom-post-type-faq' ),\n\t\t\t\t'archives' => __( 'FAQ Archive', 'custom-post-type-faq' ),\n\t\t\t\t'attributes' => __( 'FAQ Attributes', 'custom-post-type-faq' ),\n\t\t\t\t'insert_into_item' => __( 'Insert into faq', 'custom-post-type-faq' ),\n\t\t\t\t'uploaded_to_this_item' => __( 'Uploaded to this faq', 'custom-post-type-faq' ),\n\t\t\t\t'featured_image' => __( 'Featured Image', 'custom-post-type-faq' ),\n\t\t\t\t'set_featured_image' => __( 'Set featured image', 'custom-post-type-faq' ),\n\t\t\t\t'remove_featured_image' => __( 'Remove featured image', 'custom-post-type-faq' ),\n\t\t\t\t'use_featured_image' => __( 'Use as featured image', 'custom-post-type-faq' ),\n\t\t\t\t'filter_items_list' => __( 'Filter faq list', 'custom-post-type-faq' ),\n\t\t\t\t'items_list_navigation' => __( 'FAQ list navigation', 'custom-post-type-faq' ),\n\t\t\t\t'items_list' => __( 'FAQ list', 'custom-post-type-faq' ),\n\t\t\t\t'menu_name' => __( 'FAQ', 'custom-post-type-faq' )\n\t\t\t),\n\t\t\t'public' => TRUE,\n\t\t\t'publicly_queryable' => TRUE,\n\t\t\t'show_ui' => TRUE,\n\t\t\t'show_in_menu' => TRUE,\n\t\t\t'query_var' => TRUE,\n\t\t\t'rewrite' => array( 'slug' => _x( 'faq', 'Post Type Slug', 'custom-post-type-faq' ) ),\n\t\t\t'capability_type' => 'post',\n\t\t\t'has_archive' => TRUE,\n\t\t\t'hierarchical' => TRUE,\n\t\t\t'menu_position' => NULL,\n\t\t\t'supports' => array('title', 'editor', 'thumbnail', 'page-attributes' ),\n\t\t\t'menu_icon' => 'dashicons-lightbulb'\n\t\t) );\n\n\t}", "title": "" }, { "docid": "57b5779a5cca37df402a2eb2b5210c1a", "score": "0.5281565", "text": "function gutenberg_create_wp_area_post_type() {\n\tregister_post_type(\n\t\t'wp_area',\n\t\tarray(\n\t\t\t'description' => __( 'Experimental custom post type that will store block areas referenced by themes.', 'gutenberg' ),\n\t\t\t'labels' => array(\n\t\t\t\t'name' => _x( 'Block Area (Experimental)', 'post type general name', 'gutenberg' ),\n\t\t\t\t'singular_name' => _x( 'Block Area (Experimental)', 'post type singular name', 'gutenberg' ),\n\t\t\t\t'menu_name' => _x( 'Block Areas', 'admin menu', 'gutenberg' ),\n\t\t\t\t'name_admin_bar' => _x( 'Block Area', 'add new on admin bar', 'gutenberg' ),\n\t\t\t\t'add_new' => _x( 'Add New', 'Block', 'gutenberg' ),\n\t\t\t\t'add_new_item' => __( 'Add New Block Area', 'gutenberg' ),\n\t\t\t\t'new_item' => __( 'New Block Area', 'gutenberg' ),\n\t\t\t\t'edit_item' => __( 'Edit Block Area', 'gutenberg' ),\n\t\t\t\t'view_item' => __( 'View Block Area', 'gutenberg' ),\n\t\t\t\t'all_items' => __( 'All Block Areas', 'gutenberg' ),\n\t\t\t\t'search_items' => __( 'Search Block Areas', 'gutenberg' ),\n\t\t\t\t'not_found' => __( 'No block area found.', 'gutenberg' ),\n\t\t\t\t'not_found_in_trash' => __( 'No block areas found in Trash.', 'gutenberg' ),\n\t\t\t\t'filter_items_list' => __( 'Filter block areas list', 'gutenberg' ),\n\t\t\t\t'items_list_navigation' => __( 'Block areas list navigation', 'gutenberg' ),\n\t\t\t\t'items_list' => __( 'Block areas list', 'gutenberg' ),\n\t\t\t\t'item_published' => __( 'Block area published.', 'gutenberg' ),\n\t\t\t\t'item_published_privately' => __( 'Block area published privately.', 'gutenberg' ),\n\t\t\t\t'item_reverted_to_draft' => __( 'Block area reverted to draft.', 'gutenberg' ),\n\t\t\t\t'item_scheduled' => __( 'Block area scheduled.', 'gutenberg' ),\n\t\t\t\t'item_updated' => __( 'Block area updated.', 'gutenberg' ),\n\t\t\t),\n\t\t\t'public' => false,\n\t\t\t'show_ui' => false,\n\t\t\t'show_in_menu' => false,\n\t\t\t'show_in_rest' => true,\n\t\t\t'rest_base' => '__experimental/block-areas',\n\t\t\t'capabilities' => array(\n\t\t\t\t'read' => 'edit_posts',\n\t\t\t\t'create_posts' => 'edit_theme_options',\n\t\t\t\t'edit_posts' => 'edit_theme_options',\n\t\t\t\t'edit_published_posts' => 'edit_theme_options',\n\t\t\t\t'delete_published_posts' => 'edit_theme_options',\n\t\t\t\t'edit_others_posts' => 'edit_theme_options',\n\t\t\t\t'delete_others_posts' => 'edit_theme_options',\n\t\t\t),\n\t\t\t'map_meta_cap' => true,\n\t\t\t'supports' => array(\n\t\t\t\t'title',\n\t\t\t\t'editor',\n\t\t\t),\n\t\t)\n\t);\n}", "title": "" }, { "docid": "1e3a15957f0b6e384512d96fab5691b2", "score": "0.52801913", "text": "static function register_taxonomies()\n {\n\n $labels = array(\n 'name' => _x('Cidades', 'taxonomy general name', 'SLUG'),\n 'singular_name' => _x('Cidade', 'taxonomy singular name', 'SLUG'),\n 'search_items' => __('Buscar cidade', 'SLUG'),\n 'all_items' => __('Todas as cidades', 'SLUG'),\n 'parent_item' => __('Cidade mãe', 'SLUG'),\n 'parent_item_colon' => __('Cidade mãe:', 'SLUG'),\n 'edit_item' => __('Editar cidade', 'SLUG'),\n 'update_item' => __('Atualizar cidade', 'SLUG'),\n 'add_new_item' => __('Adiciona nova cidade', 'SLUG'),\n 'new_item_name' => __('Nome da nova cidade', 'SLUG'),\n );\n\n register_taxonomy('cidade', self::$post_type, array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => true,\n )\n );\n \n $labels = array(\n 'name' => _x('Estados', 'taxonomy general name', 'SLUG'),\n 'singular_name' => _x('Estado', 'taxonomy singular name', 'SLUG'),\n 'search_items' => __('Buscar estado', 'SLUG'),\n 'all_items' => __('Todos os estados', 'SLUG'),\n 'parent_item' => __('Estado pai', 'SLUG'),\n 'parent_item_colon' => __('Estado pai:', 'SLUG'),\n 'edit_item' => __('Editar estado', 'SLUG'),\n 'update_item' => __('Atualizar estado', 'SLUG'),\n 'add_new_item' => __('Adiciona novo estado', 'SLUG'),\n 'new_item_name' => __('Nome do novo estado', 'SLUG'),\n );\n\n register_taxonomy('estado', self::$post_type, array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => true,\n )\n );\n \n \n \n }", "title": "" }, { "docid": "4fbb64a5df59e6722798667fc82e5e21", "score": "0.5279705", "text": "public function setup_taxonomy( $type, $data ) {\n\n if( current_theme_supports( 'extended-taxonomies' ) ) {\n add_action( $type . '_edit_form_fields', array( __CLASS__, 'taxonomy_edit_form_fields' ), 5, 2 );\n add_action( $type . '_pre_add_form', array( __CLASS__, 'taxonomy_pre_add_form' ), 5 );\n }\n\n }", "title": "" }, { "docid": "5aa039293750e4cfd76fc07b6e9f7fb4", "score": "0.52778673", "text": "public function register_taxonomies() {\n\n\t\t\t$args = array(\n\t\t\t\t'labels' => array(\n\t\t\t\t\t'name' => _x( 'Testimonial Categories', 'Taxonomy general name', 'mama-codes' ),\n\t\t\t\t\t'singular_name' => _x( 'Testimonial Category', 'Taxonomy general name', 'mama-codes' ),\n\t\t\t\t\t'menu_name' => _x( 'Categories', 'Taxonomy menu name', 'mama-codes' ),\n\t\t\t\t\t'search_items' => __( 'Search Categories', 'mama-codes' ),\n\t\t\t\t\t'all_items' => __( 'All Categories', 'mama-codes' ),\n\t\t\t\t\t'most_used_items' => null,\n\t\t\t\t\t'parent_item' => null,\n\t\t\t\t\t'parent_item_colon' => null,\n\t\t\t\t\t'edit_item' => __( 'Edit Category', 'mama-codes' ),\n\t\t\t\t\t'update_item' => __( 'Update Category', 'mama-codes' ),\n\t\t\t\t\t'add_new_item' => __( 'Add New Category', 'mama-codes' ),\n\t\t\t\t\t'new_item_name' => __( 'New Category', 'mama-codes' ),\n\t\t\t\t),\n\t\t\t\t'hierarchical' => true,\n\t\t\t\t'show_ui' => true,\n\t\t\t\t'query_var' => true,\n\t\t\t\t'has_archive' => true,\n\t\t\t);\n\n\t\t\tregister_taxonomy( 'mama_testimonial_category', array( 'mama_testimonial' ), $args );\n\t\t}", "title": "" }, { "docid": "ca2a95c5fa5c72d32106fb3d07ffbf62", "score": "0.52684623", "text": "function register_post_type(){\n\t\tadd_action( 'init', array( $this,'init_register_post_type') );\n\t}", "title": "" }, { "docid": "e1e0df6534439c05dab5ba0b8d8f5acd", "score": "0.5257209", "text": "function wpmc_register_taxonomies()\n{\n register_taxonomy('pacotes', ['produtos', 'plan'],\n array(\n 'labels' => array(\n 'name' => 'Pacotes',\n 'singular_name' => 'Pacote',\n 'search_items' => 'Procurar Pacote',\n 'all_items' => 'Todos os Pacotes',\n 'edit_item' => 'Editar Pacote',\n 'update_item' => 'Atualizar Pacote',\n 'add_new_item' => 'Adicionar Pacote',\n 'new_item_name' => 'Novo nome de Pacote',\n 'menu_name' => 'Pacotes',\n ),\n 'hierarchical' => true,\n 'sort' => true,\n 'args' => array('orderby' => 'term_order'),\n 'rewrite' => array('slug' => 'pacotes'),\n 'show_admin_column' => true,\n )\n );\n\n register_taxonomy('categorias-do-produto', 'produtos',\n array(\n 'labels' => array(\n 'name' => 'Categorias do Produto',\n 'singular_name' => 'Categoria',\n 'search_items' => 'Procurar Categoria',\n 'all_items' => 'Todos as Categorias',\n 'edit_item' => 'Editar Categoria',\n 'update_item' => 'Atualizar Categoria',\n 'add_new_item' => 'Adicionar Categoria',\n 'new_item_name' => 'Novo nome de Categoria',\n 'menu_name' => 'Categoria',\n ),\n 'hierarchical' => true,\n 'sort' => true,\n 'args' => array('orderby' => 'term_order'),\n 'rewrite' => array('slug' => 'categorias-do-produto'),\n 'show_admin_column' => true,\n )\n );\n}", "title": "" }, { "docid": "646a79da283e90d5b51188c722917e83", "score": "0.5255205", "text": "public function register_omics_taxonomy() {\n\t\t\t$labels = array(\n\t\t\t\t'name' => _x( '-Omics Fields', 'taxonomy general name', 'lp-projects' ),\n\t\t\t\t'singular_name' => _x( '-Omics Field', 'taxonomy singular name', 'lp-projects' ),\n\t\t\t\t'search_items' => __( 'Search -Omics Fields', 'lp-projects' ),\n\t\t\t\t'all_items' => __( 'All -Omics Fields', 'lp-projects' ),\n\t\t\t\t'edit_item' => __( 'Edit -Omics Field', 'lp-projects' ),\n\t\t\t\t'update_item' => __( 'Update -Omics Field', 'lp-projects' ),\n\t\t\t\t'add_new_item' => __( 'Add New -Omics Field', 'lp-projects' ),\n\t\t\t\t'new_item_name' => __( 'New -Omics Field Name', 'lp-projects' ),\n\t\t\t\t'menu_name' => __( '-Omics Fields', 'lp-projects' ),\n\t\t\t);\n\n\t\t\t$args = array(\n\t\t\t\t'hierarchical' => false,\n\t\t\t\t'labels' => $labels,\n\t\t\t\t'show_ui' => true,\n\t\t\t\t'show_admin_column' => true,\n\t\t\t\t'query_var' => true,\n\t\t\t\t'rewrite' => array( 'slug' => 'omics' ),\n\t\t\t);\n\n\t\t\tregister_taxonomy( 'omics', array( 'lp_course' ), $args );\t\t\n\n\t}", "title": "" }, { "docid": "a775dcd19842ec92652c984c7ba9bbce", "score": "0.52551377", "text": "function add_new_taxonomy($taxonomy, $object){\n$labels = mf_create_labels($taxonomy);\n$args = array(\n 'labels' => $labels,\n\t'show_tagcloud' => false,\n\t'hierarchical'=> true\n);\nregister_taxonomy($taxonomy, $object, $args);\n}", "title": "" }, { "docid": "bc65823460733684976d5e555c6b7e0d", "score": "0.52527934", "text": "function create_posttype() {\r\n /////////////////////////////////////\r\nregister_post_type( 'skills',\r\n// CPT Options\r\narray(\r\n 'labels' => array(\r\n 'name' => __( \"Jovana's Skills\" ),\r\n 'singular_name' => __( 'Skills' )\r\n ),\r\n 'public' => true,\r\n 'has_archive' => false,\r\n 'rewrite' => array('slug' => 'skills'),\r\n )\r\n);\r\n}", "title": "" }, { "docid": "728ba62998fd1503164a93af0a9ec672", "score": "0.52498144", "text": "public function connect_post_types_taxonomies()\n {\n $post_types = $this->post_types;\n foreach ($post_types as $post_type) {\n $post_taxes = isset($post_type['taxonomies_connected']) ? $post_type['taxonomies_connected'] : array();\n\n if (!empty($post_taxes)) {\n foreach ($post_taxes as $taxonomy) {\n register_taxonomy_for_object_type($taxonomy, $post_type['post']);\n }\n }\n }\n }", "title": "" }, { "docid": "f71c48def2395d022649e8996793f55e", "score": "0.5238569", "text": "function makeThem() {\n\n $args = array(\n 'supports' => array( 'title', 'editor', 'page-attributes' ),\n 'hierarchical' => true,\n );\n\n $books = acpt_post_type('book','books', false, $args );\n $courses = acpt_post_type('course','courses', false, $args );\n\n $books->icon('notebook');\n\n acpt_tax('color', 'colors', 'book', true);\n acpt_tax('author', 'authors', array($books, $courses), true );\n\n}", "title": "" }, { "docid": "cda639c083ad9b7250f3c8bfe6275a23", "score": "0.5238155", "text": "public function register_custom_taxonomies() {\n\t\t$this->register_taxonomy_maestros();\n\t\t$this->register_taxonomy_modulos();\n\t\t$this->register_taxonomy_lecciones();\n\t}", "title": "" }, { "docid": "b735a839e3fe0419386a43c0fb3255ee", "score": "0.5224842", "text": "function joe_uwpl_register_post_type_teacher() {\n\n\t$labels = array(\n\t\t'name' => _x( 'Teachers', 'Post Type General Name', 'ultimate-wordpress-lessons' ),\n\t\t'singular_name' => _x( 'Teacher', 'Post Type Singular Name', 'ultimate-wordpress-lessons' ),\n\t\t'menu_name' => __( 'Teachers', 'ultimate-wordpress-lessons' ),\n\t\t'name_admin_bar' => __( 'Teachers', 'ultimate-wordpress-lessons' ),\n\t\t'archives' => __( 'Teacher Archives', 'ultimate-wordpress-lessons' ),\n\t\t'parent_item_colon' => __( 'Parent Teacher:', 'ultimate-wordpress-lessons' ),\n\t\t'all_items' => __( 'All Teachers', 'ultimate-wordpress-lessons' ),\n\t\t'add_new_item' => __( 'Add New Teacher', 'ultimate-wordpress-lessons' ),\n\t\t'add_new' => _x( 'Add New', 'Teacher', 'ultimate-wordpress-lessons' ),\n\t\t'new_item' => __( 'New Teacher', 'ultimate-wordpress-lessons' ),\n\t\t'edit_item' => __( 'Edit Teacher', 'ultimate-wordpress-lessons' ),\n\t\t'update_item' => __( 'Update Teacher', 'ultimate-wordpress-lessons' ),\n\t\t'view_item' => __( 'View Teacher', 'ultimate-wordpress-lessons' ),\n\t\t'search_items' => __( 'Search Teachers', 'ultimate-wordpress-lessons' ),\n\t\t'not_found' => __( 'No teachers found.', 'ultimate-wordpress-lessons' ),\n\t\t'not_found_in_trash' => __( 'No teachers found in Trash.', 'ultimate-wordpress-lessons' ),\n\t\t'featured_image' => __( 'Featured Image', 'ultimate-wordpress-lessons' ),\n\t\t'set_featured_image' => __( 'Set featured image', 'ultimate-wordpress-lessons' ),\n\t\t'remove_featured_image' => __( 'Remove featured image', 'ultimate-wordpress-lessons' ),\n\t\t'use_featured_image' => __( 'Use as featured image', 'ultimate-wordpress-lessons' ),\n\t\t'insert_into_item' => __( 'Insert into teacher', 'ultimate-wordpress-lessons' ),\n\t\t'uploaded_to_this_item' => __( 'Uploaded to this teacher', 'ultimate-wordpress-lessons' ),\n\t\t'items_list' => __( 'Teacher list', 'ultimate-wordpress-lessons' ),\n\t\t'items_list_navigation' => __( 'Teacher list navigation', 'ultimate-wordpress-lessons' ),\n\t\t'filter_items_list' => __( 'Filter teacher list', 'ultimate-wordpress-lessons' ),\n\t);\n\t$rewrite = array(\n\t\t'slug' => 'teacher',\n\t\t'with_front' => false,\n\t\t'pages' => false,\n\t\t'feeds' => false,\n\t);\n\t$args = array(\n\t\t'label' => __( 'Teachers', 'ultimate-wordpress-lessons' ),\n\t\t'labels' => $labels,\n\t\t'description' => __( 'Teacher Post Type', 'ultimate-wordpress-lessons' ),\n\t\t'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'custom-fields', 'page-attributes', ),\n\t\t'hierarchical' => false,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => 'edit.php?post_type=lesson',\n\t\t'menu_position' => 5,\n\t\t'menu_icon' => 'dashicons-joeicons-teachers',\n\t\t'show_in_admin_bar' => false,\n\t\t'show_in_nav_menus' => false,\n\t\t'delete_with_user' => false,\n\t\t'can_export' => true,\n\t\t'has_archive' => 'teachers',\n\t\t'exclude_from_search' => false,\n\t\t'publicly_queryable' => true,\n\t\t'rewrite' => $rewrite,\n\t\t'capability_type' => 'post',\n\t);\n\tregister_post_type( 'teacher', $args );\n\n}", "title": "" }, { "docid": "a1ba816a798c704c336ad78634eb8b17", "score": "0.52245796", "text": "function courses_post() {\n register_post_type( 'course',\n array(\n 'labels' => array(\n 'name' => __( 'Courses' ),\n 'singular_name' => __('Course')\n ),\n 'public' => true,\n 'has_archive' => true,\n 'show_in_rest' => true,\n 'menu_position' => 20,\n 'with_front' => true,\n 'supports' => array('title', 'editor', 'page-attributes', 'thumbnail'),\n 'menu_icon' => 'dashicons-editor-paragraph',\n )\n );\n\n register_taxonomy( \n 'courses',\n 'course',\n array(\n 'hierarchical' => true, \n 'has_archive' => true,\n 'label' => 'Categories', \n 'query_var' => true,\n 'show_admin_column' => true,\n 'show_in_rest' => true,\n /*'rewrite' => array(\n 'slug' => 'courses',\n 'with_front' => true \n )*/\n )\n );\n}", "title": "" }, { "docid": "8bdb01f3010d021e16ce7da47cb8f3dd", "score": "0.52202344", "text": "function wptheme_taxonomie_EXAMPLE() {\r\n $labels = array(\r\n 'name' => _x( 'Categorias de EXAMPLES', 'CategoriaS de EXAMPLES' ),\r\n 'singular_name' => _x( 'Categoria do EXAMPLE', 'Categoria de EXAMPLE' ),\r\n 'search_items' => __( 'Pesquisar categorias de EXAMPLE' ),\r\n 'all_items' => __( 'Todas as categorias de EXAMPLE' ),\r\n 'parent_item' => __( 'Categoria mãe (EXAMPLE)' ),\r\n 'parent_item_colon' => __( 'Categoria mãe (EXAMPLE):' ),\r\n 'edit_item' => __( 'Editar categoria de EXAMPLE' ),\r\n 'update_item' => __( 'Atualizar categoria de EXAMPLE' ),\r\n 'add_new_item' => __( 'Adicionar categoria de EXAMPLE' ),\r\n 'new_item_name' => __( 'Nova categoria de EXAMPLE' ),\r\n 'menu_name' => __( 'Categorias de EXAMPLE' ),\r\n 'not_found' => __( 'Nenhuma categorias de EXAMPLE encontrada.' ),\r\n );\r\n $args = array(\r\n 'labels' => $labels,\r\n 'hierarchical' => true,\r\n 'public' => true,\r\n 'rewrite' => array( 'slug' => 'catEXAMPLE' ),\r\n );\r\n register_taxonomy( 'categoria_example', 'example', $args );\r\n\r\n}", "title": "" }, { "docid": "957a773cc313eb49ca22e7ec9f34f48d", "score": "0.5218375", "text": "function register_post_types() {\n\t}", "title": "" }, { "docid": "957a773cc313eb49ca22e7ec9f34f48d", "score": "0.5218375", "text": "function register_post_types() {\n\t}", "title": "" }, { "docid": "957a773cc313eb49ca22e7ec9f34f48d", "score": "0.5218375", "text": "function register_post_types() {\n\t}", "title": "" }, { "docid": "e26facbdeb28a745b38930d12f9cfb28", "score": "0.5204924", "text": "public function register_taxonomy($tax = '', $post_type = array(), $labels = array(), $args = array()){\n $args = wp_parse_args( $args, array(\n 'labels' => $labels,\n 'public' => true,\n 'show_in_nav_menus' => true,\n 'show_admin_column' => true,\n 'hierarchical' => true,\n 'show_tagcloud' => true,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array(\n 'slug' => ae_get_option($tax.'_slug', $tax) ,\n 'hierarchical' => ae_get_option($tax.'_hierarchical', false)\n ) ,\n 'capabilities' => array(\n 'manage_terms',\n 'edit_terms',\n 'delete_terms',\n 'assign_terms'\n )\n ));\n register_taxonomy($tax, $post_type , $args);\n }", "title": "" }, { "docid": "457ac3aaf830e6272aec75365a6684bd", "score": "0.520445", "text": "function create_taxonomies() {\n\t\t// Add new taxonomy, make it hierarchical (like categories)\n\t\t$labels = array(\n\t\t\t'name' => _x( 'Megjelenési helyek', 'taxonomy general name' ),\n\t\t\t'singular_name' => _x( 'Hely', 'taxonomy singular name' ),\n\t\t\t'search_items' => __( 'Hely keresése' ),\n\t\t\t'all_items' => __( 'Összes hely' ),\n\t\t\t'parent_item' => __( 'Szülő hely' ),\n\t\t\t'parent_item_colon' => __( 'Szülő helyek:' ),\n\t\t\t'edit_item' => __( 'Hely szerkesztése' ),\n\t\t\t'update_item' => __( 'Hely frissítése' ),\n\t\t\t'add_new_item' => __( 'Új hely hozzáadása' ),\n\t\t\t'new_item_name' => __( 'Új hely neve' ),\n\t\t\t'menu_name' => __( 'Megjelenési helyek' ),\n\t\t);\n\t\n\t\t$args = array(\n\t\t\t'hierarchical' => true,\n\t\t\t'labels' => $labels,\n\t\t\t'show_ui' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'query_var' => true,\n\t\t\t'rewrite' => array( 'slug' => 'spots' ),\n\t\t);\n\t\n\t\tregister_taxonomy( 'spots', array( 'ad' ), $args );\n\t}", "title": "" }, { "docid": "b852c0e33a6f954408a96b59dc374cba", "score": "0.5201909", "text": "public static function add($area){\n\t\t$sql = \"insert into {areas} (area) values (:area)\";\n\t\tTCClick::app()->db->execute($sql, array(\":area\"=>$area));\n\t\tself::reload();\n\t}", "title": "" }, { "docid": "6fe9d18a0403f7544089ce3a9a599c74", "score": "0.51961154", "text": "function addYaShareAdminArea(&$admin_areas)\n{\n global $txt;\n loadLanguage('YaShare/');\n\n $admin_areas['config']['areas']['modsettings']['subsections']['yashare'] = [$txt['yashare']];\n}", "title": "" }, { "docid": "7015c45080055852afb8539c33e45fc6", "score": "0.51947826", "text": "function register_post_type() {\n \n $plural = $this->plural;\n $menu_item_name = $this->menu_item_name;\n $singular = $this->singular;\n $slug = $this->slug;\n $labels = array(\n\n 'name' => __( $plural, 'plethora-framework' ),\n 'singular_name' => __( $singular, 'plethora-framework' ),\n 'menu_name' => __( $menu_item_name, 'plethora-framework' ),\n 'all_items' => __( $plural, 'plethora-framework' ),\n 'add_new' => __( 'Add New', 'plethora-framework' ),\n 'add_new_item' => __( 'Add New ' . $singular, 'plethora-framework' ),\n 'edit_item' => __( 'Edit ' . $singular, 'plethora-framework' ),\n 'new_item' => __( 'New ' . $singular, 'plethora-framework' ),\n 'view_item' => __( 'View ' . $singular, 'plethora-framework' ),\n 'search_items' => __( 'Search ' . $plural, 'plethora-framework' ),\n 'not_found' => __( 'No ' . $plural . ' found', 'plethora-framework' ),\n 'not_found_in_trash' => __( 'No ' . $plural . ' found in Trash', 'plethora-framework' ),\n 'parent_item_colon' => __( 'Parent ' . $singular . ':', 'plethora-framework' ) \n\n );\n\n $defaults = array(\n\n 'labels' => $labels,\n 'public' => true,\n 'hierarchical' => false,\n 'menu_position' => 5,\n 'supports' => array( 'title' ),\n 'rewrite' => array( 'slug' => $slug ),\n 'has_archive' => false,\n 'capability_type' => 'post',\n 'menu_icon' => null, // THEME_ASSETS_ADMIN_DIR . '/images/posttype-portfolio.png',\n 'can_export' => true,\n 'query_var' => true,\n 'rewrite' => true, // array( 'slug' => PLETHORA_REWRITE_PRICEPLANS, 'with_front' => true ),\n 'enter_title_here' => __( 'ENTER TITLE', 'plethora-framework' )\n\n // 'exclude_from_search' => false, // Default: value of the opposite of the public argument\n // 'show_ui' => true, // Default: value of public argument\n // 'publicly_queryable' => true, //Default: value of public argument\n\n );\n\n $options = $this->options_merge($defaults, $this->options);\n\n $this->options = $options;\n\n if(!post_type_exists($this->post_type_name)) {\n\n Plethora_CMS::register_post_type($this->post_type_name, $options);\n\n Plethora_CMS::add_filter( 'enter_title_here', array( &$this, 'enter_title_here' ), 1, 2 );\n\n }\n\n }", "title": "" }, { "docid": "4bc214b705513fe57deecdd0d3f35486", "score": "0.51933974", "text": "public function register($post_type);", "title": "" }, { "docid": "7646d8a849bc5f8f3ae3bbe5d17cbadb", "score": "0.5188067", "text": "function be_register_taxonomies() {\n\t$taxonomies = array(\n\t\tarray(\n\t\t\t'slug' => 'genre',\n\t\t\t'single_name' => esc_html__('Genre','unite'),\n\t\t\t'plural_name' => esc_html__('Genre','unite'),\n\t\t\t'post_type' => 'films',\n\t\t),\n\t\tarray(\n\t\t\t'slug' => 'year',\n\t\t\t'single_name' => esc_html__('year','unite'),\n\t\t\t'plural_name' => esc_html__('Year','unite'),\n\t\t\t'post_type' => 'films',\n\t\t),\n\t\tarray(\n\t\t\t'slug' => 'country',\n\t\t\t'single_name' => esc_html__('Country','unite'),\n\t\t\t'plural_name' => esc_html__('Country','unite'),\n\t\t\t'post_type' => 'films',\n\t\t),\n\t\tarray(\n\t\t\t'slug' => 'actor',\n\t\t\t'single_name' => esc_html__('Actor','unite'),\n\t\t\t'plural_name' => esc_html__('Actors','unite'),\n\t\t\t'post_type' => 'films',\n\t\t),\n\t);\n\tforeach( $taxonomies as $taxonomy ) {\n\t\t$labels = array(\n\t\t\t'name' => $taxonomy['plural_name'],\n\t\t\t'singular_name' => $taxonomy['single_name'],\n\t\t\t'search_items' => 'Search ' . $taxonomy['plural_name'],\n\t\t\t'all_items' => 'All ' . $taxonomy['plural_name'],\n\t\t\t'parent_item' => 'Parent ' . $taxonomy['single_name'],\n\t\t\t'parent_item_colon' => 'Parent ' . $taxonomy['single_name'] . ':',\n\t\t\t'edit_item' => 'Edit ' . $taxonomy['single_name'],\n\t\t\t'update_item' => 'Update ' . $taxonomy['single_name'],\n\t\t\t'add_new_item' => 'Add New ' . $taxonomy['single_name'],\n\t\t\t'new_item_name' => 'New ' . $taxonomy['single_name'] . ' Name',\n\t\t\t'menu_name' => $taxonomy['plural_name']\n\t\t);\n\t\t\n\t\t$rewrite = isset( $taxonomy['rewrite'] ) ? $taxonomy['rewrite'] : array( 'slug' => $taxonomy['slug'] );\n\t\t$hierarchical = isset( $taxonomy['hierarchical'] ) ? $taxonomy['hierarchical'] : true;\n\t\n\t\tregister_taxonomy( $taxonomy['slug'], $taxonomy['post_type'], array(\n\t\t\t'hierarchical' => $hierarchical,\n\t\t\t'labels' => $labels,\n\t\t\t'show_ui' => true,\n\t\t\t'query_var' => true,\n\t\t\t'rewrite' => $rewrite,\n\t\t));\n\t}\n}", "title": "" }, { "docid": "8c3ad22950985147202f3437088dbd72", "score": "0.518714", "text": "function test_plugin_setup_post_type(){\n //register cpt\n register_post_type( 'books', array(\n 'labels' => array(\n 'name' => __( 'All Books' ),\n 'singular_name' => __( 'book' )\n ),\n 'public' => true,\n 'has_archive' => true,\n 'rewrite' => array('slug' => 'books'),\n 'show_in_rest' => true,\n \n ));\n\n //register taxonomy\n $labels = array(\n 'name' => _x( 'Courses', 'Taxonomy General Name', 'text_domain' ),\n 'singular_name' => _x( 'Course', 'Taxonomy Singular Name', 'text_domain' ),\n 'menu_name' => __( 'Courses', 'text_domain' ),\n 'all_items' => __( 'All Items', 'text_domain' ),\n 'parent_item' => __( 'Parent Item', 'text_domain' ),\n 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),\n 'new_item_name' => __( 'New Item Name', 'text_domain' ),\n 'add_new_item' => __( 'Add New Item', 'text_domain' ),\n 'edit_item' => __( 'Edit Item', 'text_domain' ),\n 'update_item' => __( 'Update Item', 'text_domain' ),\n 'view_item' => __( 'View Item', 'text_domain' ),\n 'separate_items_with_commas' => __( 'Separate items with commas', 'text_domain' ),\n 'add_or_remove_items' => __( 'Add or remove items', 'text_domain' ),\n 'choose_from_most_used' => __( 'Choose from the most used', 'text_domain' ),\n 'popular_items' => __( 'Popular Items', 'text_domain' ),\n 'search_items' => __( 'Search Items', 'text_domain' ),\n 'not_found' => __( 'Not Found', 'text_domain' ),\n 'no_terms' => __( 'No items', 'text_domain' ),\n 'items_list' => __( 'Items list', 'text_domain' ),\n 'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),\n );\n $args = array(\n 'hierarchical' => true, // make it hierarchical (like categories)\n 'labels' => $labels,\n 'public' => true,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'show_in_nav_menus' => true,\n 'show_tagcloud' => true,\n 'show_in_rest' => true,\n 'query_var' => true,\n 'rewrite' => [ 'slug' => 'course' ],\n );\n register_taxonomy( 'course', [ 'post', 'books' ], $args );\n\n //add user role \n add_role('simple_role',\n 'Simple Role',\n array(\n 'read' => true,\n 'edit_posts' => true,\n 'upload_files' => true,\n )\n );\n \n // if ( is_admin() ) {\n if(is_user_logged_in()){\n $user = wp_get_current_user();\n // if ( in_array( 'administrator', (array) $user->roles ) ) {\n if(current_user_can('administrator')){ \n //The user has the \"administrator\" role\n require_once __DIR__ . '/admin/test_plugin-admin.php';\n }\n }\n\n register_setting('wporg_options', 'My_plugin_header_logo');\n add_shortcode('wporg', 'wporg_shortcode');\n}", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "8e8e03727ca6544a2d009483f6d1aca9", "score": "0.0", "text": "public function destroy($id)\n {\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": "" } ]
01235bc2f2c5f1f5bacfeeec9eef9c66
Is the result the first one in the ResultSet?
[ { "docid": "dc1fb58fe21b6d7b998deb64ad519b92", "score": "0.0", "text": "public function is_first()\n {\n return $this->is_position(self::POSITION_FIRST);\n }", "title": "" } ]
[ { "docid": "933f969249b51110428da5db374929c3", "score": "0.74138564", "text": "function oneElement($result){\r\n\t\tif($result && mysql_num_rows($result) == 1){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "ee3a473fa04cea1e8e24d95b983be332", "score": "0.7155905", "text": "function First(){\n\t\tif($this->ARow<0 || !mysql_data_seek($this->rs,0)) return false;\n\t\telse $this->ARow = 0;\n\t\treturn true; \n\t}", "title": "" }, { "docid": "6f76c8f014a45e834a1d5f33a228f7ce", "score": "0.70218873", "text": "function first_row($type = 'object')\n\t{\n\t\tif (FALSE === ($result = $this->result($type)))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn $result[0];\n\t}", "title": "" }, { "docid": "9936bb3bf0a049a4809d792b59544738", "score": "0.69436765", "text": "public function getFirst() {\n\t\tif (is_array($this->results) && count($this->results) > 0) {\n\t\t\t$results = $this->results;\n\t\t\treset($results);\n\t\t} else {\n\t\t\t// TODO This has side effects if the query gets executed twice in the request/response cycle.\n\t\t\t$this->query->setLimit(1);\n\t\t\t$this->initialize();\n\t\t\t$results = $this->results;\n\t\t}\n\t\t$firstResult = current($results);\n\t\tif ($firstResult === FALSE) {\n\t\t\t$firstResult = NULL;\n\t\t}\n\t\treturn $firstResult;\n\t}", "title": "" }, { "docid": "068041ca34dd03c6f99423884dcf4cd7", "score": "0.69330406", "text": "public function one()\n {\n $result = $this->limit(1)->execute();\n \n if (isset($result[0])) {\n return $result[0];\n }\n \n return false;\n }", "title": "" }, { "docid": "f8274f36bb7f404b762b4d11a1e37283", "score": "0.69309574", "text": "public function testFirstSameResult() {\n\t\t$this->_createTables();\n\t\t$table = Table::build('article', ['table' => 'articles']);\n\t\t$query = new Query($this->connection, $table);\n\t\t$query->select(['id'])->toArray();\n\n\t\t$first = $query->first();\n\t\t$resultSet = $query->execute();\n\t\t$this->assertEquals(['id' => 1], $first);\n\t\t$this->assertSame($resultSet, $query->execute());\n\t}", "title": "" }, { "docid": "62a12ae7a55eccc649c6e6459bb6048c", "score": "0.6884728", "text": "public function getFirstResult()\n {\n return $this->firstResult;\n }", "title": "" }, { "docid": "0f30f71f164fb613f3290c9c480e06b1", "score": "0.6640802", "text": "public function firstRow() \n {\n \t return $this->_results[0];\n }", "title": "" }, { "docid": "2538c047ef819add0bcc0fd7c5a4ac7b", "score": "0.66380316", "text": "function fetch_first_field () {\n if ($this->num_rows_left()) {\n $this->row_count--;\n $t = mysql_fetch_row ($this->resposta);\n return $t[0]; // Retorna o primeiro campo\n }\n return false;\n }", "title": "" }, { "docid": "f52384a5572cb1bd69172aedfcaf5236", "score": "0.6620047", "text": "function isResultSet()\n {\n return is_object($this->_result);\n }", "title": "" }, { "docid": "6be607bd949da413e26ab0d6a91d8ddc", "score": "0.66034806", "text": "public function get_first_result($tbl, $cols, $constraints, $order = \"\") {\n\t\t$all_results = $this->get_all_results($tbl, $cols, $constraints, $order);\n\t\tif ($all_results) {\n\t\t\t$row = $all_results[0];\n\t\t\t/*\n\t\t\tif ($row) {\n\t\t\t\tprint implode(', ', $row).\"</li>\\n\";\n\t\t\t} else {\n\t\t\t\tprint \"No Results</li>\\n\";\n\t\t\t}\n\t\t\t*/\n\t\t\treturn $row;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "3a3091ded74e8bb2895ab7ff45489f22", "score": "0.6591043", "text": "public function fetch_first()\n {\n if ($this->_executed == false || !$this->_query)\n $this->execute();\n\n if (is_object($this->_result)) {\n $this->_executed = false;\n $results = $this->_result->fetch_array(MYSQLI_ASSOC);\n\n return $results;\n } else {\n $this->error('Unable to perform fetch_first()');\n }\n }", "title": "" }, { "docid": "46bd2244c1b01c18028ffe90e6010d2c", "score": "0.6580843", "text": "public function getOne()\n\t{\n\t\t$query = $this->prepareQuery(func_get_args());\n\t\tif ($result = $this->rawQuery($query))\n\t\t{\n\t\t\t$row = $this->fetch($result);\n\t\t\tif (is_array($row))\n\t\t\t{\n\t\t\t\treturn reset($row);\n\t\t\t}\n\t\t\t$this->free($result);\n\t\t}\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "3e4b2891dfa8d3b414b2eb055d3c0eef", "score": "0.6568182", "text": "function next_row() {\n\t\t\tif($this->connected && $this->res) {\n\t\t\t\t$this->row=@mysql_fetch_row($this->res);\n\t\t\t\tif($this->row) return true;\n\t\t\t}\n\t\t\tif($this->res) { @mysql_free_result($this->res); $this->res=null; $this->row=null; }\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "62de2c1f56e800f20835f1249e90af39", "score": "0.6560678", "text": "public function rsNext() {\n \n if (!$this->last_rs) {\n return false;\n }\n \n return $this->last_rs->fetchInto($this->last_row, DB_FETCHMODE_ASSOC);\n }", "title": "" }, { "docid": "f9b84e8b02714860a10f1449663c1db3", "score": "0.65538687", "text": "function hasMultipleResultSets()\n {\n if ($this->isResultSet() && !empty($this->_result->SqlRowSet[0])) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "4c5706fd5636bed8e5544064b7ca59ae", "score": "0.6534196", "text": "public function next_row()\n\t{\n\t\tif (isset ($this->res))\n\t\t{\n\t\t\treturn mysqli_fetch_row($this->res);\n\t\t}\n\t\techo \"You need to make a query first!!!\";\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ad778020805e53d0f49f061a113e81e8", "score": "0.64649194", "text": "public function next(): bool\n {\n $this->resultExists();\n return $this->result->next();\n }", "title": "" }, { "docid": "e60fe6e7daaf33f857a5b8d4b110f0fd", "score": "0.6456616", "text": "public function one()\n {\n $this->limit(1);\n if($entities = $this->apply()) {\n return current($entities);\n }\n\n return false;\n }", "title": "" }, { "docid": "fe05d07647554702d7709a7d00bb0f61", "score": "0.64553076", "text": "public function first() {\n if ($this->offsetExists(0)) {\n return $this->offsetGet(0);\n } else {\n trigger_error('Can not get null of empty result set', E_USER_WARNING);\n return null;\n }\n }", "title": "" }, { "docid": "9305d3650a132f2903710df379838702", "score": "0.645439", "text": "public function nextRow (){\n $row = mysql_fetch_array($this->res);\n \n if (isset ($row)){\n return $row;\n }else{\n false;\n }\n }", "title": "" }, { "docid": "d9441a4ecf6d2100baf0a5c9856a0e16", "score": "0.6429683", "text": "public function fetchFirst($fetchMode = \\PDO::FETCH_ASSOC) {\n\t\t$this->resetLimit()->limit(0, 1);\n\t\t$results = $this->fetchAll($fetchMode);\n\t\treturn isset($results[0]) ? $results[0] : false;\n\t}", "title": "" }, { "docid": "3b26acc5b55fbe5d1c25afa4b4e40e9c", "score": "0.6429242", "text": "function numRowsOverOne($result){\n return $result > 0 ? true : false;\n }", "title": "" }, { "docid": "3e2476434786b9ad02df324d7dd7de6a", "score": "0.64242935", "text": "public function next()\r\n {\r\n if ($this->hasNext())\r\n {\r\n $this->currentRow = mysql_fetch_array($this->resultSet);\r\n $this->pos++;\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "title": "" }, { "docid": "e093fc3bae9a8e5146d31c2042d03182", "score": "0.64165163", "text": "function checkFirstUser() {\n $db = $this->readConnection;\n $db->select('users', array('id'));\n $db->additional('LIMIT 1');\n $result = $db->execute();\n $db->reset();\n if (!$result->num_rows) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "59e3fff829a379c611f54b77e1e421d2", "score": "0.6341496", "text": "public function firstRow() {\n $result = $this->query();\n if (!$result || $result->rowCount() < 1) {\n throw new NoDatabaseRowsRetrievedException(\"Query: \".$this->prevQuery.\" | params: \".print_r($this->prevParams, True));\n }\n $returnValue = $result->fetch();\n $result->closeCursor();\n return $returnValue;\n }", "title": "" }, { "docid": "7c7637151e3e1e681c4d368c6f705123", "score": "0.63334084", "text": "public function first(){\n return ($this->results())[0];\n }", "title": "" }, { "docid": "2192f6cf77429a14f1a80c91cfc72d38", "score": "0.6278245", "text": "public function fetchFirst()\n {\n $row = $this->fetch( PDO::FETCH_NUM );\n return $row[0];\n }", "title": "" }, { "docid": "42477d156a40bd45c8531a515035a6fd", "score": "0.6233794", "text": "public function next_record()\n\t{\n\t\t\n\t\t$success = true;\n\t\tif(is_bool($this->RESULTSET))\n\t\t{\n\t\t\t$this->row_data = array();\n\n\t\t\treturn false;\n\t\t} # Resultset should be a resource.\n\t\tif(!$this->RESULTSET)\n\t\t{\n\t\t\t$this->row_data = array();\n\n\t\t\treturn false;\n\t\t}\n\t\t$this->row_data = array();\n\t\t\n\t\tif(sqlsrv_has_rows($this->RESULTSET))\n\t\t{\n\t\t\n\t\t\t$row_data = $this->fetch_array(SQLSRV_FETCH_ASSOC) or $success = false;\n\t\t\tif(is_array($row_data) && $success == true)\n\t\t\t{\n\t\t\t\t$this->row_data = $row_data;\n\t\t\t}\n\t\t}\n\n\t\treturn ($success);\n\t}", "title": "" }, { "docid": "c7e55ec57574a456abbfd66e18c8ebb1", "score": "0.62336236", "text": "function next_record()\n {\n /* goto next record */\n $this->m_record = @mssql_fetch_array($this->m_query_id, MSSQL_ASSOC);\n $this->m_row++;\n \n /* are we there? */\n $result = !($this->m_record === false);\n if (!$result && $this->m_auto_free)\n {\n @mssql_free_result($this->m_query_id);\n $this->m_query_id = 0;\n }\n \n /* return result */\n return $result;\n }", "title": "" }, { "docid": "ec74fd10ad3dda18cb391f92323d769b", "score": "0.62196416", "text": "public function getOne($sql)\n\t{\n\t\tif($this->query($sql))\n\t\t{\n\t\t\tif($this->lastPdoStatement !== false)\n\t\t\t{\n\t\t\t\tforeach($this->lastPdoStatement as $row)\n\t\t\t\t{\n\t\t\t\t\treturn $row[0];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "0914e5323547968c93376b4effe49f48", "score": "0.62172645", "text": "public function first_row($type = 'object'){\n\t\t$result = $this->result($type);\n\t\n\t\tif (count($result) == 0){\n\t\t\treturn $result;\n\t\t}\n\t\treturn $result[0];\n\t}", "title": "" }, { "docid": "d9bdf1c1ae20eb8a06fe47ca3425917c", "score": "0.6214288", "text": "public function fetchOne()\n {\n return $this->executeQuery()->fetchOne();\n }", "title": "" }, { "docid": "5b735cbc3c2c8a06995559bdf7770cc0", "score": "0.6203317", "text": "public function getFirstResult(): ?int\n {\n return $this->firstResult;\n }", "title": "" }, { "docid": "e46778cbfa8d2157b964825849900797", "score": "0.61736494", "text": "public function eOf() {\n if (!$this->_result) {\n return true;\n }\n if ($this->_result->num_rows == $this->_result->current_field) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "ebe1cf88f7c10b6e6ed79c473ac5769b", "score": "0.6168405", "text": "public function testFetchOne_result()\n {\n $result = DB::conn()->query(\"SELECT id, name FROM foo WHERE id = 4\");\n $row = DB::conn()->fetchOne($result);\n $this->assertEquals(array('id' => 4, 'name' => 'Man'), $row);\n }", "title": "" }, { "docid": "25e943543d32b592e3b82a2d2228297d", "score": "0.6138751", "text": "public function getSingleResult()\n {\n if ($results = $this->getResults()) {\n return array_shift($results);\n }\n return null;\n }", "title": "" }, { "docid": "ef8c846d04c32c50259cdfe268f3ac7f", "score": "0.6138532", "text": "public function result_one(){\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "51eab05d30d3d12bdb558c13891d8bf2", "score": "0.6134466", "text": "public function first()\r\n \t{\r\n \t\treturn $this->results()[0];\r\n \t}", "title": "" }, { "docid": "d243c4146eeabe0a39dd85ca8035a7c0", "score": "0.6133173", "text": "function next()\n {\n if (isset($this->result[$this->ind])) {\n return $this->result[$this->ind++];\n } else if (!$this->complete) {\n $row = $this->fetchNextRow();\n $this->ind++;\n return $row;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "790460db9637c6a1c095fc9ddb5ee6e3", "score": "0.61161906", "text": "function cubrid_next_result($result): bool {}", "title": "" }, { "docid": "354372ca0fee7d474335301f59a274d9", "score": "0.61066484", "text": "public function first()\n\t{\n\t\t$this->limit(1);\n $result = $this->get();\n return $result ? $this->fetch_row() : null;\n\t}", "title": "" }, { "docid": "530b0e8cd75b80e3f71543bf12467db3", "score": "0.6103572", "text": "public function isFirst();", "title": "" }, { "docid": "8a60f0ec28b754a51aec527f55fe5247", "score": "0.60907626", "text": "public function isFirst()\n\t{\n\t\treturn !isset($this->_data[$this->_pos - 1]);\n\t}", "title": "" }, { "docid": "580b3aef4efba88f4fc4c5d0b025d64c", "score": "0.60901856", "text": "public function first()\n {\n $result = $this->prepareSql()->executeFetch();\n\n // No results was found on fetch\n if ( ! $result ) {\n return null;\n }\n \n return $this->createFromModel($result);\n }", "title": "" }, { "docid": "716f3b69cb8f601b5d8a5b8dfbd36709", "score": "0.6088064", "text": "public function query_return_one($sql, $tipo = 'assoc'){\n\t\t$id = $this->query($sql);\n\t\tswitch($tipo){\n\t\t\tdefault:\n\t\t\t\treturn $this->fetch_assoc($id);\n\t\t\tbreak;\n\t\t\tcase 'object':\n\t\t\t\treturn $this->fetch_object($id);\n\t\t\tbreak;\n\t\t\tcase 'array':\n\t\t\t\treturn $this->fetch_array($id);\n\t\t\tbreak;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "5bed67acc89302f794f1ecb4b8e5ab7f", "score": "0.6081689", "text": "public function getFirst()\n {\n if (is_array($this->queryResult)) {\n $queryResult = &$this->queryResult;\n } else {\n $query = clone $this->query;\n $query->setLimit(1);\n $queryResult = $this->dataMapper->mapToObjects($this->persistenceManager->getObjectDataByQuery($query));\n }\n return (isset($queryResult[0])) ? $queryResult[0] : null;\n }", "title": "" }, { "docid": "aa60d8200af83f21b51512db2a2031c6", "score": "0.6078645", "text": "function query_first($query){\n\n $result = query($query);\n if( !isset($result) ){\n return false;\n }\n\n else if( $result === TRUE ){\n return true;\n }\n else if( $result === FALSE ){\n return false;\n }\n else if( $result){\n $data = assoc($result);\n }\n\n free_result($result);\n return $data;\n}", "title": "" }, { "docid": "2a9bfa7f21b1718af1d8e62de007f582", "score": "0.60775995", "text": "public function one(){\n $val = $this->result[0];\n if(empty($val)){\n return false;\n }\n $this->result = [];\n return $val;\n }", "title": "" }, { "docid": "489d6f4387299061b6243c2764aed98c", "score": "0.60773605", "text": "public function NextResult() {\n\t\tif( !$this->more_results() ) return null;\n\t\t$this->next_result();\n\t\t\n\t\tif( $result = $this->store_result() ) {\n\t\t\treturn $result;\n\t\t} else {\n\t\t\n\t\t\t// catch error\n\t\t\tif( $this->field_count > 0 ) {\n\t\t\t\tthrow new SQLException(\n\t\t\t\t\t$this->errno, \"SQL Error: \". $this->error );\n\t\t\t}\n\t\t\t\n\t\t\t// statement was an update.\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "4a305c5ab594429b4b6eae280bbc40b2", "score": "0.60762966", "text": "public function hasResult()\n {\n return $this->result !== null;\n }", "title": "" }, { "docid": "3210d31da45babf7d4248bebcf98d27e", "score": "0.6073009", "text": "public function hasResult() {\n\t\treturn $this->_result instanceof SqlsrvStatement;\n\t}", "title": "" }, { "docid": "4496e055508d29ee0edb3cdc9999ab42", "score": "0.60706484", "text": "public function &get_first() {\n if (isset ( $this->records )) {\n reset ( $this->records );\n $first = & current ( $this->records );\n } else {\n $first = false;\n }\n \n return $first;\n }", "title": "" }, { "docid": "490d53ab5c1d4355bbe74c135efc6340", "score": "0.6058541", "text": "function next_row($type = 'object')\n\t{\n\t\tif (FALSE === ($result = $this->result($type)))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tif (isset($result[$this->current_row + 1]))\n\t\t{\n\t\t\t++$this->current_row;\n\t\t}\n\t\t\t\t\n\t\treturn $result[$this->current_row];\n\t}", "title": "" }, { "docid": "a8edb6c62aad7e1c33bf40f9c54ed9cc", "score": "0.60531414", "text": "public function hasResultIndex(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "65e621e47765e2ca53a553d9ac860552", "score": "0.6043978", "text": "public function next()\n {\n $this->mockPDOStatement->expects($this->once())\n ->method('nextRowset')\n ->will($this->returnValue(true));\n $this->assertTrue($this->pdoStatement->next());\n }", "title": "" }, { "docid": "97cdd4fe0fa2ad9669d5751210cadc04", "score": "0.6018093", "text": "public function getOneResult()\n {\n return $this->getQuery()->getOneOrNullResult();\n }", "title": "" }, { "docid": "48a54310b4ab1cec69ba55cda906fc45", "score": "0.6017348", "text": "public function fetchRow() {\n if ($this->getNumRows()) {\n return mysql_fetch_assoc($this->result);\n }\n return false;\n }", "title": "" }, { "docid": "95e582f1a0189d3c6c3402f47c26b522", "score": "0.60079086", "text": "public function get_first_result ( $p_how=RETURN_ASSOC_ARRAY, $p_dbflag=false )\n {\n if ( $this->_num_returned_rows == -1 || $this->_num_affected_rows == -1 )\n {\n if ( $this->_debug_flag || $p_dbflag )\n echo '<p>(dbg) get_first_result: The query did not work as either _num_returned_rows or _num_affected_rows are -1. Returning false.</p>';\n return false;\n }\n else\n {\n if ( $this->_debug_flag || $p_dbflag )\n {\n // The seek produces a warning if there are no records in the\n // result set. So, only show the warning if debugging\n echo '<p>(dbg) get_first_result: Seeking to the first record...</p>';\n $result = mysql_data_seek ( $this->_result_set, 0 );\n }\n else\n {\n @$result = mysql_data_seek ( $this->_result_set, 0 );\n }\n if ( $result )\n {\n if ( $this->_debug_flag || $p_dbflag )\n echo '<p>(dbg) get_first_result: mysql_data_seek() was successful. Continuing...</p>';\n }\n else\n {\n if ( $this->_debug_flag || $p_dbflag )\n echo '<p>(dbg) get_first_result: mysql_data_seek() returned false. Returning false...</p>';\n return false;\n }\n\n $result = $this->_get_result ( $p_how, $p_dbflag );\n if ( $result )\n {\n if ( $this->_debug_flag || $p_dbflag )\n echo '<p>(dbg) get_first_result: _get_result() was successful. Returning the row...</p>';\n return $this->_row;\n }\n else\n {\n if ( $this->_debug_flag || $p_dbflag )\n echo '<p>(dbg) get_first_result: _get_result() returned false. Returning false...</p>';\n return false;\n }\n }\n }", "title": "" }, { "docid": "09812608e0a66c412ec211478b9c27f5", "score": "0.6006175", "text": "public function fetchOne()\n {\n $this->mockPDOStatement->expects($this->at(0))\n ->method('fetchColumn')\n ->with($this->equalTo(0))\n ->will($this->returnValue(true));\n $this->mockPDOStatement->expects($this->at(1))\n ->method('fetchColumn')\n ->with($this->equalTo(5))\n ->will($this->returnValue(false));\n $this->assertTrue($this->pdoStatement->fetchOne());\n $this->assertFalse($this->pdoStatement->fetchOne(5));\n }", "title": "" }, { "docid": "1a28f4eb5de9ffaf87ff2d2f82d1cc37", "score": "0.59987766", "text": "public function first() {\n return $this->_results[0];\n }", "title": "" }, { "docid": "6a6074a856b1631ae6d30ab2c8ff5a83", "score": "0.5998168", "text": "private function result() {\n\t\t\n\t\tif ($this->result) { return true; }\n\t\t\n\t\techo mysql_error();\n\t\treturn false;\n\t\n\t}", "title": "" }, { "docid": "47327c731086425f02aafed8bc2e7473", "score": "0.598916", "text": "public function hasResult()\n {\n return is_array($this->result) && count($this->result) > 0;\n }", "title": "" }, { "docid": "a1dc9cd3021b1935e725e375ad5dae49", "score": "0.59827304", "text": "public function first() {\n return $this->results()[0];\n }", "title": "" }, { "docid": "03a083e88a9e1e671663fd0df4d876b4", "score": "0.5976934", "text": "function fetchRecord() {\r\n if ($this->data = mysql_fetch_assoc($this->result)) {\r\n $this->row_number++;\r\n return $this->data;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "4bd2dabfd21fa0ad90a6c04a21cf4735", "score": "0.59753233", "text": "public function hasResults(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "4bd2dabfd21fa0ad90a6c04a21cf4735", "score": "0.59753233", "text": "public function hasResults(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "4bd2dabfd21fa0ad90a6c04a21cf4735", "score": "0.59753233", "text": "public function hasResults(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "82f3cfec4d2d6eaaf15a25711f88b887", "score": "0.59743416", "text": "function next_record()\n {\n /* goto next record */\n $this->m_record = @pg_fetch_array($this->m_query_id, $this->m_row, PGSQL_ASSOC|atkconfig(\"pgsqlfetchmode\"));\n $this->m_row++;\n\n /* are we there? */\n $result = is_array($this->m_record);\n if (!$result && $this->m_auto_free)\n {\n @pg_freeresult($this->m_query_id);\n $this->m_query_id = 0;\n }\n\n /* return result */\n return $result;\n }", "title": "" }, { "docid": "62ad48fa3191cf6fb39e8c3cc2642fba", "score": "0.59729797", "text": "public function fetchFirstObj() {\n\t\treturn $this->fetchFirst(\\PDO::FETCH_OBJ);\n\t}", "title": "" }, { "docid": "f63bbd1d4cc1b66bba35c8f5d01fdddd", "score": "0.5963688", "text": "function fetch(){\n\n if(isset($this->result)){\n return $this->result->fetch_assoc();\n }\n\n return false;\n }", "title": "" }, { "docid": "650d43d899c7dd69705ed1f559f4d7e9", "score": "0.59600353", "text": "function _get_result($res_id=NULL)\n {\n if ($res_id==NULL)\n $res_id = $this->last_res_id;\n \n if ($res_id && isset($this->a_query_results[$res_id]))\n return $this->a_query_results[$res_id];\n else\n return FALSE;\n }", "title": "" }, { "docid": "4e65ba469d3ece2b0c4d615d345f1e01", "score": "0.5954563", "text": "public function first()\n {\n $this->limit = 1;\n\n $result = $this->execute()->fetch(\\PDO::FETCH_ASSOC);\n\n return $result ?: null;\n }", "title": "" }, { "docid": "0dbddbcdd069460cbc824981b1c7c8d1", "score": "0.5944947", "text": "public function findFirst() {\r\n\t\t$aux = $this->fetchAllPg(1);\r\n\t\tif($aux == null)\r\n\t\t\treturn null;\r\n\t\treturn $aux[0];\r\n\t}", "title": "" }, { "docid": "4c763a396a89999be0dede71ffca9a81", "score": "0.594371", "text": "private function fetchNextRow()\n {\n $row = $this->stmt->fetch(\\PDO::FETCH_ASSOC);\n if ($row) {\n if ($this->outTypes) {\n $this->map($row, $this->outTypes);\n }\n array_push($this->result, $row);\n return $row;\n } else {\n $this->close();\n return false;\n }\n }", "title": "" }, { "docid": "0eb490da6f08a3a9f04a00a6faba4897", "score": "0.5937374", "text": "public function getFirstResultPosition()\n {\n return (int)$this->returnAttribute(\"firstResultPosition\");\n }", "title": "" }, { "docid": "9f3c5f6dee1879a58934e94f92cee507", "score": "0.5935881", "text": "function GetOne($sql,$inputarr=false)\n\t{\n\t\tglobal $ADODB_GETONE_EOF;\n\n\t\t$ret = false;\n\t\t$rs = $this->Execute($sql,$inputarr);\n\t\tif ($rs) {\n\t\t\tif ($rs->EOF) $ret = $ADODB_GETONE_EOF;\n\t\t\telse $ret = reset($rs->fields);\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "7e58cb6e05cdaeb546147fdf41267950", "score": "0.5920683", "text": "public function first() {\n\t\t\treturn $this->results()[0];\n\n\t\t}", "title": "" }, { "docid": "6fac7abee93a338dd068d7fd7a07287b", "score": "0.5916438", "text": "function fetch($sql,$isone=false)\n\t {\n\t $this->sql= $sql;\n\t $aResult = array();\n\t $this->connect();\n\t $pResult = mysql_query($sql,$this->links);\n\t if($pResult){\n\t\t\tif (mysql_num_rows($pResult) > 0) {\n\t\t\t\twhile ($aRow = mysql_fetch_array($pResult)) {\n\t\t\t\t\t$aResult[] = $aRow;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\tif($isone == true)\n\t\t\t{\n\t\t\t\t$aResult=$aResult[0];\n\t\t\t}\n\t\t\t\n\t\t\treturn $aResult;\n\t\t\n\t\t}else{ return false; }\n\t }", "title": "" }, { "docid": "953694667c73c479b553358fa0014d02", "score": "0.59154934", "text": "function hasElements($result){\r\n\t\tif($result && mysql_num_rows($result) > 0){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "ac3fb73ed6276f31b1022ce013b23273", "score": "0.5912173", "text": "function setFirst() \r\n {\r\n $this->resultSet->setFirst();\r\n }", "title": "" }, { "docid": "bc34bd8ef6c74b6249375a0340da9aec", "score": "0.59118754", "text": "public function getFirst(){ \n $stmt = $this->execute();\n $row = $stmt->fetch(PDO::FETCH_ASSOC);//result\n if($stmt !== null && $row == true){ \n if($this->entiy_class_name==\"\"){\n $temp_obj = new EmptyClass();\n }\n else{\n $class_name = ENTITY_NAMESPACE.$this->entiy_class_name;\n $temp_obj = class_exists($class_name)?new $class_name(): new EmptyClass(); \n }\n \n $this->putDataToObject($temp_obj, $row);\n $this->unsetHiddenFields($temp_obj,$row);\n return $temp_obj;\n }\n return null;\n }", "title": "" }, { "docid": "35a97a5ba8121f2135e58c6f45160e78", "score": "0.5899864", "text": "public function first()\n {\n $ret = $this->_select(\"LIMIT 1\");\n if (count($ret) == 0)\n return null;\n else\n return $ret[0];\n }", "title": "" }, { "docid": "06495b55e6d83d4a05dc8e98ba18c1a1", "score": "0.5898801", "text": "public static function fetch() {\r\n\t\t\tif (self::getPosition() <= ((int) self::getRecordCount())) {\r\n\t\t\t\t$intPos = self::getPosition();\r\n\t\t\t\t$arrRow = self::fetchOneRow(self::getPosition());\r\n\t\t\t\tself::setPosition($intPos+1);\r\n\t\t\t\treturn ($arrRow);\r\n\t\t\t} else return (false);\t\r\n\t\t\t\t\r\n\t\t}", "title": "" }, { "docid": "9f7856925cac8adb06d88e065efc5633", "score": "0.58955884", "text": "public function check_isFirst($u_id)\n\t{\n\t\t$query=\"select isfirst from user_profile where u_id=\".$u_id;\n\t\t$execute=$this->db->query($query);\n\t\tif($execute->num_rows() >0)\n\t\t{\n\t\t\t$row=$execute->row();\n\t\t\t$result=$row->isfirst;\n\t\t\treturn $result;\n\t\t}\n\t\treturn -1;\n\n\t}", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5891608", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5891608", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5891608", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5891608", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5891608", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5891608", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5891608", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5891608", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5891608", "text": "public function first();", "title": "" }, { "docid": "3214189a63587c5c666a45c1fa5b0a8b", "score": "0.5887189", "text": "function SelOne($sql) {\n\t\tglobal $_langs;\n\t\t$replace_str = \"_\" . $_langs[$_SESSION['ln']];\n\n\t\t$sql = str_replace('_ln', $replace_str, $sql);\n\t\t$result = $this->Query($sql);\n\t\tif ($result) {\n\t\t\t$rs = $this->FetchRow($result);\n\t\t\treturn ($rs == EMPTY_RESULT) ? EMPTY_RESULT : $rs[0];\n\t\t}\n\t}", "title": "" }, { "docid": "fbe25b54f769654c6dce7d511b768f86", "score": "0.5885446", "text": "public function fetchOne()\n {\n \n\t\t$result = false;\n\n\t\ttry{\n\t\t\t$this->openConnectionDatabase();\n\n\t\t\t// Exécution des requêtes SQL\n\t\t\t$query=sprintf(\"SELECT ID, EMAIL,NOM,PRENOM,DATENAISSANCE,ROLE,ACTIF FROM utilisateurs where id=%d\",mysqli_real_escape_string($this->dblink,$this->getId()));\n \n\t\t\t$mysql_result = mysqli_query($this->dblink,$query);\n\t\t\tif (!$mysql_result){\n\t\t\t\t$this->setError(mysqli_error($this->dblink));\n\t\t\t\t$result=false;\n\t\t\t}else{\n\t\t\t\t$num_rows = mysqli_num_rows($mysql_result);\n\t\t\t\tif ($num_rows==1){\n\t\t\t\t\t$row = mysqli_fetch_assoc($mysql_result);\n\t\t\t\t\t$row['DATENAISSANCE'] = implode('-', array_reverse(explode('-', $row['DATENAISSANCE'])));\n\t\t\t\t\t$result = $row;\n\t\t\t\t}else{\n\t\t\t\t\tif ($num_rows==0){\n\t\t\t\t\t\t$this->setError(\"Aucun utilisateur existant pour cet email!\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->setError(\"Plusieurs utilisateurs existent pour cet email!\");\n\t\t\t\t\t}\n\t\t\t\t\t$result=false;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception $e)\n\t\t{\n\t\t\t$this->setError($e->getMessage());\n\t\t} \n\n\t\tmysqli_free_result($mysql_result);\n\t\t$this->closeConnectionDatabase();\n\n\t\treturn $result;\n \n }", "title": "" }, { "docid": "5c2ac44a3b89d781d2163b109fe9a997", "score": "0.58816564", "text": "abstract public function rsNext();", "title": "" }, { "docid": "ad4e8222205c17912f379603671b281d", "score": "0.5876783", "text": "function getOneRow($query) {\n\n\t\tif ( isset($query) ) {\n\n\t\t\t//get data from the database\n\n\t\t\t$result = $this->query ( $query );\n\n\t\t\tif ( $result != FALSE ) {\n\n\t\t\t\treturn mysqli_fetch_assoc( $result );\n\n\t\t\t} \n\n\t\t}\n\n\t\treturn FALSE;\n\n\t}", "title": "" }, { "docid": "20c8b372c9fed4651db86f521a54c89f", "score": "0.5873678", "text": "public function first()\n {\n $result = $this->limit(1)->fetch();\n return array_shift($result);\n }", "title": "" }, { "docid": "6b3a67da87ad07fc725435e368539296", "score": "0.58708876", "text": "public function next_record($result = NULL){\n\t\tif ($result==NULL) {\n\t\t\t$result = $this->lastResult;\n\t\t}\n\t\treturn (($result==NULL||mysqli_num_rows($result)<1)?NULL:mysqli_fetch_assoc($result));\n\t}", "title": "" }, { "docid": "5d9ed7d20b0a728ace516c400fd9ca0b", "score": "0.5866025", "text": "private function idIsUnique($result){\r\n\t\tif((!$result)||(mysqli_num_rows($result)==0))\r\n\t\t\treturn true;\r\n\t\telse\t\r\n\t\t\treturn false;\t\r\n\t}", "title": "" } ]
627c1ea6989e0986f8815fdf900c162e
Create a new controller instance.
[ { "docid": "292dce0fb25f89abb8c64bf979c1cafd", "score": "0.0", "text": "public function __construct()\n {\n $this->middleware('auth');\n }", "title": "" } ]
[ { "docid": "f2a8a6dabb56f39daaf63fa047807979", "score": "0.82668066", "text": "protected function createController()\n {\n $this->createClass('controller');\n }", "title": "" }, { "docid": "533144d4d648d293dbbc6fe3cf27bbc4", "score": "0.8173394", "text": "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this->call('make:controller', array_filter([\n 'name' => \"{$controller}Controller\",\n '--model' => $modelName,\n '--api' => true,\n ]));\n }", "title": "" }, { "docid": "009489a62f264e72dc26611f5f6b8e4c", "score": "0.78115296", "text": "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n $model_name = $this->qualifyClass($this->getNameInput());\n $name = Str::contains($model_name, ['\\\\']) ? Str::afterLast($model_name, '\\\\') : $model_name;\n\n $this->call('make:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $model_name,\n ]);\n\n $path = base_path() . \"/app/Http/Controllers/{$controller}Controller.php\";\n $this->cleanupDummy($path, $name);\n }", "title": "" }, { "docid": "96bf93207c54bc07dea5f79ad4bbbac0", "score": "0.77052677", "text": "private function makeInitiatedController()\n\t{\n\t\t$controller = new TestEntityCRUDController();\n\n\t\t$controller->setLoggerWrapper(Logger::create());\n\n\t\treturn $controller;\n\t}", "title": "" }, { "docid": "3bdd2d2191aefb9704f39b9261dffb98", "score": "0.7681875", "text": "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n ]));\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"Api/{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n '--api' => true,\n ]));\n }", "title": "" }, { "docid": "4a9c22e73d83f9952868a759ac74f09f", "score": "0.7659338", "text": "protected function createController()\n {\n $name = str_replace(\"Service\",\"\",$this->argument('name'));\n\n $this->call('make:controller', [\n 'name' => \"{$name}Controller\"\n ]);\n }", "title": "" }, { "docid": "70f5a9f9baafe3bd5768677d381e5c47", "score": "0.74860525", "text": "protected function createController()\n {\n $params = [\n 'name' => $this->argument('name'),\n ];\n\n if ($this->option('api')) {\n $params['--api'] = true;\n }\n\n $this->call('wizard:controller', $params);\n }", "title": "" }, { "docid": "683431e5a15f99ac4cac3c7183a4d875", "score": "0.74064577", "text": "public function generateController () {\r\n $controllerParam = \\app\\lib\\router::getPath();\r\n $controllerName = \"app\\controller\\\\\" . end($controllerParam);\r\n $this->controller = new $controllerName;\r\n }", "title": "" }, { "docid": "7044e60860800b5a3eab09c60e06bbbf", "score": "0.7297601", "text": "public static function newController($controller)\n\t{\n\t\t$objController = \"App\\\\Controllers\\\\\".$controller;\n\t\treturn new $objController;\n\t}", "title": "" }, { "docid": "6f13b253b8c8dee53ff96601b68560fe", "score": "0.7252339", "text": "public function createController()\n\t{\n\t\tif(class_exists($this->controller))\n\t\t{\n\t\t\t// get the parent class he extends\n\t\t\t$parents = class_parents($this->controller);\n\n\t\t\t// $parents = class_implements($this->controller); used if our Controller was just an interface not a class\n\n\t\t\t// check if the class implements our Controller Class\n\t\t\tif(in_array(\"Controller\", $parents))\n\t\t\t{\n\t\t\t\t// check if the action in the request exists in that class\n\t\t\t\tif(method_exists($this->controller, $this->action))\n\t\t\t\t{\n\t\t\t\t\treturn new $this->controller($this->action, $this->request);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Action is not exist\n\t\t\t\t\techo 'Method '. $this->action .' doesn\\'t exist in '. $this->controller;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// The controller doesn't extends our Controller Class\n\t\t\t\techo $this->controller.' doesn\\'t extends our Controller Class';\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Controller Doesn't exist\n\t\t\techo $this->controller.' doesn\\'t exist';\n\t\t}\n\t}", "title": "" }, { "docid": "ce2e2bdb91cb96b738f8229489a7c2a7", "score": "0.7195181", "text": "public function createController( ezcMvcRequest $request );", "title": "" }, { "docid": "f04ee15a350dcb74c3536147b32d0d4a", "score": "0.7174191", "text": "public function createController() {\n //check our requested controller's class file exists and require it if so\n /*if (file_exists(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\")) {\n require(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\");\n } else {\n throw new Exception('Route does not exist');\n }*/\n\n try {\n require_once __DIR__ . '/../Controllers/' . $this->controllerName . '.php';\n } catch (Exception $e) {\n return $e;\n }\n \n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n \n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\",$parents)) { \n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->endpoint)) {\n return new $this->controllerClass($this->args, $this->endpoint, $this->domain);\n } else {\n throw new Exception('Action does not exist');\n }\n } else {\n throw new Exception('Class does not inherit correctly.');\n }\n } else {\n throw new Exception('Controller does not exist.');\n }\n }", "title": "" }, { "docid": "ab5d0af4bfb6adff442d858f4c81ea9c", "score": "0.70150065", "text": "public static function create()\n\t{\n\t\t//check, if a JobController instance already exists\n\t\tif(JobController::$jobController == null)\n\t\t{\n\t\t\tJobController::$jobController = new JobController();\n\t\t}\n\n\t\treturn JobController::$jobController;\n\t}", "title": "" }, { "docid": "3478aecec4534d15e334f0c29fe27303", "score": "0.6989306", "text": "private function controller()\n {\n $location = $this->args[\"location\"] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n $relative_location = $this->args['application_folder'] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n\n if (!empty($this->args['subdirectories']))\n {\n $location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n $relative_location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n }\n\n if (!is_dir($location))\n {\n mkdir($location, 0755, TRUE);\n }\n\n $relative_location .= $this->args['filename'];\n $filename = $location . $this->args['filename'];\n\n $args = array(\n \"class_name\" => ApplicationHelpers::camelize($this->args['name']),\n \"filename\" => $this->args['filename'],\n \"application_folder\" => $this->args['application_folder'],\n \"parent_class\" => (isset($this->args['parent'])) ? $this->args['parent'] : $this->args['parent_controller'],\n \"extra\" => $this->extra,\n 'relative_location' => $relative_location,\n 'helper_name' => strtolower($this->args['name']) . '_helper',\n );\n\n $template = new TemplateScanner(\"controller\", $args);\n $controller = $template->parse();\n\n $message = \"\\t\";\n if (file_exists($filename))\n {\n $message .= 'Controller already exists : ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'light_blue');\n }\n $message .= $relative_location;\n }\n elseif (file_put_contents($filename, $controller))\n {\n $message .= 'Created controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'green');\n }\n $message .= $relative_location;\n }\n else\n {\n $message .= 'Unable to create controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'red');\n }\n $message .= $relative_location;\n }\n\n // The controller has been generated, output the confirmation message\n fwrite(STDOUT, $message . PHP_EOL);\n\n // Create the helper files.\n $this->helpers();\n\n $this->assets();\n\n // Create the view files.\n $this->views();\n\n return;\n }", "title": "" }, { "docid": "f3d3c1f12d74bc40b3597bd93e355adb", "score": "0.69835985", "text": "public function createController( $controllerName ) {\r\n\t\t$refController \t\t= $this->instanceOfController( $controllerName );\r\n\t\t$refConstructor \t= $refController->getConstructor();\r\n\t\tif ( ! $refConstructor ) return $refController->newInstance();\r\n\t\t$initParameter \t\t= $this->setParameter( $refConstructor );\r\n\t\treturn $refController->newInstanceArgs( $initParameter ); \r\n\t}", "title": "" }, { "docid": "14a13bf54d8578e5d149c0883fff8188", "score": "0.69732994", "text": "public function create($controllerName) {\r\n\t\tif (!$controllerName)\r\n\t\t\t$controllerName = $this->defaultController;\r\n\r\n\t\t$controllerName = ucfirst(strtolower($controllerName)).'Controller';\r\n\t\t$controllerFilename = $this->searchDir.'/'.$controllerName.'.php';\r\n\r\n\t\tif (preg_match('/[^a-zA-Z0-9]/', $controllerName))\r\n\t\t\tthrow new Exception('Invalid controller name', 404);\r\n\r\n\t\tif (!file_exists($controllerFilename)) {\r\n\t\t\tthrow new Exception('Controller not found \"'.$controllerName.'\"', 404);\r\n\t\t}\r\n\r\n\t\trequire_once $controllerFilename;\r\n\r\n\t\tif (!class_exists($controllerName) || !is_subclass_of($controllerName, 'Controller'))\r\n\t\t\tthrow new Exception('Unknown controller \"'.$controllerName.'\"', 404);\r\n\r\n\t\t$this->controller = new $controllerName();\r\n\t\treturn $this;\r\n\t}", "title": "" }, { "docid": "ab4fe2ca874b633c7f4cf15421945365", "score": "0.6963521", "text": "private function createController($controllerName)\n {\n $className = ucfirst($controllerName) . 'Controller';\n ${$this->lcf($controllerName) . 'Controller'} = new $className();\n return ${$this->lcf($controllerName) . 'Controller'};\n }", "title": "" }, { "docid": "de4b281ca1111c102066f229b9c0a754", "score": "0.6935819", "text": "public function createControllerObject(string $controller)\n {\n $this->checkControllerExists($controller);\n $controller = $this->ctlrStrSrc.$controller;\n $controller = new $controller();\n return $controller;\n }", "title": "" }, { "docid": "db217dc005a426b44f51eb7f759f5d1b", "score": "0.68973273", "text": "public function create_controller($controller, $action){\n\t $creado = false;\n\t\t$controllers_dir = Kumbia::$active_controllers_dir;\n\t\t$file = strtolower($controller).\"_controller.php\";\n\t\tif(file_exists(\"$controllers_dir/$file\")){\n\t\t\tFlash::error(\"Error: El controlador '$controller' ya existe\\n\");\n\t\t} else {\n\t\t\tif($this->post(\"kind\")==\"applicationcontroller\"){\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends ApplicationController {\\n\\n\\t\\tfunction $action(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tif(@file_put_contents(\"$controllers_dir/$file\", $filec)){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends StandardForm {\\n\\n\\t\\tpublic \\$scaffold = true;\\n\\n\\t\\tpublic function __construct(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tfile_put_contents(\"$controllers_dir/$file\", $filec);\n\t\t\t\tif($this->create_model($controller, $controller, \"index\")){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($creado){\n\t\t\t Flash::success(\"Se cre&oacute; correctamente el controlador '$controller' en '$controllers_dir/$file'\");\n\t\t\t}else {\n\t\t\t Flash::error(\"Error: No se pudo escribir en el directorio, verifique los permisos sobre el directorio\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$this->route_to(\"controller: $controller\", \"action: $action\");\n\t}", "title": "" }, { "docid": "7c99e464d9a5586cb986160967f0b093", "score": "0.68920785", "text": "private function instanceController( string $controller_class ): Controller {\n\t\treturn new $controller_class( $this->request, $this->site );\n\t}", "title": "" }, { "docid": "af02db0fcd660d586455e9e5f45b84ca", "score": "0.6877748", "text": "public function makeController($controller_name)\n\t{\n\t\t$model\t= $this->_makeModel($controller_name, $this->_storage_type);\n\t\t$view\t= $this->_makeView($controller_name);\n\t\t\n\t\treturn new $controller_name($model, $view);\n\t}", "title": "" }, { "docid": "26aa3860caa7d1ba98d7f08e7c3daca1", "score": "0.68702674", "text": "public function create()\n {\n $output = new \\Symfony\\Component\\Console\\Output\\ConsoleOutput();\n $output->writeln(\"<info>Controller Create</info>\");\n }", "title": "" }, { "docid": "54f3bd3e2cbfede0ee337a4f04cb580b", "score": "0.68622285", "text": "protected function createDefaultController() {\n Octopus::requireOnce($this->app->getOption('OCTOPUS_DIR') . 'controllers/Default.php');\n return new DefaultController();\n }", "title": "" }, { "docid": "bb2902ade90d8adf4bbb7d6df661f2da", "score": "0.6839049", "text": "private function createControllerDefinition()\n {\n $id = $this->getServiceId('controller');\n if (!$this->container->has($id)) {\n $definition = new Definition($this->getServiceClass('controller'));\n $definition\n ->addMethodCall('setConfiguration', [new Reference($this->getServiceId('configuration'))])\n ->addMethodCall('setContainer', [new Reference('service_container')])\n ;\n $this->container->setDefinition($id, $definition);\n }\n }", "title": "" }, { "docid": "4d6395015d31266797529df150784a1e", "score": "0.6779292", "text": "public function createController( $ctrlName, $action ) {\n $args['action'] = $action;\n $args['path'] = $this->path . '/modules/' . $ctrlName;\n $ctrlFile = $args['path'] . '/Controller.php';\n // $args['moduleName'] = $ctrlName;\n if ( file_exists( $ctrlFile ) ) {\n $ctrlPath = str_replace( CITRUS_PATH, '', $args['path'] );\n $ctrlPath = str_replace( '/', '\\\\', $ctrlPath ) . '\\Controller';\n try { \n $r = new \\ReflectionClass( $ctrlPath ); \n $inst = $r->newInstanceArgs( $args ? $args : array() );\n\n $this->controller = Citrus::apply( $inst, Array( \n 'name' => $ctrlName, \n ) );\n if ( $this->controller->is_protected == null ) {\n $this->controller->is_protected = $this->is_protected;\n }\n return $this->controller;\n } catch ( \\Exception $e ) {\n prr($e, true);\n }\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "a63577bbe00a8d905bcd679acc6c0582", "score": "0.6703522", "text": "protected function createTestController() {\n\t\t$controller = new CController('test');\n\n\t\t$action = $this->getMock('CAction', array('run'), array($controller, 'test'));\n\t\t$controller->action = $action;\n\n\t\tYii::app()->controller = $controller;\n\t\treturn $controller;\n\t}", "title": "" }, { "docid": "467075b0298df3faa7c57bb978345fee", "score": "0.66688496", "text": "public static function newController($controllerName, $params = [], $request = null) {\n\n\t\t$controller = \"App\\\\Controllers\\\\\".$controllerName;\n\n\t\treturn new $controller($params, $request);\n\n\t}", "title": "" }, { "docid": "d2abe796c2e934d6af4eb56535f83974", "score": "0.66600126", "text": "private function loadController() : void\n\t{\n\t\t$this->controller = new $this->controllerName($this->request);\n\t}", "title": "" }, { "docid": "12b3061ca6befae87704d3d91c1e63b8", "score": "0.6650373", "text": "public function createController($pi, array $params)\n {\n $class = $pi . '_Controller_' . ucfirst($params['page']);\n\n return new $class();\n }", "title": "" }, { "docid": "e5eb97ae5bceb33a1b4b8b1dfbae3b55", "score": "0.66436416", "text": "public function createController() {\n //check our requested controller's class file exists and require it if so\n \n if (file_exists(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\" ) && $this->controllerName != 'error') {\n require(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\");\n \n } else {\n \n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n\n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\", $parents)) {\n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->action)) { \n return new $this->controllerClass($this->action, $this->urlValues);\n \n } else {\n //bad action/method error\n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badview\", $this->urlValues);\n }\n } else {\n $this->urlValues['controller'] = \"error\";\n //bad controller error\n echo \"hjh\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"b\", $this->urlValues);\n }\n } else {\n \n //bad controller error\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n }", "title": "" }, { "docid": "cbfb3615a9d251258567a3a07c55a3f6", "score": "0.6615505", "text": "protected static function createController($name) {\n $result = null;\n\n $name = self::$_namespace . ($name ? $name : self::$defaultController) . 'Controller';\n if(class_exists($name)) {\n $controllerClass = new \\ReflectionClass($name);\n if($controllerClass->hasMethod('run')) {\n $result = new $name();\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "119bb1044c5b46d04d1b730be927eb1b", "score": "0.66144013", "text": "public function createController(): void\n {\n $minimum_buffer_min = 3;\n $token_ok = $this->routerService->ds_token_ok($minimum_buffer_min);\n if ($token_ok) {\n # 2. Call the worker method\n # More data validation would be a good idea here\n # Strip anything other than characters listed\n $results = $this->worker($this->args);\n\n if ($results) {\n # Redirect the user to the NDSE view\n # Don't use an iFrame!\n # State can be stored/recovered using the framework's session or a\n # query parameter on the returnUrl\n header('Location: ' . $results[\"redirect_url\"]);\n exit;\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "title": "" }, { "docid": "14fd6b4f7ac02efdcff4d30ef4b7b555", "score": "0.6588728", "text": "protected function createController($controllerClass)\n {\n $cls = new ReflectionClass($controllerClass);\n return $cls->newInstance($this->environment);\n }", "title": "" }, { "docid": "4bf729ef62655b25d2e5f8a2012fb940", "score": "0.64483404", "text": "protected function createController($name)\n {\n $controllerClass = 'controller\\\\'.ucfirst($name).'Controller';\n\n if(!class_exists($controllerClass)) {\n throw new \\Exception('Controller class '.$controllerClass.' not exists!');\n }\n\n return new $controllerClass();\n }", "title": "" }, { "docid": "ac6388a791747c5283318e8f0acd4ee6", "score": "0.64439476", "text": "protected function initController() {\n\t\tif (!isset($_GET['controller'])) {\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$controllerClass = $_GET['controller'].\"Controller\";\n\t\tif (!class_exists($controllerClass)) {\n\t\t\t//Console::error(@$_GET['controller'].\" doesn't exist\");\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$this->controller = new $controllerClass();\n\t}", "title": "" }, { "docid": "dcac8ad306f47c519df460d8b25bc0d3", "score": "0.6429303", "text": "public function makeTestController(TestController $controller)\r\n\t{\r\n\t}", "title": "" }, { "docid": "b7bc03d83ef43b44edec1667acd9d200", "score": "0.6426485", "text": "static function factory($GET=array(), $POST=array(), $FILES=array()) {\n $type = (isset($GET['type'])) ? $GET['type'] : '';\n $objectController = $type.'_Controller';\n $addLocation = $type.'/'.$objectController.'.php';\n foreach ($_ENV['locations'] as $location) {\n if (is_file($location.$addLocation)) {\n return new $objectController($GET, $POST, $FILES);\n } \n }\n throw new Exception('The controller \"'.$type.'\" does not exist.');\n }", "title": "" }, { "docid": "7549c3aa5de8c608d233608a05e0d2ff", "score": "0.6303757", "text": "public function create()\n {\n $general = new ModeloController();\n\n return $general->create();\n }", "title": "" }, { "docid": "9f4dd4d5ed5aecd2b08522632df08340", "score": "0.6298291", "text": "public function makeController($controllerNamespace, $controllerName, Log $log, $session, Request $request, Response $response)\r\n\t{\r\n\t\t$fullControllerName = '\\\\Application\\\\Controller\\\\' . (!empty($controllerNamespace) ? $controllerNamespace . '\\\\' : '') . $controllerName;\r\n\t\t$controller = new $fullControllerName();\r\n\t\t$controller->setConfig($this->config);\r\n\t\t$controller->setRequest($request);\r\n\t\t$controller->setResponse($response);\r\n\t\t$controller->setLog($log);\r\n\t\tif (isset($session))\r\n\t\t{\r\n\t\t\t$controller->setSession($session);\r\n\t\t}\r\n\r\n\t\t// Execute additional factory method, if available (exists in \\Application\\Controller\\Factory)\r\n\t\t$method = 'make' . $controllerName;\r\n\t\tif (is_callable(array($this, $method)))\r\n\t\t{\r\n\t\t\t$this->$method($controller);\r\n\t\t}\r\n\r\n\t\t// If the controller has an init() method, call it now\r\n\t\tif (is_callable(array($controller, 'init')))\r\n\t\t{\r\n\t\t\t$controller->init();\r\n\t\t}\r\n\r\n\t\treturn $controller;\r\n\t}", "title": "" }, { "docid": "ef904e57c49b4c63502f9599c4369910", "score": "0.6293319", "text": "public static function create()\n\t{\n\t\t//check, if an AccessGroupController instance already exists\n\t\tif(AccessGroupController::$accessGroupController == null)\n\t\t{\n\t\t\tAccessGroupController::$accessGroupController = new AccessGroupController();\n\t\t}\n\n\t\treturn AccessGroupController::$accessGroupController;\n\t}", "title": "" }, { "docid": "38f2158f27dcbe384172e6072562f092", "score": "0.62811387", "text": "public static function buildController()\n\t{\n\t\t$file = CONTROLLER_PATH . 'indexController.class.php';\n\n\t\tif(!file_exists($file))\n\t\t{\n\t\t\tif(\\RCPHP\\Util\\Check::isClient())\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \"Welcome RcPHP!\\n\";\n }\n}';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \\'<style type=\"text/css\">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: \"微软雅黑\"; color: #333;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px }</style><div style=\"padding: 24px 48px;\"> <h1>:)</h1><p>Welcome <b>RcPHP</b>!</p></div>\\';\n }\n}';\n\t\t\t}\n\t\t\tfile_put_contents($file, $controller);\n\t\t}\n\t}", "title": "" }, { "docid": "0ccfd8e75fef53760e68b6c0451a1fef", "score": "0.6258778", "text": "public function getController( );", "title": "" }, { "docid": "8e040943c52a229307c95749c1e144f8", "score": "0.62542456", "text": "public static function getInstance() : Controller {\n if ( null === self::$instance ) {\n self::$instance = new self();\n self::$instance->options = new Options(\n self::OPTIONS_KEY\n );\n }\n\n return self::$instance;\n }", "title": "" }, { "docid": "b0a2bc5d188bc08393d02e7d5ea62ea9", "score": "0.616827", "text": "static function appCreateController($entityName, $prefijo = '') {\n\n $controller = ControllerBuilder::getController($entityName, $prefijo);\n $entityFile = ucfirst(str_replace($prefijo, \"\", $entityName));\n $fileController = \"../../modules/{$entityFile}/{$entityFile}Controller.class.php\";\n\n $result = array();\n $ok = self::createArchive($fileController, $controller);\n ($ok) ? array_push($result, \"Ok, {$fileController} created\") : array_push($result, \"ERROR creating {$fileController}\");\n\n return $result;\n }", "title": "" }, { "docid": "82927759d02a8d347ca279944293ac27", "score": "0.6162314", "text": "public static function newInstance($path = \\simpleChat\\Utility\\ROOT_PATH)\n {\n $request = new Request();\n \n \n if ($request->isAjax())\n {\n return new AjaxController();\n }\n else if ($request->jsCode())\n {\n return new JsController();\n }\n else\n {\n return new StandardController($path);\n }\n }", "title": "" }, { "docid": "7e93c64cd2508a462bd6071f50013332", "score": "0.61610043", "text": "private function createInstance()\n {\n $objectManager = new \\Magento\\Framework\\TestFramework\\Unit\\Helper\\ObjectManager($this);\n $this->controller = $objectManager->getObject(\n \\Magento\\NegotiableQuote\\Controller\\Adminhtml\\Quote\\RemoveFailedSku::class,\n [\n 'context' => $this->context,\n 'logger' => $this->logger,\n 'messageManager' => $this->messageManager,\n 'cart' => $this->cart,\n 'resultRawFactory' => $this->resultRawFactory\n ]\n );\n }", "title": "" }, { "docid": "6715ace39f1bed012bf1900ff23df12e", "score": "0.6139887", "text": "function loadController(){\n $name = ucfirst($this->request->controller).'Controller' ;\n $file = ROOT.DS.'Controller'.DS.$name.'.php' ;\n /*if(!file_exists($file)){\n $this->error(\"Le controleur \".$this->request->controller.\" n'existe pas\") ;\n }*/\n require_once $file;\n $controller = new $name($this->request);\n return $controller ;\n }", "title": "" }, { "docid": "7fcf639581fd6020a3b7c3ed99d584a9", "score": "0.613725", "text": "public function __construct(){\r\n $app = Application::getInstance();\r\n $this->_controller = $app->getController();\r\n }", "title": "" }, { "docid": "7e3d5d05001dd55f8ad7d8bff78f0789", "score": "0.61334985", "text": "public static function & instance()\n {\n if (self::$instance === null) {\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Include the Controller file\n require Router::$controller_path;\n\n try {\n // Start validation of the controller\n $class = new ReflectionClass(ucfirst(Router::$controller).'_Controller');\n } catch (ReflectionException $e) {\n // Controller does not exist\n Event::run('system.404');\n }\n\n if ($class->isAbstract() or (IN_PRODUCTION and $class->getConstant('ALLOW_PRODUCTION') == false)) {\n // Controller is not allowed to run in production\n Event::run('system.404');\n }\n\n // Run system.pre_controller\n Event::run('system.pre_controller');\n\n // Create a new controller instance\n $controller = $class->newInstance();\n\n // Controller constructor has been executed\n Event::run('system.post_controller_constructor');\n\n try {\n // Load the controller method\n $method = $class->getMethod(Router::$method);\n\n // Method exists\n if (Router::$method[0] === '_') {\n // Do not allow access to hidden methods\n Event::run('system.404');\n }\n\n if ($method->isProtected() or $method->isPrivate()) {\n // Do not attempt to invoke protected methods\n throw new ReflectionException('protected controller method');\n }\n\n // Default arguments\n $arguments = Router::$arguments;\n } catch (ReflectionException $e) {\n // Use __call instead\n $method = $class->getMethod('__call');\n\n // Use arguments in __call format\n $arguments = array(Router::$method, Router::$arguments);\n }\n\n // Stop the controller setup benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Start the controller execution benchmark\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_execution');\n\n // Execute the controller method\n $method->invokeArgs($controller, $arguments);\n\n // Controller method has been executed\n Event::run('system.post_controller');\n\n // Stop the controller execution benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_execution');\n }\n\n return self::$instance;\n }", "title": "" }, { "docid": "4e1e4562b5f52e83da2981f23ec33f5d", "score": "0.6132223", "text": "protected function instantiateController($class)\n {\n $controller = new $class();\n\n if ($controller instanceof Controller) {\n $controller->setContainer($this->container);\n }\n\n return $controller;\n }", "title": "" }, { "docid": "7905f65e0331b365778f5a7ceedacdde", "score": "0.6128982", "text": "public function __construct (){\n $this->AdminController = new AdminController();\n $this->ArticleController = new ArticleController();\n $this->AuditoriaController = new AuditoriaController();\n $this->CommentController = new CommentController();\n $this->CourseController = new CourseController();\n $this->InscriptionsController = new InscriptionsController();\n $this->ModuleController = new ModuleController();\n $this->PlanController = new PlanController();\n $this->ProfileController = new ProfileController();\n $this->SpecialtyController = new SpecialtyController();\n $this->SubscriptionController = new SubscriptionController();\n $this->TeacherController = new TeacherController();\n $this->UserController = new UserController();\n $this->WebinarController = new WebinarController();\n }", "title": "" }, { "docid": "f69c72840a127ec65794a7ca006ac99d", "score": "0.61092585", "text": "protected function makeController($prefix)\n {\n new MakeController($this, $this->files, $prefix);\n }", "title": "" }, { "docid": "5cc35cd246810b6f1420ca4affe08dc6", "score": "0.6094611", "text": "public function createController($route)\n {\n $controller = parent::createController('gymv/' . $route);\n return $controller === false\n ? parent::createController($route)\n : $controller;\n }", "title": "" }, { "docid": "7b81f3c3067d9dd740145e799cf912f2", "score": "0.60889256", "text": "public static function createFrontController()\n {\n return self::createInjectorWithBindings(self::extractArgs(func_get_args()))\n ->getInstance('net::stubbles::websites::stubFrontController');\n }", "title": "" }, { "docid": "e5a7003e62406b031e2c1976a3506949", "score": "0.6074893", "text": "public static function controller($name)\n {\n $name = ucfirst(strtolower($name));\n \n $directory = 'controller';\n $filename = $name;\n $tracker = 'controller';\n $init = (boolean) $init;\n $namespace = 'controller';\n $class_name = $name;\n \n return self::_load($directory, $filename, $tracker, $init, $namespace, $class_name);\n }", "title": "" }, { "docid": "fc7619a99f2e1f27ecec1da2b2d4dd71", "score": "0.60660255", "text": "protected static function instantiateMockController()\n {\n /** @var Event $oEvent */\n $oEvent = Factory::service('Event');\n\n if (!$oEvent->hasBeenTriggered(Events::SYSTEM_STARTING)) {\n\n require_once BASEPATH . 'core/Controller.php';\n\n load_class('Output', 'core');\n load_class('Security', 'core');\n load_class('Input', 'core');\n load_class('Lang', 'core');\n\n new NailsMockController();\n }\n }", "title": "" }, { "docid": "cfd16ae75032c42e9048fbba4f4a97fb", "score": "0.6059098", "text": "private static function controller()\n {\n $files = ['Controller'];\n $folder = static::$root.'MVC'.'/';\n\n self::call($files, $folder);\n }", "title": "" }, { "docid": "3d3d3622bcbf6b0c67d47020747f2a31", "score": "0.60565156", "text": "public function createController()\n\t{\n\t\t$originalFile = app_path('Http/Controllers/Reports/SampleReport.php');\n\t\t$newFile = dirname($originalFile) . DIRECTORY_SEPARATOR . $this->class . $this->sufix . '.php';\n\n\t\t// Read original file\n\t\tif( ! $content = file_get_contents($originalFile))\n\t\t\treturn false;\n\n\t\t// Replace class name\n\t\t$content = str_replace('SampleReport', $this->class . $this->sufix, $content);\n\n\t\t// Write new file\n\t\treturn (bool) file_put_contents($newFile, $content);\n\t}", "title": "" }, { "docid": "0da763b3654ed0f6214c865e73ed0917", "score": "0.6044235", "text": "public function runController() {\n // Check for a router\n if (is_null($this->getRouter())) {\n \t // Set the method to load\n \t $sController = ucwords(\"{$this->getController()}Controller\");\n } else {\n\n // Set the controller with the router\n $sController = ucwords(\"{$this->getController()}\".ucfirst($this->getRouter()).\"Controller\");\n }\n \t// Check for class\n \tif (class_exists($sController, true)) {\n \t\t// Set a new instance of Page\n \t\t$this->setPage(new Page());\n \t\t// The class exists, load it\n \t\t$oController = new $sController();\n\t\t\t\t// Now check for the proper method \n\t\t\t\t// inside of the controller class\n\t\t\t\tif (method_exists($oController, $this->loadConfigVar('systemSettings', 'controllerLoadMethod'))) {\n\t\t\t\t\t// We have a valid controller, \n\t\t\t\t\t// execute the initializer\n\t\t\t\t\t$oController->init($this);\n\t\t\t\t\t// Set the variable scope\n\t \t\t$this->setViewScope($oController);\n\t \t\t// Render the layout\n\t \t\t$this->renderLayout();\n\t\t\t\t} else {\n\t\t\t\t\t// The initializer does not exist, \n\t\t\t\t\t// which means an invalid controller, \n\t\t\t\t\t// so now we let the caller know\n\t\t\t\t\t$this->setError($this->loadConfigVar('errorMessages', 'invalidController'));\n\t\t\t\t\t// Run the error\n\t\t\t\t\t// $this->runError();\n\t\t\t\t}\n \t// The class does not exist\n \t} else {\n\t\t\t\t// Set the system error\n\t \t\t$this->setError(\n\t\t\t\t\tstr_replace(\n\t\t\t\t\t\t':controllerName', \n\t\t\t\t\t\t$sController, \n\t\t\t\t\t\t$this->loadConfigVar(\n\t\t\t\t\t\t\t'errorMessages', \n\t\t\t\t\t\t\t'controllerDoesNotExist'\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n \t\t// Run the error\n\t\t\t\t// $this->runError();\n \t}\n \t// Return instance\n \treturn $this;\n }", "title": "" }, { "docid": "1be50beedce37b703d177c8bd3c8da5c", "score": "0.60288006", "text": "public function controller()\n\t{\n\t\n\t}", "title": "" }, { "docid": "a7386305c6e5fbb6f36a2a8be39a9b82", "score": "0.6024102", "text": "protected function buildController()\n {\n $columns = collect($this->columns)->pluck('column')->implode('|');\n\n $permissions = [\n 'create:'.$this->module->createPermission->name,\n 'edit:'.$this->module->editPermission->name,\n 'delete:'.$this->module->deletePermission->name,\n ];\n\n $this->controller = [\n 'name' => $this->class,\n '--model' => $this->class,\n '--request' => $this->class.'Request',\n '--permissions' => implode('|', $permissions),\n '--view-folder' => snake_case($this->module->name),\n '--fields' => $columns,\n '--module' => $this->module->id,\n ];\n }", "title": "" }, { "docid": "abdd3aab1e9a970d8f80278bf251bbf2", "score": "0.60225666", "text": "function getController(){\n\treturn getFactory()->getBean( 'Controller' );\n}", "title": "" }, { "docid": "3a48ab65ecaa7dd2bc53058b4fee9628", "score": "0.6018304", "text": "protected function getController()\n {\n $uri = WingedLib::clearPath(static::$parentUri);\n if (!$uri) {\n $uri = './';\n $explodedUri = ['index', 'index'];\n } else {\n $explodedUri = explode('/', $uri);\n if (count($explodedUri) == 1) {\n $uri = './' . $explodedUri[0] . '/';\n } else {\n $uri = './' . $explodedUri[0] . '/' . $explodedUri[1] . '/';\n }\n }\n\n $indexUri = WingedLib::clearPath(\\WingedConfig::$config->INDEX_ALIAS_URI);\n if ($indexUri) {\n $indexUri = explode('/', $indexUri);\n }\n\n if ($indexUri) {\n if ($explodedUri[0] === 'index' && isset($indexUri[0])) {\n static::$controllerName = Formater::camelCaseClass($indexUri[0]) . 'Controller';\n $uri = './' . $indexUri[0] . '/';\n }\n if (isset($explodedUri[1]) && isset($indexUri[1])) {\n if ($explodedUri[1] === 'index') {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($indexUri[1]);\n $uri .= $indexUri[1] . '/';\n }\n } else {\n $uri .= 'index/';\n }\n }\n\n $controllerDirectory = new Directory(static::$parent . 'controllers/', false);\n if ($controllerDirectory->exists()) {\n $controllerFile = new File($controllerDirectory->folder . static::$controllerName . '.php', false);\n if ($controllerFile->exists()) {\n include_once $controllerFile->file_path;\n if (class_exists(static::$controllerName)) {\n $controller = new static::$controllerName();\n if (method_exists($controller, static::$controllerAction)) {\n try {\n $reflectionMethod = new \\ReflectionMethod(static::$controllerName, static::$controllerAction);\n $pararms = [];\n foreach ($reflectionMethod->getParameters() as $parameter) {\n $pararms[$parameter->getName()] = $parameter->isOptional();\n }\n } catch (\\Exception $exception) {\n $pararms = [];\n }\n return [\n 'uri' => $uri,\n 'params' => $pararms,\n ];\n }\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "7506e894d29d2a88723ac9484f3759c5", "score": "0.60134345", "text": "public function __construct()\n {\n $this->controller = new DHTController();\n }", "title": "" }, { "docid": "5d1f715c4375f36c6e71f4896bddad9f", "score": "0.60124683", "text": "public function createController($controllers) {\n\t\tforeach($controllers as $module=>$controllers) {\n\t\t\tforeach($controllers as $key=>$controller) {\n\t\t\t\tif(!file_exists(APPLICATION_PATH.\"/modules/$module/controllers/\".ucfirst($controller).\"Controller.php\")) {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",\"Create '\".ucfirst($controller).\"' controller in $module\");\t\t\t\t\n\t\t\t\t\texec(\"zf create controller $controller index-action-included=0 $module\");\t\t\t\t\t\n\t\t\t\t}\telse {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",ucfirst($controller).\"' controller in $module already exists\");\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "title": "" }, { "docid": "2bfb916db9f65c492f7ab65b305d44d0", "score": "0.6010913", "text": "protected function instantiateController($class)\n {\n return new $class($this->routesMaker);\n }", "title": "" }, { "docid": "49d3f71900471c7711d63fcf8972a50c", "score": "0.6009284", "text": "private function createController($table){\n\n // Filtering file name\n $fileName = $this::cleanToName($table[\"name\"]) . 'Controller.php';\n\n // Prepare the Class scheme inside the controller\n $contents = '<?php '.$fileName.' ?>';\n\n\n // Return a boolean to process completed\n return Storage::disk('controllers')->put($this->appNamePath.'/'.$fileName, $contents);\n\n }", "title": "" }, { "docid": "0a9ac0827670afb9a4fe084a7ba7aea6", "score": "0.6001683", "text": "public function GetController()\n\t{\n\t\t$params = $this->QueryVarArrayToParameterArray($_GET);\n\t\tif (!empty($_POST)) {\n\t\t\t$params = array_merge($params, $this->QueryVarArrayToParameterArray($_POST));\n\t\t}\n\n\t\tif (!empty($_GET['q'])) {\n\t\t\t$restparams = GitPHP_Router::ReadCleanUrl($_SERVER['REQUEST_URI']);\n\t\t\tif (count($restparams) > 0)\n\t\t\t\t$params = array_merge($params, $restparams);\n\t\t}\n\n\t\t$controller = null;\n\n\t\t$action = null;\n\t\tif (!empty($params['action']))\n\t\t\t$action = $params['action'];\n\n\t\tswitch ($action) {\n\n\n\t\t\tcase 'search':\n\t\t\t\t$controller = new GitPHP_Controller_Search();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commitdiff':\n\t\t\tcase 'commitdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Commitdiff();\n\t\t\t\tif ($action === 'commitdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blobdiff':\n\t\t\tcase 'blobdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Blobdiff();\n\t\t\t\tif ($action === 'blobdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'history':\n\t\t\t\t$controller = new GitPHP_Controller_History();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'shortlog':\n\t\t\tcase 'log':\n\t\t\t\t$controller = new GitPHP_Controller_Log();\n\t\t\t\tif ($action === 'shortlog')\n\t\t\t\t\t$controller->SetParam('short', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'snapshot':\n\t\t\t\t$controller = new GitPHP_Controller_Snapshot();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tree':\n\t\t\tcase 'trees':\n\t\t\t\t$controller = new GitPHP_Controller_Tree();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tags':\n\t\t\t\tif (empty($params['tag'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Tags();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tcase 'tag':\n\t\t\t\t$controller = new GitPHP_Controller_Tag();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'heads':\n\t\t\t\t$controller = new GitPHP_Controller_Heads();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blame':\n\t\t\t\t$controller = new GitPHP_Controller_Blame();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blob':\n\t\t\tcase 'blobs':\n\t\t\tcase 'blob_plain':\t\n\t\t\t\t$controller = new GitPHP_Controller_Blob();\n\t\t\t\tif ($action === 'blob_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'atom':\n\t\t\tcase 'rss':\n\t\t\t\t$controller = new GitPHP_Controller_Feed();\n\t\t\t\tif ($action == 'rss')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::RssFormat);\n\t\t\t\telse if ($action == 'atom')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::AtomFormat);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commit':\n\t\t\tcase 'commits':\n\t\t\t\t$controller = new GitPHP_Controller_Commit();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'summary':\n\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'project_index':\n\t\t\tcase 'projectindex':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('txt', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'opml':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('opml', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'login':\n\t\t\t\t$controller = new GitPHP_Controller_Login();\n\t\t\t\tif (!empty($_POST['username']))\n\t\t\t\t\t$controller->SetParam('username', $_POST['username']);\n\t\t\t\tif (!empty($_POST['password']))\n\t\t\t\t\t$controller->SetParam('password', $_POST['password']);\n\t\t\t\tbreak;\n\n\t\t\tcase 'logout':\n\t\t\t\t$controller = new GitPHP_Controller_Logout();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'graph':\n\t\t\tcase 'graphs':\n\t\t\t\t//$controller = new GitPHP_Controller_Graph();\n\t\t\t\t//break;\n\t\t\tcase 'graphdata':\n\t\t\t\t//$controller = new GitPHP_Controller_GraphData();\n\t\t\t\t//break;\n\t\t\tdefault:\n\t\t\t\tif (!empty($params['project'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\t} else {\n\t\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t}\n\t\t}\n\n\t\tforeach ($params as $paramname => $paramval) {\n\t\t\tif ($paramname !== 'action')\n\t\t\t\t$controller->SetParam($paramname, $paramval);\n\t\t}\n\n\t\t$controller->SetRouter($this);\n\n\t\treturn $controller;\n\t}", "title": "" }, { "docid": "a4db845ce7d430e303e4a0e1b019725a", "score": "0.5997471", "text": "public function testCreateTheControllerClass()\n {\n $controller = new Game21Controller();\n $this->assertInstanceOf(\"\\App\\Http\\Controllers\\Game21Controller\", $controller);\n }", "title": "" }, { "docid": "c62c6d84b68a6333f66ee17281270610", "score": "0.5997012", "text": "public static function createController( MShop_Context_Item_Interface $context, $name = null );", "title": "" }, { "docid": "e45e299ecd108dd2739b682a4b2f7fa3", "score": "0.59942573", "text": "public function __construct()\n {\n\n $url = $this->splitURL();\n // echo $url[0];\n\n // check class file exists\n if (file_exists(\"../app/controllers/\" . strtolower($url[0]) . \".php\")) {\n $this->controller = strtolower($url[0]);\n unset($url[0]);\n }\n\n // echo $this->controller;\n\n require \"../app/controllers/\" . $this->controller . \".php\";\n\n // create Instance(object)\n $this->controller = new $this->controller(); // $this->controller is an object from now on\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 // run the class and method\n $this->params = array_values($url); // array_values 값들인 인자 0 부터 다시 배치\n call_user_func_array([$this->controller, $this->method], $this->params);\n }", "title": "" }, { "docid": "cf16bd487e830ac279e0d83492c9ccc0", "score": "0.5985074", "text": "public function getController();", "title": "" }, { "docid": "cf16bd487e830ac279e0d83492c9ccc0", "score": "0.5985074", "text": "public function getController();", "title": "" }, { "docid": "cf16bd487e830ac279e0d83492c9ccc0", "score": "0.5985074", "text": "public function getController();", "title": "" }, { "docid": "c639aeed5a879f266ff6ccb3e408cdf0", "score": "0.5967613", "text": "public function createController($pageType, $template)\n {\n $controller = null;\n\n // Use factories first\n if (isset($this->controllerFactories[$pageType])) {\n $callable = $this->controllerFactories[$pageType];\n $controller = $callable($this, 'templates/'.$template);\n\n if ($controller) {\n return $controller;\n }\n }\n\n // See if a default controller exists in the theme namespace\n $class = null;\n if ($pageType == 'posts') {\n $class = $this->namespace.'\\\\Controllers\\\\PostsController';\n } elseif ($pageType == 'post') {\n $class = $this->namespace.'\\\\Controllers\\\\PostController';\n } elseif ($pageType == 'page') {\n $class = $this->namespace.'\\\\Controllers\\\\PageController';\n } elseif ($pageType == 'term') {\n $class = $this->namespace.'\\\\Controllers\\\\TermController';\n }\n\n if (class_exists($class)) {\n $controller = new $class($this, 'templates/'.$template);\n\n return $controller;\n }\n\n // Create a default controller from the stem namespace\n if ($pageType == 'posts') {\n $controller = new PostsController($this, 'templates/'.$template);\n } elseif ($pageType == 'post') {\n $controller = new PostController($this, 'templates/'.$template);\n } elseif ($pageType == 'page') {\n $controller = new PageController($this, 'templates/'.$template);\n } elseif ($pageType == 'search') {\n $controller = new SearchController($this, 'templates/'.$template);\n } elseif ($pageType == 'term') {\n $controller = new TermController($this, 'templates/'.$template);\n }\n\n return $controller;\n }", "title": "" }, { "docid": "d22952c1b01ed297dea3cb69a880cc0a", "score": "0.5952533", "text": "private function loadController($controller)\r\n {\r\n $className = $controller.'Controller';\r\n \r\n $class = new $className($this);\r\n \r\n $class->init();\r\n \r\n return $class;\r\n }", "title": "" }, { "docid": "c8ff75f90c841156f292115e9084f595", "score": "0.5949068", "text": "public static function newInstance ($class)\n {\n try\n {\n // the class exists\n $object = new $class();\n\n if (!($object instanceof sfController))\n {\n // the class name is of the wrong type\n $error = 'Class \"%s\" is not of the type sfController';\n $error = sprintf($error, $class);\n\n throw new sfFactoryException($error);\n }\n\n return $object;\n }\n catch (sfException $e)\n {\n $e->printStackTrace();\n }\n }", "title": "" }, { "docid": "1d34b2ba4c963ea6f67765bfff4fafd2", "score": "0.5942203", "text": "public function create()\n {\n //TODO frontEndDeveloper \n //load admin.classes.create view\n\n\n return view('admin.classes.create');\n }", "title": "" }, { "docid": "4b799c73bbfacf4ec63267455475fdca", "score": "0.5925731", "text": "private function generateControllerClass()\n {\n $dir = $this->bundle->getPath();\n\n $parts = explode('\\\\', $this->entity);\n $entityClass = array_pop($parts);\n $entityNamespace = implode('\\\\', $parts);\n\n $target = sprintf(\n '%s/Controller/%s/%sController.php',\n $dir,\n str_replace('\\\\', '/', $entityNamespace),\n $entityClass\n );\n\n if (file_exists($target)) {\n throw new \\RuntimeException('Unable to generate the controller as it already exists.');\n }\n\n $this->renderFile($this->skeletonDir, 'controller.php', $target, array(\n 'actions' => $this->actions,\n 'route_prefix' => $this->routePrefix,\n 'route_name_prefix' => $this->routeNamePrefix,\n 'dir' => $this->skeletonDir,\n 'bundle' => $this->bundle->getName(),\n 'entity' => $this->entity,\n 'entity_class' => $entityClass,\n 'namespace' => $this->bundle->getNamespace(),\n 'entity_namespace' => $entityNamespace,\n 'format' => $this->format,\n ));\n }", "title": "" }, { "docid": "4aacbb01b668a7f7c17621724024dc01", "score": "0.5914304", "text": "static public function Instance()\t\t// Static so we use classname itself to create object i.e. Controller::Instance()\r\n {\r\n // Only one object of this class is required\r\n // so we only create if it hasn't already\r\n // been created.\r\n if(!isset(self::$_instance))\r\n {\r\n self::$_instance = new self();\t// Make new instance of the Controler class\r\n self::$_instance->_commandResolver = new CommandResolver();\r\n\r\n ApplicationController::LoadViewMap();\r\n }\r\n return self::$_instance;\r\n }", "title": "" }, { "docid": "8515e9b3e33042025f5ecd35086b328a", "score": "0.5914013", "text": "private function create_mock_controller() {\n eval('class TestController extends cyclone\\request\\SkeletonController {\n function before() {\n DispatcherTest::$beforeCalled = TRUE;\n DispatcherTest::$route = $this->_request->route;\n }\n\n function after() {\n DispatcherTest::$afterCalled = TRUE;\n }\n\n function action_act() {\n DispatcherTest::$actionCalled = TRUE;\n }\n}');\n }", "title": "" }, { "docid": "1a90ee1fc794cf14c011e55979635326", "score": "0.59119135", "text": "public function AController() {\r\n\t}", "title": "" }, { "docid": "34afe0f26fbce3adcd6664979c3a027e", "score": "0.5910308", "text": "protected function initializeController() {}", "title": "" }, { "docid": "024679c054837dd5071a71a0f7448d3a", "score": "0.5910285", "text": "public function dispatch()\n { \n $controller = $this->formatController();\n $controller = new $controller($this);\n if (!$controller instanceof ControllerAbstract) {\n throw new Exception(\n 'Class ' . get_class($controller) . ' is not a valid controller instance. Controller classes must '\n . 'derive from \\Europa\\ControllerAbstract.'\n );\n }\n $controller->action();\n return $controller;\n }", "title": "" }, { "docid": "9c60fbff64810741d378ec324a56be82", "score": "0.59013796", "text": "public function controller()\n {\n $method = $_SERVER['REQUEST_METHOD'];\n if ($method == 'GET') {\n $this->getController();\n };\n if ($method == 'POST') {\n check_csrf();\n $this->createController();\n };\n }", "title": "" }, { "docid": "4d36d0f6de19c545b708c4bf17c72278", "score": "0.59003943", "text": "private function addController($controller)\n {\n $object = new $controller($this->app);\n $this->controllers[$controller] = $object;\n }", "title": "" }, { "docid": "7b6f8910eb63014d51ec55f02f52a610", "score": "0.5897524", "text": "function Controller($ControllerName = Web\\Application\\DefaultController) {\n return Application()->Controller($ControllerName);\n }", "title": "" }, { "docid": "4897ee3c84ff21e8bb4391913e5dc4bd", "score": "0.58964556", "text": "public function getController($controllerName) {\r\n\t\tif(!isset(self::$instances[$controllerName])) {\r\n\t\t $package = $this->getPackage(Nomenclature::getVendorAndPackage($controllerName));\r\n\t\t if(!$package) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t return $controller;\r\n\t\t //return false;\r\n\t\t }\r\n\r\n\t\t if(!$package || !$package->controllerExists($controllerName)) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t $package->addController($controller);\r\n\t\t } else {\r\n\t\t $controller = $package->getController($controllerName);\r\n\t\t }\r\n\t\t} else {\r\n\t\t $controller = self::$instances[$controllerName];\r\n\t\t}\r\n\t\treturn $controller;\r\n\t}", "title": "" }, { "docid": "0366d02c407935bc86f3865cfc5a8939", "score": "0.58952993", "text": "public function testInstantiateSessionController()\n {\n $controller = new SessionController();\n\n $this->assertInstanceOf(\"App\\Http\\Controllers\\SessionController\", $controller);\n }", "title": "" }, { "docid": "0a33f1e5fbf51371135310f880d82a6b", "score": "0.58918965", "text": "private static function loadController($str) {\n\t\t$str = self::formatAsController($str);\n\t\t$app_controller = file_exists(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t$lib_controller = file_exists(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\n\t\tif ( $app_controller || $lib_controller ) {\n\t\t\tif ($app_controller) {\n\t\t\t\trequire_once(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\t\telse {\n\t\t\t\trequire_once(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\n\t\t\t$controller = new $str();\n\t\t\t\n\t\t\tif (!$controller instanceof Controller) {\n\t\t\t\tthrow new IsNotControllerException();\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $controller;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new ControllerNotExistsException($str);\n\t\t}\n\t}", "title": "" }, { "docid": "b95bc4d8b0c755c0084027810e79d006", "score": "0.5888943", "text": "public function __construct()\n {\n // and $url[1] is a controller method\n if ($_GET['url'] == NULL) {\n $url = explode('/', env('defaultRoute'));\n } else {\n $url = explode('/', rtrim($_GET['url'],'/'));\n }\n\n $file = 'controllers/' . $url[0] . '.php';\n if (file_exists($file)) {\n require $file;\n $controller = new $url[0];\n\n if (isset($url[1])) {\n $controller->{$url[1]}();\n }\n } else {\n echo \"404 not found\";\n }\n }", "title": "" }, { "docid": "9d8af760cd533b988959dc324aa30ed8", "score": "0.5875413", "text": "protected function _controllers()\n {\n $this['watchController'] = $this->factory(static function ($c) {\n return new Controller\\WatchController($c['app'], $c['searcher']);\n });\n\n $this['runController'] = $this->factory(static function ($c) {\n return new Controller\\RunController($c['app'], $c['searcher']);\n });\n\n $this['customController'] = $this->factory(static function ($c) {\n return new Controller\\CustomController($c['app'], $c['searcher']);\n });\n\n $this['waterfallController'] = $this->factory(static function ($c) {\n return new Controller\\WaterfallController($c['app'], $c['searcher']);\n });\n\n $this['importController'] = $this->factory(static function ($c) {\n return new Controller\\ImportController($c['app'], $c['saver'], $c['config']['upload.token']);\n });\n\n $this['metricsController'] = $this->factory(static function ($c) {\n return new Controller\\MetricsController($c['app'], $c['searcher']);\n });\n }", "title": "" }, { "docid": "3bae63fb4209650c5a11ab8a4b571656", "score": "0.5869938", "text": "public function __construct() {\r\n $this->controllerLogin = new ControllerLogin();\r\n $this->controllerGame = new ControllerGame();\r\n $this->controllerRegister = new ControllerRegister();\r\n }", "title": "" }, { "docid": "6d08f2b04568c8d17dfcfabea3a2e804", "score": "0.58627135", "text": "public function controller ($post = array())\n\t{\n\n\t\t$name = $post['controller_name'];\n\n\t\tif (is_file(APPPATH.'controllers/'.$name.'.php')) {\n\n\t\t\t$message = sprintf(lang('Controller_s_is_existed'), APPPATH.'controllers/'.$name.'.php');\n\n\t\t\t$this->msg[] = $message;\n\n\t\t\treturn $this->result(false, $this->msg[0]);\n\n\t\t}\n\n\t\t$extends = null;\n\n\t\tif (isset($post['crud'])) {\n\n\t\t\t$crud = true;\n\t\t\t\n\t\t}\n\t\telse{\n\n\t\t\t$crud = false;\n\n\t\t}\n\n\t\t$file = $this->_create_folders_from_name($name, 'controllers');\n\n\t\t$data = '';\n\n\t\t$data .= $this->_class_open($file['file'], __METHOD__, $extends);\n\n\t\t$crud === FALSE || $data .= $this->_crud_methods_contraller($post);\n\n\t\t$data .= $this->_class_close();\n\n\t\t$path = APPPATH . 'controllers/' . $file['path'] . strtolower($file['file']) . '.php';\n\n\t\twrite_file($path, $data);\n\n\t\t$this->msg[] = sprintf(lang('Created_controller_s'), $path);\n\n\t\t//echo $this->_messages();\n\t\treturn $this->result(true, $this->msg[0]);\n\n\t}", "title": "" }, { "docid": "62e592a68a196af2611a91496c1d5429", "score": "0.58594996", "text": "protected function getController(Request $request) {\n try {\n $controller = $this->objectFactory->create($request->getControllerName(), self::INTERFACE_CONTROLLER);\n } catch (ZiboException $exception) {\n throw new ZiboException('Could not create controller ' . $request->getControllerName(), 0, $exception);\n }\n\n return $controller;\n }", "title": "" }, { "docid": "89d925edef45d461446d7de08413bdcc", "score": "0.5853714", "text": "public function create() {}", "title": "" }, { "docid": "7b561b600e335d92de1b8bb07cc12380", "score": "0.5839484", "text": "public function __construct()\n {\n $this->dataController = new DataController;\n }", "title": "" }, { "docid": "00d388932acd1dcf303ac4f39a144654", "score": "0.5832913", "text": "function __contrruct(){ //construdor do controller, nele é possivel carregar as librari, helpers, models que serão utilizados nesse controller\n\t\tparent::__contrruct();//Chamando o construtor da classe pai\n\t}", "title": "" }, { "docid": "de65716cb5c0640a232957bbdb3dd01f", "score": "0.582425", "text": "public function __construct() {\n\n // Get the URL elements.\n $url = $this->_parseUrl();\n\n // Checks if the first URL element is set / not empty, and replaces the\n // default controller class string if the given class exists.\n if (isset($url[0]) and ! empty($url[0])) {\n $controllerClass = CONTROLLER_PATH . ucfirst(strtolower($url[0]));\n unset($url[0]);\n if (class_exists($controllerClass)) {\n $this->_controllerClass = $controllerClass;\n }\n }\n\n // Replace the controller class string with a new instance of the it.\n $this->_controllerClass = new $this->_controllerClass;\n\n // Checks if the second URL element is set / not empty, and replaces the\n // default controller action string if the given action is a valid class\n // method.\n if (isset($url[1]) and ! empty($url[1])) {\n if (method_exists($this->_controllerClass, $url[1])) {\n $this->_controllerAction = $url[1];\n unset($url[1]);\n }\n }\n\n // Check if the URL has any remaining elements, setting the controller\n // parameters as a rebase of it if true or an empty array if false.\n $this->_controllerParams = $url ? array_values($url) : [];\n\n // Call the controller and action with parameters.\n call_user_func_array([$this->_controllerClass, $this->_controllerAction], $this->_controllerParams);\n }", "title": "" }, { "docid": "4be6a64d6a050c4624af4828e156e1ae", "score": "0.58161044", "text": "private function setUpController()\n {\n $this->controller = new TestObject(new SharedControllerTestController);\n\n $this->controller->dbal = DBAL::getDBAL('testDB', $this->getDBH());\n }", "title": "" }, { "docid": "77bc1784f9d5dd81ded5590f02a1bbe0", "score": "0.5815566", "text": "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }", "title": "" } ]
0714beea3f38ba508b99910274c54c0f
Add patch api call
[ { "docid": "e4a1b104c8f38191c1e9a762f8cc8500", "score": "0.0", "text": "public function patch($pattern, $handler, $params = [])\n {\n $this->add('patch', $pattern, $handler, $params);\n }", "title": "" } ]
[ { "docid": "e80eba665e45dbefe827154cd38a7b5b", "score": "0.80678153", "text": "public function patch();", "title": "" }, { "docid": "e80eba665e45dbefe827154cd38a7b5b", "score": "0.80678153", "text": "public function patch();", "title": "" }, { "docid": "a3d83612be9a1cb0cc4f3bd3fbd1c4b1", "score": "0.7395748", "text": "public function _patch($url = null, array $parameter = []);", "title": "" }, { "docid": "86dd6a00c9cd6a63344b4d3abbd6134a", "score": "0.7266795", "text": "public function patch($data)\n {\n }", "title": "" }, { "docid": "2e9d26e9516b1aab27530dcbb3378854", "score": "0.7003136", "text": "public function setPatchMethod()\n {\n $this->method = self::METHOD_PATCH;\n }", "title": "" }, { "docid": "dd3ce33d5fbf46f7a39ff5d4142f2f2a", "score": "0.68850744", "text": "public function patch(Request $request): Response;", "title": "" }, { "docid": "bd2ec8dbf0aa9fe1fecc54e3763bb9ee", "score": "0.6845834", "text": "public function patch($path, array $parameters = array(), array $options = array());", "title": "" }, { "docid": "8679fe38bb76ca961151335b0cf73555", "score": "0.6806748", "text": "function patch_mult($id, $put)\n {\n \n }", "title": "" }, { "docid": "15edf6b6c88e7e93c820d045f7893cef", "score": "0.67855227", "text": "public function getPatch();", "title": "" }, { "docid": "44fe76e80a4d6162390852da7081a7ae", "score": "0.67735946", "text": "public function beforePatch() {\n }", "title": "" }, { "docid": "80939a6d483fcef1c0a6683752bb3656", "score": "0.6730164", "text": "function testRunMethodWithParamsPatch() {\n\t\t$_SERVER['REQUEST_METHOD'] = 'PATCH';\n\t\t$_SERVER['REQUEST_URI'] = '/exposeFunc2/123456patch';\n\n\t\t$r = new \\KungFoo\\Routing\\Router();\n\t\t$result = $r->addFromController(ControllerWithAnnotationsDispatch::class);\n\t\t$this->assertTrue($result);\n\n\t\t$r->run();\n\t}", "title": "" }, { "docid": "b1b47692bc15c2a21451d5e55f0014d4", "score": "0.6725847", "text": "public function patch($url, $payload = '');", "title": "" }, { "docid": "29bb493a2bea5a0bfd36af17ed0d7ece", "score": "0.6657197", "text": "public function patch($id, $data)\n {\n return $this->update($id ,$data);\n // return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "f21744de3ac341b501fdfb608acc2e09", "score": "0.6621259", "text": "final function patch($p) {return $this->p($p);}", "title": "" }, { "docid": "a77e1653669aa5189d8ac6baa13f3613", "score": "0.65189594", "text": "public function patch($id, $data) {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "b00f7377690df82cd69a8a229cc6370f", "score": "0.64716524", "text": "public function patch($path, $body = null, array $headers = array());", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.64686984", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.64686984", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.64686984", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.64686984", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.64686984", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.64686984", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.64686984", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.64686984", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.64686984", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.64686984", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "e3ffcc3b283304473a72d2d1342b20c3", "score": "0.64686984", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');\n }", "title": "" }, { "docid": "1f0cdf4b6a90ec1406f35675ed7f6c39", "score": "0.6457044", "text": "public function patch($id, $data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for individual resource');\n }", "title": "" }, { "docid": "d11456f62b4a2c3d29a9615a81d808c7", "score": "0.6446364", "text": "public function makePatchRequest(string $url, array $data = [], array $requestHeaders = []): ResponseInterface;", "title": "" }, { "docid": "25c46aacc2b968d2957c5f2678688411", "score": "0.6284603", "text": "public function patch($id, $method, $args = [])\n {\n $this->queueOperation('PATCH', $id, $method, $args);\n }", "title": "" }, { "docid": "61f18730e12ead1b182a30f259fe0fe2", "score": "0.6258782", "text": "public function isPatch(): bool\n {\n return $this->method() === 'PATCH';\n }", "title": "" }, { "docid": "2291c1fae875071181ac3e127f75de45", "score": "0.62111163", "text": "public function isPatch() {\n\t\treturn $this->getMethod() === self::METHOD_PATCH;\n\t}", "title": "" }, { "docid": "8f1d98bfa65aa2f47d8b8a4680d864db", "score": "0.618965", "text": "public function patch($url, $body = NULL, $params = []) {\n\n return $this->call($url, 'PATCH', $params, $body);\n }", "title": "" }, { "docid": "30e7d7d7def6d08342ce591d964bc8c1", "score": "0.6174182", "text": "public function testPermissionBundlePatch(): void\n {\n if (!self::$unitTestConfig->hasPatchRoute) {\n self::assertTrue(true);\n return;\n }\n\n $data = $this->getUpdateDataForPermissionBundle();\n if ($data === null) {\n throw new InvalidArgument('Update-Data should not be null!');\n }\n\n $this->sendRequestWithCookie(\n $data->getResourceURI(),\n self::$unitTestConfig->hasSecurityOnPatchRoute,\n [$data->getPermissionKey()],\n -1,\n 'PATCH',\n $data->getPayload()\n );\n $json = $this->getJson();\n\n self::assertResponseStatusCodeSame(200);\n if ($data->getJsonKey() !== null) {\n self::assertEquals($json[$data->getJsonKey()], $data->getNewValue());\n }\n }", "title": "" }, { "docid": "8fcd7d96e29a4584302e0247e0968712", "score": "0.6173935", "text": "public static function patch($url, $params = array()) {\n\n $defaults = array(\n 'method' => 'PATCH'\n );\n\n $request = new self($url, array_merge($defaults, $params));\n return $request->response();\n\n }", "title": "" }, { "docid": "92a36ff7abb905aad87c3e73a29132b3", "score": "0.6148715", "text": "public function patch()\n {\n return $this->getVersion('patch');\n }", "title": "" }, { "docid": "b7681439ce1d2b7327775e6fa6ad82a9", "score": "0.60890096", "text": "public function isPatch() {\n if ($this->getRequestMethod() === \"PATCH\") {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "a0e5436f515fc7c706ad34c94c1c2cde", "score": "0.6078542", "text": "public function isPatch() : bool\n {\n return $this->method() === 'PATCH';\n }", "title": "" }, { "docid": "55d18ecccb642fe2a9e427fb35d12080", "score": "0.6067833", "text": "public function testPatchAction()\r\n\t{\r\n\t\t$this->getRequest()->setMethod('POST');\r\n\t\t$this->dispatch('/book');\r\n\t\t$this->assertResponseStatusCode(405);\r\n\t}", "title": "" }, { "docid": "fa6da7511c450b6b102e937a82fa0e85", "score": "0.6056978", "text": "public function patch(string $uri): RequestInterface;", "title": "" }, { "docid": "d87a46f1563f900ce9dd88c7113f58bb", "score": "0.6052705", "text": "public function patchList($data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for collections');\n }", "title": "" }, { "docid": "d87a46f1563f900ce9dd88c7113f58bb", "score": "0.6052705", "text": "public function patchList($data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for collections');\n }", "title": "" }, { "docid": "d87a46f1563f900ce9dd88c7113f58bb", "score": "0.6052705", "text": "public function patchList($data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for collections');\n }", "title": "" }, { "docid": "d87a46f1563f900ce9dd88c7113f58bb", "score": "0.6052705", "text": "public function patchList($data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for collections');\n }", "title": "" }, { "docid": "d87a46f1563f900ce9dd88c7113f58bb", "score": "0.6052705", "text": "public function patchList($data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for collections');\n }", "title": "" }, { "docid": "d87a46f1563f900ce9dd88c7113f58bb", "score": "0.6052705", "text": "public function patchList($data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for collections');\n }", "title": "" }, { "docid": "d87a46f1563f900ce9dd88c7113f58bb", "score": "0.6052705", "text": "public function patchList($data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for collections');\n }", "title": "" }, { "docid": "d87a46f1563f900ce9dd88c7113f58bb", "score": "0.6052705", "text": "public function patchList($data)\n {\n return new ApiProblem(405, 'The PATCH method has not been defined for collections');\n }", "title": "" }, { "docid": "bab77373fc3670378e277d010a353769", "score": "0.6046244", "text": "public function patch(Request $request)\n {\n $patchs= Patch::Orderby('id','asc')->paginate(5);\n return view('admin/patch',['patchs'=>$patchs]);\n }", "title": "" }, { "docid": "219c82db7195fd2f10abaf7b625fc1ea", "score": "0.60283893", "text": "public function patchResource(RequestBagInterface $request) : ResponseBagInterface;", "title": "" }, { "docid": "f277fbf46c27e7634d9f2b86e60029a9", "score": "0.60240626", "text": "public function addPatch($patch)\n {\n if (!$this->getPatches()) {\n return $this->setPatches([$patch]);\n } else {\n return $this->setPatches(\n array_merge($this->getPatches(), [$patch])\n );\n }\n }", "title": "" }, { "docid": "2ccae6397fa7641056da1f9a0eef35f5", "score": "0.60115755", "text": "function patch(string $field, array|object $value): UpdateInstruction\n{\n return new UpdateInstruction('patch', [$field => $value]);\n}", "title": "" }, { "docid": "178454f64bb3f2071b1d79f05202e021", "score": "0.59559816", "text": "public function patch($url, $data = [])\n {\n return $this->request('PATCH', $url, $data);\n }", "title": "" }, { "docid": "73e5df6bf348245fe5ef79cbd68d8f1a", "score": "0.5947738", "text": "public static function patch($uri, $action) {\n self::addRoute('PATCH', $uri, $action);\n }", "title": "" }, { "docid": "a34202b37845de19d8d751c7e3402662", "score": "0.5935057", "text": "public function patchPayment($api_key, $pay_id, $data)\n {\n $data_string = json_encode($data);\n $url = $this->api_url . $this->routes['patch'] . '/' . $pay_id;\n $curl_version = curl_version();\n $process = curl_init($url);\n curl_setopt(\n $process,\n CURLOPT_HTTPHEADER,\n array(\n 'Authorization: Bearer ' . $api_key,\n 'Content-Type:application/json',\n 'Content-Length: ' . Tools::strlen($data_string)\n )\n );\n curl_setopt($process, CURLOPT_CUSTOMREQUEST, 'PATCH');\n curl_setopt($process, CURLOPT_POSTFIELDS, $data_string);\n curl_setopt($process, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($process, CURLINFO_HEADER_OUT, true);\n curl_setopt($process, CURLOPT_SSL_VERIFYPEER, true);\n # >= 7.26 to 7.28.1 add a notice message for value 1 will be remove\n curl_setopt(\n $process,\n CURLOPT_SSL_VERIFYHOST,\n (version_compare($curl_version['version'], '7.21', '<') ? true : 2)\n );\n curl_setopt($process, CURLOPT_CAINFO, realpath(dirname(__FILE__) . '/cacert.pem'));\n $answer = curl_exec($process);\n $error_curl = curl_errno($process);\n curl_close($process);\n\n $result = array(\n 'status' => false,\n 'message' => null,\n );\n\n if ($error_curl == 0) {\n $json_answer = json_decode($answer);\n\n if (isset($json_answer->object) && $json_answer->object == 'error') {\n $result['status'] = false;\n $result['message'] = $json_answer->message;\n } else {\n $result['status'] = true;\n }\n } else {\n $result['status'] = false;\n $result['message'] = $this->l('Error while executing cURL request.');\n }\n return $result;\n }", "title": "" }, { "docid": "7ae44f9c8f079e6ffa194572dc9cc86a", "score": "0.59235305", "text": "public function isPatch()\n {\n return self::METHOD_PATCH === $this->server->get('REQUEST_METHOD');\n }", "title": "" }, { "docid": "8febbfc3949142fbf820e712b023b404", "score": "0.592251", "text": "public function isPatch()\n {\n return (isset($this->server['REQUEST_METHOD']) && ($this->server['REQUEST_METHOD'] == 'PATCH'));\n }", "title": "" }, { "docid": "500690dcb75a03224a32258af90d70ca", "score": "0.59129703", "text": "public function patch(string $content): string;", "title": "" }, { "docid": "1584aa73a1481619e22d772d16d0479a", "score": "0.589898", "text": "function updateDataForContext($url,$apikey,$data,$comment = null){\r\n \t$data[application_id] = $this->appContext->getProject();\r\n \t$data[pipeline_id] = $this->appContext->getJob();\r\n \t$data[run_id] = $this->appContext->getRunNumber();\r\n\r\n\t$dat=array(\"data\"=>$this->json_object($data));\r\n\r\n\tif (!is_null($comment) && strlen($comment) > 0) {\r\n\t\t$dat[comment] = $comment;\r\n\t}\r\n\t\r\n\t$dat=$this->json_string($this->json_object($dat));\r\n\t\r\n\t//echo \"data : \" . $dat;\r\n\t$url=$url.\"?apikey=\".$apikey;\r\n\r\n\t$result=$this->do_curl($url, null, \"PATCH\", $dat, null);\r\n\t\r\n\t$result=$result[\"response\"];\r\n\t$result=json_decode($result);\r\n\t\r\n if(($result==null) ||($result->request->status !== \"SUCCESS\")){\r\n \t$this->logHelper->log(ERROR, $result->request->message);\r\n \t$this->logHelper->log (ERROR,\"Not able to patch data to cloudmunch\");\r\n\t\tif($result->request->request_id) {\r\n\t\t\t$this->logHelper->log(ERROR,\"Request ID : \" . $result->request->request_id);\r\n\t\t\t$this->notificationHandler->sendSlackNotification($result->request->message.\". Request ID : \".$result->request->request_id);\r\n\t\t}\r\n \treturn false;\r\n }\r\n \r\n\treturn $result;\r\n}", "title": "" }, { "docid": "8b03b2789713740510fed89629ad69e6", "score": "0.58689857", "text": "public function testInvalidPatchRequest()\n {\n $user = factory(User::class)->create();\n\n // make invalid request\n $response = $this->callPatch('/api/teams/-1', json_encode([]), $user);\n\n // check status code\n $this->assertEquals(404, $response->getStatusCode(), 'it has the correct status code');\n }", "title": "" }, { "docid": "af42b64e63ec24c5fe4b25e40f7d2a3a", "score": "0.58522844", "text": "function patch(){\n\treturn FALSE;\n}", "title": "" }, { "docid": "eb3e46d546421eb4bdcce0f97c17c3fe", "score": "0.581919", "text": "public function testPatchConversationsCall()\n {\n }", "title": "" }, { "docid": "df865eefdfc74a5eee2cd7360cabd026", "score": "0.5806587", "text": "public function testAuthorizedAdminPatchRequest()\n {\n $user = factory(User::class)->create(['role' => 'admin']);\n $team = factory(Team::class)->create(['paid' => false]);\n\n $patchData = [\n 'data' => [\n 'type' => 'teams',\n 'id' => $team->id,\n 'attributes' => [\n 'name' => 'mod '.$team->name,\n 'slug' => str_slug('mod'.$team->name),\n 'paid' => true,\n ],\n 'relationships' => [\n 'user' => [\n 'data' => [\n 'type' => 'users',\n 'id' => $team->user->id,\n ],\n ],\n ],\n ],\n ];\n\n // make invalid request\n $response = $this->callPatch('/api/teams/'.$team->id, json_encode($patchData), 'admin');\n\n // check status code\n $this->assertEquals(200, $response->getStatusCode(), 'it has the correct status code');\n\n // check attributes\n $data = json_decode($response->content());\n $this->assertNotEmpty($data, 'it has returned some data');\n\n // check the attributes\n foreach ($patchData['data']['attributes'] as $attr => $value) {\n $this->assertEquals($value, $data->data->attributes->$attr, 'attribute matches whats expected');\n }\n }", "title": "" }, { "docid": "7d41ab16a61c5d1956ae4128a00f6699", "score": "0.57755744", "text": "public function testTargetPatch()\n {\n }", "title": "" }, { "docid": "3c5ebbeaff6c9a63397c4cd8b77e5adb", "score": "0.5775023", "text": "public function patch(string $route, array|Closure|string $action, ?string $name = null): Route\n\t{\n\t\treturn $this->registerRoute(['PATCH', 'OPTIONS'], $route, $action, $name);\n\t}", "title": "" }, { "docid": "fecb24f9c514cf4b218f651503d897e5", "score": "0.57607234", "text": "public function patch($pattern, $fn) {\n\t\t$this->match('PATCH', $pattern, $fn);\n\t}", "title": "" }, { "docid": "26ab699f77cc3a93185c37219f09ea93", "score": "0.5749553", "text": "public function patch($method, array $args = [])\n {\n return $this->sendRequest('patch', $method, $args);\n }", "title": "" }, { "docid": "1eabb279235cbe86df35d0fb65a03221", "score": "0.5749074", "text": "public function patch($method, $args = [], $timeout = 10)\n {\n return $this->makeRequest('patch', $method, $args, $timeout);\n }", "title": "" }, { "docid": "acf2d1b697a29ef454e86f285ef152bf", "score": "0.5743661", "text": "public function patch($url, $params = array(), $options = array())\n {\n return $this->request($url, self::PATCH, $params, $options);\n }", "title": "" }, { "docid": "4f4f2c72667cafa8c4f3c769b60ac34b", "score": "0.57314074", "text": "public function patch(string $pattern, array $callable): RouteInterface;", "title": "" }, { "docid": "07e2ae19c42e5d4d9e63cdcc3aecaaaa", "score": "0.5726919", "text": "public function patch($method, $args = array(), $timeout = self::TIMEOUT)\n {\n return $this->makeRequest('patch', $method, $args, $timeout);\n }", "title": "" }, { "docid": "814f2a7916a47e9a02c5479e47af746f", "score": "0.5690867", "text": "public function patch($uri, $action = null)\n {\n return $this->addRoute('PATCH', $uri, $action);\n }", "title": "" }, { "docid": "8b6a386ae25a2c2d00b49590ce48f8eb", "score": "0.5686119", "text": "function patch($p)\n\t{\n\t\t$patch = array\n\t\t(\n\t\t\t'270807_ts_opc_call_view' => 'serious bug in stack handling of vid management',\n\t\t\t'040408_ts_conf_set' => 'adding automatic cache refresh to config set method'\n\t\t);\t\n\t\treturn isset($patch[$p]);\n\t}", "title": "" }, { "docid": "ae24967c517402cb2372ba54f52c1be0", "score": "0.5666676", "text": "public function patch(string $uri, array $data = [], array $params = []): Response\n {\n return $this->request(ApiMethod::PATCH, $uri, $data, $params);\n }", "title": "" }, { "docid": "298cb3dd340d84005df33376008a1482", "score": "0.56535655", "text": "public static function patch(string $path, string $name = ''): self\n {\n return new self($path, [Request::METHOD_PATCH], $name);\n }", "title": "" }, { "docid": "ff089cc551248af861bcc2ae43e2b632", "score": "0.5641796", "text": "public function getPatch()\n {\n return $this->patch;\n }", "title": "" }, { "docid": "82481a9b9e98b99042eb4b73481274ae", "score": "0.5625156", "text": "public function patch(string $url, array $headers, ?array $data = [], ?array $options = [])\n {\n return $this->return(Requests::patch($this->url($url), $headers, $data, $options));\n }", "title": "" }, { "docid": "662ef472d424bf3fec6c18f32197202a", "score": "0.5603674", "text": "public function patch($path, $handler);", "title": "" }, { "docid": "5648b251e2b80a378f80f00f64340af2", "score": "0.56015056", "text": "public function onPostUpdateCmd(Event $event)\n {\n $this->getPatcher()->patch();\n }", "title": "" }, { "docid": "82f711f01f46c2fa85574e803272fe58", "score": "0.55523926", "text": "public static function patch($uri, $action){\n\n\t\t\treturn \\Illuminate\\Routing\\Router::patch($uri, $action);\n\t\t}", "title": "" }, { "docid": "37dbeaf1f8a3a3a9a0ab6eeb88600a79", "score": "0.5538435", "text": "public function patch(BookInterface $book, array $parameters);", "title": "" }, { "docid": "1a6cfd89f075c9ffe1f528ab51bab131", "score": "0.553238", "text": "public function patch($id=NULL, $data=NULL) {\n\n // You must to implement the logic of your REST Resource here.\n try {\n $this->entityDB->check_access('update');\n $con_type = $_SERVER['CONTENT_TYPE'];\n if($con_type!='application/json' && $con_type!='application/hal+json')\n throw new NotAcceptableHttpException();\n $this->entityDB->setId($id);\n $this->entityDB->update_entity($data);\n }catch(NotAcceptableHttpException $ex) {\n $this->logger->notice($ex->getMessage());\n return new ResourceResponse([\"message\"=>\"Not acceptable format\"], 406);\n }catch(InvalidPluginDefinitionException $ex) {\n $this->logger->error($ex);\n return new ResourceResponse([\"message\"=>\"Internal Service Error\"], 500);\n }catch(EntityStorageException $ex) {\n $this->logger->error($ex);\n return new ResourceResponse([\"message\"=>\"Internal Service Error\"], 500);\n }catch( AccessDeniedHttpException $e) {\n $this->logger->notice($ex->getMessage().\"Code:\".$e->getCode());\n return new ResourceResponse([\"message\"=>$e->getMessage()], $e->getCode());\n }catch( NotFoundHttpException $e) {\n $this->logger->notice($e->getMessage());\n return new ResourceResponse([\"message\"=>\"Product not Found\"], 404);\n }\n $response = [\"message\"=>\"Product Updated\"];\n return new ResourceResponse($response, 200);\n }", "title": "" }, { "docid": "7b81a3ee236f5b8165f93f6aea9d60cf", "score": "0.5513543", "text": "public function testMalformedPatchAppRequest()\n {\n $helloApp = new \\stdClass();\n $helloApp->id = \"testapp\";\n $helloApp->title = new \\stdClass();\n $helloApp->title->en = \"Test App\";\n $helloApp->showInMenu = false;\n\n // 1. Create some App\n $client = static::createRestClient();\n $client->put('/core/app/' . $helloApp->id, $helloApp);\n\n // 2. PATCH request\n $client = static::createRestClient();\n $patchJson = json_encode(\n array(\n 'op' => 'unknown',\n 'path' => '/title/en'\n )\n );\n $client->request('PATCH', '/core/app/' . $helloApp->id, [], [], [], $patchJson);\n $response = $client->getResponse();\n\n $this->assertEquals(400, $response->getStatusCode());\n $this->assertStringContainsString(\n 'Patch request should be an array of operations',\n $response->getContent()\n );\n }", "title": "" }, { "docid": "f8fd2304f69c3849aeed174edc1bd61a", "score": "0.54934406", "text": "public function patch(string $url, array $payload)\n {\n return $this->_request(self::PATCH, $url, $payload);\n }", "title": "" }, { "docid": "2c2a45c8349204b12e5b78ffd7a75db6", "score": "0.547697", "text": "public function testUpdate()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "0e9fe9a8a5719e39797e202fa494b841", "score": "0.5467104", "text": "public function patchAction($id, Request $request)\n {\n try {\n $contact = $this->contactManager->save(\n $request->request->all(),\n $id,\n true\n );\n\n $apiContact = $this->contactManager->getContact($contact, $this->getUser()->getLocale());\n $view = $this->view($apiContact, 200);\n $context = new Context();\n $context->setGroups(static::$contactSerializationGroups);\n $view->setContext($context);\n } catch (EntityNotFoundException $exc) {\n $view = $this->view($exc->toArray(), 404);\n } catch (RestException $exc) {\n $view = $this->view($exc->toArray(), 400);\n }\n\n return $this->handleView($view);\n }", "title": "" }, { "docid": "7e7c8df16dab9173a14491b756a27062", "score": "0.5452001", "text": "public function httpPatch($path, array $payload = [])\n {\n $url = new Uri($this->apiBaseUri . $path);\n\n $request = new Request('PATCH', $url, $this->buildHeaders(), json_encode($payload));\n\n $response = $this->httpClient->sendRequest($request);\n\n switch ($response->getStatusCode()) {\n case 200:\n case 201:\n return $this->handleResponse($response);\n default:\n return $this->handleErrorResponse($response);\n }\n }", "title": "" }, { "docid": "809db6b4804a475ba0c95ba320096b13", "score": "0.5426246", "text": "public function testUpdateReply()\n {\n }", "title": "" }, { "docid": "62aae29662e2559b3959ad715336ed4b", "score": "0.54242927", "text": "abstract public function update($request);", "title": "" }, { "docid": "adebd7523dafcd5d922d90ae29038363", "score": "0.54233736", "text": "public function patch($pattern, $fn) {\n return $this->match('PATCH', $pattern, $fn);\n }", "title": "" }, { "docid": "d0e070a4c0d1e4a798cffe50fa60390f", "score": "0.5411093", "text": "public function testPermissionBundleSelfPatch(): void\n {\n if (!self::$unitTestConfig->hasSelfPatch()) {\n self::assertTrue(true);\n return;\n }\n\n $data = $this->getUpdateDataForPermissionBundle();\n if ($data === null) {\n throw new InvalidArgument('Update-Data should not be null!');\n }\n $this->sendRequestWithCookie(\n $data->getResourceURI(),\n true,\n [$data->getPermissionKey() . EndpointWithPermission::SELF_PERMISSION],\n $data->getUserId(),\n 'PATCH',\n $data->getPayload()\n );\n $json = $this->getJson();\n\n self::assertResponseStatusCodeSame(200);\n if ($data->getJsonKey() !== null) {\n self::assertEquals($json[$data->getJsonKey()], $data->getNewValue());\n }\n }", "title": "" }, { "docid": "18b7b40f3a97a1592a48e46eb4958b77", "score": "0.54049724", "text": "public function addPatch($pattern, $paths = null)\n {\n return $this->addRoute($pattern, $paths, 'PATCH');\n }", "title": "" }, { "docid": "dc749135585eb226128293a048d0c5f2", "score": "0.5392287", "text": "function update_issue($space_url, $api_key, $issue_key, $modifications){\n $params = array(\n 'apiKey' => $api_key\n );\n $url = \"${space_url}/api/v2/issues/${issue_key}?\" . http_build_query($params);\n return patch_api($url, $modifications);\n}", "title": "" }, { "docid": "8f2b4e7d059e7d4a40d6358936c9bbf3", "score": "0.53746694", "text": "public function update(Request $request, Call $call)\n {\n //\n }", "title": "" }, { "docid": "872099cb88be9f8cebe2e679d0d49bae", "score": "0.5369177", "text": "public function testPatchAppRequestApplyChanges()\n {\n $helloApp = new \\stdClass();\n $helloApp->id = \"testapp\";\n $helloApp->name = new \\stdClass();\n $helloApp->name->en = \"Test App\";\n $helloApp->showInMenu = false;\n\n // 1. Create some App\n $client = static::createRestClient();\n $client->put('/core/app/' . $helloApp->id, $helloApp);\n\n // 2. PATCH request\n $client = static::createRestClient();\n $patchJson = json_encode(\n [\n [\n 'op' => 'replace',\n 'path' => '/name/en',\n 'value' => 'Test App Patched'\n ]\n ]\n );\n $client->request('PATCH', '/core/app/' . $helloApp->id, [], [], [], $patchJson);\n $response = $client->getResponse();\n\n $this->assertEquals(200, $response->getStatusCode());\n\n // 3. Get changed App and check changed title\n $client = static::createRestClient();\n $client->request('GET', '/core/app/' . $helloApp->id);\n\n $response = $client->getResponse();\n $results = $client->getResults();\n\n $this->assertResponseContentType(self::CONTENT_TYPE, $response);\n $this->assertResponseSchemaRel(self::SCHEMA_URL_ITEM, $response);\n $this->assertEquals('Test App Patched', $results->name->en);\n }", "title": "" }, { "docid": "9d0ae0cc7f58ef5d1b19d1717dae833e", "score": "0.53653467", "text": "public function patch($data = null, int $timeout = 60) : Request {\n\t\t\treturn $this->call(self::PATCH, $data, $timeout);\n\t\t}", "title": "" }, { "docid": "56a73bffcd9d67ca6331157a384be928", "score": "0.5364242", "text": "public function patch(Request $request, $id)\n {\n $validator = Validator::make($request->input(),[\n 'data' => 'required',\n 'data.type' => 'required|in:checklists',\n 'data.id' => 'required|integer',\n 'data.attributes' => 'required',\n 'data.attributes.object_domain' => 'required',\n 'data.attributes.object_id' => 'required|string',\n 'data.attributes.description' => 'required|string',\n 'data.attributes.is_completed' => 'boolean',\n 'data.attributes.created_at' => 'required|string',\n 'data.attributes.updated_by' => 'string',\n 'data.attributes.due' =>[function($attribute, $value, $fail){\n if(null == $value || Carbon::hasFormat($value, \"Y:m:d H:i:s\")){\n }else{\n $fail($attribute . \"not null and wrong format\");\n }\n }],\n 'data.links.self' => 'required|string',\n ]);\n\n if($validator->fails()){\n return response()->json($validator->errors(), 422);\n }\n\n $checklist = Checklist::findOrFail($id);\n $attributes = $request->input(\"data.attributes\");\n\n if(array_key_exists('created_at', $attributes)){\n unset($attributes['created_at']);\n }\n if(array_key_exists('updated_at', $attributes)){\n unset($attributes['updated_at']);\n }\n if(array_key_exists('is_completed', $attributes)){\n if(true == $attributes['is_completed']){\n $attributes['completed_at'] = date('Y-m-d H:i:s');\n }\n }\n\n unset($attributes[\"last_update_by\"]);\n $attributes['updated_by'] = $request->user()->email;\n $checklist->update($attributes);\n\n $res = fractal($checklist, new ChecklistTransformer());\n return response()->json($res);\n\n }", "title": "" }, { "docid": "b66ad0a57e23b51ca2e788082d9b833a", "score": "0.5363231", "text": "public function addPatchDecoder(Decoder $decoder)\n {\n $this->addDecoder($decoder, ['PATCH']);\n }", "title": "" }, { "docid": "631b03d040ac95a483610809560359b8", "score": "0.53553843", "text": "public function updateSinglePost($request,$id) {\n\n }", "title": "" }, { "docid": "b2d408dc5bdb57b77e60eae85e20be29", "score": "0.53513795", "text": "public function update($request)\n {\n }", "title": "" }, { "docid": "b2d408dc5bdb57b77e60eae85e20be29", "score": "0.53513795", "text": "public function update($request)\n {\n }", "title": "" } ]
886398bb9dd75f9e856c08ff25b5e941
Load item image collection
[ { "docid": "85f1105b970431a2f6406659d2582046", "score": "0.7374712", "text": "protected function loadImages()\n {\n // Create images collection\n $this->images = array();\n \n // Load each image\n $imageCollection = $this->parent->db->query();\n $imageCollection->select('*', 'bf_item_images')\n ->where('`item_id` = \\'{1}\\'', $this->id)\n ->order('priority', 'asc')\n ->execute();\n \n $imageCollectionHash = $imageCollection->getInHash('image_id');\n \n $imageCollection->rewind();\n \n // Get priorities\n $priorities = array();\n while($imageLink = $imageCollection->next())\n {\n $priorities[$imageLink->image_id] = $imageLink->priority;\n }\n \n // Find images\n $images = $this->parent->db->query();\n $images->select('*', 'bf_images')\n ->whereInHash($imageCollectionHash)\n ->execute();\n \n // Store each\n while($image = $images->next())\n {\n $nextPriority = $priorities[$image->id];\n\n // Find the next free priority slot\n while($this->images[$nextPriority])\n {\n $nextPriority ++;\n }\n\n // Add\n $this->images[$nextPriority] = $image;\n }\n \n ksort($this->images);\n \n return $this->images;\n }", "title": "" } ]
[ { "docid": "62f22464361a9908d88565904a399b30", "score": "0.6996129", "text": "private function parse_item_images() {\n\t\t$this->get_item_images();\n\n\t\tif ( ! empty( $this->images ) ) {\n\t\t\tforeach ( $this->images as $src => $img ) {\n\t\t\t\t$this->parse_item_image( $src, $img );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "cc95d78ca7ecb633fef2c2365d9a79d7", "score": "0.6868741", "text": "private function get_item_images() {\n\t\t$this->output .= new WPSEO_News_Sitemap_Images( $this->item, $this->options );\n\t}", "title": "" }, { "docid": "411e651f1499c4f2289add36ef3f53aa", "score": "0.6559085", "text": "private function get_item_images() {\n\t\t$restrict_sitemap_featured_img = isset( $this->options['restrict_sitemap_featured_img'] ) ? $this->options['restrict_sitemap_featured_img'] : false;\n\t\tif ( ! $restrict_sitemap_featured_img && preg_match_all( '/<img [^>]+>/', $this->item->post_content, $matches ) ) {\n\t\t\t$this->get_images_from_content( $matches );\n\t\t}\n\n\t\t// Also check if the featured image value is set.\n\t\t$post_thumbnail_id = get_post_thumbnail_id( $this->item->ID );\n\t\tif ( '' !== $post_thumbnail_id ) {\n\t\t\t$this->get_item_featured_image( $post_thumbnail_id );\n\t\t}\n\t}", "title": "" }, { "docid": "2141107d7ef84124ee2301aaf9392253", "score": "0.6417675", "text": "public function populateImages()\n {\n // $imagefield->name = 'imagereferencevirtualimages';\n // $imagefield->id = 999;\n // $imagefield = $this->wire('fields')->get(\"type=FieldtypeImage, maxFiles!=1\");\n // $fieldgroup = new Fieldgroup;\n // $fieldgroup->add($imagefield);\n // $this->template->setFieldgroup($fieldgroup);\n // // add all files in folder\n foreach($this->filesManager()->getFiles() as $file) {\n $pageimage = new Pageimage(new Pageimages($this), $this->path . $file);\n // skip if image is a variation \n $variation = $pageimage->isVariation($file, array('allowSelf' => true));\n if($variation) continue;\n // add custom propery svgcontent\n if(strtolower($pageimage->ext) == 'svg') $pageimage->set('svgcontent', FieldtypeImageReference::getFileContent($pageimage));\n $this->{$imagefield->name}->add($pageimage/* $this->path . $file */);\n }\n }", "title": "" }, { "docid": "3037b11fdff1b361fea9e9cd2aca3f50", "score": "0.62669414", "text": "public function load_items() {\r\n\t\t$item_cache=Zend_Registry::get('item_cache');\r\n\t\tif ($item_cache->test($this->itemCacheName())) {\r\n\t\t\t$this->items = $item_cache->load($this->itemCacheName());\r\n\t\t} else {\r\n\t\t\tZend_Loader::loadClass('Items');\r\n\t\t\t$items=new Items();\r\n\r\n\t\t\t$this->items=$items->getitems($this->id);\r\n\t\t\t$item_cache->save($this->items, $this->itemCacheName());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "81558ae53ed8df6c678206f1ec656012", "score": "0.6193838", "text": "public function doGetCollectiosImages() {\r\n $GLOBALS['TSFE']->additionalHeaderData[$this->extKey].=\r\n '<script type=\"text/javascript\">\r\n var contentArray = {};\r\n </script>';\r\n $flexSettings = $this->settings;\r\n if (!empty($flexSettings['setImageCollection'])) {\r\n $collections = explode(',', $flexSettings['setImageCollection']);\r\n foreach ($collections as $key => $collectionId) {\r\n $imagesInCollection = $this->lightGalleryModel->doGetFilesInCollection($collectionId);\r\n $imageInCollectionPro = $this->doGetgallery($imagesInCollection[0]['collections'], $key);\r\n $imageCollection[$key] = $imageInCollectionPro;\r\n $imageCollection[$key]['galleryTitle'] = $imagesInCollection[0]['gallerytitle'];\r\n $imageCollection[$key]['imageCount'] = count($imageInCollectionPro);\r\n }\r\n }\r\n\r\n return $imageCollection;\r\n }", "title": "" }, { "docid": "526b50d0e773d12e041e5908e560801e", "score": "0.6157472", "text": "public function getItem_image()\n {\n return $this->item_image;\n }", "title": "" }, { "docid": "236db76ff182c6ad9dc896e444487d0b", "score": "0.61476886", "text": "public function collectImage()\n {\n $products = $this->productsLogic->createCarouselImage($_GET['id']);\n $result = $this->productsLogic->createCarousel($products);\n $product = $this->productsLogic->readProduct($_GET['id']);\n $table = $this->productsLogic->printDetailTable($product);\n\n include 'view/details.php';\n\n }", "title": "" }, { "docid": "da922c547ed4a64b7a53e6ef660bea22", "score": "0.6142128", "text": "public function getImageItems(){\n return array_merge(\n $this->getImageItemsFromJson(),\n $this->getImageItemsFromMultipartForm(),\n $this->getImageItemsFromForm()\n );\n }", "title": "" }, { "docid": "41dc7f053e442711d23021717aa3292e", "score": "0.6141458", "text": "public function itemImages()\n {\n return $this->hasManyThrough('App\\ItemImages', 'App\\Item');\n }", "title": "" }, { "docid": "5e5ed0d8e78666f27a53cdd79e47a6dc", "score": "0.60882884", "text": "protected function _prepareCollection()\n {\n $collection = Mage::getModel('d3w_album/photo')->getResourceCollection();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "title": "" }, { "docid": "1054db89160ea2e09844a1638de8e1db", "score": "0.6078617", "text": "protected function _LoadImageLibrary()\n {\n // need to pass the parameters (modulespotname) back to the view\n $oListTable = new TCMSListManagerMediaSelector();\n /** @var $oListTable TCMSListManagerMediaSelector */\n if ($this->global->UserDataExists('sRestriction')) {\n $oListTable->sRestriction = $this->global->GetUserData('sRestriction');\n }\n\n // the image list must show only items that match the default value for the current position...\n // so, load the field def, get the image id @ the position, and use it to lookup the correct image size\n\n $imagefieldname = $this->global->GetUserData('imagefieldname');\n $tableId = $this->global->GetUserData('tableid');\n $position = $this->global->GetUserData('position');\n $id = $this->global->GetUserData('id');\n if (!empty($tableId)) {\n $this->_LoadData($tableId, $id, $imagefieldname);\n }\n\n $defaults = explode(',', $this->oFieldDefinition->sqlData['field_default_value']);\n $oImage = new TCMSImage();\n /** @var $oImage TCMSImage */\n $oImage->Load($defaults[$position]);\n\n $oListTable->Init($oImage);\n $list = $oListTable->GetList();\n $this->data['sTable'] = $list;\n\n return $list;\n }", "title": "" }, { "docid": "45d0f143a75bb496a9e1481f910e8fed", "score": "0.60657", "text": "public function itemImageList($item_id);", "title": "" }, { "docid": "e6fa67d249b79ff20f61fae325efe00c", "score": "0.6042303", "text": "public function initialize()\n {\n if (is_null($this->images)) {\n $this->images = new ArrayCollection();\n }\n }", "title": "" }, { "docid": "f9d11ec413abc6f78aa254746636ff8d", "score": "0.6036027", "text": "function bulkLoadImages()\n {\n header('Content-Type: text/event-stream');\n header('Cache-Control: no-cache');\n $items = $this->bulkLoadSetup();\n $this->bulkLoadAdd($items);\n $this->bulkLoadEnd();\n $this->eventMessage('Bulk Load complete', 100);\n }", "title": "" }, { "docid": "6c0791ef9691dbee81ef12938ba1656a", "score": "0.5983017", "text": "public function getImages ( DBConnection $db ) {\n\t\t$sql = \"select *\n\t\t\t\tfrom mymopsi_img i\n\t\t\t\twhere collection_id = ?\";\n\n\t\t$this->images = $db->query( $sql, [ $this->id ], true, 'Image' );\n\t}", "title": "" }, { "docid": "c4d3bd648bcd0c503a4262628a9d4943", "score": "0.5982614", "text": "public function getGalleryItems();", "title": "" }, { "docid": "a7f4cf8af829d867bc8a88e5b1148c5f", "score": "0.5955307", "text": "public function images();", "title": "" }, { "docid": "c620828cb67638043439608d7f325b4a", "score": "0.5954234", "text": "function load_art_with_images($db, $category, $includeArchive) {\n $works = load_art($db, $category, $includeArchive);\n $safeworks = [];\n foreach($works as $workIndex => $work) {\n \n $image = findImage($work->id);\n if ($image && $image->image_filename !='') {\n array_push($safeworks, $work);\n }\n }\n return $safeworks;\n\n}", "title": "" }, { "docid": "df3921912e6bdfa912daaaee40a2e3b1", "score": "0.5919885", "text": "public function getTaxaImageColl() {\n $taxaImageColl = new \\flora\\taxa\\TaxaImageColl($this->db);\n if (array_key_exists('id', $this->data) && $this->data['id'] != '') {\n $taxaImageColl->loadAll(array('taxa_id' => $this->data['id']));\n }\n return $taxaImageColl;\n }", "title": "" }, { "docid": "9f373b12fb1f102888bfdfe867b0b828", "score": "0.5899087", "text": "protected final function _newsFeedAttachedImages()\r\n {\r\n }", "title": "" }, { "docid": "73c97a7b18013233df110333bb69d41b", "score": "0.588952", "text": "public function load(Img $img);", "title": "" }, { "docid": "b5c479028f92c82fb6c3ff1e2f5434ae", "score": "0.58772403", "text": "public function images()\n {\n return $this->hasMany(Image::class, 'item_id')\n ->where('model', __CLASS__)\n ->where('type', 'images')\n ->orderBy('orderBy','ASC');\n }", "title": "" }, { "docid": "15d56961b2e6e8447c3ebab9933ad052", "score": "0.58522534", "text": "protected function _lazyLoad()\n {\n if ($this->_realImage === null) {\n $this->realImage = new RawImage($this->_path);\n }\n }", "title": "" }, { "docid": "7b98bb211581bcf938a57bb0fa6c30c6", "score": "0.5844345", "text": "public function itemImageFind($id);", "title": "" }, { "docid": "c7549d25772450691749722d2011e478", "score": "0.58315146", "text": "function getImages(){\n $image = new \\Project\\Models\\ImageManager();\n $getImages = $image->getImages();\n require 'app/views/back/images.php';\n }", "title": "" }, { "docid": "2a30de97b113d4893bf3979016fdfc4b", "score": "0.58159745", "text": "function loadImagesFrontend($id){\n\n\tglobal $wpdb;\n\n\n\t$images = [];\n\n\t$bilder = $wpdb->get_results('SELECT fewo.posts_id FROM '.$wpdb->base_prefix.'fewo_bilder AS fewo LEFT JOIN '.$wpdb->base_prefix.'posts AS wp ON fewo.posts_id = wp.id WHERE fewo.fewo_id = '.$id);\n\n\tforeach($bilder as $key => $item){\n\t\t$images[$key][\"img_thumb\"] = wp_get_attachment_image_src($item->posts_id,\"fewo-small\");\n\t\t$images[$key][\"img_big\"] = wp_get_attachment_image_src($item->posts_id,\"fewo-big\");\n\t\t$images[$key][\"id\"] = $bilder[$key]->posts_id;\n\t}\n\n\treturn $images;\n\n}", "title": "" }, { "docid": "04f39de99469b3364a748f84f92c8d15", "score": "0.57898897", "text": "public function addItemImage() {\n\t\t\tif (!$this->validCSRFToken()) $this->error(\"Invalid Request\");\n\n\t\t\t$this->requirePrivilege(\"manage products\");\n\t\t\t# Load Media Module\n\t\t\t$product = new \\Product\\Item();\n\t\t\t$product->get($_REQUEST['product_code']);\n\t\t\tif ($product->error()) app_error(\"Error finding product: \".$product->error(),__FILE__,__LINE__);\n\t\t\tif (! $product->id) $this->error(\"Product not found\");\n\t\n\t\t\t$image = new \\Media\\Item();\n\t\t\t$image->get($_REQUEST['image_code']);\n\t\t\tif ($image->error()) app_error(\"Error finding image: \".$image->error(),__FILE__,__LINE__);\n\t\t\tif (! $image->id) $this->error(\"Image not found\");\n\t\n\t\n\t\t\t$product->addImage($product->id,$image->id,$_REQUEST['label']);\n\t\t\tif ($product->error()) app_error(\"Error adding image: \".$product->error(),__FILE__,__LINE__);\n\t\t\t$response = new \\HTTP\\Response();\n\t\t\t$response->success = 1;\n\t\n\t\t\tprint $this->formatOutput($response);\n\t\t}", "title": "" }, { "docid": "77bc07f755ca505606d94a4dcecf7296", "score": "0.57892", "text": "function loadNodesWithImages() {\n $query = db_select('file_usage', 'u');\n $query->join('node', 'n', 'u.id = n.nid');\n \n $query->fields('u', ['id'])\n ->condition('n.status', NODE_PUBLISHED);\n $result = $query->execute();\n $nids = array_keys($result->fetchAllAssoc('id'));\n return node_load_multiple($nids);\n }", "title": "" }, { "docid": "2accef5c5eb665b03b884cdb82e35aa7", "score": "0.5769273", "text": "public function populateCollection() {\n\t\tif(empty($this->rawData)) {\n\t\t\treturn;\n\t\t}\n\n\t\tforeach($this->rawData as $item) {\n\t\t\t$feedItem = new InstagramItemAdapter($item);\n\t\t\t$this->feed->addItem($feedItem);\n\t\t}\n\t}", "title": "" }, { "docid": "53323f4f4f9e2ee80b4bb0317eba43e5", "score": "0.574783", "text": "public function getImages() {\n $count = 0;\n if (!$this->images) {\n $this->images = array();\n // First find the restaurant specific images.\n $query = mysql_query(\"SELECT * FROM sm_res_images WHERE resId =\\\"\"\n .$this->resId.\"\\\"\") or die(mysql_error());\n while($result = mysql_fetch_array($query)) {\n $this->images[$count++] = $result['image_url'];\n }\n\n // Now add the cuisine specific images.\n $query = mysql_query(\"SELECT * FROM sm_cuisine_images, sm_res_cuisine\n WHERE sm_res_cuisine.cuisineId = sm_cuisine_images.cuisineId\n AND sm_res_cuisine.resId = \\\"\".$this->resId.\"\\\"\")\n or die(mysql_error());\n while($result = mysql_fetch_array($query)) {\n $this->images[$count++] = $result['image_url'];\n }\n return $this->images;\n }\n }", "title": "" }, { "docid": "6e7b61bac558e48d201985c05990097b", "score": "0.5732549", "text": "protected function loadTags()\n {\n // Create tags collection\n $this->tags = array();\n \n // Load each tag\n $tagCollection = $this->parent->db->query();\n $tagCollection->select('*', 'bf_item_tag_applications')\n ->where('`item_id` = \\'{1}\\'', $this->id)\n ->execute();\n \n $tagCollectionHash = $tagCollection->getInHash('item_tag_id');\n \n // Find images\n $tags = $this->parent->db->query();\n $tags->select('*', 'bf_item_tags')\n ->whereInHash($tagCollectionHash)\n ->execute();\n \n // Store each\n while($tag = $tags->next())\n {\n $this->tags[] = $tag;\n }\n \n return $this->tags;\n }", "title": "" }, { "docid": "e0772313454e9e4cf1b334f53a7aa212", "score": "0.5719429", "text": "private function getImages(array $aItem){\n $curModule = $this->oExt->getCurModuleId();\n $bodyType = AMI_Registry::get('AMI/Module/Environment/bodyType', false);\n // CMS-11440 #1\n if(empty($aItem['cat_id']) && ($bodyType == 'cats') && !AMI::isCategoryModule($curModule)){\n $curModule .= '_cat';\n }\n $tplPrefix = $this->tplSimpleFieldPrefix;\n if(AMI::isCategoryModule($curModule)){\n $tplPrefix = ($bodyType == 'cats') ? 'cat_' : (($bodyType == 'details') ? 'itemD_cat_' : 'item_cat_');\n }\n $oTpl = $this->getTemplate();\n\n $vRes = array();\n $vResP = array();\n $picData = array();\n // Get image link\n $level = 3;\n $itemId = 0;\n if(!empty($aItem[\"id\"])){\n $itemId = $aItem[\"id\"];\n }elseif(!empty($aItem[\"cat_id\"])){\n $itemId = $aItem[\"cat_id\"];\n }\n $origFilePath = null;\n $origFileLevel = null;\n foreach(array(\"_popup\", \"\", \"_small\") as $picPfx){\n $picpref = !empty($picPfx) ? (str_replace('_', '', $picPfx) . '_') : '';\n if(!empty($aItem['ext_img' . $picPfx])){\n $aItem[$picpref . 'picture'] = $aItem['ext_img' . $picPfx];\n }else if(!empty($aItem['ext_' . $picpref . 'picture'])){\n $aItem[$picpref . 'picture'] = $aItem['ext_' . $picpref . 'picture'];\n }\n }\n foreach(array(\"popup_\", \"\", \"small_\") as $picpref){\n if(!empty($aItem[$picpref.\"picture\"])){\n $origFilePath = $aItem[$picpref.\"picture\"];\n $origFileLevel = $level;\n break;\n }\n $level --;\n }\n\n $aPicData = array();\n foreach(array('', 'small_') as $preffx){\n $field = $preffx . \"picture\";\n $key = empty($preffx) ? 'img' : 'img_small';\n if($this->genLinkToPic($curModule, $preffx, $origFilePath, $origFileLevel, isset($aItem[$field]) ? $aItem[$field] : null, $itemId, $vRes, FALSE)){\n $aPicData = array_merge(\n $aPicData,\n array(\n 'img' => $vRes[\"src\"],\n 'picture' => $vRes[\"src\"],\n 'src' => $vRes[\"src\"],\n 'title' => $aItem['header'],\n 'alt' => $aItem['header'],\n 'alt_js' => AMI_Lib_String::jParse(str_replace('&#039;', \"'\", $aItem['header'])),\n 'width' => $vRes[\"width\"],\n 'height' => $vRes[\"height\"],\n $preffx.\"picture_width\" => $vRes[\"width\"],\n $preffx.\"picture_height\" => $vRes[\"height\"]\n )\n );\n\n $aItem[$preffx.\"picture_src\"] = $vRes[\"src\"];\n $aItem[$preffx.\"picture_title\"] = $aItem['header'];\n $aItem[$preffx.\"picture_width\"] = $vRes[\"width\"];\n $aItem[$preffx.\"picture_height\"] = $vRes[\"height\"];\n\n // Create the small picture code\n if($preffx == \"small_\"){\n $aItem[\"small_img_popup\"] = $this->parse($tplPrefix . $key, $aPicData);\n $aItem[$key] = $aItem[\"small_img_popup\"];\n }\n\n // Create popup picture if required\n if($this->genLinkToPic($curModule, 'popup_', $origFilePath, $origFileLevel, isset($aItem['popup_picture']) ? $aItem['popup_picture'] : null, $itemId, $vResP, FALSE)){\n if($preffx == \"\" || empty($aItem[\"img\"])){\n $aItem[\"popup_picture_src\"] = $vResP[\"param\"];\n $aItem[\"popup_picture_width\"] = $vResP[\"width\"];\n $aItem[\"popup_picture_height\"] = $vResP[\"height\"];\n\n $aPicData[\"src\"] = $vResP[\"param\"];\n $aPicData[\"width\"] = $vResP[\"width\"];\n $aPicData[\"height\"] = $vResP[\"height\"];\n\n // Create popup picture code\n if($preffx == \"\"){\n $aItem[\"img\"] = $this->parse($tplPrefix . 'img_popup', $aPicData);\n // from _ActionApplyVars\n if(($bodyType == 'details') && !AMI::isCategoryModule($curModule) && !empty($aItem['img'])){\n $aBigPic = array(\n 'img' => $vRes[\"src\"],\n 'title' => $aItem['header']\n );\n $aItem[\"big_img\"] = $this->parse($tplPrefix . 'big_img', $aBigPic);\n }\n }\n }\n if($preffx == \"small_\"){\n $aItem[\"small_img_popup\"] = $this->parse($tplPrefix . 'small_img_popup', $aPicData);\n }\n\n // If do not create popup make picture code\n }else if($preffx == \"\"){\n $aItem[\"img\"] = $this->parse($tplPrefix . \"img\", $aPicData);\n if(($bodyType == 'details') && !AMI::isCategoryModule($curModule) && !empty($aItem['img']) && empty($aItem['big_img'])){\n $aBigPic = array(\n 'img' => $vRes[\"src\"],\n 'title' => $aItem['header']\n );\n $aItem[\"big_img\"] = $this->parse($tplPrefix . 'big_img', $aBigPic);\n }\n }\n }else{\n $aItem[$key] = '';\n }\n }\n $aReplacement = array(\n 'small_picture' => 'img_small',\n 'popup_picture' => 'img_popup',\n 'picture' => 'img'\n );\n\n // CMS-11246#CommentId=74120\n foreach($aItem as $key => $value){\n foreach($aReplacement as $repKey => $repValue){\n if(strpos($key, $repKey) === 0){\n $replace = str_replace($repKey, $repValue, $key);\n if(!isset($aItem[$replace])){\n $aItem[$replace] = $value;\n }\n break;\n }\n }\n }\n\n $aItem['ext_img'] = !empty($aItem['picture_src']) ? $aItem['picture_src'] : '';\n $aItem['ext_img_small'] = !empty($aItem['small_picture_src']) ? $aItem['small_picture_src'] : '';\n $aItem['ext_img_popup'] = !empty($aItem['popup_picture_src']) ? $aItem['popup_picture_src'] : '';\n\n return $aItem;\n }", "title": "" }, { "docid": "4666cc143a431e03d1b2c6bc9032d5d3", "score": "0.57129437", "text": "static public function getImageSet( array $aItem ) {\n\n $_aMainImage = array(\n 'MediumImage' => self::getElement( $aItem, array( 'Images', 'Primary', 'Medium', 'URL' ), '' ),\n 'LargeImage' => self::getElement( $aItem, array( 'Images', 'Primary', 'Large', 'URL' ), '' ),\n );\n // Will be numerically indexed array holding sub-image each.\n $_aSubImages = self::getElementAsArray( $aItem, array( 'Images', 'Variants' ) );\n\n // @deprecated 3.9.0\n // Sub-images can be only single. In that case, put it in a numeric element.\n// if ( ! isset( $_aSubImages[ 0 ] ) ) {\n// $_aSubImages = array( $_aSubImages );\n// }\n\n return array( 'main' => $_aMainImage, ) + $_aSubImages;\n \n }", "title": "" }, { "docid": "50509e86384c94a4b072c10f759b7c1d", "score": "0.57011944", "text": "public function imageAction()\n {\n $model = new Profile_Model_Talentgallery();\n $pictures = $model->getImages(null, 'talent_media2_dance', 'media_dance');\n\n $this->view->allimages = $pictures;\n }", "title": "" }, { "docid": "e416663771d96d5dae5b7454b9bfef82", "score": "0.56947535", "text": "function imageSliderAction() {\n $sliders = Mage::getResourceModel('slider/slider_collection')->addFilter('status', 1);\n $sliders_data = $sliders->getData();\n $imgpath = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'slider/image';\n //Title = Product or Category\n //URL = Product ID or Category ID\n // Image = image path\n $res = array(\"images\" => $sliders_data, \"imgpath\" => $imgpath);\n // $this->response($this->json($res), 200);\n $jsonData = $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($res));\n }", "title": "" }, { "docid": "82f9ddf7af6bb17a8da598769fe86ec7", "score": "0.5671583", "text": "public function loadImgLoader()\n {\n if ($this->loaderImg !== false) {\n return $this->loaderImg;\n }\n\n $this->loaderImg = new Img(self::$publicDirs);\n\n return $this->loaderImg;\n }", "title": "" }, { "docid": "1053e411896d9a0ed19d3b2aacd8da7e", "score": "0.5668295", "text": "public function images($id=0)\n\t{\n\t\t//Get the item\n\t\t$item = $this->portfolio_items_m->get($id);\n\t\t//Get all images of the item\n\t\t$item_images = $this->portfolio_items_images_m->get_by_key('parent', $id);\n\t\t//Set a session variable for easy redirection to the portfolio item being viewed.\n\t\t$this->session->set_flashdata('redirectToCurrent', current_url());\n\t\t$this->template\n\t\t////->set_breadcrumb('Portfolio', '/admin/portfolio')\n\t\t\t\t\t ->set_breadcrumb(lang('portfolio:items'), '/admin/'.$this->module.'/items')\n\t\t\t\t\t ->set_breadcrumb($item->title, '/admin/'.$this->module.'/items/images/'.$item->id)\n\t\t\t\t\t ->set_breadcrumb(lang('items:images'))\n\t\t\t\t\t ->set('item_title', $item->title)\n\t\t\t\t\t ->set('item_images', $item_images)\n\t\t\t\t\t //'parent' is used as a hidden form input, and submitted to do_upload() when the form posts.\n\t\t\t\t\t ->set('parent', $id)\n\t\t\t\t\t ->set('id', $id)\n\t\t\t\t\t //Enable Lex parser\n\t\t\t\t\t ->enable_parser(true)\n\t\t\t\t\t //Build the view using portfolio/views/admin/images.php\n\t\t\t\t\t ->build('admin/images');\n\t}", "title": "" }, { "docid": "eeed2fa2bb434f17c5bbf5b62e9c786b", "score": "0.5647045", "text": "public function getImages()\n\t{\n\t\t$Image = new Product_Image();\n\t\treturn $Image->findList( array( 'ProductId = '.$this->Id ), 'Position asc' );\n\t}", "title": "" }, { "docid": "00225abedd511bec796d7116ba11e787", "score": "0.5641958", "text": "public function images()\n {\n return $this->belongsToMany('App\\Modules\\Base\\Models\\Image');\n }", "title": "" }, { "docid": "870bf9437120133c262d256ce0269d92", "score": "0.56389105", "text": "private function bulkLoadAdd($items)\n {\n $this->eventMessage('adding items to cms images folder and database.', 6);\n $cnt=0; $percent = 10;\n\n foreach ($items as $item) {\n ++$cnt;\n $percent += floor(round(90 / count($items)));\n if ($percent>99)$percent=99;\n $this->eventMessage('&nbsp&nbsp adding: '.$item['heading']. ' - item: '.$cnt, $percent);\n $_SESSION['item'] = $this->editInput->setupNewItem();\n $_SESSION['item']['topic'] = $item['topic'];\n $_SESSION['item']['subtopic'] = $item['subtopic'];\n $_SESSION['item']['heading'] = $item['heading'];\n $_SESSION['item']['date'] = $item['date'];\n\n foreach ($item['images'] as $image) {\n $this->eventMessage(' &nbsp;&nbsp; &nbsp; image: '.$image, 50);\n $image_posted = 'bulkload/'.$item['folder'].'/'.$image;;\n $newImage = $image;\n $newImage = str_replace(' ','-',$newImage);\n $newImage = preg_replace('/[^A-Za-z0-9\\-]/', '-', $newImage);\n $newImage = date( 'Y-m-d-H-i-s-') . $newImage;\n $newImage = $newImage . '.jpg'; //note: all files are stored as JPGs\n $this->editInput->processNewImage($image_posted, $newImage);\n $this->editInput->createThumbnail(end($_SESSION['item']['images']));\n }\n $this->editUpdate->publishItem();\n }\n $this->eventMessage(' &nbsp&nbsp adding items complete.', $percent);\n }", "title": "" }, { "docid": "2e5ba0dfa8539a1cee1fbbd349dfc1e8", "score": "0.56380856", "text": "function getImages() {\n\treturn $imageArray;\n}", "title": "" }, { "docid": "31e37f3200ecac468b34932a0b1e8ef6", "score": "0.5632667", "text": "private function loadData(){\n\n\t\t$filename = $this->storageFileFullPath;\n\n\t\tif ( ! file_exists( $filename ) ) {\n\t\t $this->saveCollection(); \n\t\t}\n\n\t\t$this->loadCollection();\n\t\t\n\t}", "title": "" }, { "docid": "5f7e13a518bb00c19f389dd11dbddd1b", "score": "0.5631365", "text": "function loadImagesFromNode($nid) {\n $query = db_select('file_managed', 'f');\n $query->join('file_usage', 'u', 'f.fid = u.fid');\n\n $query->fields('f', ['fid', 'uri'])\n ->condition('f.filemime', 'image/%', 'LIKE')\n ->condition('u.id', $nid, '=');\n return $query->execute();\n }", "title": "" }, { "docid": "af9418222f32d4ab2b1077b3a475509c", "score": "0.5629771", "text": "public function getImage()\n\t{\n\t\t$Image = new Content_Image();\n\t\treturn $Image->findItem( array( 'Id = '.$this->ImageId ) );\n\t}", "title": "" }, { "docid": "4e38676fa17c8dbb02d77b942acb9e92", "score": "0.5628484", "text": "abstract protected function initItems();", "title": "" }, { "docid": "789a0948fe5d03fc9d13153a1e631254", "score": "0.56282896", "text": "public function pictures()\n\t{\n\t\treturn $this->hasMany(ItemPicture::class);\n\t}", "title": "" }, { "docid": "de5bd09aac36276fb8bec2e744a49e5e", "score": "0.56231904", "text": "public function retrieve_image_list($id) {\n $this->db->select(\"*\");\n\t $this->db->from('ItemImage');\n\t $this->db->where('itemID',$id);\n\t $query = $this->db->get();\n\t return $query->result();\n }", "title": "" }, { "docid": "b72ac9c869fbbb41c9c82abb020cc635", "score": "0.56112117", "text": "public function registerMediaCollections()\n {\n $this\n ->addMediaCollection('feature_image')\n ->singleFile();\n }", "title": "" }, { "docid": "f4771c95a3807cc083c9a0a0d2e93c10", "score": "0.56106627", "text": "public function loadItem($itemId);", "title": "" }, { "docid": "7e9bf3c8c9c89070e88723c4989e08ad", "score": "0.56051326", "text": "public function mosaicImages () {}", "title": "" }, { "docid": "2440f22d6a89295263b240d24f37daff", "score": "0.56022483", "text": "public function handleLoadImages()\n {\n $this->view = 'loadImages';\n $this->parent->invalidateControl();\n }", "title": "" }, { "docid": "ef519a7778423cafe8230decc4328bde", "score": "0.55976456", "text": "function getImages()\n\t\t \t{\n\t\t \n\t\t if (empty($this->_images)) {\n\t\t\t$query = \"SELECT DISTINCT * FROM #__arts_curriculum WHERE image1 IS NOT NULL ORDER BY ordering \";\n\t\t\t$this->_images = $this->_getList($query);\n\t\t\t}\n\t\t\n\t\t\treturn $this->_images;\n\t\t\t}", "title": "" }, { "docid": "7184795af82091ef764854898e04644f", "score": "0.5593522", "text": "public function prepareImage($imageCollection) {\r\n $generatedBaseUrl = sprintf(\"%s://%s\", isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http', $_SERVER['SERVER_NAME']) . '/';\r\n $baseUrl = (!empty($GLOBALS['TSFE']->baseUrl) ? $GLOBALS['TSFE']->baseUrl : $generatedBaseUrl);\r\n $this->cObj = $this->configurationManager->getContentObject();\r\n foreach ($imageCollection as $key => $value) {\r\n $lconf['image.']['params'] = '';\r\n $lconf[\"image.\"][\"file.\"][\"treatIdAsReference\"] = 1;\r\n $lconf[\"image.\"][\"file\"] = $value['refUid']; // sys_file_reference.uid that links a sys_file to e.g. a tt_content element\r\n $lconf['image.']['altText'] = 'altText';\r\n $lconf[\"image.\"][\"file.\"][\"height\"] = \"150c\";\r\n $lconf[\"image.\"][\"file.\"][\"width\"] = \"150c\";\r\n $theImgCode[$key]['thumb'] = $baseUrl . $this->cObj->IMG_RESOURCE($lconf[\"image.\"]);\r\n $theImgCode[$key]['mobile'] = $baseUrl . 'fileadmin' . $value['identifier'];\r\n $theImgCode[$key]['firstImage'] = 'fileadmin' . $value['identifier'];\r\n if ($value['isPreview']) {\r\n $theImgCode[$key]['firstImage'] = 'fileadmin' . $value['identifier'];\r\n }\r\n $theImgCode[$key]['src'] = $baseUrl . 'fileadmin' . $value['identifier'];\r\n $theImgCode[$key]['caption'] = $value['title'];\r\n $theImgCode[$key]['desc'] = $value['description'];\r\n $dynamincContent = \"<div class='customHtml'><h4>\" . $value['title'] . \"</h4><p></p>\" . $value['description'] . \"</div>\";\r\n $theImgCode[$key]['sub-html'] = $dynamincContent;\r\n $theImgCode[$key]['isPreview'] = $value['isPreview'];\r\n }\r\n return $theImgCode;\r\n }", "title": "" }, { "docid": "c10efc6beff9bac5becdf01c676f1e21", "score": "0.55909145", "text": "public function get_Images_Slider(){\n $this->objConection->conexion();\n $queryImg = \"CALL image_SP(0, null, 0, 0, $this->id_New, 'SELECT');\";\n $resultadoImg = $this->objConection->cone->query($queryImg);\n while($rowImg = $resultadoImg->fetch_assoc()){ ?>\n <li>\n <img src=\"<?php echo \"controllers/\" . $rowImg['image'];?>\" height=400 width=500>\n </li>\n <?php\n }\n }", "title": "" }, { "docid": "817f1747b0da08e2a8d0d4001e0f75b8", "score": "0.5574892", "text": "public function run()\n {\n ItemImage::factory()->has(Item::factory())->create();\n }", "title": "" }, { "docid": "976e29be3f5b73d6b70951ca7b4daf7e", "score": "0.5562031", "text": "function getLangInternalImages($item_id) {\r\n\t\t$this->langdb =& $this->load->database('langdb01', true);\r\n\t\t$this->langdb->where('item_id', $item_id);\r\n\t\t$this->langdb->from('image_lang');\r\n\t\t$query = $this->langdb->get(); //store data\r\n\t\t$this->langdb->close(); //close connection\r\n\r\n\t\t$data = array();\r\n\t\tif($query->num_rows() > 0) {\r\n\t\t\tforeach($query->result_array() as $row) {\r\n\t\t\t\t$row['image_class'] = 2; //internal\r\n\t\t\t\t$row['image_copy_location'] = $row['image_location'];\r\n\t\t\t\t$row['image_location'] = $this->config->item('image_url') . $row['image_location'];\r\n\t\t\t\t$data[] = $row;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "6e45a3d7122410c31090b823d7f7f41b", "score": "0.55547255", "text": "function ImageManager()\r\n\t{\r\n\t}", "title": "" }, { "docid": "74ee7bf1796bbb3b3ed5c19962b5009d", "score": "0.55503637", "text": "function loadDetails() {\n\t\tif (file_exists($this->activeImage)) {\n\t\t\tlist ($this->imageWidth, $this->imageHeight, $this->imageType, $this->imageAttributes) =\n\t\t\t\tgetimagesize($this->activeImage);\n\t\t\t$this->imageType = image_type_to_mime_type($this->imageType);\n\t\t\t$this->imageSize = filesize($this->activeImage);\n\t\t}\n\t}", "title": "" }, { "docid": "7d40e843857d507ebaa058acadae4224", "score": "0.5547543", "text": "public function images()\n {\n return $this->hasMany(Attachment::class, 'type_id')->where('type', Attachment::TYPE_OF_IMAGE)->orderBy('order');\n }", "title": "" }, { "docid": "919c7a3a4856d58200cc0dd8c9fe15e5", "score": "0.55417836", "text": "function load_imgs (&$oBucle, $aParams) {\n\t$aTmp = split (\"\\.\", $aParams[0]);\n\t$tabla = $aTmp[0];\n\t$campo = $aTmp[1];\n\t$oBucle->add_field ($tabla, $campo);\n\treturn $aParams[0];\n}", "title": "" }, { "docid": "0c18aeab6b7533506bb1dfc08f5cdd29", "score": "0.553231", "text": "public function getPictures(): Collection\n {\n return $this->pictures;\n }", "title": "" }, { "docid": "74d524c53b529046419d0aef79e7abab", "score": "0.55277425", "text": "public function load()\n {\n if ($this->isLoaded()) {\n return $this->items;\n }\n\n $this->setIsLoaded(true);\n $this->items = array_replace_recursive(\n $this->localLoader->load(),\n $this->remoteLoader->load()\n );\n return $this->items;\n }", "title": "" }, { "docid": "0af7a62132b3a7a5c4998563d097d338", "score": "0.5515949", "text": "public function run()\n {\n\n $products = Product::all();\n\n foreach($products as $product) {\n $this->attachImages($product);\n }\n\n }", "title": "" }, { "docid": "df418b0590d7d2424c9d347ee2dfff34", "score": "0.55154103", "text": "public function getImages()\r\n {\r\n return $this->images;\r\n }", "title": "" }, { "docid": "dbd7afefe71955d3c4e4bb7cc5364984", "score": "0.5514494", "text": "public function load()\n {\n $sql = \"SELECT itemId FROM `{$this->tbl}`\"\n . \"\\nWHERE itemType = \"\n . Claroline::getDatabase()->quote( $this->itemType );\n \n if( $this->listId )\n {\n $sql .= \"\\nAND listId = \"\n . Claroline::getDatabase()->escape( $this->listId );\n }\n \n $sql .= \"\\nORDER BY rank ASC\";\n \n $itemList = Claroline::getDatabase()->query( $sql );\n $this->itemList = array();\n \n if( $itemList->numRows() )\n {\n foreach( $itemList as $itemData )\n {\n $itemId = $itemData[ 'itemId' ];\n $this->itemList[ $itemId ] = new $this->itemClassName( $itemId );\n }\n }\n }", "title": "" }, { "docid": "a9893acbb8d459b60cafaf14a352ab11", "score": "0.5510513", "text": "private function loadCollection(){\n\n\t\t// wipe out the current memory collection\n\t\t$this->collection = array();\n\n\t\t$fileData = file_get_contents( $this->storageFileFullPath );\n\n\t\tif ( strlen( $fileData ) ){\n\n\t\t\t$JSONData = json_decode($fileData, true);\n\n\t\t\tforeach ($JSONData as $value){\n\n\t\t\t\t$obj = $this->getToDo('');\n\n\t\t\t\t$obj->setID($value['id']);\n\t\t\t\t$obj->setComplete($value['complete']);\n\t\t\t\t$obj->setTask($value['task']);\n\n\t\t\t\t$this->saveToDo($obj);\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "82066347c934d5c5547553df578bfc16", "score": "0.5500521", "text": "function getImagesMain() {\r\r\n\t\treturn $this->images_main;\r\r\n\t}", "title": "" }, { "docid": "d996267d6cf694ac5e5918e12a5faad9", "score": "0.55001587", "text": "public function images(): FileCollection\n {\n return $this->files()->filterBy('type', 'image');\n }", "title": "" }, { "docid": "c531540c58ca5790e04ca28179aa05af", "score": "0.54944855", "text": "public function makeContentImagesLocal()\n\t{\n\t\t$this->feed_item->image_count=0;\n\n\t\t$user_id=$this->pluginOptions['post_author'];\n\t\t$post_id=$this->feed_item->post_id;\n\t\t$this->trace($this->feed->url.\" ==> makeContentImagesLocal\");\n\n\t\tif(strlen($this->feed_item->content)<=2) return;\n\n\t\t$this->pre_loadHTML();\n\n\t\t$imgs = $this->dom->getElementsByTagName('img');\n\n\t\tif(get_class($imgs)!='DOMNodeList') return;\n\n\t\t$length = $imgs->length;\n\t\t$featured_image=false;\n\t\tfor ($i = $length-1; $i >=0; $i--)\n\t\t{\n\t\t\t$img=$imgs->item($i);\n\n\t\t\t$found=false;\n\t\t\t$image=[\n\t\t\t'src'=>(string)$img->getAttribute('src'),\n\t\t\t'alt'=>(string)$img->getAttribute('alt'),\n\t\t\t'title'=>(string)$img->getAttribute('title')\n\t\t\t];\n\n\t\t\t$img->removeAttribute('width');\n\t\t\t$img->removeAttribute('height');\n\n\t\t\tif(strlen($image['src'])<0&&strlen($image['src'])>255)\n\t\t\t\tcontinue;\n\n\t\t\tif(substr($image['src'],0,2)=='//')\n\t\t\t{\n\t\t\t\t$image['src']=\"http:\".$image['src'];\n\t\t\t}\n\n\t\t\t/* */\n\t\t\t$tmp = download_url( $image['src'] );\n\n\t\t\t$desc = $image['alt']==''?$image['title']:$image['alt'];\n\n\t\t\t$file_array = [];\n\n\t\t\tpreg_match('/[^\\?]+\\.(jpg|jpe|jpeg|gif|png)/i', $image['src'], $matches);\n\t\t\tif(count($matches)==0)\n\t\t\t{\n\t\t\t\t$file_array['name'] = $image['src'];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$file_array['name'] = basename($matches[0]);\n\t\t\t}\n\n\t\t\t$file_array['tmp_name'] = $tmp;\n\n\t\t\tif ( is_wp_error( $tmp ) ) {\n\t\t\t\t@unlink($file_array['tmp_name']);\n\t\t\t\t$file_array['tmp_name'] = '';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$cat_ids=$this->getMultipleCategories();\n\t\t\t\t$post_array = [\n\t\t\t\t'post_author' => $user_id, \n\t\t\t\t'post_date' => date(\"Y-m-d H:i:s\",strtotime($this->feed_item->published_at)),\n\t\t\t\t'post_category' => $cat_ids\n\t\t\t\t];\n\n\t\t\t\t$media_id = media_handle_sideload( $file_array, $post_id, $desc,$post_array );\n\n\t\t\t\tif ( is_wp_error($media_id) ) {\n\t\t\t\t\t/* image couldn' be found -- will be removed later */\n\t\t\t\t\t@unlink($file_array['tmp_name']);\n\t\t\t\t\t//$img->removeAttribute('src');\n\t\t\t\t\t$this->trace($image['src'].\" error: \".$media_id->get_error_messages( )[0]);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t/* image is valid and local */\n\t\t\t\t\t$image['url'] = wp_get_attachment_url( $media_id );\n\n\t\t\t\t\t$min_width=$this->pluginOptions['min_width'];\n\t\t\t\t\t$min_height=$this->pluginOptions['min_height'];\n\n\t\t\t\t\tlist($width, $height)=getimagesize($image['url']);\n\t\t\t\t\t$image['width']=$width;\n\t\t\t\t\t$image['height']=$height;\n\n\t\t\t\t\t/* ignore unless over a certain width/height */\n\t\t\t\t\tif($width>$min_width&&$height>$min_height)\n\t\t\t\t\t{\n\t\t\t\t\t\t/* replace old url with new url */\n\t\t\t\t\t\t$img->setAttribute('src',$image['url']);\n\n\t\t\t\t\t\t$class=$img->getAttribute('class');\n\t\t\t\t\t\t$class=explode(\" \",trim($class));\n\t\t\t\t\t\t$class[]=\"loremblogum-responsive\";\n\t\t\t\t\t\t$class=trim(implode(\" \",$class));\n\t\t\t\t\t\t$img->setAttribute('class',$class);\n\n\t\t\t\t\t\t$this->feed_item->image_count++;\n\t\t\t\t\t\t$this->feed->image_count++;\n\t\t\t\t\t\t$hash=md5($image['src']);\n\n\t\t\t\t\t\t$this->feed->log['feed_items_images'][$hash]=(object)[\n\t\t\t\t\t\t'url'=>$this->feed_item->url,\n\t\t\t\t\t\t'published_at'=>$this->feed_item->published_at,\n\t\t\t\t\t\t'image_no'=>$this->feed_item->image_count,\n\t\t\t\t\t\t'image_url'=>$image['url'],\n\t\t\t\t\t\t'image_src'=>$image['src']\n\t\t\t\t\t\t];\n\n\t\t\t\t\t\t/* add a featured image when the first image is found */\n\t\t\t\t\t\tif($featured_image===false&&$this->pluginOptions['featured_image']=='Yes')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t/* */\n\t\t\t\t\t\t\tset_post_thumbnail( $post_id, $media_id );\n\t\t\t\t\t\t\t$featured_image=true;\n\n\t\t\t\t\t\t\t/* */\n\t\t\t\t\t\t\t$img->parentNode->removeChild($img);\n\t\t\t\t\t\t}\t\t\n\n\t\t\t\t\t\t/* */\n\t\t\t\t\t\t$found=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/* if we didn't get a local copy, remove reference */\n\t\t\tif($found===false)\n\t\t\t{\n\t\t\t\t/* replace old url with blank */\n\t\t\t\t$img->parentNode->removeChild($img);\n\t\t\t}\n\t\t}\n\t\t$this->post_saveHTML();\n\t}", "title": "" }, { "docid": "d77485a7070b4e4cc575ba3de26fb320", "score": "0.54877883", "text": "public function images()\n {\n return $this->belongsToMany(Image::class, 'image_news_collections')->withPivot('type');\n }", "title": "" }, { "docid": "33782ab76054c4ae83b4474c559fbc7b", "score": "0.5478635", "text": "private function load_items() {\n $new_items = array();\n $items = $this->db->get_items( $this->id );\n\n if ( ! empty( $items ) ) {\n foreach ( $items as $item ) {\n $product = jpid_get_product( $item->product_id );\n\n if ( ! empty( $product ) && is_object( $product ) ) {\n $new_items[] = $product;\n }\n }\n }\n\n return $new_items;\n }", "title": "" }, { "docid": "93ea4dad76428465893049a7d1a62045", "score": "0.5474994", "text": "public function getImgLoader()\n {\n return $this->img;\n }", "title": "" }, { "docid": "8c65f6746404edce9f7fb2f73c8f4f99", "score": "0.54736495", "text": "public function getImage()\n {\n return $this->hasOne(Image::class, ['itemId' => 'id'])->where(['image.modelName' => \"Products\", 'image.isMain' => 1]);\n }", "title": "" }, { "docid": "69b45eb2c751d0c24af9fd4aaaed8b8b", "score": "0.5469954", "text": "private function load() {\n\n $query = new \\WP_Query( [\n 'post_type' => 'sprite',\n 'posts_per_page' => 1,\n 'name' => $this->hash,\n ] );\n\n if ( ! $query->have_posts() ) {\n return false;\n }\n\n $data = json_decode( $query->posts[0]->post_content, true );\n\n $this->image_url = $data['image_url'];\n $this->image_w = $data['image_w'];\n $this->image_h = $data['image_h'];\n $this->map = $data['map'];\n\n return $this;\n }", "title": "" }, { "docid": "e21c7ddebbbe7f677a2d2ca823a01651", "score": "0.5466583", "text": "public function images()\n {\n return $this->morphMany(Image::class, 'imageable');\n }", "title": "" }, { "docid": "6a95da133ec94d77df4703c6148dc073", "score": "0.54628253", "text": "public function get_images_obj() {\n\t\tif ( ! $this->images ) {\n\t\t\t$this->images = new Avada_Images();\n\n\t\t}\n\t\treturn $this->images;\n\t}", "title": "" }, { "docid": "2122c4db0f1b99b5e9e0eb34310f171d", "score": "0.5429836", "text": "public function fetch_slider_images()\n\t{\n\t\t$detail=fetch(\"cms_slider_images\");\n\t\t$response['status']=200;\n\t\t$response['data']=$detail;\n\t\techo json_encode($response); \n\t}", "title": "" }, { "docid": "06dc1cf3c41d3c696d1af3794f4e48bb", "score": "0.5423733", "text": "public function getImages()\n {\n return $this->images;\n }", "title": "" }, { "docid": "06dc1cf3c41d3c696d1af3794f4e48bb", "score": "0.5423733", "text": "public function getImages()\n {\n return $this->images;\n }", "title": "" }, { "docid": "06dc1cf3c41d3c696d1af3794f4e48bb", "score": "0.5423733", "text": "public function getImages()\n {\n return $this->images;\n }", "title": "" }, { "docid": "06dc1cf3c41d3c696d1af3794f4e48bb", "score": "0.5423733", "text": "public function getImages()\n {\n return $this->images;\n }", "title": "" }, { "docid": "aa94ff4e52f4f77a925a09ec9dcac82d", "score": "0.54229504", "text": "public function images() {\n if(!is_null($this->images)) return $this->images;\n return $this->filterBy('type', 'image');\n }", "title": "" }, { "docid": "bfea3699988da332ba84ce4a0a6473b6", "score": "0.5421254", "text": "public function getAllImages()\n {\n return static::$imageImpdao->findAll(self::CLASSNAMEIMAGE);\n\n }", "title": "" }, { "docid": "42a48ae2f5d12df580829452d0fecc96", "score": "0.5420618", "text": "public function images()\n {\n return $this->morphMany('OOD\\Image', 'imageable');\n }", "title": "" }, { "docid": "428f8f2d41ab0f74c9d64876e66f28e8", "score": "0.54189515", "text": "public function mosaicImages() {\n\t}", "title": "" }, { "docid": "bf8869af794ea0f1e622ecf3621a4dfa", "score": "0.5413868", "text": "public function getFeaturedPics(){\n\t\treturn $this->imageGateway->getFeatureImages();\n\t}", "title": "" }, { "docid": "83b3f56cf4b9012ced7a1132d4f34d07", "score": "0.54126555", "text": "public function imageAction() {\n\tif($this->_getParam('id',false)) {\n\t$this->view->images = $this->_images->getImage((int)$this->_getParam('id'));\n\t$this->view->finds = $this->_images->getLinkedFinds((int)$this->_getParam('id'));\n\t} else {\n\tthrow new Exception('No parameter found on the url string');\n\t}\n\t}", "title": "" }, { "docid": "fe60c313913dd22dea08bce03edd1ddc", "score": "0.5411936", "text": "function diva_cache_images($divaid) {\n $coll = db_select(\"diva_data\", \"d\")\n ->fields(\"d\", array(\n 'collection_totals'\n ))\n ->condition('divaid', $divaid)\n ->execute()\n ->fetchAssoc();\n\n $collection = unserialize($coll['collection_totals']);\n $cachekey = 'diva-' . $divaid;\n cache_set($cachekey, $collection, 'cache_diva');\n}", "title": "" }, { "docid": "8bc3748ec1d0c9673d48cb49d512202a", "score": "0.5409648", "text": "public function registerMediaCollections()\n {\n $this->addMediaCollection('icon')->singleFile();\n }", "title": "" }, { "docid": "71d5379c956e3d5176892dff2d02b763", "score": "0.5405738", "text": "public function getImages() {\n return new CActiveDataProvider('Image', array(\n 'criteria' => array(\n 'condition' => 'owner=:owner AND ownerId=:ownerId',\n 'params' => array(':owner' => get_class($this), ':ownerId' => $this->id),\n ),\n ));\n }", "title": "" }, { "docid": "67ee9733918e7f8ace4fd44f2062bf4e", "score": "0.5399731", "text": "public function images() {\n return $this->morphMany(\\Martin\\Core\\Image::class, 'imageable');\n }", "title": "" }, { "docid": "918b3da13ad7995cfb42e8bd460a1656", "score": "0.53939456", "text": "public function getAllProductImages(){\n\t\t\tif($this->get_request_method() != \"GET\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\t\t\t$query = \"SELECT * FROM `foto`\";\n\t\t\t$this->db->get($query);\n\t\t}", "title": "" }, { "docid": "e180c0d2be8529ef6ac0cfc3f447c72c", "score": "0.53906304", "text": "public function images($id){\n $item = Product::find($id);\n $images = $item->images;\n return view('backend.product.images')->with([\n 'images' => $images,\n 'item' => $item\n ]);\n }", "title": "" }, { "docid": "7a6d282c87c37afd1e94b2f539a519af", "score": "0.5389948", "text": "protected function assignCurrentItemToView() {\r\n \t$item = $this->yagContext->getItemlistContext()->getListData()->getFirstRow()->getCell('image')->getValue();\r\n \t$this->view->assign('item', $item);\r\n }", "title": "" }, { "docid": "e151db3b536f48a50af1f67301f387fd", "score": "0.53876513", "text": "public function getImages() {\n return $this->images;\n }", "title": "" }, { "docid": "7381c2dc54d14ff71c112075181804cf", "score": "0.5386791", "text": "private function collect_images() {\n $images = new DirectoryIterator($this->images_dir);\n foreach ($images as $image) {\n if (!$image->isDot()) {\n $name = $image->getBasename();\n $this->images[] = array(\n 'path' => $this->poster_loc . DS . $name,\n 'name' => $name\n );\n }\n }\n return $this->images;\n }", "title": "" }, { "docid": "71f9301c1ecaae1d0032a235c961a9e6", "score": "0.53850454", "text": "public function index()\n {\n return ImageResource::collection(Image::onlyTrashed()->get());\n }", "title": "" }, { "docid": "024512f9f3b33d5d8fcf65e4fd79aaa2", "score": "0.538437", "text": "public function load($item)\n {\n\t\t// Initialiase variables.\n $db = JFactory::getDBO();\n\t\t$user\t= JFactory::getUser();\n\t\t$groups\t= implode(',', $user->getAuthorisedViewLevels());\n\n // Get HWD config.\n $hwdms = hwdMediaShareFactory::getInstance();\n $config = $hwdms->getConfig();\n\n $query = $db->getQuery(true)\n ->select('c.id, c.title')\n ->from('#__hwdms_category_map AS cmap')\n ->join('LEFT', '#__categories AS c ON c.id = cmap.category_id')\n ->where($db->quoteName('cmap.element_id').' = '.$db->quote($item->id))\n ->where($db->quoteName('cmap.element_type').' = '.$db->quote($this->elementType))\n ->where($db->quoteName('c.id').' > 0'); // Make sure we don't get any invalid categories from a broken map\n \n // Restrict based on access.\n if ($config->get('entice_mode') == 0)\n {\n $query->where('c.access IN ('.$groups.')');\n } \n \n // Filter by published category.\n\t\tif ((!$user->authorise('core.edit.state', 'com_hwdmediashare')) && (!$user->authorise('core.edit', 'com_hwdmediashare')))\n {\n\t\t\t$query->where('c.published IN (1)');\n\t\t}\n else\n {\n $query->where('c.published IN (0,1)');\n }\n \n try\n { \n $db->setQuery($query);\n $result = $db->loadObjectList();\n }\n catch (Exception $e)\n {\n $this->setError($e->getMessage());\n return false;\n }\n \n return $result;\n }", "title": "" }, { "docid": "7edfba8b3e565aa2dfec1bef797caa10", "score": "0.5380104", "text": "public function images()\n {\n return $this->morphMany('EMMA5\\Image', 'imageable');\n }", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "8e8e03727ca6544a2d009483f6d1aca9", "score": "0.0", "text": "public function destroy($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "37dd170c1eaea50870a9bd20839ad070", "score": "0.7137241", "text": "public function remove(ResourceInterface $resource): void\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": "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": "e3c740412fbdcfbb4c5f134b55955877", "score": "0.66060185", "text": "public function deleteStorage($id);", "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": "86a97ef20b44d79f474926937530d353", "score": "0.63162404", "text": "public function remove($resourceId)\n {\n return $this->rResourceMixin->remove($resourceId);\n }", "title": "" }, { "docid": "2961fd7e3d8100bdb9570443ca486260", "score": "0.624805", "text": "public function destroy()\n {\n if ($this->resource) {\n sem_remove($this->resource);\n @unlink($this->filePath);\n }\n }", "title": "" }, { "docid": "0145806453a1e9f5ee0809b4db0b14d3", "score": "0.61310524", "text": "public function markAsDeleted(ResolvedResource $resource);", "title": "" }, { "docid": "6c6fe1826f8ec4ac06c5e0ef405b8b7a", "score": "0.6100814", "text": "function deleteResource($id) {\n\t\t\t$id = sqlescape($id);\n\t\t\t$r = $this->getResource($id);\n\t\t\tif ($r) {\n\t\t\t\tsqlquery(\"DELETE FROM bigtree_resources WHERE file = '\".sqlescape($r[\"file\"]).\"'\");\n\t\t\t\t$storage = new BigTreeStorage;\n\t\t\t\t$storage->delete($r[\"file\"]);\n\t\t\t\tforeach ($r[\"thumbs\"] as $thumb) {\n\t\t\t\t\t$storage->delete($thumb);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "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": "d7a9a477b41e565ba02b2968aa02b2d8", "score": "0.6054318", "text": "public function remove ($resource = false, $key = false) {\n\t\t$resource = ($resource) ? $resource : $this->resource;\n\t\t$key = ($key) ? $key : $this->key;\n\n\t\treturn DB::execute ('delete from `#prefix#lock` where resource = ? and resource_id = ?', $resource, $key);\n\t}", "title": "" }, { "docid": "5bb36f163668a235aa80821b0746c2bc", "score": "0.60064924", "text": "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "title": "" }, { "docid": "0edce8e39abb5191d53e16b1ad17f69f", "score": "0.5964138", "text": "public function destroy($id)\n {\n $suplier = Supplier::where('id',$id)->first();\n $photo = $suplier->photo;\n if($photo)\n {\n unlink($photo);\n Supplier::where('id',$id)->delete();\n\n }\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": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "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": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "5336825b23ae57c225d3534fd55b1861", "score": "0.5897263", "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": "83e24f29d0e8d9db1e7e13447c37580c", "score": "0.58936465", "text": "public function deleteResource(Resource $resource)\n {\n //unset all fields (for now)\n foreach (get_class_methods($resource) as $method) {\n if (0 === strpos($method, 'set')) {\n $resource->$method(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": "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": "682325cf5de8624768bd5dbfad42738d", "score": "0.5875408", "text": "public function action_remove()\n\t{\n\t\t$this->access('admin.'.strtolower($this->_admin->resource).'.remove');\n\t\t$id = $this->request->param('id');\n\n\t\tif(!$this->request->is_ajax())\n\t\t{\n\t\t\tthrow new Kohana_HTTP_Exception_404;\n\t\t}\n\n\t\t// Needs to be a GET request\n\t\tif($this->request->method() != Request::GET)\n\t\t{\n\t\t\tthrow new Kohana_HTTP_Exception_403('No data was requested to be removed.');\n\t\t}\n\n\t\t$record = $this->_admin->model->where($this->_admin->primary_key, '=', $id)->find();\n\n\t\tif($record->loaded())\n\t\t{\n\t\t\tRD::set(RD::SUCCESS, ':resource #:id has been removed.', array(\n\t\t\t\t':resource' => Inflector::singular($this->_resource),\n\t\t\t\t':id' => $id\n\t\t\t));\n\t\t\t$record->delete();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tRD::set(RD::WARNING, ':resource can\\'t be found.', array(\n\t\t\t\t':resource' => Inflector::singular($this->_resource),\n\t\t\t\t':id' => $id\n\t\t\t));\n\t\t}\n\t}", "title": "" }, { "docid": "7760e18034429a581e9c1073281ca346", "score": "0.5874566", "text": "public function delete ()\n {\n $this->unlock();\n sem_remove( $this->getResource() );\n $this->resource = NULL;\n return $this;\n }", "title": "" }, { "docid": "16ede02ea64f8d696ab94948fa4d095a", "score": "0.5870248", "text": "public function destroyFile($resource, File $file)\n {\n $file->delete();\n return $file->{$resource};\n }", "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": "e02a61dc8d778d6f70e60505035c99d1", "score": "0.58621585", "text": "public function onDelete(DeleteResourceEvent $event)\n {\n $em = $this->container->get('doctrine.orm.entity_manager');\n $em->remove($event->getResource());\n $event->stopPropagation();\n }", "title": "" }, { "docid": "ee70945e791659b8782f1f156e69304e", "score": "0.5847799", "text": "public function delete()\n {\n return $this->getStorage()->delete($this->path().DIRECTORY_SEPARATOR.$this->name());\n }", "title": "" }, { "docid": "fbd716173957d995532e7a5839e6a5dc", "score": "0.58406353", "text": "public function rm($item);", "title": "" }, { "docid": "df76e304787c6be76144a24a799b6900", "score": "0.5835866", "text": "public function removeAction()\n {\n Pi::service('log')->mute();\n $id = $this->params('id', 0);\n $fakeId = $this->params('fake_id', 0);\n $affectedRows = 0;\n $module = $this->getModule();\n\n if ($id) {\n $row = $this->getModel('media')->find($id);\n\n if ($row && $row->url) {\n // Delete media\n unlink(Pi::path($row->url));\n\n // Update db\n $row->url = '';\n $row->type = '';\n $row->size = 0;\n $row->meta = '';\n $affectedRows = $row->save();\n }\n } elseif ($fakeId) {\n $session = Media::getUploadSession($module, 'media');\n\n if (isset($session->$fakeId)) {\n $uploadInfo = isset($session->$id) ? $session->$id : $session->$fakeId;\n\n unlink(Pi::path($uploadInfo['tmp_name']));\n\n unset($session->$id);\n unset($session->$fakeId);\n }\n $affectedRows = 1;\n }\n\n echo json_encode([\n 'status' => $affectedRows ? self::AJAX_RESULT_TRUE : self::AJAX_RESULT_FALSE,\n 'message' => 'ok',\n ]);\n exit;\n }", "title": "" }, { "docid": "e47bb1b7bccbeb8651920ef7986252ae", "score": "0.5819071", "text": "protected function destroy(User $resource)\n {\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": "7e3f12eaa72d671def04991239bd33f4", "score": "0.58077335", "text": "public function destroy(Resource $resource)\n\t{\n\t\t$resource->delete();\n\n return ['success' => true, 'message' => 'Resource deleted'];\n\t}", "title": "" }, { "docid": "3e2addfb4f78b979aaadcf2a7b28b1c4", "score": "0.5783091", "text": "public function destroy(Request $request, $id)\n {\n\n $file= Documents::whereId($id)->firstOrFail();\n\n //unlink(public_path('storage',$file->id));\n\n $file->delete();\n return back();\n\n\n }", "title": "" }, { "docid": "5bc196208c1decbb644cd5cece6edd3f", "score": "0.5773983", "text": "public function unlink($uri) {\n $this->uri = $uri; // set instance URI\n return unlink($this->get_local_path());\n }", "title": "" }, { "docid": "f97458f1a249bea8589e37ce4a19458a", "score": "0.5770823", "text": "public function destroy($id)\n {\n// $info = $request->img;\n// dd($info);\n// dd($id);\n $info = Zhou::where('id',$id)->select('file')->first()->toArray();\n// dd('/storage/'.$info['file']);\n unlink('./storage/'.$info['file']);\n $data = Zhou::where('id',$id)->delete();\n\n\n// dd();\n if($data){\n return json_encode(['code'=>200]);\n }\n }", "title": "" }, { "docid": "27c91ef0cac551b90c12d8956a711079", "score": "0.5768296", "text": "public function deleteFromStore()\n\t{\n\t\t$this->isInStore(true);\n\n\t\t$store = GAMA_Store::singleton();\n\n\t\t// ===============\n\t\tapp_lock(LOCK_EX);\n\t\t// ===============\n\t\ttry\n\t\t{\n\t\t\t// make sure there are no instances of this class\n\t\t\t$count = $store->sqlFetchValue(\n\t\t\t\t'select count(*) from RESOURCE where type=?', $this->id);\n\t\t\t\n\t\t\tif($count > 0)\n\t\t\t{\n\t\t\t\tthrow new Exception('Delete related instances first');\n\t\t\t}\n\n\t\t\t// make sure there are no properties using this class\n\t\t\t$count = $store->sqlFetchValue('\n\t\t\t\tselect count(*) from PROPERTY\n\t\t\t\twhere dom=? or rng=?\n\t\t\t\t', $this->id, $this->id );\n\t\t\t\n\t\t\tif($count > 0)\n\t\t\t{\n\t\t\t\tthrow new Exception('Delete related properties first');\n\t\t\t}\n\t\t\t\n\t\t\t// now we can delete the class\n\t\t\t$store->sql('delete from RESOURCE where id=?', $this->id);\n\n\t\t\t// we should also update our cache\n\t\t\t$this->reloadFromStore();\n\t\t\t\n\t\t} catch(Exception $e)\n\t\t{\n\t\t\tapp_unlock();\n\t\t\tthrow $e;\n\t\t}\n\t\t\t\n\t\t// ==========\n\t\tapp_unlock();\n\t\t// ==========\n\t\t\n\t\tdebug(\"Resource deleted: $this->uri\");\n\t}", "title": "" }, { "docid": "80ccefee911dbbebc88e3854b170acf7", "score": "0.5765826", "text": "public function removeRecord();", "title": "" }, { "docid": "bbd4fbeb169cce49dbdee4fcf4da3308", "score": "0.576368", "text": "public function destroy(Storage $storage)\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": "ddf3faf7670af66339c535dd8de7c088", "score": "0.57453483", "text": "public function destroy(Request $request)\n {\n Storage::delete($request->path);\n return redirect()->route('storage.index');\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": "38e5a4eab7d9a854a4348b6f78b1554b", "score": "0.571345", "text": "public function destroy($resource, $id)\n {\n $this->repository->delete($id);\n return response(null, 204);\n }", "title": "" }, { "docid": "20950b5737f7cbea0d1cc5dc11a68eb1", "score": "0.57047796", "text": "public function delete() {\n $filePath = $this->getPath();\n if (is_file($filePath) && is_writable($filePath)) {\n unlink($filePath);\n }\n parent::delete();\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": "405f641d9f45ae5d1d63de363880f02b", "score": "0.5691377", "text": "public function destroy($id)\n\n {\n\n $product = Product::findOrFail($id);\n\n\n\n// unlink(public_path(). $icon->file);\n\n\n\n// $photo->delete();\n//\n// $icon->delete();\n Photo::where('product_id',$id)->delete();\n $product->delete();\n\n\n\n\n\n return redirect()->route('admin.products.index');\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": "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": "f3ecd01b9c9cfcc917a40e1827e8d6a1", "score": "0.56522495", "text": "public function del() {\n sem_acquire($this->__mutex); //block until released\n @shm_remove_var($this->__shm, $this->__key);\n sem_release($this->__mutex); //release mutex\n }", "title": "" }, { "docid": "85a8d03b0c01970f57fe2403d38a7103", "score": "0.56494105", "text": "public function delete(): void\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\t}", "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": "0cb73bdc807934bf8edf7e5eccafdd2b", "score": "0.56407464", "text": "public function delete() {\n $this->storageController->connect();\n $query = sprintf('DELETE FROM items WHERE name=\"%s\"', $this->name);\n $this->storageController->query($query);\n $this->storageController->close();\n\n $this->is_new = TRUE;\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": "83377e4a1bcc3dc2e77329262b4d9a6d", "score": "0.5628369", "text": "public function delete()\n {\n fclose($this->inputStream);\n }", "title": "" }, { "docid": "9db585fcb135fe60165f9be69e476584", "score": "0.5622851", "text": "private function _remove($id)\n\t{\n\t\t$store = $this->model_store->find($id);\n\n\t\tif (!empty($store->IMAGE)) {\n\t\t\t$path = FCPATH . '/uploads/store/' . $store->IMAGE;\n\n\t\t\tif (is_file($path)) {\n\t\t\t\t$delete_file = unlink($path);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn $this->model_store->remove($id);\n\t}", "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": "eb981a32d53ea8153aa2cec46a4f509f", "score": "0.5581215", "text": "public function destroy($id)\n {\n// if(Auth::user()->role == User::ROLE_SUPERADMIN) {\n $product = ProductItem::findOrFail($id);\n if($product->image_name != '') {\n $image_path = app_path(\"../../files/product/\" . $product->image_name);\n unlink($image_path);\n }\n\n ProductItem::destroy($id);\n\n Alert::success('Your data already deleted !', 'Success !');\n\n return redirect('admin/product');\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": "9063023fcee6a479bc40053db38d89e0", "score": "0.557017", "text": "public function destroy($id)\n {\n //\n\n\n $post = Post::withTrashed()->where('id',$id)->firstOrFail();\n\n if ($post->trashed()){\n /////$path = 'test.txt';\n /////Storage::disk('s3')->put($path, 'hello');\n ///// Storage::disk('s3')->delete($path);\n //return $post->image;\n\n if(Storage::disk('s3')->exists($post->filename)) {\n Storage::disk('s3')->delete($post->filename);\n } else {\n $post->deleteImage();\n $post->forceDelete();\n\n }\n\n\n return redirect(route('trashed-posts.index'))->with('status', 'Post deleted successfully');\n }\n else {\n $post->delete();\n return redirect(route('posts.index'))->with('status', 'Post deleted successfully');\n }\n\n // return redirect(route('posts.index'))->with('status', 'Post deleted successfully');\n\n }", "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": "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": "b45d20ef7b675860a322ba4b6d1dbd5a", "score": "0.55559915", "text": "public function destroy($id)\n {\n $file_data = Media::find($id)->first();\n if(file_exists($file_data->path)){\n @unlink(public_path(), $file_data->path);\n }\n Media::where('id', $id)->delete();\n return redirect()->back()->with('message', 'Media deleted successfully!');\n }", "title": "" }, { "docid": "e98c4608a62ab3f2b92573a4bed86a6f", "score": "0.5551504", "text": "abstract public function Resource_Link_delete($resource_link);", "title": "" }, { "docid": "35753424e21be7d9c22ced54d549e939", "score": "0.5540951", "text": "public function remove()\n\t{\n\t\tif(self::exists($this->name))\n\t\t{\n\t\t\t$this->value = false;\n\t\t\t$this->encodedValue = null;\n\t\t\t$this->sendHeader();\n\n\t\t\t$cookiePath = $this->getMetaFilePath();\n\n\t\t\tif(File::exists($cookiePath))\n\t\t\t\tFile::remove($cookiePath);\n\t\t}\n\t}", "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": "39fd8b9a4b5864c48e07d66807e5775f", "score": "0.5539789", "text": "public function destroy($id)\n {\n $image = Slider::findOrFail($id);\n //dd($image);\n// $image_path = app_path(\"images/{$image}\");\n// //dd($image_path);\n// if (File::exists($image_path)) {\n// File::delete($image_path);\n// //File::delete(\"images/{$image}\");\n// unlink($image_path);\n// }\n// File::delete(public_path(\"images/{$image->path}\"));\n $image->delete();\n return redirect('admin-group-1/slider');\n }", "title": "" }, { "docid": "0005f2e6964d036d888b5343fa80a1b1", "score": "0.55371785", "text": "public function deleted(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "d434e2cdc40338f523a40bcd0c8522a0", "score": "0.55343556", "text": "public function delete() {\n $this->client->deleteData($this->uri);\n }", "title": "" }, { "docid": "bd7d7fbce770fd39cf8081927084d5c3", "score": "0.55334973", "text": "public function destroy($id)\n {\n $brand = Brand::findOrFail($id);\n\n if (Storage::disk('public')->exists('Brand/'.$brand->brand_image)) {\n Storage::disk('public')->delete('Brand/'.$brand->brand_image);\n }\n $brand->delete();\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": "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": "" } ]
478047ad78965e0c1558db6f6897076f
Determine whether or not FirePHP is enabled
[ { "docid": "8ab201c58133334e0dae429bc61f4ca2", "score": "0.56473035", "text": "public function getEnabled()\n {\n return $this->firephp->getEnabled();\n }", "title": "" } ]
[ { "docid": "9c5a28e754ac3777c649e5b3819ff812", "score": "0.62895286", "text": "public function getFirePhp() {\n return $this->firePhp;\n }", "title": "" }, { "docid": "74b5f07bb9dc11b2581b638e530754f3", "score": "0.6280184", "text": "public static function isSafeModeHackEnabled()\n {\n return (bool) $GLOBALS['TL_CONFIG']['useFTP'];\n }", "title": "" }, { "docid": "865db0a951e7a11e57c15ca0302f6d46", "score": "0.6239016", "text": "public static function checkWurflApi()\n\t{\n\t\t$config = Zend_Registry::get('configuration');\n\t\t$enabled = FALSE;\n\t\tif(isset($config->resources->useragent->wurflapi->lib_dir) && isset($config->resources->useragent->wurflapi->config_file))\n\t\t{\n\t\t\tif(class_exists('Dot_UserAgent_Wurfl') && file_exists(CONFIGURATION_PATH.'/useragent/wurfl.xml'))\n\t\t\t{\n\t\t\t\tif(file_exists($config->resources->useragent->wurflapi->lib_dir . 'Application.php'))\n\t\t\t\t{\n\t\t\t\t\t$enabled = TRUE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $enabled;\n\t}", "title": "" }, { "docid": "372fbe26c840d13ce5eb410c2a7f480f", "score": "0.6161563", "text": "public static function xdebug_enabled()\n {\n return extension_loaded('xdebug');\n }", "title": "" }, { "docid": "af151489dcd43986c3747ad1448bbcb0", "score": "0.59678507", "text": "public static function isEnabled()\n {\n return (bool)error_reporting() && self::$enabled;\n }", "title": "" }, { "docid": "32dbc64697b8ecf181be3ca0cc91b60a", "score": "0.5943639", "text": "function feather_enabled($name) {\n $config = Config::current();\n return in_array($name, $config->enabled_feathers);\n }", "title": "" }, { "docid": "dcdd7db67d1595abe0e9fd9e251fa41f", "score": "0.59257954", "text": "public static function debug_enabled() {\n $config = self::get_current_configuration();\n return isset($config['debug']) ? $config['debug'] : FALSE;\n }", "title": "" }, { "docid": "69f14bd3fba3ac093ffb27c252a33ebf", "score": "0.589247", "text": "public function isDevelopmentMode(): bool\n\t{\n\t\t$exceptionHandling = Main\\Config\\Configuration::getValue('exception_handling') ?? [];\n\t\treturn $exceptionHandling['debug'] ?? false;\n\t}", "title": "" }, { "docid": "5a60e759c2c50860f2c90e4ccb7bcac5", "score": "0.58877325", "text": "public function is_force_debug() {\n\t\treturn (defined('UPDRAFTPLUS_UDRPC_FORCE_DEBUG') && UPDRAFTPLUS_UDRPC_FORCE_DEBUG) ? true : false;\n\t}", "title": "" }, { "docid": "73ba2c166566c9c031f721e9d23491bf", "score": "0.5882978", "text": "function is_debugging(): bool\n {\n return Co::has('debugging') && Co::get('debugging') === true;\n }", "title": "" }, { "docid": "bf92364111ac17d24e063c218f559eb4", "score": "0.5877051", "text": "public static function ifDebug() {\n\t//--\n\tif(self::$isDebugOn !== null) {\n\t\treturn (bool) self::$isDebugOn;\n\t} //end if\n\t//--\n\tself::$isDebugOn = false;\n\tif(defined('SMART_FRAMEWORK_DEBUG_MODE')) {\n\t\tif((string)SMART_FRAMEWORK_DEBUG_MODE == 'yes') {\n\t\t\tself::$isDebugOn = true;\n\t\t} //end if\n\t} //end if\n\t//--\n\treturn (bool) self::$isDebugOn;\n\t//--\n}", "title": "" }, { "docid": "8e89647e4f23edbbb68a1998d2f216a1", "score": "0.5854329", "text": "function is_debug_enabled()\r\n\t{\r\n\t\treturn (!defined('DEBUG_ENABLED') || (defined('DEBUG_ENABLED') && constant('DEBUG_ENABLED')));\r\n\t}", "title": "" }, { "docid": "6c2e20d987d74e0b686aa96991b9be6a", "score": "0.5843641", "text": "function is_zapier_trigger_enabled() {\n\n\t\t$wcf_ca_zapier_tracking_status = get_option( 'wcf_ca_zapier_tracking_status' );\n\n\t\t// Check if zapier tracking is disabled or zapier webhook is empty.\n\t\tif ( isset( $wcf_ca_zapier_tracking_status ) && 'on' === $wcf_ca_zapier_tracking_status ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9b4b6c396229c1c563d4d5db33a9862d", "score": "0.58379525", "text": "function CheckFopenWrapper()\n\t{\n\t\t$key = 'FopenWrapper';\n\t\t$val = (bool)ini_get( 'allow_url_fopen' );\n\t\t$desc = 'php.ini - allow_url_fopen - clickatell, innosend, mobilant, nonoh, sms4credits, sms77, smsbox';\n\n\t\treturn array( $key, $val, $desc );\n\t}", "title": "" }, { "docid": "c1d269ce9bd2bdc5481a84cab826f37f", "score": "0.5837869", "text": "function app_debug_enabled()\n {\n return config('app.debug', false);\n }", "title": "" }, { "docid": "9ad265afa1edcc9d20b2194d9624d8e5", "score": "0.5834803", "text": "protected function debugEnabled() {\n return $this->configuration['debug_log'] == 1 ? TRUE : FALSE;\n }", "title": "" }, { "docid": "f247feeccde1679301112805fff54d27", "score": "0.5829929", "text": "public static function isPhpFpm()\n {\n $isVulnerableVersion = version_compare(PHP_VERSION, '5.6', 'ge')\n && version_compare(PHP_VERSION, '5.6.6', 'lt');\n\n if (0 === strpos(php_sapi_name(), 'fpm') && $isVulnerableVersion) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "96ceb9cfe2dd2195ed1180dcd902f28d", "score": "0.5806939", "text": "public function check(): bool\n {\n return extension_loaded('xdebug') === false;\n }", "title": "" }, { "docid": "80ed0142c5692681768783b96014f82a", "score": "0.57915413", "text": "public function getDebugMode(): bool;", "title": "" }, { "docid": "9af8412fb18b02dd7f22ee2284bfc4bd", "score": "0.5777481", "text": "public static function detectClientExtension()\n {\n $matches = null;\n return isset($_SERVER['HTTP_USER_AGENT']) && preg_match('/\\sFirePHP\\/([\\.|\\d]*)\\s?/si', $_SERVER['HTTP_USER_AGENT'], $matches) && version_compare($matches[1], '0.0.6', '>=');\n }", "title": "" }, { "docid": "3251f43619773e1f6eff1270e94b01ce", "score": "0.5773369", "text": "public function isEnabled() {\n\t\tif (!defined('PUSH_BACKEND')) return false;\n\t\t\n\t\t$backend = PUSH_BACKEND;\n\t\treturn (boolean) $backend::getInstance()->isEnabled();\n\t}", "title": "" }, { "docid": "4ad134ef3e18af2024b833d80201f01f", "score": "0.5761524", "text": "function debugMode() { return true; }", "title": "" }, { "docid": "9e4e64c58a70674af5f21efca85f8ff5", "score": "0.575946", "text": "public function enabled(): bool\n {\n return in_array('sqlite', PDO::getAvailableDrivers(), true);\n }", "title": "" }, { "docid": "4bd51904c63b23bf1b87533cc4ee5de9", "score": "0.574532", "text": "public function isDebugLoggingEnabled(): bool;", "title": "" }, { "docid": "cbe328481b3d39b7809ef7435e81fe74", "score": "0.57270753", "text": "private function checkPhp()\n\t{\n\t\tif (version_compare(phpversion(), '4.3.0', '<') || php_sapi_name() == 'cgi') {\n\t\t\t$this->setupPhp();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "93214757b0298f1c8d5d7db997b2fb4b", "score": "0.5712106", "text": "public function is_globally_enabled();", "title": "" }, { "docid": "76d0e31c383932e554df012d57a99074", "score": "0.57061374", "text": "private static function isDevMode()\n {\n if (defined('DEVELOPMENT_MODE') && DEVELOPMENT_MODE == TRUE) {\n if (self::isOff()) {\n return FALSE;\n }\n\n return TRUE;\n }\n\n return FALSE;\n }", "title": "" }, { "docid": "c84d40f2735a00dd18f0cfdf327580d0", "score": "0.56784517", "text": "public function isDebugEnabled(): bool\n {\n return (bool)$this->get('config')\n ->get('system.debug');\n }", "title": "" }, { "docid": "ee1ef8fe4b8fe247bc508beccadc0c62", "score": "0.56737274", "text": "public static function debugModeIsEnabled() {\n\t\tif (defined('ENABLE_DEBUG_MODE') && ENABLE_DEBUG_MODE) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2d95f3ff68b22d182069215e67a665f9", "score": "0.56435674", "text": "function epIsWebRun() {\n return !EP_CLI_RUN;\n}", "title": "" }, { "docid": "160239c603c70c652e171c1be2d80977", "score": "0.5641413", "text": "public function IsDebugEnabled();", "title": "" }, { "docid": "24f81dd8f9de448fe943f7cb0f03ec41", "score": "0.5631761", "text": "protected static function initConsole()\n {\n if (!self::detectClientExtension()) return false;\n \n $filename = '';\n $linenum = 0;\n if (HTTP::isSent($filename, $linenum)) {\n trigger_error(\"Headers already sent in {$filename} on line {$linenum}. Cannot send log data to FirePHP. You must have Output Buffering enabled via ob_start() or output_buffering ini directive.\", E_USER_NOTICE);\n return false;\n }\n \n HTTP::setHeader('X-FirePHP-Data-100000000001', '{');\n HTTP::setHeader('X-FirePHP-Data-300000000001', '\"FirePHP.Firebug.Console\":[');\n HTTP::setHeader('X-FirePHP-Data-499999999999', '[\"__SKIP__\"]],');\n HTTP::setHeader('X-FirePHP-Data-999999999999', '\"__SKIP__\":\"__SKIP__\"}');\n\n return true;\n }", "title": "" }, { "docid": "9042f63abd03f4ec7d8f9a2f7b44daa8", "score": "0.56167585", "text": "public static function enabled()\n {\n return true;\n }", "title": "" }, { "docid": "bca90dbde8315f33cb61b943c83d777c", "score": "0.56137025", "text": "public static function isDebugMode()\n {\n return boolval(Dotenv::getenv('DEBUG', false));\n }", "title": "" }, { "docid": "fb32ab063f0c4cae2ecd5e61569527f8", "score": "0.5608798", "text": "public static function isEnabled()\n {\n return CONFIG['log_on'];\n }", "title": "" }, { "docid": "3dda4247bdbd4a1c1087392321430d25", "score": "0.56071645", "text": "private function log_enabled() {\n\t\treturn $this->log == \"yes\";\n\t}", "title": "" }, { "docid": "9e75a2a1b5ff52e856b889fb57537095", "score": "0.55992764", "text": "function is_dev()\n{\n if (WingedConfig::$config->DEV != null && is_bool(WingedConfig::$config->DEV)) {\n return WingedConfig::$config->DEV;\n }\n}", "title": "" }, { "docid": "9a8e60d5aa3b6b47ae650619ed993dc7", "score": "0.55945635", "text": "public static function is_fp(){\n return empty($GLOBALS['myPear_current_module']) || (@$GLOBALS['myPear_current_module'] === myPear_MODULE);\n }", "title": "" }, { "docid": "c07d3e040648f052c97c96712fdd9ae7", "score": "0.5591551", "text": "public function enabled(): bool;", "title": "" }, { "docid": "cd9b56aebf6457d51bcce4c654f22edc", "score": "0.5589871", "text": "public function isTesting()\n\t{\n\t\tif(defined('WELOQUENT_TEST_ENV'))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "1a55ea931064f40168315ff3bcfb6287", "score": "0.5587194", "text": "protected function enableDebug()\n {\n return false;\n }", "title": "" }, { "docid": "ef313065bdaf56c413bebc1bd7c71705", "score": "0.5586055", "text": "public static function is_debug_enabled() {\n\t\treturn isset( self::$OPTIONS['debug_enabled'] );\n\t}", "title": "" }, { "docid": "b3ab726413398b9cea892081872457f8", "score": "0.55776566", "text": "final private function PHPFusion()\n {\n global $docroot;\n\n $root = $docroot && empty($docroot) === false ? $docroot : $_SERVER['DOCUMENT_ROOT'];\n if (file_exists(\"$root/administration/administrators.php\")) {\n $file = file_get_contents(\"$root/administration/administrators.php\");\n if (stripos($file, 'PHP-Fusion') !== false) {\n $this->name = 'PHP-Fusion';\n\n if (file_exists(\"$root/administration/upgrade.php\") && Server::PerlRegex()) {\n $version = file_get_contents(\"$root/administration/upgrade.php\");\n if (preg_match(\"/.*settings\\_value\\=\\'(.*)\\'\\s.*/\", $version, $regx)) {\n $this->version = $regx[1];\n }\n }\n \n if (file_exists(\"$root/config.php\")) {\n @include(\"$root/config.php\");\n $this->db['driver'] = 'mysql';\n if (isset($db_host)) {\n $this->db['host'] = $db_host;\n }\n if (isset($db_user)) {\n $this->db['user'] = $db_user;\n }\n if (isset($db_pass)) {\n $this->db['password'] = $db_pass;\n }\n if (isset($db_name)) {\n $this->db['dbname'] = $db_name;\n }\n }\n }\n\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "d8832fd02b2258b70acebcd89e3af25e", "score": "0.5571731", "text": "public function enabled(): bool\n {\n return true;\n }", "title": "" }, { "docid": "394929a0afa292a50e989c0069bd1c88", "score": "0.5565448", "text": "public static function isAllowUrlFopenEnabled()\n {\n return (bool) ini_get('allow_url_fopen');\n }", "title": "" }, { "docid": "6eea8a496050078b788642b0681d6ddd", "score": "0.5564018", "text": "function gd_enabled() {\n\t\tif ( extension_loaded( 'gd' ) && function_exists( 'gd_info' ) ) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "1fb4f366e2b55e6463c39801c6b5cdb0", "score": "0.55632085", "text": "public function isDebug()\n {\n return Mage::getStoreConfigFlag(self::XML_PATH_LATERSCRIPTS_DEBUG);\n }", "title": "" }, { "docid": "04505a9ec002bd09f40e3ec15b89f905", "score": "0.55619115", "text": "public static function resolveIsDebug(): bool\n {\n if (!array_key_exists('APP_DEBUG', $_SERVER)) {\n return true;\n }\n\n return boolval($_SERVER['APP_DEBUG']);\n }", "title": "" }, { "docid": "45a680fd109a457e7a201f9dc594d350", "score": "0.5552369", "text": "public function curl_enabled()\n {\n return function_exists('curl_init');\n }", "title": "" }, { "docid": "1c415c0ea0beff67788b6c402395c398", "score": "0.5541663", "text": "function has_configuration() {\r\n return true;\r\n }", "title": "" }, { "docid": "a80d3ab6f5341b305bf19cf1edd7d0a3", "score": "0.5527525", "text": "public function isDebugEnabled()\n {\n return $this->_scopeConfig->isSetFlag(self::XML_PEAKHOUR_DEBUG);\n }", "title": "" }, { "docid": "e37b844c23600d08f223ca8c1fe9c525", "score": "0.5522633", "text": "public static function isAttendizeDev()\n {\n return isset($_ENV['ATTENDIZE_DEV']) && $_ENV['ATTENDIZE_DEV'] == 'true';\n }", "title": "" }, { "docid": "0944d555ab3639d0ac51f15f03e29a92", "score": "0.5505054", "text": "public static function check()/*: bool*/\n {\n if (! config('app.debug')) {\n // Never run solutions in when debug mode is not enabled.\n\n return false;\n }\n\n if (config('ignition.enable_runnable_solutions') !== null) {\n // Allow enabling or disabling runnable solutions regardless of environment\n // if the IGNITION_ENABLE_RUNNABLE_SOLUTIONS env var is explicitly set.\n\n return config('ignition.enable_runnable_solutions');\n }\n\n if (! app()->environment('local') && ! app()->environment('development')) {\n // Never run solutions on non-local environments. This avoids exposing\n // applications that are somehow APP_ENV=production with APP_DEBUG=true.\n\n return false;\n }\n\n return config('app.debug');\n }", "title": "" }, { "docid": "55d4c00c8209b830dfa75f7950483a30", "score": "0.55017424", "text": "public static function isEnabled( ) {\n\n\t\treturn extension_loaded( 'runkit' );\n\t}", "title": "" }, { "docid": "3848b1c36ee2aa310e7c7564d0cc84b7", "score": "0.5496968", "text": "public static function is_development_mode()\n {\n }", "title": "" }, { "docid": "29ac15b2fb74a6d0b13463e2cb552391", "score": "0.5493472", "text": "function is_gdpr_enabled() {\n\n\t\t$wcf_ca_gdpr_status = get_option( 'wcf_ca_gdpr_status' );\n\n\t\t// Check if abandonment cart tracking is disabled or zapier webhook is empty.\n\t\tif ( isset( $wcf_ca_gdpr_status ) && 'on' === $wcf_ca_gdpr_status ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "0c4840827e4642658579501165b8627f", "score": "0.54926157", "text": "public static function flagPhpSuiteErrors() {\n if (getenv('PANOPOLY_BEHAT_FLAG_PHP_NOTICES') != self::PANOPOLY_BEHAT_FLAG_PHP_NOTICES_OFF) {\n $number_of_rows = db_select('watchdog', 'w')\n ->fields('w', [])\n ->condition('w.type', 'behat', '=')\n ->countQuery()\n ->execute()\n ->fetchField();\n\n if ($number_of_rows > 0) {\n print \"PHP errors were logged. See scenario output for details.\\n\";\n }\n }\n }", "title": "" }, { "docid": "5ad9a2f7eb99dedc41c9f57188063735", "score": "0.5492236", "text": "public static function isAvailable()\n {\n return (bool) ini_get(\"allow_url_fopen\");\n }", "title": "" }, { "docid": "d68dacc8c1194f522097c11a0b00156a", "score": "0.54842764", "text": "public function isForceHubEnabled() : bool {\n return $this->cfg[\"force-hub\"];\n }", "title": "" }, { "docid": "2a999603b1e1807da7dcac10d6bd11c5", "score": "0.5478733", "text": "public function is_dev(){\n\n\t\t\tif( defined( 'WPTT_DEV' ) && WPTT_DEV ){\n\t\t\t\tif( WPTT_DEV === site_url() ) return true;\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "81205cbcf83db12355ea6e962263e3b1", "score": "0.5477927", "text": "function has_configuration() {\n return true;\n }", "title": "" }, { "docid": "29d267d5798335e5df01ddd5b83688a8", "score": "0.5473465", "text": "public function is_enabled()\n {\n return (bool)ini_get('apc.enabled');\n }", "title": "" }, { "docid": "1d762e19196953eb071bf511aafd13d6", "score": "0.5472786", "text": "public static function needBypass() \n\t{\n\t\treturn ( defined( 'gdprc_BYPASS_AJAX_CHECK' ) && true === gdprc_BYPASS_AJAX_CHECK );\t\n\t}", "title": "" }, { "docid": "c006632c5c767ca8cd26a44411b3dc36", "score": "0.5469787", "text": "function enabled() {\r\n\t\treturn Configure::read('MinifyAsset') && Configure::read('debug') == 0;\r\n\t}", "title": "" }, { "docid": "a72063898ab2b6d7cefcefd683fa40c0", "score": "0.54681575", "text": "public function is_extension_enabled () {\n return (bool) $this->get_store_config_value('extension_status');\n }", "title": "" }, { "docid": "4bda0f36c3733dd0bed371d4d831be3d", "score": "0.54619384", "text": "function is_logging(): bool\n {\n return Log::isLogging();\n }", "title": "" }, { "docid": "66a96a49461b4101f8f6912bf20f6fd3", "score": "0.54578733", "text": "public function enableDebugMode() {\n $this->debugMode = true;\n return $this->debugMode;\n }", "title": "" }, { "docid": "f7d4504ad846fcfd960926e3e33a2036", "score": "0.5457493", "text": "protected function check(): bool\n {\n if (!$this->config['enabled'] || empty($this->config['logPath'])) {\n return false;\n }\n\n $this->fileExtension = '.' . $this->config['type'];\n\n if (\\in_array($this->config['type'], ['html', 'json', 'eml'])) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "edee84451310e7e3d3fe85f9f1a5a985", "score": "0.54466534", "text": "function envira_is_standalone_enabled() {\n\n\t$standalone = envira_get_setting( 'standalone_enabled' );\n\n\tif ( ! $standalone ) {\n\n\t\treturn false;\n\n\t}\n\n\treturn true;\n\n}", "title": "" }, { "docid": "a4c1758907ad898ba4377aa930a683b8", "score": "0.54460883", "text": "function features_enabled($control) {\n if( $control->manager->get_setting('home_features')->value() == 'on') {\n return true;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "10e6eadfbf51c13c953df516c7c7f2a3", "score": "0.54442865", "text": "function has_config() { return true; }", "title": "" }, { "docid": "b31f3351ed9eee0425bde7645788f60b", "score": "0.5436385", "text": "public function isSupportDetecting()\n\t{\n\t\tswitch ($this->getValue())\n\t\t{\n\t\t\tcase 'livechat':\n\t\t\t\treturn false;\n\n\t\t\tdefault:\n\t\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "8587603f61eadf3c47514b3d56f555b3", "score": "0.54360145", "text": "public function isDebugEnabled()\n {\n $config = $this->getEngineConfigData();\n\n return array_key_exists('enable_debug_mode', $config) && $config['enable_debug_mode'];\n }", "title": "" }, { "docid": "4446e9e36eec1182db97d7e0bb2a42b7", "score": "0.5432963", "text": "protected function is_development_mode()\n {\n }", "title": "" }, { "docid": "d725f70bd679a0f33dff4cc57b378d5f", "score": "0.54327816", "text": "private function testingDefault(): bool\n {\n return Config::get('features.test_behaviour', Feature::ON);\n }", "title": "" }, { "docid": "ad99bc05fa4f06f113d5ee8d92c11e26", "score": "0.5432691", "text": "function is_used() {\n //Check if the authentication mode is facebook\n if (!$local_handle = fopen(DOKU . '/conf/local.php', 'r')) {\n return true;\n } \n while (!feof($local_handle)) {\n $line = fgets($local_handle, 1000);\n if(preg_match('!\\$conf\\[\\'authtype\\'\\] *= *.*!', $line)) {\n\t$value = $line;\n }\n if(preg_match('!\\$conf\\[\\'authtype\\'\\] *= *[\\'\"]facebook[\\'\"]!', $value)) return true;\n }\n fclose($local_handle);\n return false;\n }", "title": "" }, { "docid": "0a7e5bbeb2024aeb25a21928f6b2609c", "score": "0.5427216", "text": "function has_config() {//Cr: settings.php is ready to use \n return true;\n}", "title": "" }, { "docid": "74455dcf4e720c81c99578b7f6ea96ea", "score": "0.5424644", "text": "public function isDebugMode()\n {\n return config('app.debug');\n //return (boolean)env('APP_DEBUG');\n }", "title": "" }, { "docid": "70d5776a8c57fc0bb83866de4d2ad22a", "score": "0.5422041", "text": "public function isTrackingEnabled()\n {\n return Mage::getStoreConfigFlag(self::XML_PATH_TRACKING_ENABLED);\n }", "title": "" }, { "docid": "512495e8cad1d7837929d949c675c8ac", "score": "0.54201037", "text": "public function is_logging_enabled() {\n return 'yes' === $this->gateway->get_option( 'wc_straal_checkout_debug', 'no' );\n }", "title": "" }, { "docid": "f88fb50f028e9cb64adb722ac493e525", "score": "0.54157764", "text": "protected static function _is_enabled()\n {\n // Auto render if secret key isset\n if ((Debugger::$_config->secret_key !== false) and (Request::initial()->query(Debugger::$_config->secret_key) !== null)) {\n return true;\n }\n\n if (Debugger::$enabled !== true) {\n return false;\n }\n\n // Don't auto render when in PRODUCTION (this can obviously be\n // overridden by the above secret key)\n if (Kohana::$environment === Kohana::PRODUCTION) {\n return false;\n }\n\n // Don't auto render toolbar for ajax requests\n if (Request::initial()->is_ajax()) {\n return false;\n }\n\n // Don't auto render toolbar for cli requests\n if (Kohana::$is_cli) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "6d2ac8946b3f828744a584fc5d993951", "score": "0.54080033", "text": "public function is_debug_mode() {\n\t\treturn $this->debug == \"yes\";\n\t}", "title": "" }, { "docid": "dbfc41c15f00fb21a9ad91e025822dfa", "score": "0.54060876", "text": "public function isSupported(): bool;", "title": "" }, { "docid": "e4a2557e031976e69ad877a0586a41b7", "score": "0.5401573", "text": "public function isEnabled()\n {\n return false;\n /* this test is deprecated */\n }", "title": "" }, { "docid": "1392a20d72fdb4fd0765d975bfa60614", "score": "0.5397825", "text": "private function is_supported(): bool {\n\t\treturn false !== \\getenv( ASMP::VERSION );\n\t}", "title": "" }, { "docid": "8dbcace086dd94aae902bb6b8f8729af", "score": "0.53964216", "text": "public static function debug(): bool {\n\t\t\tif ( defined( 'GRAPHQL_DEBUG' ) ) {\n\t\t\t\t$enabled = (bool) GRAPHQL_DEBUG;\n\t\t\t} else {\n\t\t\t\t$enabled = get_graphql_setting( 'debug_mode_enabled', 'off' );\n\t\t\t\t$enabled = 'on' === $enabled;\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * @param bool $enabled Whether GraphQL Debug is enabled or not\n\t\t\t */\n\t\t\treturn (bool) apply_filters( 'graphql_debug_enabled', $enabled );\n\t\t}", "title": "" }, { "docid": "b57cab392ddd96d8a9c0b0bd367f8dce", "score": "0.53963953", "text": "public static function isEnabled(): bool\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "249a04b49b11f26f33a4f363f6588eb8", "score": "0.53951854", "text": "static public function is_codechecking_enabled() {\n\t\treturn apply_filters( 'fl_code_checking_enabled', true );\n\t}", "title": "" }, { "docid": "ce4b31f00bd8cde876bfbc31aba91f43", "score": "0.5386398", "text": "private function isLoggingEnabled(): bool\n {\n $configValue = $this->deploymentConfig->get(ConfigOptionsList::CONFIG_PATH_DEBUG_LOGGING);\n if ($configValue === null) {\n $isEnabled = $this->state->getMode() !== State::MODE_PRODUCTION;\n } else {\n $isEnabled = (bool)$configValue;\n }\n return $isEnabled;\n }", "title": "" }, { "docid": "a98b2fab84e61a98c65107dbbfd3b1ec", "score": "0.53815395", "text": "private function tracking_enabled()\n {\n }", "title": "" }, { "docid": "a5ef83bd19c4a59b1f91d82f5a2e2fdd", "score": "0.53805876", "text": "final public function isPassive()\n {\n }", "title": "" }, { "docid": "c07901e841f9b5c9bfbf9e29cb910076", "score": "0.5377483", "text": "public static function isEnabled()\n {\n return function_exists('xdebug_print_function_stack');\n }", "title": "" }, { "docid": "fad42d626028ee2eb09c82667e2f0587", "score": "0.5375965", "text": "public function is_enabled();", "title": "" }, { "docid": "c9dfed45031e2aa3818be89a4e934579", "score": "0.5369834", "text": "public function addPhp() {\n // ToDo to implement\n echo \"Add PHP-fpm to Hosting...\\n\";\n\n return true;\n }", "title": "" }, { "docid": "605db0e55da6c6079c6d3526460c00df", "score": "0.5369242", "text": "function hmbase_is_dev() {\n\n\treturn apply_filters( 'hmbase_is_dev', defined( 'HM_DEV' ) && true === HM_DEV );\n\n}", "title": "" }, { "docid": "a5f14948428aa5b2e3316554c89d70e9", "score": "0.5368456", "text": "private function isDebugLoggingEnabled(): bool\n {\n $configValue = $this->deploymentConfig->get(ConfigOptionsList::CONFIG_PATH_DEBUG_LOGGING);\n if ($configValue === null) {\n $isEnabled = $this->deploymentConfig->get(State::PARAM_MODE) !== State::MODE_PRODUCTION;\n } else {\n $isEnabled = (bool)$configValue;\n }\n return $isEnabled;\n }", "title": "" }, { "docid": "84fedf1f05075d01231dd77fd2d1881e", "score": "0.53516924", "text": "public function get_logging(): bool\n {\n return $this->logging;\n }", "title": "" }, { "docid": "58a25e180d43e9e7da2acf2a078fc383", "score": "0.53514975", "text": "public static function GetDebugEnabled()\n\t{\n\t\t$cfg = self::GetConfiguration();\n\t\treturn ($cfg->GetEntry(\"Debug\") !== null && strtolower($cfg->GetEntry(\"Debug\")) === \"true\");\n\t}", "title": "" }, { "docid": "be508a2fd01c95af54e58f0b9adbc6c2", "score": "0.53475326", "text": "function astha_is_cf7_activated() {\n return class_exists( '\\WPCF7' );\n }", "title": "" }, { "docid": "0a608cbd7b4cf29814bf9706e9d35a29", "score": "0.5345866", "text": "private function isProxyEnabled() {\n\t\tif (DEBUG_ENABLED && (($fargs=func_get_args())||$fargs='NOARGS'))\n\t\t\tdebug_log('Entered (%%)',17,0,__FILE__,__LINE__,__METHOD__,$fargs);\n\n\t\treturn $this->getValue('login','auth_type') == 'proxy' ? true : false;\n\t}", "title": "" } ]
c0f6f159f5fa5bd9e9344b399e429295
Returns a list of directories and files. When $directory is not set (FALSE, default), the current working directory is used.
[ { "docid": "0a9c58afab03ded037c235262647260a", "score": "0.6952339", "text": "public function listFiles($directory = false)\n\t{\n\t\tif(!$this->connected)\n\t\t\tthrow new FTPException('Could not retrieve directory listing: not connected to remote FTP server');\n\t\tif(!$directory)\n\t\t\t$directory = $this->getWorkingDir();\n \n\t\treturn ftp_nlist($this->resource, $directory);\n\t}", "title": "" } ]
[ { "docid": "c86d9e18cd5ad554f758a92b141d7aac", "score": "0.7721457", "text": "public function listDirectory($directory = '')\n\t{\n\t\t$directory = preg_replace('/^[\\/]*([^\\/].*)$/', '/$1', $directory);\n\t\t$files = $dirs = array();\n\t\n\t\tif (is_dir($this->directory.$directory)) {\n\t\t\t$iterator = new \\DirectoryIterator($this->directory.$directory);\n\t\n\t\t\tforeach ($iterator as $fileinfo) {\n\t\t\t\tif ($fileinfo->isFile()) {\n\t\t\t\t\t$files[] = $fileinfo->getFilename();\n\t\t\t\t} elseif ($fileinfo->isDir() && !$fileinfo->isDot()) {\n\t\t\t\t\t$dirs[] = $fileinfo->getFilename();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\treturn array(\n\t\t\t\t'keys' => $files,\n\t\t\t\t'dirs' => $dirs\n\t\t);\n\t}", "title": "" }, { "docid": "587cba4f59360913ecca188db4c3b62c", "score": "0.7581949", "text": "public function get_directory_listing($directory)\n {\n $raw_results = scandir($directory, SCANDIR_SORT_NONE);\n\n return array_diff($raw_results, array('.', '..'));\n }", "title": "" }, { "docid": "7fb9779d2332b97a52f76a1a6f8dca03", "score": "0.7577198", "text": "public function getDirContent($directory)\r\n {\r\n return array_diff(scandir(getcwd().$directory), array('..', '.'));\r\n }", "title": "" }, { "docid": "4d84c6f3e5318c955bf6b926ce4de8a6", "score": "0.755248", "text": "public function process_directory($directory = '')\n\t{\n\t\tif (is_dir($directory)) {\n\t\tfor ($list = array(),$handle = opendir($directory); (FALSE !== ($file = readdir($handle)));) {\n\t\t\tif (($file != '.' && $file != '..') && (file_exists($path = $directory . '/' . $file))) {\n\t\t\t\tif (is_dir($path)) {\n\t\t\t\t\t$list = array_merge($list, $this->process_directory($path));\n\t\t\t\t} else {\n\t\t\t\t\tif( ! preg_match('/.*\\.php$/', $file) || preg_match('/(.svn|log)(.lol)/', $file))\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t$entry['path']\t\t\t= $directory . '/' . $file;\n\t\t\t\t\t$entry['last_modified'] = filemtime($entry['path']);\n\n\t\t\t\t\tdo if (!is_dir($path)) {\n\t\t\t\t\t\tif (strstr(pathinfo($path,PATHINFO_BASENAME),'log')) {\n\t\t\t\t\t\t\tif (!$entry['handle'] = fopen($path,'r'))\n\t\t\t\t\t\t\t\t$entry['handle'] = \"FAIL\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} while (FALSE);\n\t\t\t\t\t$list[] = $entry;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tclosedir($handle);\n\t\t$this->files = $list;\n\t\treturn $list;\n\t\t} else return FALSE;\n\t}", "title": "" }, { "docid": "317c31a63ad939aa13af5c1afc0112e0", "score": "0.74867374", "text": "function getDirectoryList ($directory) \n\t{\n\t\t$results = array();\n\n\t\t// create a handler for the directory\n\t\t$handler = opendir($directory);\n\n\t\t// open directory and walk through the filenames\n\t\twhile ($file = readdir($handler)) {\n\n\t\t // if file isn't this directory or its parent, add it to the results\n\t\t if ($file != \".\" && $file != \"..\") {\n\t\t $results[] = $file;\n\t\t }\n\n\t\t}\n\n\t\t// tidy up: close the handler\n\t\tclosedir($handler);\n\n\t\t// done!\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "c834313a168a46535eb08b2f104dc23e", "score": "0.7444385", "text": "public function get_directory_content($directory){\n if (is_dir( $directory )){\n $open_directory = opendir($directory);\n $files = array();\n while($file = readdir($open_directory)){\n if($file !== '.' && $file !== '..'){\n $files[] = $file;\n }\n }\n return $files;\n }else{\n $this->modx->log(modX::LOG_LEVEL_ERROR,'[sekUserGalleries] Directory does not exist: '.$directory);\n return false;\n }\n }", "title": "" }, { "docid": "a89a383c721389fd0c7b9fba9524afc3", "score": "0.73996955", "text": "function dirList($directory) \n{\n $results = array();\n // create a handler for the directory\n $handler = opendir($directory);\n // keep going until all files in directory have been read\n while ($file = readdir($handler)) {\n // if $file isn't this directory or its parent, \n // add it to the results array\n if ($file != '.' && $file != '..')\n $results[] = $directory.$file;\n }\n // tidy up: close the handler\n closedir($handler);\n // done!\n return $results;\n}", "title": "" }, { "docid": "52d70b9577d300ce4d5743f362ec59ab", "score": "0.73706716", "text": "function dirList($directory) {\n\n // create an array to hold directory list\n $results = array();\n\n // create a handler for the directory\n $handler = opendir($directory);\n\n // keep going until all files in directory have been read\n while ($file = readdir($handler)) {\n\n // if $file isn't this directory or its parent,\n // add it to the results array\n if ($file != '.' && $file != '..')\n $results[] = $file;\n }\n\n // tidy up: close the handler\n closedir($handler);\n\n // done!\n return $results;\n}", "title": "" }, { "docid": "7dc1fe7d061bd4b2ff70479dac71d189", "score": "0.7274784", "text": "public static function listFileRecursively($directory)\n {\n $result = [];\n foreach (scandir($directory) as $file) {\n if ($file != '.' && $file != '..') {\n $path = \"$directory/$file\";\n if (is_file($path)) {\n $result[] = $path;\n } else {\n $result = array_merge($result, self::listFileRecursively($path));\n }\n }\n }\n return $result;\n }", "title": "" }, { "docid": "6c2a09712bbc56da2c415c1dec3e6b9b", "score": "0.72741556", "text": "private function readDirectory($directory)\n {\n $scanned_directory = array_diff(scandir($directory), array('..', '.'));\n return $scanned_directory;\n }", "title": "" }, { "docid": "e7214cf8b3c2afbf6844858c8bb716cc", "score": "0.72429913", "text": "public static function listDir($directory)\n {\n $result = array();\n foreach (scandir($directory) as $file) {\n if ($file != '.' && $file != '..') {\n $path = \"$directory/$file\";\n if (is_dir($path)) {\n $result[$file] = $path;\n }\n }\n }\n return $result;\n }", "title": "" }, { "docid": "9b86cca082e6ff2f23933c041966011d", "score": "0.7200132", "text": "public function get_list_of_directories($directory)\n {\n $directories = array();\n\n if (is_bool($directory))\n {\n return $directories;\n }\n\n try\n {\n $dir = new DirectoryIterator($directory);\n foreach ($dir as $file)\n {\n if (!$file->isDot() && $file->isDir())\n {\n $directories[] = $dir->getFilename();\n }\n }\n }\n catch(UnexpectedValueException $unexpected)\n {\n $context = [ 'directory' => $directory, 'message' => $unexpected->getMessage() ];\n $this->logger->error(\"Couldn't open directory '{directory}': {message}\", $context);\n }\n catch(RuntimeException $runtime)\n {\n $context = [ 'message' => $runtime->getMessage() ];\n $this->logger->warning('{message}', $context);\n }\n\n return $directories;\n }", "title": "" }, { "docid": "36a3b51d326f1d75e0466763d6a8ddc6", "score": "0.7167708", "text": "public static function dir($directory){\n $x = is_dir($directory);\n if($x == false){\n throw new SystemException(\"Cannot find the specified file\");\n }\n $dir = array_diff(scandir($directory), array(\".\",\"..\"));\n $list[$directory] = $dir;\n return $list;\n }", "title": "" }, { "docid": "581301376e74c03a8c0c43a6a238612b", "score": "0.71254665", "text": "function get_directory_list ($directory, $file=true) {\n $d = dir ($directory);\n $list = array();\n while ($entry = $d->read() ) {\n if ($file == true) { // We want a list of files, not directories\n $parts_array = explode ('.', $entry);\n $extension = $parts_array[1];\n // Don't add files or directories that we don't want\n if ($entry != '.' && $entry != '..' && $entry != '.htaccess' && $extension != 'php') {\n if (!is_dir ($directory . \"/\" . $entry) ) {\n $list[] = $entry;\n }\n }\n } else { // We want the directories and not the files\n if (is_dir ($directory . \"/\" . $entry) && $entry != '.' && $entry != '..') {\n $list[] = array ('id' => $entry,\n 'text' => $entry\n );\n }\n }\n }\n $d->close();\n return $list;\n}", "title": "" }, { "docid": "9f4eb639b4e2d9a50acca87b71c38012", "score": "0.7124491", "text": "public static function listFile($directory)\n {\n $result = array();\n foreach (scandir($directory) as $file) {\n if ($file != '.' && $file != '..') {\n $path = \"$directory/$file\";\n if (is_file($path)) {\n $result[$file] = $path;\n }\n }\n }\n return $result;\n }", "title": "" }, { "docid": "cfe541749478f349efd4e7b465c4eecc", "score": "0.70845586", "text": "public function get_list_of_files($directory)\n {\n $files = array();\n\n if (is_bool($directory))\n {\n return $files;\n }\n\n try\n {\n $dir = new DirectoryIterator($directory);\n foreach ($dir as $file)\n {\n if (!$file->isDot() && !$file->isDir())\n {\n $files[] = $dir->getFilename();\n }\n }\n }\n catch(UnexpectedValueException $unexpected)\n {\n $context = [ 'directory' => $directory, 'message' => $unexpected->getMessage() ];\n $this->logger->error(\"Couldn't open directory '{directory}': {message}\", $context);\n }\n catch(RuntimeException $runtime)\n {\n $context = [ 'message' => $runtime->getMessage() ];\n $this->logger->warning('{message}', $context);\n }\n\n return $files;\n }", "title": "" }, { "docid": "4c0f78bcb00aa35dcb4be45822710798", "score": "0.7041847", "text": "public function allFiles($directory = null)\n {\n $filepaths = $this->disk->allFiles($directory);\n return $this->getPaths($filepaths);\n \n }", "title": "" }, { "docid": "716c8eb21b7db71bb1ce0a7477bed111", "score": "0.691118", "text": "public static function getDirectoryTree($directory, $extensions_only = NULL) {\n if (substr($directory, -1) == \"/\") $directory = substr($directory, 0, -1);\n $path = array();\n $stack = array();\n $stack[] = $directory;\n while ($stack) {\n $thisdir = array_pop($stack);\n if (false !== ($dircont = scandir($thisdir))) {\n $i = 0;\n while (isset($dircont[$i])) {\n if ($dircont[$i] !== '.' && $dircont[$i] !== '..') {\n $current_file = \"{$thisdir}/{$dircont[$i]}\";\n if (is_file($current_file)) {\n if ($extensions_only == NULL) {\n $path[] = \"{$thisdir}/{$dircont[$i]}\";\n }\n else {\n $path_info = pathinfo(\"{$thisdir}/{$dircont[$i]}\");\n if (isset($path_info['extension']) && in_array($path_info['extension'], $extensions_only)) $path[] = \"{$thisdir}/{$dircont[$i]}\";\n }\n }\n elseif (is_dir($current_file)) {\n $stack[] = $current_file;\n }\n }\n $i++;\n }\n }\n }\n return $path;\n }", "title": "" }, { "docid": "f32e3efb8db259ec4ce802ae7c6a2116", "score": "0.6826729", "text": "public function allDirectories($directory = null)\n {\n $dirs = $this->disk->allDirectories($directory);\n return $this->getDirs($dirs);\n }", "title": "" }, { "docid": "6c48167451af7332117982bd5cda3c49", "score": "0.6821454", "text": "function get_image_directory_list ($directory, $file=true) {\n $d = dir ($directory);\n $list = array();\n while ($entry = $d->read() ) {\n if ($file == true) { // We want a list of files, not directories\n $parts_array = explode ('.', $entry);\n $extension = $parts_array[1];\n // Don't add files or directories that we don't want\n if ($entry != '.' && $entry != '..' && $entry != '.htaccess' && $extension != 'php') {\n if (!is_dir ($directory . \"/\" . $entry) ) {\n $list[] = $entry;\n }\n }\n } else { // We want the directories and not the files\n if (is_dir ($directory . \"/\" . $entry) && $entry != '.' && $entry != '..') {\n $list[] = array ('id' => $entry,\n 'text' => $entry\n );\n }\n }\n }\n $d->close();\n return $list;\n}", "title": "" }, { "docid": "4f5cb43f25a05bdf3bae78a2d19043db", "score": "0.6801804", "text": "protected function getDirectoryFiles($directory)\n {\n $files = [];\n foreach (Finder::create()->files()->name('*.php')->in($directory) as $file) {\n $nesting = $this->getDirectoryNesting($file, $directory);\n $files[$nesting.basename($file->getRealPath(), '.php')] = $file->getRealPath();\n }\n return $files;\n }", "title": "" }, { "docid": "03edb6d9ab5acb4dac5e881df3c15eba", "score": "0.67630625", "text": "public function parse( $directory = NULL )\n {\n $directory = $this->_clearDirectory( $directory );\n\n if(!$directory){\n return FALSE;\n }\n\n $info = array();\n $dir = opendir( $directory );\n while ( ( $filePointer = readdir($dir)) !== FALSE )\n {\n if( $filePointer != '.' && $filePointer != '..' )\n {\n $path = $directory .'/'.$filePointer;\n if( is_readable($path) )//Be sure if file or path is readable before try parse it\n {\n $subdirs = explode('/',$path);\n if(is_dir($path))\n {\n $info[] = array(\n 'path' => $path,\n 'type' => 'directory',\n 'name' => end($subdirs),\n 'permission' => substr( decoct( fileperms($path) ), 1),\n 'content' => $this->parse( $path )\n );\n }elseif(is_file($path))\n {\n $ext = substr( strrchr( end($subdirs),'.' ),1 );\n $info[] = array(\n 'path' => $path,\n 'type' => $ext,\n 'name' => end($subdirs),\n 'permission' => substr( decoct( fileperms($path) ), 2),\n 'edited' => date (\"Y:m:d H:i:s\", filemtime($path)),\n 'size' => filesize($path),\n 'md5' => md5_file($path)\n );\n }\n }\n }\n }\n closedir($dir);\n return $info;\n }", "title": "" }, { "docid": "895296aa2b7c21e4596aeb4772011e84", "score": "0.6759444", "text": "public function listContents($directory = '', $recursive = false);", "title": "" }, { "docid": "1be0195a42283edf800d9fa2487a2c1b", "score": "0.67583233", "text": "public static function directories($directory)\n {\n }", "title": "" }, { "docid": "ef000ef6fa6be404fde139ac0669f6e5", "score": "0.67436904", "text": "public function getFileTree($directory)\n {\n $directoryIterator = new \\RecursiveDirectoryIterator($directory, \\FilesystemIterator::SKIP_DOTS);\n $iterator = new \\RecursiveIteratorIterator($directoryIterator);\n $files = [];\n foreach ($iterator as $file) {\n $files[] = trim(str_replace($directory, '', $file->getPathname()), DIRECTORY_SEPARATOR);\n }\n return $files;\n }", "title": "" }, { "docid": "da41c7fb7cff7ad8e04769f05dc0ca2c", "score": "0.6716852", "text": "public function handle($directory = '')\n {\n $contents = $this->filesystem->listContents($directory, $recursive = true);\n\n $files = array_filter($contents, function($entry) {\n return $entry[\"type\"] == \"file\";\n });\n\n return $this->tree($files);\n }", "title": "" }, { "docid": "8d0cc09a233e295ae4249964a6406bde", "score": "0.6714026", "text": "function listFiles($directory) \n{\n\tglobal $context, $txt, $smf_important, $scripturl, $boarddir, $settings, $txt, $imagetypes, $wbfolders, $audiofiles;\n\n\t$files = array(\n\t);\n\t$directories = array(\n\t);\t\n\n\t$dirhandler = dir(realpath($directory));\n\t\t\t\n\twhile ($file = $dirhandler->read()) \n\t{\n\t\n\tif ($file != '.' && $file != '..')\n\t{\n\t\t\t$fullpath = realpath($directory . '/' . $file);\n\n\t\t\t// this is a directory\n\t\t\tif(filetype($fullpath) == 'dir')\n\t\t\t{\n\t\t\t\t$directories[$file] = array(\n\t\t\t\t\t'size' => countFiles($fullpath),\n\t\t\t\t\t'icon' => icon('','dir'),\t\t\t\t\n\t\t\t\t\t'link' => $scripturl. '?action=admin;area=filemanager;do=browse;dir=' . urlEncode($fullpath),\n\t\t\t\t\t'view' => '<a href=\"' . $scripturl . '?action=admin;area=filemanager;do=browse;dir=' . urlEncode($fullpath) . '\" title=\"' . $txt['fm_view'] . '\"><img src=\"' . $settings['default_images_url'] . '/filemanager/view.png\" alt=\"' . $txt['fm_view'] . '\" /></a>',\n\t\t\t\t\t'data' => pathinfo($fullpath),\n\t\t\t\t\t'lastmodified' => timeformat(filemtime($fullpath)),\n\t\t\t\t\t'filepermissions' => '<a href=\"' . $scripturl . '?action=admin;area=filemanager;do=chmod;file=' . urlEncode($fullpath) . '\" title=\"' . $txt['fm_chmod'] . '\">' . substr(sprintf('%o', fileperms($fullpath)), -4) . '</a>',\n\t\t\t\t\t'remove' => !in_array($file,$smf_important) && !in_array(basename($directory),$smf_important) ? '<a href=\"' . $scripturl . '?action=admin;area=filemanager;do=remove;file=' . urlEncode($fullpath) . '\" title=\"' . $txt['fm_remove'] . '\"><img src=\"' . $settings['default_images_url'] . '/filemanager/remove.png\" alt=\"' . $txt['fm_remove'] . '\" /></a>' : '',\n\t\t\t\t\t'rename' => !in_array($file,$smf_important) && !in_array(basename($directory),$smf_important) ? '<a href=\"' . $scripturl . '?action=admin;area=filemanager;do=rename;file=' . urlEncode($fullpath) . '\" title=\"' . $txt['fm_rename'] . '\"><img src=\"' . $settings['default_images_url'] . '/filemanager/rename.png\" alt=\"' . $txt['fm_remove'] . '\" /></a>' : '',\n\t\t\t\t\t'chmod' => '<a href=\"' . $scripturl . '?action=admin;area=filemanager;do=chmod;file=' . urlEncode($fullpath) . '\" title=\"' . $txt['fm_chmod'] . '\"><img src=\"' . $settings['default_images_url'] . '/filemanager/chmod.png\" alt=\"' . $txt['fm_chmod'] . '\" /></a>',\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// This is some sort of file\n\t\t\telse\n\t\t\t{\n\t\t\t\t// common stuff\n\t\t\t\t$files[$file] = array(\n\t\t\t\t\t'data' => pathinfo($fullpath),\n\t\t\t\t\t'lastmodified' => timeformat(filemtime($fullpath)),\n\t\t\t\t\t'filepermissions' => '<a href=\"' . $scripturl . '?action=admin;area=filemanager;do=chmod;file=' . urlEncode($fullpath) . '\" title=\"' . $txt['fm_chmod'] . '\">' . substr(sprintf('%o', fileperms($fullpath)), -4) . '</a>',\n\t\t\t\t\t'remove' => !in_array($file,$smf_important) && !in_array(basename($directory),$smf_important) ? '<a href=\"' . $scripturl . '?action=admin;area=filemanager;do=remove;file=' . urlEncode($fullpath) . '\" title=\"' . $txt['fm_remove'] . '\"><img src=\"' . $settings['default_images_url'] . '/filemanager/remove.png\" alt=\"' . $txt['fm_remove'] . '\" /></a>' : '',\n\t\t\t\t\t'rename' => !in_array($file,$smf_important) && !in_array(basename($directory),$smf_important) ? '<a href=\"' . $scripturl . '?action=admin;area=filemanager;do=rename;file=' . urlEncode($fullpath) . '\" title=\"' . $txt['fm_rename'] . '\"><img src=\"' . $settings['default_images_url'] . '/filemanager/rename.png\" alt=\"' . $txt['fm_remove'] . '\" /></a>' : '',\n\t\t\t\t\t'chmod' => '<a href=\"' . $scripturl . '?action=admin;area=filemanager;do=chmod;file=' . urlEncode($fullpath) . '\" title=\"' . $txt['fm_chmod'] . '\"><img src=\"' . $settings['default_images_url'] . '/filemanager/chmod.png\" alt=\"' . $txt['fm_chmod'] . '\" /></a>',\t\n\t\t\t\t\t'download' => '<a href=\"' . $scripturl . '?action=admin;area=filemanager;do=download;file=' . urlEncode($fullpath) . '\" title=\"' . $txt['fm_download'] . '\"><img src=\"' . $settings['default_images_url'] . '/filemanager/download.png\" alt=\"' . $txt['fm_download'] . '\" /></a>',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t);\n\n\t\t\t\tif(in_array($files[$file]['data']['extension'],$imagetypes))\n\t\t\t\t{\n\t\t\t\t\t$files[$file] = array_merge($files[$file], array(\n\t\t\t\t\t\t'img' => imageData($fullpath), // We need the image size to figure out if we should use highslide for it or if its too small.\n\t\t\t\t\t\t'size' => bytesHR(filesize($fullpath)),\n\t\t\t\t\t\t'icon' => prepareImage($fullpath),\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t'link' => $scripturl. '?action=admin;area=filemanager;do=image;file=' . urlEncode($fullpath),\n\t\t\t\t\t\t'view' => '<a href=\"' . $scripturl . '?action=admin;area=filemanager;do=image;file=' . urlEncode($fullpath) . '\" title=\"' . $txt['fm_view'] . '\"><img src=\"' . $settings['default_images_url'] . '/filemanager/view.png\" alt=\"' . $txt['fm_view'] . '\" /></a>',\n\t\t\t\t\t));\n\t\t\t\t}\n\t\t\t\telseif(in_array($files[$file]['data']['extension'],$wbfolders))\n\t\t\t\t{\n\t\t\t\t\t$files[$file] = array_merge($files[$file], array(\n\t\t\t\t\t\t'size' => bytesHR(filesize($fullpath)),\n\t\t\t\t\t\t'icon' => icon($files[$file]['data']['extension'],'package'),\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t'link' => $scripturl. '?action=admin;area=filemanager;do=download;file=' . urlEncode($fullpath) . '',\n\t\t\t\t\t\t'view' => '<a href=\"' . $scripturl . '?action=admin;area=filemanager;do=download;file=' . urlEncode($fullpath) . '\" title=\"' . $txt['fm_view'] . '\"><img src=\"' . $settings['default_images_url'] . '/filemanager/view.png\" alt=\"' . $txt['fm_view'] . '\" /></a>',\n\t\t\t\t\t));\n\t\t\t\t}\n\t\t\t\telseif(in_array($files[$file]['data']['extension'],$audiofiles))\n\t\t\t\t{\n\t\t\t\t\t$files[$file] = array_merge($files[$file], array(\n\t\t\t\t\t\t'size' => bytesHR(filesize($fullpath)),\n\t\t\t\t\t\t'icon' => icon($files[$file]['data']['extension'],'audio'),\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t'link' => $scripturl. '?action=admin;area=filemanager;do=audio;file=' . urlEncode($fullpath) . '',\n\t\t\t\t\t\t'view' => '<a href=\"' . $scripturl . '?action=admin;area=filemanager;do=audio;file=' . urlEncode($fullpath) . '\" title=\"' . $txt['fm_view'] . '\"><img src=\"' . $settings['default_images_url'] . '/filemanager/view.png\" alt=\"' . $txt['fm_view'] . '\" /></a>',\n\t\t\t\t\t));\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$files[$file] = array_merge($files[$file], array(\n\t\t\t\t\t\t'size' => bytesHR(filesize($fullpath)),\n\t\t\t\t\t\t'icon' => icon($files[$file]['data']['extension'],'file'),\t\t\t\n\t\t\t\t\t\t'link' => $scripturl. '?action=admin;area=filemanager;do=viewfile;file=' . urlEncode($fullpath),\n\t\t\t\t\t\t'view' => '<a href=\"' . $scripturl . '?action=admin;area=filemanager;do=viewfile;file=' . urlEncode($fullpath) . '\" title=\"' . $txt['fm_view'] . '\"><img src=\"' . $settings['default_images_url'] . '/filemanager/view.png\" alt=\"' . $txt['fm_view'] . '\" /></a>',\t\t\t\t\t\n\t\t\t\t\t\t'edit' => '<a href=\"' . $scripturl . '?action=admin;area=filemanager;do=editfile;file=' . urlEncode($fullpath) . '\" title=\"' . $txt['fm_edit'] . '\"><img src=\"' . $settings['default_images_url'] . '/filemanager/edit.png\" alt=\"' . $txt['fm_edit'] . '\" /></a>',\t\t\n\t\t\t\t\t));\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n }\n\n\t// Tidy up\n\t@closedir($dirhandler);\n\n\t$files_order = array_keys($files);\n\tnatcasesort($files_order);\n\t$directories_order = array_keys($directories);\n\tnatcasesort($directories_order);\n\n\t$data = array(\n\t\t'files' => $files,\n\t\t'files_order' => $files_order,\n\t\t'directories' => $directories,\n\t\t'directories_order' => $directories_order,\n\t);\n\n // Merry christmas...\n return $data;\n}", "title": "" }, { "docid": "2be1115bb8f19f01f4a14d9573e14b79", "score": "0.6712485", "text": "static function getDirectoryListing();", "title": "" }, { "docid": "b4dbf50c0e9815cc9ebaadedeabb5163", "score": "0.6662621", "text": "public function listContents($directory = '', $recursive = false)\n {\n }", "title": "" }, { "docid": "41dfa3ade29f6f646838e830c59c1fe2", "score": "0.66462576", "text": "public function get_directory_list() {\n\t\treturn $this->directory_list;\n\t}", "title": "" }, { "docid": "7e28b363afcafb75973c71883fabe738", "score": "0.66339815", "text": "public static function files($directory)\n {\n }", "title": "" }, { "docid": "b52560fd9184d64249c992e865a06083", "score": "0.66332835", "text": "function list_files($directory = '.')\n{\n if ($directory != '.')\n {\n $directory = rtrim($directory, '/') . '/';\n }\n \n if ($handle = opendir($directory))\n {\n while (false !== ($file = readdir($handle)))\n {\n if ($file != '.' && $file != '..')\n {\n echo $file.'<br>';\n }\n }\n \n closedir($handle);\n }\n}", "title": "" }, { "docid": "b174eb5cdec1d4bc4e5af307823453b0", "score": "0.6614911", "text": "private static function scandirRecursive(string $directory): array\n {\n // Initialize an empty array of results.\n $results = [];\n\n // IF the provided directory does not exist, THEN return an empty array!\n if(!file_exists($directory))\n return $results;\n\n // IF the provided directory is actually a file, THEN return an array with only this single file!\n if(!is_dir($directory))\n {\n $results[] = $directory;\n return $results;\n }\n\n // Loop over each item in the specified directory...\n foreach(scandir($directory) as $filename)\n {\n // IF the current item is one of the specials \".\" or \"..\", THEN simply skip this item!\n if ($filename[0] === \".\" || $filename[0] === \"..\")\n continue;\n\n // OTHERWISE, build the absolute path to the current item.\n $filePath = $directory . DIRECTORY_SEPARATOR . $filename;\n\n // IF the current item is a directory...\n if (is_dir($filePath))\n {\n // THEN, add this directory to the results.\n $results[] = $filename;\n\n // AND loop through the this directory (recursively)...\n foreach (self::scandirRecursive($filePath) as $childFilename)\n {\n // Adding each set of recursive results to the top-level results.\n $results[] = $filename . DIRECTORY_SEPARATOR . $childFilename;\n }\n }\n else\n {\n // OTHERWISE, simply add this file to the results.\n $results[] = $filename;\n }\n }\n\n // Finally, return the array of results that were found!\n return $results;\n }", "title": "" }, { "docid": "5c5aac7082ac865cd25f6671bace8e74", "score": "0.65608704", "text": "function _quail_server_get_directory($directory, $filter=FALSE) {\n\tif (substr($directory, -1) == '/') {\n\t\t$directory = substr($directory, 0, -1);\n\t}\n\tif (!file_exists($directory) || !is_dir($directory)) {\n\t\treturn FALSE;\n\t}elseif (is_readable($directory)) {\n\t\t$directory_list = opendir($directory);\n\t\twhile (FALSE !== ($file = readdir($directory_list))) {\n\t\t\tif ($file != '.' && $file != '..') {\n\t\t\t\t$path = $directory.'/'.$file;\n\t\t\t\tif (is_readable($path)) {\n\t\t\t\t\t$subdirectories = explode('/', $path);\n\t\t\t\t\tif (is_dir($path)) {\n\t\t\t\t\t\t$directory_tree[] = array(\n\t\t\t\t\t\t\t'path' => $path,\n\t\t\t\t\t\t\t'name' => end($subdirectories),\n\t\t\t\t\t\t\t'kind' => 'directory',\n\t\t\t\t\t\t\t'content' => '');\n\t\t\t\t\t\t$directory_tree = array_merge($directory_tree, _quail_server_get_directory($path, $filter));\n\t\t\t\t\t}elseif (is_file($path)) {\n\t\t\t\t\t\t$extension = end(explode('.', end($subdirectories)));\n\t\t\t\t\t\tif ($filter === FALSE || $filter == $extension) {\n\t\t\t\t\t\t\t$directory_tree[] = array(\n\t\t\t\t\t\t\t\t'path' => $path,\n\t\t\t\t\t\t\t\t'name' => end($subdirectories),\n\t\t\t\t\t\t\t\t'extension' => $extension,\n\t\t\t\t\t\t\t\t'size' => filesize($path),\n\t\t\t\t\t\t\t\t'kind' => '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}\n\t\tclosedir($directory_list);\n\n\t\treturn $directory_tree;\n\n\t}else {\n\t\treturn FALSE;\n\t}\n}", "title": "" }, { "docid": "2540f37a59d785b1da9b96e76b681b24", "score": "0.6558703", "text": "private static function get_php_file_paths($directory)\n {\n if (!static::$settings_files)\n {\n $files = [];\n if ($dir_list = scandir($directory))\n {\n foreach ($dir_list as $file_path)\n {\n // skip dot directories\n if ($file_path != '.' && $file_path != '..')\n {\n $full_path = $directory . '/' . $file_path;\n if (substr($file_path, -4) == '.php')\n {\n $files[] = $full_path;\n } elseif (is_dir($full_path))\n {\n $files = array_merge($files, self::get_php_file_paths($full_path));\n }\n }\n }\n }\n\n static::$settings_files = $files;\n }\n\n return static::$settings_files;\n }", "title": "" }, { "docid": "2fe72ae530a3fbfdec48f935c36b752b", "score": "0.6545097", "text": "public function files(?string $directory = null, ?bool $recursive = null): array;", "title": "" }, { "docid": "3a7b9325587c10fa6d44745558e89d69", "score": "0.6543737", "text": "public function directories(string $directory): array\n {\n return glob(\"$directory/*\", GLOB_ONLYDIR);\n }", "title": "" }, { "docid": "9b983b3fbf6a91454ef074c774fe3676", "score": "0.6511722", "text": "public function getFiles(DirectoryInterface $directory): array;", "title": "" }, { "docid": "009f166f03e8cac3503d1d6dd6693d7e", "score": "0.6486705", "text": "private function getAllDirs($directory = 'images/', $directory_seperator = '/')\n {\n $dirs = array_map(function ($item) use ($directory_seperator) {\n return $item . $directory_seperator;\n }, array_filter(glob($directory . '*'), 'is_dir'));\n\n foreach ($dirs AS $dir) {\n $dirs = array_merge($dirs, self::getAllDirs($dir, $directory_seperator));\n }\n return $dirs;\n }", "title": "" }, { "docid": "17b5b0129693b43dae99e439b967ec62", "score": "0.64569384", "text": "public static function directories($directory)\n\t{\n\t\t$directories = [];\n\t\tforeach(scandir($directory) as $check){\n\t\t\tif(self::isDirectory($check)){\n\t\t\t\t$directories[] = $check;\n\t\t\t}\n\t\t}\n\n\t\treturn $directories;\n\t}", "title": "" }, { "docid": "6cec471871f0fff1a16bc71c946c2ae5", "score": "0.64190376", "text": "public function files($directory)\n {\n $glob = glob($directory.'/*');\n if ($glob === false) {\n return [];\n }\n\n return array_filter($glob, function($file) {\n return filetype($file) == 'file';\n });\n }", "title": "" }, { "docid": "1768ea0239c72a487f9158d79f3c1f2b", "score": "0.6398699", "text": "static function get_directory_file_list($directory_path)\n {\n $file_list = array();\n\n if (is_dir($directory_path))\n {\n $directory = opendir($directory_path);\n \n while (($item = readdir($directory)) !== false)\n {\n // Ignore filenames starting with a dot\n if ($item[0] === '.')\n {\n continue;\n }\n\n $item_path = $directory_path . $item;\n\n if (is_file($item_path))\n {\n $file_list[] = $item_path;\n }\n else\n {\n $file_list = array_merge(self::get_directory_file_list($item_path . '/'), $file_list);\n }\n }\n\n closedir($directory);\n }\n\n return $file_list;\n }", "title": "" }, { "docid": "7201e058ecf7e2b0ea57520d46f8d937", "score": "0.63679427", "text": "public function listDir($directory, $recursive = FALSE) {\n\n if ($this->connectId) {\n $array = @ftp_rawlist($this->connectId, $directory, $recursive);\n\n if (!is_array($array)) {\n $this->errores[] = \"FTP: Ha fallado el listado de la carpeta '{$directory}'\";\n }\n }\n\n return $array;\n }", "title": "" }, { "docid": "5189491daab1e84849b5e281f7148818", "score": "0.6367022", "text": "public function getFilesList($directory, array $exclude = array())\n {\n @set_time_limit(0);\n if (!is_dir($directory) || in_array(basename($directory), $exclude)) {\n if(stripos($directory, EBBS_PLUG_NAME) !== false) {\n return false;\n }\n\n $continue = false;\n\n if( stripos($directory, 'themes') !== false ) {\n if(in_array('themes', $exclude)){\n return false;\n } else {\n $continue = true;\n }\n } elseif( stripos($directory, 'plugins') !== false ) {\n if(in_array('plugins', $exclude)){\n return false;\n } else {\n $continue = true;\n }\n }\n\n if(!$continue) {\n return false;\n }\n }\n\n// $absPath = str_replace('/', DS, ABSPATH);\n $absPath = rtrim(rtrim(ABSPATH, '/'), '\\\\');\n\n $nodes = array();\n\n $directory = glob(realpath($directory) . '/*');\n\n if ($directory === false) {\n return false;\n }\n\n foreach ($directory as $node) {\n if (is_dir($node) && file_exists($node)) {\n if ( in_array(basename($node), $exclude) && ( stripos($node, 'themes')===false && stripos($node, 'plugins')===false ) ) {\n continue;\n } else {\n $addNodes = $this->getFilesList($node, $exclude);\n if(!empty($addNodes) && is_array($addNodes))\n $nodes = array_merge($nodes, $addNodes);\n }\n\n } elseif (is_file($node) && is_readable($node)) {\n $nodes[] = str_replace($absPath, '', $node);\n }\n }\n\n return $nodes;\n }", "title": "" }, { "docid": "f8e8d833d6b01d029a9a29a54de74a05", "score": "0.63633496", "text": "public function files($directory = null, $recursive = false)\n {\n $filepaths = $this->disk->files($directory, $recursive);\n return $this->getPaths($filepaths);\n }", "title": "" }, { "docid": "968b455ad8bf8166e6a76fdbbe958854", "score": "0.6353745", "text": "function get_files($directory, $pattern = false) {\n\n\t\tif(!isset($directory) OR is_dir($directory) == false ) return false;\n\t\t$returnval = array();\n\n\t\tif(false != ($handle = opendir($directory))) {\n\t\twhile (false !== ($file = readdir($handle))) {\n\n\t if ($file != \".\" && $file != \"..\") {\n\n\t\tif($pattern != false) {\n\n\t\tif(preg_match(\"$pattern\", $file) > 0 ) {\n\t\t$returnval[] = $file;\n }\n\t\t\t}else{\n\t\t\t\t$returnval[] = $file;\n\t\t\t}\n\t\t\t}\n\t\t}\n\t\t}\n\t\tclosedir($handle);\n\t\treturn $returnval;\n\t}", "title": "" }, { "docid": "52a9c2e887661921d2484fa6fb513eab", "score": "0.6344503", "text": "function dir ($directory, $context = null) {}", "title": "" }, { "docid": "966c31c71a38bffdedf3f3df8c4169bc", "score": "0.6338637", "text": "private function build_directory_list($thisdir, &$directory_list) {\n\t\t$thisdir = dir($thisdir.'/'); //include the trailing slash\n\t\twhile(($file = $thisdir->read()) !== false) {\n\t\t\tif ($file != '.' && $file != '..') {\n\t\t\t\t$path = $thisdir->path.$file;\n\t\t\t\tif(is_dir($path)) {\n\t\t\t\t\tarray_push($directory_list, $path);\n\t\t\t\t\t$this->build_directory_list($path, $directory_list);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "aff77dc87cd12d6709b864e7a3d400dd", "score": "0.63177043", "text": "protected function list_directory($directory, $recursive = FALSE)\n {\n if (defined('STRICT_TYPES') && CAMEL_CASE == '1')\n {\n return (array) self::parameters(\n [\n 'directory' => DT::STRING,\n 'recursive' => DT::BOOL\n ])\n ->call(__FUNCTION__)\n ->with($directory, $recursive)\n ->returning(DT::TYPE_ARRAY);\n }\n else\n {\n return (array) list_directory($directory, $recursive);\n }\n }", "title": "" }, { "docid": "b78c2aa8b77d29d044865d3645dc70b1", "score": "0.6316586", "text": "function get_priv_files($directory) {\n\t$dir_array = array();\n\tif (!is_dir($directory)) {\n\t\treturn;\n\t}\n\tif ($dh = opendir($directory)) {\n\t\twhile (($file = readdir($dh)) !== false) {\n\t\t\t$canadd = 0;\n\t\t\tif ($file == \".\") {\n\t\t\t\t$canadd = 1;\n\t\t\t}\n\t\t\tif ($file == \"..\") {\n\t\t\t\t$canadd = 1;\n\t\t\t}\n\t\t\tif ($canadd == 0) {\n\t\t\t\tarray_push($dir_array, $file);\n\t\t\t}\n\t\t}\n\t\tclosedir($dh);\n\t}\n\tif (!is_array($dir_array)) {\n\t\treturn;\n\t}\n\treturn $dir_array;\n}", "title": "" }, { "docid": "6741b3c5741a802755d0dbfd809e77c2", "score": "0.62935716", "text": "public function getDirectoryTreeList();", "title": "" }, { "docid": "059d01d6d7cd8d41c96fab330bd8b1c5", "score": "0.628484", "text": "public function getDirectories(DirectoryInterface $directory): array;", "title": "" }, { "docid": "6f1f678f24929c59e66c673ef94e7194", "score": "0.6284838", "text": "private static function get_all_files($directory, $recursive = true)\n {\n $result = array();\n $handle = opendir($directory);\n while ($datei = readdir($handle))\n {\n if (($datei != '.') && ($datei != '..'))\n {\n $file = $directory.'/'.$datei;\n if (is_dir($file))\n {\n if ($recursive)\n {\n $result = array_merge($result, self::get_all_files($file.'/'));\n }\n }\n else\n {\n $result[] = $file;\n }\n }\n }\n closedir($handle);\n return $result;\n }", "title": "" }, { "docid": "bb794c9fb9901e4a8c4757b3b29490e3", "score": "0.6284191", "text": "private function getAllFiles($directory, $recursive = true) {\n $result = array();\n $handle = opendir($directory);\n while ($datei = readdir($handle)) {\n if (substr($datei, 0,1) != \".\" and substr($datei, -3) == \"php\") {\n $file = $directory.$datei;\n if (is_dir($file)) {\n if ($recursive) { \n $result = array_merge($result, $this->getAllFiles($file.'/')); \n }\n }else{\n $result[] = $file;\n } \n }\n }\n closedir($handle);\n return $result;\n}", "title": "" }, { "docid": "d7947c8174cbc6f5353e8aa711cf631e", "score": "0.6256517", "text": "public function list(string $directory): array\n {\n $directory = realpath(rtrim($directory, '/'));\n\n if (! $directory) {\n throw new InvalidArgumentException('The path does not exist');\n }\n\n $this->loadSyncignore($directory);\n\n $iterator = new RecursiveIteratorIterator(\n new RecursiveDirectoryIterator($directory, RecursiveDirectoryIterator::SKIP_DOTS),\n RecursiveIteratorIterator::SELF_FIRST\n );\n\n $startFrom = strlen($directory) + 1;\n\n $out = [];\n foreach ($iterator as $item) {\n if ($item->isDir()) {\n continue;\n }\n $path = $item->getRealPath();\n \n $relativePath = substr($path, $startFrom);\n\n // I am thinking .syncignore should not never be synced?\n if ($this->ignorePath($relativePath)) {\n continue;\n }\n \n $out[] = [\n 'path' => $relativePath,\n 'size' => $item->getSize(),\n 'modified' => $item->getMTime(),\n 'permissions' => substr(sprintf('%o', fileperms($path)), -4),\n 'checksum' => hash_file('crc32', $path)\n ];\n }\n\n return $out;\n }", "title": "" }, { "docid": "699eb83680d0f48becb13198545994ed", "score": "0.6255504", "text": "function directory_to_array($directory, $recursive = true, $include_directories_in_list = true, $include_files_in_list = false)\r\n\t{\r\n\t\t$array_items = array();\r\n\t\tif ($handle = opendir($directory))\r\n\t\t{\r\n\t\t\twhile (false !== ($file = readdir($handle)))\r\n\t\t\t{\r\n\t\t\t\tif ($file != \".\" && $file != \"..\")\r\n\t\t\t\t{\r\n\t\t\t\t\tif (is_dir($directory. \"/\" . $file))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif($recursive)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$array_items = array_merge($array_items, $this->directory_to_array($directory. \"/\" . $file, $recursive));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif ($include_directories_in_list)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$file = $directory . \"/\" . $file;\r\n\t\t\t\t\t\t\t$array_items[] = preg_replace(\"/\\/\\//si\", \"/\", $file);\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{\r\n\t\t\t\t\t\tif ($include_files_in_list)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$file = $directory . \"/\" . $file;\r\n\t\t\t\t\t\t\t$array_items[] = preg_replace(\"/\\/\\//si\", \"/\", $file);\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\tclosedir($handle);\r\n\t\t}\r\n\t\treturn $array_items;\r\n\t}", "title": "" }, { "docid": "78ae935dd0de9363d04a38d725fa3dd8", "score": "0.62457997", "text": "function dir(string $directory, $context): Directory|false {}", "title": "" }, { "docid": "9d0c4b0dc9a68cd4f4d4cc8b554e336a", "score": "0.62398183", "text": "public function searchDir($type, $directory = '')\n {\n $dirs = $this->search($type, $directory, 'path');\n $files = array();\n foreach ($dirs as $dir) {\n $this->_searchDirFiles($dir, $files);\n }\n\n return $files;\n }", "title": "" }, { "docid": "2166ba9f7bed09f789e986254c659e97", "score": "0.62270254", "text": "public function allFiles($directory, $hidden = false)\n {\n $files = [];\n\n foreach ($this->files as $file) {\n if (Str::contains($file, $directory)) {\n $files[] = $file;\n }\n }\n\n return $files;\n }", "title": "" }, { "docid": "97c34813a77788935a3d94922ddd648b", "score": "0.6224739", "text": "public function getDirectory();", "title": "" }, { "docid": "97c34813a77788935a3d94922ddd648b", "score": "0.6224739", "text": "public function getDirectory();", "title": "" }, { "docid": "99689c13cd4fd7a41f4f307b91d4cc94", "score": "0.6216738", "text": "public function directory($directory = null)\n {\n if (is_null($directory)) {\n return $this->directory;\n }\n\n return $this->directory = '/' . trim($directory, '/');\n }", "title": "" }, { "docid": "d96ef09b267bf567db4ab74d70587e50", "score": "0.6199837", "text": "public function listContents($directory = '', $recursive = false)\n {\n if ($directory === '') {\n $entries = $this->model->all();\n } else {\n $directory = $this->sanitizeDirectoryName($directory);\n $entries = $this->model->where('location', 'LIKE', $directory . '%')->get();\n }\n\n if ($entries->count() === 0) {\n return [];\n }\n\n $result = [];\n $directories = [];\n\n foreach ($entries as $file) {\n\n if ( ! $this->checkRecursiveParam($directory, $file, $recursive)) {\n continue;\n }\n\n $directories = $this->addDirectories($file, $directories);\n\n $result[] = $this->getMetadataForFile($file);\n }\n\n foreach ($directories as $directory => $folder) {\n $result[] = $this->getMetadataForDirectory($folder['path'], $folder['timestamp']);\n }\n\n return $result;\n }", "title": "" }, { "docid": "4c8c1b3b5b1def5f78421125ef931c4b", "score": "0.61926407", "text": "private function scandir( $directory, $ignore_only_dots = false ) {\n\t\t$contents = scandir( $directory );\n\t\tif ( true === $ignore_only_dots ) {\n\t\t\t$contents = array_values(\n\t\t\t\tarray_diff(\n\t\t\t\t\t$contents,\n\t\t\t\t\tarray( '.', '..' )\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t\treturn $contents;\n\t}", "title": "" }, { "docid": "6e9e401e5b290879d7cf3037500f2a5f", "score": "0.6174708", "text": "function listFilesAndFolders(Array $directory) {\r\n global $currentPath;\r\n\r\n removeElement('.', $directory);\r\n removeElement('..', $directory);\r\n\r\n if (count($directory) == 0) {\r\n echo '(Folder is empty)';\r\n } else {\r\n foreach ($directory as $key => $fileOrFolderName) {\r\n $targetPath = $currentPath . \"/\" . $fileOrFolderName;\r\n if (is_file($targetPath)) {\r\n echo \"<a href=$fileOrFolderName>\" . $fileOrFolderName . \"</a>\" . \"<br>\";\r\n } else {\r\n echo $fileOrFolderName . ' ';\r\n addForwardButton($targetPath); // A button is added next to each folder to enable us to go into the folder.\r\n }\r\n }\r\n }\r\n}", "title": "" }, { "docid": "91855d7772c3fb35c5a6be868ea51f14", "score": "0.61635", "text": "private static function directoryToArray($directory)\n\t{\n\t\tstatic $root = '';\n\n\t\t$aeFiles = \\MarkNotes\\Files::getInstance();\n\t\t$aeFolders = \\MarkNotes\\Folders::getInstance();\n\n\t\tif ($root === '') {\n\t\t\t$aeSettings = \\MarkNotes\\Settings::getInstance();\n\t\t\t$root = str_replace('/', DS, $aeSettings->getFolderDocs(true));\n\t\t}\n\n\t\t$arr = [];\n\n\t\tif ($aeFolders->exists($directory)) {\n\t\t\t// Get the list of files/folders under $directory\n\t\t\t// Only the folder, not subfolders\n\t\t\t$items = $aeFolders->getContent($directory);\n\n\t\t\tforeach ($items as $item) {\n\t\t\t\t// Don't take files/folders starting with a dot\n\t\t\t\tif (substr($item['basename'], 0, 1) !== '.') {\n\t\t\t\t\t// Absolute filename / foldername\n\t\t\t\t\t$name = rtrim($directory, DS) . DS . $item['basename'];\n\t\t\t\t\tif ($item['type'] == 'dir') {\n\t\t\t\t\t\t// It's a folder\n\t\t\t\t\t\t$arr[] = ['name' => $name, 'type' => 'folder'];\n\t\t\t\t\t//$arr[] = array('name' => iconv('UTF-8', 'UTF-8//IGNORE', utf8_encode($name)),'type' => 'folder');\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// it's a file, get it only if the\n\t\t\t\t\t\t// extension is .md\n\t\t\t\t\t\tif (isset($item['extension'])) {\n\t\t\t\t\t\t\tif ($item['extension'] === 'md') {\n\t\t\t\t\t\t\t\t$arr[] = [\n\t\t\t\t\t\t\t\t\t'name' => rtrim($directory, DS) . '/' . $item['filename'],\n\t\t\t\t\t\t\t\t\t'type' => 'file'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} // if ($aeFolders->exists($directory.DS.$file))\n\t\t\t\t} // if (substr($file, 0, 1) !== '.')\n\t\t\t} // foreach\n\t\t} // if ($aeFiles->folderExists($directory))\n\n\t\t$name = [];\n\n\t\t// Sort the array by name\n\t\tforeach ($arr as $key => $row) {\n\t\t\t$name[$key] = $row['name'];\n\t\t} // foreach\n\n\t\tarray_multisort($name, SORT_ASC | SORT_NATURAL | SORT_FLAG_CASE, $arr);\n\n\t\treturn $arr;\n\t}", "title": "" }, { "docid": "f2b5f4b0905da09ac378b39acfb79345", "score": "0.6161844", "text": "public function listContents($directory = '', $recursive = false)\n {\n $_data = $this->listContentsIncludeKeep($directory, $recursive);\n\n return array_filter($_data, [Util::class, 'isNotKeep']);\n }", "title": "" }, { "docid": "e42c1a9b2a7e8447222e67c21fb4150c", "score": "0.6152048", "text": "public static function allFiles($directory, $hidden = false)\n {\n }", "title": "" }, { "docid": "abb298d713c853d3bb5b1ea18b33b2a5", "score": "0.6109527", "text": "function directoryToArray($directory, $recursive = true, $fullpath = true, $includedirectories = true) {\n\t\t$array_items = array();\n\t\tif ($handle = opendir($directory)) {\n\t\t\twhile (false !== ($file = readdir($handle))) {\n\t\t\t\tif ($file != '.' && $file != '..') {\n\t\t\t\t\t$nicefile = (($fullpath) ? $directory.'/' : '') . $file;\n\t\t\t\t\t$nicefile = preg_replace('@//@si', '/', $nicefile);\n\t\t\t\t\t$fullfile = $directory.'/'.$file;\n\t\t\t\t\t$array_item = array();\n\t\t\t\t\t\n\t\t\t\t\tif (is_dir($fullfile)) {\n\t\t\t\t\t\tif ($includedirectories || $recursive) {\n\t\t\t\t\t\t\t$array_item['name'] = $nicefile;\n\t\t\t\t\t\t\t$array_item['contents'] = ($recursive) ? directoryToArray($fullfile, $recursive) : array();\n\t\t\t\t\t\t\t$array_items[] = $array_item;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$array_item['name'] = $nicefile;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$array_items[] = $array_item;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tclosedir($handle);\n\t\t}\n\t\t\n\t\tusort($array_items, \"dtaSort\");\n\t\treturn $array_items;\n\t}", "title": "" }, { "docid": "a253a3921a39eaeb736a157f9178df62", "score": "0.6092477", "text": "public function rawlist($directory = '.') {\n\t\treturn ftp_rawlist($this->_ftp, $directory);\n\t}", "title": "" }, { "docid": "94733bdd43c01adacc2f2709d8f1a323", "score": "0.6083458", "text": "function getDirectoryList($d,$h) \n{\n $results = array();\n // create a handler for the directory\n $handler = opendir($d);\n // open directory and walk through the filenames\n while ($file = readdir($handler)) \n { \n // if file isn't this directory or its parent, add it to the results\n if ($file != \".\" && $file != \"..\") \n {\n $results[] = $file;\n }\n }\n // tidy up: close the handler\n closedir($handler);\n // Check if should include hidden files, $h parameter\n if ($h == false)\n { \n $results = array_filter($results, create_function('$a','return ($a[0]!=\".\");')); \n } \n // done!\n return $results;\n}", "title": "" }, { "docid": "6c07aeb2d1c1e4f02c3a24588542949c", "score": "0.6080353", "text": "function get_directory() {\n\t\treturn $this->directory;\n\t}", "title": "" }, { "docid": "58d631a03e26f794f50cba716d0f93b2", "score": "0.60528964", "text": "function directoryToArray($directory, $recursive = true) {\n\t\t $array_items = array();\n\t\t if ($handle = opendir($directory)) {\n\t\t\t while (false !== ($file = readdir($handle))) {\n\t\t\t\t if ($file != \".\" && $file != \"..\") {\n\t\t\t\t\t if (is_dir($directory. \"/\" . $file)) {\n\t\t\t\t\t\t if($recursive) {\n\t\t\t\t\t\t\t $array_items = array_merge($array_items, $this->directoryToArray($directory. \"/\" . $file, $recursive));\n\t\t\t\t\t\t }\n\t\t\t\t\t\t $file = $directory . \"/\" . $file;\n\t\t\t\t\t\t $array_items[] = preg_replace(\"/\\/\\//si\", \"/\", $file);\n\t\t\t\t\t } else {\n\t\t\t\t\t\t $file = $directory . \"/\" . $file;\n\t\t\t\t\t\t $array_items[] = preg_replace(\"/\\/\\//si\", \"/\", $file);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t\t closedir($handle);\n\t\t }\n\t\t return $array_items;\n\t }", "title": "" }, { "docid": "d64939df6503177823776e12cbfbc80e", "score": "0.6050306", "text": "static public function find($directory, $file) {\n $result = array();\n foreach (glob($directory . \"/\" . $file) as $archivos_carpeta) {\n $result[] = $archivos_carpeta;\n }\n foreach (scandir($directory) as $archivos_carpeta) {\n if ($archivos_carpeta != \".\" && $archivos_carpeta != \"..\") {\n if (is_dir($directory . '/' . $archivos_carpeta)) {\n $result = array_merge($result, self::find($directory . '/' . $archivos_carpeta, $file));\n }\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "f69d79341fcbe6603a2b088e8d94090f", "score": "0.6047094", "text": "public function listContents($directory = '', $recursive = false)\n {\n $list = [];\n\n $result = $this->listDirObjects($directory, true);\n\n if (!empty($result['objects'])) {\n foreach ($result['objects'] as $files) {\n if (!$fileInfo = $this->normalizeFileInfo($files)) {\n continue;\n }\n\n $list[] = $fileInfo;\n }\n }\n\n return $list;\n }", "title": "" }, { "docid": "099130e4b804163c9fc0cbe733a60a4f", "score": "0.6047082", "text": "public abstract function getDirectory();", "title": "" }, { "docid": "b5d12c6853d098068da20eb50599374f", "score": "0.60262156", "text": "public static function isDirectory($_directory)\r\n {\r\n return is_dir($_directory);\r\n }", "title": "" }, { "docid": "75b4e7bcd28d77b23382ea1a52fbd952", "score": "0.60205626", "text": "function scorm_scandir($directory) {\n if (version_compare(phpversion(),'5.0.0','>=')) {\n return scandir($directory);\n } else {\n $files = array();\n if ($dh = opendir($directory)) {\n while (($file = readdir($dh)) !== false) {\n $files[] = $file;\n }\n closedir($dh);\n }\n return $files;\n }\n}", "title": "" }, { "docid": "7f3c9eadc8250f11261ed8332d5c8e37", "score": "0.60198456", "text": "public function files(string $directory, bool $hidden = false): array\n {\n $files = array_diff(scandir($directory), array('.', '..'));\n return array_values(array_filter($files, function ($file) use ($hidden) {\n return $file[0] !== \".\" || $hidden;\n }));\n }", "title": "" }, { "docid": "e53b2f66aa4f0eafc683791159eb8094", "score": "0.60179937", "text": "public function directory($directory = NULL)\n\t{\n\t\tif ($directory === NULL)\n\t\t{\n\t\t\t// Act as a getter\n\t\t\treturn $this->_directory;\n\t\t}\n\n\t\t// Act as a setter\n\t\t$this->_directory = (string) $directory;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "9d41a8b704f58a3b31c4a5d7151dbe5a", "score": "0.60171646", "text": "public function readDirectory();", "title": "" }, { "docid": "6941062bd0a98250fa0f33c01fc7bbb7", "score": "0.59918153", "text": "function getDirectories($dir)\n{\n\tglobal $debug;\n\t$directories = getFolderList($dir);\n\t// Only bother with it if there are any subdirectories here\n\tif (count($directories)>0)\n\t{\n\t\t$getDirectories = '<div class=\"list-group\">';\n\t\tforeach($directories as $directory)\n\t\t{\n\t\t\t// Only bother with it if there are playable tracks or subdirectories\n\t\t\tif ( getTracksCount($directory)>0 || getFoldersCount($directory)>0 )\n\t\t\t{\n\t\t\t\t$getDirectories .= '<a href=\"?dir='.rawurlencode($directory);\n\t\t\t\tif ( !empty($debug) )\n\t\t\t\t{\n\t\t\t\t\t$getDirectories .= '&debug=log';\n\t\t\t\t}\n\t\t\t\t$getDirectories .= '\" class=\"list-group-item\" title=\"Open this directory\">'.substr($directory,strrpos($directory,\"/\")+1).'</a>';\n\t\t\t}\n\t\t}\n\t\tunset($directories);\n\t\t$getDirectories .= '</div>';\n\t}\n\telse\n\t{\n\t\t$getDirectories = '';\n\t}\n\tif ( !empty($debug) )\n\t{\n\t\t$log = \"getDirectories(\".$dir.\")\\n----------\\n\";\n\t\t$log .= \"getDirectories = \".$getDirectories.\"\\n\\n\";\n\t\tdebugLog($log);\n\t}\n\treturn $getDirectories;\n}", "title": "" }, { "docid": "86e520f6c1132283fc779f14f4caf46b", "score": "0.5987028", "text": "public function recursiveExtractor($pattern = '/.*/', $directory = '.') {\n\t\tglobal $tempLists;\n\n\t\tif (!isset($tempLists)) {\n\t\t\t$tempLists = array();\n\t\t}\n\t\t$rawlist = $this->rawlist($directory);\n\t\t$isDirectory = false;\n\t\t$regexLinux = '/^.{10}\\s*\\d{1,}+\\s*[\\d|\\w]*\\s*[\\d|\\w]*\\s*\\d*\\s[a-zA-Z]{3}\\s*[0-9]{1,2}\\s*[0-9]{2}:[0-9]{2}\\s(\\s?.*)$/';\n\t\t$regexWindows = '/^\\d*\\-\\d*\\-\\d*\\s*\\d*:\\d*\\w*\\s*(<DIR>)?\\s*\\d*\\s*(\\s?.*)$/';\n\t\tforeach ($rawlist as $item) {\n\t\t\t// The current implementation uses linux/unix/windows raw details\n\t\t\t//\n\t\t\t// This could also be done with php ftp_systype() function incorporated\n\t\t\t// with preg_match() function\n\t\t\tif (preg_match($regexLinux, $item, $matches)) {\n\t\t\t\t// For linux or unix os (ftp_systype($this->_ftp) == 'UNIX')\n\t\t\t\t//\n\t\t\t\t// Unix raw details for each file in the list may look like this:\n\t\t\t\t// -rw-r--r-- 1 507 507 97778 Nov 21 22:35 4df15e95217f8.pdf\n\t\t\t\t//\n\t\t\t\t// And unix raw details for sub-directory:\n\t\t\t\t// drwxr-xr-x 2 507 507 4096 Nov 21 22:35 sub-directory\n\t\t\t\t$file = $matches[1];\n\t\t\t\t$isDirectory = ($item{0} == 'd');\n\t\t\t} elseif (preg_match($regexWindows, $item, $matches)) {\n\t\t\t\t// For windows os (ftp_systype($this->_ftp) == 'Windows_NT')\n\t\t\t\t//\n\t\t\t\t// Unix raw details for each file in the list may look like this:\n\t\t\t\t// 11-21-11 02:33PM 97778 4df15e95217f8.pdf\n\t\t\t\t//\n\t\t\t\t// And unix raw details for sub-directory:\n\t\t\t\t// 11-21-11 02:33PM <DIR> sub-directory\n\t\t\t\t$file = $matches[2];\n\t\t\t\t$isDirectory = ($matches[1] == '<DIR>');\n\t\t\t} else {\n\t\t\t\t// If the file or directory raw details don't match the regular expression for\n\t\t\t\t// either linux/unix or windows, then skip the current file or directory\n\t\t\t\t//\n\t\t\t\t// This may have to be changed later, because the current way ignoring the unmatched\n\t\t\t\t// file or directory is not being logged anywhere or is not sent to notify anybody.\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$path = $directory . '/' . $file;\n\t\t\tif ($isDirectory) {\n\t\t\t\t$this->recursiveExtractor($pattern, $path);\n\t\t\t} else {\n\t\t\t\tif (preg_match($pattern, $file)) {\n\t\t\t\t\t$tempLists[] = $path;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $tempLists;\n\t}", "title": "" }, { "docid": "cf390b52a124e06a860e523d1326ed64", "score": "0.59819794", "text": "public function get_directory() {\n\t\treturn $this->directory;\n\t}", "title": "" }, { "docid": "9b6d47eb44745636ff3efd211586733a", "score": "0.5930415", "text": "function addFileDirectory($directory) {\n\t\t$this->directories_ar[] = $directory;\n\t}", "title": "" }, { "docid": "172387649c55b2af3429378c4e9af20c", "score": "0.592112", "text": "function getBaseDirectory ($directory)\n\t{\n\t\t//place each directory into array and get the last element\n\t\t$return = end(explode('/', $directory));\n\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "dedb10d7f7ef1c7c073dc1eb9137b436", "score": "0.5905256", "text": "public function _directoryToArray($directory, $recursive=true)\n {\n $array_items = array();\n if ($handle = opendir($directory)) {\n while (false !== ($file = readdir($handle))) {\n if ($file != \".\" && $file != \"..\") {\n if (is_dir($directory. \"/\" . $file)) {\n if($recursive) {\n $array_items = array_merge($array_items, $this->_directoryToArray($directory. \"/\" . $file, $recursive));\n }\n $file = $directory . \"/\" . $file;\n $array_items[] = preg_replace(\"/\\/\\//si\", \"/\", $file);\n } else {\n $file = $directory . \"/\" . $file;\n $array_items[] = preg_replace(\"/\\/\\//si\", \"/\", $file);\n }\n }\n }\n closedir($handle);\n }\n return $array_items;\n }", "title": "" }, { "docid": "a993f87efbb1661069717030626391e1", "score": "0.58925277", "text": "function file_prepare_directory(&$directory, $options = FILE_MODIFY_PERMISSIONS) {\n return file_prepare_directory($directory, $options);\n }", "title": "" }, { "docid": "6ca9ebf72c19344d3a2f7fda1231668b", "score": "0.5869143", "text": "public function createReactAppPath($directory = 'js')\n {\n $path = \"{$directory}/*.js\";\n $files = [];\n foreach (glob(\"{$path}\") as $filename) {\n array_push($files, $filename);\n }\n $result = $files;\n return $result;\n }", "title": "" }, { "docid": "2e2d5555fbea6736fecbdfa57ed38e7e", "score": "0.5868878", "text": "function directory_to_array($directory)\r\n{\r\n\t$array_items = array();\r\n\tif ($handle = opendir($directory)) \r\n\t{\r\n\t\twhile (false !== ($file = readdir($handle))) \r\n\t\t{\r\n\t\t\tif ($file != \".\" && $file != \"..\") \r\n\t\t\t{\r\n\t\t\t\tif (is_dir($directory. \"/\" . $file)) \r\n\t\t\t\t{\r\n\t\t\t\t\t$array_items = array_merge($array_items, directory_to_array($directory. \"/\" . $file));\t\t\t\t\t\r\n\t\t\t\t\t$file = $directory . \"/\" . $file;\t\t\t\t\t\r\n\t\t\t\t\t$array_items[] = preg_replace(\"/\\/\\//si\", \"/\", $file);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tclosedir($handle);\r\n\t}\r\n\treturn $array_items;\r\n}", "title": "" }, { "docid": "a6f1d6e0b0e03df4c1eeed0e95967e5b", "score": "0.5868369", "text": "public function hasDir($directory='')\n\t{\n\t\tif (in_array((String) $directory, $this->getAll()) && is_dir($this->directory . DIRECTORY_SEPARATOR . $directory)) {\n\t\t\treturn new Directory($this->directory . DIRECTORY_SEPARATOR . $directory);\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7e977f7f43abb67446697c855a77a1bd", "score": "0.5864859", "text": "public static function readContent($directory, $extension = '.php', $filter = false) {\n if (!is_dir($directory))\n throw new Visio\\Exception\\DirectoryNotFound(\"Path '\" . $directory . \"' is not valid directory!\");\n\n $trueDirectory = $directory;\n\n $skip = array(\".\", \"..\", \".svn\", \".htaccess\", \".DS_Store\");\n\n $dir = scandir($directory);\n\n foreach ($dir as $k => $v) {\n if ((is_dir($trueDirectory . $v)) || in_array($v, $skip)) {\n unset($dir[$k]);\n\n continue;\n }\n\n if ($filter === true) {\n $info = pathinfo($dir[$k]);\n if (\".\" . $info['extension'] != $extension) {\n unset($dir[$k]);\n\n continue;\n }\n }\n\n $dir[$k] = basename($dir[$k], $extension);\n }\n\n $dir = array_values($dir);\n\n return $dir;\n }", "title": "" }, { "docid": "e8b830adf6280440749acb482365374b", "score": "0.5863286", "text": "public function getDirectory() {\n\t\t return $this->directory;\n\t }", "title": "" }, { "docid": "321501c821018af7d5e2f714dc0883f3", "score": "0.58248794", "text": "public function directories($directory = null, $recursive = false)\n {\n $dirs = $this->disk->directories($directory, $recursive);\n return $this->getDirs($dirs);\n }", "title": "" }, { "docid": "dce8dcdf3121e736f2bf96a917fc26a2", "score": "0.5824308", "text": "function directory_scan($directory, $withfiles) {\n\t$scanned_directory = array_diff(scandir($directory), array(\"..\", \".\")); //This removes all of the unessesary results\n\n\tfor ($i = 0; ($i < count(scandir($directory))) && $withfiles == true; $i = $i + 1) {\n\t\tif (isset($scanned_directory[$i]) && (is_dir($directory . \"/\" . $scanned_directory[$i]) == FALSE)) { // If current item is a file, make it a download link\n\t\t\techo \"<div class='fileDiv'>\";\n\t\t\techo \"<div>\";\n\t\t\techo \"<input type='checkbox' class='modify' name='movefrom[\" . $scanned_directory[$i] . \"]' form='moveto'>\";\n\t\t\techo \"<img src='Assets/SVG/file.svg' class='foldersvg'/>\";\n\t\t\techo \"<p class='fileLink'>\" . $scanned_directory[$i] . \"</p>\";\n\t\t\techo \"</div>\";\n\t\t\techo \"<p class='fileinfo'><b>Type</b>: \" . mime_content_type($directory. \"/\" . $scanned_directory[$i]) . \" <b>Size</b>: \" . getfilesize($directory . \"/\" . $scanned_directory[$i], 0) . \" <b>Last Modified</b>: \" . date(\"F d Y H:i:s.\",filectime($directory. \"/\" . $scanned_directory[$i])) . \"</p> \";\t\t\t\n\t\t\techo \"</div>\";\n\t\t} else if (isset($scanned_directory[$i]) && $directory . \"/\" . $scanned_directory[$i] != \"uploads/\" . $_SESSION[\"username\"] . \"/Trash\") { // Makes this a special dir box if a item is folder\n\t\t\techo \"<div class='folderDiv'>\";\n\t\t\techo \"<div>\";\n\t\t\techo \"<input type='checkbox' class='modify' name='movefrom[\" . $scanned_directory[$i] . \"]' form='moveto'>\";\n\t\t\techo \"<img src='Assets/SVG/folder.svg' class='foldersvg'/>\";\n\t\t\techo \"<input type='button' class='folderButton' value='\" . $scanned_directory[$i] . \"' name='directory[\" . $i . \"]'>\";\n\t\t\techo \"</div>\";\n\t\t\techo \"<p class='folderinfo'><b>Type</b>: Folder <b>Size</b>: \" . getfilesize($directory . \"/\" . $scanned_directory[$i], 1) . \" <b>Last Modified</b>: \" . date(\"F d Y H:i:s.\",filectime($directory. \"/\" . $scanned_directory[$i])) . \"</p> \";\n\t\t\techo \"</div>\"; \n\t\t}\n\t}\n\t\n\tfor ($i = 0; ($i < count(scandir($directory))) && $withfiles == false; $i = $i + 1) { //$withfiles only outputs files when true. when false, it will output files and folders. This is for the right-side of the page\n\t\tif ($i==0 && $directory != \"uploads/\" . $_SESSION[\"username\"]) { //when $i gets to its first iteration, output the \"back a directory\" folder\n\t\t\techo \"<div class='folderDiv'>\";\n\t\t\techo \"<div>\";\n\t\t\techo \"<input type='checkbox' class='modify' name='moveto[../]' form='moveto'>\";\n\t\t\techo \"<img src='Assets/SVG/folder.svg' class='foldersvg'/>\";\n\t\t\techo \"<input type='button' class='folderButton' value='../' name='directory[\" . $i . \"]'>\";\n\t\t\techo \"</div>\";\n\t\t\techo \"<p class='folderinfo'><b>Info</b>: Selecting this will move your selection back a folder.</p> \";\n\t\t\techo \"</div>\";\n\t\t}\n\t\t\n\t\tif (isset($scanned_directory[$i]) && is_dir($directory . \"/\" . $scanned_directory[$i])) { // Makes this a special dir box if an item is folder\n\t\t\techo \"<div class='folderDiv'>\";\n\t\t\techo \"<div>\";\n\t\t\techo \"<input type='checkbox' class='modify' name='moveto[\" . $scanned_directory[$i] . \"]' form='moveto'>\";\n\t\t\tif ($directory . \"/\" . $scanned_directory[$i] == \"uploads/\" . $_SESSION[\"username\"] . \"/Trash\") {\n\t\t\t\techo \"<img src='Assets/SVG/bin.svg' class='foldersvg'/>\";\n\t\t\t} else {\n\t\t\t\techo \"<img src='Assets/SVG/folder.svg' class='foldersvg'/>\";\n\t\t\t}\n\t\t\techo \"<input type='button' class='folderButton' value='\" . $scanned_directory[$i] . \"' name='directory[\" . $i . \"]'>\";\n\t\t\techo \"</div>\";\n\t\t\techo \"<p class='folderinfo'><b>Type</b>: Folder <b>Size</b>: \" . getfilesize($directory . \"/\" . $scanned_directory[$i], 1) . \" <b>Last Modified</b>: \" . date(\"F d Y H:i:s.\",filectime($directory. \"/\" . $scanned_directory[$i])) . \"</p> \";\n\t\t\techo \"</div>\";\n\t\t}\n\t}\n\n}", "title": "" }, { "docid": "528e4f1d1ad4b388ae4fe7afe4675a2d", "score": "0.5823018", "text": "public function listContents($directory = '', $recursive = false): array\n {\n $directory = $this->applyPathPrefix($directory);\n $list = [];\n $marker = null;\n while (true) {\n $response = $this->listObjects($directory, $recursive, $marker);\n foreach ($response['items'] as $content) {\n $list[] = $this->normalizeFileInfo($content);\n }\n if (empty($response['marker'])) {\n break;\n }\n $marker = $response['marker'] ?: '';\n }\n return $list;\n }", "title": "" }, { "docid": "5b962b589c93f7cdd1e7d8d75e819839", "score": "0.58197194", "text": "public static function cleandir($directory)\n {\n return static::rmdir($directory, true);\n }", "title": "" }, { "docid": "887a9c90110f834c903fe77444d5485c", "score": "0.58015645", "text": "public function getDirectory() {\r\n\t\treturn $this->directory;\r\n\t}", "title": "" }, { "docid": "4b9ce87c5942553b1e3f992ef49ae34d", "score": "0.5778927", "text": "public function directory() {\n $config = \\Drupal::config('webspark_isearch.settings');\n $directory_url = $config->get('directory_path');\n return $this->retriveJsonFromService($directory_url);\n }", "title": "" }, { "docid": "bf5ca1de413bdd5df22dded5848c69e6", "score": "0.5762156", "text": "protected function parseCliDirectoriesInput($directory)\n {\n return array_filter(\n preg_match('/^\\[(.*)]$/', $directory, $match)\n ? explode(',', $match[1])\n : [$directory],\n 'strlen'\n );\n }", "title": "" } ]
6cd0029d6cb532322c54697ae15c6e18
Method for name column
[ { "docid": "02d0033a5c57997defd7a3cee16035f7", "score": "0.0", "text": "function column_url( $item ) {\n\n // create a nonce\n $edit_nonce = wp_create_nonce( 'sp_edit_customer' );\n $edit_url_name = wp_create_nonce( 'sp_edit_url_name' );\n\n $title = '<a href='.$item['url'].'>' . $item['url'] . '</a>';\n \n $actions = [\n 'edit_price' => sprintf( '<a href=\"admin.php?page=edit-url-name&id='.$item['id'].'\">Edit</a>', esc_attr( $_REQUEST['page'] ), 'edit_url_name', absint( $item['id'] ), $edit_url_name),\n\n // 'find_replace' => sprintf( '<a href=\"'.admin_url('admin-ajax.php').'?action=find_replace&id='.$item['id'].'\">Find Replace</a>', esc_attr( $_REQUEST['page'] ), 'edit_url_name', absint( $item['id'] ), $edit_url_name),\n ];\n \n return $title . $this->row_actions( $actions );\n }", "title": "" } ]
[ { "docid": "3b2b1a08b09ebc0be61a5f1e8d37f778", "score": "0.779136", "text": "public function getName(): string\n {\n return $this->properties['column_name'];\n }", "title": "" }, { "docid": "d89aa16cf6cfe7998ee47feaa3a4ebec", "score": "0.7712473", "text": "public static function representingColumn() {\n\t\treturn 'name';\n\t}", "title": "" }, { "docid": "d89aa16cf6cfe7998ee47feaa3a4ebec", "score": "0.7712473", "text": "public static function representingColumn() {\n\t\treturn 'name';\n\t}", "title": "" }, { "docid": "d89aa16cf6cfe7998ee47feaa3a4ebec", "score": "0.7712473", "text": "public static function representingColumn() {\n\t\treturn 'name';\n\t}", "title": "" }, { "docid": "1d40e3138dbb82556197b2c25ba7cbf6", "score": "0.76557535", "text": "public function getName()\n {\n return (string) $this->data[ $this->cols['name'] ];\n }", "title": "" }, { "docid": "92d66b29ce7af940ac4eb288e73900cd", "score": "0.7463487", "text": "function name($col)\n\t{\n\t\tif($this->_columnName[$col])\n\t\t{\n\t\t\treturn $this->_columnName[$col]['Name'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "a8ace9035916ed7a966843d0fe2752af", "score": "0.7409452", "text": "public function getColumnName() : string;", "title": "" }, { "docid": "8ed7173aa0decf81f7fcfbd6797fbe79", "score": "0.74065155", "text": "function setColumnName( $name ){\n /* if( $name != \"\" && $this->isheader ){ \n $this->columnname = str_replace( \" \", \"_\", strtolower( preg_replace( \"/[^a-zA-Z_0-9 ]/\", \"\", $this->getPlainData() ) ) ); \n }else */\n if($name != \"\"){\n $this->columnname = str_replace( \" \", \"_\", strtolower( preg_replace( \"/[^a-zA-Z_0-9 ]/\", \"\", $name ) ) ); \n }\n }", "title": "" }, { "docid": "41dbb45917c90c4a4b4b3f86e416c731", "score": "0.73212296", "text": "public function getName()\n {\n return HtmlHelper::nameToId($this->columnName);\n }", "title": "" }, { "docid": "8f02dc75ff6a5e9b29d28cabb72bd4f0", "score": "0.7207211", "text": "public function getColName(){\n\t\treturn $this->colname;\n\n\t//getColName use example\n\t/*\n\t\t$colname = $supplies->getColName();\n\n\t\tforeach($colname as $col){\n\t\t\techo $col->name;\n\t\t}\n\t*/\n\t}", "title": "" }, { "docid": "3c8d288be54006e11e3c8e1dd6a8bef8", "score": "0.70833343", "text": "public function getLabelColumn() {\n return $this->name;\n }", "title": "" }, { "docid": "6011c58c78a2687fcd4b93c3d3cf2362", "score": "0.7077079", "text": "public function getColumnNames();", "title": "" }, { "docid": "6011c58c78a2687fcd4b93c3d3cf2362", "score": "0.7077079", "text": "public function getColumnNames();", "title": "" }, { "docid": "6011c58c78a2687fcd4b93c3d3cf2362", "score": "0.7077079", "text": "public function getColumnNames();", "title": "" }, { "docid": "4cd8ead2165ad8e474e92a35c287f1e5", "score": "0.70182383", "text": "public function getNameColumnKey()\n\t{\n\t\treturn $this->nameColumn;\n\t}", "title": "" }, { "docid": "5f8df04b4eb66369b2997ff960eeb639", "score": "0.70066285", "text": "protected function getColumnName()\n {\n return Str::snake($this->argument('column'));\n }", "title": "" }, { "docid": "040d4b269d3da11f3662c9550748cf5b", "score": "0.6975875", "text": "public function getColumn():string;", "title": "" }, { "docid": "e6bf1bd6aa3fa967c82c7a3db3ca1764", "score": "0.6843508", "text": "public function getColumnName()\n {\n return $this->columnName;\n }", "title": "" }, { "docid": "e6bf1bd6aa3fa967c82c7a3db3ca1764", "score": "0.6843508", "text": "public function getColumnName()\n {\n return $this->columnName;\n }", "title": "" }, { "docid": "3d137dfd89ef7adb94e53379b9049672", "score": "0.68230903", "text": "function getIndexName(){\n return \"TXT_\".$this->columnname;\n }", "title": "" }, { "docid": "7f7a1d82298695c6078fbae831f89ac0", "score": "0.67676944", "text": "public function fetchName();", "title": "" }, { "docid": "736041ec384b7db9b2b9a13bc9291347", "score": "0.6712219", "text": "function column($name, $type, $len = 4)\n {\n }", "title": "" }, { "docid": "b28a348f7bd37c87efd1b749d598cb2b", "score": "0.67017895", "text": "protected function _getColumnName(){\n if(!$this->_entity_name){\n throw new Fd_Exception('no entity name defined for '.get_called_class().' on getColumnName');\n }\n return $this->_entity_name.\"_id\";\n }", "title": "" }, { "docid": "640a95e333e0ef3e8d22a95d2b2d9ebf", "score": "0.66693944", "text": "public function incol( $name )\n\t{\n\t\t$this->tag_name = $name;\n\t}", "title": "" }, { "docid": "701163e93942beba2a5a2b2fe3cd33eb", "score": "0.66657716", "text": "public function colIdName()\n\t{\n\t\treturn $this->columnName($this->name);\n\t}", "title": "" }, { "docid": "6ecdd0c974c93eb5ba83267b7f3433b8", "score": "0.6649221", "text": "public function getColumnByName($name){\n\t\treturn $this->columns[$name];\n\t}", "title": "" }, { "docid": "47364969ab5ffbad41b08aa1311eaf12", "score": "0.66451985", "text": "function quote_column_name($name) {\n\t\treturn '\"'.$name.'\"';\t\n\t}", "title": "" }, { "docid": "5ec7248f76956fb5c57d978d6875d0e5", "score": "0.661891", "text": "function column($name)\n\t{\n\t\twhile ($column = current($this->_columnName))\n\t\t{\n\t\t\tif($this->_columnName[key($this->_columnName)]['Name'] == $name)\n\t\t\t{\n\t\t\t\t$a = key($this->_columnName);\n\t\t\t\treset($this->_columnName);\n\t\t\t\treturn $a;\n\t\t\t}\n\t\t\tnext($this->_columnName);\n\t\t}\n\n\t\treset($this->_columnName);\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "a0b45bacdf7eb38024004fcedc32645d", "score": "0.659367", "text": "public function get_column($name)\n\t{\n\t\treturn $this->_columns[$name];\n\t}", "title": "" }, { "docid": "5134640faff60e9e479e2e604595b4d1", "score": "0.6586352", "text": "function Java_org_sqlite_NativeDB_column_name($stmt_pointer, $column_num) {\n\tglobal $sqlite_pointers_array, $sqlite_pointers_results;\n\t\n\tif (empty($stmt_pointer) || empty($sqlite_pointers_array[$stmt_pointer])) {\n\t\tthrow new \\java\\lang\\NullPointerException();\n\t}\n\treturn jstring($sqlite_pointers_results[$stmt_pointer]->columnName($column_num));\n}", "title": "" }, { "docid": "08cd811803e2c11c68abb6a29db47a42", "score": "0.6544002", "text": "public static function getColumn(): string\n {\n return self::$column;\n }", "title": "" }, { "docid": "e881a582c8cc864acb8e1ca5d267d6c2", "score": "0.6532786", "text": "public function getPropertyName();", "title": "" }, { "docid": "398694a0ee8bdcb12b1135147b39bdcc", "score": "0.65070844", "text": "public function column($name)\n {\n return $this->columns->get($name);\n }", "title": "" }, { "docid": "33342207e9527bb0861bdad2a1519062", "score": "0.6501314", "text": "public function getColumnName()\n {\n return parent::getColumnName() . '_id';\n }", "title": "" }, { "docid": "8ffda5fd67bd2a8437ed95eeccf0df5e", "score": "0.6489787", "text": "public function getColumn($name)\n {\n return $this->columns[$name];\n }", "title": "" }, { "docid": "3ead601024c60e33593e892873b48d33", "score": "0.647261", "text": "public function getRecordName()\n {\n return empty($this->nameColumn) ? null : $this->getDataValue($this->nameColumn);\n }", "title": "" }, { "docid": "30aa4d75bb2e08bfada10492d4d37c38", "score": "0.64584947", "text": "function column_name($item) {\n\t\t$actions = array(\n\t\t\t'edit' => sprintf('<a href=\"?page=%s&action=%s&id=%s\">Edit</a>',$_REQUEST['page'],'edit',$item['id']),\n\t\t\t'delete' => sprintf('<a href=\"?page=%s&action=%s&id=%s\">Delete</a>',$_REQUEST['page'],'delete',$item['id']),\n\t\t);\n\n\t\treturn sprintf('%1$s %2$s', $item['name'], $this->row_actions($actions) );\n\t}", "title": "" }, { "docid": "3c5b41f37f4dc78e3c0f1d8d89926844", "score": "0.6448611", "text": "function render_column_names()\n\t{\n\t\tforeach ($this->columns as $column)\n\t\t{\n\t\t\tif (isset($this->structure[$column][\"custom\"][\"label\"]))\n\t\t\t{\n\t\t\t\t$this->render_columns[$column] = $this->structure[$column][\"custom\"][\"label\"];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// do translation\n\t\t\t\t$this->render_columns[$column] = language_translate_string($this->language, $column);\n\t\t\t}\n\t\t}\n\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "2004e7363ec3374956756525b9f3418f", "score": "0.6439806", "text": "public function columnForAttribute($name)\n {\n $colHash = $this->columnsHash();\n return $colHash[$name];\n }", "title": "" }, { "docid": "32b3bff04fc1d070da5b827af9e4bb35", "score": "0.64390445", "text": "public function getColNick($colName) \n\t\t{\n\t\t\t$result = null;\n\t\t\t\n\t\t\tif(!empty($this->colsNicks[$colName]))\n\t\t\t\t$result = $this->colsNicks[$colName];\n\t\t\t \n\t\t\t//tenta encontrar alguma coluna quando colName foi\n\t\t\t//usado sem o idioma\n\t\t\t\n\t\t\tif(!$result && is_array($this->colsNicks))\n\t\t\tforeach($this->colsNicks as $literalName => $nick) {\n\t\t\t\t\n\t\t\t\t$newName = (System_Object_String::matchWithoutSuffixes($colName,$literalName));\n\t\t\t\t\n\t\t\t\tif($newName) {\n\t\t\t\t\t$result = $this->colsNicks[$newName];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!$result)\n\t\t\t\t@$result = ucfirst(reset(explode(\"_\",System_Language::translate($colName))));\n\t\t\t\n\t\t\treturn $result;\n\t\t}", "title": "" }, { "docid": "3b6c7afb96bd9c5b277a041fe61f33a4", "score": "0.64158297", "text": "public function get_name();", "title": "" }, { "docid": "3b6c7afb96bd9c5b277a041fe61f33a4", "score": "0.64158297", "text": "public function get_name();", "title": "" }, { "docid": "3b6c7afb96bd9c5b277a041fe61f33a4", "score": "0.64158297", "text": "public function get_name();", "title": "" }, { "docid": "3b6c7afb96bd9c5b277a041fe61f33a4", "score": "0.64158297", "text": "public function get_name();", "title": "" }, { "docid": "aebe9a9c3e9c1818839a1c62606240b1", "score": "0.640906", "text": "public function getColumnNames()\r\n\t{\r\n\t\t$result = array();\r\n\t\t$i=0;\r\n\t\tforeach($this->table_data as $value ) \r\n\t\t{\r\n\t\t\t$result[$i++] = $this->name.\".{$value}\";\r\n \t}\r\n \treturn $result;\r\n\t}", "title": "" }, { "docid": "09f9c6d030b611c60afda11174689ba8", "score": "0.6396729", "text": "public function DisplayTitle( $colName ) {\n\t\treturn $colName ; \n\t}", "title": "" }, { "docid": "ce339d2dc0e427ddec3efbba67b44434", "score": "0.63929224", "text": "public function getColumnName($index){\n $this->letter = array();\n $this->findPosition($index);\n return join(array_reverse($this->letter), '');\n }", "title": "" }, { "docid": "7674ff7ae459cc22ec2fc7743f395ccf", "score": "0.6382651", "text": "public function get($name) : ColumnInterface;", "title": "" }, { "docid": "b80457e9e1000629ffd9fe8bf0e701ef", "score": "0.6380612", "text": "abstract public function get_name();", "title": "" }, { "docid": "26546662a7362fce7d0e79fe50d37834", "score": "0.6376367", "text": "public function column($name, $label = '')\r\n {\r\n if (is_string($name)) {\r\n\r\n if (Str::contains($name, '.')) {\r\n return $this->addRelationColumn($name, $label);\r\n }\r\n\r\n if (Str::contains($name, '->')) {\r\n return $this->addJsonColumn($name, $label);\r\n }\r\n }\r\n if($name instanceof \\Closure){\r\n return $this->addColumn($name, $label);\r\n }\r\n\r\n if ($column = $this->handleRelationColumn($name, $label)) {\r\n return $column;\r\n }\r\n\r\n return $this->addColumn($name, $label);\r\n }", "title": "" }, { "docid": "3fd15d17db298e4c45a0c3c99f014019", "score": "0.6365545", "text": "public function get_name(/* ... */)\n {\n return $this->_name;\n }", "title": "" }, { "docid": "97e5331119bb2da81d60f5e55ebe2063", "score": "0.63439214", "text": "function getName()\n {\n\n $sql = \"SELECT name FROM \" . $this->table_name . \" WHERE id = ? limit 0,1\";\n\n $prep_state = $this->db_conn->prepare($sql);\n $prep_state->bindParam(1, $this->id); // und somit der Platzhalter der SQL Anweisung :id durch die angegebene Variable $id ersetzt.\n $prep_state->execute();\n\n $row = $prep_state->fetch(PDO::FETCH_ASSOC);\n\n $this->name = $row['name'];\n }", "title": "" }, { "docid": "006af5b470897002fd2fb918076a8149", "score": "0.63420004", "text": "public function getFieldName();", "title": "" }, { "docid": "006af5b470897002fd2fb918076a8149", "score": "0.63420004", "text": "public function getFieldName();", "title": "" }, { "docid": "006af5b470897002fd2fb918076a8149", "score": "0.63420004", "text": "public function getFieldName();", "title": "" }, { "docid": "b3dfab60f892345ea195c120d274e42a", "score": "0.63380826", "text": "public static function getColumnName( $fieldName = NULL );", "title": "" }, { "docid": "994aedbdc85944a0e20015e61986a558", "score": "0.63269645", "text": "public function getNameColumns() {\n return ['Locataire', 'Maison', 'Chambre', 'Bail', 'Etat des lieux', \n 'Charte', 'Garantie à payer', 'Garantie payée'];\n }", "title": "" }, { "docid": "5e48e8b3f28ff8df18197de3b5501063", "score": "0.63177854", "text": "public function get_column() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0fc7fa1e3d9a915b31b887755001eed6", "score": "0.6311068", "text": "public function getColumn($columnName);", "title": "" }, { "docid": "c7a2c18c1ccf60e3890d7f8d97f047b8", "score": "0.63103616", "text": "public function display($name) {\n $cols = $this->cols();\n\n if (!array_key_exists($name, $cols)) {\n return;\n }\n\n $col = $cols[$name];\n return $col->stringify($this->column($name));\n }", "title": "" }, { "docid": "a197636ad6b2f72e6e1ee718fbb3431c", "score": "0.6307368", "text": "function getColoumnName(){\n\n\t\t\t$query = $this->db->list_fields('subcon_tb');\n\n\t\t\treturn $query;\n\n\t}", "title": "" }, { "docid": "a0cd1c9e0bbeb2f458e51fa7f98a2244", "score": "0.6304885", "text": "private function _getColumnName($memberName)\r\n {\r\n foreach ($this->_getMapList() as $map)\r\n if ($map->getModelMemberName() === $memberName)\r\n return $map->getEntityColumnName();\r\n }", "title": "" }, { "docid": "2b469fcdd153f65d65659f85d9a2ef3b", "score": "0.62961036", "text": "public static function column_to_name($c_name){\n\t\t\n\t\t$where = \"name='\".$c_name.\"_set'\";\t\t\n\t\t\t$rs = safe_row('val', 'txp_prefs', $where);\t\t\t\t\n return $rs['val']; \n\t\t}", "title": "" }, { "docid": "de8b0bb4727016e43e813ae0d2df265c", "score": "0.628765", "text": "public function setColumnName(string $columnName);", "title": "" }, { "docid": "1a8ccc7c5df2127a3f1daf4aef1dce91", "score": "0.62871206", "text": "public function getOwnerColumnName();", "title": "" }, { "docid": "9070c5b1c204ad0b0018d78a7d06f0b9", "score": "0.62776625", "text": "protected function queryColumn()\n {\n }", "title": "" }, { "docid": "2d6bc90529f1362da655477a29e9bea7", "score": "0.62586504", "text": "function sanitizeColumnName($column_name){\n\t$start = strpos($column_name, '[');\n\t$label_text = '';\n\tif($start){\n\t\t$end = strpos($column_name,']');\n\t\t$label_text = extractNestedColumnName($column_name,$start,$end);\n\t}else{\n\t\t$label_text = $column_name;\n\t}\n\treturn $label_text;\n}", "title": "" }, { "docid": "0ee19ba3003feeefcb22d4cfefeb3898", "score": "0.6251216", "text": "public function testGetColumnName() {\r\n $this->assertEquals('A', $this->tableModel->getColumnName(0));\r\n $this->assertEquals('C', $this->tableModel->getColumnName(2));\r\n }", "title": "" }, { "docid": "d63a0aa84a39a41e15f0603ab4c146de", "score": "0.62405556", "text": "public function name();", "title": "" }, { "docid": "d63a0aa84a39a41e15f0603ab4c146de", "score": "0.62405556", "text": "public function name();", "title": "" }, { "docid": "d63a0aa84a39a41e15f0603ab4c146de", "score": "0.62405556", "text": "public function name();", "title": "" }, { "docid": "d63a0aa84a39a41e15f0603ab4c146de", "score": "0.62405556", "text": "public function name();", "title": "" }, { "docid": "d63a0aa84a39a41e15f0603ab4c146de", "score": "0.62405556", "text": "public function name();", "title": "" }, { "docid": "d63a0aa84a39a41e15f0603ab4c146de", "score": "0.62405556", "text": "public function name();", "title": "" }, { "docid": "d63a0aa84a39a41e15f0603ab4c146de", "score": "0.62405556", "text": "public function name();", "title": "" }, { "docid": "d63a0aa84a39a41e15f0603ab4c146de", "score": "0.62405556", "text": "public function name();", "title": "" }, { "docid": "d63a0aa84a39a41e15f0603ab4c146de", "score": "0.62405556", "text": "public function name();", "title": "" }, { "docid": "d63a0aa84a39a41e15f0603ab4c146de", "score": "0.62405556", "text": "public function name();", "title": "" }, { "docid": "d63a0aa84a39a41e15f0603ab4c146de", "score": "0.62405556", "text": "public function name();", "title": "" }, { "docid": "a5d04d1d58e852593de896ccfc091091", "score": "0.6240035", "text": "protected function indexColumnName(): AST\\IndexColumnName\n {\n $columnName = $this->schemaObjectName();\n $length = $this->dataTypeLength();\n $direction = null;\n\n if ($this->lexer->isNextToken(Lexer::T_ASC)) {\n $this->match(Lexer::T_ASC);\n $direction = 'ASC';\n } elseif ($this->lexer->isNextToken(Lexer::T_DESC)) {\n $this->match(Lexer::T_DESC);\n $direction = 'DESC';\n }\n\n return new AST\\IndexColumnName($columnName, $length, $direction);\n }", "title": "" }, { "docid": "d45f8b0a7e982580196530bf1ae81519", "score": "0.62368447", "text": "protected function determineOrderColumnName(): string\n {\n return $this->sortable['order_column'] ?? 'weight';\n }", "title": "" }, { "docid": "8e24a5044d11e9b8a358b48573cbd95e", "score": "0.6236027", "text": "abstract public function getColumnDefinition(): string;", "title": "" }, { "docid": "7c6fd4441efbe11f487ac0015d313679", "score": "0.6228623", "text": "public function get_name() { return $this->name; }", "title": "" }, { "docid": "51af9c210cb1339c4f78679fe9e20e97", "score": "0.6224321", "text": "public abstract function name();", "title": "" }, { "docid": "d963745fe7af133f58c058fc952d084b", "score": "0.6210781", "text": "public function getPathColumnName()\n {\n return $this->pathColumn;\n }", "title": "" }, { "docid": "fe202a6c9f4c3f5990167d5e4ca120af", "score": "0.6209109", "text": "public function getColumn();", "title": "" }, { "docid": "45824e22a10047142677a58390b738eb", "score": "0.62063605", "text": "public function quoteColumnName($name)\n\t{\n\t\treturn '\"'.$name.'\"';\n\t}", "title": "" }, { "docid": "ffde84d465099dbdd8ddac5543db05ab", "score": "0.6179426", "text": "public function getDataTypeName();", "title": "" }, { "docid": "bc61cdb1b0ae371eda8e50fc94098d38", "score": "0.61747307", "text": "public function get_name(){\n return $this->name;\n }", "title": "" }, { "docid": "ffd821210ccd5d529391058f42bb50fa", "score": "0.61643803", "text": "function columns($table_name, $name = null) {\n\t\t\n\t}", "title": "" }, { "docid": "59982edec7b2ba7266029a4e32a9b175", "score": "0.6154608", "text": "protected function get_primary_column_name()\n {\n }", "title": "" }, { "docid": "e90890e239a21fce30ebd33ebdfdeea0", "score": "0.614006", "text": "public function getNameValue($data, $nameColumn, $separator = '')\n {\n if (is_array($nameColumn)) {\n $values = array();\n\n foreach ($nameColumn as $n) {\n $values[] = $data[$n];\n }\n\n if (is_array($separator)) {\n return vsprintf(implode('%s', $values), array_pad($separator, (count($values) - 1), ' '));\n } else {\n return implode($separator, $values);\n }\n }\n\n return $data[$nameColumn];\n }", "title": "" }, { "docid": "97b5f3e2b645059f317556b550c7c32b", "score": "0.61337215", "text": "abstract public function name();", "title": "" }, { "docid": "97b5f3e2b645059f317556b550c7c32b", "score": "0.61337215", "text": "abstract public function name();", "title": "" }, { "docid": "6c19d8acd45b302b9debb9ad074a13f0", "score": "0.61310816", "text": "public function getColumn(string $column);", "title": "" }, { "docid": "6c118c0b6957b3b279e9b0dae6d1c939", "score": "0.61115056", "text": "function get_name()\r\n\t{\r\n\t\treturn $this->name;\r\n\t}", "title": "" }, { "docid": "6a30868be873113f08139e2f99e365c5", "score": "0.6108207", "text": "public static function getDataColumnName($sql)\n {\n $result = mysqli_query(self::$conexion, $sql);\n $string = \"\\n\";\n if ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {\n do {\n $string .= \"\\t\\t\\t\\t'\" . $row['COLUMN_NAME'] . \"',\\n\";\n } while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC));\n }\n\n return $string;\n }", "title": "" }, { "docid": "0dd7a6ab59b815084c75043b9bf0f7f8", "score": "0.6104982", "text": "public function column_name_by_old_name($node_table, $old_name) {\n if ( dbsteward::$ignore_oldname ) {\n throw new exception(\"dbsteward::ignore_oldname option is on, column_name_by_old_name() should not be getting called\");\n }\n\n $name = false;\n\n foreach(dbx::get_table_columns($node_table) as $column) {\n if (strcasecmp($column['oldName'], $old_name) == 0) {\n $name = $column['name'];\n break;\n }\n }\n\n return $name;\n }", "title": "" }, { "docid": "d679dfa001f158808ade4d2f2631d309", "score": "0.60949415", "text": "public function name() { }", "title": "" }, { "docid": "d679dfa001f158808ade4d2f2631d309", "score": "0.60949415", "text": "public function name() { }", "title": "" }, { "docid": "2e63ed05e897e3b51307363e3603cf4e", "score": "0.6090143", "text": "public function indexColumn() : ?string;", "title": "" } ]
652b179ec2058c4b968c5caeab4a646b
Create a booking function
[ { "docid": "90373eab2b5f1a0c7c9e92b3ebfc3952", "score": "0.0", "text": "public function createBooking(\n $pickUpDate,\n $pickUpTime,\n $returnDate,\n $returnTime,\n $pickUpLocationCode,\n $returnLocationCode,\n $carCategory\n )\n { \n $result = $data = $this->ThriftyClass->createBooking(\n $pickUpDate,\n $pickUpTime,\n $returnDate,\n $returnTime,\n $pickUpLocationCode,\n $returnLocationCode,\n $carCategory\n );\n\n return Response::json($result);\n }", "title": "" } ]
[ { "docid": "9a0c82d5edf947306fe63aac47a84644", "score": "0.7152679", "text": "function Booking()\n\t{ \n\t// #################### //\n\t}", "title": "" }, { "docid": "1d65a0c2e04e2a07ea26db76cafd21e4", "score": "0.69530666", "text": "public function createBooking()\n {\n echo \"Booking has been created using through {$this->provider}\";\n }", "title": "" }, { "docid": "f89af4fe02079852c7c667f21773f3a5", "score": "0.67775506", "text": "function callBooking(){\n\t\t$tableAmount = round($_POST['nbPpl']/2,0,PHP_ROUND_HALF_UP);\n\t\t$maxTableAmount = 20;\n\t\t$bdd = $this->databaseConnect();\n\t\t// Adds up the amount of tables for a given timeslot and day and fetch the result\n\t\t$tableReq = $bdd->prepare('SELECT SUM(table_amount) FROM reservation \n\t\t\tWHERE reservation_day = :reservation_day AND reservation_timeslot = :reservation_timeslot');\n\t\t$tableReq->execute(array(\n\t\t\t'reservation_day'=>$_POST['day'],\n\t\t\t'reservation_timeslot'=>$_POST['timeslot']));\n\t\t$availableTable = $tableReq->fetch();\n\t\t$tableNb = $availableTable[0];\n\t\tif($tableAmount+$tableNb <= $maxTableAmount){\n\t\t\t$req = $bdd->prepare('INSERT INTO reservation(client_amount,table_amount,reservation_day,reservation_timeslot,users_id,reservation_time)\n\t\t\tVALUES(:client_amount,:table_amount,:reservation_day,:reservation_timeslot,:users_id,:reservation_time)');\n\t\t\t$req->execute(array(\n\t\t\t'client_amount'=>$_POST['nbPpl'],\n\t\t\t'table_amount'=>$tableAmount,\n\t\t\t'reservation_day'=>$_POST['day'],\n\t\t\t'reservation_timeslot'=>$_POST['timeslot'],\n\t\t\t'users_id'=>$_SESSION['id'],\n\t\t\t'reservation_time'=>$_POST['time']));\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "50efec45ba94e56fcf93ea64bd0484a8", "score": "0.66599625", "text": "public function create_booking()\n {\n\n $start = Time_slot::lists('time_slot', 'id');\n\n foreach ($start as $key => $value) {\n\n $start[$key] = date('g:i A', strtotime($value));\n }\n\n $start[0] = 'ALL DAY';\n\n $finish = $start;\n\n $finish = array_splice($finish, -22, -1);\n\n array_push($finish, '10.45 PM');\n\n return view('admin.block', compact('start', 'finish'));\n }", "title": "" }, { "docid": "77ce78114823fef0a1743ee4cfb37a62", "score": "0.6538837", "text": "public function create(){\n if($this->params['booking']['id']){\n $this->update();\n return;\n }\n $form_values_to_update = array();\n $this->update_formatted_time_params();\n \n $customer_params = $this->params['customer'];\n $booking_params = $this->params['booking'];\n $custom_fields_data = isset($customer_params['custom_fields']) ? $customer_params['custom_fields'] : [];\n\n $booking = new OsBookingModel();\n $booking->set_data($booking_params);\n\n // Customer update/create\n if($booking->customer_id){\n $customer = new OsCustomerModel($booking->customer_id);\n $is_new_customer = false;\n }else{\n $customer = new OsCustomerModel();\n $is_new_customer = true;\n }\n $customer->set_data($customer_params);\n if($customer->validate_custom_fields($custom_fields_data) && $customer->save()){\n $customer->save_custom_fields($custom_fields_data);\n if($is_new_customer){\n OsNotificationsHelper::process_new_customer_notifications($customer);\n OsActivitiesHelper::create_activity(array('code' => 'customer_create', 'customer_id' => $customer->id));\n }\n\n $booking->customer_id = $customer->id;\n $form_values_to_update['booking[customer_id]'] = $booking->customer_id;\n if($booking->save()){\n $form_values_to_update['booking[id]'] = $booking->id;\n $response_html = __('Appointment Added: ID#', 'latepoint') . $booking->id;\n $status = LATEPOINT_STATUS_SUCCESS;\n do_action('latepoint_booking_created_admin', $booking);\n OsNotificationsHelper::process_new_booking_notifications($booking);\n OsActivitiesHelper::create_activity(array('code' => 'booking_create', 'booking' => $booking));\n }else{\n $response_html = $booking->get_error_messages();\n $status = LATEPOINT_STATUS_ERROR;\n }\n }else{\n // error customer validation/saving\n $status = LATEPOINT_STATUS_ERROR;\n $response_html = $customer->get_error_messages();\n if(is_array($response_html)) $response_html = implode(', ', $response_html);\n }\n if($this->get_return_format() == 'json'){\n $this->send_json(array('status' => $status, 'message' => $response_html, 'form_values_to_update' => $form_values_to_update));\n }\n }", "title": "" }, { "docid": "9a1ecdd9732aced93cfeb821f97b162b", "score": "0.6493648", "text": "function ajax_mbc_booking_checkDates(){\n\tif(!isset( $_POST['mbc_bookings_nonce'] ) || !wp_verify_nonce($_POST['mbc_bookings_nonce'], 'mbc-bookings-nonce') ){\n\t\tdie('Permissions check failed!');\n\t}\t\n\t\n\t$output = '';\n\t\n\tif(isset($_POST[\"calId\"]) && isset($_POST[\"from\"]) && isset($_POST[\"to\"])){\n\t\tglobal $wpdb;\n\t\t$abcFromValue = sanitize_text_field($_POST[\"from\"]); \n\t\t$abcToValue = sanitize_text_field($_POST[\"to\"]);\n\t\t$calId = intval($_POST[\"calId\"]);\n\t\t$bookingId = 0;\n\t\tif(isset($_POST[\"bookingId\"])){\n\t\t\t$bookingId = intval($_POST[\"bookingId\"]);\n\t\t}\n\t\t$output = '';\n\t\t$dateformat = getAbcSetting(\"dateformat\");\n\t\t// Normalizing entered dates\n\t\t$normFromValue = mbc_booking_formatDateToDB($abcFromValue);\n\t\t$normToValue = mbc_booking_formatDateToDB($abcToValue);\n\t\tif(getAbcAvailability($calId, $normFromValue, $normToValue, 1, $bookingId)){ // Checking if calendar is available for the time frame\n\t\t\t$numberOfDays = floor((strtotime($normToValue) - strtotime($normFromValue))/(60*60*24));\n\t\t\t$totalPrice = mbc_booking_getTotalPrice($calId, $normFromValue, $numberOfDays);\n\t\t\t$output = '<span class=\"uk-text-success\">'.__('Calendar is available.', 'multilang-booking-calendar').' ';\n\t\t\t$output .= __('Room price for the stay', 'multilang-booking-calendar').': <span id=\"mbc-room-price\" class=\"mbc-priceindicator\" data-price=\"'.$totalPrice.'\">'.mbc_booking_formatPrice($totalPrice).'</span></span>';\n\t\t\tif(getAbcRoomId($calId, $normFromValue, $normToValue, 1, $bookingId)<1){\n\t\t\t\t$output .= '<br/><span class=\"uk-text-danger\">'.__('There is an overlap in the bookings. Check if you can move other bookings to other rooms. The booking can only be saved as \"open\"', 'multilang-booking-calendar').'.</span>';\n\t\t\t}\n\t\t} else {\n\t\t\t$output .= '<span class=\"uk-text-danger\">'.__('No rooms available for this calendar during the selected time period', 'multilang-booking-calendar').'<span>';\n\t\t}\n\t} else { \n\t\t$output = ''.__('Something went wrong.', 'multilang-booking-calendar').'';\n\t}\n\techo $output;\t\n\tdie();\t\n}", "title": "" }, { "docid": "673d29ee554d144d6010fa3a1bacc31c", "score": "0.6450286", "text": "function newBooking($dateRange, $roomNumbers, $guestId) {\n global $json, $link;\n\n $guestId = mysqli_real_escape_string($link, $guestId);\n $checkIn = mysqli_real_escape_string($link, $dateRange->getStartSqlTimestamp());\n $checkOut = mysqli_real_escape_string($link, $dateRange->getFinishSqlTimestamp());\n\n $insertBooking = \"INSERT INTO bookings (guest_id, check_in, check_out) VALUES ('$guestId', '$checkIn', '$checkOut')\";\n\n mysqli_query($link, $insertBooking);\n\n $bookingId = mysqli_insert_id($link);\n\n if ($bookingId === 0) {\n $json->errorMessage = 'Could not create new booking';\n return;\n }\n\n $values = array();\n foreach ($roomNumbers as $room) {\n $room = mysqli_real_escape_string($link, $room);\n array_push($values, \"('$bookingId', '$room')\");\n }\n\n $insertBookingRoom = \"INSERT INTO booking_rooms (booking_id, room_number) VALUES \" . implode(',', $values);\n\n $result = mysqli_query($link, $insertBookingRoom);\n\n if (!$result) {\n $json->errorMessage = 'Could not book rooms';\n return;\n }\n\n $json->success = true;\n}", "title": "" }, { "docid": "03ce1371b982b6ed02c99288383a9d3c", "score": "0.641715", "text": "function manualBooking(){\n\t\t$bdd = $this->databaseConnect();\n\t\t$tableAmount = round($_POST['nbPpl']/2,0,PHP_ROUND_HALF_UP);\n\t\t$maxTableAmount = 20;\n\t\t$tableReq = $bdd->prepare('SELECT SUM(table_amount) FROM reservation \n\t\t\tWHERE reservation_day = :reservation_day AND reservation_timeslot = :reservation_timeslot');\n\t\t$tableReq->execute(array(\n\t\t\t'reservation_day'=>$_POST['day'],\n\t\t\t'reservation_timeslot'=>$_POST['timeslot']));\n\t\t$availableTable = $tableReq->fetch();\n\t\t$tableNb = $availableTable[0];\n\t\tif($tableAmount+$tableNb <= $maxTableAmount){\n\t\t$req = $bdd->prepare('INSERT INTO reservation(client_amount,table_amount,reservation_day,reservation_timeslot,users_id,reservation_time)\n\t\t\tVALUES(:client_amount,:table_amount,:reservation_day,:reservation_timeslot,:users_id,:reservation_time)');\n\t\t\t$req->execute(array(\n\t\t\t'client_amount'=>$_POST['nbPpl'],\n\t\t\t'table_amount'=>$tableAmount,\n\t\t\t'reservation_day'=>$_POST['day'],\n\t\t\t'reservation_timeslot'=>$_POST['timeslot'],\n\t\t\t'users_id'=>$_POST['userId'],\n\t\t\t'reservation_time'=>$_POST['time']));\n\t\t\treturn 'true';\n\t\t}else{\n\t\t\treturn 'false';\n\t\t}\n\t}", "title": "" }, { "docid": "84e66ef395e6aff6e1ea1f8779f1c6d6", "score": "0.6401561", "text": "function creatingNewBooking($user_id , $vehicalNumber){\n\tglobal $mysqli;\n\n\t// Get user category by user id and validate\n\t$rec = mysqli_query($mysqli,\"SELECT category,is_active\n\t\tFROM\n\t\tuser\n\t\tWHERE\n\t\tid=\".$user_id.\"\");\n\t$row = mysqli_fetch_row($rec);\n\tif($row==null){\n\t\t$msg = \"User is not a valid user with id \".$user_id;\n\t\treturn $msg;\n\t}\n\t$user_categoty = $row[0];\n\t$isActiveUser=$row[1];\n\tif($isActiveUser!=1)\n\t{\n\t\t$msg = \"User is not a active user with \".$user_id;\n\t\treturn $msg;\n\t}\n\n\n\t$userExisingBooking = checkIfExistingValidBooking($user_id);\n\tif($userExisingBooking!= null)\n\t{\n\t\t$boolingDetail['parkingId']=$userExisingBooking[1];\n\t\t$boolingDetail['bookingId']=$userExisingBooking[0];\n\t\t$boolingDetail['Messgae']=\"user has exising booking till time \".$userExisingBooking[2];\n\t\tprint_r($boolingDetail);\n\t\treturn $boolingDetail;\n\t}\n\n\t$availableParking = getAllAvailableParkingSlot();\n\t$availableLotsCount = count($availableParking);\n\tif($availableLotsCount==0)\n\t{\n\t\treturn \"Parkinglot is full\";\n\t}\n\t$totalParkingSlot = PARKINGSLOT;\n\n\t$PersentageOccupency =100 - ($availableLotsCount/$totalParkingSlot)*100;\n\n\tif($user_categoty == GERNAL_CATEGORY)\n\t{ \n\t\tif($availableParking[$availableLotsCount-1][IS_RESERVED_IDX]==0)\n\t\t{\n\t\t\tif($PersentageOccupency<50)\n\t\t\t\treturn bookParking($availableParking[$availableLotsCount-1][PARKING_ID_IDX],$user_id,date(\"Y-m-d H:i:s\"),date(\"Y-m-d H:i:s\", strtotime(\"+30 minutes\")),$vehicalNumber);\n\t\t\telse\n\t\t\t\treturn bookParking($availableParking[$availableLotsCount-1][PARKING_ID_IDX],$user_id,date(\"Y-m-d H:i:s\"),date(\"Y-m-d H:i:s\", strtotime(\"+15 minutes\")),$vehicalNumber);\n\t\t}\n\t}elseif($user_categoty == PHYSICAL_HANDICAP or $user_categoty == PREGNANT_WOMAN){\n\n\t\tif($PersentageOccupency<50)\n\t\t\treturn bookParking($availableParking[0][PARKING_ID_IDX],$user_id,date(\"Y-m-d H:i:s\"),date(\"Y-m-d H:i:s\", strtotime(\"+30 minutes\")),$vehicalNumber);\n\t\telse\n\t\t\treturn bookParking($availableParking[0][PARKING_ID_IDX],$user_id,date(\"Y-m-d H:i:s\"),date(\"Y-m-d H:i:s\", strtotime(\"+15 minutes\")),$vehicalNumber);\n\t\t\n\t}\t\t\t\n\n}", "title": "" }, { "docid": "2b199f0369eb5dd7c8362b03abe59724", "score": "0.6226465", "text": "function make_calendar($selected_date, $back, $forward, $day, $month, $year) {\n\n // $day, $month and $year are the $_GET variables in the URL\n $this->day = $day; \n $this->month = $month;\n $this->year = $year;\n \n\t// $back and $forward are Unix Timestamps of the previous / next month, used to give the back arrow the correct month and year \n $this->selected_date = $selected_date; \n $this->back = $back;\n $this->back_month = date(\"m\", $back);\n $this->back_year = date(\"Y\", $back); // Minus one month back arrow\n \n $this->forward = $forward;\n $this->forward_month = date(\"m\", $forward);\n $this->forward_year = date(\"Y\", $forward); // Add one month forward arrow \n \n // Make the booking array\n $this->make_booking_array($year, $month);\n \n}", "title": "" }, { "docid": "111de040d1d188cbc135b7cfb7a2b6f4", "score": "0.62225246", "text": "public function create_block_bookings($request, $date)\n {\n $start_time = $request->input('start_time');\n\n $finish_time = $request->input('finish_time');\n\n if ($start_time == 0) {\n\n $start_time = 1; //config.variable get id of first_time_slot\n $finish_time = 21;\n };\n\n $court = $request->input('court');\n\n $description = $request->input('description');\n\n $difference = $finish_time - $start_time;\n\n $increment = $start_time + $difference;\n\n $booking_data = [];\n\n for ($i = $start_time; $i <= $increment; $i++) {\n\n if ($this->checkIfExistingBooking($court, $date, $i)) {\n\n $booking_data[] = $this->cancelledBookingData($court, $date, $i);\n\n $this->overRideExistingBooking($court, $date, $i, $description);\n\n } else {\n\n $new_booking = new Booking;\n\n $new_booking->court_id = $court;\n\n $new_booking->booking_date = $date;\n\n $new_booking->time_slot_id = $i;\n\n $new_booking->booking_description = $description;\n\n $new_booking->player1_id = \\Auth::user()->id;\n\n $new_booking->booking_cat_id = 4;\n\n $new_booking->save();\n\n }\n\n };\n\n return $this->sortBookingDataForEmail($booking_data);\n\n }", "title": "" }, { "docid": "f2341b1b189b0a3ac2e6c54983f57ca1", "score": "0.62177455", "text": "public function getBookingUrl(){\n return 'http://booking.brusselstangofestival.com/frontend/web/booking/create?event_uuid='.$this->uuid;\n }", "title": "" }, { "docid": "d502f7b00135708a68be7a564f0c6b3f", "score": "0.6196021", "text": "static function booking(User $user, Array $services) {\r\n ?>\r\n <!-- Page content -->\r\n <div class=\"w3-content\" style=\"max-width:1100px\">\r\n <!-- Book Section -->\r\n <div class=\"w3-col m6 w3-padding-large w3-hide-small\">\r\n <img src=\"img\\book.jpg\" class=\"book-image w3-opacity-min\" alt=\"Booking Pic\" >\r\n </div>\r\n <div class=\"w3-container w3-padding-85mod\" id=\"book\">\r\n <h1 style=\"font-family: 'Kristi', cursive; font-size: 40px;\">Welcome <?php echo $user->getFirstName() ?>, Book your Service</h1>\r\n <p>Choose the service(s), the date, for how many people, and any special request.</p>\r\n <form method = \"POST\">\r\n <p><select class=\"w3-input w3-padding-16\" name= \"bookingDetails\">\r\n <option selected>Select your Service</option>\r\n <?php\r\n foreach($services as $service) {\r\n ?>\r\n <option value=\"<?= $service->getServiceID() ?>|<?= $service->getServiceName() ?>|<?= $service->getServicePrice() ?>\" >\r\n <?= $service->getServiceName() ?> </option>\r\n <?php\r\n }\r\n ?>\r\n </select>\r\n </p>\r\n <p><input class=\"w3-input w3-padding-16\" type=\"number\" placeholder=\"How many people\" required name=\"quantity\"></p>\r\n <p><input class=\"w3-input w3-padding-16\" type=\"date\" placeholder=\"Date\" required name=\"bookingDate\" ></p>\r\n <p><input class=\"w3-input w3-padding-16\" type=\"time\" placeholder=\"time\" required name=\"bookingTime\" ></p>\r\n <p><button class=\"w3-button w3-light-grey w3-section\" type=\"submit\" name=\"action\" value= \"addBooking\">ADD A SERVICE</button></p> \r\n </form>\r\n </div>\r\n <?php\r\n }", "title": "" }, { "docid": "5880ed7b25d320060f41229807558a0d", "score": "0.61610985", "text": "function mbc_booking_cancBooking() {\n\tglobal $wpdb;\n\n\tif ( !current_user_can( mbc_booking_admin_capabilities() ) ) {\n\t\twp_die(\"Go away\");\n\t}\n\tif (isset($_GET[\"id\"])) {\n\t\t$bookingId = intval($_GET[\"id\"]);\n\t\t$wpdb->update($wpdb->prefix.'mbc_bookings', array('state' => 'canceled'), array('id' => $bookingId )); // Setting booking-state to confirmed\n\t\t$row = $wpdb->get_row(\"SELECT * FROM \".$wpdb->prefix.\"mbc_bookings WHERE id = '\".$bookingId.\"'\", ARRAY_A);\n\t\tif (filter_var($row[\"email\"], FILTER_VALIDATE_EMAIL)) {\n\t\t\t$row[\"extras\"] = getAbcExtrasForBooking($bookingId);\n\t\t\tsendAbcGuestMail($row);\n\t\t}\n\t\twp_redirect( admin_url( \"admin.php?page=multilang_booking_calendar&setting=canceled\" ) );\n\t} else {\n\t\twp_redirect( admin_url( \"admin.php?page=multilang_booking_calendar&setting=error\" ) );\n\t}\t\n\texit;\n}", "title": "" }, { "docid": "7809af3f5cd3f122f8c443296bc9e6e6", "score": "0.61408985", "text": "function mbc_booking_confBooking() {\n\tglobal $wpdb;\n\tif ( !current_user_can( mbc_booking_admin_capabilities() ) ) {\n\t\twp_die(\"Go away\");\n\t}\n\t$rows = '';\n\tif ( isset($_GET[\"id\"]) ) {\t\n\t\t$bookingId = intval($_GET[\"id\"]);\n\t\t$row = $wpdb->get_row(\"SELECT * FROM \".$wpdb->prefix.\"mbc_bookings WHERE id = '\".$bookingId .\"'\", ARRAY_A);\n\t\tif(getAbcAvailability($row[\"calendar_id\"], $row[\"start\"], $row[\"end\"], 1, $bookingId)){\n\t\t\t$wpdb->update($wpdb->prefix.'mbc_bookings', array('state' => 'confirmed'), array('id' => $bookingId)); // Setting booking-state to confirmed\n\t\t\tif (filter_var($row[\"email\"], FILTER_VALIDATE_EMAIL)) {\n\t\t\t\t$row[\"state\"] = 'confirmed';\n\t\t\t\t$row[\"extras\"] = getAbcExtrasForBooking($bookingId);\n\t\t\t\tsendAbcGuestMail($row);\n\t\t\t}\n\t\t\twp_redirect( admin_url( \"admin.php?page=multilang_booking_calendar&setting=confirmed\" ) );\n\t\t} else {\n\t\t\twp_redirect( admin_url( \"admin.php?page=multilang_booking_calendar&setting=error\" ) );\n\t\t}\t\t \n\t}\n\t\t\n\texit;\n}", "title": "" }, { "docid": "37ea236cd639459ed26171dfaf1c5ad5", "score": "0.6135955", "text": "public function booking_document($booking_id,$create=TRUE)\n {\n $booking = $this->get_booking_details($booking_id);\n $transaction = $this->get_transaction_details(NULL, $booking_id);\n $contact = $this->get_contact_details($booking['booking_contact_id'],$transaction['transaction_contact_id']);\n $schedule = $this->get_schedules_details(NULL,$booking_id);\n $data = array_merge($transaction,$booking,$contact,$schedule,$this->system_details);\n\n $booking_alteration = array(\n 'TodaysDate',\n 'system_user_first_name',\n 'system_user_last_name',\n 'contact_id',\n 'contact_first_name',\n 'contact_last_name',\n 'contact_address' ,\n 'contact_address1',\n 'contact_address2',\n 'contact_address3',\n 'contact_town',\n 'contact_county',\n 'contact_postcode',\n 'booking_id',\n 'transaction_outstanding',\n 'contact_student_first_name',\n 'contact_student_last_name',\n 'schedule_name',\n 'course_name',\n 'date_start' ,\n 'time_start'\n );\n if ($transaction['transaction_type'] == 'Booking - Pay Now')\n {\n $contact['contact_id'] = $contact['contact_student_id'];\n }\n $template_schedule = $this->fill_array_template_data($this->_schedule_details,$schedule,12);\n $template = $this->fill_template_data($booking_alteration,$data);\n if ($template['contact_id'] == null && @$contact['contact_student_id']) {\n $template['contact_id'] = @$contact['contact_student_id'];\n }\n $template['template_name'] = $create ? 'Booking' :'Booking_Alteration';\n $template['doc_postfix'] = 'Booking#'.$template['booking_id'].'-'.date('YmdHis');\n $result = array_merge($template, $template_schedule);\n foreach ($result as $key => $value) {\n if ($value === null) {\n $result[$key] = '';\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "2ccf0e57573b7f5b79e875f89c7c34d7", "score": "0.609793", "text": "function new_booking($input, $is_test) {\n $formMap = array(\n 'name' => 'entry.275431443', /* Namn */\n 'email' => 'entry.1987986258', /* E-post */\n 'contact' => 'entry.1385175204', /* Kontaktperson */\n 'height' => 'entry.1188499459', /* Längd */\n 'weight' => 'entry.79438309', /* Vikt */\n 'date' => 'entry.1085938945', /* Datum (2015-01-01) */\n 'phone' => 'entry.1533462447', /* Telefonnummer */\n 'cardid' => 'entry.328907933', /* Presentkort (empty if cash) */\n 'media' => 'entry.1504688742', /* (P)hoto (V)ideo */\n 'city' => 'entry.509359054'); /* Ort */\n\n if (!$is_test) {\n $form = 'https://docs.google.com/a/skydivelfk.com/forms/d/' .\n '1f2sfLt13HFbASkjBpqduaare5AsYM40l9781noY3jqE' .\n '/formResponse';\n } else {\n $form = 'https://docs.google.com/a/skydivelfk.com/forms/d/' .\n '19-U3cf_m4ZV2qdsXOFAUFkd6f1g5W3draroWvwrxeKk' .\n '/formResponse';\n }\n\n $token = 'SUCCESS_TOKEN_DO_NOT_CHANGE';\n\n $data = array();\n // Default media to 'none'\n $data[$formMap['media']] = 'none';\n\n foreach($formMap as $key => $map) {\n if (isset($input[$key])) {\n if ($key == 'cardid') {\n if ($input['payment'] == 'later') {\n $data[$map] = 'Pay at jump';\n } else if ($input['payment'] == 'now') {\n $data[$map] = 'Online: ' . $input[$key];\n } else {\n $data[$map] = $input[$key];\n }\n } else if ($key == 'media') {\n sort($input[$key]);\n $data[$map] = implode('+', $input[$key]);\n } else if ($key == 'phone') {\n $data[$map] = '# ' . $input[$key];\n } else {\n $data[$map] = $input[$key];\n }\n }\n }\n\n // Testing name to use to test failure flow\n if ($input['name'] == 'CRASH_ME') {\n return false;\n }\n\n $ch = curl_init($form);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $result = curl_exec($ch);\n curl_close($ch);\n\n return $result !== false && strpos($result, $token) !== false;\n}", "title": "" }, { "docid": "c7969ae73022db9d3ba4861f6ad1de4f", "score": "0.60857564", "text": "public function bookRoom(WP_REST_Request $request)\n {\n global $wpdb;\n if (is_user_logged_in()) {\n $data = $request->get_json_params();\n $table_name_reservation = $wpdb->prefix . 'dsol_booking_reservation';\n $table_name_time = $wpdb->prefix . 'dsol_booking_time';\n $start_time = date('Y-m-d H:i:s', $data[\"arr\"][0][\"start_time\"]);\n $end_time = date('Y-m-d H:i:s', $data[\"arr\"][sizeOf($data[\"arr\"]) - 1][\"end_time\"]);\n $contNum = $data['room']['c_id'];\n $time_insert_arr = array();\n \n /*\n Need to adjust\n \n $timeCheck = \"SELECT *\n FROM `$table_name_time`\n LEFT JOIN `$table_name_reservation` ON `$table_name_time`.res_id = `$table_name_reservation`.res_id\n WHERE (`$table_name_reservation`.c_id = {$contNum}) AND ((`$table_name_time`.start_time BETWEEN '{$start_time}' AND '{$end_time}') OR (`$table_name_time`.end_time BETWEEN '{$start_time}' AND '{$end_time}')) \";\n $res = $wpdb->get_results($timeCheck);\n if ($wpdb->last_error !== '') {\n return new WP_Error(400, ('Time check issue'));\n }*/\n //if (sizeof($res) == 0) {\n if ($data['repeat']['id'] > 0) {\n $values = array();\n $place_holders = array();\n $res_values = array();\n $res_placeholders = array();\n $time_sql = \"\";\n $res_sql = \"INSERT INTO `$table_name_reservation` ('c_id','t_id'.'modified_by','created_at','created_by','company_name','email','attendance','notes') VALUES \";\n try {\n //return rest_ensure_response( strtotime($start_time) );\n //$d = new DateTime(date('Y-m-d H:i:s', $start_time));\n //return rest_ensure_response($d);\n //$d->createFromFormat('Y-m-d H:i:s', $start_time);\n $time_insert_arr = array();\n $i = 0;\n foreach ($data[\"multipleDates\"] as $value) {\n if (date('n', $value) == date('n', time()) || date('n', $value) == date('n', time()) + 1 && date('j', $value) <= 7) {\n if ($data[\"isSeperate\"] == 0) {\n\n $temp_date = date(\"Y-m-d\", $value);\n $temp_end_time = date(\"H:i:s\", strtotime($end_time));\n $temp_start_time = date(\"H:i:s\", strtotime($start_time));\n $final_end_date = $temp_date . \" \" . $temp_end_time;\n $final_start_date = $temp_date . \" \" . $temp_start_time;\n $temp_end = date('Y-m-d H:i:s', strtotime(\"$final_end_date\"));\n $temp_start = date('Y-m-d H:i:s', strtotime(\"$final_start_date\"));\n $time_insert_arr[] = array(\n \"start_time\" => $temp_start,\n \"end_time\" => $temp_end\n );\n } else {\n for ($i = 0; $i < sizeOf($data[\"seperateIndexes\"]); $i++) {\n\n if ($i == (sizeOf($data['seperateIndexes']) - 1)) {\n $temp_date = date(\"Y-m-d\", $value);\n $temp_start_time = date(\"H:i:s\", $data[\"arr\"][$data['seperateIndexes'][$i]][\"start_time\"]);\n $temp_end_time = date(\"H:i:s\", strtotime($end_time));\n $final_end_date = $temp_date . \" \" . $temp_end_time;\n $final_start_date = $temp_date . \" \" . $temp_start_time;\n $temp_end = date('Y-m-d H:i:s', strtotime(\"$final_end_date\"));\n $temp_start = date('Y-m-d H:i:s', strtotime(\"$final_start_date\"));\n } else {\n $indexLength = $data[\"seperateIndexes\"][$i + 1] - $data[\"seperateIndexes\"][$i];\n if ($indexLength == 1) {\n $indexLength -= 1;\n }\n $temp_date = date(\"Y-m-d\", $value);\n $temp_start_time = date(\"H:i:s\", $data[\"arr\"][$data['seperateIndexes'][$i]][\"start_time\"]);\n $temp_end_time = date(\"H:i:s\", $data[\"arr\"][$indexLength][\"end_time\"]);\n $final_end_date = $temp_date . \" \" . $temp_end_time;\n $final_start_date = $temp_date . \" \" . $temp_start_time;\n $temp_end = date('Y-m-d H:i:s', strtotime(\"$final_end_date\"));\n $temp_start = date('Y-m-d H:i:s', strtotime(\"$final_start_date\"));\n }\n\n $time_insert_arr[] = array(\n \"start_time\" => $temp_start,\n \"end_time\" => $temp_end\n );\n }\n }\n } else {\n break;\n }\n $i++;\n /*\n Holds else statement for previous if $data['arr'] > 0\n } else {\n $temp_date = date(\"Y-m-d\", $value);\n $temp_end_time = date(\"H:i:s\", strtotime($end_time));\n $temp_start_time = date(\"H:i:s\", strtotime($start_time));\n $final_end_date = $temp_date . \" \" . $temp_end_time;\n $final_start_date = $temp_date . \" \" . $temp_start_time;\n $temp_end = date('Y-m-d H:i:s', strtotime(\"$final_end_date\"));\n $temp_start = date('U', strtotime(\"$final_start_date\"));\n $time_insert_arr[] = array(\n \"start_time\" => $temp_start,\n \"end_time\" => $temp_end\n );\n }\n */\n }\n } catch (\\UnexpectedValueException $e) {\n return new WP_Error(400,array(\"error\", $e));\n }\n // return rest_ensure_response(array( 'times' => $time_insert_arr, 'line' => 417));\n if (isset($data['res_id']) && $data['res_id'] > 0) {\n $resId = $data['res_id'];\n foreach ($time_insert_arr as $time) {\n $time = array(\n \"start_time\" => $start_time,\n \"end_time\" => $end_time,\n );\n $wpdb->update($table_name_time, $time, array(\"t_id\" => $data['t_id']));\n }\n $wpdb->update($table_name_reservation, array(\n \"c_id\" => $data[\"room\"][\"c_id\"],\n \"modified_by\" => wp_get_current_user()->display_name,\n \"created_at\" => current_time('mysql', 1),\n \"modified_at\" => current_time('mysql', 1),\n \"created_by\" => wp_get_current_user()->user_email,\n \"company_name\" => wp_get_current_user()->display_name,\n \"email\" => wp_get_current_user()->user_email,\n \"attendance\" => $data[\"numAttend\"],\n \"notes\" => $data[\"desc\"]\n ), array(\"res_id\" => $resId));\n } else {\n $wpdb->insert($table_name_reservation, array(\n \"c_id\" => $data[\"room\"][\"c_id\"],\n \"modified_by\" => wp_get_current_user()->display_name,\n \"created_at\" => current_time('mysql', 1),\n \"modified_at\" => current_time('mysql', 1),\n \"created_by\" => wp_get_current_user()->user_email,\n \"company_name\" => wp_get_current_user()->display_name,\n \"email\" => wp_get_current_user()->user_email,\n \"attendance\" => $data[\"numAttend\"],\n \"notes\" => $data[\"desc\"]\n ));\n if ($wpdb->last_error !== '') {\n $wpdb->query('ROLLBACK');\n return new WP_Error(400, ('Error adding time'));\n }\n $temp_insert_id = $wpdb->insert_id;\n foreach ($time_insert_arr as $time) {\n\n $time['res_id'] = $temp_insert_id;\n $wpdb->insert($table_name_time, $time);\n if ($wpdb->last_error !== '') {\n $wpdb->query('ROLLBACK');\n return new WP_Error(400, array('Error adding time'));\n }\n }\n }\n /*\n $wpdb->insert($table_name_time, array(\n \"start_time\" => $start_time,\n \"end_time\" => $end_time\n ));\n $insert_id = $wpdb->insert_id;\n if ($wpdb->last_error !== '') {\n return rest_ensure_response($wpdb->last_result);\n }\n $wpdb->insert($table_name_reservation, array(\n \"c_id\" => $data[\"room\"][\"c_id\"],\n \"t_id\" => $insert_id,\n \"modified_by\" => wp_get_current_user()->display_name,\n \"created_at\" => current_time('mysql', 1),\n \"modified_at\" => current_time('mysql', 1),\n \"created_by\" => wp_get_current_user()->user_email,\n \"company_name\" => wp_get_current_user()->display_name,\n \"email\" => wp_get_current_user()->user_email,\n \"attendance\" => $data[\"numAttend\"],\n \"notes\" => $data[\"desc\"]\n ));\n if ($wpdb->last_error !== '') {\n $wpdb->print_error();\n }\n */\n return rest_ensure_response(array(\"Success\" => true));\n } else {\n $time_sql = \"\";\n $i = 0;\n try {\n if (sizeOf($data['arr']) > 1) {\n if (date('n', strtotime($start_time)) == date('n', time()) || date('n', strtotime($start_time)) == date('n', time()) + 1 && date('j', strtotime($start_time)) <= 7) {\n if ($data[\"isSeperate\"] == 0) {\n $temp_date = date(\"Y-m-d\", strtotime($start_time));\n $temp_end_time = date(\"H:i:s\", strtotime($end_time));\n $temp_start_time = date(\"H:i:s\", strtotime($start_time));\n $final_end_date = $temp_date . \" \" . $temp_end_time;\n $final_start_date = $temp_date . \" \" . $temp_start_time;\n $temp_end = date('Y-m-d H:i:s', strtotime(\"$final_end_date\"));\n $temp_start = date('Y-m-d H:i:s', strtotime(\"$final_start_date\"));\n $time_insert_arr[] = array(\n \"start_time\" => $temp_start,\n \"end_time\" => $temp_end\n );\n } else {\n for ($i = 0; $i < sizeOf($data[\"seperateIndexes\"]); $i++) {\n\n if ($i == (sizeOf($data['seperateIndexes']) - 1)) {\n $temp_date = date(\"Y-m-d\", strtotime($start_time));\n $temp_start_time = date(\"H:i:s\", $data[\"arr\"][$data['seperateIndexes'][$i]][\"start_time\"]);\n $temp_end_time = date(\"H:i:s\", strtotime($end_time));\n $final_end_date = $temp_date . \" \" . $temp_end_time;\n $final_start_date = $temp_date . \" \" . $temp_start_time;\n $temp_end = date('Y-m-d H:i:s', strtotime(\"$final_end_date\"));\n $temp_start = date('Y-m-d H:i:s', strtotime(\"$final_start_date\"));\n } else {\n $indexLength = $data[\"seperateIndexes\"][$i + 1] - $data[\"seperateIndexes\"][$i];\n if ($indexLength == 1) {\n $indexLength -= 1;\n }\n $temp_date = date(\"Y-m-d\", strtotime($start_time));\n $temp_start_time = date(\"H:i:s\", $data[\"arr\"][$data['seperateIndexes'][$i]][\"start_time\"]);\n $temp_end_time = date(\"H:i:s\", $data[\"arr\"][$indexLength][\"end_time\"]);\n $final_end_date = $temp_date . \" \" . $temp_end_time;\n $final_start_date = $temp_date . \" \" . $temp_start_time;\n $temp_end = date('Y-m-d H:i:s', strtotime(\"$final_end_date\"));\n $temp_start = date('Y-m-d H:i:s', strtotime(\"$final_start_date\"));\n }\n\n array_push($time_insert_arr, array(\n \"start_time\" => $temp_start,\n \"end_time\" => $temp_end\n ));\n }\n }\n }\n } else {\n $time_insert_arr[] = array(\n \"start_time\" => $start_time,\n \"end_time\" => $end_time\n );\n }\n } catch (Exceptions $e) {\n return new WP_Error(400,$e);\n }\n if (isset($data['res_id'])) {\n $resId = $data['res_id'];\n foreach ($time_insert_arr as $time) {\n $time = array(\n \"start_time\" => $start_time,\n \"end_time\" => $end_time,\n );\n $wpdb->update($table_name_time, $time, array(\"t_id\" => $data['t_id']));\n }\n $wpdb->update($table_name_reservation, array(\n \"c_id\" => $data[\"room\"][\"c_id\"],\n \"modified_by\" => wp_get_current_user()->display_name,\n \"created_at\" => current_time('mysql', 1),\n \"modified_at\" => current_time('mysql', 1),\n \"created_by\" => wp_get_current_user()->user_email,\n \"company_name\" => wp_get_current_user()->display_name,\n \"email\" => wp_get_current_user()->user_email,\n \"attendance\" => $data[\"numAttend\"],\n \"notes\" => $data[\"desc\"]\n ), array(\"res_id\" => $resId));\n } else {\n //return rest_ensure_response(array($data, $time_insert_arr, sizeOf($data['seperateIndexes'])));\n $wpdb->insert($table_name_reservation, array(\n \"c_id\" => $data[\"room\"][\"c_id\"],\n \"modified_by\" => wp_get_current_user()->display_name,\n \"created_at\" => current_time('mysql', 1),\n \"modified_at\" => current_time('mysql', 1),\n \"created_by\" => wp_get_current_user()->user_email,\n \"company_name\" => wp_get_current_user()->display_name,\n \"email\" => wp_get_current_user()->user_email,\n \"attendance\" => $data[\"numAttend\"],\n \"notes\" => $data[\"desc\"]\n ));\n if ($wpdb->last_error !== '') {\n return rest_ensure_response($wpdb->last_result);\n }\n $insert_id = $wpdb->insert_id;\n $temp_insert_id = $wpdb->insert_id;\n foreach ($time_insert_arr as $time) {\n\n $time['res_id'] = $temp_insert_id;\n $wpdb->insert($table_name_time, $time);\n if ($wpdb->last_error !== '') {\n $wpdb->query('ROLLBACK');\n return new WP_Error(400, ($wpdb->last_result));\n }\n }\n $insert_id = $wpdb->insert_id;\n if ($wpdb->last_error !== '') {\n return rest_ensure_response($wpdb->last_result);\n }\n }\n return rest_ensure_response(array(\"Success\" => true));\n }\n } else {\n return new WP_Error(400, ('The Time is already taken'), array($time_insert_arr));\n }\n // Return all of our comment res ponse data.\n\n //} else {\n // return rest_ensure_response(\"User not logged in\");\n //}\n }", "title": "" }, { "docid": "60ab757d9822644e91a7910ef53f2239", "score": "0.60834414", "text": "function reservation_adjustments(){\n}", "title": "" }, { "docid": "58c36fc90f33ac7da0acb3ae033e5edf", "score": "0.60786504", "text": "public function available(Request $request) {\n $date = $request->date;\n $fieldId = $request->fieldId;\n $bookings = Bookings::where([\n ['booking_date', '=', $date],\n ['field_id', '=', $fieldId]\n ])->orderBy('start_hour', 'asc')->get();\n $events = [];\n if ($bookings->isEmpty()) {\n // Create a new event for the calendar\n $events[] = Calendar::event(\n 'Available',\n false,\n new \\DateTime($date.' 06:00:00'),\n new \\DateTime($date.' 22:00:00')\n );\n } else {\n $compt = 0;\n foreach($bookings as $booking) {\n $endHour = $booking->start_hour;\n // 06:00:00 is the start hour of the complex\n if ($endHour != '06:00:00') {\n if ($compt == 0) {\n // Create a new event for the calendar\n $events[] = Calendar::event(\n 'Available',\n false,\n new \\DateTime($date.' 06:00:00'),\n new \\DateTime($date.' '.$endHour)\n );\n } else {\n if ($startHour != $endHour) {\n // Create a new event for the calendar\n $events[] = Calendar::event(\n 'Available',\n false,\n new \\DateTime($date.' '.$startHour),\n new \\DateTime($date.' '.$endHour)\n );\n }\n }\n }\n $startHour = $booking->end_hour;\n $compt++;\n }\n // 22:00:00 is the end hour of the complex\n if ($startHour != '22:00:00') {\n // Create a new event for the calendar\n $events[] = Calendar::event(\n 'Available',\n false,\n new \\DateTime($date.' '.$startHour),\n new \\DateTime($date.' 22:00:00')\n );\n }\n }\n // Create the calendar\n $calendar = Calendar::addEvents($events)->setOptions([\n 'defaultView' => 'agendaDay',\n 'defaultDate' => $date,\n 'timeFormat' => 'H:mm'\n ]);\n\n $field = Fields::where('id', $fieldId)->first();\n\n return view('listbooking', ['calendar' => $calendar, 'date' => $date, 'field' => $field]);\n }", "title": "" }, { "docid": "1d5d81c10c694c7d0fdca6e1095e046f", "score": "0.6040126", "text": "function ConOrg_Schedule ()\n{\n}", "title": "" }, { "docid": "c0791b8b09a7f83ea789d4ccbda274e2", "score": "0.6031937", "text": "function load_booking(){\n//call the connection\ninclude 'connection.php';\n//determine who is currently logged in\n$username=$_SESSION[\"client\"];\n//create a query\n$query=mysqli_query($db,\n\"SELECT * FROM tblbooking\nWHERE username='$username' \n ORDER BY bookingdate DESC\n\");\t\n\nif(mysqli_num_rows($query)>0){\n//if there is a booking for the logged user\t\n\techo \"<div class='well'><h2>Your bookings</h2>\n\t<table class='table table-responisve'>\n\t<tr>\n\t\t<th>Date</th>\n\t\t<th>Time</th>\n\t\t<th>Branch</th>\n\t\t<th>Description</th>\n\t\t<th>Option</th>\n\t</tr>\n\t\";\n\twhile($x=mysqli_fetch_array($query)){\n\t\techo \"<tr>\n\t\t\t<td>$x[1]</td>\n\t\t\t<td>$x[2]</td>\n\t\t\t<td>$x[3]</td>\n\t\t\t<td>$x[4]</td>\n\t\t\t<td><button class='btn' \n\t\t\tonclick='edit_booking($x[0]'>Edit</button></td>\n\t\t</tr>\n\t\t\";\t\t\n\t}\n\techo \"</table></div>\";\n}\t\nelse{\n//no bookings (past and future)\t\n\necho \"<div class='well'>No bookings</div>\";\n\t\n}\n\n}", "title": "" }, { "docid": "e725f6e1260eb7c8a7b097ad7a7d2614", "score": "0.60282826", "text": "function bookingdetail_listdata(){\n\n\n}", "title": "" }, { "docid": "12a20fd1c493b2f9bbaf5fc27c12d5d1", "score": "0.6007951", "text": "public function createReservation($params);", "title": "" }, { "docid": "b06c427936cf06b0dc05d8462d4b38db", "score": "0.59701085", "text": "function bookingdetail_viewdetail(){\n\n\n}", "title": "" }, { "docid": "ac6d2aac5a9283000309040d42e2f494", "score": "0.5913654", "text": "function bookFacilitation ($facilitator_id, $notes, $slot_id){\n\n\t\t/*Variable declaration*/\n\t\t$time_start = \"\";\n\t\t$time_end = \"\";\n\t\t$same_times = -1;\n\t\t$num_facilitators = \"\";\n\t\t$f_needed = \"\";\n\t\t\n\t\t/* Get number of people facilitating */\n\t\t$query = \"SELECT count(*) as num_facilitators from facilitating where slot_id = $slot_id\";\n\t\t\n\t\t/* Run Query */\n\t\t$result = $this->connection->query($query) or die (\"An error occurred 1.\");\n\t\t\n\t\t/* Retrieve the data */\n\t\twhile ($row = $result->fetch_assoc()){\n\t\t\t$num_facilitators = $row[\"num_facilitators\"];\n\t\t}\n\t\t\n\t\t/* Get the time information from the slot already booked */\n\t\t$query = \n\t\t\" SELECT time_start, time_end, facilitators_needed\n\t\t FROM facilitation_times \n\t\t WHERE slot_id = $slot_id\";\n\t\t\n\t\t/* Run the first Query */\n\t\t$result = $this->connection->query($query) or die (\"An error occurred 1.\");\n\t\t\n\t\twhile ($row = $result->fetch_assoc()){\n\t\t\t$time_start = $row[\"time_start\"];\n\t\t\t$time_end = $row[\"time_end\"];\n\t\t\t$f_needed = $row[\"facilitators_needed\"];\n\t\t};\n\t\t\n\t\t//Make sure the slot isn't full\n\t\tif ($f_needed <= $num_facilitators){\n\t\t\t\techo \"This slot is full - you cannot sign up.\";\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\t/* Check if the facilitator is already booked at the same time */\n\t\t$query = \n\t\t\" SELECT count(*) as same_times\n\t\t FROM facilitating, facilitation_times\n\t\t WHERE \n\t\t\tfacilitating.slot_id = facilitation_times.slot_id and\n\t\t\tfacilitator_id = $facilitator_id and \n\t\t\ttime_start < '$time_end' and \n\t\t\ttime_end > '$time_start'\"; \n\t\t\t\n\t\t/* Run the second Query */\n\t\t$result = $this->connection->query($query) or die (\"An error occurred. 2\");\n\t\t\n\t\t/* Retrieve the data */\n\t\twhile ($row = $result->fetch_assoc()){\n\t\t\t$same_times = $row[\"same_times\"];\n\t\t}\n\t\t\n\t\t/* \n\t\t\tCheck if the facilitator has already signed up for a slot at the same time.\n\t\t\tIf they have, don't book them and don't update the database.\n\t\t*/\n\t\tif ($same_times == 0){\n\t\t\t\n\t\t\t/* Include the note in the booking if applicable */\n\t\t\tif ($notes != null){\n\t\t\t\t$query = \n\t\t\t\t\"INSERT INTO facilitating (slot_id, facilitator_id, notes)\n\t\t\t\t VALUES ($slot_id, $facilitator_id, '$notes')\n\t\t\t\t\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$query = \n\t\t\t\t\"INSERT INTO facilitating (slot_id, facilitator_id)\n\t\t\t\t VALUES ($slot_id, $facilitator_id)\n\t\t\t\t\";\n\t\t\t}\n\t\t\t\n\t\t\t/* Update the database with the booking */\n\t\t\t$result = $this->connection->query($query) or die (\"An error occurred. 3\");\n\t\t\n\t\t\techo \"Sign up successful!\";\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\techo \"Sign up unsuccessful due to time conflicts.\";\n\t\t}\n\t}", "title": "" }, { "docid": "c76ce857d04ca52c02d7f488e9cc25b9", "score": "0.59053", "text": "function DrawButton($p_day,$p_start_time,$p_end_time) {\n\tglobal $obj_sgrs;\n\tif ($obj_sgrs->SlotIsReserved($p_start_time,$p_end_time,$p_day)) {\n\t\treturn \"Booked\";\n\t}\n\telse {\n\t\treturn \"<input type='button' name='block_button' value='Block' onClick=\\\"document.location.href='index.php?module=scheduling&task=global_reserve_slots&save=yes&time_start=$p_start_time&time_end=$p_end_time&day_of_week=$p_day'\\\">\\n\";\n\t}\n}", "title": "" }, { "docid": "86a0c17dd2d7c1c217a1422ba9284c92", "score": "0.5890535", "text": "public function add_bookings($CLIENT_FIRST_NAME,$CLIENT_LAST_NAME,$STAFF_FIRST_NAME,$STAFF_LAST_NAME,$BOOKING_DATE_TIME,$BOOKING_DATE,$BOOKING_TIME,$BOOKING_REFERENCE,$SERVICE_NAME,$BUSINESS_NAME,$LOCATION_NAME,$LOCATION_PHONE,$BOOKING_END_DATE_TIME,$color,$CLIENT_MOBILE,$SERVICE_COST)\n {\n\n $p = explode(\":\", $BOOKING_TIME);\n\n $sms_delay = 1; //delay in hours\n\n\n $schedul_hour = $p[0] - $sms_delay; //eg 11:45:00\n\n\n\n $user_id = $this->session->userdata('userid');\n $object = array(\n \t\t'user_id'=>$user_id,'CLIENT_FIRST_NAME'=>$CLIENT_FIRST_NAME,'CLIENT_LAST_NAME'=>$CLIENT_LAST_NAME,'STAFF_FIRST_NAME'=>$STAFF_FIRST_NAME,'STAFF_LAST_NAME'=>$STAFF_LAST_NAME,'BOOKING_DATE_TIME'=>$BOOKING_DATE_TIME,'BOOKING_DATE'=>$BOOKING_DATE,'BOOKING_TIME'=>$BOOKING_TIME,'BOOKING_REFERENCE'=>$BOOKING_REFERENCE,'SERVICE_NAME'=>$SERVICE_NAME,'BUSINESS_NAME'=>$BUSINESS_NAME,'LOCATION_NAME'=>$LOCATION_NAME,'LOCATION_PHONE'=>$LOCATION_PHONE,'BOOKING_END_DATE_TIME'=>$BOOKING_END_DATE_TIME,'color'=>$color,\n 'CLIENT_MOBILE' => $CLIENT_MOBILE, 'SERVICE_COST' => $SERVICE_COST, 'schedul_hour' =>$schedul_hour\n\n\n \t\t);\n \t$this->db->insert('bookings', $object);\n\n\n }", "title": "" }, { "docid": "3af91aaa0b25b69e61f44de26fccee34", "score": "0.58877486", "text": "function generateBookingURL() {\n try {\n $controller = new OnlineCheckin();\n if( $_POST['booking_identifier'] == 'reset_view') {\n\t $controller->resetView();\n }\n else {\n\t $controller->loadBooking( $_POST['booking_identifier'] );\n }\n echo $controller->toHtml();\n }\n catch (Exception $e) {\n error_log(var_export($e, true));\n ?>\n <!-- ERROR TEMPLATE -->\n <?=$e->getMessage()?>\n <?php\n }\n }", "title": "" }, { "docid": "ef8c8cdcd863c9aad3103bf303e363cf", "score": "0.5881765", "text": "function booking_form() {\n\n\t// Get day number to put in heading\n\n\t$stmt = $this->link->prepare(\"SELECT daynumber,nonteach FROM termdates WHERE thedate = ?\"); \n\t$thedate = $this->year . \"-\" . $this->month . \"-\" . $this->day;\n\t$stmt->bind_param(\"s\",$thedate);\t\n\t$stmt->bind_result($daynum,$nonteach);\t\n\t$stmt->execute();\n\t$stmt->store_result();\n\t$stmt->fetch();\n\t$stmt->free_result();\n\t$stmt->close();\n\t$daytip = \"Day \".$daynum;\n\tif ($nonteach) { $daytip = $daytip.\", non-teaching\";}\n\n\techo \"\n\t<div id='outer_booking'><h2>Available Rooms</h2>\n\n\t<p>\n\tRooms available on <span> \" . nicedate($this->day . \"-\" . $this->month . \"-\" . $this->year) . \" (\".$daytip.\")</span><br>\n\t</p>\n\t\n\t<table width='400' border='0' cellpadding='2' cellspacing='0' id='booking'>\n\t\t<tr>\n\t\t\t<th width='40' align='left'>Period</th>\";\n\t\t\t\n\t// Add list of rooms as column headings\n\n\t$stmt = $this->link->prepare(\"SELECT roomid,name FROM room ORDER BY name\"); \n\t$stmt->bind_result($roomid,$roomname);\t\n\t$stmt->execute();\n\t$stmt->store_result();\n\twhile($stmt->fetch()) {\n\t\t$room[] = array($roomid,$roomname);\n\t\techo\"\n\t\t\t\t<th width='30' align='center'>\" . $roomname . \"</th>\";\n\t}\n\techo\"\n\t\t\t</tr>\";\n\n\t// Create $period array of the booking times\n\n\t$stmt = $this->link->prepare(\"SELECT periodid,name FROM period\"); \n\t$stmt->bind_result($periodid,$periodname);\t\n\t$stmt->execute();\n\t$stmt->store_result();\n\t\n\twhile($stmt->fetch()) {\n\t\t$period[] = array($periodid,$periodname);\n\t}\n\t$stmt->free_result();\n\t$stmt->close();\n\t\n\t// Create $reason array of the booking reasons\n\n\t$stmt = $this->link->prepare(\"SELECT name,value FROM reason\"); \n\t$stmt->bind_result($rname,$rval);\t\n\t$stmt->execute();\n\t$stmt->store_result();\n\t\n\twhile($stmt->fetch()) {\n\t\t$rson[] = array($rname,$rval);\n\t}\n\t$stmt->free_result();\n\t$stmt->close();\n\n\t// Now layout the grid for booking choices\n\n\tforeach($period as $theperiod) {\n\t\techo \"\n\t\t<tr>\\r\\n<td>\" . $theperiod[1] . \"</td>\\r\\n\";\n\t\tforeach($room as $theroom) {\n\t\t\t$stmt = $this->link->prepare(\"SELECT bookingid,teacherid,reason,status,yeargroup FROM booking WHERE periodid = ? AND roomid = ? AND bookingdate = ? ORDER BY status\"); \n\t\t\t$thedate = $this->year . \"-\" . $this->month . \"-\" . $this->day;\n\t\t\t$stmt->bind_param(\"iis\",$theperiod[0],$theroom[0],$thedate);\t\n\t\t\t$stmt->bind_result($bkid,$teacherid,$reason,$status,$yeargroup);\t\n\t\t\t$stmt->execute();\n\t\t\t$stmt->store_result();\n\t\t\t$booked = $stmt->num_rows; // NB if booked is >=1 then booked evaluates to TRUE; only if booked is 0 does it equal FALSE\n\t\t\tif ($booked) { $stmt->fetch(); }\n\t\t\t$stmt->free_result();\n\t\t\t$stmt->close();\n\t\t\tif ($booked) { // prepare the tooltip to show who's booked it\n\t\t\t\t$stmt = $this->link->prepare(\"SELECT name,emailaddress from teacher where teacherid = ?\"); \n\t\t\t\t$stmt->bind_param(\"i\",$teacherid);\t\n\t\t\t\t$stmt->bind_result($teachername,$tchremail);\t\n\t\t\t\t$stmt->execute();\n\t\t\t\t$stmt->store_result();\n\t\t\t\t$stmt->fetch();\n\t\t\t\t$stmt->free_result();\n\t\t\t\t$stmt->close();\n\t\t\t\t$tooltip = $teachername;\n\t\t\t\tif ($status==ST_PROV) {\n\t\t\t\t\t$tooltip=$tooltip.\" (Provisional) \";\n\t\t\t\t} elseif ($status==ST_CONF) {\n\t\t\t\t\t$tooltip=$tooltip.\" (Confirmed) \";\n\t\t\t\t} elseif ($status==ST_LAPS) {\n\t\t\t\t\t$tooltip=$tooltip.\" (Lapsed) \";\n\t\t\t\t} elseif ($status==ST_TTBL) {\n\t\t\t\t\t$tooltip=$tooltip.\" (Timetabled) \";\n\t\t\t\t} \n\t\t\t\t$tooltip=$tooltip.\"with \".$yeargroup; \n\t\t\t\tif ($status!=ST_TTBL) { // add the reason unless timetabled lesson\n\t\t\t\t\t$tooltip=$tooltip.\" for \";\n\t\t\t\t\t$r = intval($reason);\n\t\t\t\t\tforeach ($rson as $thereason) { // bitwise AND with value to see if bit set for that reason\n\t\t\t\t\t\tif ($r & $thereason[1]) {$tooltip=$tooltip.$thereason[0].\", \"; } // if so, add reason name\n\t\t\t\t\t}\n\t\t\t\t\t$tooltip = substr($tooltip, 0, strlen($tooltip) - 2); // remove the final comma space\n\t\t\t\t}\n\t\t\t}\n\t\t\t// insert HTML for selecting room to book\n\t\t\t// data-val was date-time now using room%periodid@roomid and data-status is status#bkid@email\n\t\t\t$radiobut = \"<input data-val='\" . $theroom[1] . \"%\" . $theperiod[0] . \"@\" . $theroom[0];\n\t\t\tif ($booked && $status==ST_LAPS) { $radiobut = $radiobut.\"' data-status='\".$status.\"#\".$bkid.\"@\".$tchremail; }\n\t\t\t$radiobut = $radiobut.\"' class='fields' type='radio' name='bookchoice'>\";\n\t\t\tif ($booked) {\n\t\t\t\tif ($status==ST_LAPS) { // lapsed so orange and button\n\t\t\t\t\techo \"<td align='center' style='background-color: #999922;' title='\".$tooltip.\"'>\".$radiobut.\"</td>\\r\\n\";\n\t\t\t\t} elseif ($status==ST_TTBL) { // timetabled so dark grey and no button\n\t\t\t\t\techo \"<td align='center' style='background-color: #666666;' title='\".$tooltip.\"'></td>\\r\\n\";\n\t\t\t\t} else { // provisional or confirmed so red and no button\n\t\t\t\t\tif ($booked>1) { $tooltip = \"Lapsed booking: now booked by \".$teachername.\".\"; } // replace tooltip if over-booked\n\t\t\t\t\techo \"<td align='center' style='background-color: #AA2222;' title='\".$tooltip.\"'></td>\\r\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\techo \"<td align='center' style='background-color: #228822;'>\".$radiobut.\"</td>\\r\\n\";\n\t\t\t}\n\t\t} // close foreachroom (column)\n\t\techo\"\n\t\t</tr>\";\n\t} // close foreach period (row)\n\t\t\t\n\t\n\techo \"</table></div><!-- Close outer_booking DIV -->\";\n\t\t\n\n}", "title": "" }, { "docid": "7f1bf7fe7a51abeeabb11f30a013273a", "score": "0.5861442", "text": "public function book()\n {\n $current_booking = json_decode(get_cookie(\"sleepovercurrentbooking\"),true);\n\n //we need stuff\n if(!($this->input->post(\"podestrian_id\") && $this->input->post(\"status_id\") && $this->input->post(\"price\")))\n return; //todo error?\n\n $current_booking[\"podestrian_id\"] = $this->input->post(\"podestrian_id\");\n $current_booking[\"status_id\"] = $this->input->post(\"status_id\");\n $current_booking[\"price\"] = $this->input->post(\"price\");\n\n $this->booking_m->save($current_booking);\n redirect(\"/booking\");\n }", "title": "" }, { "docid": "1c90efcd09887a24e7627e976f13f6b9", "score": "0.5857718", "text": "public function booking(Request $request)\n\t{\n\t\t// \\Cart::destroy();\n\t\t$data = $request->all();\n\t\t$user_info = User::where('email','=',$data['email'])->first();\n\n\t\tif (!$user_info) {\n\t\t\t$user_name = explode('@',$data['email'])[0];\n\t\t\t\n\t\t\t$user = array(\n\t\t\t\t'name' =>$data['name'],\n\t\t\t\t'email' =>$data['email'],\n\t\t\t\t'phone' =>$data['phone'],\n\t\t\t\t'avatar' =>'storage/admins/userDefault.png',\n\t\t\t\t'password' => \\Hash::make($user_name),\n\t\t\t);\n\t\t\t$user = User::create($user);\n\t\t}\t\t\n\t\t\n\t\t$rows = \\Cart::content();\n\t\tif ($rows->count()==0) {\n\t\t\t$data['total']=0;\n\t\t\tBooking::create($data);\t\t\t\n\t\t} else {\n\t\t\t$data['total']=\\Cart::total();\n\t\t\t$booking = Booking::create($data);\n\t\t\tforeach ($rows as $item) {\n\t\t\t\t$data =[\n\t\t\t\t\t'booking_id' => $booking['id'],\n\t\t\t\t\t'product_id' => $item->id,\n\t\t\t\t\t'quantity' => $item->qty,\n\t\t\t\t\t'price' => $item->price,\n\t\t\t\t];\n\t\t\t\tBookingDetails::create($data);\n\t\t\t}\n\t\t}\n\t\t\\Cart::destroy();\n\t\treturn redirect()->route('restaurant.home');\n\t}", "title": "" }, { "docid": "ab02fa64b535925d5268804b12b79495", "score": "0.58490276", "text": "public function create()\n {\n // $credentials = Request()->validate([\n // 'zoomLink' => ['required','string'],\n // 'user_id' => ['required','numeric'],\n // 'user_id' => ['required','numeric'],\n // ]);\n Schedule::create([\n 'zoomLink' => request('zoomLink'),\n 'reservation_id' => request('reservation_id'),\n 'user_id' => request('user_id'),\n ]);\n\n $reservation = Reservation::findOrFail(request('reservation_id'));\n $reservation->status = 1; // turning On reservation reserved\n $reservation->update();\n Binnacle::create([\n 'entity' => $reservation->details,\n 'action' => \"inserto\",\n 'table' => \"agenda\",\n 'user_id'=> Auth::user()->id\n ]);\n return redirect()->route('schedule.mySchedule', Auth::user()->id);\n }", "title": "" }, { "docid": "f10d6efd9dd1d96638eefb599fe44345", "score": "0.5842309", "text": "function insertBookingManual($args)\n\t{\n\t\t$ref = md5(uniqid(rand()));\n\t\t$ref = strtoupper($ref);\n\t\t$sql = \"INSERT INTO booking VALUES (\";\n\t\t$sql .= \"NULL, \";\n\t\t$sql .= \"'\".$args[\"hotel_id\"].\"', \";\n\t\t$sql .= \"'\".$args[\"hotel_sec\"].\"', \";\t\t\t\n\t\t$sql .= \"'\".$ref.\"', \";\n\t\t$sql .= \"'\".$args[\"contact\"].\"', \";\n\t\t$sql .= \"'\".$args[\"title\"].\"', \";\n\t\t$sql .= \"'\".$args[\"first\"].\"', \";\n\t\t$sql .= \"'\".$args[\"last\"].\"', \";\t\t\t\t\t\t\n\t\t$sql .= \"'\".$args[\"email\"].\"', \";\n\t\t$sql .= \"'\".$args[\"telephone\"].\"', \";\n\t\t$sql .= \"'\".$args[\"address\"].\"', \";\n\t\t$sql .= \"'\".$args[\"city\"].\"', \";\n\t\t$sql .= \"'\".$args[\"zipcode\"].\"', \";\n\t\t$sql .= \"'\".$args[\"country\"].\"', \";\n\t\t$sql .= \"'\".$args[\"national\"].\"', \";\t\t\n\t\t$sql .= \"'\".$args[\"transfer_type\"].\"', \";\n\t\t$sql .= \"'\".$args[\"flight_no\"].\"', \";\n\t\t$sql .= \"'\".$args[\"arr_time\"].\"', \";\n\t\t$sql .= \"'\".$args[\"book_request\"].\"', \";\n\t\t\n\t\t$sql .= \"'\".$args[\"room_id\"].\"', \";\n\t\t$sql .= \"'\".$args[\"room_code\"].\"', \";\n\t\t$sql .= \"'\".$args[\"room_type\"].\"', \";\n\t\t$sql .= \"'\".$args[\"ABF\"].\"', \";\n\t\t$sql .= \"'\".$args[\"rooms\"].\"', \";\n\t\t$sql .= \"'\".$args[\"checkin\"].\"', \";\n\t\t$sql .= \"'\".$args[\"checkout\"].\"', \";\n\t\t$sql .= \"'\".$args[\"nights\"].\"', \";\n\n\t\t$sql .= \"'\".$args[\"adult\"].\"', \";\n\t\t$sql .= \"'\".$args[\"extra_adult\"].\"', \";\n\t\t$sql .= \"'\".$args[\"extra_children\"].\"', \";\n\n\t\t$sql .= \"'\".$args[\"total\"].\"', \";\n\t\t$sql .= \"'\".$args[\"extra_adult_charge\"].\"', \";\n\t\t$sql .= \"'\".$args[\"extra_children_charge\"].\"', \";\n\t\t$sql .= \"'\".$args[\"gala_charge\"].\"', \";\n\t\t$sql .= \"'\".$args[\"transfer_charge\"].\"', \";\n\t\t$sql .= \"'\".$args[\"book_fee\"].\"', \";\n\t\t$sql .= \"'\".$args[\"rateamount\"].\"', \";\n\t\t$sql .= \"'\".$args[\"amount\"].\"', \";\n\t\t$sql .= \"'\".$args[\"service_type\"].\"', \";\n\t\t$sql .= \"'\".$args[\"service\"].\"', \";\n\t\t$sql .= \"'\".$args[\"service_charge\"].\"', \";\n\t\t$sql .= \"'\".$args[\"vat_type\"].\"', \";\n\t\t$sql .= \"'\".$args[\"vat\"].\"', \";\n\t\t$sql .= \"'\".$args[\"vat_charge\"].\"', \";\n\t\t$sql .= \"'\".$args[\"gamount\"].\"', \";\t\t\t\t\n\t\t$sql .= \"'\".$args[\"deposit_charge\"].\"', \";\n\t\t\n\t\t$sql .= \"'\".$args[\"due_pay\"].\"', \";\t\t\n\t\t$sql .= \"'\".$args[\"rate_detail\"].\"', \";\n\t\t$sql .= \"'\".$args[\"member_id\"].\"', \";\n\t\t$sql .= \"'\".$args[\"disc_amount\"].\"', \";\n\t\t$sql .= \"'\".$args[\"promotion_code\"].\"', \";\n\t\t$sql .= \"'\".$args[\"payment_type\"].\"', \";\n\t\t$sql .= \"'\".$args[\"payment_ref\"].\"', \";\n\t\t$sql .= \"'\".$args[\"cancel_day\"].\"', \";\t\n\t\t$sql .= \"'\".$args[\"cancel_policy\"].\"', \";\n\t\t$sql .= \"'', \";\n\t\t$sql .= \"'\".$args[\"device\"].\"', \";\n\t\t$sql .= \"'\".$args[\"device_desc\"].\"', \";\n\t\t$sql .= \"'\".$args[\"language_id\"].\"', \";\n\t\t$sql .= \"'\".$args[\"device_language\"].\"', \";\t\t\t\t\t\n\t\t$sql .= \"'\".date(\"Y-m-d\").\"', \";\n\t\t$sql .= \"'0000-00-00', \";\n\t\t$sql .= \"'\".$args[\"book_status\"].\"', \";\n\t\t$sql .= \"'0', \"; // USER VIEW BOOKING\n\t\t$sql .= \"'0', \"; // USER UPDATE BOOKING\n\t\t$sql .= \"'\".date(\"Y-m-d H:i:s\").\"' ) \";\n\t\t\n\t\tmysql_query($sql) or die(\"SQL : \".$sql.\"<br>ERROR : \". mysql_error()); \n\t\treturn mysql_insert_id();\n\t}", "title": "" }, { "docid": "edb518d0de7bb964c3e4995dafbc5e81", "score": "0.5834099", "text": "function bookingdetail_tambahdata(){\n\n\n}", "title": "" }, { "docid": "a59b21feefe1fab471f5586ae1d4994a", "score": "0.58290243", "text": "function insertBooking($args)\n\t{\n\t\t$sql = \"INSERT INTO booking VALUES (\";\n\t\t$sql .= \"NULL, \";\n\t\t$sql .= \"'\".$args[\"hotel_id\"].\"', \";\n\t\t$sql .= \"'\".$args[\"hotel_sec\"].\"', \";\t\t\t\n\t\t$sql .= \"'\".$args[\"bookref\"].\"', \";\n\t\t$sql .= \"'\".$args[\"contact\"].\"', \";\n\t\t$sql .= \"'\".$args[\"title\"].\"', \";\n\t\t$sql .= \"'\".$args[\"first\"].\"', \";\n\t\t$sql .= \"'\".$args[\"last\"].\"', \";\t\t\t\t\t\t\n\t\t$sql .= \"'\".$args[\"email\"].\"', \";\n\t\t$sql .= \"'\".$args[\"telephone\"].\"', \";\n\t\t//10\n\t\t$sql .= \"'\".$args[\"address\"].\"', \";\n\t\t$sql .= \"'\".$args[\"city\"].\"', \";\n\t\t$sql .= \"'\".$args[\"zipcode\"].\"', \";\n\t\t$sql .= \"'\".$args[\"country\"].\"', \";\n\t\t$sql .= \"'\".$args[\"national\"].\"', \";\t\t\n\t\t$sql .= \"'\".$args[\"transfer_type\"].\"', \";\n\t\t$sql .= \"'\".$args[\"flight_no\"].\"', \";\n\t\t$sql .= \"'\".$args[\"arr_time\"].\"', \";\n\t\t$sql .= \"'\".$args[\"book_request\"].\"', \";\n\t\t$sql .= \"'\".$args[\"smoking_preference\"].\"', \";\n\t\t//20\n\t\t$sql .= \"'\".$args[\"bed_preference\"].\"', \";\n\t\t$sql .= \"'\".$args[\"book_remark\"].\"', \";\n\t\t$sql .= \"'\".$args[\"room_id\"].\"', \";\n\t\t$sql .= \"'\".$args[\"room_code\"].\"', \";\n\t\t$sql .= \"'\".$args[\"room_type\"].\"', \";\n\t\t$sql .= \"'\".$args[\"ABF\"].\"', \";\n\t\t$sql .= \"'\".$args[\"rooms\"].\"', \";\n\t\t$sql .= \"'\".$args[\"checkin\"].\"', \";\n\t\t$sql .= \"'\".$args[\"checkout\"].\"', \";\n\t\t$sql .= \"'\".$args[\"nights\"].\"', \";\n\t\t//30\n\t\t$sql .= \"'\".$args[\"adult\"].\"', \";\n\t\t$sql .= \"'\".$args[\"extra_adult\"].\"', \";\n\t\t$sql .= \"'\".$args[\"extra_children\"].\"', \";\n\t\t$sql .= \"'\".$args[\"total\"].\"', \";\n\t\t$sql .= \"'\".$args[\"extra_adult_charge\"].\"', \";\n\t\t$sql .= \"'\".$args[\"extra_children_charge\"].\"', \";\n\t\t$sql .= \"'\".$args[\"gala_charge\"].\"', \";\n\t\t$sql .= \"'\".$args[\"transfer_charge\"].\"', \";\n\t\t$sql .= \"'\".$args[\"extra_service_charge\"].\"', \";\n\t\t$sql .= \"'\".$args[\"book_fee\"].\"', \";\n\t\t$sql .= \"'\".$args[\"rateamount\"].\"', \";\n\t\t$sql .= \"'\".$args[\"amount\"].\"', \";\n\t\t$sql .= \"'\".$args[\"service_type\"].\"', \";\n\t\t$sql .= \"'\".$args[\"service\"].\"', \";\n\t\t$sql .= \"'\".$args[\"service_charge\"].\"', \";\n\t\t$sql .= \"'\".$args[\"vat_type\"].\"', \";\n\t\t$sql .= \"'\".$args[\"vat\"].\"', \";\n\t\t$sql .= \"'\".$args[\"vat_charge\"].\"', \";\n\t\t$sql .= \"'\".$args[\"gamount\"].\"', \";\t\t\t\t\n\t\t$sql .= \"'\".$args[\"deposit_charge\"].\"', \";\n\t\t\n\t\t$sql .= \"'\".$args[\"payment_amount\"].\"', \";\n\t\t$sql .= \"'\".$args[\"due_pay\"].\"', \";\t\t\n\t\t$sql .= \"'\".$args[\"rate_detail\"].\"', \";\n\t\t$sql .= \"'\".$args[\"member_id\"].\"', \";\n\t\t$sql .= \"'\".$args[\"member_discount\"].\"', \";\n\t\t$sql .= \"'\".$args[\"member_benefits\"].\"', \";\n\t\t$sql .= \"'\".$args[\"disc_amount\"].\"', \";\n\t\t$sql .= \"'\".$args[\"promotion_code\"].\"', \";\n\t\t$sql .= \"'\".$args[\"payment_type\"].\"', \";\n\t\t$sql .= \"'\".$args[\"payment_ref\"].\"', \";\t\t\n\t\t$sql .= \"'\".$args[\"cancel_day\"].\"', \";\t\n\t\t$sql .= \"'\".$args[\"cancel_policy\"].\"', \";\n\t\t$sql .= \"'', \";\n\t\t$sql .= \"'\".$args[\"device\"].\"', \";\n\t\t$sql .= \"'\".$args[\"device_desc\"].\"', \";\n\t\t$sql .= \"'\".$args[\"language_id\"].\"', \";\n\t\t$sql .= \"'\".$args[\"device_language\"].\"', \";\t\t\t\t\t\t\n\t\t$sql .= \"'\".date(\"Y-m-d\").\"', \";\n\t\t$sql .= \"'0000-00-00', \";\n\t\t$sql .= \"'\".$args[\"book_status\"].\"', \";\n\t\t$sql .= \"'\".$args[\"book_type\"].\"', \";\n\t\t$sql .= \"'0', \"; // USER VIEW BOOKING\n\t\t$sql .= \"'0', \"; // USER UPDATE BOOKING\n\t\t$sql .= \"'\".date(\"Y-m-d H:i:s\").\"' ) \";\n\t\t\n\t\tmysql_query($sql) or die(\"SQL : \".$sql.\"<br>ERROR : \". mysql_error()); \n\t\treturn $ref;\n\t}", "title": "" }, { "docid": "442ee156ca931776ef7abd47ee012cf5", "score": "0.5825931", "text": "function create_reservation($guest_id, $room_id, $datein, $dateout) {\n\t\tglobal $mysqli;\n\t\t$reference = getToken(10);\n\t\t//preparing the query and executing the query, first line is the template and the ? will be replaced\n\t\t$stmt = $mysqli->prepare (\"INSERT INTO reservationqueue (guest_id, room_id, date_in, date_out, reference_code) VALUES (?,?,?,?,?)\");\n\t $stmt->bind_param(\"iisss\", $guest_id, $room_id, $datein, $dateout, $reference); //replacing the ? in the query, first param are the type (s for string)\n\t\t$stmt->execute(); //executing the query\n\t return 1;\n\t}", "title": "" }, { "docid": "c9edf5e980e057c440c3a4ec63677cd6", "score": "0.58213365", "text": "function dspDayBooking($id)\n{\n\t$query = \"SELECT m.first_name, m.last_name, b.booking_id, b.status, b.booking_date,\n DATE_ADD(b.booking_date, INTERVAL 14 DAY) AS deposit_due\n\tFROM edelweiss_days AS d, edelweiss_booking AS b, edelweiss_members AS m\n\tWHERE b.booking_id = $id\n\tAND d.booking_id = b.booking_id\n\tAND b.member_id = m.member_id\n\tLIMIT 20\";\n\t$result = mysqli_query($conn, $query);\n\tif (! $result ) die (\"<hr>Database Error: <br><pre>\". mysqli_error() .\"</pre><hr>\");\n\t$query_data = mysqli_fetch_array($result);\n\t$name = $query_data[\"first_name\"].\" \".$query_data[\"last_name\"];\n\t$booking_date = $query_data[\"booking_date\"];\n\t$status = $query_data['status'];\n\t$colour = getStatusColour($status);\n $deposit_due = $query_data['deposit_due'];\n\n\t\n\techo \"<h2>\".$name.\"</h2>\";\n\techo \"Booking Number: \".$id.\"<p>\";\n\techo \"Booking was made on \".$booking_date.\"<p>\";\n\techo \"Current Status: <font color='$colour'>$status</font><p>\";\n\t\n\t// New Query to get each day of this booking\n\t$query = \"SELECT date, members, juniors, adult_guests, child_guests,\n\tmembers + juniors + adult_guests + child_guests AS total\n\tFROM edelweiss_days AS d, edelweiss_booking AS b\n\tWHERE b.booking_id = $id\n\tAND d.booking_id = b.booking_id\n\tORDER BY date\n\tLIMIT 20\";\n\t$result = mysqli_query($conn, $query);\n\tif (! $result ) die (\"<hr>Database Error: <br><pre>\". mysqli_error() .\"</pre><hr>\");\n\t$total_cost = 0;\n\t\n\techo \"<table border=1>\";\n\techo \"<thead><tr><td>Date</td><td>Members</td><td>Juniors</td>\".\n\t\t\"<td>Adult Guests</td><td>Child Guests</td><td>Total Beds</td><td>Cost</td></tr></thead>\";\n\twhile ($query_data = mysqli_fetch_array($result))\n\t{\n\t\t$date = $query_data[\"date\"];\n\t\t$members = $query_data[\"members\"];\n\t\t$juniors = $query_data[\"juniors\"];\n\t\t$adult_guests = $query_data[\"adult_guests\"];\n\t\t$child_guests = $query_data[\"child_guests\"];\n\t\t\n//\t\t$total_cost = $total_cost + $members * 16.50 + $juniors * 8.0 + $adult_guests * 40.0 + $child_guests * 16.50;\n\t\t$cost = getCost($date, $members, $juniors, $adult_guests, $child_guests);\n\t\t$total_cost = $total_cost + $cost;\n\t\t\n\t\tif ($members == 0) $members = \"-\";\n\t\tif ($juniors == 0) $juniors = \"-\";\n\t\tif ($adult_guests == 0) $adult_guests = \"-\";\n\t\tif ($child_guests == 0) $child_guests = \"-\";\n\t\t\n\t\techo \"<tr><td>\" . $date .\"</td>\";\n\t\techo \"<td align='right'>\" . $members .\"</td>\";\n\t\techo \"<td align='right'>\" . $juniors .\"</td>\";\n\t\techo \"<td align='right'>\" . $adult_guests .\"</td>\";\n\t\techo \"<td align='right'>\" . $child_guests .\"</td>\";\n\t\techo \"<td align='right'>\" . $query_data[\"total\"] .\"</td>\";\n\t\techo \"<td align='right'>\" . sprintf(\"$%01.2f\", $cost) .\"</td></tr>\";\n\t}\n\tprintf( \"<tr><td colspan=6><b>Total Cost</b></td><td><b>$%01.2f</b></td></tr>\", $total_cost);\n\techo \"</table><p>\";\n printf( \"<p>A deposit of $%01.2f is due by %s<br>\\n\", $total_cost * 0.30, $deposit_due);\n\t\n\techo \"<h2>Payments</h2>\";\n\t$query = \"SELECT date, amount, type, details \n\tFROM edelweiss_payments AS p\n\tWHERE p.booking_id = $id\n\tLIMIT 20\";\n\t$result = mysqli_query($conn, $query);\n\tif (! $result ) die (\"<hr>Database Error: <br><pre>\". mysqli_error() .\"</pre><hr>\");\n\t$paid = 0;\n\t\n\techo \"<table border=1>\";\n\techo \"<thead><tr><td>Date</td><td>Type</td><td>Detials</td>\".\n\t\t\"<td>Amount</td></tr></thead>\";\n\twhile ($query_data = mysqli_fetch_array($result))\n\t{\n\t\t$date = $query_data[\"date\"];\n\t\t$amount = $query_data[\"amount\"];\n\t\t$type = $query_data[\"type\"];\n\t\t$details = $query_data[\"details\"];\n\t\t\n\t\t$paid = $paid + $amount;\n\t\techo \"<tr><td>\" . $date .\"</td>\";\n\t\techo \"<td align='center'>\" . $type .\"</td>\";\n\t\techo \"<td align='left'>\" . $details .\"</td>\";\n\t\tprintf( \"<td align='right'>$%01.2f</td><tr>\", $amount);\n\t}\t\n\tprintf( \"<tr><td colspan=3><b>Total Amount Paid</b></td><td align='right'><b>$%01.2f</b></td><tr>\", $paid);\n\techo \"</table><p>\";\n}", "title": "" }, { "docid": "c124df0cbc44e7a04fe98125dfe8e2e8", "score": "0.5801393", "text": "public function __construct(Booking $booking)\n\t{\n\t\t//\n\t\t$this->booking = $booking;\n\t}", "title": "" }, { "docid": "aef97772ce76476a6da36c537bd2391f", "score": "0.5799544", "text": "function get_bus_booking_id($booking_id,$year){ global $app_version;\n $year = ($year == '') ? $app_version : $year; return 'BB/'.$year.'/'.$booking_id; }", "title": "" }, { "docid": "0805d363b2821fb69777476fab6456b0", "score": "0.5791738", "text": "public function create()\n {\n $mobil = mobil::all();\n $supir = supir::all();\n $booking = booking::all();\n return view('booking.create',compact('mobil','supir','booking'));\n }", "title": "" }, { "docid": "072e893a780c81f6597928017c96b828", "score": "0.5791153", "text": "function migrate_to_new_booking_post($old_post_timestamp, $old_post_date, $appointment_timestamp, $appointment_timeslot, $customer_obj, $order_id, $old_callendar_resource_id, $old_status, $attendence_status){\n\n\t\t\t$is_guest_user = false;\n\n\t\t\tif( $customer_obj->user_id == 0 ){\n\t\t\t\t$is_guest_user = true;\n\t\t\t}\n\n\t\t\techo \"old_post_timestamp : \".$old_post_timestamp; echo '<br/>';\n\t\t\techo \"old_post_date : \".$old_post_date; echo '<br/>';\n\t\t\techo \"appointment_timestamp : \".$appointment_timestamp; echo '<br/>';\n\t\t\techo \"appointment_timeslot : \".$appointment_timeslot; echo '<br/>';\n\t\t\techo \"user_id : \".$user_id; echo '<br/>';\n\t\t\techo \"order_id : \".$order_id; echo '<br/>';\n\t\t\techo \"old_callendar_resource_id : \".$old_callendar_resource_id; echo '<br/>';\n\t\t\techo \"old_status : \".$old_status; echo '<br/>';\n\n\t\t\t$new_status = 'booked_wc_awaiting';\n\n\t\t\tif( $old_status == 'unpaid' ){\n\t\t\t\t$new_status = 'booked_wc_awaiting';\n\t\t\t}\n\t\t\tif( $old_status == 'paid' ){\n\t\t\t\t$new_status = 'publish';\t\n\t\t\t}\n\n\t\t\t$current_timestamp = $old_post_timestamp;\n\t\t\t$date = $old_post_date;\n\n\t\t\t$timestamp = $appointment_timestamp;\n\t\t\t$timeslot = $appointment_timeslot;\n\n\t\t\t$time_format = get_option('time_format');\n\t\t\t$date_format = get_option('date_format');\n\n\t\t\t$post_args = array(\n\t\t\t\t'post_title' => date_i18n($date_format,$current_timestamp).' @ '.date_i18n($time_format,$current_timestamp).' (User: '.$user_id.')',\n\t\t\t\t'post_content' => '',\n\t\t\t\t'post_status' => $new_status,\n\t\t\t\t'post_date' => date_i18n('Y',strtotime($date)).'-'.date_i18n('m',strtotime($date)).'-01 00:00:00',\n\t\t\t\t'post_type' => 'booked_appointments'\n\t\t\t);\n\n\t\t\tif( $is_guest_user ){\n\n\t\t\t}else{\n\t\t\t\t$post_args['post_author'] = $customer_obj->user_id;\n\t\t\t}\n\n\t\t\t$cf_meta_value = '<p class=\"cf-meta-value\"><strong>Class</strong><br>&#036;34 - OVERTHROW BOXING CLASS<!-- product_id::29793 --></p>';\n\n\t\t\t// Create a new appointment post for this new customer\n\t\t\t$new_post = apply_filters('booked_new_appointment_args', $post_args);\n\n\t\t\t$post_id = -1;\n\n\t\t\t$post_id = wp_insert_post($new_post);\n\n\t\t\techo '<pre>';\n\t\t\tprint_r($post_id);\n\t\t\techo '</pre>';\n\n\t\t\tif( $old_callendar_resource_id == '29802' ){\n\t\t\t\t$calendar_id = 370;\n\t\t\t}\n\t\t\tif( $old_callendar_resource_id == '29803' ){\n\t\t\t\t$calendar_id = 371;\t\n\t\t\t}\n\n\t\t\tif( $post_id != -1 ){\n\n\t\t\t\t//update_post_meta($post_id, '_appointment_title', $title);\n\t\t\t\tupdate_post_meta($post_id, '_appointment_timestamp', $timestamp);\n\t\t\t\tupdate_post_meta($post_id, '_appointment_timeslot', $timeslot);\n\n\t\t\t\tif( $is_guest_user ){\n\t\t\t\t\tupdate_post_meta($post_id, '_appointment_guest_name', $customer_obj->name);\n\t\t\t\t\tupdate_post_meta($post_id, '_appointment_guest_email', $customer_obj->email);\n\t\t\t\t}else{\n\t\t\t\t\tupdate_post_meta($post_id, '_appointment_user', $user_id);\n\t\t\t\t}\t\t\t\t\n\n\t\t\t\tupdate_post_meta($post_id, '_booked_wc_appointment_order_id', $order_id);\n\t\t\t\tupdate_post_meta($post_id, '_booked_wc_time_created', $current_timestamp);\n\n\t\t\t\tupdate_post_meta($post_id, '_booking_attendance_status', $attendence_status);\t\t\t\t\t\n\n\t\t\t\t//if (apply_filters('booked_update_cf_meta_value', true)) {\n\t\t\t\t\tupdate_post_meta($post_id, '_cf_meta_value', $cf_meta_value);\n\t\t\t\t//}\n\n\t\t //if (apply_filters('booked_update_appointment_calendar', true)) {\n\t\t\t\t\t//if (isset($calendar_id) && $calendar_id): \n\n\t\t\t\t\t\twp_set_object_terms($post_id,$calendar_id,'booked_custom_calendars');\n\n\t\t\t\t\t//endif;\n\t\t\t\t//}\n\n\t\t\t}\t\t\t\n\n\t\t}", "title": "" }, { "docid": "d34210d0571ae805ff275b433dbae1e5", "score": "0.57840735", "text": "function get_booking_form($my_boook_type, $my_booking_form = 'standard', $custom_params = array() ){ // FixIn:6.0.1.5\n\n\n $this->current_booking_type = $my_boook_type;\n//debuge($_GET);\n // Get from the HASH booking data - BK RES & BK ID ////////////////\n $my_edited_bk_id = false;\n if (isset($_GET['booking_hash'])) {\n $my_booking_id_type = apply_bk_filter('wpdev_booking_get_hash_to_id',false, $_GET['booking_hash'] );\n if ($my_booking_id_type !== false) {\n if ( ($my_booking_id_type[1] == '') ){\n\n } else { \n $my_boook_type = $my_booking_id_type[1];\n $my_edited_bk_id = $my_booking_id_type[0];\n $this->current_booking_type = $my_booking_id_type[1];\n }\n }\n } \n ////////////////////////////////////////////////////////////////////\n\n//debuge($my_booking_form);\n // Get the Booking Form content ////////////////////////////////////\n if ($my_booking_form == 'standard') {\n\n // S T A N D A R D\n $booking_form = get_bk_option( 'booking_form' );\n\n // If we are have the name of booking form in the GET, so then load it\n if (isset($_GET['booking_form'])) {\n $my_booking_form = $_GET['booking_form'];\n $booking_form = apply_bk_filter('wpdev_get_booking_form', $booking_form, $my_booking_form);\n }\n//debuge($my_booking_form);\n // If we are editing the specific booking, recheck if this booking was used the custom form\n if (isset($_GET['booking_hash'])) { \n\n $my_booking_form_name = apply_bk_filter('wpdev_get_default_booking_form_for_resource', 'standard', $my_boook_type);\n $my_booking_form = $my_booking_form_name; //FixIn: 5.4.2\n if ( ! isset( $_GET['booking_form'] ) ) // Fix: on 2015-04-03\n if ( ($my_booking_form_name != 'standard') && (!empty($my_booking_form_name)) )\n $booking_form = apply_bk_filter('wpdev_get_booking_form', $booking_form, $my_booking_form_name);\n }\n\n } else { // C U S T O M\n $booking_form = get_bk_option( 'booking_form' );\n $booking_form = apply_bk_filter('wpdev_get_booking_form', $booking_form, $my_booking_form);\n }\n ////////////////////////////////////////////////////////////////////\n\n\n // Cehck for the Active Language in the Booking Form.\n $booking_form = apply_bk_filter('wpdev_check_for_active_language', $booking_form );\n // FixIn:6.0.1.5\n foreach ( $custom_params as $custom_params_key => $custom_params_value ) {\n $booking_form = str_replace( $custom_params_key, $custom_params_value, $booking_form );\n }\n // FixIn:6.0.1.5\n \n // Assign the current BK ID\n if ($my_edited_bk_id !== false) $this->current_edit_booking = $this->get_booking_data($my_edited_bk_id);\n else $this->current_edit_booking = false;\n\n // P A R S E Booking Form\n $return_res = $this->form_elements($booking_form);\n //$return_res = wpdev_bk_form_elements($booking_form);\n\n // Parse additional elements in other versions\n $return_res = apply_bk_filter('wpdev_reapply_bk_form',$return_res, $this->current_booking_type, $my_booking_form);\n\n $return_res = $this->replace_bookingresource_info_in_form( $return_res, $this->current_booking_type ); //FixIn: 5.4.5.4\n\n // Set some custom elemtns:\n if ( $my_edited_bk_id !== false ) { $return_res .= '<input name=\"edit_booking_id\" id=\"edit_booking_id\" type=\"hidden\" value=\"'.$my_edited_bk_id.'\">'; }\n\n if ( $my_booking_form != 'standard' ) { $return_res .= '<input name=\"booking_form_type'.$my_boook_type.'\" id=\"booking_form_type'.$my_boook_type.'\" type=\"hidden\" value=\"'.$my_booking_form.'\">'; }\n\n // Select Dates in Calendar ////////////////////////////////////////\n if ( $my_edited_bk_id !== false ){ \n ?><script type=\"text/javascript\">\n jQuery(document).ready(function(){ \n timeout_DSwindow=setTimeout(\"wpdevbk_select_days_in_calendar(<?php \n echo $my_boook_type; ?>, <?php \n echo 'new Array( ';\n foreach ($this->current_edit_booking['dates'] as $dt_key=>$dt) {\n $dt = trim($dt);\n $dta = explode(' ',$dt);\n $dta = explode('-',$dta[0]);\n echo 'new Array( ' . $dta[0].', '.$dta[1].', '.$dta[2] . ' ) ';\n if ( $dt_key < (count($this->current_edit_booking['dates'])-1) ) echo ', ';\n }\n echo ')'; ?> )\", 1500); }); \n </script><?php\n } //////////////////////////////////////////////////////////////////\n\n return $return_res;\n }", "title": "" }, { "docid": "8f1cf8343ca9b6d3d8f011ba79bd2fca", "score": "0.57828605", "text": "function make_booking_array($year, $month, $j = 0) { \n\n\t$stmt = $this->link->prepare(\"SELECT teacherid,roomid,status FROM booking WHERE teacherid=3\"); \n\t$this->is_slot_booked_today = 0; // Defaults to 0\n //$stmt->bind_param('ss', $year, $month);\t\n $stmt->bind_result($name, $date, $start);\t\n\t$stmt->execute();\n\t$stmt->store_result();\n\t\n\twhile($stmt->fetch()) { \n\n\t\t$this->bookings_per_day[$date][] = $start;\n\n\t\t$this->bookings[] = array(\n \"name\" => $name, \n \"date\" => $date, \n \"start\" => $start \n \t\t); \n\t\n\t\t// Used by the 'booking_form' function later to check whether there are any booked slots on the selected day \t\t\n\t\tif($date == $this->year . '-' . $this->month . '-' . $this->day) {\n\t\t\t$this->is_slot_booked_today = 1;\n\t\t} \n\n\t}\n\n\t// Calculate how many slots there are per day\n\t$this->slots_per_day = 0;\t\n\tfor($i = strtotime($this->booking_start_time); $i<= strtotime($this->booking_end_time); $i = $i + $this->booking_frequency * 60) {\n\t\t$this->slots_per_day ++;\n\t}\t\n\n\t$stmt->close();\t\t\n $this->make_days_array($year, $month); \n \n}", "title": "" }, { "docid": "1318afc58daacf6e3beaf84cdfb5e9de", "score": "0.577752", "text": "function DrawButton($p_day,$p_start_time,$p_end_time) {\n\t//echo $p_start_time.\"<br>\";\n\tglobal $obj_slt;\n\n\t$user_id=\"\";\n\tif (ISSET($_GET['user_id'])) {\n\t\t$user_id=EscapeData($_GET['user_id']);\n\t}\n\n\t$booked=$obj_slt->SlotIsReserved($user_id,$p_start_time,$p_end_time,$p_day,\"own\");\n\tif (!$booked) {\n\t\treturn \" \";\n\t}\n\telse {\n\t\t$subject=$obj_slt->GetInfo(\"slot_subject_name\");\n\t\t$location=$obj_slt->GetInfo(\"slot_resource_name\");\n\t\treturn $subject.\"1<br>\".$location;\n\t}\n}", "title": "" }, { "docid": "927d8f57f18bf88d0cfd79ca24a436ba", "score": "0.5764469", "text": "public function bookProperty(BookingPropertyRequest $request){\n $inputs = $request->all();\n if(isset($inputs['approvedBooking'])){\n $bookingId = $inputs['bookingId'];\n $approvedBooking = $inputs['approvedBooking'];\n $availabilityIds = (new PropertyAvailaibility())->getPropertyAvailabilityBetweenDates( $inputs['property_id'], $inputs['start_date'], $inputs['end_date'] );\n $bookingDate = (new Bookings())->getBookingDatesByBookingID( $bookingId );\n if(count($availabilityIds) == count($bookingDate)){\n\n $booked = (new PropertyAvailaibilityDate())->dateBook( $availabilityIds );\n if($booked){\n if( Bookings::where('booking_id', $bookingId)->update(array('payment_status' => 1))){\n\n $this->sendConfrimedBookingEmail($inputs['property_id'],$inputs['start_date'], $inputs['end_date'],$inputs['ownerID']);\n return response()->json(['success'=>true,'message'=>'Your Booking is done successfully'] );\n } else {\n\n\n return response()->json(['success'=>false,'message'=>'These dates are not available'] );\n }\n }\n }else {\n return response()->json(['success'=>false,'message'=>'These dates are not available'] );\n }\n\n } else {\n\n $time = Config::get('constants.START_TIME');\n $approval_required = $inputs['approval_required'];\n $available = (new PropertyAvailaibility())->checkIfBookedOnDate($inputs['property_id'],$inputs['start_date'], $inputs['end_date']);\n $propertydata = Property::where('id', $inputs['property_id'])->first();\n $cancelPolicyId= $propertydata['policy_types_id'];\n $bookDates = $inputs['bookFor'];\n $booking_dates = convertLocalToUTC($bookDates, $time, $propertydata->timezone_name); // Convert local to UTC dates\n $result = array_diff($booking_dates,$available);\n if(count($result)){\n return response()->json(['success'=>false,'message'=>'These dates are not available']);\n }\n if(Auth::user()->id == $inputs['ownerID'] ){\n return response()->json(['success'=>false,'message'=>'Can not book your own property']);\n }\n $property_status= $this->getPropertyStatus($inputs['property_id']);\n $propertyTimezone= $property_status['timezone_name'];\n $dateResult = getUtcTime($propertyTimezone);\n $currentDateTime=$dateResult['currentTime'];\n $utcDateTime=$dateResult['utcTime'];\n $statusvalue = $property_status->is_approved_checked;\n $data['property_id'] = $inputs['property_id'];\n $data['user_id'] = Auth::user()->id;\n $data['property_owner_id'] = $inputs['ownerID'];\n $data['total_amount'] = $inputs['total_amount'];\n $data['policy_id'] = $cancelPolicyId;\n $data['utc_time'] = $utcDateTime;\n $data['payment_status'] = 0;\n if($statusvalue==1){\n $data['is_approved'] = 0;\n $data['payment_status'] = 0;\n $data['through_approval'] = 1;\n } else {\n $data['is_approved'] = 1;\n $data['payment_status'] = 1;\n $data['through_approval'] = 0;\n }\n $bookObj = new Bookings($data);\n if( $bookObj->save() ){\n $propertyName = (new PropertyFieldValue())->getPropertyDetail($inputs['property_id']);\n $propertyFullName = '';\n $routefunction = '<a href=\"'.route('pending-approval-booking-properties').'\">Click here</a>';\n foreach($propertyName as $property){\n if($property['field_name'] == 'Name'){\n $propertyFullName = $property['property_type_section_field_value'];\n }\n }\n $property_owner_details = User::where('id', $inputs['ownerID'])->first();\n $buyerDetail = User::where('id', $data['user_id'])->first();\n $book['booking_id']=$bookObj->id;\n\n $userName = $property_owner_details['first_name'].' '.$property_owner_details['Last_name'];\n $buyer = $buyerDetail['first_name'].' '.$buyerDetail['last_name'];\n $templateLog = (new TemplateLog())->where(['template_log_id' => '3'])->first();\n $userTaskDes = array(\"#user_name#\",\"#buyer_name#\",\"#property_name#\",\"#from_date#\",'#end_date#',\"#click_here#\");\n $userTaskRep = array($userName,$buyer,$propertyFullName,$inputs['start_date'],$inputs['end_date'],$routefunction);\n $messages = $templateLog->message;\n $newTaskDes = str_replace($userTaskDes,$userTaskRep,$messages);\n $messageBody = $newTaskDes;\n if($statusvalue==1){\n\n $message['bookingId'] = $bookObj->id;\n $message['approved_token'] = md5(time());\n $message['email'] = $property_owner_details['email'];\n $message['subject'] = \"Property Approval\";\n $message['mobile_no'] = $property_owner_details['mobile_number'];\n $message['is_send'] = \"1\";\n $message['body'] = $messageBody;\n $message['url'] = \"/success\";\n $message['type'] = 1;\n $sendObj = new MessageToBeSend($message);\n $sendObj->save();\n }\n if($statusvalue == 0){\n\n $this->sendConfrimedBookingEmail($inputs['property_id'],$inputs['start_date'], $inputs['end_date'],$inputs['ownerID']);\n }\n foreach($booking_dates as $values){\n $book['date'] = $values;\n $bookDatesObj = new BookingDates($book);\n $bookDatesObj->save();\n }\n //$availabilityIds = (new PropertyAvailaibility())->getPropertyAvailabilityBetweenDates( $inputs['property_id'], $inputs['start_date'], $inputs['end_date'] );\n $availabilityIds = (new PropertyAvailaibility())->getIsRequestedDates( $inputs['property_id'], $inputs['start_date'], $inputs['end_date'] );\n (new PropertyAvailaibilityDate())->setIsRequested( $availabilityIds ); // set IsRequested = 1\n if($approval_required==0){ // 0 => Automatically booked no approval of seller is required.\n (new PropertyAvailaibilityDate())->dateBook( $availabilityIds ); // Set is_booked key to 1\n }\n return response()->json(['is_approved'=>$statusvalue,'success'=>true,'message'=>'Your Booking is done successfully'] );\n } else {\n return response()->json(['success'=>false,'message'=>'Something went wrong'] );\n }\n }\n }", "title": "" }, { "docid": "d151af8af9bee948e552e3f59b49f808", "score": "0.5755853", "text": "public function bookingAjaxAction(){\n //\n if (LoginHelper::isACurrentDoctor()){\n Router::redirect('home', \"<p class='alert alert-danger'>Unauthorized</p>\");\n }\n //$slot = Input::get('slot');\n $datePicked = Input::get('datePicked');\n $doctor_id = Input::get('doctor_id');\n //$datep = Input::get('datep');\n\n $selectedSchedules = array();\n\n $schedules = Schedule::all();\n\n //dnd($this->checkIfScheduleAvail(1, \"9.00\", '2020-02-07'));\n //Stole available schedule to selectedSchedule variable\n foreach ($schedules as $schedule){\n if (!$this->isTheTimeBooked($doctor_id, $schedule->time, $datePicked)){\n $selectedSchedules[] = $schedule->time;\n }\n }\n\n //$response = ['success' => true, 'data' => [\"checkSchedule\"=>$this->isTheTimeBooked($doctor_id, '9.00', $datePicked)]];\n $response = ['success' => true, 'data' => [\"selectedSchedules\"=>$selectedSchedules, \"doctor_id\" => $doctor_id]];\n //$response = ['success' => true, 'data' => [\"selectedSchedules\"=>$selectedSchedules, \"datep\" => $datep]];\n $this->jsonResponse($response);//Send back as json response\n\n //dnd($selectedSchedules);\n\n //dnd($schedudes->find(2)->time);\n }", "title": "" }, { "docid": "7975d6426012d0ef9d8d9b1d3688aaf5", "score": "0.57540333", "text": "public function create_booking (Request $request) {\n $rules = array(\n 'email_user' => 'required',\n 'full_name_user' => 'required',\n 'phone_number_user' => 'required',\n 'type_payment' => 'required:in:0,1',\n );\n\n $validator = Validator::make($request->all(), $rules);\n\n if ($validator->fails())\n {\n //dd($validator->errors());\n return back()->withErrors($validator)->withInput(); // Form calling with Errors and Input values\n }\n else\n {\n\n $date_tomorrow = new Carbon('tomorrow');\n\n $tomorrow = $date_tomorrow->month . '-' . $date_tomorrow->day . '-' . $date_tomorrow->year;\n\n\n Session::put('function_id', $request->function_id);\n Session::put('date', ($request->date_booking=='') ? $tomorrow : $request->date_booking);\n Session::put('number_people_adult', (int) $request->number_people_adult);\n Session::put('number_people_children', (int) $request->number_people_children);\n Session::put('number_total', (int) $request->number_total);\n Session::put('email_user', $request->email_user);\n Session::put('full_name_user', $request->full_name_user);\n Session::put('phone_number_user', $request->phone_number_user);\n Session::put('type_payment', $request->type_payment);\n Session::put('price_total', $request->price_total);\n\n $number_total = floatval($request->number_total);\n\n if($request->type_payment == 0){\n $amount_total = $number_total * $request->price_total;\n $amount_total = (string) number_format($amount_total, 2, '.', '');;\n\n $purchaseData = [\n 'testMode' => ('Live' == 'sandbox') ? true : false,\n 'amount' => $amount_total,\n 'currency' => 'USD',\n 'returnUrl' => url('reservation/success'),\n 'cancelUrl' => url('reservation/cancel')\n ];\n }\n else if($request->type_payment == 1) {\n $amount_total = $request->price_total;\n $purchaseData = [\n 'testMode' => ('Live' == 'sandbox') ? true : false,\n 'amount' => $amount_total,\n 'currency' => 'USD',\n 'returnUrl' => url('reservation/success'),\n 'cancelUrl' => url('reservation/cancel')\n ];\n }\n Session::put('amount_total', $amount_total);\n Session::save();\n $this->setup();\n\n $response = $this->omnipay->purchase($purchaseData)->send();\n\n if ($response->isSuccessful()) {\n //Payment was successful\n $result = $response->getData();\n\n $data = [\n 'function_id' => $request->function_id,\n 'date' => ($request->date_booking=='') ? $tomorrow : $request->date_booking,\n 'number_people_adult' => (int) $request->number_people_adult,\n 'number_people_children' => (int) $request->number_people_children,\n 'number_total' => (int) $request->number_total,\n 'price_total' => $amount_total,\n 'email_user' => $request->email_user,\n 'full_name_user' => $request->full_name_user,\n 'phone_number_user' => $request->phone_number_user,\n 'transaction_id' => $result['TRANSACTIONID'],\n 'paymode' => 'Credit Card',\n ];\n\n $this->store($data);\n\n $para = Session::get('email_user');\n $subject = \"Data of Reservation\";\n $headers = 'MIME-Version: 1.0' . \"\\r\\n\";\n $headers .= 'Content-type: text/html; charset=utf-8' . \"\\r\\n\";\n $logo_url = \"http://dementedhaunt.com/assets/img/logo.png\";\n $email_body = '<div style=\"background-color: rgb(234, 234, 234);padding:3% 10%;\">\n <div style=\"margin: 30px 0\">\n <div style=\"text-align:center; marging: 0 auto; margin-bottom:10px;\">\n <img src=\"'.$logo_url.'\">\n </div>\n <h2 style=\"text-shadow:2px 2px #ccc;letter-spacing: 2px; text-align:center;color:#c90005;font-weight:600;font-size:2em;\"> Reservation Details </h2>\n </div>\n <div style=\"background-color: white; margin: 50px auto;padding:3% 5%;\">\n <h1 style=\"margin:2em 0; text-align:center;\"> Dear '.Session::get('full_name_user').' </h1>';\n\n $email_body.= '<div>\n <p style=\"color:red;font-size:2em;\">\n Your reservation has been accepted for our Escape Room show for the day :\n <span>\n '. Session::get('date') .'\n </span>\n </p>\n <p style=\"font-size:1.5em;\">\n Your Booking Reference is your Phone Number: <span> '.Session::get('phone_number_user').' </span>\n </p>\n\n <p style=\"font-size:1.5em;\">\n Reservation valid for : <span> '.Session::get('number_total').' </span> people.\n </p>\n\n <p style=\"font-size:1.5em;\">\n Total Paid : <span> '.Session::get('amount_total').' </span>.\n </p>\n\n <p style=\"font-size:1.5em;\">\n If you want to cancel this reservation do not hesitate to call us and give us your booking reference\n </p>\n </div>';\n\n $email_body.= '<div style=\"margin-top:120px; text-align:center;\">\n <p style=\"margin-top:20px;\">\n (954) 465-0666\n </p>\n <p style=\"margin-top:20px;\">\n dementedhaunt@gmail.com\n </p>\n <p style=\"margin-top:20px;\">\n Location:\n </p>\n <p style=\"margin-top:20px;\">\n 2515 N State RD 7\n </p>\n <p style=\"margin-top:20px;\">\n Margate, FL.\n </p>\n </div>';\n\n\n $email_body.= '</div> </div>';\n\n $send_mail_uno = @mail($para,$subject,$email_body,$headers);\n\n $myemail = 'josuebohorquezc@gmail.com, dementedhaunt@gmail.com'; //\n\n $name = Session::get('full_name_user');\n $email_address = Session::get('email_user');\n $date = Session::get('date');\n\n $to = $myemail;\n $email_subject = \"Reservation Data\";\n\n //------------------------------------------------\n $email_body = '<div style=\"background-color: rgb(234, 234, 234);padding:3% 10%;\">\n <div style=\"margin: 30px 0\">\n <div style=\"text-align:center; marging: 0 auto; margin-bottom:10px;\">\n <img src=\"'.$logo_url.'\">\n </div>\n <h2 style=\"text-shadow:2px 2px #ccc;letter-spacing: 2px; text-align:center;color:#c90005;font-weight:600;font-size:2em;\"> Reservation Details </h2>\n </div>\n <div style=\"background-color: white; margin: 20px auto;padding:3% 5%;\">\n <h3 style=\"margin:1.5em 0; text-align:center;\">FULL NAME: <strong> '. Session::get('full_name') . ' </strong></h3>';\n $email_body.= '<h3 style=\"margin:1.5em 0; text-align:center;\"> E-MAIL: <strong> '. Session::get('email_user') . ' </strong> </h3>';\n $email_body.= '<h3 style=\"margin:1.5em 0; text-align:center;\"> PHONE NUMBER: <strong> '. Session::get('phone_number_user') . ' </strong> </h3>';\n $email_body.= '<h3 style=\"margin:1.5em 0;text-align:center;\"> DATE RESERVATION: <strong> '. Session::get('date') . ' </strong> </h3>';\n $email_body.= '<h3 style=\"margin:1.5em 0;text-align:center;\"> NUMBER PEOPLE: <strong> '. Session::get('number_total') . ' </strong> </h3>';\n $email_body.= '<h3 style=\"margin:1.5em 0;text-align:center;\"> TOTAL A PAYMENT: <strong> $'. Session::get('amount_total') .' </strong> </h3>';\n\n $email_body.= '</div> </div>';\n //-----------------------------------------\n\n $send_mail = @mail($to,$email_subject,$email_body,$headers);\n\n return redirect('thanks');\n\n //$this->helper->flash_message('success', trans('messages.payments.payment_success')); // Call flash message function\n } elseif ($response->isRedirect()) {\n //Redirect to offsite payment gateway\n $response->redirect();\n } else {\n //Payment failed\n //$this->helper->flash_message('error', $response->getMessage()); // Call flash message function\n //return redirect('payments/book/' . $request->room_id);\n Session::put('error', $response->getMessage());\n return redirect('booking');\n }\n }\n }", "title": "" }, { "docid": "6482329283c64029ef934637125869c0", "score": "0.5750929", "text": "public function booking( Request $request)\n {\n $email =$request['email'];\n $fromdate = date_format(date_create($request['fromdate']),\"d/m/Y\");\n $todate = date_format(date_create($request['todate']),\"d/m/Y\");\n $message = $request['message'];\n $vehicleID = $request['vehicleID'];\n \n // 'userEmail','VehicleId',,'FromDate','ToDate','message'\n // 1 confirm 0 not confrimed yet 2 cancell\n\n //check logic xem co dat dc xe ko\n $booking = BookingModel::where('VehicleId',$vehicleID)->get();\n \n //check liệu có ai đã book xe có id này chưa\n if (count($booking)==0){\n // chưa có ai từng booked xe này\n \n BookingModel::insertGetId(['userEmail'=>$email,'VehicleId'=>$vehicleID,\n 'FromDate'=>$fromdate,'ToDate'=>$todate,'message'=>$message, 'Status'=>0]);\n $message = \"booking request from : $fromdate to $todate is waiting status \";\n return view( 'page.response',['message'=>$message]);\n \n } else{ \n //có nhiều người đã book xe này\n \n // booking request dang gửi lên ep kiểu \n $fromDateRequesting = DateTime::createFromFormat('d/m/Y', $fromdate );\n \n foreach($booking as $item){\n\n // cái đã gửi book request lên rồi rồi \n $todatebooked = DateTime::createFromFormat('d/m/Y', $item->ToDate); \n\n if( $todatebooked > $fromDateRequesting && $item->Status == 1 ){\n // nếu trong số xe có cùng id và fromdate(booking đang gửi lên) < toDate (của cái đã có)\n // và nó đã đc confirm rồi tức là Status =1 \n // =>> booking ko dc\n\n $message=\"booking request from : $fromdate to $todate 'Fail' because vehicle is being rented \" ;\n return view( 'page.response',['message'=>$message]);\n \n \n }\n\n }\n // chạy hết for của những thằng cùng id \n // fromdate (booking gửi lên) > cái toDate (của cái đã có ) hoăc\n // fromdate (booking gửi lên) < cái toDate (của cái đã có ,nhưng status = 0 2) thì có nghĩa là\n // booking request vẫn đc gửi và đang trạng thái ' not confirmed yet '\n\n BookingModel::insertGetId(['userEmail'=>$email,'VehicleId'=>$vehicleID,\n 'FromDate'=>$fromdate,'ToDate'=>$todate,'message'=>$message, 'Status'=>0]);\n $message=\"booking request from : $fromdate to $todate is waiting status \";\n return view( 'page.response',['message'=>$message]);\n }\n \n\n \n\n \n }", "title": "" }, { "docid": "7cbd51068d655853dfd11f10bd42c262", "score": "0.57403696", "text": "public function __construct(Booking $booking)\n {\n //\n $this->company = (new Temp())->getCompanyDefault();\n $this->booking = $booking;\n\n }", "title": "" }, { "docid": "0063ff267681f7c590b4207543d13e3d", "score": "0.57357234", "text": "public function booking()\n {\n return view('templates.them6.booking');\n }", "title": "" }, { "docid": "2747b6cf8db142e91fd902b5af1b987e", "score": "0.5734475", "text": "public function create()\n {\n $this->authorize('create', BookingEvent::class);\n\n $services = BookingService::all();\n $activities = BookingActivity::pluck('title','id');\n $timeDuration = config('time_duration.hours');\n // dd($timeDuration);\n return view('bookings.user.events.create', compact('services', 'timeDuration','activities'));\n }", "title": "" }, { "docid": "33502404a410143e3bea832c4a8517cd", "score": "0.5734355", "text": "public function show(booking $booking)\n {\n //\n }", "title": "" }, { "docid": "33502404a410143e3bea832c4a8517cd", "score": "0.5734355", "text": "public function show(booking $booking)\n {\n //\n }", "title": "" }, { "docid": "71d6aa6bf3cbea2891177940d1eb74ac", "score": "0.57325375", "text": "public function bookOnline(Request $request)\n {\n \t//Api Authentication\n if (Auth::guard('api')->check()) {\n //Request Validation\n $this->validate($request, [\n 'brand_id' => 'required',\n 'appointment_date' => 'required',\n 'job_info' => 'required',\n 'slot' => 'required|in:'.Appointment::SLOT_MORNING.','.Appointment::SLOT_AFTERNOON.','.Appointment::SLOT_EVENING,\n ]);\n\n //Get the current user\n $user = Auth::guard('api')->user();\n\n // @var day 1 of the month\n $from = new Carbon('first day of this month');\n // @var last day of the month\n \t$to = new Carbon('last day of this month');\n\n\n // check service provider exist\n $provider = ServiceProvider::find($request->input('brand_id'));\n if (!$provider instanceof ServiceProvider) {\n //ServiceProvider not found\n return response()->json([\n 'status' => 'Error',\n 'message' => 'Brand not found.'\n ], 404);\n }\n\n\n // check already an appointment is requested which is in bokked/new\n $appointment = $user->appointments()\n \t\t\t->whereBetween('created_at', [$from->toDateString(), $to->toDateString()])\n \t\t\t->where('status', '!=', Appointment::STATUS_COMPLETED)\n \t\t\t->where('service_provider_id', $provider->id)\n \t\t\t->first();\n \tif($appointment instanceof Appointment) {\n \t//Deal is already used by this users this month.\n return response()->json([\n 'status' => 'Error',\n 'message' => 'Already requested for an appointment.'\n ], 500);\n }\n\n\n // check the deal is unlocked\n $deal = $user->home_button->unlocked_deals()->where('sub_category_id', $provider->sub_category_id)->first();\n\n\t\t\tif (!$deal instanceof Deal) {\n\t\t\t\t//Deal locked for this user's home button\n return response()->json([\n 'status' => 'Error',\n 'message' => 'Please unlock the deal first.'\n ], 500);\n\t\t\t} \n\n\t\t\t// check user already used this deal in this month\t\t\t\n \t$dealUsed = $user->used_deals()\n \t\t\t\t->wherePivot('created_at', '>=', $from)\n \t\t\t\t->wherePivot('created_at', '<=', $to)\n \t\t\t\t->where('deal_id', $deal->id)->first();\n if($dealUsed instanceof Deal) {\n \t//Deal is already used by this users this month.\n return response()->json([\n 'status' => 'Error',\n 'message' => 'Deal is already used by this users this month.'\n ], 500);\n }\n\n\n // Going good. Create an appointment now\n Appointment::create([\n\t 'user_id' => $user->id,\n\t 'service_provider_id' => $provider->id,\n\t 'appointment_date' => $request->input('appointment_date'),\n\t 'job_info' => $request->input('job_info'),\n\t 'slot' => $request->input('slot'),\n\t 'status' => Appointment::STATUS_NEW, // start as Trial User\n\t ]); \n\n return response()->json([\n 'status' => 'Success',\n 'message' => 'Appointment Request successfully received.'\n ], 200);\n\n } else {\n //Api Authentication Failed\n return response()->json([\n 'status' => 'Error',\n 'message' => 'Api Authentication Failed.'\n ], 401);\n }\n\n }", "title": "" }, { "docid": "5dc24b623cf5885e062db78ecdcd6992", "score": "0.5731548", "text": "public function newBooking(Model $bookable, Model $customer, string $starts, string $ends, float $price): Booking\n {\n return $this->bookings()->create([\n 'bookable_id' => $bookable->getKey(),\n 'bookable_type' => get_class($bookable),\n 'customer_id' => $customer->getKey(),\n 'agent_id' => $this->getKey(),\n 'starts_at' => $starts,\n 'ends_at' => $ends,\n 'price' => $price,\n ]);\n }", "title": "" }, { "docid": "0a184cad5ce733c79529282cedc98df4", "score": "0.5729724", "text": "public function __construct(Booking $booking)\n {\n $this->booking = $booking;\n }", "title": "" }, { "docid": "7c002ea482f72f87aab008aee4e4fc8d", "score": "0.57292426", "text": "public function add_booking(request $request)\n {\n $new = new Booking;\n\n $new->booking_date = $request->booking_date;\n $new->agent_id = $request->agent_id;\n $new->block_id = $request->block_id;\n $new->plot_size = $request->plot_size;\n $new->unit_no = $request->unit_no;\n $new->applicant_name = $request->applicant_name;\n $new->cnic = $request->cnic;\n $new->phone_no = $request->phone_no;\n $new->booking_amount = $request->booking_amount;\n $new->remaining_amount = $request->remaining_amount;\n $new->status = $request->status;\n $new->created_by = Auth::user()->id;\n\n $new->save();\n\n return redirect()->route('dashboard.index')->with('success','Booking has been Added');\n }", "title": "" }, { "docid": "e9d9175bcf89a6020c9e5da2c269b3c0", "score": "0.5709709", "text": "public function actionBooking($data){\n $response = json_decode($this->bookingsSQL->actionBooking($data), true);\n \n //compose mail\n if($response['status'] == 200){\n \n $fieldMappers = array(\n '__name__'=>$data['object']['FIRSTNAME'],\n '__status__'=>$data['actionToTake'],\n '__bookedtime__'=>$data['object']['TIME'] . \" \" . $data['object']['DATE']\n );\n $body = \"\";\n if($data['actionToTake'] === 'ACCEPTED'){\n $body = file_get_contents('bookingApproved.html');\n }\n else if ($data['actionToTake'] === 'DECLINED'){\n $body = file_get_contents('bookingDeclined.html');\n } else {\n $this->returnReposne(502, \"Unable to determine template\");\n }\n \n $body = $this->doStrReplacement($body, $fieldMappers);\n file_put_contents(\"contents2.html\", $body);\n\n //$this->sendMail(\"bookingApproved.html\", $fieldMappers); \n if($this->composeMail($body, \"Dr's Appointment\", null)){\n $this->returnReposne(200, \"Notification sent\");\n } else {\n $this->returnReposne(500, \"Internal server error when composing notification\");\n }\n \n \n }\n }", "title": "" }, { "docid": "3b17144024e3d32df681216ff256e8dc", "score": "0.5697793", "text": "public function create()\n {\n //\n return view('booking');\n }", "title": "" }, { "docid": "c27469081de736e1eea684993a350c41", "score": "0.56952405", "text": "public function creating(Booking $booking)\n {\n $booking->booking_number = $booking->getOrderNumber();\n }", "title": "" }, { "docid": "c6e31f19741629eef3e8078463324a3e", "score": "0.5693957", "text": "static function showBookingDetails(Array $bookings) {\r\n ?>\r\n <!-- Page content -->\r\n <div class=\"w3-container w3-padding-85mod2\" id=\"book\">\r\n <hr>\r\n <h1 style=\"font-family: 'Kristi', cursive; font-size: 40px; \">Booking Details</h1><br>\r\n <form method= \"POST\">\r\n <div class=\"grid-container-booking\">\r\n <th>\r\n <div class=\"item1\">SERVICE</div>\r\n <div class=\"item2\">DATE</div>\r\n <div class=\"item3\">TIME</div>\r\n <div class=\"item4\">QUANT.</div>\r\n <div class=\"item5\">PRICE</div>\r\n <div class=\"item6\">TOTAL</div>\r\n <div class=\"item7\">EDIT</div>\r\n <div class=\"item8\">REMOVE</div>\r\n </th>\r\n <?php\r\n foreach($bookings as $booking) {\r\n echo '<tr>';\r\n echo '<td><div class=\"item1\">'.$booking->getServiceName().'</div></td>';\r\n echo '<td><div class=\"item2\">'.$booking->getBookingDate().'</div></td>';\r\n echo '<td><div class=\"item3\">'.$booking->getBookingTime().'</div></td>';\r\n echo '<td><div class=\"item4\">'.$booking->getQuantity().'</div></td>';\r\n echo '<td><div class=\"item5\">'.\"$ \".$booking->getServicePrice().'</div></td>';\r\n echo '<td><div class=\"item6\">'.\"$ \".$booking->getTotal().'</div></td>';\r\n echo '<td><div class=\"item7\"><a href=\"?action=edit&id='.$booking->getBookingID().'\">Edit</div></a></td>';\r\n echo '<td><div class=\"item8\"><a href=\"?action=delete&id='.$booking->getBookingID().'\">Remove</div></a></td>';\r\n echo '</tr>';\r\n }\r\n ?>\r\n <p><button class=\"w3-button w3-light-grey w3-section\" type=\"submit\" name=\"action\" value=\"checkout\" onclick=\"myFunction()\">CHECKOUT</button></p> \r\n </div>\r\n </form>\r\n </div>\r\n <?php\r\n }", "title": "" }, { "docid": "e0ea73b1b1d1675819082134fe504839", "score": "0.56935376", "text": "function schedulePractice()\r\n {\r\n \r\n }", "title": "" }, { "docid": "d4eaf59829cabcd9f526784c810f71d3", "score": "0.5691635", "text": "function sz_set_booking_availability($availability_rules, $resource_id, $product)\n{\n /**\n *\n * Temporarily fixed date and time for existing 3 memberships.\n *\n *\n */\n\n // Allow certain members to book for evening time\n if ($product->get_id() == SINGULAR_ID) {\n $memberships = [VIP_888_ANNUAL_ID, VIP_ANNUAL_ID, VIP_SEMIANNUAL_ID];\n $user = get_current_user_id();\n if (!is_vip($user, ...$memberships)) {\n return $availability_rules;\n }\n\n // Clear cache to enforce customize rules in any cases\n WC_Bookings_Cache::delete_booking_slots_transient($product);\n\n $l = count($availability_rules);\n // foreach (['morning', 'evening'] as $time) {\n // $time_discount = get_post_meta(SINGULAR_ID, $time . '_discount', true);\n // if (!$time_discount['enable']) {\n // continue;\n // }\n\n // if ($time === 'morning') {\n // for ($i = 0; $i < $l; $i++) {\n // if ($time_discount['from'] < $availability_rules[$i]['range']['from']) {\n // $availability_rules[$i]['range']['from'] = $time_discount['from'];\n // }\n // }\n // }\n // if ($time === 'evening') {\n // for ($i = 0; $i < $l; $i++) {\n // if ($time_discount['to'] > $availability_rules[$i]['range']['to']) {\n // $availability_rules[$i]['range']['to'] = $time_discount['to'];\n // }\n // }\n // }\n // }\n\n for ($i = 0; $i < $l; $i++) {\n $availability_rules[$i]['range']['to'] = '21:00';\n }\n }\n\n return $availability_rules;\n}", "title": "" }, { "docid": "fdb6092f863d98e019f85bfe64dcb5a1", "score": "0.5686273", "text": "public function booknow($checkin, $checkout, $name, $phone,$roomname)\r\n {\r\n// $check= mysqli_query($this->db,$sql) or die(mysqli_connect_errno().\"Data here cannot inserted\");\r\n// \r\n $sql=\"SELECT * FROM room_category WHERE roomname='$roomname'\";\r\n $result= mysqli_query($this->db,$sql) or die(mysqli_connect_errno().\"Data here cannot inserted\");\r\n \r\n \r\n if(mysqli_num_rows($result) > 0)\r\n {\r\n $row = mysqli_fetch_array($result);\r\n $book=$row['booked'];\r\n $avail=$row['available'];\r\n $res=\"\";\r\n $send=\"\";\r\n if($avail > 0)\r\n {\r\n $sql2=\"INSERT INTO rooms SET room_cat='$roomname', checkin='$checkin', checkout='$checkout', name='$name', phone='$phone', book='true'\";\r\n $send=mysqli_query($this->db,$sql2);\r\n \r\n if($send)\r\n {\r\n $result=\"Your Room has been booked!!\";\r\n $avail--;\r\n $book++;\r\n $sql3=\"UPDATE room_category SET available='$avail',\r\n booked='$book' WHERE roomname='$roomname'\";\r\n $res=mysqli_query($this->db,$sql3);\r\n }\r\n }\r\n else \r\n {\r\n $result = \"No Room Is Available\";\r\n }\r\n }\r\n return $result;\r\n }", "title": "" }, { "docid": "4693c8ad01222a72f927e8a5b21a071c", "score": "0.56811297", "text": "public function pay(Booking $booking)\n {\n if (in_array($booking->getStatus(), Booking::$payableStatus)) {\n try {\n $event = new BookingEvent($booking);\n $this->dispatcher->dispatch(BookingEvents::BOOKING_PAY, $event);//Payment is done here\n $booking = $event->getBooking();\n\n $booking->setStatus(Booking::STATUS_PAYED);\n $booking->setPayedBookingAt(new \\DateTime());\n $booking = $this->save($booking);\n\n $listing = $booking->getListing();\n\n $this->listingAvailabilityManager->saveAvailabilitiesStatus(\n $listing->getId(),\n new DateRange($booking->getStart(), $booking->getEnd()),\n array(),\n $this->timeUnitIsDay ? array() : array(\n new TimeRange($booking->getStartTime(), $booking->getEndTime())\n ),\n ListingAvailability::STATUS_BOOKED,\n $listing->getPrice(),\n $this->endDayIncluded,\n false\n );\n\n $this->mailer->sendBookingAcceptedMessageToAsker($booking);\n $this->mailer->sendBookingAcceptedMessageToOfferer($booking);\n $this->smser->sendBookingAcceptedMessageToAsker($booking);\n\n //Refuse other booking requests existing in this booking date range\n $bookingsToRefuse = $this->getRepository()->findBookingsToRefuse(\n $booking,\n $this->endDayIncluded,\n $this->timeUnitIsDay\n );\n foreach ($bookingsToRefuse as $bookingToRefuse) {\n $this->refuse($bookingToRefuse);\n }\n\n return $booking;\n } catch (\\Exception $e) {\n //In case of error while payment for example\n return false;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "8b2671cf2f9f2f9715a04185714d83a3", "score": "0.56736124", "text": "public static function notifyBookNow();", "title": "" }, { "docid": "c8d8f5e6a9be5270e206aea394f5f051", "score": "0.5668503", "text": "public function create(Room $room)\n { \n $this->validate(request(),['name'=>'required','description'=>'required','start_date'=>'required|date|after:now','end_date'=>'required|date|after:now','image'=>'required','link'=>'required']);\n \n $old_bookings = Booking::all();\n foreach($old_bookings as $old_booking)\n {\n if($room->id===$old_booking->room->id){\n $old_start = $old_booking->start_date;\n $old_end = $old_booking->end_date;\n $proposed_start = request('start_date');\n if($proposed_start>$old_start){\n $this->validate(request(),['start_date' => \"after:$old_end\"]);\n // dd($proposed_start,$old_start,\"after start\");\n }\n if($proposed_start<$old_end){\n $this->validate(request(),['start_date' => \"after:$old_end\"]);\n dd($proposed_start,$old_end,\"before end\");\n }\n \n }}\n\n\n $book = new Booking();\n $book->name = request('name');\n $book->description = request('description');\n $book->user_id = auth()->id();\n $book->room_id = $room->id;\n $book->start_date = Carbon::parse(request('startDate')); \n $book->end_date = Carbon::parse(request('endDate'));\n $book->link = request('link'); \n if(Input::hasFile('image')){\n $file = Input::file('image');\n $book->image = $file->getClientOriginalName();\n $file->move('img\\books', $file->getClientOriginalName());\n }\n $book->save();\n\n return redirect()->route('room.show', ['room' => $room->id]);\n }", "title": "" }, { "docid": "7586451fbb7ed976eb664433db92b254", "score": "0.56682885", "text": "public function create() {\n\t\t$services = Service::all();\n\t\t$users = User::all();\n\t\t$clients = Client::all();\n\t\t$setting = Setting::first();\n\t\t$booking = new Booking();\n\n\t\treturn view('bookings.create', compact('services', 'users', 'clients', 'setting', 'booking'));\n\t}", "title": "" }, { "docid": "12a5b06487d279578b530266bc57868b", "score": "0.5663824", "text": "public function reservations_confirm($date = '', $time = '', $treatment_id = '', $amount = '') {\n // $day = cal_days_in_month(CAL_GREGORIAN, $m, $y); //จำนวนวันของเดือน\n // $M = date('M'); //ตัวย่อเดือน Mar\n // $dayofweek = date('D', strtotime($param1));\n// $cal = array();\n//\n// for ($i = $d; $i < ($d + 14); $i++) {\n//\n// $xx = array(\n// \"day\" => $this->check_over_month($i, $y, $m),\n// \"M\" => $this->find_M($i, $y, $m),\n// \"year\" => $this->find_year($i, $y, $m),\n// \"dayofweek\" => date('D', strtotime($this->y . '-' . ($this->m) . '-' . $this->d)),\n// \"weekend\" => $this->active_weekend(),\n// \"date\" => $this->y . '-' . ($this->m) . '-' . $this->d,\n// );\n// array_push($cal, $xx);\n// }\n\n if ($this->input->post('btn_submit') == 'booknow') {\n //ถ้ามีการบันทึก มีการจอง\n $data = array(\n 'firstname' => $this->input->post('firstname'),\n 'lastname' => $this->input->post('lastname'),\n 'phone' => $this->input->post('phone'),\n 'email' => $this->input->post('email'),\n 'bookdate' => $this->input->post('bookdate'),\n 'status' => 1,\n 'treatment_id' => $this->input->post('treatment_id'),\n 'address' => $this->input->post('address'),\n 'amount' => $this->input->post('amount'),\n );\n\n\n $this->db->insert('tbl_booking', $data);\n $last_insert_id = $this->db->insert_id();\n\n $this->db->select('*');\n $this->db->from('tbl_booking');\n $this->db->where(\"tbl_booking.id = \" . $last_insert_id);\n\n $dataLastRow = $this->db->get()->result_array();\n\n $arrDataBook = explode(' ', $dataLastRow[0]['bookdate']);\n\n list($y, $m, $d) = explode('-', $arrDataBook[0]);\n list($h, $i, $s) = explode(':', $arrDataBook[1]);\n\n\n $MM = date('d M Y', strtotime($y . '-' . $m . '-' . $d));\n\n $date_show = $d . ' ' . $m . ' ' . $y;\n $time_show = $h . ':' . $i;\n\n $data['date_show'] = $MM;\n $data['time_show'] = $time_show;\n\n // print_r($data);\n //die();\n\n\n\n\n $this->load->view(\"reservations_complete\", $data);\n // die();\n } else {\n\n $arr_time = explode('-', $time);\n\n $im_time = implode(':', $arr_time);\n\n $fulldate = date('d', strtotime($date)) . ' ' . date('F', strtotime($date)) . ' ' . date('Y', strtotime($date));\n\n $fulltime = date('H:i', strtotime($im_time));\n\n// print_r($fulltime);\n// die();\n\n $this->db->select('*');\n $this->db->from('tbl_price');\n $this->db->where(\"tbl_price.price_Status = 1\");\n $this->db->where(\"tbl_price.price_ID = \" . $treatment_id);\n $this->db->order_by(\"price_Number\", \"ASC\");\n\n $dataPrice = $this->db->get()->result_array();\n $data_price = array();\n\n foreach ($dataPrice as $value) {\n $data = array(\n \"price_ID\" => $value['price_ID'],\n \"price_Title\" => unserialize($value['price_Title']),\n \"price_Detail\" => unserialize($value['price_Detail']),\n \"price_Cost\" => unserialize($value['price_Cost']),\n \"price_Picture\" => $value['price_Picture'],\n );\n array_push($data_price, $data);\n }\n\n $data['data_price'] = $data_price;\n\n $data['fulldate'] = $fulldate;\n $data['fulltime'] = $fulltime;\n $data['datetime'] = $date . ' ' . $fulltime . ':00';\n $data['treatment_id'] = $treatment_id;\n $data['amount'] = $amount;\n\n // $data['data'] = $cal;\n // $data['get_select_date'] = $param1;\n\n $this->load->view(\"reservations_confirm\", $data);\n }\n }", "title": "" }, { "docid": "2f031aa01fb4bf38ea859fd4c6f5e9b9", "score": "0.56591517", "text": "static function bookingEdit(User $user, Array $services, Booking $bookingToEdit) {\r\n ?>\r\n <!-- Page content -->\r\n <div class=\"w3-content\" style=\"max-width:1100px\">\r\n <!-- Book Section -->\r\n <div class=\"w3-col m6 w3-padding-large w3-hide-small\">\r\n <img src=\"img\\book.jpg\" class=\"book-image w3-opacity-min\" alt=\"Booking Pic\" >\r\n </div>\r\n <div class=\"w3-container w3-padding-85mod\" id=\"book\">\r\n <h1 style=\"font-family: 'Kristi', cursive; font-size: 40px;\"><?php echo $user->getFirstName() ?>, Edit your Booking Information</h1>\r\n <p>Choose the service(s), the date, for how many people, and any special request.</p>\r\n <form method = \"POST\">\r\n <p><select class=\"w3-input w3-padding-16\" name= \"bookingDetails\">\r\n <option selected>Select your Service</option>\r\n <?php\r\n foreach($services as $service) {\r\n if($service->getServiceID() == $bookingToEdit->getServiceID()) {\r\n ?>\r\n <option value=\"<?= $service->getServiceID() ?>|<?= $service->getServiceName() ?>|<?= $service->getServicePrice() ?>\" selected>\r\n <?= $service->getServiceName() ?> </option>\r\n <?php \r\n } else {\r\n ?>\r\n <option value=\"<?= $service->getServiceID() ?>|<?= $service->getServiceName() ?>|<?= $service->getServicePrice() ?>\">\r\n <?= $service->getServiceName() ?> </option>\r\n <?php \r\n\r\n }\r\n \r\n }\r\n ?>\r\n </select>\r\n </p>\r\n <p><input class=\"w3-input w3-padding-16\" type=\"number\" placeholder=\"How many people\" required name=\"quantity\" value=\"<?php echo $bookingToEdit->getQuantity(); ?>\"></p>\r\n <p><input class=\"w3-input w3-padding-16\" type=\"date\" placeholder=\"Date\" required name=\"bookingDate\" value=\"<?php echo $bookingToEdit->getBookingDate(); ?>\"></p>\r\n <p><input class=\"w3-input w3-padding-16\" type=\"time\" placeholder=\"time\" required name=\"bookingTime\"value=\"<?php echo $bookingToEdit->getBookingTime(); ?>\" ></p>\r\n <p><input type=\"hidden\" required name=\"serviceID\" value=\"<?php echo $bookingToEdit->getServiceID(); ?>\" ></p>\r\n <p><input type=\"hidden\" required name=\"bookingToEdit\" value=\"<?php echo $bookingToEdit->getBookingID(); ?>\" ></p>\r\n <p><button class=\"w3-button w3-light-grey w3-section\" type=\"submit\" value=\"editBooking\">EDIT BOOKING INFORMATION</button></p> \r\n </form>\r\n </div>\r\n <?php\r\n }", "title": "" }, { "docid": "bf652090bb193ee55fb8cfc17dddf6ba", "score": "0.565832", "text": "public function accept(Request $request, $id)\n {\n $booking = Bookings::findOrFail($id);\n\n //checking schedules data \n if ($booking->routine = 'Daily')\n $interval = new DateInterval('P1D');\n elseif ($booking->routine = 'Weekly')\n $interval = new DateInterval('P7D');\n elseif ($booking->routine = 'Biweekly')\n $interval = new DateInterval('P14D');\n else\n $interval = new DateInterval('P1M');\n $starttime = $booking->start;\n $endtime = $booking->start->add(new DateInterval('PT'.$booking->duration.'M'));\n $tstarttime = $startime;\n $tendtime = $endtime;\n for ($i=0; $i < $booking->howmanytimes; $i++) {\n if(schedules::where('start','>=',$tstarttime,'and','end','<=',$tendtime)->doesntExist() && schedules::where('start','<=',$tstarttime,'and','end','<=',$tendtime)-> doesntExist() && where('start','>=',$tstarttime,'and','end','>=',$tendtime)->doesntExist() && where('start','<=',$tstarttime,'and','end','>=',$tendtime)->doesntExist()){\n\n Session::flash('message', 'Reservasi ditolak, terdapat jadwal yang bertabrakan');\n return Redirect::to('/booklist');\n }\n $tstarttime->add($interval);\n $tendtime->add($interval);\n }\n\n //insert schedule(s) data\n $booking->accept = 1;\n $booking->save();\n for ($i=0; $i < $booking->howmanytimes; $i++){\n $schedule = new Schedules;\n $schedule->booking_id = $booking->booking_id;\n $schedule->room_id = $booking->room_id;\n $schedule->start = $starttime;\n $schedule->end = $endtime;\n $schedule->save();\n\n $starttime->add($interval);\n $endtime->add($interval);\n }\n Session::flash('message', 'Reservasi diterima, jadwal berhasil dimasukkan');\n }", "title": "" }, { "docid": "a887a390e2b7356ea511db8549dc3664", "score": "0.5651211", "text": "function procPreBook() {\n global $session, $form, $database;\n $session->clearBookingSession();\n\n /* Origin/Destiantion error checking */\n $suborigin = $_POST['origin'];\n $field = \"origin\";\n if ($suborigin == \"default\") {\n $form->setError($field, \"* Please enter an origin\");\n }\n $subdest = $_POST['destination'];\n $field = \"destination\";\n if (!$subdest) {\n $form->setError($field, \"* Please enter a destination<br />\");\n }\n\n /* Date error checking */\n $subdate = $_POST['departure_date'];\n $field = \"departure_date\"; //Use field name for date\n \n /* Check if date has passed */\n $today = date('Y-m-d');\n if ($subdate < $today) {\n $form->setError($field, \"* Date is in the past\");\n }\n /* Check if valid date */\n list($yyyy, $mm, $dd) = explode('-', $subdate);\n if (!checkdate($mm, $dd, $yyyy) || strlen($yyyy) != 4 || strlen($mm) != 2 || strlen($dd) != 2 ) {\n $form->setError($field, \"* Date invalid\");\n }\n if (!$subdate || strlen($subdate = trim($subdate)) == 0) {\n $form->setError($field, \"* Date not entered\");\n }\n /* Check if date is a Sunday */\n $chunk = explode('-', $subdate);\n $year = $chunk[0];\n $month = $chunk[1];\n $day = $chunk[2];\n $tstamp = mktime(0, 0, 0, $month, $day, $year);\n if (date('l', $tstamp) == 'Sunday') {\n $form->setError($field, \"* Date cannot be a Sunday\");\n }\n /* Check if date is more than 3 months in advance */\n $date = date('Y-m-d');\n $newdate = strtotime('+3 month', strtotime($date));\n $newdate = date('Y-m-d', $newdate);\n if ($subdate > $newdate) {\n $form->setError($field, \"* Date cannot be more than 3 months in advance\");\n }\n\n /* Passenger error checking */\n $subadult = $_POST['num_adults'];\n $field = \"num_adults\";\n if ($subadult == \"0\") {\n $form->setError($field, \"* Please enter number of passengers\");\n }\n \n /* Errors exist, have user correct them */\n if ($form->num_errors > 0) {\n $field = 'destination';\n $form->setValue($field, $_POST['destination']);\n $_SESSION['value_array'] = $_POST;\n $_SESSION['error_array'] = $form->getErrorArray();\n header(\"Location: \" . $session->referrer); //Errors with form\n } else {\n /* Set session variables for later use */\n $_SESSION['flightorigin'] = $_POST['origin'];\n $_SESSION['flightdest'] = $_POST['destination'];\n $_SESSION['flightdepdate'] = $_POST['departure_date'];\n $_SESSION['flightnumadult'] = $_POST['num_adults'];\n $_SESSION['flightnumchild'] = $_POST['num_children'];\n $times = $database->getFlightTimes();\n if (!$times) {\n die(\"getFlightTimes failed\");\n } else {\n $_SESSION['flightdeptime'] = $times['departure_time'];\n $_SESSION['flightarrtime'] = $times['arrival_time'];\n }\n\n $_SESSION['prebook'] = true;\n header(\"Location: main.php\");\n }\n }", "title": "" }, { "docid": "7bd9a3044475c24e64b32a0d367bb02c", "score": "0.5643606", "text": "function insertNewBooking($email, $passName, $passPhone, $destSub, $pickupDatetime, \n\t\t\t\t\t\t\t\t$unitNo, $streetNo, $streetName, $pickupSub) {\n\t\t$stmt = $this->mysqli->prepare(\"INSERT INTO cabsBooking (customer, passenger_name, passenger_phone, dest_suburb, pickup_datetime, unit_number, street_number, street_name, pickup_suburb) VALUES (?,?,?,?,?,?,?,?,?)\");\n\t\tif ($stmt) {\n\t\t\t$insertDatetime = $pickupDatetime->format(\"Y-m-d H-i-s\");\n\t\t\tif ($stmt->bind_param('sssssssss', $email, $passName, $passPhone, $destSub, $insertDatetime, \n\t\t\t\t\t\t\t\t\t\t\t$unitNo, $streetNo, $streetName, $pickupSub)) {\n\t\t\t\t$stmt->execute();\n\t\t\t\t\n\t\t\t\tif ($stmt->affected_rows == 1) {\n\t\t\t\t\treturn $stmt->insert_id;\n\t\t\t\t} else if ($stmt->affected_rows < 1) {\n\t\t\t\t\tdie (\"No booking inserted!\");\n\t\t\t\t} else if ($stmt->affected_rows > 1) {\n\t\t\t\t\tdie (\"Too many bookings found!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tdie(\"Couldn't bind params, insert booking.\");\n\t\t\t}\n\t\t} else {\n\t\t\t$this->reportMysqliErrorToWebpage();\n\t\t\tdie(\"Couldn't prepare insert booking\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "bb4cddfb3b52201bf6f2ef6a0695d5cc", "score": "0.5642048", "text": "public function Booking($post)\n\t{\n\t\t/*echo \"<pre>\";\n\t\tprint_r($_SESSION);//[\"activity\".$_SESSION['act_id']]);\n\t\techo \"</pre>\";*/\n\t\t$total_discount=0;\n\t\t$activity_total_price=0;\n\t\t$activity_total_paid=0;\n\t\t$activity_total_due=0;\n\t\t/* --------------------- Getting the activity detail and suplier preeferences for calculation -----------------------*/\n\t\t$sql=\"select act.user_id,act.country_id,pre.* from `\".parent::SUFFIX.\"booker_activities` act left join `\".parent::SUFFIX.\"preferences` pre on act.`user_id`=pre.`user_id` where act.`activity_id`='\".$_SESSION['act_id'].\"'\";\n\t\t$this->result=$this->query($sql);\n\t\t$arrSupplierDtl=array();\n\t\twhile($temp=$this->getAllRow())\n\t\t{\t\n\t\t\t$arrSupplierDtl=$temp;\n\t\t}\n \t\t/*echo \"<pre>\";\n\t\tprint_r($arrSupplierDtl);\n\t\techo \"</pre>\";*/\n\t\t$supplier_id=$arrSupplierDtl['user_id'];\n\t\t$customer_id=$post['cusroemt'];\n\t\t/* creating the reference id by country for activity,current date, activity id , customer id */\n\t\t $refid=$arrSupplierDtl['country_id'].\"-\".date(\"Y-m-d\").\"-\".$_SESSION['act_id'].\"-\".$customer_id;\n\t\t \n\t\t/* setting the status of booking from supplier preference */ \n\t\t\t\tif($arrSupplierDtl['newbook']=='accept_decline') \n\t\t\t\t{\n\t\t\t\t\t$status=\"Incomplete\";\n\t\t\t\t\t$status1=\"No_Response\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$status1=\"Confirmed\";\n\t\t\t\t\t$status=\"Completed\";\n\t\t\t\t}\n\t\t/* calculating the last cancel date for activity from supplier preferences for cancelaaation policy */ \n\t\t\t\t\t$schedule_date=date(\"Y-m-d\",strtotime($_SESSION['date']));\n\t\t\t\t\t$noofday=(intval($arrSupplierDtl['cancel'])/24);\n\t\t\t\t\t$cancel_day_str=\"-\".$noofday.\" day\";\n\t\t\t\t\t$last_cancel_date=date(\"Y-m-d\",strtotime($cancel_day_str,strtotime($schedule_date)));\n\t\t\t\t\t\n\t\t/* Setting booking condition */\n\t\t\t\t\tif($arrSupplierDtl['book']==\"full_balance\")\n\t\t\t\t\t{\n\t\t\t\t\t\t$booking_condition=\"Full\";\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\telseif($arrSupplierDtl['book']==\"deposite\")\n\t\t\t\t\t{\n\t\t\t\t\t\t$booking_condition=\"Deposit\";\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$booking_condition=\"Gift\";\t\t\n\t\t\t\t\t}\n\t\t/*------------------ Inserting the record for booking -----------------------*/\n\t\t$sql=\"insert into `\".parent::SUFFIX.\"booking` (`booking_id`,`refence_id`,`user_id`,`booking_date`,`booking_status`,`booked_by`) values('','\".$refid.\"','\".$customer_id.\"','\".date(\"Y-m-d\").\"','\".$status.\"','admin')\";\n\t\t$this->result=$this->query($sql);\n\t\n\t\t$last_Booking_id=$this->getLastId();\n\t\tforeach($_SESSION[\"activity\".$_SESSION['act_id']] as $sub_act_id=>$pricing)\n\t\t\t{ ### Loop start for activity\n\t\t\t\t/* ------------ Getting the activity and sub actvity detail ----------------*/\n\t\t\t\t$sql=\"select act.activity_booker_name as activity_name,sub.sub_activity_name as sub_act_name,subDtl.* from `\".parent::SUFFIX.\"booker_activities` act left join `\".parent::SUFFIX.\"sub_activity_type` sub on act.activity_id=sub.activity_id left join `\".parent::SUFFIX.\"sub_activity_detail` subDtl on sub.id=subDtl.sub_activity_type_id where act.activity_id='\".$_SESSION['act_id'].\"' and sub.id='\".$sub_act_id.\"'\";\n\t\t\t\t$this->result=$this->query($sql);\n\t\t\t\t$arrSubActDtl=array();\n\t\t\t\twhile($temp=$this->getAllRow())\n\t\t\t\t{\t\n\t\t\t\t\t$arrSubActDtl=$temp;\n\t\t\t\t}\n\t\t\t\t/*echo \"<pre>\";\n\t\t\t\tprint_r($arrSubActDtl);\n\t\t\t\techo \"</pre>\";*/\n\t\t\t\t $sql=\"insert into `\".parent::SUFFIX.\"booking_details` (`booking_details_id`,`booking_id`,`user_id`,`supplier_id`,`activity_id`,`sub_activity_id`,`activity_name`,`sub_activity_name`,`booking_condition`,`paid_currency`,`activity_currency`,`activity_conducted_status`,`schedule_date`,`cancel_day`,`last_cancel_date`,`extra_note`,`booking_status`) values('','\".$last_Booking_id.\"','\".$customer_id.\"','\".$supplier_id.\"','\".$_SESSION['act_id'].\"','\".$sub_act_id.\"','\".$arrSubActDtl['activity_name'].\"','\".$arrSubActDtl['sub_act_name'].\"','\".$booking_condition.\"','\".$post['currancy_type'].\"','\".$arrSubActDtl['currency_code'].\"','No','\".$schedule_date.\"','\".$noofday.\"','\".$last_cancel_date.\"','\".$post['extra_note'].\"','\".$status1.\"')\";\n\t\t\t\t$this->result=$this->query($sql);\n\t\t\t\n\t\t\t\t$last_booking_detail_id=$this->getLastId();\n\t\t\t\t$sub_act_tot_price=0;\n\t\t\t\t$sub_act_tot_paid=0;\t\t\t\t\t\n\t\t\t\t$sub_act_tot_due=0;\n\n\t\t\t\tforeach($pricing as $priceTypeID=>$priceTypeDtl)\n\t\t\t\t{ ### Loop start for subactivity\n\t\t\t\t\tif($priceTypeDtl['qty']==0)\n\t\t\t\t\t{\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$qty=$_SESSION[\"activity\".$_SESSION['act_id']][$sub_act_id][$priceTypeID]['qty']; \n\t\t\t\t\t\t$price=$_SESSION[\"activity\".$_SESSION['act_id']][$sub_act_id][$priceTypeID]['price'];\n\t\t\t\t\t\t$time=$_SESSION[\"activity\".$_SESSION['act_id']][$sub_act_id][$priceTypeID]['time'];\n\t\t\t\t\t\t$totprice=floatval($qty)*floatval($price);\n\t\t\t\t\t\t$sub_act_tot_price=$sub_act_tot_price+$totprice;\n\t\t\t\t\t\t#id \tactivity_id \tsub_activity_id \tbooking_detail_id \tbooking_quantity \tunit_price \ttotal_price \tprice_type \tdeparture_time \tcancel_day \tlast_cancel_date \tis_cancel \tcancel_date \tcancel_amount\n\t\t\t\t\t\t$sql=\"insert into `\".parent::SUFFIX.\"booking_record_details` (`id`,`activity_id`,`sub_activity_id`,`booking_detail_id`,`booking_quantity`,`unit_price`,`total_price`,`price_type`,`departure_time`,`cancel_day`,`last_cancel_date`) values('','\".$_SESSION['act_id'].\"','\".$sub_act_id.\"','\".$last_booking_detail_id.\"','\".$qty.\"','\".$price.\"','\".$totprice.\"','\".$priceTypeID.\"','\".$time.\"','\".$noofday.\"','\".$last_cancel_date.\"')\";\n\t\t\t\t\t\t$this->result=$this->query($sql);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}### Loop End for sub activity\n\t\t\t\t\n\t\t\t\tif($arrSupplierDtl['book']==\"full_balance\")\n\t\t\t\t{\n\t\t\t\t\t\t$sub_act_tot_paid=$sub_act_tot_price;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telseif($arrSupplierDtl['book']==\"Deposite\")\n\t\t\t\t{\n\t\t\t\t\t\t$sub_act_tot_paid=(floatval($arrSubActDtl['commission_amt'])*$sub_act_tot_price)/100;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$sub_act_tot_due=floatval($sub_act_tot_price)-floatval($sub_act_tot_paid);\n\t\t\t\t\t\t\t\t\n\t\t\t\t$activity_total_price=$activity_total_price+$sub_act_tot_price;\n\t\t\t\t$activity_total_paid=$activity_total_paid+$sub_act_tot_paid;\n\t\t\t\t$activity_total_due=$activity_total_due+$sub_act_tot_due;\n\n\t\t\t\t/*-------------- Uddating the price for each sub activity ----------------*/\n\t\t\t\t$sql=\"update `\".parent::SUFFIX.\"booking_details` set `activity_total_price`='\".$sub_act_tot_price.\"',`activity_total_paid`='\".$sub_act_tot_paid.\"',`activity_total_due`='\".$activity_total_due.\"' where booking_details_id='\".$last_booking_detail_id.\"'\";\n\t\t\t\t$this->result=$this->query($sql);\n\t\t\t}### Loop End for activity\n\t\t\t\n\t\t\t\t/*-------------- Uddating the price for activity ----------------*/\n\t\t\t$sql=\"update `\".parent::SUFFIX.\"booking` set `total_paid`='\".$activity_total_price.\"',`total_paid_real`='\".$activity_total_paid.\"' where booking_id='\".$last_Booking_id.\"'\";\n\t\t\t$this->result=$this->query($sql);\n\t}", "title": "" }, { "docid": "fa5093fc3542c2759511e7f973eaad94", "score": "0.5634456", "text": "function multilang_booking_calendar_show_bookings() {\n\tif (!current_user_can(mbc_booking_admin_capabilities())) {\n\t\twp_die(\"Go away\");\n\t}\n\tglobal $abcUrl;\n\tglobal $wpdb;\n\t$dateformat = mbc_booking_dateFormatToJS(getAbcSetting(\"dateformat\"));\n\t$nlAsked = false;\n\t$nlText = '';\n\t$nlEmail = '';\n\tif(getAbcSetting(\"newsletter\") == 0){\n\t\t$er = $wpdb->get_row('SELECT COUNT(id) as bookings, SUM(price) as revenue FROM '.$wpdb->prefix.'mbc_bookings WHERE state = \\'confirmed\\'', ARRAY_A);\n\t\tif ($er[\"bookings\"] > 10 && getAbcSetting(\"newsletter_10th_asked\") == 0) {\n\t\t\t$nlAsked = true;\n\t\t\t$nlEmail = getAbcSetting(\"email\");\n\t\t\tupdate_option ('mbc_newsletter_10th_asked', 1);\n\t\t\t$nlText = '<h2>'.__('Congratulations on your 10th confirmed Booking!', 'multilang-booking-calendar').'</h2>\n\t\t\t'.__('We would like to give your more tips on how to raise your occupation rate via our Newsletter. We promise to never spam you. You can unsubscribe anytime.', 'multilang-booking-calendar').'<br/>\n\t\t\t\t\t<br/><b>'.__('Click OK to subscribe now!', 'multilang-booking-calendar').'<b>';\n\t\t} elseif($er[\"bookings\"] > 100 && getAbcSetting(\"newsletter_100th_asked\") == 0){\n\t\t\t$nlAsked = true;\n\t\t\t$nlEmail = getAbcSetting(\"email\");\n\t\t\tupdate_option ('mbc_newsletter_100th_asked', 1);\n\t\t\t$nlText = '<h2>'.__('Wow! Congratulations on your 100th confirmed Booking!', 'multilang-booking-calendar').'</h2>\n\t\t\t'.__('You are obviously doing a great job! But still, maybe you could learn something by our tips on how to raise your occupation rate via our Newsletter. We promise to never spam you. You can unsubscribe anytime.', 'multilang-booking-calendar').'<br/>\n\t\t\t\t\t<br/><b>'.__('Click OK to subscribe now!', 'multilang-booking-calendar').'<b>';\n\t\t} elseif($er[\"revenue\"] > 20000 && getAbcSetting(\"newsletter_20000revenue_asked\") == 0){\n\t\t\t$nlAsked = true;\n\t\t\t$nlEmail = getAbcSetting(\"email\");\n\t\t\tupdate_option ('mbc_newsletter_20000revenue_asked', 1);\n\t\t\t$nlText = '<h2>'.sprintf( __('Congratulations! You just surpassed a total revenue of 20000 %s!', 'multilang-booking-calendar'), getAbcSetting('currency')).'</h2>\n\t\t\t'.__('You are obviously doing a great job! But still, maybe you could learn something by our tips on how to raise your occupation rate via our Newsletter. We promise to never spam you. You can unsubscribe anytime.', 'multilang-booking-calendar').'<br/>\n\t\t\t\t\t<br/><b>'.__('Click OK to subscribe now!', 'multilang-booking-calendar').'<b>';\n\t\t}\n\t}\n\t$feedbackModal = '';\n\tif(!$nlAsked && getAbcSetting('feedbackModal01') == 0 && getAbcSetting('installdate') <= date(\"Y-m-d\", strtotime('-1 week'))){\n\t\tupdate_option('mbc_feedbackModal01', 1);\n\t\t$feedbackModal = '\n\t\t<div id=\"feedbackModal\" class=\"uk-modal\">\n\t <div class=\"uk-modal-dialog\">\n\t <a href=\"\" class=\"uk-modal-close uk-close\"></a>\n\t <h1 class=\"feedbackQuestion\">'.__('Do you like this Plugin?', 'multilang-booking-calendar').'</h1>\n\t <p id=\"feedbackSmileys\" class=\"feedbackQuestion\">\n\t \t<span id=\"feedbackLike\"><i class=\"fa fa-smile-o\"></i></span>\n\t \t<span id=\"feedbackDislike\"><i class=\"fa fa-frown-o\"></i></span>\n\t </p>\n\t \t<div id=\"dislikeForm\" style=\"display:none\">\n\t \t<h1>'.__(\"Oh, we are sorry!\", \"multilang-booking-calendar\").'</h1>\n\t \t<p>'.__(\"Would you tell us what you don't like?\", \"multilang-booking-calendar\").'</p>\n\t \t<div class=\"uk-form-controls\" style=\"text-align:center;\">\n\t\t\t\t\t\t<textarea id=\"feedbackMessage\" name=\"feedbackMessage\" style=\"width:100%; margin-bottom:20px;\"></textarea>\t\n\t\t\t\t\t\t<input id=\"sendFeedback\" class=\"button button-primary\" value=\"'.__(\"Send Feedback\", \"multilang-booking-calendar\").'\" type=\"submit\">\n\t\t\t\t\t</div>\n\t \t</div>\n\t \t<div id=\"likeForm\" style=\"display:none\">\n\t \t<h1>'.__(\"Great!\", \"multilang-booking-calendar\").'</h1>\n\t \t<p>'.__(\"We would really appreciate a review:\", \"multilang-booking-calendar\").' <br/>\n\t \t\t<a href=\"https://wordpress.org/support/view/plugin-reviews/multilang-booking-calendar\" target=\"_blank\">\n\t \t\thttps://wordpress.org/support/view/plugin-reviews/multilang-booking-calendar</a>\n\t \t</p>\n\t \t<p>'.__('You can also help us by activating a tiny \"Powered by Multilang Booking Calendar\"-notice below the calendar overview and booking form. It would help us a lot!', 'multilang-booking-calendar').'</p>\n\t \t<div class=\"uk-form-controls\" style=\"text-align:center;\">\t\n\t\t\t\t\t\t<input id=\"activatePoweredby\" class=\"button button-primary\" value=\"'.__(\"Activate Powered-By-Link\", \"multilang-booking-calendar\").'\" type=\"submit\">\n\t\t\t\t\t</div>\n\t \t</div>\n\t \n\t </div>\n\t\t </div>';\n\t} \n\tif(!$nlAsked && getAbcSetting('feedbackModal01') == 1 && get_option('mbc_usage') == 0 &&\n\t\t(\n\t\t\t(getAbcSetting('usageModal01') == 0 && getAbcSetting('installdate') <= date(\"Y-m-d\", strtotime('-2 weeks'))) ||\n\t\t\t(getAbcSetting('usageModal02') == 0 && getAbcSetting('installdate') <= date(\"Y-m-d\", strtotime('-4 weeks')))\n\t\t)\n\t\t){\n\t\tif(getAbcSetting('usageModal01') == 1){\n\t\t\tupdate_option('mbc_usageModal02', 1);\n\t\t}\n\t\tupdate_option('mbc_usageModal01', 1);\n\t\t$feedbackModal = '\n\t\t<div id=\"feedbackModal\" class=\"uk-modal\">\n\t <div class=\"uk-modal-dialog\">\n\t <a href=\"\" class=\"uk-modal-close uk-close\"></a>\n\t <div id=\"usageModalContent\">\n\t\t <h1 class=\"feedbackQuestion\">'.__('Please help us!', 'multilang-booking-calendar').'<br/>\n\t\t \t'.__('Lets make this plugin better!', 'multilang-booking-calendar').'</h1>\n\t\t <p id=\"usageQuestion\">'.__('Help us to make this plugin better by committing some usage data.', 'multilang-booking-calendar').' '.__('Your visitors will not be affected. No sensible data will be transmitted.', 'multilang-booking-calendar').'</p>\n\t\t <div class=\"uk-form-controls\" style=\"text-align:center;\">\t\n\t\t\t\t\t\t\t<input id=\"activateCommitUsage\" class=\"button button-primary\" value=\"'.__(\"Commit Usage\", \"multilang-booking-calendar\").'\" type=\"submit\">\n\t\t\t\t\t</div>\n\t\t \t<div id=\"dislikeForm\" style=\"display:none\">\n\t\t \t<h1>'.__(\"Oh, we are sorry!\", \"multilang-booking-calendar\").'</h1>\n\t\t \t<p>'.__(\"Would you tell us what you don't like?\", \"multilang-booking-calendar\").'</p>\n\t\t \t<div class=\"uk-form-controls\" style=\"text-align:center;\">\n\t\t\t\t\t\t\t<textarea id=\"feedbackMessage\" name=\"feedbackMessage\" style=\"width:100%; margin-bottom:20px;\"></textarea>\t\n\t\t\t\t\t\t\t<input id=\"sendFeedback\" class=\"button button-primary\" value=\"'.__(\"Send Feedback\", \"multilang-booking-calendar\").'\" type=\"submit\">\n\t\t\t\t\t\t</div>\n\t\t \t</div>\n\t\t \t<div id=\"likeForm\" style=\"display:none\">\n\t\t \t<h1>'.__(\"Great!\", \"multilang-booking-calendar\").'</h1>\n\t\t \t<p>'.__(\"We would really appreciate a review:\", \"multilang-booking-calendar\").' <br/>\n\t\t \t\t<a href=\"https://wordpress.org/support/view/plugin-reviews/multilang-booking-calendar\" target=\"_blank\">\n\t\t \t\thttps://wordpress.org/support/view/plugin-reviews/multilang-booking-calendar</a>\n\t\t \t</p>\n\t\t \t<p>'.__('You can also help us by activating a tiny \"Powered by Multilang Booking Calendar\"-notice below the calendar overview and booking form. It would help us a lot!', 'multilang-booking-calendar').'</p>\n\t\t \t<div class=\"uk-form-controls\" style=\"text-align:center;\">\t\n\t\t\t\t\t\t\t<input id=\"activatePoweredby\" class=\"button button-primary\" value=\"'.__(\"Activate Powered-By-Link\", \"multilang-booking-calendar\").'\" type=\"submit\">\n\t\t\t\t\t\t</div>\n\t\t \t</div>\n\t\t </div>\t\n\t \n\t </div>\n\t\t </div>';\n\t} \n\twp_enqueue_script('mbc-bookings', $abcUrl.'backend/js/mbc-bookings.js', array('jquery'));\n\twp_localize_script( 'mbc-bookings', 'ajax_mbc_bookings', array(\n\t\t\t'ajaxurl' => admin_url( 'admin-ajax.php' ), \n\t\t\t'mbc_bookings_nonce' => wp_create_nonce('mbc-bookings-nonce'),\n\t\t\t'nlAsked' => $nlAsked,\n\t\t\t'nlEmail' => $nlEmail,\n\t\t\t'nlText' => $nlText\n\t\t\t)\n\t);\n\twp_enqueue_script('jquery-ui-datepicker');\n\twp_enqueue_script('uikit-js', $abcUrl.'backend/js/uikit.min.js', array('jquery'));\n\twp_enqueue_script('uikit-accordion-js', $abcUrl.'backend/js/accordion.min.js', array('jquery'));\n\twp_enqueue_script('uikit-tooltip-js', $abcUrl.'backend/js/tooltip.min.js', array('jquery'));\n\twp_enqueue_script('uikit-pagination-js', $abcUrl.'backend/js/pagination.min.js', array('jquery'));\n\twp_enqueue_script('jquery-validate', $abcUrl.'frontend/js/jquery.validate.min.js', array('jquery'));\n\twp_enqueue_script('mbc-functions', $abcUrl.'backend/js/mbc-functions.js', array('jquery'));\n\twp_localize_script( 'mbc-functions', 'mbc_functions_vars', array( 'dateformat' => $dateformat, 'firstday' => getAbcSetting(\"firstdayofweek\")));\n\twp_enqueue_style('mbc-datepicker', $abcUrl.'/frontend/css/jquery-ui.min.css');\n\twp_enqueue_style('uk-accordion', $abcUrl.'backend/css/accordion.gradient.min.css');\n\twp_enqueue_style('uk-tooltip', $abcUrl.'backend/css/tooltip.gradient.min.css');\n\twp_enqueue_style('uikit', $abcUrl.'/frontend/css/uikit.gradient.min.css');\n\twp_enqueue_style('mbc-adminstyle', $abcUrl.'/backend/css/admin.css');\n\twp_enqueue_style( 'font-awesome', $abcUrl.'frontend/css/font-awesome.min.css' );\n\t$datepickerLang = array('af','ar-DZ','ar','az','be','bg','bs','ca','cs','cy-GB','da','de','el','en-AU','en-GB','en-NZ',\n\t\t'eo','es','et','eu','fa','fi','fo','fr-CA','fr-CH','fr','gl','he','hi','hr','hu','hy','id','is',\n\t\t'it-CH','it','ja','ka','kk','km','ko','ky','lb','lt','lv','mk','ml','ms','nb','nl-BE','nl','nn',\n\t\t'no','pl','pt-BR','pt','rm','ro','ru','sk','sl','sq','sr-SR','sr','sv','ta','th','tj','tr','uk',\n\t\t'vi','zh-CN','zh-HK','zh-TW');\n\tif(substr(get_locale(), 0,2) != 'en' && in_array(get_locale(), $datepickerLang)){\n\t\twp_enqueue_script('jquery-datepicker-lang', $abcUrl.'frontend/js/datepicker_lang/datepicker-'.get_locale().'.js', array('jquery'));\n\t}elseif(substr(get_locale(), 0,2) != 'en' && in_array(substr(get_locale(), 0,2), $datepickerLang)){\n\t\twp_enqueue_script('jquery-datepicker-lang', $abcUrl.'frontend/js/datepicker_lang/datepicker-'.substr(get_locale(), 0,2).'.js', array('jquery'));\n\t}\n\t$settingsMessage = '';\n\tif ( isset($_GET[\"setting\"]) ) {\n\t\tswitch ($_GET[\"setting\"]) {\n\t\t\tcase 'booked-open':\n\t\t\t\t\t$settingsMessage .= '<div id=\"setting-error-settings_updated\" class=\"updated settings-error notice is-dismissible\"> \n\t\t\t\t\t\t\t\t\t\t<p><strong>'.__('Booking has been saved. Has yet to be confirmed.', 'multilang-booking-calendar').'</strong></p><button type=\"button\" class=\"notice-dismiss\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"screen-reader-text\">'.__('Dismiss this notice.', 'multilang-booking-calendar').'</span></button></div>';\n\t\t\t\t\tbreak;\n\t\t\tcase 'booked-confirmed':\n\t\t\t\t\t$settingsMessage .= '<div id=\"setting-error-settings_updated\" class=\"updated settings-error notice is-dismissible\"> \n\t\t\t\t\t\t\t\t\t\t<p><strong>'.__('Booking has been saved and state set to confirmed.', 'multilang-booking-calendar').'</strong></p><button type=\"button\" class=\"notice-dismiss\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"screen-reader-text\">'.__('Dismiss this notice.', 'multilang-booking-calendar').'</span></button></div>';\n\t\t\t\t\tbreak;\n\t\t\tcase 'booking-changed':\n\t\t\t\t\t$settingsMessage .= '<div id=\"setting-error-settings_updated\" class=\"updated settings-error notice is-dismissible\"> \n\t\t\t\t\t\t\t\t\t\t<p><strong>'.__('Booking has been changed.', 'multilang-booking-calendar').'</strong></p><button type=\"button\" class=\"notice-dismiss\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"screen-reader-text\">'.__('Dismiss this notice.', 'multilang-booking-calendar').'</span></button></div>';\n\t\t\t\t\tbreak;\n\t\t\tcase 'booking-changed-error':\n\t\t\t\t\t$settingsMessage .= '<div id=\"setting-error-settings_updated\" class=\"updated settings-error notice is-dismissible\"> \n\t\t\t\t\t\t\t\t\t\t<p><strong>'.__('Booking has been changed, but dates could not be changed! Calendar was occupied.', 'multilang-booking-calendar').'</strong></p><button type=\"button\" class=\"notice-dismiss\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"screen-reader-text\">'.__('Dismiss this notice.', 'multilang-booking-calendar').'</span></button></div>';\n\t\t\t\t\tbreak;\n\t\t\tcase 'confirmed':\n\t\t\t\t\t$settingsMessage .= '<div id=\"setting-error-settings_updated\" class=\"updated settings-error notice is-dismissible\"> \n\t\t\t\t\t\t\t\t\t\t<p><strong>'.__('Booking confirmed.', 'multilang-booking-calendar').'</strong></p><button type=\"button\" class=\"notice-dismiss\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"screen-reader-text\">'.__('Dismiss this notice.', 'multilang-booking-calendar').'</span></button></div>';\n\t\t\t\t\tbreak;\n\t\t\tcase 'canceled':\n\t\t\t\t\t$settingsMessage .= '<div id=\"setting-error-settings_updated\" class=\"updated settings-error notice is-dismissible\"> \n\t\t\t\t\t\t\t\t\t\t<p><strong>'.__('Booking canceled.', 'multilang-booking-calendar').'</strong></p><button type=\"button\" class=\"notice-dismiss\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"screen-reader-text\">'.__('Dismiss this notice.', 'multilang-booking-calendar').'</span></button></div>';\n\t\t\t\t\tbreak;\n\t\t\tcase 'rejected':\n\t\t\t\t\t$settingsMessage .= '<div id=\"setting-error-settings_updated\" class=\"updated settings-error notice is-dismissible\"> \n\t\t\t\t\t\t\t\t\t\t<p><strong>'.__('Booking rejected.', 'multilang-booking-calendar').'</strong></p><button type=\"button\" class=\"notice-dismiss\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"screen-reader-text\">'.__('Dismiss this notice.', 'multilang-booking-calendar').'</span></button></div>';\n\t\t\t\t\tbreak;\n\t\t\tcase 'deleted':\n\t\t\t\t\t$settingsMessage .= '<div id=\"setting-error-settings_updated\" class=\"updated settings-error notice is-dismissible\"> \n\t\t\t\t\t\t\t\t\t\t<p><strong>'.__('Booking deleted.', 'multilang-booking-calendar').'</strong></p><button type=\"button\" class=\"notice-dismiss\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"screen-reader-text\">'.__('Dismiss this notice.', 'multilang-booking-calendar').'</span></button></div>';\n\t\t\t\t\tbreak;\n\t\t\tcase 'error':\n\t\t\t\t\t$settingsMessage .= '<div id=\"setting-error-settings_updated\" class=\"updated settings-error notice is-dismissible\"> \n\t\t\t\t\t\t\t\t\t\t<p><strong>'.__('Something went wrong, change didn\\'t work.', 'multilang-booking-calendar').'</strong></p><button type=\"button\" class=\"notice-dismiss\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"screen-reader-text\">'.__('Dismiss this notice.', 'multilang-booking-calendar').'</span></button></div>';\n\t\t\t\t\tbreak;\n\t\t\tcase 'room-changed':\n\t\t\t\t\t$settingsMessage .= '<div id=\"setting-error-settings_updated\" class=\"updated settings-error notice is-dismissible\"> \n\t\t\t\t\t\t\t\t\t\t<p><strong>'.__('Room has been changed.', 'multilang-booking-calendar').'</strong></p><button type=\"button\" class=\"notice-dismiss\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"screen-reader-text\">'.__('Dismiss this notice.', 'multilang-booking-calendar').'</span></button></div>';\n\t\t\t\t\tbreak;\t\t\t\n\t\t\tcase 'customMessageSend':\n\t\t\t\t\t$settingsMessage .= '<div id=\"setting-error-settings_updated\" class=\"updated settings-error notice is-dismissible\">\n\t\t\t\t\t\t\t\t\t<p><strong>'.__('Message has been send.', 'multilang-booking-calendar').'</strong></p><button type=\"button\" class=\"notice-dismiss\">\n\t\t\t\t\t\t\t\t\t<span class=\"screen-reader-text\">'.__('Dismiss this notice.', 'multilang-booking-calendar').'</span></button></div>';\n\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t}\n\t}\n\t$setupMessage = '';\n\t$er = $wpdb->get_row('SELECT COUNT(id) as bookings FROM '.$wpdb->prefix.'mbc_bookings', ARRAY_A);\n\tif($er[\"bookings\"] == 0){ // Check if there are bookings\n\t\t$setupUrl = '<b><a href=\"https://booking-calendar-plugin.com/setup-guide\" target=\"_blank\">'.__('setup guide', 'multilang-booking-calendar').'</a></b>';\n\t\t$calendarLink = '<a href=\"admin.php?page=multilang-booking-calendar-show-seasons-calendars\">'.__('Seasons & Calendars', 'multilang-booking-calendar').'</a>';\n\t\t$createBooking = __('Create a Booking', 'multilang-booking-calendar');\n\t\t$setupCalendars = '<div class=\"uk-grid uk-margin-large-bottom\">\n\t\t\t\t<div class=\"uk-width-2-10 abcOnboarding abcOnboardingDone\"> \n\t\t\t\t\t<i class=\"uk-icon-check-square-o\"></i>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"uk-width-8-10 \">\n\t\t\t\t\t<h2 class=\"abcOnboardingDone\">'.__('Create a Calendar', 'multilang-booking-calendar').'</h2>\t\n\t\t\t\t\t</div>\n\t\t\t</div>';\n\t\t$er = $wpdb->get_row('SELECT COUNT(id) as calendars FROM '.$wpdb->prefix.'mbc_calendars', ARRAY_A);\n\t\tif($er[\"calendars\"] == 0){\n\t\t\t$setupCalendars = '\n\t\t\t<div class=\"uk-grid uk-margin-large-bottom\">\n\t\t\t\t\t<div class=\"uk-width-2-10 abcOnboarding\"> \n\t\t\t\t\t\t<i class=\"uk-icon-square-o\"></i>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"uk-width-8-10\">\n\t\t\t\t\t\t<h2>'.__('Create a Calendar', 'multilang-booking-calendar').'</h2>\n\t\t\t\t\t\t<p>'.sprintf(__('A calendar is one room or even a group of rooms of the same room type. Start by adding a calendar here: \"%s\"', 'multilang-booking-calendar'), $calendarLink).'</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>';\n\t\t}\n\t\t$setupAssignments = '<div class=\"uk-grid uk-margin-large-bottom\">\n\t\t\t\t<div class=\"uk-width-2-10 abcOnboarding abcOnboardingDone\"> \n\t\t\t\t\t<i class=\"uk-icon-check-square-o\"></i>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"uk-width-8-10 \">\n\t\t\t\t\t<h2 class=\"abcOnboardingDone\">'.__('Create a Season & assign it to a Calendar', 'multilang-booking-calendar').'</h2>\t\n\t\t\t\t\t</div>\n\t\t\t</div>';\t\n\t\t$er = $wpdb->get_row('SELECT COUNT(id) as assignments FROM '.$wpdb->prefix.'mbc_seasons_assignment', ARRAY_A);\n\t\tif($er[\"assignments\"] == 0){\n\t\t\t$setupAssignments = '\n\t\t\t<div class=\"uk-grid uk-margin-large-bottom\">\n\t\t\t\t\t<div class=\"uk-width-2-10 abcOnboarding\"> \n\t\t\t\t\t\t<i class=\"uk-icon-square-o\"></i>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"uk-width-8-10\">\n\t\t\t\t\t\t<h2>'.__('Create a Season & assign it to a Calendar', 'multilang-booking-calendar').'</h2>\n\t\t\t\t\t\t<p>'.sprintf(__('With seasons you can create differnt rates for different time periods. Go to \"%s\" and add a season and assign it to a calendar.', 'multilang-booking-calendar'), $calendarLink).'</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>';\n\t\t}\t\n\t\t$setupMessage = '\n\t\t<div class=\"uk-width-large-1-2 uk-width-1-1 uk-container-center uk-panel-box\">\n\t\t<div class=\"uk-alert\">\n\t\t <p>'.sprintf(__('There are currently no bookings. Check out our %s to get started.', 'multilang-booking-calendar'), $setupUrl).'</p>\n\t\t\t<p>'.sprintf(__('If you have a question, feel free to contact us:', 'multilang-booking-calendar'), $setupUrl).'\n\t\t\t\t<a href=\"https://booking-calendar-plugin.com/contact/\" target=\"_blank\">'.__('Contact Support', 'multilang-booking-calendar').'</a>\n\t\t\t</p>\n\t\t</div>\n\t\t\t'.$setupCalendars.'\n\t\t\t'.$setupAssignments.'\n\t\t\t<div class=\"uk-grid\">\n\t\t\t\t<div class=\"uk-width-2-10 abcOnboarding\"> \n\t\t\t\t\t<i class=\"uk-icon-square-o\"></i>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"uk-width-8-10\">\n\t\t\t\t\t<h2>'.__('Create a Booking', 'multilang-booking-calendar').'</h2>\t\n\t\t\t\t\t<p>'.sprintf(__('When everything is set up, add shortcodes to your WordPress pages and wait for the first guest.', 'multilang-booking-calendar'), $setupUrl).'</p>\n\t\t\t\t\t<p>'.sprintf(__('You can also click on \"%s\" and add your first Booking manually.', 'multilang-booking-calendar'), $createBooking).'</p>\n\t\t\t\t</div>\n\t\t\t</div>\t\n\t\t</div>';\n\t}\n\tif(isset($_GET[\"action\"])) {\n\t\t$getAction = $_GET[\"action\"];\n\t} else {\n\t\t$getAction = \"\";\n\t}\n\tif($getAction == 'editBookingRoom'){\n\t\techo mbc_booking_editBookingRoomContent();\n\t}elseif($getAction == 'editBooking'){\n\t\techo mbc_booking_editBookingContent();\n\t}elseif($getAction == 'customMessage'){\n\t\techo mbc_booking_customMessageContent();\n\t}else {\n\t\t$priceOutput = '<span id=\"mbc_totalPrice\">0</span> '.getAbcSetting('currency');\n\t\tif(getAbcSetting('currencyPosition') == 0 ){\n\t\t\t$priceOutput = getAbcSetting('currency').' <span id=\"mbc_totalPrice\">0</span>';\n\t\t} \n\t\techo '<div class=\"wrap\">\n\t\t\t\t<h1>'.__('Bookings', 'multilang-booking-calendar').'</h1>\n\t\t\t\t'.$settingsMessage.'\n\t\t\t\t'.mbc_booking_getAvailabilityTable(date_i18n(\"Y-m-d\")).'\n\t\t\t\t<div id=\"abctabs2\">\n\t\t\t\t\t<ul class=\"uk-tab\" data-uk-tab=\"{connect:\\'#tab-content\\'}\">\n\t\t\t\t\t\t<li><a href=\"#\">'.__('Open Bookings', 'multilang-booking-calendar').'</a></li>\n\t\t\t\t\t\t<li><a href=\"#\">'.__('Confirmed Bookings', 'multilang-booking-calendar').'</a></li>\n\t\t\t\t\t\t<li><a href=\"#\">'.__('Rejected & canceled Bookings', 'multilang-booking-calendar').'</a></li>\n\t\t\t\t\t\t<li><a href=\"#\">'.__('Create a Booking', 'multilang-booking-calendar').'</a></li>\n\t\t\t\t\t\t<li><a href=\"#\">'.__('Search', 'multilang-booking-calendar').'</a></li>\n\t\t\t\t\t</ul>\n\t\t\t\t\t<ul id=\"tab-content\" class=\"uk-switcher uk-margin\">\n\t\t\t\t\t\t<li>'.mbc_booking_getBookings('open').'</li>\n\t\t\t\t\t\t<li>'.mbc_booking_getBookings('confirmed').'</li>\n\t\t\t\t\t\t<li>'.mbc_booking_getBookings('canceled\", \"rejected').'</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t<form class=\"uk-form uk-form-horizontal\" id=\"mbc-booking-form\" action=\"admin-post.php?action=postAbcBooking\" method=\"post\">\n\t\t\t\t\t\t\t<input id=\"mbc-extralist\" type=\"hidden\" name=\"extras\" value=\"\">\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<label class=\"uk-form-label\" for=\"calendar_id\">'.__('Calendar', 'multilang-booking-calendar').'</label>\n\t\t\t\t\t\t\t\t<div class=\"uk-form-controls\">\n\t\t\t\t\t\t\t\t\t<select id=\"calendar_id\" name=\"calendar_id\" required>'.mbc_booking_getCalOptList().'</select>\n\t\t\t\t\t\t\t\t</div>\t\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<label class=\"uk-form-label\" for=\"persons\">'.__('Persons', 'multilang-booking-calendar').'</label>\n\t\t\t\t\t\t\t\t <div class=\"uk-form-controls\">\n\t\t\t\t\t\t\t\t\t<select id=\"persons\" name=\"persons\" required><option disabled value=\"\" selected>'.__('Set calendar', 'multilang-booking-calendar').'...</option></select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<label class=\"uk-form-label\" for=\"start\">'.__('Checkin Date', 'multilang-booking-calendar').'</label>\n\t\t\t\t\t\t\t\t <div class=\"uk-form-controls\">\n\t\t\t\t\t\t\t\t\t <div class=\"uk-form-icon\">\n\t\t <i class=\"uk-icon-calendar\"></i>\n\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"start\" name=\"start\" required>\n\t\t\t\t\t\t\t\t\t</div>\t\n\t\t\t\t\t\t\t\t </div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<label class=\"uk-form-label\" for=\"end\">'.__('Checkout Date', 'multilang-booking-calendar').'</label>\n\t\t\t\t\t\t\t\t <div class=\"uk-form-controls\">\n\t\t\t\t\t\t\t\t\t <div class=\"uk-form-icon\">\n\t\t <i class=\"uk-icon-calendar\"></i>\n\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"end\" name=\"end\" required>\n\t\t\t\t\t\t\t\t\t</div>\t\n\t\t\t\t\t\t\t\t </div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<span class=\"uk-form-label\">'.__('State', 'multilang-booking-calendar').'</span>\n\t\t\t\t\t\t\t\t <div class=\"uk-form-controls\" id=\"mbc_dateStatus\">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<span class=\"uk-form-label\">'.__('Extras', 'multilang-booking-calendar').'</span>\n\t\t\t\t\t\t\t\t<div class=\"uk-form-controls\" id=\"mbc_optionalExtras\">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<span class=\"uk-form-label\">'.__('Additional costs', 'multilang-booking-calendar').'</span>\n\t\t\t\t\t\t\t\t<div class=\"uk-form-controls\" id=\"mbc_mandatoryExtras\">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<span class=\"uk-form-label\">'.__('Total price', 'multilang-booking-calendar').'</span>\n\t\t\t\t\t\t\t\t<div class=\"uk-form-controls\"><b>'.$priceOutput.'</b>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<span class=\"uk-form-label\">'.__('Set Booking State to', 'multilang-booking-calendar').'</span>\n\t\t\t\t\t\t\t\t <div class=\"uk-form-controls uk-form-controls-tex\">\n\t\t\t\t\t\t\t\t\t<input id=\"radio-open\" type=\"radio\" name=\"state\" value=\"open\" checked> <label for=\"radio-open\">'.__('Open (has to be confirmed)', 'multilang-booking-calendar').'</label><br/>\n\t\t\t\t\t\t\t\t\t<input id=\"radio-confirmed\" type=\"radio\" name=\"state\" value=\"confirmed\"> <label for=\"radio-confirmed\">'.__('Confirmed', 'multilang-booking-calendar').'</label>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<label class=\"uk-form-label\" for=\"first_name\">'.__('First Name', 'multilang-booking-calendar').'</label>\n\t\t\t\t\t\t\t\t <div class=\"uk-form-controls\">\n\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"first_name\" name=\"first_name\" placeholder=\"John\">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<label class=\"uk-form-label\" for=\"last_name\">'.__('Last Name', 'multilang-booking-calendar').'</label>\n\t\t\t\t\t\t\t\t <div class=\"uk-form-controls\">\n\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"last_name\" name=\"last_name\" placeholder=\"Doe\">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<label class=\"uk-form-label\" for=\"email\">'.__('Email Address', 'multilang-booking-calendar').'</label>\n\t\t\t\t\t\t\t\t <div class=\"uk-form-controls\">\n\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"email\" name=\"email\" placeholder=\"your@email.com\">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<span class=\"uk-form-label\">'.__('Send confirmation email to guest', 'multilang-booking-calendar').'</span>\n\t\t\t\t\t\t\t\t <div class=\"uk-form-controls uk-form-controls-text\">\n\t\t\t\t\t\t\t\t\t<input id=\"radio-yes\" type=\"radio\" name=\"emailconfirmation\" value=\"yes\"> <label for=\"radio-yes\">'.__('Yes', 'multilang-booking-calendar').'</label><br/>\n\t\t\t\t\t\t\t\t\t<input id=\"radio-no\" type=\"radio\" name=\"emailconfirmation\" value=\"no\" checked> <label for=\"radio-no\">'.__('No', 'multilang-booking-calendar').'</label>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<label class=\"uk-form-label\" for=\"phone\">'.__('Phone Number', 'multilang-booking-calendar').'</label>\n\t\t\t\t\t\t\t\t <div class=\"uk-form-controls\">\n\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"phone\" name=\"phone\" placeholder=\"+1 123 456 789\">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<label class=\"uk-form-label\" for=\"address\">'.__('Street Address, House no.', 'multilang-booking-calendar').'</label>\n\t\t\t\t\t\t\t\t <div class=\"uk-form-controls\">\n\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"address\" name=\"address\" placeholder=\"1 Wall St\">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<label class=\"uk-form-label\" for=\"zip\">'.__('ZIP Code', 'multilang-booking-calendar').'</label>\n\t\t\t\t\t\t\t\t <div class=\"uk-form-controls\">\n\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"zip\" name=\"zip\" placeholder=\"NY 10286\">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<label class=\"uk-form-label\" for=\"city\">'.__('City', 'multilang-booking-calendar').'</label>\n\t\t\t\t\t\t\t\t <div class=\"uk-form-controls\">\n\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"city\" name=\"city\" placeholder=\"New York City\">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<label class=\"uk-form-label\" for=\"county\">'.__('State / County', 'multilang-booking-calendar').'</label>\n\t\t\t\t\t\t\t\t <div class=\"uk-form-controls\">\n\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"county\" name=\"county\" placeholder=\"New York\">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<label class=\"uk-form-label\" for=\"country\">'.__('Country', 'multilang-booking-calendar').'</label>\n\t\t\t\t\t\t\t\t <div class=\"uk-form-controls\">\n\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"country\" name=\"country\" placeholder=\"USA\">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<label class=\"uk-form-label\" for=\"message\">'.__('Message, special note for stay', 'multilang-booking-calendar').'</label>\n\t\t\t\t\t\t\t\t <div class=\"uk-form-controls\">\n\t\t\t\t\t\t\t\t\t<textarea id=\"message\" name=\"message\"></textarea>\t\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"uk-form-row\">\n\t\t\t\t\t\t\t\t<input id=\"postAbcBooking\" class=\"button button-primary\" type=\"submit\" value=\"'.__('Create Booking', 'multilang-booking-calendar').'\"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t<form class=\"uk-form uk-form-horizontal\" action=\"\">\n\t\t\t\t\t\t\t<input type=\"text\" id=\"abcBookingSearchText\" placeholder=\"'.__('search', 'multilang-booking-calendar').'...\"/>\n\t\t\t\t\t\t\t<input id=\"abcBookingSearchButton\" class=\"button button-primary\" type=\"submit\" value=\"'.__('Search', 'multilang-booking-calendar').'\"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t\t<div id=\"abcBookingSearchResult\"></div>\n\t\t\t\t\t\t</li>\t\n\t\t\t\t\t</ul>\n\t\t\t\t\t'.$setupMessage.'\n\t\t\t\t</div>\n\t\t\t</div>'.$feedbackModal;\n\t}\n\n}", "title": "" }, { "docid": "26b97f97293c4a3a5d116d8b6bcaa3fa", "score": "0.56316215", "text": "public function create()\n {\n \n \n return view('booking.create',[]);\n }", "title": "" }, { "docid": "4cae4e23af53369a2429daf4641ac963", "score": "0.56298774", "text": "public function create()\n {\n //Store variable to be used for reservation\n $detail=session::get('specific');\n $campus = $detail->Campus;\n $residence = $detail->Residence_name;\n $layout = $detail->Layout;\n $landlord = $detail->Landlord;\n $contact = $detail->Contact;\n $user = Auth::user()->name;\n $phone = Auth::user()->phone;\n\n //Check if user has made a booking before\n $booking = DB::table('reservations')->where('Phone', $phone)->get();\n $count = count($booking);\n if($count > 0){\n $error = \"You have already made a booking.\";\n return back()->with('error', $error);\n }else{\n //Create reservation in reservations table\n $reservation = new reservation;\n $reservation->User = $user;\n $reservation->phone = $phone;\n $reservation->Campus =$campus;\n $reservation->Residence_name =$residence;\n $reservation->Layout =$layout;\n $reservation->Landlord =$landlord;\n $reservation->Landlord_contact =$contact; \n $reservation->save();\n \n $result = \"Room reserved successfully.\";\n return back()->with('result', $result);\n }\n }", "title": "" }, { "docid": "17eea658da85069ef3c21029916bb507", "score": "0.5627337", "text": "function create_reservation($court_number, $start_time)\n{\n\techo (\"create_reservation : \\n\");\n\t$start_time = __normalize_date($start_time);\n\tif ($start_time == NULL)\n\t\treturn NULL;\n\t\n\t// Register user just-in-case\n\t$user_id = get_active_user();\n\tadd_user($user_id);\n\t\n\tDAL::connect();\n\t$reservation_id = DAL::insert_reservation($user_id, $court_number, $start_time);\n\tDAL::disconnect();\n\t\n\t$result = array(\n\t\t\"reservation\" => array(\n\t\t\tarray (\n\t\t\t\t\"user_id\" => $user_id,\n\t\t\t\t\"reservation_id\" => $reservation_id,\n\t\t\t\t\"court_number\" => $court_number,\n\t\t\t\t\"time\" => $start_time\n\t\t\t)\n\t\t)\n\t);\n\treturn json_encode($result);\n}", "title": "" }, { "docid": "b3a8a76926d6dd6e22228c46bccda859", "score": "0.56241703", "text": "public function getBooking($booking){\n $this->connect();\n $sql = \"SELECT `booking_id`, `booking_guest_name`, `booking_guest_surname`, booking_guests_number , `guest_tel_number`, \";\n $sql .= \" `booking_check_in`, `booking_check_out`, `booking_cost`, `booking_deposit`, `booking_commission`,\";\n $sql .= \" `booking_source`, `booking_asset_id`, `guest_email` , booking_notes FROM `booking_details` WHERE `booking_id` = ?\";\n $res = $this->execute($sql , [$booking->booking_id]);\n $row = $res->fetch();\n $booking->booking_id = $row['booking_id'];\n $booking->booking_guest_name = $row['booking_guest_name'];\n $booking->booking_guest_surname = $row['booking_guest_surname'];\n $booking->booking_guests_number = $row['booking_guests_number'];\n $booking->guest_tel_number = $row['guest_tel_number'];\n $booking->booking_check_in = $row['booking_check_in'];\n $booking->booking_check_out = $row['booking_check_out'];\n $booking->booking_cost = $row['booking_cost'];\n $booking->booking_deposit = $row['booking_deposit'];\n $booking->booking_commission = $row['booking_commission'];\n $booking->booking_source = $row['booking_source'];\n $booking->booking_asset_id = $row['booking_asset_id'];\n $booking->guest_email = $row['guest_email'];\n $booking->booking_notes = $row['booking_notes'];\n }", "title": "" }, { "docid": "778e78df345a87e4f32249ce59063704", "score": "0.5622493", "text": "public function run()\n {\n $data = [\n [\n 'full_name' => \"Rafael Torres\",\n 'reserved_date' => '2020-10-13',\n 'reserved_time' => '09:00:01',\n 'message' => \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor\",\n ],\n [\n 'full_name' => \"Isaac Rolfe\",\n 'reserved_date' => '2020-10-14',\n 'reserved_time' => '10:00:01',\n 'message' => \"consectetur adipiscing e Lorem ipsum dolor sit ametlit, sed do eiusmod tempor\",\n ],\n [\n 'full_name' => \"Alex Osborn\",\n 'reserved_date' => '2020-10-15',\n 'reserved_time' => '10:00:01',\n 'message' => \"dolor sit ametlit consectetur adipiscing e Lorem ipsum , sed do eiusmod tempor\",\n ],\n ];\n\n foreach ($data as $row) {\n \\App\\Booking::create($row);\n }\n }", "title": "" }, { "docid": "24e09051edaf8065d9c2b6faa889008a", "score": "0.56050897", "text": "public function livebooking(){\n\t\t $id = $this->session->userdata('admin_id');\n\t\t$data['user'] = $this->user_model->get_user_by_role_id($id);\n\t\t$hotel = $data['user']['hotel_id'];\n\n\t\t$data['hotel'] = $this->hotel_model->get_hotel_by_id($hotel);\n\t\t$vid = $data['hotel']['hotel_vendor_id'];\n\t\t\n\n\t\t$data['all_booking'] = $this->booking_model->get_all_manager_booking($id);\n\t\t\n\t\t$data['view'] = 'admin/booking/live_booking_list';\n\n\t\t$this->load->view('admin/layout', $data);\n\t}", "title": "" }, { "docid": "028d8b8510effc243b326f2371438fad", "score": "0.56000507", "text": "public function bookingList()\n {\n \t$userId = $this->userId;\n \tif ( $userId ) {\n \t\t$data = [];\n\t \t$booking = $this->model->getAllBookings($userId);\n\t \tif( $booking ){\n $i = 0;\n\t \t\twhile( $row = $booking->fetch_assoc() ){\n $data[$i]['id'] = $row['bookId'];\n $data[$i]['name'] = $row['name'];\n $data[$i]['email'] = $row['email'];\n $data[$i]['cars'] = $row['carName'];\n $data[$i]['destination'] = $row['destiName'];\n $data[$i]['pickup'] = $row['pickName'];\n $data[$i]['booked'] = date('Y-m-d H:i',strtotime($row['booking_time']));\n $data[$i]['returned'] = date('Y-m-d H:i',strtotime($row['return_time']));\n $data[$i]['bookedAt'] = $row['booked_at'];\n $i++;\n }\n\t \t} \n \t\tinclude '../views/booking-list.php';\n\t \texit();\n \t}\n }", "title": "" }, { "docid": "d9ba342cf379234fab4dd9c11f732f01", "score": "0.55986017", "text": "function mbc_booking_getAvailabilityTable($initialDate, $bookingId = 0) {\n\tif (!current_user_can(mbc_booking_admin_capabilities())) {\n\t\twp_die(\"Go away\");\n\t}\n\tglobal $abcUrl;\n\tglobal $wpdb;\n\t$startDate = strtotime($initialDate);\n\t$dateformat = getAbcSetting(\"dateformat\");\n\tif (date_i18n('w', $startDate) < 6) { // Availability always starts on the last saturday\n\t\t$dayDiff = date_i18n('w', $startDate)+1; \n\t\t$startDate = strtotime('-'.$dayDiff.' days', $startDate);\n\t}\n\t$tempDate = $startDate;\n\t$tableHead = '';\n\tfor($i=0; $i<=28; $i++){ // Creating dates for table head\n\t\t$tableHead .= '<th colspan=\"2\" class=\"abcCellBorderBottom abcCellBorderLeft abcDayNumber';\n\t\tif($i%7 <= 1){\n\t\t\t$tableHead .= ' abcDayWeekend';\n\t\t}\n\t\t$tableHead .= '\">\n\t\t\t\t\t<span class=\"abcMonthName\">'.date_i18n('D', $tempDate).'</span><br/>\n\t\t\t\t\t'.date_i18n('j', $tempDate).'<br/>\n\t\t\t\t\t<span class=\"abcMonthName\">'.date_i18n('M', $tempDate).'</span></th>';\n\t\t$tempDate = strtotime('+1 day', $tempDate);\n\t}\n\t$endDate = strtotime('-1 day', $tempDate);\n\t$initialYear = date_i18n(\"Y\", strtotime($initialDate));\n\t$output = '<div class=\"uk-overflow-container abcAvailabilityTable\" id=\"mbc_AvailabilityTable\">\n\t\t\t\t<table class=\"abcAvailabilityTable\">\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th>\n\t\t\t\t\t\t\t<div class=\"uk-button-group\">\n\t\t\t\t\t\t\t\t<button data-startdate=\"'.date(\"Y-m-d\", $startDate).'\" data-uk-tooltip=\"{animation:\\'true\\'}\" class=\"uk-button mbc-availability-table-button-left\"><i class=\"uk-icon-chevron-left\"></i></button>\n\t\t\t\t\t\t\t\t<button data-startdate=\"'.date(\"Y-m-d\", $startDate).'\" data-uk-tooltip=\"{animation:\\'true\\'}\" class=\"uk-button mbc-availability-table-button-right\"><i class=\"uk-icon-chevron-right\"></i></button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"abcDateSelector\">\n\t\t\t\t\t\t\t\t<div class=\"uk-button-dropdown\" data-uk-dropdown>\n\t\t\t\t\t\t\t\t\t<button class=\"uk-button abcMonthWrapper\">'.date_i18n(\"M\", strtotime($initialDate)).'<i class=\"uk-icon-caret-down\"></i></button>\n\t\t\t\t\t\t\t\t\t<div class=\"uk-dropdown uk-dropdown-small\">\n\t\t\t\t\t\t\t\t\t\t<ul class=\"uk-nav uk-nav-dropdown\">\n\t\t\t\t\t\t\t\t\t\t\t<li><a class=\"abcMonthSelector\" data-startdate=\"'.$initialYear.'-01-01\" href=\"\">'.__('January', 'multilang-booking-calendar').'</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li><a class=\"abcMonthSelector\" data-startdate=\"'.$initialYear.'-02-01\" href=\"\">'.__('February', 'multilang-booking-calendar').'</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li><a class=\"abcMonthSelector\" data-startdate=\"'.$initialYear.'-03-01\" href=\"\">'.__('March', 'multilang-booking-calendar').'</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li><a class=\"abcMonthSelector\" data-startdate=\"'.$initialYear.'-04-01\" href=\"\">'.__('April', 'multilang-booking-calendar').'</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li><a class=\"abcMonthSelector\" data-startdate=\"'.$initialYear.'-05-01\" href=\"\">'.__('May', 'multilang-booking-calendar').'</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li><a class=\"abcMonthSelector\" data-startdate=\"'.$initialYear.'-06-01\" href=\"\">'.__('June', 'multilang-booking-calendar').'</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li><a class=\"abcMonthSelector\" data-startdate=\"'.$initialYear.'-07-01\" href=\"\">'.__('July', 'multilang-booking-calendar').'</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li><a class=\"abcMonthSelector\" data-startdate=\"'.$initialYear.'-08-01\" href=\"\">'.__('August', 'multilang-booking-calendar').'</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li><a class=\"abcMonthSelector\" data-startdate=\"'.$initialYear.'-09-01\" href=\"\">'.__('September', 'multilang-booking-calendar').'</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li><a class=\"abcMonthSelector\" data-startdate=\"'.$initialYear.'-10-01\" href=\"\">'.__('October', 'multilang-booking-calendar').'</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li><a class=\"abcMonthSelector\" data-startdate=\"'.$initialYear.'-11-01\" href=\"\">'.__('November', 'multilang-booking-calendar').'</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li><a class=\"abcMonthSelector\" data-startdate=\"'.$initialYear.'-12-01\" href=\"\">'.__('December', 'multilang-booking-calendar').'</a></li>\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</div>\n\t\t\t\t\t\t\t\t<div class=\"uk-button-dropdown\" data-uk-dropdown>\n\t\t\t\t\t\t\t\t\t<button class=\"uk-button abcYearWrapper\">'.date_i18n(\"Y\", strtotime($initialDate)).'<i class=\"uk-icon-caret-down\"></i></button>\n\t\t\t\t\t\t\t\t\t<div class=\"uk-dropdown uk-dropdown-small\">\n\t\t\t\t\t\t\t\t\t\t<ul class=\"uk-nav uk-nav-dropdown\"> ';\n\tfor ($i = -2; $i <3; $i++){\n\t\t$currYear = date_i18n(\"Y\", strtotime($initialDate))+$i;\n\t\t$currMonth = date_i18n(\"m\", strtotime($initialDate));\n\t\t$output .= '<li><a class=\"abcYearSelector\" data-startdate=\"'.$currYear.'-'.$currMonth.'-01\" href=\"\">'.$currYear.'</a></li>';\n\t} \n\t$output .= '\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</div>\n\t\t\t\t\t\t\t</div>\t\n\t\t\t\t\t\t</th>';\n\t$output .= $tableHead.'\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>';\n\t$bookings = array();\n\t$bookingQuery = $wpdb->get_results('SELECT * FROM '.$wpdb->prefix.'mbc_bookings \n\t\t\t\t\tWHERE end >= \"'.date_i18n(\"Y-m-d\", $startDate).'\" \n\t\t\t\t\tAND start <= \"'.date_i18n(\"Y-m-d\", strtotime('+29 days', $startDate)).'\" \n\t\t\t\t\tAND state = \"confirmed\" \n\t\t\t\t\tORDER BY end', ARRAY_A); \n\tforeach($bookingQuery as $bookingRow){\n\t\t$bookings[$bookingRow[\"calendar_id\"]][$bookingRow[\"room_id\"]][] = $bookingRow; // Getting all confirmed bookings for the current timeframe\n\t}\n\t$er = $wpdb->get_results('SELECT * FROM '.$wpdb->prefix.'mbc_calendars ORDER BY name', ARRAY_A);\n\t$currCalendar = ''; // Necessary for drawing a bold line at the first room\n\tforeach($er as $row) { // Creating rows for table\n\t\t$calendar = $wpdb->get_results('SELECT * FROM '.$wpdb->prefix.'mbc_rooms WHERE calendar_id='.$row[\"id\"].' ORDER BY name', ARRAY_A);\n\t\tif($wpdb->num_rows > 1){\n\t\t\t$output .= '<tr>\n\t\t\t\t\t\t<td class=\"abcCalendarName\">'.esc_html($row[\"name\"]).'</td>\n\t\t\t\t\t\t</tr>';\n\t\t}\t\n\t\tforeach($calendar as $rooms) { // Getting room names and bookings\n\t\t\tif($wpdb->num_rows > 1){\n\t\t\t\t$output .= '<tr>\n\t\t\t\t\t\t<td class=\"abcRoomName\">'.esc_html($rooms[\"name\"]).'</td>';\n\t\t\t} else {\n\t\t\t\t$output .= '<tr>\n\t\t\t\t\t\t<td class=\"abcCalendarName\">'.esc_html($row[\"name\"]).'</td>';\n\t\t\t}\t\n\t\t\t$roomRowDate = $startDate;\n\t\t\tfor($i = 0; $i <= 57; $i++){\n\t\t\t\t$colSpan = 1;\n\t\t\t\tif (isset($bookings[$row[\"id\"]][$rooms[\"id\"]])){ // Checking for bookings for the current room\n\t\t\t\t\t$success = false;\n\t\t\t\t\tfor($j = 0; $j < count($bookings[$row[\"id\"]][$rooms[\"id\"]]); $j++){\n\t\t\t\t\t\t// Checking if a booking started before startDate \n\t\t\t\t\t\tif($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"start\"] < date_i18n(\"Y-m-d\", $startDate) && $i==0){\n\t\t\t\t\t\t\t$tempEndDate = strtotime($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"end\"]);\n\t\t\t\t\t\t\t$dayOffset = 0;\n\t\t\t\t\t\t\t$cssClass = ' abcAvailabilityTableStarting';\n\t\t\t\t\t\t\tif ($tempEndDate > $endDate){\n\t\t\t\t\t\t\t\t$tempEndDate = strtotime('-1 day', $endDate);\n\t\t\t\t\t\t\t\t$dayOffset = 1;\n\t\t\t\t\t\t\t\t$success = true;\n\t\t\t\t\t\t\t\t$cssClass .= ' abcAvailabilityTableStartingEnding';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$dateDiff = mbc_booking_dateDiffInDays($tempEndDate, $startDate);\n\t\t\t\t\t\t\t$colSpan = ($dateDiff*2)+1;\n\t\t\t\t\t\t\t$lineCount = 0;\n\t\t\t\t\t\t\t$title = date_i18n($dateformat, strtotime($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"start\"])).' \n\t\t\t\t\t\t\t\t\t\t- '.date_i18n($dateformat, strtotime($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"end\"]));\n\t\t\t\t\t\t\tif(strlen($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"last_name\"]) > 0){\n\t\t\t\t\t\t\t\t$title .= '<br/>'.$bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"last_name\"];\n\t\t\t\t\t\t\t\t$lineCount ++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(strlen($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"first_name\"]) > 5){\n\t\t\t\t\t\t\t\tif($lineCount == 0){\n\t\t\t\t\t\t\t\t\t$title .= '<br/>';\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t$title .= ', ';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$title .= $bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"first_name\"];\n\t\t\t\t\t\t\t\t$lineCount ++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Creating Title- and Inline-Text \n\t\t\t\t\t\t\t$lineCount = 0;\n\t\t\t\t\t\t\t$text = '';\n\t\t\t\t\t\t\t$title = date_i18n($dateformat, strtotime($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"start\"])).' \n\t\t\t\t\t\t\t\t\t\t- '.date_i18n($dateformat, strtotime($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"end\"]));\n\t\t\t\t\t\t\tif(strlen($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"last_name\"]) > 0){\n\t\t\t\t\t\t\t\t$title .= '<br/>'.$bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"last_name\"];\n\t\t\t\t\t\t\t\t$text .= $bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"last_name\"].',';\n\t\t\t\t\t\t\t\t$lineCount ++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!empty($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"first_name\"])){\n\t\t\t\t\t\t\t\tif($lineCount == 0){\n\t\t\t\t\t\t\t\t\t$title .= '<br/>';\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t$title .= ', ';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$title .= $bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"first_name\"];\n\t\t\t\t\t\t\t\t$lineCount ++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$title .= '<br/>'.sprintf( _n('%d person', '%d persons', $bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"persons\"], 'multilang-booking-calendar'), $bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"persons\"] ).' \n\t\t\t\t\t\t\t\t\t\t<br/>'.mbc_booking_formatPrice($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"price\"]);\n\t\t\t\t\t\t\t$text .= sprintf( _n('%d person', '%d persons', $bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"persons\"], 'multilang-booking-calendar'), $bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"persons\"] ).',\n\t\t\t\t\t\t\t\t\t\t'.mbc_booking_formatPrice($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"price\"]).', '.date_i18n($dateformat, strtotime($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"start\"])).'\n\t\t\t\t\t\t\t\t\t- '.date_i18n($dateformat, strtotime($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"end\"]));\n\t\t\t\t\t\t\tif(!empty($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"country\"])){\n\t\t\t\t\t\t\t\t$title .= '<br/>'.$bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"country\"];\n\t\t\t\t\t\t\t\t$text .= ', '.$bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"country\"];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!empty($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"phone\"])){\n\t\t\t\t\t\t\t\t$title .= '<br/>'.$bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"phone\"];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!empty($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"email\"])){\n\t\t\t\t\t\t\t\t$title .= '<br/>'.$bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"email\"];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(mb_strlen($text, \"utf-8\") > $colSpan*1.5){\n\t\t\t\t\t\t\t\t$text = mb_substr($text, 0, $colSpan*1.5, \"utf-8\").'...';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$output .= '<td data-uk-tooltip=\"{animation:\\'true\\'}\" title=\"'.$title.'\" class=\"abcAvailabilityTableFont abcAvailabilityTableColor';\n\t\t\t\t\t\t\t$output .= $bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"id\"]%12;\n\t\t\t\t\t\t\t$output .= $cssClass.'\" colspan=\"'.$colSpan.'\">'.$text.'</td>';\n\t\t\t\t\t\t\t$i += ((mbc_booking_dateDiffInDays($tempEndDate, $startDate))*2)+1+$dayOffset;\n\t\t\t\t\t\t\t$roomRowDate = strtotime('+'.$dateDiff.' day', $roomRowDate);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}elseif($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"start\"] == date_i18n(\"Y-m-d\", $roomRowDate) && $i%2==1) {\n\t\t\t\t\t\t\t$tempEndDate = strtotime($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"end\"]);\n\t\t\t\t\t\t\t$dayOffset = 0;\n\t\t\t\t\t\t\t$cssClass = '';\n\t\t\t\t\t\t\tif ($tempEndDate > $endDate){\n\t\t\t\t\t\t\t\t$tempEndDate = strtotime('-1 day', $endDate);\n\t\t\t\t\t\t\t\t$dayOffset = 3;\n\t\t\t\t\t\t\t\t$success = true;\n\t\t\t\t\t\t\t\t$cssClass .= ' abcAvailabilityTableEnding';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ($bookingId == $bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"id\"]){\n\t\t\t\t\t\t\t\t$cssClass .= ' abcBookingHighlighted';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Creating Title- and Inline-Text \n\t\t\t\t\t\t\t$lineCount = 0;\n\t\t\t\t\t\t\t$text = '';\n\t\t\t\t\t\t\t$title = date_i18n($dateformat, strtotime($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"start\"])).' \n\t\t\t\t\t\t\t\t\t\t- '.date_i18n($dateformat, strtotime($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"end\"]));\n\t\t\t\t\t\t\tif(strlen($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"last_name\"]) > 0){\n\t\t\t\t\t\t\t\t$title .= '<br/>'.$bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"last_name\"];\n\t\t\t\t\t\t\t\t$text .= $bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"last_name\"].',';\n\t\t\t\t\t\t\t\t$lineCount ++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!empty($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"first_name\"])){\n\t\t\t\t\t\t\t\tif($lineCount == 0){\n\t\t\t\t\t\t\t\t\t$title .= '<br/>';\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t$title .= ', ';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$title .= $bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"first_name\"];\n\t\t\t\t\t\t\t\t$lineCount ++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$title .= '<br/>'.sprintf( _n('%d person', '%d persons', $bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"persons\"], 'multilang-booking-calendar'), $bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"persons\"] ).' \n\t\t\t\t\t\t\t\t\t\t<br/>'.mbc_booking_formatPrice($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"price\"]);\n\t\t\t\t\t\t\t$text .= sprintf( _n('%d person', '%d persons', $bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"persons\"], 'multilang-booking-calendar'), $bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"persons\"] ).',\n\t\t\t\t\t\t\t\t\t\t'.mbc_booking_formatPrice($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"price\"]).', '.date_i18n($dateformat, strtotime($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"start\"])).'\n\t\t\t\t\t\t\t\t\t- '.date_i18n($dateformat, strtotime($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"end\"]));\n\t\t\t\t\t\t\tif(!empty($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"country\"])){\n\t\t\t\t\t\t\t\t$title .= '<br/>'.$bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"country\"];\n\t\t\t\t\t\t\t\t$text .= ', '.$bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"country\"];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!empty($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"phone\"])){\n\t\t\t\t\t\t\t\t$title .= '<br/>'.$bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"phone\"];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!empty($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"email\"])){\n\t\t\t\t\t\t\t\t$title .= '<br/>'.$bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"email\"];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$dateDiff = abs(mbc_booking_dateDiffInDays(strtotime($bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"start\"]), $tempEndDate));\n\t\t\t\t\t\t\t$colSpan = ($dateDiff*2)+$dayOffset;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(mb_strlen($text, \"utf-8\") > $colSpan*1.5){\n\t\t\t\t\t\t\t\t$text = mb_substr($text, 0, $colSpan*1.5, \"utf-8\").'...';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$output .= '<td data-uk-tooltip=\"{animation:\\'true\\'}\" title=\"'.$title.'\" class=\"abcAvailabilityTableFont abcAvailabilityTableColor';\n\t\t\t\t\t\t\t$output .= $bookings[$row[\"id\"]][$rooms[\"id\"]][$j][\"id\"]%12;\n\t\t\t\t\t\t\t$output .= $cssClass.'\" colspan=\"'.$colSpan.'\">'.$text.'</td>';\n\t\t\t\t\t\t\t$i += ($dateDiff*2)+$dayOffset;\n\t\t\t\t\t\t\t$roomRowDate = strtotime('+'.$dateDiff.' day', $roomRowDate);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(!$success){\n\t\t\t\t\t\t$output .= '<td class=\"abcCellBorderBottom';\n\t\t\t\t\t\tif($i%2 ==0){\n\t\t\t\t\t\t\t$output .= ' abcCellBorderLeft';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($currCalendar != $row[\"id\"]){\n\t\t\t\t\t\t\t$output .= ' abcCellBorderTop';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$output .= '\">&nbsp;</td>';\n\t\t\t\t\t}\n\t\t\t\t} else{\n\t\t\t\t\t$output .= '<td class=\"abcCellBorderBottom';\n\t\t\t\t\tif($i%2 ==0){\n\t\t\t\t\t\t$output .= ' abcCellBorderLeft';\n\t\t\t\t\t}\n\t\t\t\t\tif($currCalendar != $row[\"id\"]){\n\t\t\t\t\t\t$output .= ' abcCellBorderTop';\n\t\t\t\t\t}\n\t\t\t\t\t$output .= '\">&nbsp;</td>';\n\t\t\t\t}\n\t\t\t\tif($i%2==1 || $i == 1){\n\t\t\t\t\t$roomRowDate = strtotime('+1 day', $roomRowDate);\n\t\t\t\t}\t\n\t\t\t}\t\t\t\n\t\t\t$output .= '</tr>';\n\t\t\t$currCalendar = $row[\"id\"]; \n\t\t}\n\t}\n\t$output .='\n\t\t\t\t</table>\n\t\t\t\t</div>';\n\treturn $output;\n}", "title": "" }, { "docid": "95dc47e34073d42a36beb794e076f1de", "score": "0.55965245", "text": "function get_bk_dates_4_edit($mysql, $bk_type, $approved) {\n\n//TODO: Edited after hotel version corrections if ( class_exists('wpdev_bk_biz_l') ) { return; } // Already exist at that class\n\n global $wpdb;\n if (isset($_GET['booking_hash'])) {\n $my_booking_id_type = apply_bk_filter('wpdev_booking_get_hash_to_id',false, $_GET['booking_hash'] );\n if ($my_booking_id_type !== false) {\n $my_booking_id = $my_booking_id_type[0];\n //$bk_type = $my_booking_id_type[1];\n } else $my_booking_id = '-1';\n $skip_bookings = ' AND bk.booking_id <>' .$my_booking_id . ' ';\n } else { $skip_bookings = ''; }\n\n if ($approved == 'all')\n $sql_req = \"SELECT DISTINCT dt.booking_date\n\n FROM {$wpdb->prefix}bookingdates as dt\n\n INNER JOIN {$wpdb->prefix}booking as bk\n\n ON bk.booking_id = dt.booking_id\n\n WHERE dt.booking_date >= CURDATE() AND bk.booking_type IN ($bk_type) \".$skip_bookings.\"\n\n ORDER BY dt.booking_date\";\n\n else\n $sql_req = \"SELECT DISTINCT dt.booking_date\n\n FROM {$wpdb->prefix}bookingdates as dt\n\n INNER JOIN {$wpdb->prefix}booking as bk\n\n ON bk.booking_id = dt.booking_id\n\n WHERE dt.approved = $approved AND dt.booking_date >= CURDATE() AND bk.booking_type IN ($bk_type) \".$skip_bookings.\"\n\n ORDER BY dt.booking_date\" ;\n//debuge($sql_req);\n return $sql_req;\n }", "title": "" }, { "docid": "79c80dd5b1bb583305b4de8b1790d726", "score": "0.55891895", "text": "public function processEventBooking($data)\n\t{\n\t\t$now = Carbon::now()->startOfDay();\n\t\t$eventDetail = $this->eventService->getEventById($data['event_id']);\n\t\t$eventStartDateTime = Carbon::parse($eventDetail->start_date_time)->startOfDay();\n\t\t\n\t\t// restricting user to book when booking got exceeded\n\t\t$eventBookings = $this->eventBookingRepository->getEventBookingById($data['event_id']);\n\t\tif (count($eventBookings) >= $eventDetail->max_allowed_bookings) {\n\t\t\treturn ['status' => 422, 'message' => 'Booking has been exceeded.'];\n\t\t}\n\n\t\t// restricting user to book if event has already started\n\t\tif ($now->gt($eventStartDateTime)) {\n\t\t\treturn ['status' => 422, 'message' => 'Event has already started.'];\n\t\t}\n\n\t\t// restricting user to book when advance booking is opened\n\t\t$daysLeftForEvent = $now->diffInDays($eventStartDateTime);\n\t\tif ($daysLeftForEvent >= $eventDetail->advance_booking_min_days) {\n\t\t\treturn ['status' => 422, 'message' => 'Pre booking is not opened yet.'];\n\t\t}\n\n\t\t// restricting user to book before event starts (as per value set in db)\n\t\t$minutesLeftForEvent = Carbon::now()->diffInMinutes(Carbon::parse($eventDetail->start_date_time));\n\t\tif ($minutesLeftForEvent <= $eventDetail->can_be_booked_before_event_starts_in_mins) {\n\t\t\treturn ['status' => 422, 'message' => 'Booking has been closed.'];\n\t\t}\n\n\t\t// restricting user to book before if there is no available slots\n\t\t$isSlotDisabled = true;\n\t\t$requestSlotStartTime = Carbon::parse($data['slot_start_time']);\n\t\t$eventScheduleDayAvailability = EventScheduleAvailability::where('event_schedule_day_id', $data['event_schedule_day_id'])->select('start_time', 'end_time')->get();\n\t\t\n\t\tforeach ($eventScheduleDayAvailability as $key => $value) {\n\t\t\t$slotStartTime = Carbon::parse($value['start_time']);\n\t\t\t$slotEndTime = Carbon::parse($value['end_time']);\n\t\t\tif ($requestSlotStartTime->between($slotStartTime, $slotEndTime)) {\n\t\t\t\t$isSlotDisabled = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif ($isSlotDisabled) {\n\t\t\treturn ['status' => 422, 'message' => 'No available slots.'];\n\t\t}\n\n\t\t// creating event booking\n\t\t$this->eventBookingRepository->createBooking($data);\n\t\t\n\t\treturn ['status' => 200, 'message' => 'Booking has been created successfully.'];\n\t}", "title": "" }, { "docid": "91faefa983c5d026cdcd8251785f5d41", "score": "0.5588744", "text": "public function create()\n\t{\n return View::make('system.Booking.add');\n\t}", "title": "" }, { "docid": "dcd2c459db8840e04d2007257d92a406", "score": "0.5588728", "text": "function getBooking($book_ref)\n\t{\n\t\t$sql = \"SELECT *, \"; \n\t\t$sql .= \"DATE_FORMAT(checkin, '%e %M %Y') AS checkin_show, \";\n\t\t$sql .= \"DATE_FORMAT(checkout, '%e %M %Y') AS checkout_show, \";\n\t\t$sql .= \"(TO_DAYS(checkout) - TO_DAYS(checkin)) AS nights, \";\n\t\t$sql .= \"DATE_FORMAT(book_date, '%e %M %Y') AS book_date_show, \";\n\t\t$sql .= \"DATE_FORMAT(issuing_date, '%e %M %Y') AS issuing_date_show \";\n\t\t$sql .= \"FROM booking \";\n\t\t$sql .= \"LEFT JOIN hotel ON booking.hotel_sec = hotel.hotel_sec \";\n\t\t$sql .= \"WHERE book_ref = '\".$book_ref.\"' \";\n\t\t$query = mysql_query($sql) or die(\"SQL : \".$sql.\"<br>ERROR : \". mysql_error()); \n\t\treturn mysql_fetch_array($query);\t\n\t}", "title": "" }, { "docid": "ab51ae570019846884966883cd3a82d0", "score": "0.55874884", "text": "function procBook() {\n global $session, $database;\n\n /* Calculate total number of seats required */\n $numseats = $_SESSION['flightnumadult'] + $_SESSION['flightnumchild'];\n\n /* Check flight availability */\n $avail = $database->checkAvailability($_SESSION['flightorigin'],\n $_SESSION['flightdest'],\n $_SESSION['flightdepdate'],\n $numseats);\n\n /* Query failed, */\n if ($avail == 2) {\n $_SESSION['booksuccess'] = false;\n header(\"Location: main.php\");\n }\n /* Flight full */ else if ($avail == 1) {\n $_SESSION['booksuccess'] = false;\n header(\"Location: book.php\");\n }\n /* Flight available, */ else {\n $_SESSION['booksuccess'] = true;\n header(\"Location: book.php\");\n\n /* Calculate total price of all seats */\n $_SESSION['price'] = $database->calcPrice($_SESSION['flightorigin'], $_SESSION['flightdest']);\n }\n }", "title": "" }, { "docid": "816fbb1f6e8012ed50b000f3d1bfd94a", "score": "0.55861807", "text": "public function setBooking($booking){ // insert and new booking\n $this->connect();\n $sql = \"INSERT INTO booking_details (`booking_guest_name`, `booking_guest_surname`, `booking_guests_number` ,\";\n $sql .=\" `guest_tel_number`, `booking_check_in`, `booking_check_out`, `booking_cost`, \";\n $sql .=\" `booking_deposit`, `booking_commission`, `booking_source`, `booking_asset_id`, `guest_email`, `booking_notes` ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )\";\n $this->execute($sql , [$booking->booking_guest_name , $booking->booking_guest_surname , $booking->booking_guests_number,\n $booking->guest_tel_number , $booking->booking_check_in , $booking->booking_check_out ,\n $booking->booking_cost , $booking->booking_deposit , $booking->booking_commission ,\n $booking->booking_source , $booking->booking_asset_id ,$booking->guest_email , $booking->booking_notes]);\n\n }", "title": "" }, { "docid": "c930213a5a61e7a8036b2ff7e183fcfd", "score": "0.5585493", "text": "function create_reservation() {\n\t\t// PRECONDITION: handset_id, party_size, patron_name must be specified\n\t\tif (empty($_REQUEST['handset_id'])) die(\"ERROR: handset_id required\");\n\t\tif (empty($_REQUEST['party_size'])) die(\"ERROR: party_size required\");\n\t\tif (empty($_REQUEST['patron_name'])) die(\"ERROR: patron_name required\");\n\t\t\n\t\t// OPTIONAL PRECONDITION: reservation_time specifies a reservation, not a walk-in.\n\t\t// NOTE: reservation_time MUST be in the following format: \"YYYY-MM-DD HH:MM:SS\"\n\t\t//\t(checking this will be reserved to the database though, as it is more efficient)\n\t\t$RESERVATION_TIME = NULL;\n\t\tif (!isset($_REQUEST['reservation_time'])) $RESERVATION_TIME = $_REQUEST['reservation_time'];\n\t\t\n\t\t// Connect to the database, set the local variables\n\t\t$DB = get_pagr_db_connection();\n\t\t$HANDSET_ID = (int)$_REQUEST['handset_id'];\n\t\t$PATRON_NAME = $_REQUEST['patron_name'];\n\t\t$PARTY_SIZE = (int)$_REQUEST['party_size'];\n\t\t\n\t\t// Simple injection attack prevention; by removing a semicolon, you can\n\t\t// prevent a SQL injection attack by creating a string that is not\n\t\t// SQL-compliant and will force a MySQL error.\n\t\t$HANDSET_ID = str_replace(\";\", \"\", $HANDSET_ID);\n\t\tif (!empty($RESERVATION_TIME)) $RESERVATION_TIME = str_replace(\";\", \"\", $RESERVATION_TIME);\n\t\t\n\t\t// Run the query and fetch the results\n\t\t$RESULT = $DB->query(\"SELECT count(*) FROM patrons_t WHERE android_id = '$HANDSET_ID'\");\n\t\t$EXISTS = $RESULT->fetch_row()[0];\n\t\t\n\t\t// If the one result (which is a count(*)) is 0 and a $RESERVATION_TIME has been specified, insert a new reservation.\n\t\tif ($EXISTS == 0 && !empty($RESERVATION_TIME)) {\n\t\t\t$RESULT = $DB->query(\"INSERT INTO patrons_t(name, party_size, reservation_time, android_id) VALUES ('$PATRON_NAME', $PARTY_SIZE, '$RESERVATION_TIME', '$HANDSET_ID';)\");\n\t\t\t\n\t\t\tif ($RESULT === false) {\n\t\t\t\t$ERROR = $DB->error;\n\t\t\t\techo \"ERROR: $ERROR\";\n\t\t\t}\n\t\t\t\n\t\t\t// ...and then return the result.\n\t\t\t$RESULT = $DB->query(\"SELECT patron_id FROM patrons_t WHERE android_id = '$HANDSET_ID';\");\n\t\t\techo $RESULT->fetch_row()[0];\n\t\t}\n\t\t// If the one result is 0 and no $RESERVATION_TIME, then it's just a walk-in customer.\n\t\telse if ($EXISTS == 0) {\n\t\t\t$RESULT = $DB->query(\"INSERT INTO patrons_t(name, party_size, android_id) VALUES ('$PATRON_NAME', $PARTY_SIZE, '$HANDSET_ID');\");\n\t\t\t\n\t\t\tif ($RESULT === false) {\n\t\t\t\t$ERROR = $DB->error;\n\t\t\t\techo \"ERROR: $ERROR\";\n\t\t\t}\n\t\t\t\n\t\t\t// Return the walk-in's ID number.\n\t\t\t$RESULT = $DB->query(\"SELECT patron_id FROM patrons_t WHERE android_id = '$HANDSET_ID';\");\n\t\t\techo $RESULT->fetch_row()[0];\n\t\t}\n\t\telse die(\"ERROR: reservation exists\");\n\t}", "title": "" }, { "docid": "ec3dfdc6da2c0d6cc36a42f4fdfff1cc", "score": "0.55813545", "text": "function wpdev_get_booking_select_form($booking_select_form, $attr){ global $wpdb;\n\n if ( isset( $attr['nummonths'] ) ) { $my_boook_count = $attr['nummonths']; }\n else $my_boook_count = 1;\n\n if ( isset( $attr['type'] ) ) { $my_boook_type = $attr['type']; }\n\n if ( isset( $attr['form_type'] ) ) { $my_booking_form = $attr['form_type']; }\n else $my_booking_form = 'standard';\n\n if ( isset( $attr['selected_type'] ) ) { \n $selected_booking_resource = $attr['selected_type']; \n } else {\n $selected_booking_resource = '';\n }\n if ( isset($_GET['resource_id'] ) ) \n $selected_booking_resource = $_GET['resource_id'];\n \n \n if ( isset( $attr['label'] ) ) { $label = $attr['label']; }\n else $label = '';\n\n if ( isset( $attr['first_option_title'] ) ) { $first_option_title = $attr['first_option_title']; }\n else $first_option_title = __('Please Select' ,'booking');\n\n $first_option_title = apply_bk_filter('wpdev_check_for_active_language', $first_option_title );\n \n if (! empty($label))\n $booking_select_form .= '<label for=\"calendar_type\">'.$label.'</label>';\n \n $booking_select_form .= '<select name=\"active_booking_form\" onchange=\"jQuery(\\'.bk_forms\\').css(\\'display\\', \\'none\\');';\n $booking_select_form .= 'document.getElementById(\\'hided_booking_form\\' + this.value).style.display=\\'block\\';\" >';\n \n if ( ! empty($first_option_title) )\n $booking_select_form .= ' <option value=\"select\" ' . ( ( $selected_booking_resource == '' )?' selected=\"selected\" ':'' ) . '>' . $first_option_title . '</option> ';\n\n $my_selected_dates_without_calendar = ''; \n $start_month_calendar = false; \n $bk_otions=array();\n if ( isset( $attr['startmonth'] ) ) { // Set start month of calendar, fomrat: '2011-1'\n $start_month_calendar = explode( '-', $attr['startmonth'] );\n if ( (is_array($start_month_calendar)) && ( count($start_month_calendar) > 1) ) { }\n else $start_month_calendar = false;\n }\n if ( isset( $attr['options'] ) ) { $bk_otions = $attr['options']; }\n\n\n // Select the booking resources\n if ( ! empty($my_boook_type) ) $where = ' WHERE booking_type_id IN ('.$my_boook_type.') ' ;\n else $where = ' ';\n\n $or_sort = 'title_asc';\n if ( class_exists('wpdev_bk_biz_l')) $or_sort = 'prioritet';\n\n if (strpos($or_sort, '_asc') !== false) { // Order\n $or_sort = str_replace('_asc', '', $or_sort);\n $sql_order = \" ORDER BY \" .$or_sort .\" ASC \";\n } else $sql_order = \" ORDER BY \" .$or_sort .\" DESC \";\n\n if ( class_exists('wpdev_bk_biz_m'))\n $types_list = $wpdb->get_results( \"SELECT booking_type_id as id, title, default_form as form FROM {$wpdb->prefix}bookingtypes\" . $where . $sql_order);\n else\n $types_list = $wpdb->get_results( \"SELECT booking_type_id as id, title FROM {$wpdb->prefix}bookingtypes\" . $where . $sql_order);\n\n // Sort booking resources by order, which set in the \"type\" parameter of bookingselect shortcode.\n if ( ! empty($my_boook_type) ) {\n $br_data_array = array();\n foreach ( $types_list as $br_data ) {\n $br_data_array[ $br_data->id ] = $br_data;\n }\n $br_ordered_array = array();\n $br_order = explode(',', $my_boook_type);\n foreach ( $br_order as $br_id ) {\n if ( isset( $br_data_array[ $br_id ] ) ) {\n $br_ordered_array[] = $br_data_array[ $br_id ];\n }\n }\n $types_list = $br_ordered_array;\n }\n\n if ( ( empty($first_option_title) ) && empty( $selected_booking_resource) && (! empty($types_list)) ) {\n $selected_booking_resource = $types_list[0]->id;\n }\n \n foreach ($types_list as $tl) {\n if ( $selected_booking_resource == $tl->id ) \n $is_res_selected = ' selected=\"SELECTED\" ';\n else $is_res_selected = '';\n $bk_res_title = apply_bk_filter('wpdev_check_for_active_language', $tl->title );\n $booking_select_form .= ' <option '.$is_res_selected.' value=\"'.$tl->id.'\">'.$bk_res_title.'</option>';\n }\n $booking_select_form .= ' </select><br/><br/>';\n\n foreach ($types_list as $tl) {\n \n if ( $selected_booking_resource == $tl->id )\n $is_res_selected = 'display: block;';\n else $is_res_selected = 'display: none;';\n \n $booking_select_form .= ' <div class=\"bk_forms\" id=\"hided_booking_form'.$tl->id.'\" style=\"'.$is_res_selected.'\">';\n\n //$my_boook_type=1,$my_boook_count=1, $my_booking_form = 'standard', $my_selected_dates_without_calendar = '', $start_month_calendar = false\n if ( ( isset($tl->form) ) && ( ! isset( $attr['form_type'] ) ) )\n $booking_select_form .= apply_bk_filter('wpdevbk_get_booking_form', $tl->id , $my_boook_count, $tl->form, $my_selected_dates_without_calendar, $start_month_calendar, $bk_otions );\n else\n $booking_select_form .= apply_bk_filter('wpdevbk_get_booking_form', $tl->id , $my_boook_count, $my_booking_form, $my_selected_dates_without_calendar, $start_month_calendar, $bk_otions );\n\n $booking_select_form .= '</div>';\n }\n\n return $booking_select_form;\n }", "title": "" }, { "docid": "f67d14d1d3fd3be24570235e6491e8f2", "score": "0.5577804", "text": "public function addbooking_post(){\r\n\r\n\t\t$data['startdate']=$this->post('startdate')['formatted'];\r\n\t\t$data['enddate']=$this->post('enddate')['formatted'];\r\n\t\t$data['semstartdate']=$this->post('semstartdate')['formatted'];\r\n\t\t$data['semenddate']=$this->post('semenddate')['formatted'];\r\n\t\t$data['description']=$this->post('description');\r\n\t $this->getData('addbooking',$data);\t \t\r\n\t \r\n\t}", "title": "" }, { "docid": "f260722135b8051206d78dd04947080e", "score": "0.5575181", "text": "public function add_create_in_booking_menu() {\n $booking_page = 'edit.php?post_type=' . YITH_WCBK_Post_Types::$booking;\n\n add_submenu_page( $booking_page,\n __( 'Create Booking', 'yith-booking-for-woocommerce' ),\n __( 'Create Booking', 'yith-booking-for-woocommerce' ),\n 'yith_create_booking',\n 'create_booking',\n array( $this, 'output' )\n );\n }", "title": "" }, { "docid": "624d604928ff20bd68ffcbc5180c9ee3", "score": "0.5573706", "text": "function flight_voucher($app_reference, $booking_source='', $status='',$module='')\r\n{\r\n\treturn '<a href=\"'.flight_voucher_url($app_reference, $booking_source, $status,$module).'/show_voucher\" title=\"Voucher\" target=\"_blank\" class=\"btn btn-sm btn-primary\"><i class=\"far fa-ticket\"></i> </a>';\r\n}", "title": "" }, { "docid": "bea4d02e88cfcd046912b12c30343cef", "score": "0.55679643", "text": "public function definition()\n {\n $users = User::all();\n $rooms = Room::all();\n $timeslots = [];\n\n //Loop through next 7 days\n for($i = 0; $i < 7; $i++) {\n $day = today()->add($i, 'day');\n //Skip weekends\n if($day->isFriday() || $day->isSaturday()) {\n continue;\n }\n\n //First time slot is 7:30 AM\n $timeslot = $day->add(7, 'hours')->add(30, 'minutes');\n //Loop through 7:30 AM through 7:30 PM and add to $timeslots\n for($j = 0; $j < 12; $j++) {\n if($timeslot > now()) {\n array_push($timeslots, new Carbon($timeslot));\n }\n $timeslot = $timeslot->add(1, 'hour');\n }\n }\n\n\n return [\n 'booking_date' => $this->faker->dateTimeBetween('-1 week', 'now'),\n 'approved_date' => function (array $attributes) {\n return $this->faker->optional()->dateTimeBetween($attributes['booking_date'], 'now');\n },\n 'timeslot' => $this->faker->unique()->randomElement($timeslots),\n // 'timeslot' => $this->timeslots[$this->faker->unique()->numberBetween(0, 59)],\n 'room_id' => $this->faker->randomElement($rooms),\n 'user_id' => $this->faker->randomElement($users)\n ];\n }", "title": "" }, { "docid": "42189fe8def279d3938e64da426c05a7", "score": "0.55671096", "text": "public function newBooking(Model $customer, string $startsAt, string $endsAt): BookableBooking\n {\n $data = [\n 'starts_at' => (new Carbon($startsAt))->toDateTimeString(),\n 'ends_at' => (new Carbon($endsAt))->toDateTimeString(),\n ];\n \n $booking = $this->bookings()->make($data)->customer()->associate($customer);\n\n if ($booking->save()) return $booking;\n\n throw new ApiException('Não foi possivel realizar o agendamento', 400);\n }", "title": "" }, { "docid": "4b888c40e18d08cc7fd4dd14ae35af3a", "score": "0.55663615", "text": "public function bookingList()\n {\n $booking_lists = BookingSlot::with('user')->where('student_id', '!=' , 0)->where('slote_date', date('Y-m-d'))->get();\n\n\n }", "title": "" }, { "docid": "5a89f856c3281652d116704845cc6a4e", "score": "0.556053", "text": "public function create()\n {\n $users = DB::table('users')->get()->pluck('name', 'id')->prepend('None', '0');\n $rooms = Room::get()->pluck('number', 'id')->prepend('None');\n $booking = new Booking;\n\n return view('bookings.create', compact(['users', 'rooms', 'booking']));\n }", "title": "" }, { "docid": "8f758b67ef47e888c6ce6ebc5aaf2954", "score": "0.55596745", "text": "function smarty_function_reservation_link($params, &$smarty) {\n\n if (empty($params['date']) || empty($params['time']) ||\n\t\t\tempty($params['schedule']) || empty($params['user'])) {\n\t\t\t$smarty->trigger_error(\"make_timestamp: missing parameter\");\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\t$date = $params['date'];\n\t\t\t$time = $params['time'];\n\t\t\t$schedule = $params['schedule'];\n\t\t\t$user =& $params['user'];\n }\n\n\t\tif ($user->isAdmin()) {\n\t\t\treturn \"<a href=\\\"#\\\" onclick=\\\"return adminMakeReservation(\".\n\t\t\t\t\"'{$date}','{$time}','{$schedule}');\\\">Available</a>\";\n\t\t}\n\t\telse {\n\t\t\treturn \"<a href=\\\"reservation.php?action=make&amp;date={$date}&amp;\".\n\t\t\t\t\"time={$time}&amp;schedule={$schedule}\\\">Available</a>\";\n\t\t}\n}", "title": "" }, { "docid": "68b3c15e085cf6c996adf89d9bfba9cd", "score": "0.5558596", "text": "public function facialBookingCalendar(){\n\t\t$headerdata\t= $this->getheaderdata();\n $sId \t\t= $headerdata->userid;\n\t\t\n\t\t$timeZone = ($this->input->post('timezone'))?$this->input->post('timezone'):'Asia/kolkata';\n\t\t$specailistId = ($this->input->post('specialistId'))?$this->input->post('specialistId'):$sId;\n\t\t$bookingData = $this->Special_model->facial_booking_calendar($specailistId,$timeZone);\n\t\t$this->response($bookingData);//convert array to JSON\n\t}", "title": "" } ]
38200c41deb56ded4078942a29e0d8e0
Get this log as a string.
[ { "docid": "21aba25a8043e4688e4d99fb6fec3fc2", "score": "0.0", "text": "public function dump()\n {\n return $this->logger->dump();\n }", "title": "" } ]
[ { "docid": "7597d49eb3d9536a5f48585f7b4dfd60", "score": "0.812443", "text": "public function getLog(): string\n {\n return $this->log;\n }", "title": "" }, { "docid": "a897df922f11f3e5421612578ae6af7d", "score": "0.8120475", "text": "public function getLog(): string\n {\n\n return $this->log;\n }", "title": "" }, { "docid": "0b0398fb15ec896eca24649e70caf06a", "score": "0.7896343", "text": "public function GetLog()\n {\n return $this->strLog;\n }", "title": "" }, { "docid": "81d4c09e1e01841f46e20a18427cd63f", "score": "0.71820897", "text": "public function getLog()\n {\n $tmp = $this->log;\n $this->log = '';\n return $tmp;\n }", "title": "" }, { "docid": "d1339408f9b4729c084f531135f09244", "score": "0.7162171", "text": "public function logToText()\n\t{\n\t return implode(\"\\n\",$this->logLines);\n\t}", "title": "" }, { "docid": "9baef7ec54b841c09d0652b926243eb8", "score": "0.71261907", "text": "public function toString() {\n return sprintf(\n '%s(%s @ %s, PID %d) {%s}%s',\n $this->getClassName(),\n LogLevel::nameOf($this->level),\n date('r', $this->timestamp),\n $this->processId,\n NULL === ($context= $this->getContext()) ? '' : ' '.$context->toString(),\n xp::stringOf($this->arguments)\n );\n }", "title": "" }, { "docid": "211f50c0c5dc116640993363e854c7ec", "score": "0.7061029", "text": "public function get_log() {\r\n\t\treturn $this->log;\r\n\t}", "title": "" }, { "docid": "fde303a6677e3ace055e56c7830e2b38", "score": "0.6957731", "text": "public function toString()\n {\n return $this->get();\n }", "title": "" }, { "docid": "3664913e39169523dd4ac54a8a665447", "score": "0.6941516", "text": "public function getLog()\n {\n return $this->log;\n }", "title": "" }, { "docid": "3664913e39169523dd4ac54a8a665447", "score": "0.6941516", "text": "public function getLog()\n {\n return $this->log;\n }", "title": "" }, { "docid": "3664913e39169523dd4ac54a8a665447", "score": "0.6941516", "text": "public function getLog()\n {\n return $this->log;\n }", "title": "" }, { "docid": "e973abe08959a20ca85b3d33b4099a5d", "score": "0.6923738", "text": "protected function getLogContent(): string\n {\n return $this->logFile->getContent();\n }", "title": "" }, { "docid": "eedcf86fc1e014cc0ef66120e55a9419", "score": "0.69099766", "text": "public function GetLog()\n\t{\n\t\treturn $this->aLog;\n\t}", "title": "" }, { "docid": "62ec719ac0ebe190c2f43c7cd967ccca", "score": "0.68984467", "text": "public function to_string() {\r\n\t\treturn (string)$this;\r\n\t}", "title": "" }, { "docid": "7433be21b0bd33b7d493dbafc9c0bc5a", "score": "0.6881871", "text": "public function getLog()\n\t{\n\t\treturn $this->get(self::LOG);\n\t}", "title": "" }, { "docid": "7209b2798092dcbe0b856115d343a96c", "score": "0.6872873", "text": "public function toString() {\n\t\treturn $this->format();\n\t}", "title": "" }, { "docid": "b684bae8314083df9f1413d5efd3e510", "score": "0.68614066", "text": "public function getLog(){\n\t\treturn $this->log;\n\t}", "title": "" }, { "docid": "b684bae8314083df9f1413d5efd3e510", "score": "0.68614066", "text": "public function getLog(){\n\t\treturn $this->log;\n\t}", "title": "" }, { "docid": "e88d97ba130fceb11c79bac88de7dd0a", "score": "0.68560064", "text": "public function toString()\n {\n return $this->getLoggerName();\n }", "title": "" }, { "docid": "e10851ffcda3f15b56068ab623ff51d5", "score": "0.6855469", "text": "public function getLog() {\n return $this->log;\n }", "title": "" }, { "docid": "e9e3f3205513effcc451f605212d6b74", "score": "0.68280375", "text": "public function __toString()\n\t{\n\t\treturn (string) parent::format(self::$format);\n\t}", "title": "" }, { "docid": "281975a80fee9cb5bfcc066a30dc398a", "score": "0.68039024", "text": "public function getToString()\n {\n return $this->toString();\n }", "title": "" }, { "docid": "92883a44b663f9a78d6fa5e4499b5c3f", "score": "0.68007064", "text": "public function getLog(): string\n {\n if (! $this->filesystem->exists($this->pluginLogPath)) {\n return '';\n }\n\n $log = file_get_contents($this->pluginLogPath);\n\n return is_string($log) ? $log : '';\n }", "title": "" }, { "docid": "e94c138114fd54fbdc372e48402a9dce", "score": "0.67929447", "text": "public function getLog() {\n\t\treturn $this->_log;\n\t}", "title": "" }, { "docid": "26683c5481b5a32d73a2d2566fc87f81", "score": "0.6771884", "text": "public function __toString()\n {\n return $this->message();\n }", "title": "" }, { "docid": "26683c5481b5a32d73a2d2566fc87f81", "score": "0.6771884", "text": "public function __toString()\n {\n return $this->message();\n }", "title": "" }, { "docid": "afddd169a752d275597b85e6c5ffb610", "score": "0.67631453", "text": "public function __toString()/*: string*/\n {\n return 'log';\n }", "title": "" }, { "docid": "96a57eb2fcd8bc0a8075fc88ac0edaa3", "score": "0.67482334", "text": "public function __toString()\n {\n return $this->message;\n }", "title": "" }, { "docid": "5f31d043f430f9ee5f991b9610441d18", "score": "0.6738477", "text": "public static function get_log()\n {\n return self::$m_log;\n }", "title": "" }, { "docid": "e2c584462a3feb72fbbc2d7667091667", "score": "0.6720043", "text": "public function __toString()\n {\n return $this->getString();\n }", "title": "" }, { "docid": "18d2507aa259a14ecebc52857b07e2b0", "score": "0.67135537", "text": "public function __toString()\r\n {\r\n return $this->message;\r\n }", "title": "" }, { "docid": "dbac1b196b27234a441fb9c7b3c6520a", "score": "0.669481", "text": "public function __toString() {\n try {\n return print_r($this, true);\n } catch (Exception $e) {\n return \"An error occured: \" . $e->getMessage();\n }\n }", "title": "" }, { "docid": "368b3d22c52d0b3b3456b1a689ad93b6", "score": "0.66797376", "text": "public function toString()\n {\n return NString::get($this->string());\n }", "title": "" }, { "docid": "96389c0d784e092a3e8dcb46d66ade6e", "score": "0.66522753", "text": "public function __toString()\n {\n return $this->getString();\n }", "title": "" }, { "docid": "96389c0d784e092a3e8dcb46d66ade6e", "score": "0.66522753", "text": "public function __toString()\n {\n return $this->getString();\n }", "title": "" }, { "docid": "59097c566a5bdc9f6e7279da452c9bd2", "score": "0.6642793", "text": "public function toString(): string\n\t{\n\t\treturn $this->__toString();\n\t}", "title": "" }, { "docid": "8d4a536fab94194c1ff7ca57ad9f803a", "score": "0.6632636", "text": "public function toString() {\n return ( new Base_String() )->init( $this->__toString() );\n }", "title": "" }, { "docid": "bc391a1e8446b0178f134b13f9d24be5", "score": "0.6631479", "text": "public function __toString()\n {\n return (string)$this->_instance;\n }", "title": "" }, { "docid": "8d0d4b06892e1588f6fa45042394d11f", "score": "0.6606923", "text": "public function __toString()\n {\n return $this->getAsString();\n }", "title": "" }, { "docid": "5df549458f284170cdee01855db3b8d8", "score": "0.65897405", "text": "public function __toString()\n\t{\n\t\treturn get_class($this).': '.$this->message;\n\t}", "title": "" }, { "docid": "45fe44e187433a1ec8672b7c684c7b50", "score": "0.65756667", "text": "public function getLogInfo()\n {\n return $this->log_info;\n }", "title": "" }, { "docid": "722c269dd52773bebf3847760064d14c", "score": "0.6556369", "text": "public function __toString()\n {\n return $this->format();\n }", "title": "" }, { "docid": "92e6d7bbf010b2ab72a279bec238cf41", "score": "0.65499747", "text": "public function __toString()\n {\n return (string)$this->dataStore->get($this->key);\n }", "title": "" }, { "docid": "eb569d070a05c7b90b3f455b1a5e3c13", "score": "0.6543248", "text": "public function getFullMessage(): string\n {\n return \\DMK\\Mklog\\Factory::getDataConverterUtility()->encode(\n \\DMK\\Mklog\\Factory::getEntryDataParserUtility($this)->getShortenedExternalExtraData()\n );\n }", "title": "" }, { "docid": "15ff02a5404e64daa700e6dc0c307bc8", "score": "0.6539283", "text": "public function __toString() {\n try {\n return (string) $this->getFile();\n } catch (\\Exception $e) {\n error_log($e->getMessage());\n error_log($e->getTraceAsString());\n return '';\n }\n }", "title": "" }, { "docid": "02e2bd57d8cd2981d9616b8a424ca2a1", "score": "0.65380085", "text": "public function toString(){\n\t\treturn $this->__toString();\n\t}", "title": "" }, { "docid": "748e4d29a2488ee74c43f4595f17ea5e", "score": "0.6535603", "text": "public function __toString() {\n return $this->get();\n }", "title": "" }, { "docid": "1fa00dbb49583f2c4923b6bae4b6eac2", "score": "0.65309554", "text": "public function __toString()\n {\n return $this->format;\n }", "title": "" }, { "docid": "d98e6fa9e89dacbdc627c64df47e1c7a", "score": "0.6527077", "text": "public function __toString()\n {\n return (string) $this->build();\n }", "title": "" }, { "docid": "3f112d19b2b2c893facf4fdacc1a9746", "score": "0.6525086", "text": "public function __toString() {\n return get_class($this) . \" : '{$this->message}' [{$this->_category}] in {$this->file} ({$this->line})\\n\" . \"{$this->getTraceAsString()}\";\n }", "title": "" }, { "docid": "5d9b24c9792e6a8618048a5e31229b36", "score": "0.65139884", "text": "public function __toString(): string\n {\n return var_export($this, true);\n }", "title": "" }, { "docid": "581b3ed7a7c7cfb3c409dae757f579a5", "score": "0.6493964", "text": "public function __toString()\n {\n return $this->str;\n }", "title": "" }, { "docid": "161a8d3ffe9494b8cf6bfbd3f3b66dd1", "score": "0.64902806", "text": "function to_string()\n\t{\n\t\treturn $this->exact_string;\n\t}", "title": "" }, { "docid": "cb9c2f2fd48dbfcb3aa2875908f9bd92", "score": "0.64881456", "text": "public function __toString()\n {\n return $this->String;\n }", "title": "" }, { "docid": "c3c7243723969aa6e052227b2ae372bd", "score": "0.6486847", "text": "final public function __toString():string\n {\n return Utility::toString($this);\n }", "title": "" }, { "docid": "6c0e02544150f3343ce31c875e0c9c84", "score": "0.6477397", "text": "public function getHTTPLog()\n {\n return $this->get('HTTPLog');\n }", "title": "" }, { "docid": "6c0e02544150f3343ce31c875e0c9c84", "score": "0.6477397", "text": "public function getHTTPLog()\n {\n return $this->get('HTTPLog');\n }", "title": "" }, { "docid": "6c0e02544150f3343ce31c875e0c9c84", "score": "0.6477397", "text": "public function getHTTPLog()\n {\n return $this->get('HTTPLog');\n }", "title": "" }, { "docid": "6c0e02544150f3343ce31c875e0c9c84", "score": "0.6477397", "text": "public function getHTTPLog()\n {\n return $this->get('HTTPLog');\n }", "title": "" }, { "docid": "a58807d0a3c7bec431420cb0b2b764e3", "score": "0.64762115", "text": "public function __toString()\n\t{\n\t\treturn $this->format();\n\t}", "title": "" }, { "docid": "e0ec25ff7635089faaad9c72ea0e3879", "score": "0.64724296", "text": "public function toString()\n\t{\n\t\treturn stream_get_contents(\n\t\t\t$this->_stream,\n\t\t\t$this->_length ? $this->_length : -1\n\t\t\t);\n\t}", "title": "" }, { "docid": "c1b6e2ba435f32f7db75d1723c5f3ae5", "score": "0.64697134", "text": "public function __toString()\n {\n return (string)$this->getValue();\n }", "title": "" }, { "docid": "93db38905ef894816158b639e267ec32", "score": "0.64687", "text": "public function __toString() {\n\t\t\treturn (string) serialize($this);\n\t\t}", "title": "" }, { "docid": "2680824bab9326a6a7dfe7ab81a28def", "score": "0.6464925", "text": "public function __toString()\n\t{\n\n\t\treturn $this->asString();\n\t\n\t}", "title": "" }, { "docid": "1e0c051a0ed5754b8ffae6194378ad88", "score": "0.64512503", "text": "function toString(){\n\t\treturn join(\"\",$this->_Buffer);\n\t}", "title": "" }, { "docid": "41a9c62f2cce30d751ac165330550ac9", "score": "0.64504105", "text": "public function __toString(): string\n {\n return $this->serialize();\n }", "title": "" }, { "docid": "25f69e5baacd2d30ce7112a704d60e8b", "score": "0.64375144", "text": "function getLog()\n {\n return self::$_log;\n }", "title": "" }, { "docid": "2033b9f2ddd384b5d15878194798ed79", "score": "0.64317626", "text": "public function __toString()\n {\n return $this->string;\n }", "title": "" }, { "docid": "1af319aee2e3785dee6c1da884f4728a", "score": "0.6428217", "text": "public function __toString()\n {\n return sprintf(\n '%s-%s-%s-%s',\n self::VERSION,\n $this->getTraceId(),\n $this->getParentId(),\n $this->getTraceFlags()\n );\n }", "title": "" }, { "docid": "2107d48d9e36e615df1b9d379d1349d5", "score": "0.64257985", "text": "public function toString(): string\n {\n return $this->data->toString();\n }", "title": "" }, { "docid": "5fbaf4d6e12a160a37425a6958d4b0ac", "score": "0.64210063", "text": "public function __toString(): string\n {\n return $this->toString();\n }", "title": "" }, { "docid": "1c3567ddf112fcd851cbf9c7cbedfe97", "score": "0.6419111", "text": "public function __toString()\n {\n return $this->get();\n }", "title": "" }, { "docid": "1c3567ddf112fcd851cbf9c7cbedfe97", "score": "0.6419111", "text": "public function __toString()\n {\n return $this->get();\n }", "title": "" }, { "docid": "1c3567ddf112fcd851cbf9c7cbedfe97", "score": "0.6419111", "text": "public function __toString()\n {\n return $this->get();\n }", "title": "" }, { "docid": "1c3567ddf112fcd851cbf9c7cbedfe97", "score": "0.6419111", "text": "public function __toString()\n {\n return $this->get();\n }", "title": "" }, { "docid": "1c3567ddf112fcd851cbf9c7cbedfe97", "score": "0.6419111", "text": "public function __toString()\n {\n return $this->get();\n }", "title": "" }, { "docid": "f13a60e183208bdd0b9dd4c2b358b9e2", "score": "0.6414221", "text": "public function __toString(): string\n {\n $message = $this->getStatusLine() . PHP_EOL;\n\n foreach ($this->headers as $header => $value) {\n $message .= sprintf(\"%s: %s\\n\", $header, $this->getHeaderLine($header));\n }\n\n $body = (string)$this->getBody();\n\n if ($body) {\n $message .= PHP_EOL;\n $message .= $body;\n\n }\n\n return $message;\n }", "title": "" }, { "docid": "43573a1cde0558211f2095f12142b4a3", "score": "0.6406444", "text": "public function __toString()\n {\n return (string) $this->getValue();\n }", "title": "" }, { "docid": "7e98473a2e7fa166dad1961b6e36c5f0", "score": "0.6400245", "text": "public function __toString()\n {\n return\n // Class: Message\n get_class($this) . ': ' .\n $this->getMessage() . \"\\n\" .\n\n // Trace: Macro\n \"Macro Stack Trace:\\n\" .\n $this->getRuntimeTraceAsString() .\n\n // Trace: PHP\n \"Stack trace:\\n\" .\n $this->getTraceAsString();\n }", "title": "" }, { "docid": "56ca01ccc786d1711f3486a1eccc8ef7", "score": "0.63955146", "text": "public function __toString()\n {\n return $this->getFull(true);\n }", "title": "" }, { "docid": "239a7d9dab7623010d64f679b1fc844a", "score": "0.63953924", "text": "public function __toString(): string\n {\n return $this->filePath . ':' . $this->line;\n }", "title": "" }, { "docid": "a576e31c0302275433ca02654bfce83e", "score": "0.63950926", "text": "public function __toString() : string\n {\n return $this->format($this->default_format);\n }", "title": "" }, { "docid": "ba9cfd64caf72394ec1a7d882056beb0", "score": "0.6384843", "text": "public function __toString() {\n return $this->isNull ? '' : $this->format(RO::$DateFormat);\n }", "title": "" }, { "docid": "6ec52e853cbedcafc5a8463e8c7de6be", "score": "0.6383128", "text": "public function __toString() {\n return $this->date->format($this->format);\n }", "title": "" }, { "docid": "c8811b31e4dff7a7f31fbf3327b9f466", "score": "0.6380036", "text": "public function __toString() : string\n {\n return $this->build();\n }", "title": "" }, { "docid": "a7434d9f556c5297a1f81e9192f06d82", "score": "0.6377146", "text": "public function __toString()\n {\n return $this->format('l');\n }", "title": "" }, { "docid": "84ec0913b978c088a35c05190a787c90", "score": "0.6375709", "text": "public function __toString()\n {\n return $this->format(self::$defaultFormat);\n }", "title": "" }, { "docid": "47cc8e30712c58b1181b643c1f434a98", "score": "0.63738364", "text": "public function __toString(){\n\t\treturn \"<br>ID : \" . $this->getId() . \"<br>Filename : \" . $this->getFilename() . \"<br>Id Activity : \" . $this->getIdactivity() . \"<br>Time : \" + $this->getTime();\n\t}", "title": "" }, { "docid": "400159a6d4c0255a9b6d82ff8d64f754", "score": "0.6356922", "text": "public function __toString()\n {\n return (string) $this->data();\n }", "title": "" }, { "docid": "5cb58675d9776c806e516d19dddccc20", "score": "0.63519734", "text": "public function __toString()\n\t{\n\t\treturn (string) $this->stat[\"name\"];\n\t}", "title": "" }, { "docid": "9ccedd745ee260451edd8f4acc4213a7", "score": "0.6350374", "text": "public function to_string()\n {\n return $this->exact_string;\n }", "title": "" }, { "docid": "fa04ddbf58a868ce01faf54583eb632b", "score": "0.6346677", "text": "public function to_s ()\n\t{\n\t\treturn $this->string;\n\t}", "title": "" }, { "docid": "a29015f694296e59b6edffb9562273e4", "score": "0.6345021", "text": "public function output_log() {\n return '<ul>' . implode(\"\\n\", $this->log) . '</ul>';\n }", "title": "" }, { "docid": "5caa2b642d44baaac7ef6fe7daa286ac", "score": "0.634305", "text": "public function toString(): string\n {\n return json_encode($this);\n }", "title": "" }, { "docid": "a36e977c6b0a7e02dee5acf48d2ebb03", "score": "0.63401806", "text": "public function __toString(): string\n {\n return (string) $this->getValue();\n }", "title": "" }, { "docid": "548bf4a2b19b4e072f380976fd8a98a0", "score": "0.63354135", "text": "public function __toString()\n {\n return $this->Message\n . ($this->Source ? \": <br /><code>\".$this->Source.\"</code>\" : \"\")\n . \"<br />in file \"\n . $this->File\n . \" at line \"\n . $this->Line;\n }", "title": "" }, { "docid": "617f388053a361282db7798d6657886f", "score": "0.63342154", "text": "public function __toString() {\n return $this->toString();\n }", "title": "" }, { "docid": "617f388053a361282db7798d6657886f", "score": "0.63342154", "text": "public function __toString() {\n return $this->toString();\n }", "title": "" }, { "docid": "ccd58e3ca1163d0fb554ace00318dfd9", "score": "0.6332333", "text": "public function __toString() {\r\n try {\r\n return $this->ToString();\r\n } catch (Exception $ex) {\r\n trigger_error($ex);\r\n }\r\n }", "title": "" }, { "docid": "d90a31b638d5859ffb84d5fa67862439", "score": "0.63319427", "text": "public function __toString()\n {\n // __toString cannot throw exception\n // use trigger_error to bypass this limitation\n try {\n return $this->toString();\n } catch (\\Exception $e) {\n ErrorHandler::convertExceptionToError($e);\n return '';\n }\n }", "title": "" }, { "docid": "707180c47cf9afe462bdcc79aaf8255e", "score": "0.63287616", "text": "public function __toString()\n {\n $utility = StringUtils::getWrapper();\n\n if ($utility->strlen($this->value) <= $this->length) {\n return $this->value;\n }\n\n return $utility->substr($this->value, 0, ($this->length - 3)) . '...';\n }", "title": "" } ]
d03b388b5c2bcd743860d5a3096e1c5d
Execute the console command.
[ { "docid": "8e31880663b275a1efc8ed3400f0e718", "score": "0.0", "text": "public function handle()\n {\n try {\n $vehicles = File::get(scdata('v2/ships.json'));\n } catch (FileNotFoundException $e) {\n $this->error('ships.json not found. Did you clone scunpacked?');\n return Command::FAILURE;\n }\n\n try {\n $vehicles = json_decode($vehicles, true, 512, JSON_THROW_ON_ERROR);\n } catch (JsonException $e) {\n $this->error($e->getMessage());\n\n return Command::FAILURE;\n }\n\n collect($vehicles)\n ->tap(function (Collection $chunks) {\n $this->info(sprintf(\n 'Importing %d vehicles in chunks of 5 (%d).',\n $chunks->count(),\n (int)($chunks->count() / 5)\n ));\n })\n ->chunk(5)\n ->tap(function (Collection $chunks) {\n $this->createProgressBar($chunks->count());\n })\n ->each(function (Collection $chunk) {\n $this->bar->advance();\n $chunk\n ->filter(function (array $vehicle) {\n return $this->isNotIgnoredClass($vehicle['ClassName']);\n })\n ->map(function (array $vehicle) {\n $vehicle['filePathV2'] = scdata(sprintf(\n 'v2/ships/%s-raw.json',\n strtolower($vehicle['ClassName'])\n ));\n\n $vehicle['filePath'] = scdata(sprintf(\n 'ships/%s.json',\n strtolower($vehicle['ClassName'])\n ));\n\n return $vehicle;\n })->each(function (array $vehicle) {\n Vehicle::dispatch($vehicle);\n });\n });\n\n return Command::SUCCESS;\n }", "title": "" } ]
[ { "docid": "5d795f6474ff88999265ff67d4fef650", "score": "0.6469962", "text": "public function handle()\n {\n\t\t$this->info('league fetching ..');\n $object = new XmlFeed();\n\t\t$object->fetchLeague($this->argument('sports_id'));\n\t\t$this->info('league saved');\n }", "title": "" }, { "docid": "7cbef0a2d7e36a73643977239edd5194", "score": "0.64640796", "text": "public function handle()\n {\n // Get the arguments.\n $arguments = $this->argument();\n\n // Get the options.\n $options = $this->option();\n\n // Write filter.\n $this->writeFilter($arguments, $options);\n\n // Dump autoload.\n $this->composer->dumpAutoloads();\n }", "title": "" }, { "docid": "868c81d1c1e83518f46cee842ab0c786", "score": "0.6463639", "text": "public function handle()\n {\n //get us the Converter class instance and call the convert() method on it.\n $this->info(\n \\Aregsar\\Converter\\ConverterFacade::convert($this->argument(\"currency\"))\n );\n }", "title": "" }, { "docid": "684cb1585ad9f5dfb6a58227424333d3", "score": "0.635053", "text": "public function handle()\n {\n $this->importUser($this->argument('username'));\n $this->call('ldap:show-user', $this->arguments());\n }", "title": "" }, { "docid": "5c8535c6e207dd8d3f673e1a1308a848", "score": "0.63190264", "text": "public function handle() {\n $user = User::where('id', $this->argument('userId'))->first();\n $this->info($user->email);\n }", "title": "" }, { "docid": "37eb87f93bae7a5c9710d1da3ed1ac57", "score": "0.630525", "text": "public function handle()\n {\n $commandInputParser = $this->commandInputParser->parse(\n $this->getClassPath(),\n $this->option('properties')\n );\n\n $template = file_get_contents(app_path('Console/Commands/templates/command.template'));\n\n $mustache = new Mustache_Engine();\n\n $template = $mustache->render($template, [\n 'className' => $commandInputParser->className,\n 'namespace' => $commandInputParser->namespace,\n ]);\n\n file_put_contents(\"{$base}/{$path}.php\", $template);\n\n $this->info('All done!');\n }", "title": "" }, { "docid": "cc387553ca0595687d7d2dd71798f117", "score": "0.62765807", "text": "public function handle()\n {\n $char_id = $this->argument('character_id');\n\n $char = Character::findOrFail($char_id);\n\n $this->info(\"Setting {$char->name} as admin\");\n\n $char->user->assign(\"admin\");\n\n $this->info('Done!');\n }", "title": "" }, { "docid": "aa00894b93903b141168808514f63668", "score": "0.62747604", "text": "public function handle()\n {\n $translations = collect(json_decode(file_get_contents('https://raw.githubusercontent.com/getbible/Bibles/master/translations.json')))->flatten();\n switch($this->argument('action')) {\n case 'fetch':\n $this->fetchBibles($translations);\n break;\n case 'convert':\n $this->convertBibles($translations);\n break;\n }\n }", "title": "" }, { "docid": "3ba830c933ec0448775593b841cb061b", "score": "0.627204", "text": "public function handle()\n {\n $appId = $this->argument('appId');\n Crawler::getModel()->getGraphQLResult($appId);\n }", "title": "" }, { "docid": "a31bc88a5837294afb9068e2b8ca06a3", "score": "0.6261977", "text": "public function handle()\n {\n try {\n $evalstr = $this->evaluater->evaluate($this->argument('evalString'));\n $this->info($evalstr);\n } catch (ForbiddenSymbolsException $exception) {\n $this->error($exception->getMessage());\n } catch (IncorrectSymbolsException $exception) {\n $this->error($exception->getMessage());\n }\n }", "title": "" }, { "docid": "490deb10f78987f2772546bf30346149", "score": "0.6235821", "text": "public function handle()\n {\n // env('CALENDARINDEX_TOKEN', '6f2bd927201ba4b22bb57df08db0c517e51732de')\n $this->getData($this->argument('country'), $this->argument('region'));\n }", "title": "" }, { "docid": "a0484627acc66b1f29941f21f3204263", "score": "0.62248456", "text": "public function handle()\n {\n $email = $this->argument('email');\n $name = $this->argument('name');\n\n $this->info(\"starting to generate users details\");\n\n }", "title": "" }, { "docid": "aced73f42359ca6e16f9c9853ffd0b45", "score": "0.62217945", "text": "public function handle()\n {\n\t\t$this->info('Importing translations...');\n\n\t\t$this->manager->importTranslations(true);\n }", "title": "" }, { "docid": "1e380ac8cad2b5d6d817bd89c804954a", "score": "0.6214421", "text": "public function handle()\n {\n $user = null;\n\n if ($email = $this->option(\"email\", false)) {\n $user = $this->findByEmail($email);\n }\n\n if ($id = $this->option(\"id\", false)) {\n $user = $this->findById($id);\n }\n\n if (empty($user)) {\n $this->warn(\"User no found\");\n }\n else {\n $this->setRoleToUser($user);\n }\n }", "title": "" }, { "docid": "e6d525a7fefa1e27af86f5c8d641c8ad", "score": "0.61981124", "text": "public function handle()\n {\n $this->processOptions();\n\n if ( $this->processMode === 'export' ) {\n $this->exportPermissions();\n } else {\n $this->importPermissions();\n }\n }", "title": "" }, { "docid": "f5ed74d7f03766df392fdf55d9497465", "score": "0.6193356", "text": "public function handle()\n {\n $name = ucwords($this->argument('name'));\n $this->call('repository:contract', [ 'name' => $name ]);\n $this->call('repository:class', [ 'name' => $name, '--driver' => $this->option('driver') ]);\n }", "title": "" }, { "docid": "3e8c21245d6cb02e780e38c5ee7e354a", "score": "0.6183878", "text": "public function handle()\n\t{\n\t\t$name = $this->argument('name');\n\t\t\n\t\t$this->info(\"Searching eve api for {$name}\");\n\t\t$result = Corporation::searchEVEAPI($name);\n\n\t\t$this->info(\"results\");\n\t\tforeach($result as $corp)\n\t\t{\n\t\t\tprint $corp->name . \" \" . $corp->id . \"\\r\\n\";\n\t\t}\n\t}", "title": "" }, { "docid": "5f7c2412c2241ec508b5f7722b4cbdb4", "score": "0.61829054", "text": "public function handle()\n {\n $addon = Str::studly($this->argument('name'));\n $command = $this->argument('command-name');\n\n $path = addons_path() . $addon . '/Commands/' . Str::studly($command) . 'Command.php';\n\n if (File::exists($path)) {\n $this->error(\"Command file already exists at: {$path}\");\n return;\n }\n\n $stub = File::get(__DIR__ . \"/stubs/command.stub\");\n\n $contents = str_replace(\n ['DummyAddon', 'CommandName', 'dummy_addon', 'command_name'],\n [$addon, Str::studly($command), Str::slug($addon), Str::slug($command)],\n $stub\n );\n\n File::put($path, $contents);\n\n $this->info('Your command file awaits at: '.Path::makeRelative($path));\n }", "title": "" }, { "docid": "96057a7844ed13185e653a162590e148", "score": "0.6177804", "text": "public function handle()\n {\n $user = $this->argument('user');\n $this->info('Display this on the screen, user ' . $user);\n return 0;\n }", "title": "" }, { "docid": "c4f751f2ea2d29582336f4e6570f14f2", "score": "0.6172579", "text": "public function handle()\n {\n $mapping = $this->formatMappingName((string)$this->argument('mapping'));\n \n $model = $this->option('model') ? $this->formatModelName($this->option('model')) : null;\n \n $this->filesystem->put(\n $this->buildMappingFilePath($mapping),\n $this->buildMapping(\n $this->getDefaultStub(),\n $mapping,\n $model\n )\n );\n \n $this->composer->dumpAutoloads();\n }", "title": "" }, { "docid": "7a62eb5cb7a274226b8bfbaf13084974", "score": "0.61610997", "text": "public function handle()\n {\n $class = $this->argument('name');\n\n Storage::disk('reports')->put($class.'.php', $this->reportBoilerPlate($class));\n\n $this->call('make:repository', [\n 'name' => $class.'Repository'\n ]);\n\n echo \"Report scaffolding for $class completed.\";\n }", "title": "" }, { "docid": "9d9d475e07007630595e0767663004a1", "score": "0.6149887", "text": "public function handle()\n {\n $resources = $this->getResources();\n\n $this->displayResources($resources);\n }", "title": "" }, { "docid": "f8e5a385f7cb03161bda14d9770be7a9", "score": "0.61497146", "text": "public function handle()\n {\n switch ($this->argument('type')) {\n case 'dns':\n $this->dnscheck->run($this->option('dry-run') ? true : false, $this->argument('domain'));\n break;\n case 'whois':\n $this->whoischeck->run($this->option('dry-run') ? true : false, $this->argument('domain'));\n break;\n }\n }", "title": "" }, { "docid": "d140bf4176996a8b387f67435443e265", "score": "0.6148907", "text": "public function handle()\n {\n $option = $this->argument('option');\n\n if (! in_array($option, ['expired', 'all'])) {\n return $this->error('Invalid option supplied to command...');\n }\n\n $this->comment('Beginning pruning process...');\n\n $this->comment($this->pruneDatabase($option) . ' deleted from database...');\n\n $this->comment($this->pruneFiles($option) . ' deleted from files...');\n\n $this->info('Nonces pruned successfully!');\n }", "title": "" }, { "docid": "f5f1e58355818f36716b11952fb5592f", "score": "0.6146793", "text": "public function handle()\n\t{\n\t\t\n\t\t$source_directory = $this->argument( 'source_directory' );\n\t\t$target_directory = $this->argument( 'target_directory' );\n\t\t$template = (string) $this->option( 'template' );\n\n\t\t$statik = new \\App\\Statik\\Statik;\n\n\t\t$statik->generateHTMLFiles( $this, $source_directory, $target_directory, $template ) && $this->info( \"\\e[1;32mDONE!\" );\n\n\t}", "title": "" }, { "docid": "c59d7e2b5bbbb008e59d8c3390f515b4", "score": "0.6139144", "text": "public function handle()\n {\n if (!$this->argument('file')) {\n $this->info('Please specify file to call.');\n }\n\n $file = $this->argument('file');\n\n if (!$this->fileHandler->exists($file)) {\n $this->info('Wrong path or file not exist.');\n }\n\n $this->executeFile($file);\n }", "title": "" }, { "docid": "c88e68715875bc01f4d8a821b510519d", "score": "0.6131662", "text": "public function handle()\n {\n if ($this->argument('user')) {\n $userId = $this->argument('user');\n\n $this->info(\"Liquidate affiliate commission for user \" . $userId);\n\n $user = $this->userService->findById($userId);\n\n if ($user) {\n $this->walletService->liquidateUserBalance($user);\n } else {\n $this->error(\"User not found\");\n }\n\n $this->info(\"Done\");\n } else {\n $this->info(\"Liquidate all commissions\");\n\n $this->walletService->liquidateAllUsersBalance();\n\n $this->info(\"Done\");\n }\n }", "title": "" }, { "docid": "6764857f2bb988d04466de8feeb3c7ec", "score": "0.61082935", "text": "public function handle()\n {\n $this->getModels($this->argument('model'));\n $this->getLanguages($this->argument('locale'));\n $this->createMultiLanguageRecords();\n }", "title": "" }, { "docid": "59a9e292e14fddd9afe17421c5a3722e", "score": "0.610359", "text": "public function handle()\n {\n $viewableArray = $this->argument('viewable');\n\n // Validate arguments\n $this->validate($viewableArray);\n\n $this->iterateViewable(function ($viewable) {\n $stats = $this->getStats($viewable);\n\n $this->updateCount($viewable, (array)$stats);\n\n $this->resetStats($viewable);\n });\n }", "title": "" }, { "docid": "782ab3fdea5a6072e5ca7c67d481a30f", "score": "0.61015236", "text": "public function handle()\n {\n $page = intval($this->argument('page'));\n\n try {\n $this->copyResource($page);\n } catch (\\Exception $e) {\n dump('----------------------- Copy failed, $page = '.$page.'------------------------', $e->getMessage(), 'line : '.$e->getLine());\n }\n }", "title": "" }, { "docid": "06875baf6ce231916f0c9dfdaa6ec8b0", "score": "0.6095482", "text": "public function handle()\n {\n $platform_wechat_id = $this->argument('id');\n $customer_id = $this->argument('customer_id');\n $this->info(\"Starting at \".date('Y-m-d H:i:s').\". Running initial for 【{$this->signature}】\");\n $this->getUserInfoList($platform_wechat_id,$customer_id);\n $this->info(\"End at \".date('Y-m-d H:i:s').\". over for 【{$this->signature}】\");\n }", "title": "" }, { "docid": "f2e8687168d4509cfe84fe5219dbdc06", "score": "0.6091584", "text": "public function handle()\n {\n $this->publishAssets();\n $this->call('twill:flush-manifest');\n $this->call('view:clear');\n }", "title": "" }, { "docid": "af219c9fef3308117f0d96ec5e509a4a", "score": "0.6084772", "text": "public function handle()\n {\n $name = $this->argument('name');\n switch ($name) {\n case 'order':\n $this->order();\n break;\n default:\n $this->all();\n break;\n }\n }", "title": "" }, { "docid": "912962680f40d4243349a5c015017331", "score": "0.60838234", "text": "public function handle()\n {\n $details = $this->getDetails();\n\n $user = $this->createUser($details);\n\n $this->display($user);\n }", "title": "" }, { "docid": "8fc60becf00b7cec219b71b428a46012", "score": "0.6083534", "text": "public function handle()\n {\n $arg = $this->argument('arg');\n //这里编写需要执行的动作\n echo $arg;\n }", "title": "" }, { "docid": "157ce790d5fd12d1a46328e3fa99706c", "score": "0.60814404", "text": "public function handle()\n {\n $languages = explode(',', $this->argument('lang'));\n\n foreach ($languages as $language) {\n $this->exporter->export($language);\n\n $this->info('Translatable strings have been extracted and written to the ' . $language . '.json file.');\n }\n\n return static::SUCCESS;\n }", "title": "" }, { "docid": "64ae14cacfcb459685dfadb0683b4f9b", "score": "0.6077832", "text": "public function handle()\n {\n $this->info($this->slugger->encode($this->argument('id')));\n }", "title": "" }, { "docid": "bc42e5c490b9e89cbb35bb847db5ee3d", "score": "0.60766655", "text": "public function handle()\n {\n $this->line(static::$logo);\n $this->line('Neat admin current version:' . Neat::version());\n\n $this->comment('');\n $this->comment('Available commands:');\n\n $this->listAvailableCommands();\n }", "title": "" }, { "docid": "006451386db9167116a93eb09b0ce059", "score": "0.6075086", "text": "public function handle()\n {\n $email = $this->argument('email');\n $user = User::where(compact('email'))->first();\n\n if (empty($user)) {\n $this->error(\"User '$email' not found\");\n\n return;\n }\n\n if ($this->confirm('Are you sure you wish to enable this user?')) {\n $user->is_disabled = 0;\n } else {\n $this->info(\"User '$email' has not been enabled.\");\n\n return;\n }\n\n $user->save();\n\n $this->info(\"User '$email' enabled.\");\n }", "title": "" }, { "docid": "f096c7e234bf796e93c053ad48516575", "score": "0.60739267", "text": "public function handle(): void\n {\n // Set argument\n $this->url = $this->argument(self::URL_ARGUMENT);\n\n // Handler takes care of computation\n (new CommandHandler($this))->compute();\n }", "title": "" }, { "docid": "8c33d6eaf0a89e8e7a0bb419f7bc07f7", "score": "0.60699606", "text": "public function handle() {\n $entity = $this->validateEntity($this->argument('entity'));\n $job = new DataProcessingJob($entity, str_random(16));\n $this->dispatch($job);\n }", "title": "" }, { "docid": "f329636d15c8f58710dfe1ec023dc44f", "score": "0.6069931", "text": "public function handle()\n {\n $isProductionMode = 'prod' == $this->argument('mode');\n\n if ($isProductionMode) {\n if (!$this->confirm('Are you sure to run in production mode? Running this command may cause critical issues?')) {\n exit(1);\n }\n }\n\n $this->_recalculate($isProductionMode);\n }", "title": "" }, { "docid": "1bd5dee0be2208ba3e4efd24cecaedda", "score": "0.6068121", "text": "public function handle()\n {\n \n $data=(object) $this->arguments();\n \n $this->commandrunPayroll($data);\n\n }", "title": "" }, { "docid": "27e917c0ca4bd604c2defa8ea0475e40", "score": "0.6067665", "text": "public function handle()\n {\n // Get CLI Input\n $user_id = $this->option(\"uid\");\n\n // User Products\n ( new CommandManager() )->showUserProducts( $user_id );\n }", "title": "" }, { "docid": "5c5651294fcf21682b3f44f9db749de3", "score": "0.60624456", "text": "public function handle()\n {\n $this->info($this->driver->run(['-version']));\n }", "title": "" }, { "docid": "cfc97ea222c30ac4b6d593e16ec071a8", "score": "0.6061175", "text": "public function handle()\n {\n $force = $this->option('force');\n\n if($this->option('without-bulk')){\n $this->withoutBulk = true;\n }\n\n if ($this->generateClass($force)){\n $this->info('Generating permissions for '.$this->modelBaseName.' finished');\n }\n }", "title": "" }, { "docid": "77c78887e593a4e5162108162e639977", "score": "0.6045523", "text": "public function handle()\n {\n /** @var BoldApiService $boldApiService */\n $boldApiService = app(BoldApiService::class);\n\n $shopifyCustomerId = $this->argument('shopify_customer_id');\n $subscriptionId = $this->argument('subscription_id');\n\n $products = $boldApiService->getProducts($shopifyCustomerId, $subscriptionId);\n\n $this->info(json_encode($products['data']));\n }", "title": "" }, { "docid": "560965630e4ff4eb7b5bebc567f73088", "score": "0.6042083", "text": "public function handle()\n {\n $uls = new UserLocationsSeeder;\n $uls->run($this->argument('userId'));\n }", "title": "" }, { "docid": "6ddabc69893b1eb835c79b15f0efb945", "score": "0.6039709", "text": "public function handle()\n {\n $this->createDirectories();\n\n $this->publishTests();\n\n $this->info('Authentication tests generated successfully.');\n }", "title": "" }, { "docid": "a3c6a439d5f158facf5302831968fc23", "score": "0.6038925", "text": "public function handle()\n {\n // it's available in the vendor/bin directory.\n $path = base_path('vendor/bin');\n $envoy = $path .'/envoy';\n $configPath = resource_path('deploy/Envoy.blade.php');\n\n // TODO: further validate the necessary ENV variables here?\n\n // If deploy file exists, run the deploy\n if (is_file($configPath)) {\n $fullCommand = $envoy .' run deploy --path='. $configPath;\n passthru($fullCommand);\n } else {\n $this->line('Deploy template not found: '. $configPath);\n $this->line('Did you publish the module in Laravel?');\n $this->line('$ php artisan vendor:publish --provider=Nucleus\\\\Deploy\\\\DeployServiceProvider\n ');\n $this->error('Halting deploy, template was not found.');\n }\n }", "title": "" }, { "docid": "da5d9ef0317b75fb7af801c4fb904599", "score": "0.6031963", "text": "public function handle()\n {\n $this->setDbConnection(\n $this->input->getOption('database') ?: config('ghost-database.default_connection')\n );\n\n $native = $this->input->getOption('native-import') ?: config('ghost-database.use_native_importer');\n\n $snapshot = $this->import($native);\n\n $this->info(\"Snapshot `{$snapshot->name}` loaded!\");\n }", "title": "" }, { "docid": "83446bf03fbe9dc84f439bec9fa97674", "score": "0.6031549", "text": "public function handle()\n {\n $exec = $this->argument('exec');\n\n switch ($exec) {\n case 'download' :\n $this->download();\n break;\n\n case 'generate' :\n $this->generate();\n break;\n\n default :\n echo \"Choose 'download' or 'generate' for this command\";\n break;\n }\n }", "title": "" }, { "docid": "e803d54fc3fff21eab110b2d49330baa", "score": "0.6030584", "text": "public function handle() {\n try {\n $createTranslationFiles = $this->option('create-file');\n $this->useKeysAsValues = $this->option('use-keys-as-values');\n\n $path = app_path();\n $dirs = $this->listDirs($path);\n $this->parseDirs($path, $dirs);\n\n $path = resource_path('views');\n $dirs = $this->listDirs($path);\n $this->parseDirs($path, $dirs);\n\n\n if ($createTranslationFiles == 'yes') {\n $this->createTranslationFile();\n }\n $this->outputResult();\n } catch (\\Exception $e) {\n $this->error($e->getMessage());\n }\n }", "title": "" }, { "docid": "5e006abd34d168c19929cb49db29e0d1", "score": "0.6027515", "text": "public function handle()\n {\n $this->call('ziggy:generate', ['path' => './resources/js/ziggy-admin.js', '--group' => 'admin']);\n $this->call('ziggy:generate', ['path' => './resources/js/ziggy-frontend.js', '--group' => 'frontend']);\n $this->call(TranslationsGenerateCommand::class);\n }", "title": "" }, { "docid": "3d11d1ef23b34676a4b1059dd2f28ca7", "score": "0.60251325", "text": "public function handle()\n {\n if ($leagueId = $this->argument('league')){\n $this->comment(\"searching for new teams for $leagueId\");\n $teams = Football::getLeagueTeams($leagueId);\n $teams->each(function ($team){\n $this->teams->refresh($team);\n });\n }\n }", "title": "" }, { "docid": "5d150f83fe940367b9e78bca2ee3e820", "score": "0.60248643", "text": "public function handle()\n {\n $id = $this->argument('id');\n $profile = $this->argument('profile');\n\n $file = UploadedFile::find($id);\n if ($file == null)\n return Log::error(\"Failed to find file\");\n\n dispatch((new QueueEncode($file, $profile))->onQueue('process'));\n }", "title": "" }, { "docid": "5cb7fed29d2490b6e17e02f53b746088", "score": "0.60208166", "text": "public function handle()\n {\n try {\n if (!empty($userId = $this->argument('user'))) {\n $user = User::find($userId);\n } else {\n $user = User::inRandomOrder()->first();\n }\n\n if (empty($user)) {\n throw new \\Exception('User not found');\n }\n\n echo JWTAuth::fromUser($user);\n } catch (\\Exception $e) {\n echo $e->getMessage();\n }\n\n }", "title": "" }, { "docid": "bf104e7826a87c87871966bba0a86a03", "score": "0.6020814", "text": "public function handle()\n {\n $email = $this->argument('email');\n\n $credential = Credential::where('type_id', '=', Credential::TYPE_EMAIL)\n ->where('email', '=', $email)->first();\n\n if (!$credential) {\n $this->error(\"Error: no credential with email $email found!\");\n\n return;\n }\n\n $password = str_random(10);\n $credential->setPassword($password);\n $credential->save();\n\n $this->info(\"New password for user $email: $password\");\n }", "title": "" }, { "docid": "0bce7f48e93dee87ab1b45bd3b137f67", "score": "0.601668", "text": "public function handle()\n {\n $userId = $this->argument('today');\n $this->comment(\"Today is an awesome day!\");\n }", "title": "" }, { "docid": "3bec326f2fb01f435ac5f6107ac2c415", "score": "0.6014668", "text": "public function handle()\n {\n // if you are on the local environment\n if (!(app()->isLocal() || app()->runningUnitTests())) {\n $this->error('This command is only available on the local environment.');\n return;\n }\n\n $fqdn = $this->argument('fqdn');\n if ($tenant = Tenant::retrieveBy($fqdn)){\n $tenant->delete($fqdn);\n $this->info(\"Tenant {$fqdn} successfully deleted.\");\n }else {\n $this->error('This fqdn doesn\\'t exist.');\n }\n\n }", "title": "" }, { "docid": "e0c6147d0d6b3732974dbebf4c3a9255", "score": "0.60145515", "text": "public function handle()\n {\n $user_from = $this->option('from');\n $user_to = $this->option('to');\n $sum = $this->option('sum');\n\n CreateTransaction::dispatch($this->usersRepository->getByID($user_from), $this->usersRepository->getByID($user_to), $sum, true);\n $this->transactionsRepository->getAll()->each(function ($transaction){\n \tExecuteTransaction::dispatch($transaction);\n });\n }", "title": "" }, { "docid": "84ba70bcc6e1807954e643ea3721c4dc", "score": "0.6013968", "text": "public function handle()\n {\n $this->handleArguments();\n\n $generator = new $this->generators[$this->option('preset')](\n $this->modelName,\n $this->option('force'),\n $this->option('models-dir'),\n );\n\n $generator->handle();\n\n foreach ($generator->warns as $value) {\n foreach ($value as $message) {\n $this->warn($message);\n }\n }\n\n foreach ($generator->infos as $value) {\n foreach ($value as $message) {\n $this->info($message);\n }\n }\n }", "title": "" }, { "docid": "a663aa0e6596dba6c3d92517804930ad", "score": "0.60101664", "text": "public function handle()\n {\n $importAllUsers = $this->option('all');\n\n if ($importAllUsers) {\n return $this->importAllUsers();\n }\n\n $importUserId = random_int(1, 10);\n\n Log::info(\"Importing data for user {$importUserId}\");\n $this->importUserById($importUserId);\n }", "title": "" }, { "docid": "ac3a17469d909750eebb1a1a4ddb5c26", "score": "0.6007883", "text": "public function fire()\n {\n $entityName = $this->argument('entityName');\n $startEntityId = $this->argument('startEntityId');\n $endEntityId = $this->argument('endEntityId');\n $depth = $this->argument('depth');\n\n $this->fixturePath = $this->option('outputPath');\n\n $this->info(\"Generating fixtures for $entityName in {$this->fixturePath}...\");\n \n $this->generateFixtures($entityName, $startEntityId, $endEntityId, $depth);\n }", "title": "" }, { "docid": "a3ee137d3e6f9aa7df7765004c9eec24", "score": "0.6006873", "text": "public function handle()\n {\n $user = User::find($this->argument('userid'));\n \n if (!$user) {\n\t $this->error(\"Invalid user specified.\");\n\t return;\n }\n \n $includeQuestItems = (bool) $this->argument('includeQuestItems');\n \n $dupeItems = $user->getDuplicateItems($includeQuestItems);\n \n foreach ($dupeItems as $displayID => $itemArr) {\n\t $this->info('DisplayID: ' . $displayID);\n\t foreach ($itemArr as $item) {\n\t\t if ($item->character) {\n\t\t\t $this->line('- ' . $item->item->name . ' - ' . $item->character->name . ' - ' . $item->character->realm->name . ' (' . ucwords($item->itemLocation->shorthand) . ')');\n\t\t\t } else {\n\t\t\t\t $this->line('- ' . $item->item->name . ' (' . ucwords($item->itemLocation->shorthand) . ')');\n\t\t\t }\n\t }\n }\n }", "title": "" }, { "docid": "a0f54ad45cd9ef7e8934e7d78ad9da4c", "score": "0.6001778", "text": "public function handle()\n {\n $project = Project::with(['team.admins', 'team.members'])->findOrFail($this->option('project-id'));\n $user = User::findOrFail($this->option('user-id'));\n if ($this->option('admin')) {\n $project->team->admins()->syncWithoutDetaching($user);\n } else {\n $project->team->members()->syncWithoutDetaching($user);\n }\n return Command::SUCCESS;\n }", "title": "" }, { "docid": "361d47227fc1975a1bf506b8a4121e6e", "score": "0.59927833", "text": "public function handle()\n {\n try {\n $students = UpdateStudentsCommand::updateStudents();\n } catch (Exception $e) {\n $this->error(\"An error occurred\");\n }\n }", "title": "" }, { "docid": "e4b1d05f6d2bd37503bc899d485c2bc2", "score": "0.5992452", "text": "public function handle()\n\t{\n\t\tif ($this->option('dev')) {\n\t\t\tsystem('php '.base_path('.deploy/deploy-dev.php'));\n\t\t} else {\n\t\t\tsystem('php '.base_path('.deploy/deploy.php'));\n\t\t}\n\t}", "title": "" }, { "docid": "885a983278162d141e140474457963c1", "score": "0.5991049", "text": "public function handle()\n {\n $name = new TropicosAcceptedNames;\n\n $ids = DB::table('tropicos.tropicos_names as n')\n ->leftJoin('tropicos.tropicos_accepted_names as an', 'n.id', '=', 'an.tropicos_name_id')\n ->where('n.accepted_name_count', '>', 0)\n ->whereNull('an.id')\n ->pluck('n.id');\n\n $bar = $this->output->createProgressBar($ids->count());\n\n $bar->start();\n\n foreach ($ids as $id) {\n $name->getAcceptedNames($id);\n $bar->advance();\n }\n\n $bar->finish();\n\n $this->info('Harvest completed');\n }", "title": "" }, { "docid": "05d19efbcca7b3ac9a10103aa62a4bef", "score": "0.5990815", "text": "public function handle()\n {\n $commands = [\n 'clear-compiled',\n 'auth:clear-resets',\n 'cache:clear',\n 'config:clear',\n 'debugbar:clear',\n 'event:clear',\n 'optimize:clear',\n 'route:clear',\n 'view:clear',\n 'package:discover',\n ];\n foreach ($commands as $command) {\n $this->call($command);\n }\n $this->info('Files cached successfully!');\n }", "title": "" }, { "docid": "96e350c8ce285dd94b50bf830ceb1219", "score": "0.5988327", "text": "public function handle()\n {\n $this->info('Getting Users...');\n $model = config('password-history.observe.model');\n if (class_exists($model)) {\n $model::chunk(100, function ($users) {\n $users->each->deletePasswordHistory();\n });\n }\n $this->info('Old Password Cleared...');\n }", "title": "" }, { "docid": "4cb5190c7ef134ed018cc813614d2d4e", "score": "0.5987503", "text": "public function handle(Command $command);", "title": "" }, { "docid": "4cb5190c7ef134ed018cc813614d2d4e", "score": "0.5987503", "text": "public function handle(Command $command);", "title": "" }, { "docid": "c9c7506cbe0a59e652224ddfd6d8f09c", "score": "0.5987477", "text": "public function handle()\n {\n $date_from = $this->argument('date_from');\n\t\t$date_to = $this->argument('date_to');\n\t\tif(!$date_from) {\n\t\t\t$date_from = Carbon::today()->subDays(5);\n\t\t}\n\t\tif(!$date_to) {\n\t\t\t$date_to = Carbon::yesterday();\n\t\t}\n\t\tStats::computeMembers($this->argument('venue_id'), $date_from, $date_to);\n }", "title": "" }, { "docid": "f79cc2552880c62bcfd4fb8585207a86", "score": "0.59853584", "text": "public function handle()\n {\n Log::info(\"seed:dash Command is working fine!\");\n $this->info('Dashboard Database seeding completed successfully.');\n }", "title": "" }, { "docid": "6835e424dc06d014ec3fbd3771c9c5de", "score": "0.598485", "text": "public function handle()\n {\n $settlementPreviewService = new SettlementPreviewService();\n $settlementPreviewService->preview();\n }", "title": "" }, { "docid": "6b6432087700d2a1e54b9a1973b168ee", "score": "0.59840804", "text": "public function handle() {\n if(!$this->isInstalled()) {\n $this->warn(\"Laradock is not installed yet. Please execute laradock:install\");\n exit;\n }\n\n $container = $this->argument('container');\n\n $cmd = $this->option('cmd');\n\n $cmd = \"docker compose exec $container $cmd\";\n\n $this->info(\"Running command: $cmd\");\n sleep(1);\n passthru(\"cd {$this->dirname} && $cmd\");\n }", "title": "" }, { "docid": "7024b3d8f9f9686792af98ca9ee7ccf3", "score": "0.5984069", "text": "public function handle()\n {\n //Update Users table if they are citiens\n Log::info('Checking Users\\' Citizenship...');\n $this->VerifyCitizenship();\n\n Log::info('Getting Users to write the PDF');\n $this->loadUsers();\n }", "title": "" }, { "docid": "f798572d12fe9d4a58f47fca2385d6c0", "score": "0.5980689", "text": "public function handle()\n {\n\n $arguments = $this->arguments();\n $name = ucwords($arguments['name']);\n $dir = $this->naming === 'plural' ? Str::plural($name) : Str::singular($name);\n $this->makeBaseRepoIfNotExists();\n\n // make repo\n $this->makeRepo($dir);\n\n // disabled auto create model\n if(!$this->option('m')) {\n $this->makeBaseModel($dir);\n }\n }", "title": "" }, { "docid": "240d8d8b8689c4886f572ac724ffb947", "score": "0.59804505", "text": "public function handle()\n {\n $this->call('config:clear');\n\n $this->call('config:update');\n\n $this->info('Configuration cached successfully!');\n }", "title": "" }, { "docid": "b7eaca6924c12443c8f29c669b748a8d", "score": "0.5974061", "text": "public function handle()\n {\n $this->pullScores();\n }", "title": "" }, { "docid": "421fded74b7e189875c1060148499a3c", "score": "0.5969228", "text": "public function handle()\n {\n $this->call('route:trans:clear');\n\n $this->cacheRoutesPerLocale();\n\n $this->info('Routes cached successfully for all locales!');\n }", "title": "" }, { "docid": "09be040706575141106fb407a9073300", "score": "0.5968926", "text": "public function handle()\n {\n $structName = ucfirst($this->argument('name'));\n\n $path = $this->getAppBase() . '/Models/' . $structName . '.php';\n $stub = 'model';\n\n $changes = array(\n 'class' => $structName\n );\n\n $this->build($stub, $path, $changes);\n }", "title": "" }, { "docid": "30096f9a99f4911092ddcafa4634535a", "score": "0.5968301", "text": "public function handle()\n {\n $return = $this->larinterface->generate(\n $this->argument('class'),\n $this->argument('output'),\n $this->argument('output_file'),\n $this->argument('input_file'),\n $this->argument('namespace'),\n $this->argument('name')\n );\n\n if (!is_array($return)) {\n $return = ['code' => $return];\n }\n\n echo json_encode($return);\n }", "title": "" }, { "docid": "6d045eaa13bd75cace74dcc009cb2556", "score": "0.59655035", "text": "public function handle()\n {\n if($this->hasOption('no_dump') && $this->option('no_dump')){\n $this->composer_dump = false;\n }\n $this->readyDatas();\n $this->datas['startSymbol']='{{';\n $this->datas['endSymbol']='}}';\n $this->create();\n }", "title": "" }, { "docid": "d3f89d1a2e1b614a64540f9c84ad1ad5", "score": "0.59642595", "text": "public function handle()\n {\n $repository = new OglasiCrawlerRepository();\n $ads = $repository->getAds();\n $repository->saveAds($ads);\n\n echo 'Ads were successfully retrieved' . PHP_EOL;\n }", "title": "" }, { "docid": "3cbb15d983c82930beadb9878ae97b3f", "score": "0.59635514", "text": "public function handle()\n {\n $this->makeDir($this->basePath . $this->kebabPlural());\n\n $this->exportViews();\n\n $this->info('Resource views generated successfully.');\n }", "title": "" }, { "docid": "32bada88d482e2fe2dbef58c3975e432", "score": "0.5960217", "text": "public function handle()\n {\n $this->packageGenerator->setConsole($this)\n ->setPackage($this->argument('package'))\n ->setType('shipping')\n ->setForce($this->option('force'))\n ->generate();\n }", "title": "" }, { "docid": "71e028d81f341923d083cb9dddbf886a", "score": "0.59567684", "text": "public function handle() {\n\t\t$this->updateResourcesDirectory();\n\t\t$this->updateRoutes();\n\t\t$this->updateModelsDirectory();\n\t}", "title": "" }, { "docid": "5bb84f45225a987cd4b28e847845401b", "score": "0.5954439", "text": "public function handle()\n {\n $message = $this->GenerateRandomUser($this->argument('count'));\n $this->info($message);\n }", "title": "" }, { "docid": "bbc39acce2d6ef8c691fe04d9fd1c651", "score": "0.5954011", "text": "public function handle()\n {\n $symbol = $this->argument('symbol');\n\n $stock = $this->stock->bySymbol($symbol)->first();\n if ($stock === null) {\n $this->info(\"Stock $symbol not found\");\n return;\n }\n $stock->delete();\n $this->info('Done');\n }", "title": "" }, { "docid": "92e063ce870d864dbd148af9cabc9e34", "score": "0.59525806", "text": "public function handle()\n {\n $basePath = $this->container['path.storage'];\n\n @unlink($basePath .DS .'down');\n\n $this->info('Application is now live.');\n }", "title": "" }, { "docid": "a3e5633cb16427e56653f90c1a9fb50b", "score": "0.59517", "text": "public function handle()\n {\n $this->syncHost = $this->commonSets->values('sync_novel_api', 'domain');\n $this->info($this->signature . ' start do!' . date('Y-m-d H:i:s'));\n $rel = $this->checkSectionContent();\n dump($rel);\n dump($this->signature . ' end at '. date('Y-m-d H:i:s'), '----------------------------- 更新结果如下 -----------------------------', $rel);\n }", "title": "" }, { "docid": "707d4f9c8050d9cbdb496269a33d3af0", "score": "0.59456027", "text": "public function handle()\n {\n $this->info('Publishing stuff..');\n\n $this->publishFiles();\n\n $this->info('Setup complete. Enjoy!');\n }", "title": "" }, { "docid": "51cfca333d056c43ae8402f360c0508b", "score": "0.59439087", "text": "public function handle()\n {\n $tasks = Task::orderBy('id', 'desc')->limit(10)->get();\n\n foreach($tasks as $task) {\n $this->line(\"\");\n $this->info(\"========= $task->name =========\");\n $this->line(\"Status: $task->status\");\n $this->line(\"Exit Code: $task->exit_code\");\n $this->line(\"Playbook: $task->playbook\");\n $this->line(\"\");\n $this->line($task->output);\n $this->line(\"\");\n $this->line(\"Vars: \" . print_r($task->vars, true));\n $this->info(\"========= End $task->name =========\");\n }\n }", "title": "" }, { "docid": "5acfc3c8c7d69b9928f8cce374d954c5", "score": "0.59409463", "text": "public function fire()\n\t{\n\t\t$name = $this->input->getArgument( 'name' );\n\n\t\t$this->writeMigration( $name );\n\n\t\t$this->writeModel( $name );\n\n\t}", "title": "" }, { "docid": "41ef29881a94792ec94691d1cd385612", "score": "0.5938864", "text": "public function handle()\n { \n $this->info(\"Time off type ID: \" . $this->argument('timeoff_id'));\n \n $users = $this->getEmployeesIDs();\n \n foreach($users as $user) {\n try {\n $timeoff = new Timeoff($user->id, $this->argument('timeoff_id'));\n $timeoff->is_system_process = true;\n $timeoff->calculate();\n $this->info('Time off calculated for employee with ID ' . $user->id);\n }\n catch(Exceptions\\DXCustomException $e)\n {\n $err = \"Timeoff calculation error for employee with ID \" . $user->id . \". Error: \" . $e->getMessage();\n $this->warn($err);\n \\Log::info($err);\n }\n }\n \n $this->info('Time off calculation done!');\n }", "title": "" }, { "docid": "2bc824d06f1c5dbb3f2045baec92899b", "score": "0.5938617", "text": "public function handle()\n {\n $accountId = $this->argument('account');\n\n $account = Account::findOrFail($accountId);\n\n $playlists = RefreshPlaylistsLibrary::getInstance($account)->handle();\n\n foreach ($playlists as $playlist) {\n RefreshPlaylistsVideosLibrary::getInstance($account, $playlist, $playlist->accounts[0]->pivot->playlist_site_id)->handle();\n }\n }", "title": "" }, { "docid": "9dc5479bbf6db890cb82bf41da1a00b5", "score": "0.5938104", "text": "public function handle()\n {\n chdir($this->laravel->publicPath());\n // $this->line(\"<info>\\n\\nKick-Ass TELSTAR development server started at: \\n\\n HOST={$this->host()} \\n PORT={$this->port()}\\n\\n Command-click ==></info> http://{$this->host()}:{$this->port()}\");\n // $this->line(\"<info>\\n\\nKick-Ass TELSTAR development server started at: \\n\\n HOST={$this->host()} \\n PORT={$this->port()}\\n\\n Command-click</info> http://{$this->host()}:{$this->port()}<info> to serve in browser.</info>\");\n $this->line(\"<info>\\n\\nKick-Ass TELSTAR development server started at: \\n\\n HOST={$this->host()} \\n PORT={$this->port()}\\n\\n Command-click to serve --></info> http://{$this->host()}:{$this->port()}\");\n passthru($this->serverCommand());\n }", "title": "" }, { "docid": "3c987417a13501edb37e82a9db41cfce", "score": "0.5935803", "text": "public function fire()\n\t{\n $generator = new SoaGenerator($this->option('package'));\n $generator->make($this->argument('name'));\n $this->info('Success!');\n\t}", "title": "" }, { "docid": "6568f2b6a3060d925a969a501afd70da", "score": "0.59339994", "text": "public function handle()\n {\n $this->info('Setting watched unit videos to played...');\n $userUnits = UserUnit::whereNotNull('date_completed')\n ->update([\n 'played' => true,\n ]);\n\n if ($userUnits) {\n $this->info('Done.');\n }\n\n $this->info('Setting watched module videos to played...');\n\n $moduleUsers = DB::table('module_user')\n ->where('intro_video_watched', true)\n ->where('played', false)\n ->update([\n 'played' => true,\n ]);\n\n if ($moduleUsers) {\n $this->info('Done.');\n }\n }", "title": "" } ]
bd6cefe19b05ac88346456e6c869788f
Checks if this is a branch
[ { "docid": "ac2867f73f19fe5b813bea807e5a8fb5", "score": "0.83819795", "text": "public function isBranch() {\n return $this->getRefType() == self::GITHUB_REF_BRANCH_TYPE;\n }", "title": "" } ]
[ { "docid": "4cf4704759d2efb58b253a43ac784813", "score": "0.7702321", "text": "public function isBranch(): bool\n {\n return count($this->chain) > 1;\n }", "title": "" }, { "docid": "f52a45eb7dd7e8a05d4e3794a4bc140c", "score": "0.7100543", "text": "public function is_branch_set()\n {\n \n }", "title": "" }, { "docid": "3415089eb361b00c8b711fc3d8ca0f51", "score": "0.69357973", "text": "private function hasBranch()\n {\n $branch = $this->config['branch'];\n $cwd = $this->getTarget($this->currentRepository->getName());\n\n $process = $this->execute(\"git show-branch {$branch}\", $cwd);\n if ($process->isSuccessful()) {\n return true;\n }\n\n // fetch origin in case no local branch was found\n $process = $this->execute(\"git show-branch -r --list\", $cwd);\n if (!$process->isSuccessful()) {\n throw new \\RuntimeException($process->getErrorOutput());\n }\n\n $branches = $process->getOutput();\n if (strpos($branches, $branch)) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "47eed8bd4f06e102de6a8a8aa7fe79ba", "score": "0.6916406", "text": "public function checkbranch()\n\t\t{\n\t\t\tif($this->isNewRecord)\n\t\t\t{\n\t\t\t\t$bname='\"'.strtolower($this->branch_name).'\"';\n\t\t\t\t$branch_name=Yii::app()->db->createCommand()\n\t\t\t\t\t ->select('branch_name')\n\t\t\t\t\t ->from('branch')\n\t\t\t\t\t ->where('branch_organization_id='.Yii::app()->user->getState('org_id').' and LOWER(branch_name)='.$bname)\n\t\t\t\t \t ->queryAll();\n\t\t\t\tif($branch_name)\n\t\t\t\t {\n\t\t\t\t \t$this->addError('branch_name',\"Already Exists.\");\t\n\t\t\t\t\t return false;\t\n\t\t\t\t }\n\t\t\t\telse\n\t\t\t {\n\t\t\t\t\treturn true;\n\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$bid=$_REQUEST['id'];\n\t\t\t\t$bname='\"'.strtolower($this->branch_name).'\"';\n\t\t\t\t$orgid=Yii::app()->user->getState('org_id');\n\t\t\t\t$branch_name=Yii::app()->db->createCommand()\n\t\t\t\t\t ->select('branch_name')\n\t\t\t\t\t ->from('branch')\n\t\t\t\t\t ->where('branch_id <>'.$bid.' and branch_organization_id='.$orgid.' and LOWER(branch_name)='.$bname)\n\t\t\t\t \t ->queryAll();\n\t\t\t\t\n\t\t\t\tif($branch_name)\n\t\t\t\t {\n\t\t\t\t \t$this->addError('branch_name',\"Already Exists.\");\t\n\t\t\t\t\t return false;\t\n\t\t\t\t }\n\t\t\t\telse\n\t\t\t {\n\t\t\t\t\treturn true;\n\t\t\t\t }\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "26d009caac68b1033a9d801a81193677", "score": "0.6749861", "text": "public function branches(): bool\n {\n return $this->branches;\n }", "title": "" }, { "docid": "8b027bfa028aa3c810a4979f1563679d", "score": "0.6718724", "text": "private function currentBranch()\n {\n $currentBranch = $this->git->branch;\n if ($currentBranch != 'HEAD') {\n return $currentBranch;\n }\n\n return false;\n }", "title": "" }, { "docid": "a3095443a13571a1afb35528fd4beb22", "score": "0.6478336", "text": "public function branchExists($branchName);", "title": "" }, { "docid": "f93b54d975b32024ac4d577468cc7f15", "score": "0.630552", "text": "public function getBranch();", "title": "" }, { "docid": "18238388ef36c472e2e90ac52f3bb05c", "score": "0.6262133", "text": "public function getBranch()\n {\n return $this->branch;\n }", "title": "" }, { "docid": "18238388ef36c472e2e90ac52f3bb05c", "score": "0.6262133", "text": "public function getBranch()\n {\n return $this->branch;\n }", "title": "" }, { "docid": "4b7c2893265a20caf80b92a5a13b0988", "score": "0.6124262", "text": "function check_branch_in_table($handle)\n{\n\t$result=$handle->query(\"SELECT * FROM branch\");\n\tif($result->num_rows > 1){\n\treturn true;\t\n\t}\n\telse{\n\t// significa que solo hay una sola terminal mostramos mensaje de denegado\t\n\tno_permitted_use_paxkages();\t\n\t}\n}", "title": "" }, { "docid": "e956eec3e1157bac07df9852bfadba64", "score": "0.60945666", "text": "public function getCurrentBranch();", "title": "" }, { "docid": "e956eec3e1157bac07df9852bfadba64", "score": "0.60945666", "text": "public function getCurrentBranch();", "title": "" }, { "docid": "f51bd664dd3fcb37cf8e735a77964c9f", "score": "0.59248495", "text": "public function getBranch() {\n\t\t// Return the current branch\n\t\treturn $this->sBranch;\n\t}", "title": "" }, { "docid": "ed69ba52de280b55cdbbfd02c497d10f", "score": "0.5866317", "text": "public function getGitBranch()\n\t{\n\t\treturn $this->config->get('rocketeer::git.branch');\n\t}", "title": "" }, { "docid": "a3c58306b53ec1377855b6b91668d410", "score": "0.58115494", "text": "private function isBranches($pawnshopData)\n {\n if (!empty($this->getBranchFromPawnshop($pawnshopData))) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "e0e36b06f66592fc46c51a7f40117fc4", "score": "0.57408875", "text": "public function getBranch()\n {\n if ($this->version === null) {\n $this->version = $this->determineVersion();\n }\n return $this->version['branch'];\n }", "title": "" }, { "docid": "e44427f1d563a95fa2ab9d0119458434", "score": "0.57282066", "text": "function _get_branches() {\n\t$branches = [];\n\n\t// try FETCH-HEAD\n\tif(is_file(\"/var/www/branches/base-FETCH-HEAD-copy\")) {\n\t\t$git_fetch_head = file_get_contents(\"/var/www/branches/base-FETCH-HEAD-copy\");\n\n\t\tforeach(explode(\"\\n\", $git_fetch_head) as $line) {\n\t\t\t$matches = [];\n\t\t\tif(preg_match(\"@branch[ \\t]+'(.*)'@\", $line, $matches))\n\t\t\t\t$branches[] = $matches[1];\n\t\t}\n\t}\n\n\t// try packed-refs\n\tif(is_file(\"/var/www/branches/base-packed-refs-copy\")) {\n\t\t$packed_refs = file_get_contents(\"/var/www/branches/base-packed-refs-copy\");\n\n\t\tforeach(explode(\"\\n\", $packed_refs) as $line) {\n\t\t\tif(preg_match(\"@.*refs/tags/(.*)@\", $line, $matches))\n\t\t\t\t$branches[] = $matches[1];\n\t\t}\n\n\t\tif(sizeof($branches) == 1) return false;\n\t}\n\n\treturn $branches;\n}", "title": "" }, { "docid": "f0d1412050e2e0575325fe76024c0455", "score": "0.57275045", "text": "function user_has_active_branch($user_guid) {\n\t\t\n\t\t$this->db->select('count(*) as count')\n \t\t ->from('users_x_branches')\n \t\t ->where('users_x_branches.user_id', $user_guid)\n\t\t \t\t ->where('users_x_branches.branch_id IN (SELECT branches.guid from branches WHERE branches.active_status = 1 AND branches.delete_status = 0 )', NULL, FALSE);\n\t\t$query = $this->db->get();\n\t\t$count = $query->row(1,'array'); // Getting row as associated array. \n\t\tif( $count > 0)\t\t\t\t\t// User has atleast one active brance\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "075167b188cf19b2ee92cc002d2836e8", "score": "0.5615842", "text": "public function isLeaf();", "title": "" }, { "docid": "075167b188cf19b2ee92cc002d2836e8", "score": "0.5615842", "text": "public function isLeaf();", "title": "" }, { "docid": "075167b188cf19b2ee92cc002d2836e8", "score": "0.5615842", "text": "public function isLeaf();", "title": "" }, { "docid": "8a216471b15d03504750baae337ee13b", "score": "0.5604054", "text": "public function isOnCorrectMinorReleaseBranch(): bool\n {\n if (!preg_match('#^([0-9]{1,2}\\.[0-9]{1,2})\\.[0-9]{1,2}#', $this->version, $matches)) {\n return false;\n }\n return $matches[1] == $this->getLibrary()->getBranch();\n }", "title": "" }, { "docid": "1ad34803b6615425a50db4dd8385a979", "score": "0.5576573", "text": "public function hasParent()\n {\n return count($this->breadcrumb) > 1;\n }", "title": "" }, { "docid": "196946aec1107e50ff190c602f37dc2d", "score": "0.5572451", "text": "public function getBranchName()\n {\n return $this->branch_name;\n }", "title": "" }, { "docid": "9d3fe7047d947aaa780bbe1299994ce2", "score": "0.55359584", "text": "public function fetchBranch($node = null);", "title": "" }, { "docid": "0bce97f9ef2f0f93753c43c7e0d5fc8e", "score": "0.55016375", "text": "public function testBranchHistory()\n {\n // test commits for specified branch\n foreach ($this->variables['branchHistory'] as $branch => $commitId) {\n $commitsInOtherBranches = [];\n foreach ($this->variables['branchHistory'] as $otherBranch => $otherCommitId) {\n if ($otherBranch != $branch) {\n $commitsInOtherBranches[] = $otherCommitId;\n }\n }\n $this->assertNotEmpty($commitsInOtherBranches);\n $history = $this->repository->getHistory(1000, 0, null, $branch);\n $this->assertNotEmpty($history);\n $this->assertContainsOnlyInstancesOf(Commit::class, $history);\n\n $hasCommit = false;\n foreach ($history as $commit) {\n if ($commit->getId() == $commitId) {\n $hasCommit = true;\n }\n $this->assertNotContains($commit->getId(), $commitsInOtherBranches);\n }\n $this->assertTrue($hasCommit, \"Branch $branch has no commit with: $commitId\\n\");\n }\n\n // test commits for all branches\n $commitsForAllBranches = array_flip($this->variables['branchHistory']);\n $history = $this->repository->getHistory(1000, 0, null, null);\n $this->assertNotEmpty($history);\n $this->assertContainsOnlyInstancesOf(Commit::class, $history);\n foreach ($history as $commit) {\n if (isset($commitsForAllBranches[$commit->getId()])) {\n unset ($commitsForAllBranches[$commit->getId()]);\n } elseif (empty($commitsForAllBranches)) {\n break;\n }\n }\n $this->assertEmpty($commitsForAllBranches, \"Not all branches in all branches history: \" . print_r($commitsForAllBranches, true));\n }", "title": "" }, { "docid": "71f915163314cb803855fd3631a93559", "score": "0.55006975", "text": "function HasBreadCrumbs()\n\t{\n\t\treturn ($this->_strCurrentPage !== NULL || count(DBO()->BreadCrumb->_arrProperties) > 0);\n\t}", "title": "" }, { "docid": "232a8f61f9cc88cf7f61cbba5234ebf4", "score": "0.5472758", "text": "protected function is_leaf()\n {\n return $this->is_leaf;\n }", "title": "" }, { "docid": "4766a5368ea79d4b82f61d29f45f64d8", "score": "0.54625434", "text": "public function hasBranch( string $repo, string $branch ) :bool {\n\t\t$branchList = $this->getBranches( $repo );\n\t\t$res = in_array( $branch, $branchList );\n\t\tif ( $res ) {\n\t\t\t$this->logger->debug( \"Branch ($branch) exists in ($repo)\" );\n\t\t} else {\n\t\t\t$this->logger->debug( \"Branch ($branch) does not \"\n\t\t\t\t\t\t\t\t. \"exist in ($repo)\" );\n\t\t}\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "453c0a7006cf0ea23d5be93d58f7c41e", "score": "0.54507655", "text": "protected function detectBranches()\n {\n $branches = array(self::DEFAULT_BRANCH);\n\n $patchDirectory = $this->getPatchDirectory();\n try {\n $iterator = new DirectoryIterator($patchDirectory);\n } catch (Exception $e) {\n $this->writer->line('Error: '.$e->getMessage());\n return array();\n }\n\n\n $patchPrefix = $this->getPatchPrefix();\n $pattern = '/^'.preg_quote($patchPrefix).'-(.*)?-\\d{3,4}\\.(sql|php)$/';\n\n foreach ($iterator as $fileinfo) {\n if ($fileinfo->isDot() || substr($fileinfo->getFilename(),0,1) == '.') {\n continue;\n }\n \n if (preg_match($pattern, $fileinfo->getFilename(), $matches)) {\n\n $branch = $matches[1];\n if (!in_array($branch, $branches)) {\n $branches[] = $branch;\n }\n }\n }\n return $branches;\n }", "title": "" }, { "docid": "96a4beae7f123f93fa46f4942b817145", "score": "0.5446923", "text": "public function isUnderGitVersionControl(): bool\n {\n return File::exists(base_path('.git'));\n }", "title": "" }, { "docid": "17a96b294275feee635450779241f566", "score": "0.54441166", "text": "public function removeBranch($branch_ID) {\n $this -> getBranches();\n // Check if the branch is not assigned as offered by this course\n if ($this -> branches[$branch_ID]['courses_ID'] == $this -> course['id']) {\n eF_deleteTableData(\"module_hcd_course_to_branch\", \"branches_ID = '\".$branch_ID.\"' AND courses_ID = '\". $this -> course['id'] .\"'\");\n $this -> branches[$branch_ID]['courses_ID'] = \"\";\n }\n return true;\n }", "title": "" }, { "docid": "e792beb0c9a480cffb3e00cea679423a", "score": "0.5426879", "text": "function GitCheckoutBranch( $branch, $gitFolder ) {\n\t\twfShellExec( 'git --git-dir=' . $gitFolder . '/.git --work-tree=' . $gitFolder . ' checkout ' . $branch );\n\t\twfDebug( 'GitRepository: Changed to branch ' . $branch );\n\t}", "title": "" }, { "docid": "5cfa0d6646e9e5de117310546c860f7f", "score": "0.54211766", "text": "public function getBranchName() {\n if ($this->isBranch()) {\n $this->getRefName();\n } else {\n return NULL;\n }\n }", "title": "" }, { "docid": "f93d7ecbf77803628eb42529c4d10ec2", "score": "0.5387758", "text": "public static function check_branch_cs( Event $event ) {\n\t\t$args = $event->getArguments();\n\t\tif ( empty( $args ) ) {\n\t\t\tself::check_cs_for_changed_files( 'trunk' );\n\t\t\treturn;\n\t\t}\n\t\tself::check_cs_for_changed_files( $args[0] );\n\t}", "title": "" }, { "docid": "3861266a7a1496408d2cd5b1d659e4bd", "score": "0.5382993", "text": "public function getBranchCode(): string\n {\n return $this->branchCode;\n }", "title": "" }, { "docid": "4a0c4d2733eb07fbfcf57e32d53736ac", "score": "0.538056", "text": "function is_bb() {\n if( isset($_REQUEST['bb'] ) ) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "37312220fc5e5da645d83951321ba46d", "score": "0.53636974", "text": "private function isVersionComingFromGit()\n {\n return $this->config('version_source') == static::VERSION_SOURCE_GIT;\n }", "title": "" }, { "docid": "0cf9a2ad213fa21c5845380064807c4c", "score": "0.5360156", "text": "public function setBranch($value)\n {\n $this->branch = $value;\n }", "title": "" }, { "docid": "22a3f6e08237d4089862d0f81a089787", "score": "0.53588325", "text": "public function getCodeMainBranch();", "title": "" }, { "docid": "726188e3e8e68b303123daccb09e5967", "score": "0.5354025", "text": "function branch_exists_local($branch_spec) {\n exec(\"git fetch -p -q\", $output = array(), $retval);\n if ($retval != 0) {\n final_result_internal_error(\"Could not update local repository from origin. Bailing out.\");\n }\n\n exec(\"git show-ref --verify --quiet '$branch_spec'\", $output = array(), $retval);\n return $retval == 0;\n}", "title": "" }, { "docid": "361b07662b52ee6ebc8424cd0bfc7f3f", "score": "0.53379136", "text": "public function getActiveBranch()\n\t{\n\t\t$this->getBranches();\n\t\treturn $this->_activeBranch;\n\t}", "title": "" }, { "docid": "aa6597629497104ffefa772bd3cbfc94", "score": "0.5331875", "text": "public function isGit()\n\t{\n\t\tif (!$this->_path || !is_dir($this->_path) || !is_dir($this->_path . DS . '.git'))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "74fe6597a7b9d3afddc6cb266adb33c2", "score": "0.53283906", "text": "public function CheckBranchManager()\n {\n $result = $this->RUNSearch(\"SELECT * FROM users WHERE org_id = ? AND branch_id = ? and user_type_id = 3\", [$this->org_id, $this->branch_id]);\n return $result->rowCount() > 0 ? \"This branch already has a manager, contact your organization!\" : false;\n }", "title": "" }, { "docid": "2406c895cd1e088e76c5af10e45ea1d3", "score": "0.53197795", "text": "public function branch()\n {\n return $this->belongsTo('App\\Models\\Branch');\n }", "title": "" }, { "docid": "696ae75856bef5ee14fc3a31fac6af5a", "score": "0.5319703", "text": "public function isLeaf(): bool\n {\n return $this->isLeaf;\n }", "title": "" }, { "docid": "5c9554e26e24f4e91c9d106dda67ba50", "score": "0.53142124", "text": "public function insertBranch($name)\n {\n $sql=\"SELECT * FROM `egn_branch` WHERE name='$name'\";\n $result = $this->connection->query($sql);\n\n if($result->num_rows == 0)\n {\n $insert_sql=\"INSERT INTO `egn_branch`(`name`) VALUES ('$name')\";\n $insert=$this->connection->query($insert_sql);\n if($insert === true)\n {\n return true;\n }\n else\n {\n return false;\n }\n }\n else\n {\n $message=\"Already Exists\";\n return $message;\n }\n }", "title": "" }, { "docid": "7586f47ba47fc4f1c3bd8e6e144b7a85", "score": "0.5284996", "text": "public function isBankTransfer()\n {\n return $this->source_type == 'TRANSFER';\n }", "title": "" }, { "docid": "042bdb57d3ed223a91dc6e9e1893414c", "score": "0.52783775", "text": "function is_leaf($object)\n\t{\n\t\treturn ( $object->exists() && $this->is_valid_node($object) && $object->{$this->_rightindex} - $object->{$this->_leftindex} == 1 );\n\t}", "title": "" }, { "docid": "168c15f1514b25c137e6a5634d2f4131", "score": "0.5274885", "text": "public function branch()\n {\n return $this->hasMany(Branch::class);\n }", "title": "" }, { "docid": "b659e4bab4f9489fa44b5f4119112cb8", "score": "0.5270453", "text": "public function getBranches()\n\t{\n\t\tif($this->_branches === NULL)\n\t\t{\n\t\t\t$this->_branches = array();\n\t\t\tforeach(explode(\"\\n\", $this->run('branch')) as $branchName)\n\t\t\t{\n\t\t\t\t$isActive = FALSE;\n\t\t\t\tif(substr($branchName, 0, 2) == '* ')\n\t\t\t\t{\n\t\t\t\t\t$isActive = TRUE;\n\t\t\t\t}\n\t\t\t\t$branchName = trim($branchName, '* ');\n\t\t\t\t$branch = new GitBranch($branchName, $this);\n\t\t\t\tif($isActive)\n\t\t\t\t{\n\t\t\t\t\t$branch->isActive = TRUE;\n\t\t\t\t\t$this->_activeBranch = $branch;\n\t\t\t\t}\n\t\t\t\t$this->_branches[$branchName] = $branch;\n\t\t\t}\n\t\t}\n\t\treturn $this->_branches;\n\t}", "title": "" }, { "docid": "4ec41f29c97cd66ff160da27b64a1c2f", "score": "0.52618307", "text": "static function checkBranchName($params)\n {\n\t$con =$params['dbconnection'];\t\n\t\n\t$querysub=\"\";\n\tif($params['id'] !='')\n\t$querysub=\" AND \t`id` !='{$params['id']}' \";\n\t\n\t $query = \"SELECT \n\t`id`\n\tFROM `branches` \n\tWHERE `name`='{$params['name']}' \".$querysub.\"\";\n\t$result = mysqli_query($con,$query) ;\n\tif (mysqli_error($con) != '')\n\treturn \"mysql_Error:-\".mysqli_error($con);\n\tif (mysqli_num_rows($result) > 0) \n\treturn \"alreadyexist\";\n\telse\n\treturn NULL;\n }", "title": "" }, { "docid": "bcea242790ec653c589a5297673915f4", "score": "0.5253129", "text": "public function getBranch()\n {\n return $this->hasOne(CompanyBranches::className(), ['BranchID' => 'BranchID']);\n }", "title": "" }, { "docid": "fef14619c464ccc8f946cfd7bb6307e1", "score": "0.5237068", "text": "function is_leaf($class_id) {\n\t\tglobal $db;\n\t\t$sql = \"select * from `\".PRE.\"type` where `fid`=\".$class_id;\n\n\t\t$rs = $db->query($sql);\n\t\tif ($db->num_rows($rs) > 0) {\n\t\t\treturn false; //If there is a subclass, it is not leaf node\n\t\t} else {\n\t\t\treturn true; //If there is no sub-categories, there are leaf nodes\n\t\t}\n\t}", "title": "" }, { "docid": "1fa1592f23921979230d6ffddc049f77", "score": "0.522301", "text": "function bbp_is_forum_status($forum_id, $status_name, $check_ancestors = \\true, $operator = 'AND')\n{\n}", "title": "" }, { "docid": "28a9665b2bb0ef642b7f4a43ca38f0fc", "score": "0.5214893", "text": "public function currentBranch()\n {\n return $this->__invoke('HEAD', ['abbrev-ref' => true])[0];\n }", "title": "" }, { "docid": "53bbcef00a6526f0754f57ba4d74ce35", "score": "0.5212214", "text": "function isTree()\n\t{\n\t\treturn $this->is('__tree');\n\t}", "title": "" }, { "docid": "6800d8555d7b82c8cfd0106b3c0297f0", "score": "0.5193295", "text": "public function isAFork() : bool\n {\n return !is_null($this->paste_id);\n }", "title": "" }, { "docid": "226f61ad5c6eed7d66655bb0d1632f2f", "score": "0.51795065", "text": "private function deleteBranchById(int $id, int $rootid): bool\n {\n // delete branch with all children\n $query = \"DELETE FROM `\" . $this->addTable('categories') . \"`\n \t\t\t\tWHERE\n \t\t\t\t\t`rootid` = :rootid\n \t\t\t\tAND\n \t\t\t\t\t(`parentid` = :id || `id` = :id)\n \t\";\n \n try {\n \n $this->PdoWrapper->prepare($query);\n $this->PdoWrapper->bindValue(':id', $id, PDO::PARAM_INT);\n $this->PdoWrapper->bindValue(':rootid', $rootid, PDO::PARAM_INT);\n $this->PdoWrapper->execute();\n \n if ($this->PdoWrapper->rowCount() > 0) {\n return true;\n }\n } catch (\\PDOException $e) {\n \n $message = $e->getMessage();\n $message .= $e->getTraceAsString();\n $message .= $e->getCode();\n $this->ErrorLog->logError('DB', $message, __METHOD__ . ' - Line: ' . __LINE__);\n }\n \n return false;\n }", "title": "" }, { "docid": "7cb786b005ef6d7e436fbedb759da4c2", "score": "0.51757663", "text": "public function branch()\n {\n return $this->belongsTo(Branch::class);\n }", "title": "" }, { "docid": "31718f977c430709377b92b8d3284078", "score": "0.5166837", "text": "public function getBranch(NtUid $id);", "title": "" }, { "docid": "41ea68714e6287bd2514d5282d600a56", "score": "0.5164593", "text": "function bbp_is_forum_closed($forum_id = 0, $check_ancestors = \\true)\n{\n}", "title": "" }, { "docid": "98a2b59b0a623426b7f3e373e284f65d", "score": "0.516453", "text": "function isTree() {\n\t\treturn $this->table->isTree();\n\t}", "title": "" }, { "docid": "a49775f8ce172e24f0e668cf92ebd292", "score": "0.51561296", "text": "public function findBranch(NtUid $id);", "title": "" }, { "docid": "721b4ec87e6017b0b0c9f10a4fee6a15", "score": "0.51087713", "text": "function bbp_is_forum_open($forum_id = 0, $check_ancestors = \\true)\n{\n}", "title": "" }, { "docid": "e1d1e94e3b45ff729578881f0d77f71a", "score": "0.5104497", "text": "public static function isTree();", "title": "" }, { "docid": "14f0eba53e4fcf1a59ef5943c9d58683", "score": "0.50962305", "text": "function isBNode($o) {\r\n\t\treturn (substr ( $o, 0, 2 ) == '_:');\r\n\t}", "title": "" }, { "docid": "6af7970347f822b323a3c552e0d8282d", "score": "0.50910646", "text": "public function isTag() {\n return $this->getRefType() == self::GITHUB_REF_TAG_TYPE;\n }", "title": "" }, { "docid": "a5926b99a417c78b30606f66f865377b", "score": "0.50645095", "text": "public function hasForkid()\n {\n return $this->forkid !== null;\n }", "title": "" }, { "docid": "115d30891275ab8142ab44b0a50744c0", "score": "0.5054964", "text": "function isTree() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "49ec30d8786f367822ebbe12bff3375f", "score": "0.49961445", "text": "function get_branch_list($path)\n{\n chdir($path);\n $output = $branches = array();\n exec('git branch -r', $output);\n\n foreach ($output as $string) {\n $trim = trim($string);\n $parts = explode('/', $trim);\n\n if ($parts[1] != 'HEAD' && $parts[1] != 'master') {\n $branches[$parts[1]] = $trim;\n }\n }\n\n return $branches;\n}", "title": "" }, { "docid": "b078f7b6c5217fa0353b03d5c8906895", "score": "0.49819598", "text": "protected function getGitBranch(): string\n {\n return @exec('git rev-parse --abbrev-ref HEAD');\n }", "title": "" }, { "docid": "a5c4605d050d81a8f78fdecdfa163ae1", "score": "0.4974171", "text": "public function hasBombs(): bool\n {\n return $this->has('BombsC4')\n || $this->has('BombsC5')\n || $this->has('BombsC6')\n || $this->has('BombsC7');\n }", "title": "" }, { "docid": "2847b433d702accbc16cd372f3aa8d49", "score": "0.4968778", "text": "public function hasSubType()\n {\n return $this->sub_type !== null;\n }", "title": "" }, { "docid": "2847b433d702accbc16cd372f3aa8d49", "score": "0.4968778", "text": "public function hasSubType()\n {\n return $this->sub_type !== null;\n }", "title": "" }, { "docid": "c3a7bb1c5c9977fbf609ba08f75ae8de", "score": "0.4956689", "text": "public function isB2b()\n {\n return (bool) ($this->getQuote()->getBillingAddress()->getCompany());\n }", "title": "" }, { "docid": "5fddab5a614731d41d8de7169e41f33e", "score": "0.49503106", "text": "public function branch_create($args, $assoc_args) {\n $site = SiteFactory::instance($assoc_args['site']);\n $branch = preg_replace('#[-_\\s]+#',\"\",@$assoc_args['branch']);\n $branch = $site->createBranch($branch);\n }", "title": "" }, { "docid": "b9f1697bee2d31f1d2f66c51cff1995a", "score": "0.49373025", "text": "public function getBranches() {\n\t\t// Return the current \n\t\t// list of branches\n\t\treturn $this->aBranches;\n\t}", "title": "" }, { "docid": "156706e91d56e168cd8c1449f7fa1546", "score": "0.49367905", "text": "protected function test_br()\n\t{\n\t\t$return = true;\n\n\t\tif (preg_match('#<br(\\s+)?>#', $this->file_contents))\n\t\t{\n\t\t\t$return = $this->display_line_code(mpv::ERROR_FAIL, 'USAGE_BR_NON_CLOSED', false, '#<br(\\s+)?>#');\n\t\t}\n\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "de80ff31f24e2fb7ae5fbf661ace6ba7", "score": "0.49242222", "text": "function is_child($object)\n\t{\n\t\treturn ( $object->exists() && $this->is_valid_node($object) && $object->{$this->_leftindex} > 1 );\n\t}", "title": "" }, { "docid": "17a588df6f07374693751847bcf56f55", "score": "0.49232292", "text": "public function isBinary()\n {\n return 'b' === $this->flag;\n }", "title": "" }, { "docid": "b80453d2a827c678eb27f5ada21bc4b8", "score": "0.49145028", "text": "public function createBranch($branchName)\n\t{\n\t\t$command = 'branch ' . $branchName;\n\t\t$this->_branches = NULL;\n\t\treturn $this->run($command);\n\t}", "title": "" }, { "docid": "879cdfed178724d5baebe7c97ee2121a", "score": "0.49141565", "text": "function hasTree()\n\t{\n\t\treturn $this->has('__tree');\n\t}", "title": "" }, { "docid": "3caff2708a54bd2ac9c17c6bfef58d58", "score": "0.49132836", "text": "public function branch($name = 'default')\n {\n /* no validation needed since the 'default' branch always exists */\n $this->addOption('branch', $name);\n\n /* For the fluent API */\n return $this;\n }", "title": "" }, { "docid": "7aef2c098b3399732cd5f4f0f0e5ce95", "score": "0.4910736", "text": "function is_tree($tree_id, $post_type = 'page') {\n \tglobal $post;\n\n \t$ancestors = get_ancestors($post->ID, $post_type);\n\n \tif( is_page($tree_id) or in_array($tree_id, $ancestors) ) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n }", "title": "" }, { "docid": "38133af6dfe2214b663438d30d5fa1c1", "score": "0.48996344", "text": "function is_bbpress()\n{\n}", "title": "" }, { "docid": "722b97d9e9b11e655d2f9a300beb3319", "score": "0.48953962", "text": "public function branch()\n {\n return $this->belongsTo(Branch::class, 'branch_id');\n }", "title": "" }, { "docid": "c65fbf2c1178907c518498b663abe14f", "score": "0.48948196", "text": "public function validateForm(array &$form, FormStateInterface $form_state) {\n // Check if branch exists.\n $branchName = $form_state->getValue('branch_name');\n if ($this->repoController->branchExists($branchName)) {\n $form_state->setErrorByName('branch_name',\n $this->t('The branch already exists.'));\n }\n\n }", "title": "" }, { "docid": "422d8448d4010d3024a602af7bcdadfb", "score": "0.48945585", "text": "public function hasBranch($branch)\n\t{\n\t\tif($branch instanceof GitBranch)\n\t\t{\n\t\t\t$branch = $branch->name;\n\t\t}\n\n\t\t$branches = $this->getBranches();\n\t\treturn isset($branches[$branch]);\n\t}", "title": "" }, { "docid": "c3c2fce16dbf17a49b36f6cf975a2e8f", "score": "0.48913577", "text": "public function getBranches($callGitHub = false, Carbon $after = null){\n //If not empty OR switch was sent, call GitHub\n //Determine which branches are new or which were deleted.\n\n if(is_null($this->branches)) $this->branches = Branch::whereRepositoryId($this->github_id)->get();\n\n if($callGitHub || $this->branches->isEmpty()){\n //TODO when opening up to users outside of the org, need to change the instantiation of GitHub\n $gitHub = new GitHub(User::first());\n\n $this->resource = str_replace($gitHub->getHost().\"/\", '', str_replace('{/branch}', '', $this->getBranchesUrl()));\n\n $gitHubBranches = new Collection();\n foreach ($gitHub->get($this) as $key => $attributes){\n $attributes['repository_id'] = $this->github_id;\n\n $gitHubBranches->push(new Branch($attributes));\n }\n\n do{\n $linkHeader = $gitHub->getResponse()->getHeader('link');\n\n if(!empty($linkHeader)){\n $branchLinksRaw = explode('; ', $linkHeader[0]);\n $branchLinks['next'] = str_replace('<' . $gitHub->getHost() . '/', '', str_replace('>', '', $branchLinksRaw[0]));\n $branchLinks['last'] = str_replace($gitHub->getHost() . '/', '', substr(substr($branchLinksRaw[1], strpos($branchLinksRaw[1], '<') + 1), 0, -1));\n\n $this->resource = $branchLinks['next'];\n\n $moreBranches = $gitHub->get($this);\n\n foreach ($moreBranches as $anotherOne){\n $anotherOne['repository_id'] = $this->github_id;\n $anotherOne = new Branch($anotherOne);\n $gitHubBranches->push($anotherOne);\n }\n }else{\n $branchLinks['next'] = [];\n $branchLinks['last'] = [];\n }\n\n }while($branchLinks['next'] != $branchLinks['last']);\n\n $oldBranches = [];\n\n foreach ($this->branches as $storedBranch){\n foreach ($gitHubBranches as $key => $gitHubBranch){\n if($storedBranch->name == $gitHubBranch->name){\n break;\n }\n\n if($key == count($gitHubBranches) - 1){\n\n $oldBranches[] = $storedBranch;\n }\n }\n }\n\n foreach ($oldBranches as $oldBranch){\n $oldBranch->delete();\n }\n\n /*\n Possibly don't need this because on Branch instantiation, branch data is inserted into DB\n $newBranches = [];\n foreach ($gitHubBranches as $gitHubBranch){\n //Site branches, if they are NOT in the stored branches, need to save.\n foreach ($this->branches as $key => $storedBranch){\n if($gitHubBranch->name == $storedBranch->name){\n break;\n }\n\n if($key == count($this->branches) - 1){\n\n $newBranches[] = $gitHubBranch;\n }\n }\n }*/\n\n }\n\n $branchQuery = Branch::whereRepositoryId($this->github_id);\n\n if(!is_null($after)) $branchQuery->where('created_at', '>=', $after->toDateTimeString());\n\n return $this->branches = $branchQuery->get();\n }", "title": "" }, { "docid": "2ca0463effb103c5e00cb8c2afc0b1d5", "score": "0.4891132", "text": "function validate_branch(){\n $this->form_val_setrules_branch(); \n if($this->form_validation->run() == False){\n switch($this->input->post('action')){\n case 'Add':\n $this->session->set_flashdata('error','Not Saved! Please Recheck the form'); \n $this->add_branch($this->input->post('customer_id'));\n break;\n case 'Edit':\n $this->session->set_flashdata('error','Not Saved! Please Recheck the form');\n $this->edit_branch($this->input->post('customer_id'),$this->input->post('id'));\n break;\n case 'Delete':\n $this->delete_branch($this->input->post('customer_id'),$this->input->post('id'));\n break;\n } \n }\n else{\n switch($this->input->post('action')){\n case 'Add':\n $this->create_branch();\n break;\n case 'Edit':\n $this->update_branch();\n break;\n case 'Delete':\n $this->remove_branch();\n break;\n case 'View':\n $this->view_branch();\n break;\n }\t\n }\n\t}", "title": "" }, { "docid": "04c01287206f82c494a26e51bb9e81f5", "score": "0.4889692", "text": "public function getBranches(){\n\t\t\t$branchesArr=array(\n\t\t\t\"OMBL\"=>\"Burbank\",\n\t\t\t\"OMBS\"=>\"San Diego\"\n\t\t\t);\n\t\t\treturn $branchesArr;\n\t\t}", "title": "" }, { "docid": "21bb9f6cc8b94702e883f73359898827", "score": "0.48837355", "text": "public function deleteBranchByIdController(int $id, int $rootid): bool\n {\n if ($this->PdoWrapper->inTransaction() !== true) {\n \n $this->PdoWrapper->beginTransaction();\n \n $branch = $this->getCategoryInfoById($id);\n \n if (is_array($branch) && $this->deleteBranchById((int) $id, (int) $rootid) === true) {\n \n if ($this->updateLeftRightAfterDeleteBranchLeft((array) $branch, (int) $rootid, (int) $id) === true) {\n \n if ($this->updateLeftRightAfterDeleteBranchRight((array) $branch, (int) $rootid, (int) $id) === true) {\n \n $this->PdoWrapper->commit();\n return true;\n }\n }\n }\n \n $this->PdoWrapper->rollBack();\n }\n \n return false;\n }", "title": "" }, { "docid": "19ee290915cf46d1dcf5719ed36da469", "score": "0.4879902", "text": "function _is_wcf_checkout_type() {\n\n\tif ( wcf()->utils->is_step_post_type() ) {\n\n\t\tglobal $post;\n\n\t\tif ( 'checkout' === get_post_meta( $post->ID, 'wcf-step-type', true ) ) {\n\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n}", "title": "" }, { "docid": "ae652a3062c69ba2f5d002d2f3e4001b", "score": "0.48736638", "text": "public function getBranchCount(){\r\n\t\treturn sizeof($this->warehouse_model->getBranchCount());\r\n\t}", "title": "" }, { "docid": "c1d03f546bada27fe16e6038cb19a0da", "score": "0.48619303", "text": "public function verifyRepository()\n {\n $payload = $this->getPayload();\n\n // Check if the repository name matches the given name in the config file,\n // as well as the branch name which defaults to 'master'.\n return $payload['project']['path_with_namespace'] === config('webhook.repository')\n && str_replace('refs/heads/', '', $payload['ref']) === config('webhook.branch');\n }", "title": "" }, { "docid": "be26887476016b39872a7db509b2e7de", "score": "0.4840501", "text": "protected function getBranchFromHead()\n {\n $ref = array_get( $this->payload, 'ref', '' );\n\n return str_replace( 'refs/heads/', '', $ref );\n }", "title": "" }, { "docid": "373d2841ff3a3b9514a65ac50240d8f6", "score": "0.48311183", "text": "public function hasBreadcrumbs() {\n\t\treturn isset($this->_breadcrumbs);\n\t}", "title": "" }, { "docid": "491ba7cc96171cc022b8c716f1d60946", "score": "0.48283702", "text": "public function isInRcdataState()\n {\n return $this->getState() instanceof RcdataState;\n }", "title": "" } ]
0c62c6060b8f5f8012e920d7f960af52
find number of distinct nonblack inks on a quote
[ { "docid": "e023592403aeb5d84a7da825648aa163", "score": "0.63142717", "text": "function estcalcdistinctnbinks($quoteid) {\n global $conn, $lang,$userid,$active_company;\n $recordSet=&$conn->Execute('select count(distinct estquotestockink.inkid) from estquote,estquotestock,estquotestockink,estquoteink where estquoteink.id=estquotestockink.inkid and estquote.id=estquotestock.quoteid and estquotestockink.type!='.sqlprep(SD_INK_BLACK).' and estquotestock.id=estquotestockink.quotestockid and estquote.id='.sqlprep($quoteid));\n if ($recordSet&&!$recordSet->EOF) $distinctnbinks=$recordSet->fields[0];\n return $distinctnbinks;\n }", "title": "" } ]
[ { "docid": "2b144f0b3be6c2f6f9f35caa784cd9f7", "score": "0.64775085", "text": "function estcalcdistinctnbinkspart($quoteid,$quotestockid) {\n global $conn, $lang,$userid,$active_company;\n $distinctnbinks=0;\n $recordSet=&$conn->Execute('select count(distinct estquotestockink.inkid) from estquote,estquotestock,estquotestockink,estquoteink where estquoteink.id=estquotestockink.inkid and estquote.id=estquotestock.quoteid and estquotestockink.type!='.sqlprep(SD_INK_BLACK).' and estquotestock.id=estquotestockink.quotestockid and estquotestock.id='.sqlprep($quotestockid).' and estquote.id='.sqlprep($quoteid));\n if ($recordSet&&!$recordSet->EOF) $distinctnbinks=$recordSet->fields[0];\n return $distinctnbinks;\n }", "title": "" }, { "docid": "156ae92c8b4a5ae099c2fef160a62a2a", "score": "0.5801221", "text": "function estnuminksside($quoteid,$side) {\n global $conn, $lang,$userid,$active_company;\n $recordSet=&$conn->Execute('select count(distinct estquotestockink.inkid) from estquote,estquotestock,estquotestockink where estquote.id=estquotestock.quoteid and estquotestock.id=estquotestockink.quotestockid and estquote.id='.sqlprep($quoteid).' and estquotestockink.side='.sqlprep($side));\n if ($recordSet&&!$recordSet->EOF) $distinctinks=$recordSet->fields[0];\n return $distinctinks;\n }", "title": "" }, { "docid": "cdd42d7b32b6b7666bfbb603e77489e2", "score": "0.55811244", "text": "public function getQuoteCount( $text )\n\t{\n\t\treturn substr_count( $text, '<blockquote' );\n\t}", "title": "" }, { "docid": "8401680c3402081c8e558e575515b82a", "score": "0.54950565", "text": "function getQuotationCount()\n {\n $result = $this->query(\"SELECT COUNT(*) as count FROM `\".$this->tblPrefix.$this->table.\"` WHERE client_id='\".$this->logUser.\"'\");\n return $result['0']['count'];\n }", "title": "" }, { "docid": "ea5990c8d53b7811c3a130c65d9116ef", "score": "0.5315991", "text": "function get_unique_object_count(){\n\t\n\tGLOBAL $cmd_pre;\n\tGLOBAL $cmd_post;\n\t\n\t$qry = \"select count(distinct ?z) where { graph ?g {?x ?y ?z} FILTER regex(?g, \\\"bio2rdf\\\") } \";\n\t\n\t$cmd = $cmd_pre.$qry.$cmd_post;\n\t\n\t$out = \"\";\n\t\n\ttry {\n\t\t$out = execute_isql_command($cmd);\n\t} catch (Exception $e){\n\t\techo 'iSQL error: ' .$e->getMessage();\n\t\treturn null;\n\t}\n\t\n\t$split_results = explode(\"Type HELP; for help and EXIT; to exit.\\n\", $out);\n\t$split_results_2 = explode(\"\\n\\n\", $split_results[1]);\n\t$results = trim($split_results_2[0]);\n\t\n\tif (preg_match(\"/^0 Rows./is\", $results) === 0) {\n\t\treturn $results;\n\t} else {\n\t\treturn null;\n\t}\n}", "title": "" }, { "docid": "8a4f02abdf63299d9f21ad6265ceebc0", "score": "0.53120464", "text": "function get_unique_predicate_count(){\n\t\n\tGLOBAL $cmd_pre;\n\tGLOBAL $cmd_post;\n\t\n\t$qry = \"select count(distinct ?y) where { graph ?g {?x ?y ?z} FILTER regex(?g, \\\"bio2rdf\\\") } \";\n\t\n\t$cmd = $cmd_pre.$qry.$cmd_post;\n\t\n\t$out = \"\";\n\t\n\ttry {\n\t\t$out = execute_isql_command($cmd);\n\t} catch (Exception $e){\n\t\techo 'iSQL error: ' .$e->getMessage();\n\t\treturn null;\n\t}\n\t\n\t$split_results = explode(\"Type HELP; for help and EXIT; to exit.\\n\", $out);\n\t$split_results_2 = explode(\"\\n\\n\", $split_results[1]);\n\t$results = trim($split_results_2[0]);\n\t\n\tif (preg_match(\"/^0 Rows./is\", $results) === 0) {\n\t\treturn $results;\n\t} else {\n\t\treturn null;\n\t}\n}", "title": "" }, { "docid": "c829dda51aafb06f55a0c8aa23995abd", "score": "0.52741766", "text": "function get_unique_subject_count(){\n\t\n\tGLOBAL $cmd_pre;\n\tGLOBAL $cmd_post;\n\t\n\t$qry = \"select count(distinct ?x) where { graph ?g {?x ?y ?z} FILTER regex(?g, \\\"bio2rdf\\\") } \";\n\t\n\t$cmd = $cmd_pre.$qry.$cmd_post;\n\t\n\t$out = \"\";\n\t\n\ttry {\n\t\t$out = execute_isql_command($cmd);\n\t} catch (Exception $e){\n\t\techo 'iSQL error: ' .$e->getMessage();\n\t\treturn null;\n\t}\n\n\t$split_results = explode(\"Type HELP; for help and EXIT; to exit.\\n\", $out);\n\t$split_results_2 = explode(\"\\n\\n\", $split_results[1]);\n\t$results = trim($split_results_2[0]);\n\t\n\tif (preg_match(\"/^0 Rows./is\", $results) === 0) {\n\t\treturn $results;\n\t} else {\n\t\treturn null;\n\t}\n}", "title": "" }, { "docid": "59c0d814a2e1b0389d59a441294d44d6", "score": "0.5215488", "text": "function unique_chords($con) {\n\n\t$uniq_ch = 0;\n\n\t$qry = 'SELECT COUNT(*) AS NUM_UNIQ_CH FROM (SELECT * FROM CHORDS GROUP BY CHORD) AS D_CH';\n\n\t$results = mysqli_query($con, $qry);\n\n\tif (mysqli_num_rows($results) > 0) {\n\n\t\twhile($row = mysqli_fetch_assoc($results)) {\n\n\t\t\t// Number of unique chords.\n\t\t\t$uniq_ch = $row['NUM_UNIQ_CH'];\n\t\t}\n\n\t\tmysqli_free_result($results);\n\t}\n\t\n\treturn $uniq_ch;\n}", "title": "" }, { "docid": "f3c8f34514eb62a26ab181e3e174b0e4", "score": "0.5160238", "text": "private function getSpecNoSkel(){\n\t\t$cnt = 0;\n\t\tif($this->collid){\n\t\t\t$sql = 'SELECT count(o.occid) AS cnt '.\n\t\t\t\t'FROM omoccurrences o '.\n\t\t\t\t'WHERE (o.collid = '.$this->collid.') AND (o.processingstatus = \"unprocessed\") '.\n\t\t\t\t'AND (o.sciname IS NULL) AND (o.stateprovince IS NULL)';\n\t\t\t$rs = $this->conn->query($sql);\n\t\t\twhile($r = $rs->fetch_object()){\n\t\t\t\t$cnt = $r->cnt;\n\t\t\t}\n\t\t\t$rs->free();\n\t\t}\n\t\treturn $cnt;\n\t}", "title": "" }, { "docid": "bc12d470c6e266b9e5c1514fa2773b22", "score": "0.51598585", "text": "public function countPossibilities()\n {\n $count = 0;\n foreach($this->dictionary as $charGroup) {\n if($count === 0) {\n $count = count($charGroup);\n } else {\n $count = $count * count($charGroup);\n }\n }\n return $count;\n }", "title": "" }, { "docid": "3eaab1e01a0db7a0c65951ba09dde533", "score": "0.5133531", "text": "function estcalcinksides($quoteid) {\n global $conn, $lang,$userid,$active_company;\n $recordSet=&$conn->Execute('select count(distinct estquotestockink.quotestockid,estquotestockink.side) from estquote,estquotestock,estquotestockink where estquote.id=estquotestock.quoteid and estquotestock.id=estquotestockink.quotestockid and estquote.id='.sqlprep($quoteid));\n if ($recordSet&&!$recordSet->EOF) $sides=$recordSet->fields[0];\n return $sides;\n }", "title": "" }, { "docid": "36e34c8d630207a225f4fc1cf05868f0", "score": "0.5086525", "text": "function countUniqChars($text)\n{\n $chars = str_split($text);\n $count = 0;\n $uniqChars = [];\n foreach ($chars as $char) {\n if (in_array($char, $uniqChars)) {\n continue;\n }\n $uniqChars[] = $char;\n $count++;\n }\n\n return $count;\n}", "title": "" }, { "docid": "0df0de1c8a051c23950dbb72f6e7624f", "score": "0.50796616", "text": "function countUniqChars($text)\n{\n $unique = [];\n foreach (array_diff(str_split($text), [null]) as $char) {\n if (!in_array($char, $unique)) {\n $unique[] = $char;\n }\n }\n return count($unique);\n}", "title": "" }, { "docid": "499d8ae70831ee1f217e248d89eb91e7", "score": "0.50716674", "text": "function get_unique_subject_predicate_unique_object_literal_counts(){\n\t\n\tGLOBAL $cmd_pre;\n\tGLOBAL $cmd_post;\n\t\n\t$qry = \"select ?p COUNT(DISTINCT ?s) COUNT(DISTINCT ?o) where { graph ?g { ?s ?p ?o . FILTER isLiteral(?o) } FILTER regex(?g, \\\"bio2rdf\\\") }\";\n\t\n\t$cmd = $cmd_pre.$qry.$cmd_post;\n\t\n\t$out = \"\";\n\t\n\ttry {\n\t\t$out = execute_isql_command($cmd);\n\t} catch (Exception $e){\n\t\techo 'iSQL error: ' .$e->getMessage();\n\t\treturn null;\n\t}\n\t\n\t$split_results = explode(\"Type HELP; for help and EXIT; to exit.\\n\", $out);\n\t$split_results_2 = explode(\"\\n\\n\", $split_results[1]);\n\t\n\t$results = trim($split_results_2[0]);\n\t\n\tif (preg_match(\"/^0 Rows./is\", $results) === 0) {\t\n\t\t$results_arr = array();\n\t\t\n\t\t$lines = explode(\"\\n\", $results);\n\t\tforeach($lines as $line){\n\t\t\t\t$split_line = preg_split('/[[:space:]]+/', $line);\n\t\t\t\t$results_arr[$split_line[0]][\"count\"][\"subject_count\"] = $split_line[1];\n\t\t\t\t$results_arr[$split_line[0]][\"count\"][\"object_count\"] = $split_line[2];\n\t\t}\n\n\t\treturn $results_arr;\n\t} else {\n\t\treturn null;\n\t}\n\t\n}", "title": "" }, { "docid": "ae9d6fef2f36b07d9c3658569183e883", "score": "0.5023186", "text": "public function testDistinctBeatifulNumbersTotal()\r\n {\r\n $this->assertEquals(142, $this->numberOjb->count());\r\n }", "title": "" }, { "docid": "42af78d7d93a9d7b4db2db31e98e5dcd", "score": "0.4997384", "text": "function get_number_of_triples(){\n\t\n\tGLOBAL $cmd_pre;\n\tGLOBAL $cmd_post;\n\t\n\t$qry = \"select count(*) where { graph ?g {?x ?y ?z} FILTER regex(?g, \\\"bio2rdf\\\") }\";\n\t\n\t$cmd = $cmd_pre.$qry.$cmd_post;\n\t\n\t$out = \"\";\n\t\n\ttry {\n\t\t$out = execute_isql_command($cmd);\n\t} catch (Exception $e){\n\t\techo 'iSQL error: ' .$e->getMessage();\n\t\treturn null;\n\t}\n\n\t$split_results = explode(\"Type HELP; for help and EXIT; to exit.\\n\", $out);\n\t$split_results_2 = explode(\"\\n\\n\", $split_results[1]);\n\t\n\t\t$results = trim($split_results_2[0]);\n\t\n\tif (preg_match(\"/^0 Rows./is\", $results) === 0) {\n\t\treturn $results;\n\t} else {\n\t\treturn null;\n\t}\n\t\n}", "title": "" }, { "docid": "f56830a93de7882edb39262aced5c884", "score": "0.49811172", "text": "function get_unique_subject_predicate_unique_object_counts(){\n\t\n\tGLOBAL $cmd_pre;\n\tGLOBAL $cmd_post;\n\t\n\t$qry = \"select ?p COUNT(DISTINCT ?s) COUNT(DISTINCT ?o) where { graph ?g { ?s ?p ?o . FILTER isIRI(?o) } FILTER regex(?g, \\\"bio2rdf\\\") }\";\n\t\n\t$cmd = $cmd_pre.$qry.$cmd_post;\n\t\n\t$out = \"\";\n\t\n\ttry {\n\t\t$out = execute_isql_command($cmd);\n\t} catch (Exception $e){\n\t\techo 'iSQL error: ' .$e->getMessage();\n\t\treturn null;\n\t}\n\t\n\t$split_results = explode(\"Type HELP; for help and EXIT; to exit.\\n\", $out);\n\t$split_results_2 = explode(\"\\n\\n\", $split_results[1]);\n\t$results = trim($split_results_2[0]);\n\t\n\tif (preg_match(\"/^0 Rows./is\", $results) === 0) {\n\t\n\t\t$results_arr = array();\n\t\t\n\t\t$lines = explode(\"\\n\", $results);\n\t\tforeach($lines as $line){\n\t\t\t\t$split_line = preg_split('/[[:space:]]+/', $line);\n\t\t\t\t$results_arr[$split_line[0]][\"count\"][\"subject_count\"] = $split_line[1];\n\t\t\t\t$results_arr[$split_line[0]][\"count\"][\"object_count\"] = $split_line[2];\n\t\t}\n\n\t\treturn $results_arr;\n\t} else {\n\t\treturn null;\n\t}\n\t\n}", "title": "" }, { "docid": "21995353c67e4eee9bb7b873186e57a9", "score": "0.49069762", "text": "public function getBlackListCount()\n {\n return $this->count(self::_BLACK_LIST);\n }", "title": "" }, { "docid": "06ec880dedb1c10d6ea6ae5b83d824f4", "score": "0.48892736", "text": "public static function getUnprocessedCount(Bracket $bracket) {\r\n $retVal = (object)[ 'total' => 0, 'uniques' => 0 ];\r\n $result = Lib\\Db::Query('SELECT COUNT(1) AS total, COUNT(DISTINCT nominee_name) AS uniques FROM `nominee` WHERE bracket_id = :bracketId AND nominee_processed IS NULL', [ ':bracketId' => $bracket->id ]);\r\n if ($result && $result->count) {\r\n $retVal = Lib\\Db::Fetch($result);\r\n }\r\n return $retVal;\r\n }", "title": "" }, { "docid": "61bd4089302b7456cedcc64af91fd80a", "score": "0.48870334", "text": "function getonbuds($uid)\n{\n $counter =0;\n $buds = mysql_query(\"SELECT uid, tid FROM ibwf_buddies WHERE (uid='\".$uid.\"' OR tid='\".$uid.\"') AND agreed='1'\");\n while($bud=mysql_fetch_array($buds))\n {\n if($bud[0]==$uid)\n {\n $tid = $bud[1];\n }else{\n $tid = $bud[0];\n }\n if(isonline($tid))\n {\n $counter++;\n }\n }\n return $counter;\n}", "title": "" }, { "docid": "2a3758e140cf731eeb3f60ae7e4d0136", "score": "0.4884473", "text": "public function getQuoteCount() : int\n {\n return $this->quoteCount;\n }", "title": "" }, { "docid": "67826c58e1a71bf442421430ace07f04", "score": "0.4874723", "text": "function count_nucleotides($pdb_id)\n {\n return $this->db->select('unit')\n ->from('unit_info')\n ->where('pdb_id', $pdb_id)\n ->where_in('unit', array('A','C','G','U'))\n ->count_all_results();\n }", "title": "" }, { "docid": "5439ecdc8bfc5b21f38b4fb776e13672", "score": "0.48636493", "text": "function calculateMissed(){\n\t\treturn count(self::$groundTruth) - count(self::$rating);\n\t}", "title": "" }, { "docid": "bddd4efa5d9d926f6e652971a1553020", "score": "0.48622164", "text": "function it_exchange_get_number_of_recovered_abandon_carts() {\n\t$carts = it_exchange_get_abandoned_carts( array( 'cart_status' => 'recovered' ) );\n\treturn count( $carts );\n}", "title": "" }, { "docid": "c7a468b35fec2a741ff2049e16cefbff", "score": "0.48245353", "text": "public function getCount()\n {\n return count($this->kids);\n }", "title": "" }, { "docid": "c1128447f6c5873ac4b140af1474149a", "score": "0.47947457", "text": "public function count() {\n\t\treturn count($this->_permutations) * $this->test->count();\n\t}", "title": "" }, { "docid": "243e138e9b52e3b8cc11877d055c250e", "score": "0.47897545", "text": "function getCount($arrayOrders) {\n $count = 0;\n foreach ($arrayOrders as $key => $value) {\n if ($value != 'none') {\n $count++;\n }\n }\n\n return $count;\n}", "title": "" }, { "docid": "b82e957e3c0e3b30f0242e557d3d3249", "score": "0.47711772", "text": "function it_exchange_get_number_of_abandoned_carts() {\n\t$carts = it_exchange_get_abandoned_carts( array( 'cart_status' => 'any' ) );\n\treturn count( $carts );\n}", "title": "" }, { "docid": "7f3a7eecf00fd2c2f3dc3817337a191e", "score": "0.47675902", "text": "function getCountOpenActiveChalls() {\n $array = challenges();\n foreach ($array as $key => $val) {\n if ($val['open'] != 1 || $val['active'] != 1 || $val['type'] != 'private') {\n unset($array[$key]);\n }\n }\n return count($array);\n}", "title": "" }, { "docid": "da6b616a685ef32beed16ddd0608a8b2", "score": "0.47503105", "text": "public function count() {\n $this->next();\n\n $names = [];\n while ($this->valid()) {\n $row_data = $this->current();\n $this->next();\n\n $names[] = $row_data['Name'];\n }\n $items = array_unique($names);\n $items = array_filter($items);\n\n return count($items);\n }", "title": "" }, { "docid": "042b3bd9d431dd3cd0f92f3ecc0449df", "score": "0.47347662", "text": "function count() ;", "title": "" }, { "docid": "3c1956eae13f6af8d9da4e1e8421673f", "score": "0.4731779", "text": "function analyze_nucleotide($row, $i)\n {\n $props = get_object_vars($row);\n\n $extreme_case = false;\n foreach ($props as $key => $value) {\n\n if (array_key_exists($key,$this->low_is_good)) {\n if ($value > $this->avg[$key]) {\n $extreme_case = true;\n break;\n }\n } else {\n if ($value < $this->avg[$key]) {\n $extreme_case = true;\n break;\n }\n\n }\n\n\n // high b values are bad, so we highlight them\n// $pos = strpos($key,'iso');\n// if ( $pos != false and $value > $this->avg[$key] ) {\n// $extreme_case = true;\n// break;\n// }\n// if ( array_key_exists($key,$this->avg) and $value < $this->avg[$key] ) {\n// $extreme_case = true;\n// break;\n// }\n }\n\n if ($extreme_case == true) {\n return array(\n $i,\n $this->make_checkbox($row->loop_id,$row->nt_ids),\n '<a class=\"pdb\">' . substr($row->nt_id,0,4) . '</a> ' . substr($row->nt_id,10),\n anchor_popup(site_url(array('motif/view/0.5',$row->motif_id)),$row->motif_id,array('width'=>'1000')),\n $this->make_label($row->sfcheck_correlation,'sfcheck_correlation'),\n $this->make_label($row->sfcheck_correlation_side_chain,'sfcheck_correlation_side_chain'),\n $this->make_label($row->sfcheck_real_space_R,'sfcheck_real_space_R'),\n $this->make_label($row->sfcheck_real_space_R_side_chain,'sfcheck_real_space_R_side_chain'),\n $this->make_label($row->sfcheck_connect,'sfcheck_connect'),\n $this->make_label($row->sfcheck_shift,'sfcheck_shift'),\n $this->make_label($row->sfcheck_shift_side_chain,'sfcheck_shift_side_chain'),\n $this->make_label($row->sfcheck_density_index_main_chain,'sfcheck_density_index_main_chain'),\n $this->make_label($row->sfcheck_density_index_side_chain,'sfcheck_density_index_side_chain'),\n $this->make_label($row->sfcheck_B_iso_main_chain,'sfcheck_B_iso_main_chain'),\n $this->make_label($row->sfcheck_B_iso_side_chain,'sfcheck_B_iso_side_chain'),\n $this->make_label($row->mapman_correlation,'mapman_correlation'),\n $this->make_label($row->mapman_real_space_R,'mapman_real_space_R'),\n $this->make_label($row->mapman_Biso_mean,'mapman_Biso_mean'),\n $this->make_label($row->mapman_occupancy_mean,'mapman_occupancy_mean')\n );\n } else {\n return array();\n }\n\n }", "title": "" }, { "docid": "cb008cd1783d029782cbac8163aa5374", "score": "0.47266448", "text": "function countAll() ;", "title": "" }, { "docid": "6aea88c70d6448cbb72b0b35deeef5bf", "score": "0.47240192", "text": "public function getLineupCount()\n {\n return $this->count(self::_LINEUP);\n }", "title": "" }, { "docid": "f90433a4439cc02f47b9b8211da173c8", "score": "0.4722938", "text": "public function calculate_number_of_equal_first_characters(){\n $counter = 0;\n for ($key=0; $key<strlen($this->initial_word); $key++) {\n if($this->initial_word[$key] == $this->final_word[$key]){\n $counter += 1;\n }else{\n $this->number_of_equal_first_characters = $counter;\n return;\n }\n }\n $this->number_of_equal_first_characters = $counter;\n }", "title": "" }, { "docid": "6aea88c70d6448cbb72b0b35deeef5bf", "score": "0.47227988", "text": "public function getLineupCount()\n {\n return $this->count(self::_LINEUP);\n }", "title": "" }, { "docid": "dfa25fbabe25fe72f2999626400c7440", "score": "0.47168723", "text": "static function get_treaties_enabled_count() {\n global $wpdb;\n $sql = $wpdb->prepare('SELECT count(*) FROM ai_treaty a WHERE a.enabled = 1 AND a.use_informea = 1', array());\n return $wpdb->get_var($sql);\n }", "title": "" }, { "docid": "782ff064f3962de20b98eaead6abf0bf", "score": "0.4715064", "text": "private function getCount()\n {\n $bd = Core::getBdd()->getDb();\n $u_insc_c = \"SELECT DISTINCT COUNT(u.id) as c FROM c_user u\";\n $insc = 0 + $bd->query($u_insc_c)->fetchObject()->c;\n return ($insc);\n }", "title": "" }, { "docid": "01dae59a9509961a338a8f0d9e93005a", "score": "0.47085443", "text": "function get_predicate_literal_counts(){\n\t\n\tGLOBAL $cmd_pre;\n\tGLOBAL $cmd_post;\n\t\n\t$qry = \"select ?p (COUNT(?o) AS ?c) where { graph ?g { ?s ?p ?o . FILTER isLiteral(?o) . } FILTER regex(?g, \\\"bio2rdf\\\") } ORDER BY DESC(?c)\";\n\t\n\t$cmd = $cmd_pre.$qry.$cmd_post;\n\t\n\t$out = \"\";\n\t\n\ttry {\n\t\t$out = execute_isql_command($cmd);\n\t} catch (Exception $e){\n\t\techo 'iSQL error: ' .$e->getMessage();\n\t\treturn null;\n\t}\n\t\n\t$split_results = explode(\"Type HELP; for help and EXIT; to exit.\\n\", $out);\n\t$split_results_2 = explode(\"\\n\\n\", $split_results[1]);\n\t$results = trim($split_results_2[0]);\n\t\n\tif (preg_match(\"/^0 Rows./is\", $results) === 0) {\t\t\t\n\t\t$results_arr = array();\n\t\t\n\t\t$lines = explode(\"\\n\", $results);\n\t\tforeach($lines as $line){\n\t\t\t\t$split_line = preg_split('/[[:space:]]+/', $line);\n\t\t\t\t$results_arr[$split_line[0]] = $split_line[1];\n\t\t}\n\n\t\treturn $results_arr;\n\t} else {\n\t\t\treturn null;\n\t}\n}", "title": "" }, { "docid": "ebdf2a8775c18e5b8ac60012324c354d", "score": "0.4708317", "text": "public function getCount() {\n $result = array();\n\n $result['normal'] = (int)$this->db->count('SELECT COUNT(DISTINCT mapname) FROM playertimes WHERE mapname NOT IN ('.$this->ignored.') AND mapname NOT LIKE \"prokz%\" AND mapname NOT LIKE \"kzpro%\"');\n $result['prokz'] = (int)$this->db->count('SELECT COUNT(DISTINCT mapname) FROM playertimes WHERE mapname NOT IN ('.$this->ignored.') AND (mapname LIKE \"prokz%\" OR mapname LIKE \"kzpro%\")');\n\n return $result;\n }", "title": "" }, { "docid": "6a2180161dc7d8b2a4df5b4285ad58a2", "score": "0.47065103", "text": "function count_symbols($string){\r\n\t//Regex \\w is any non-letter, non-number: too broad\r\n\t//Better to list the ones that count\r\n\t//Escape regex symbols to gety their literal value\r\n\t$regex = '/['. preg_quote('!@#$%^&*-_+=?') . ']/';\r\n\treturn preg_match_all($regex, $string);\r\n}", "title": "" }, { "docid": "0d0c1db1df71429b7fa42659af125480", "score": "0.4690138", "text": "function count(){}", "title": "" }, { "docid": "2a7eb8df9a8fec02b92568a5ed6322ee", "score": "0.46838987", "text": "function count_vc( $word )\n {\n $m = 0;\n $length = strlen($word);\n $prev_c = false;\n for ( $i = 0; $i < $length; $i++ ) {\n $is_c = $this->is_consonant($word, $i);\n if ( $is_c ) {\n if ( $m > 0 && !$prev_c ) {\n $m += 0.5;\n }\n } else {\n if ( $prev_c || $m == 0 ) {\n $m += 0.5;\n }\n }\n $prev_c = $is_c;\n }\n $m = floor($m);\n return $m;\n }", "title": "" }, { "docid": "9da70ffc4a821a0ae5f8b1f25be44d6f", "score": "0.46727338", "text": "function countempty($checkarray) {\n\t\n\t$ret = 0;\n\t\t\n\tforeach($checkarray as $value) {\n\t\tif(is_array($value)) $ret += countempty($value);\n\t\telseif(trim($value) == \"\") $ret++;\n\t}\n\t\t\n\treturn $ret;\n}", "title": "" }, { "docid": "d4336fbf729045e5e753fadbb138f070", "score": "0.46687877", "text": "public function count_tentative()\n\t\t{\n\t\t\treturn parent::count_list('tentative_items');\n\t\t}", "title": "" }, { "docid": "7781f2010114a93598a68d534f5afc44", "score": "0.46628857", "text": "public function hasCount(){\n return $this->_has(13);\n }", "title": "" }, { "docid": "41ec9f0dfa6dc13c649a73cb3a0a679f", "score": "0.46609", "text": "function find_common_keywords($results, $original_query) {\n $I=0;\n $key_word_list = array();\n\n foreach ($results->papers as $paper) {\n\n foreach($paper->keywords as $item){\n $itemm = strtolower($item);\n\n if (array_key_exists($itemm, $key_word_list)) {\n $key_word_list[$itemm] = $key_word_list[$itemm] + 1;\n }\n else if ($itemm != strtolower($original_query)) {\n $key_word_list[$itemm] = 1;\n }\n }\n }\n\n arsort($key_word_list);\n\n $k = array_keys($key_word_list);\n $k = array_slice($k, 0, 10);\n return $k;\n }", "title": "" }, { "docid": "5d4af196e3e9a421007c9c192013a342", "score": "0.46601865", "text": "function actual_count($data)\n{\n //do not ask me why, but count() doesn't work on $result->turns\n $i = 0;\n foreach ($data as $stuff) {\n $i++;\n }\n\n return $i;\n}", "title": "" }, { "docid": "3841ab33a6b0871e267c5bbb87d1507f", "score": "0.46555108", "text": "public function getMarkPriceInfoCount()\n {\n return $this->count(self::mark_price_info);\n }", "title": "" }, { "docid": "33ab66ccb58a9c9411a5e32c23a65d75", "score": "0.465297", "text": "public static function count();", "title": "" }, { "docid": "e19c515184914c109bb45f6731d06362", "score": "0.46528733", "text": "function getOcurrencesLetters($book) {\n $count = array();\n $strlen = strlen($book); // O(1)\n for ($i = 0; $i <= $strlen; $i++) {\n $char = substr($book, $i, 1);\n if ($char) {\n if (!isset($count[$char])) {\n $count[$char] = 0;\n }\n $count[$char] += 1;\n }\n }\n return $count;\n}", "title": "" }, { "docid": "28d5654fea9a95a1124a17113f572b42", "score": "0.46518603", "text": "function GetNumberOfMatchesEQ()\n {\n return sizeof($this->equal_skin_matches);\n }", "title": "" }, { "docid": "6fb02ece46edd21be53ca9cc8a0e5088", "score": "0.46415883", "text": "public static function get_checkword_with_number_comments_have() {\n\t\t$checkwords = CheckwordsQModel::get_checkwords_all();\n\t\tforeach ($checkwords as $key => $checkword) {\n\t\t\t$comments = CommentsQModel::search_comments_by_keyword($checkword->checkword);\n\t\t\t$checkword->number = count($comments);\n\t\t}\n\n\t\treturn $checkwords;\n\t}", "title": "" }, { "docid": "db15c3e4f1050b93378da8771d2196f7", "score": "0.46379623", "text": "public function hasCounts(){\n return $this->_has(6);\n }", "title": "" }, { "docid": "d726c35022d69fe664683e42fc1ae03e", "score": "0.46378657", "text": "function countCand($pid)\n\t\t {\n\t\t $sql = \"SELECT COUNT(DISTINCT cand_id) As cnt FROM pof_candidates WHERE pofid =\".$pid.\"\";\n\t $q = $this->db->query($sql);\n\t $row = $q->row();\n\t return $row->cnt;\n\t\t }", "title": "" }, { "docid": "8d0d95a310ce7702642df2dabedb65a5", "score": "0.46362963", "text": "public function incomming ()\n {\n $stock = 0;\n\n foreach ($this->batches as $batch) {\n $edge = $batch->article()->edge($this);\n\n $stock = $stock + $edge->count;\n }\n\n return $stock;\n }", "title": "" }, { "docid": "4889b3ff14155753fb8637cfe13505af", "score": "0.46351823", "text": "function count_wishlist() {\n $total_items = 0;\n if (is_array($this->wishID)) {\n reset($this->wishID);\n while (list($wishlist_id, ) = each($this->wishID)) {\n $total_items++;\n }\n }\n\n return $total_items;\n }", "title": "" }, { "docid": "ea04f64ae450cae796224c4764439f82", "score": "0.46343648", "text": "public function getCompCount()\n {\n return $this->count(self::_COMP);\n }", "title": "" }, { "docid": "c48d0bb68a304f56dafe7aed86eb7488", "score": "0.4611194", "text": "function mb_count_chars($input) {\r\n\t\t$l = mb_strlen($input);\r\n\t\t$unique = array();\r\n\t\tfor($i = 0; $i < $l; $i++) {\r\n\t\t\t$char = mb_substr($input, $i, 1);\r\n\t\t\tif(!array_key_exists($char, $unique))\r\n\t\t\t\t$unique[$char] = 0;\r\n\t\t\t$unique[$char]++;\r\n\t\t}\r\n\t\treturn $unique;\r\n\t}", "title": "" }, { "docid": "3da4eec11c5f07febb45851918140910", "score": "0.4609272", "text": "function woocommerce_result_count() {\n\t\t\treturn;\n\t}", "title": "" }, { "docid": "d2c64b66eaf7f10b86a45697714988cf", "score": "0.4593294", "text": "public function getSumNbConvertedCarts()\n {\n $nbFlaged = Mage::getModel('abandonment/orderflag')->getResource()\n ->getSumNbConvertedCarts($this->_getFilterStartingPeriod(), $this->_getFilterEndingPeriod());\n return $nbFlaged;\n }", "title": "" }, { "docid": "efd2aaaaae27b7d5495c9645880ee0d0", "score": "0.45882437", "text": "function CountCorrectAns(){\n\t\n\t\t\t\tglobal $count;\n\t\t\t\twhile($correct){\n\t\t\t\t\t$count++;\n\t\t\t\t}\n\t\t\t\treturn $count;\n\t\t\t}", "title": "" }, { "docid": "40046f61237caa27039666054609a163", "score": "0.4585195", "text": "function countCvsent($pid)\n\t\t {\n\t\t $sql = \"SELECT COUNT(DISTINCT cand_id) As cnt FROM pof_candidates WHERE pofid =\".$pid.\" AND stage IN (SELECT id FROM segment_name WHERE segment_type_id='5' ) \";\n\t $q = $this->db->query($sql);\n\t $row = $q->row();\n\t return $row->cnt;\n\t\t }", "title": "" }, { "docid": "dfa08d94101c549efc7dc5c223edc545", "score": "0.45812497", "text": "public function count(): int\n {\n return count($this->_qualifiers);\n }", "title": "" }, { "docid": "36830d3d4034337b912b295a056340ed", "score": "0.45780787", "text": "function cicleinscription_get_count_blacklistexceeded(){\n\tglobal $DB;\n\t\n\t$sql = \"SELECT\n\t\t\t\tCount(username) as total\n\t\t\tFROM \n\t\t\t\t{ci_blacklist}\n\t\t\tWHERE \n\t\t\t\tstatusblacklist = 's'\n\t\t\tAND TIMESTAMPDIFF(YEAR, FROM_UNIXTIME(datetimeinput), CURRENT_TIMESTAMP) > 0;\";\n\t\t\t\n\treturn $DB->get_record_sql($sql);\n}", "title": "" }, { "docid": "f23f5c66d3fe221ed516eef230cb3ab8", "score": "0.4576878", "text": "public function count()\n {\n return count($this->valueOf());\n }", "title": "" }, { "docid": "ccdb6aa5671d9810a1505d831566d196", "score": "0.45739028", "text": "function findNumberOfPlaces($seq, $sem)//sequence and semester\n\t{\n\t\t$ret = 0;\n\t\tfor($b = 0; $b<count($seq[$sem]); $b++)\n\t\t{\n\t\t\tif(is_null($seq[$sem][$b]))\n\t\t\t\t$ret += 1;\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "613f96a15ace04c25d6bd481ee1c67f4", "score": "0.4566113", "text": "private function getUsedCoupons()\n\t{\n\t\t$db = $this->getDbo();\n\t\t$query = $db->getQuery(true);\n\n\t\t$query->select('coupon_id, count(*) as num')\n\t\t\t->from('#__conferenceplus_coupons_inuse')\n\t\t\t->where($db->qn('ticket_id') . ' <> 0')\n\t\t\t->where($db->qn('payment_id') . ' <> 0')\n\t\t\t->group('coupon_id');\n\n\t\t$db->setQuery($query);\n\n\t\treturn $db->loadObjectList('coupon_id');\n\n\t}", "title": "" }, { "docid": "83c54d67d96add692da19f0ee462e2ca", "score": "0.4564953", "text": "function count_black(\n array $black_tiles\n): int\n{\n return count($black_tiles);\n}", "title": "" }, { "docid": "f03d8a4f1272855978dffb88c1cb7de7", "score": "0.4557044", "text": "public abstract function get_counts();", "title": "" }, { "docid": "e408f5feb99964bbf63c87df8895c65c", "score": "0.45473313", "text": "public function countAncestors();", "title": "" }, { "docid": "170185cedaddcb230c295acfa1458861", "score": "0.45424497", "text": "abstract public function count();", "title": "" }, { "docid": "170185cedaddcb230c295acfa1458861", "score": "0.45424497", "text": "abstract public function count();", "title": "" }, { "docid": "170185cedaddcb230c295acfa1458861", "score": "0.45424497", "text": "abstract public function count();", "title": "" }, { "docid": "170185cedaddcb230c295acfa1458861", "score": "0.45424497", "text": "abstract public function count();", "title": "" }, { "docid": "59d63538a5d03398a1afbb34301190f7", "score": "0.4539026", "text": "public function countCath()\n\t{\n \t\treturn $this->findAll('kategoria')->count('*');\n\t}", "title": "" }, { "docid": "7ab44c5dd04b30ec2feafd65eb346887", "score": "0.45276904", "text": "function get_predicate_object_counts(){\n\t\n\tGLOBAL $cmd_pre;\n\tGLOBAL $cmd_post;\n\t\n\t$qry = \"select ?p (COUNT(?o) AS ?c) where { graph ?g { ?s ?p ?o . FILTER isIRI(?o) . } FILTER regex(?g, \\\"bio2rdf\\\") } ORDER BY DESC(?c)\";\n\t\n\t$cmd = $cmd_pre.$qry.$cmd_post;\n\t\n\t$out = \"\";\n\t\n\ttry {\n\t\t$out = execute_isql_command($cmd);\n\t} catch (Exception $e){\n\t\techo 'iSQL error: ' .$e->getMessage();\n\t\treturn null;\n\t}\n\t\n\t$split_results = explode(\"Type HELP; for help and EXIT; to exit.\\n\", $out);\n\t$split_results_2 = explode(\"\\n\\n\", $split_results[1]);\n\t\n\t$results = trim($split_results_2[0]);\n\t\n\tif (preg_match(\"/^0 Rows./is\", $results) === 0) {\t\n\t\t$results_arr = array();\n\t\t\n\t\t$lines = explode(\"\\n\", $results);\n\t\tforeach($lines as $line){\n\t\t\t\t$split_line = preg_split('/[[:space:]]+/', $line);\n\t\t\t\t$results_arr[$split_line[0]] = $split_line[1];\n\t\t}\n\n\t\treturn $results_arr;\n\t} else {\n\t\treturn null;\n\t}\n}", "title": "" }, { "docid": "04b68284daba5a9764243c19a9a90a1b", "score": "0.45264292", "text": "function get_number_of_classes()\r\n{\r\n\t$class_table = Database :: get_main_table(TABLE_MAIN_CLASS);\r\n\t$course_class_table = Database :: get_main_table(TABLE_MAIN_COURSE_CLASS);\r\n\t$sql = \"SELECT * FROM $course_class_table WHERE course_code = '\".$_SESSION['_course']['id'].\"'\";\r\n\t$res = api_sql_query($sql,__FILE__,__LINE__);\r\n\t$subscribed_classes = array();\r\n\twhile($obj = mysql_fetch_object($res))\r\n\t{\r\n\t\t$subscribed_classes[] = $obj->class_id;\r\n\t}\r\n\t$sql = \"SELECT c.id\tFROM $class_table c WHERE 1 = 1\";\r\n\tif (isset ($_GET['keyword']))\r\n\t{\r\n\t\t$keyword = mysql_real_escape_string($_GET['keyword']);\r\n\t\t$sql .= \" AND (c.name LIKE '%\".$keyword.\"%')\";\r\n\t}\r\n\tif( count($subscribed_classes) > 0)\r\n\t{\r\n\t\t$sql .= \" AND c.id NOT IN ('\".implode(\"','\",$subscribed_classes).\"')\";\r\n\t}\r\n\t$res = api_sql_query($sql, __FILE__, __LINE__);\r\n\t$result = mysql_num_rows($res);\r\n\treturn $result;\r\n}", "title": "" }, { "docid": "126a8eb7071e25d58e67cb6a84b00540", "score": "0.4525128", "text": "public function dislikesCount()\n\t{\n\t\treturn $this->ratings()->where('value', -1)->count();\n\t}", "title": "" }, { "docid": "17a2691bb8bb693a95b81d5e20fd4982", "score": "0.45209563", "text": "static function customerCount( )\n {\n $db = eZDB::instance();\n $countArray = $db->arrayQuery( \"SELECT count( DISTINCT email) AS count FROM ezorder WHERE is_temporary='0'\" );\n return $countArray[0]['count'];\n }", "title": "" }, { "docid": "c20393ba19a87ba57e9c5326fee3364c", "score": "0.4513092", "text": "public function count() {\n\t\treturn count($this->_aSet);\n\t}", "title": "" }, { "docid": "a99b2ae4ffec147f88fd2140c9193ac3", "score": "0.45123753", "text": "function countCancel($query)\r\n {\r\n $sql = \"SELECT cancelReason, COUNT(*) as broj FROM `phone_order_calls`\r\n WHERE {$query}\r\n AND success LIKE 'CANCELED!'\r\n GROUP BY cancelReason\";\r\n\r\n $results=$this->conn->fetchAll($sql);\r\n return $results;\r\n }", "title": "" }, { "docid": "bd581c1763909005b87196b9b63e3fe1", "score": "0.45086715", "text": "function getnbuds($uid)\n{\n $notb = mysql_fetch_array(mysql_query(\"SELECT COUNT(*) FROM ibwf_buddies WHERE (uid='\".$uid.\"' OR tid='\".$uid.\"') AND agreed='1'\"));\n return $notb[0];\n}", "title": "" }, { "docid": "50e50875f11833c0283be9ac29cbb2da", "score": "0.45085293", "text": "public function _count();", "title": "" }, { "docid": "c6af468a6ed6d5d565eb7a334e3eb4c4", "score": "0.45076686", "text": "public function estimateElementCount()\n\t{\n\t\t$filter = array(\n\t\t\t\"IBLOCK_ID\" => $this->iblockId,\n\t\t\t\"ACTIVE\" => \"Y\",\n\t\t\t\"CHECK_PERMISSIONS\" => \"N\",\n\t\t);\n\n\t\treturn \\CIBlockElement::getList(array(), $filter, array());\n\t}", "title": "" }, { "docid": "56be9a5cfd357bae4ad5d8c260255eb2", "score": "0.45075932", "text": "function countUniqChars($s)\n{\n return count(array_unique(str_split($s)));\n}", "title": "" }, { "docid": "01421798278b1fe9488214ee4cc85452", "score": "0.45043436", "text": "public function getNumAssedic() {\n return $this->numAssedic;\n }", "title": "" }, { "docid": "df9b56de3c8926f862cbdcedcb99d92d", "score": "0.45008096", "text": "public function count()\n {\n return $this->connection->scard($this->key);\n }", "title": "" }, { "docid": "f926306c2555a011f8fac1bcf390bd64", "score": "0.44949502", "text": "public function countKeys();", "title": "" }, { "docid": "f15d8d668efcbea3b47f707ea83040e3", "score": "0.44898883", "text": "public function countAll(): int;", "title": "" }, { "docid": "23b0827c808aea8dbf02646dac964150", "score": "0.44881287", "text": "function spectra_block_txcount ($blockhash)\n\t{\n\t\t$tx_list = mysqli_getset ($GLOBALS[\"tables\"][\"tx\"], \"`in_block` = '\".$blockhash.\"'\");\n\t\t\n\t\treturn count ($tx_list[\"data\"]);\n\t}", "title": "" }, { "docid": "6ad9abdae50f562677f42300ca1b347d", "score": "0.44869602", "text": "function nb_star(){\n\t\tglobal $bdd;\n\n\t\t$req = $bdd->query(\"SELECT COUNT(id_utilisateur) AS nb_star FROM utilisateur WHERE star = TRUE\");\n\t\t\n\t\t$result = $req->fetch();\n\t\t\n\t\t$req->closeCursor();\n\t\treturn $result['nb_star'];\n\t}", "title": "" }, { "docid": "371ad22d0b3cdc09bf2947036867aa2d", "score": "0.44792035", "text": "public function numberOfUsedKey()\n {\n $hashLength = uHub('hash_length');\n $regexPattern = '['.uHub('hash_char').']{'.$hashLength.'}';\n\n $randomKey = $this->url->whereIsCustom(false)\n ->whereRaw('LENGTH(keyword) = ?', [$hashLength])\n ->count();\n\n $customKey = $this->url->whereIsCustom(true)\n ->whereRaw('LENGTH(keyword) = ?', [$hashLength])\n ->whereRaw(\"keyword REGEXP '\".$regexPattern.\"'\")\n ->count();\n\n return $randomKey + $customKey;\n }", "title": "" }, { "docid": "899a76ba5d886bab88e32459ee339c07", "score": "0.447761", "text": "public function getHerosCount()\n {\n return $this->count(self::_HEROS);\n }", "title": "" }, { "docid": "899a76ba5d886bab88e32459ee339c07", "score": "0.447761", "text": "public function getHerosCount()\n {\n return $this->count(self::_HEROS);\n }", "title": "" }, { "docid": "8c83a5667072980ba250d1ac4471f7e9", "score": "0.4477492", "text": "function minimumBribes($q)\n{\n $stepsCount = 0;\n $bribesCounts = [];\n $arrayLength = sizeOf($q)-1;\n $swapCntPerRound = 0;\n for ($i = 0; $i < $arrayLength; $i++) {\n if ($q[$i] > $q[$i+1]) {\n if (!isset($bribesCounts[$q[$i]])) {\n $bribesCounts[$q[$i]] = 0;\n }\n\n $bribesCounts[$q[$i]]++;\n\n if ($bribesCounts[$q[$i]] > 2) {\n //echo 'Too chaotic', PHP_EOL;\n return \"Too chaotic\";\n }\n\n $stepsCount++;\n $swapCntPerRound++;\n list($q[$i+1], $q[$i]) = [$q[$i], $q[$i+1]];\n }\n\n if ($i == $arrayLength-1 && $swapCntPerRound > 0) {\n $i = -1;\n $swapCntPerRound = 0;\n }\n }\n\n //echo array_sum($bribesCounts), PHP_EOL;\n return array_sum($bribesCounts);\n}", "title": "" }, { "docid": "09c1b9929765394af11d2f84d4b62e68", "score": "0.44769537", "text": "function charCounter($c, array $grid): int {\n $total = 0;\n $h = count($grid);\n $w = count($grid[array_keys($grid)[0]]);\n $y0 = min(array_keys($grid));\n $x0 = min(array_keys($grid[array_keys($grid)[0]]));\n for ($y = $y0; $y < $y0 + $h; $y++) {\n for ($x = $x0; $x < $x0 + $w; $x++) {\n if ($grid[$y][$x] === $c) {\n $total++;\n }\n }\n }\n return $total;\n }", "title": "" }, { "docid": "99c801e929e3c8eda08c0d294a7a2d78", "score": "0.44722614", "text": "function countQuests($query)\r\n {\r\n $sql = \"SELECT otherOpt, COUNT(*) as broj FROM `phone_order_calls`\r\n WHERE {$query}\r\n GROUP BY otherOpt\";\r\n $results=$this->conn->fetchAll($sql);\r\n return $results;\r\n }", "title": "" }, { "docid": "9e64e498915a1cbb83b9074bb33b1f59", "score": "0.4467558", "text": "function GetNumberOfMatchesLS()\n {\n return sizeof($this->less_skin_matches);\n }", "title": "" }, { "docid": "d45c1b4948f46202370b51caa5ba6f8d", "score": "0.44661623", "text": "function birthdayCakeCandles($ar) {\n $maxHeight = max($ar); $cnt=0;\n foreach($ar as $candle){\n if($candle == $maxHeight){\n $cnt++;\n }\n }\n return $cnt;\n}", "title": "" } ]
8e5cda3b60112f0e133d9951591fbaa9
Is the data continuous?
[ { "docid": "8da080309389313d57182289c79d5a87", "score": "0.75826246", "text": "public static function isContinuous($data) : bool\n {\n return is_int($data) or is_float($data);\n }", "title": "" } ]
[ { "docid": "c07ba390122a2f14560975b20a248c33", "score": "0.6474055", "text": "public function isZeroFill();", "title": "" }, { "docid": "7f997f3058d6b5f44e4a23899fd1be0f", "score": "0.593412", "text": "public function fitted() : bool\n {\n return isset($this->mean);\n }", "title": "" }, { "docid": "c5ab7d9eb80cbb51ab1f2443e4378407", "score": "0.5896747", "text": "public function is1D()\n {\n return (bool) ($this->_space_type & Maths::CARTESIAN_1D);\n }", "title": "" }, { "docid": "e2da30fb79cac516fd198bb8acd84578", "score": "0.5775508", "text": "public function valid(): bool\n {\n return isset($this->intervals[$this->position]);\n }", "title": "" }, { "docid": "cbf19261f309930a5a7541d8b6d82f53", "score": "0.5698425", "text": "protected function mustUseFullDataSample(): bool\n {\n return $this->getSampleSize() === 0;\n }", "title": "" }, { "docid": "bcdacdc3a17c3d56a2a3c9b8a708b457", "score": "0.5682463", "text": "public function isPositive($data) {\n\t\t$values = array_values($data);\n\t\tif (!isset($values)) {\n\t\t\treturn false;\n\t\t}\n\t\t$value = $values[0];\n\t\tif ($value >= 0.00) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "b8ab25d5e3215a29f1e283e468e7d606", "score": "0.56777865", "text": "public function hasRange()\n {\n return ($this->getOffset() !== false && $this->getOffset() >= 0 && $this->getNumberOfEntries() !== false && $this->getNumberOfEntries() > 0);\n }", "title": "" }, { "docid": "286f43d1c67bdfcdfe8d86978b92c897", "score": "0.563216", "text": "private function isXAxisOffset()\n {\n foreach ($this->data as $series) {\n if ($series['type'] == 'bar' || $series['type'] == 'stackedbar') {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "be94077b3eeb9c6c7df09c92f838ebb1", "score": "0.5609302", "text": "public function isSignal()\n {\n return ! $this->isDice() && ! $this->isVariable() && empty($this->number);\n }", "title": "" }, { "docid": "951612a9097423fb362f9f868b1617a7", "score": "0.5600288", "text": "public function hasPoint(){\r\n return $this->_has(10);\r\n }", "title": "" }, { "docid": "d7daa8b5608682a5081defaa31c83ed4", "score": "0.55818367", "text": "public function hasFixedValue();", "title": "" }, { "docid": "ad542b05df6eb87305f1c5ca9aa0f9d5", "score": "0.5509048", "text": "public function hasContinuousPipeFile()\n {\n return $this->hasContinuousPipeFile;\n }", "title": "" }, { "docid": "d44159642896ce70e12a70fa45854380", "score": "0.55079865", "text": "private function convertible(\\DateInterval $step): bool {\n\t\treturn $step->m === 0 && $step->y === 0 && $step->d === 0;\n\t}", "title": "" }, { "docid": "9a8f3cc1b317e7f5d1be237015f0951f", "score": "0.5470973", "text": "private function isFilled(): bool {\n foreach ($this->board as $row => $cols) {\n foreach ($cols as $col => $cellValue) {\n if($this->board[$row][$col] == 0 || $this->board[$row][$col] > 9 || $this->board[$row][$col] < 1) {\n return false;\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "3d8176d1fb143b31e2af5fcdad6aded9", "score": "0.54430926", "text": "function isClosed(): bool { return ($this->geom[0] == $this->geom[count($this->geom)-1]); }", "title": "" }, { "docid": "d41b0de1cd01062bdafb93daa48ece00", "score": "0.5442841", "text": "public function hasCriticalDf(){\r\n return $this->_has(13);\r\n }", "title": "" }, { "docid": "6547da84c2f6d96919564dcdfc0be95a", "score": "0.5435704", "text": "function hasData()\n {\n return true;\n }", "title": "" }, { "docid": "2be1a1e569694b370d7a151051627595", "score": "0.5422273", "text": "function is_finite ($val) {}", "title": "" }, { "docid": "9f82f205bfb0972bc37eaa3f36d4a177", "score": "0.5416844", "text": "public function hasCriticalDf(){\r\n return $this->_has(10);\r\n }", "title": "" }, { "docid": "f6453e5aed3c14e66572e09233736bcd", "score": "0.54130125", "text": "public function hasStopdf(){\r\n return $this->_has(23);\r\n }", "title": "" }, { "docid": "58897580067fcf5f89ad42b781e3f738", "score": "0.54097503", "text": "public function isFull()\n {\n if($this->rear==(count($this->array))){\n return true;\n }\n else{\n return false;\n }\n }", "title": "" }, { "docid": "db19df7070f0420cbe9bbd148ae41ad2", "score": "0.5397538", "text": "public final function hasData()\n {\n return $this->data == false ? false : true;\n }", "title": "" }, { "docid": "41110f74eec6e49ab3a1a1c4a0c5a8af", "score": "0.53847873", "text": "public function valid()\r\n {\r\n return $this->_pointer < $this->_count;\r\n }", "title": "" }, { "docid": "d01d26b0b1bad1e7796e442e0c4a65a0", "score": "0.5374625", "text": "public function hasData()\n {\n return $this->data !== null;\n }", "title": "" }, { "docid": "6fe62b9b38ce1dbfca788d204ae263b3", "score": "0.5369088", "text": "public function isFilled() : bool\n {\n for($i = 0; $i < 9; $i++) {\n if(!in_array(0, $this->row($i))) {\n return true;\n }\n } \n return false;\n }", "title": "" }, { "docid": "0f47124ca57ea7266cab38b58872d747", "score": "0.53475684", "text": "public function shouldSample()\n {\n return lcg_value() <= $this->rate;\n }", "title": "" }, { "docid": "d86385de31013195d1528851b564acc0", "score": "0.532474", "text": "public function include_range_info_in_training_data() {\n return false;\n }", "title": "" }, { "docid": "66ac7f212d5c5ae2c8cb1263309b7f39", "score": "0.53169566", "text": "public function valid() {\n return (($this->row >= 0) && ($this->row < $this->count));\n }", "title": "" }, { "docid": "cb2e9196e72014f7b142240d9a22d2a0", "score": "0.5297832", "text": "public function hasScale(): bool\n {\n return null !== $this->scale;\n }", "title": "" }, { "docid": "ccf96f217a5d8a1451c764f78a7681f6", "score": "0.5268517", "text": "public function valid(): bool\n {\n return count($this->data) != 0;\n }", "title": "" }, { "docid": "7cda9d419d99f079dbd211467c198d2e", "score": "0.5258603", "text": "public function valid(){\n\t\treturn ($this->pointer>=0 && $this->pointer<count($this->orders));\n\t}", "title": "" }, { "docid": "e8fb5ed855182fbe45795fdb1fcc97d2", "score": "0.5252511", "text": "public function hasChunkedValue(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "044d39003e10fd64bfebef66a103c0c8", "score": "0.5240936", "text": "public function hasData(): bool {\n return is_array($this->data);\n }", "title": "" }, { "docid": "233c1b06477cc2360df635157c94b4be", "score": "0.52403975", "text": "public function fitted() : bool\n {\n return isset($this->idfs);\n }", "title": "" }, { "docid": "eea6122464ad9c503b6012d25206ce77", "score": "0.52342755", "text": "public function hasData() {\n try {\n $res = TRUE;\n }\n catch (\\Exception $e) {\n $res = FALSE;\n }\n\n return $res;\n }", "title": "" }, { "docid": "b36d4aec0279ff70da6d3053c13a421d", "score": "0.5228652", "text": "public function fitted() : bool\n {\n return $this->idfs and $this->entropies;\n }", "title": "" }, { "docid": "7698d152c36c0d447e3a161cc1faa7fb", "score": "0.5219905", "text": "public function valid() : bool {\n\t\treturn key($this->data) !== null;\n\t}", "title": "" }, { "docid": "c06d1339cd92f2daa7222ca2ca63552c", "score": "0.52192646", "text": "public function hasPoint(){\r\n return $this->_has(7);\r\n }", "title": "" }, { "docid": "d4a9e43a03879b0bf89c6ff2c37a6d52", "score": "0.52122647", "text": "public function valid()\n\t{\n\t\treturn $this->_index<$this->_count;\n\t}", "title": "" }, { "docid": "ac95a1731975f33ff1d5a673f698b9a7", "score": "0.52006096", "text": "public function valid()\n\t{\n\t\treturn ($this->position < $this->rows);\n\t}", "title": "" }, { "docid": "a45a0d16385bb3cabac83cb77e9195b5", "score": "0.5194608", "text": "public function isEmpty(): bool\n {\n return [] === $this->intervals;\n }", "title": "" }, { "docid": "7675a5ff9c715cab38db0c28fc0a598b", "score": "0.51888776", "text": "function isInfinite() { # :: Num -> Bool\n return new Bool(is_infinite($this->value));\n }", "title": "" }, { "docid": "fbaa1489740c9375a3da358ad70e8050", "score": "0.5186545", "text": "public function isFilled()\n {\n return ! empty($this->data);\n }", "title": "" }, { "docid": "5de7204f24e40233aebfc0656008f141", "score": "0.5185077", "text": "public function isStart(): bool\n {\n return $this->position === 0;\n }", "title": "" }, { "docid": "36bf2987abce593dde6ac351547b9f06", "score": "0.51810473", "text": "public function shouldHaveTracesRemoved(): bool\n {\n return $this->currentConnectionsCount === 0 && $this->peakConnectionsCount === 0;\n }", "title": "" }, { "docid": "d985079c1b6ef9676c57408e7aaebbb5", "score": "0.5180592", "text": "public function trained() : bool\n {\n return $this->offset and $this->samples;\n }", "title": "" }, { "docid": "f338b7ecbc678183e15e67948da6fda1", "score": "0.5179749", "text": "protected function isEmptyDataSet($minNumberOfPoint) {\n if ($this->dataSet instanceof XYDataSet) {\n $pointList = $this->dataSet->getPointList();\n $pointCount = count($pointList);\n return $pointCount < $minNumberOfPoint;\n } else if ($this->dataSet instanceof XYSeriesDataSet) {\n $serieList = $this->dataSet->getSerieList();\n reset($serieList);\n if (count($serieList) > 0) {\n $serie = current($serieList);\n $pointList = $serie->getPointList();\n $pointCount = count($pointList);\n return $pointCount < $minNumberOfPoint;\n }\n } else {\n throw new Exception(\"unknown dataset type\", 1);\n }\n }", "title": "" }, { "docid": "3b4e0813723ce78aae118b191b0b7940", "score": "0.5156255", "text": "static public function has_curve() {}", "title": "" }, { "docid": "1815db82dc2bfd2743c9a4b1eca1ef05", "score": "0.51509666", "text": "public function hasDistanceFromStartSet() : bool;", "title": "" }, { "docid": "192cf8dad5dc2c0fc71954e8a1061b75", "score": "0.51485234", "text": "public function isZero();", "title": "" }, { "docid": "22aa490be58c2f55795cf792a21cb1b7", "score": "0.51467645", "text": "public function valid() {\n\t\treturn isset($this->data[$this->position]);\n\t}", "title": "" }, { "docid": "04f6f349c3848c110b89b61cbb762605", "score": "0.514612", "text": "function isFinite() { # :: Num -> Bool\n return new Bool(is_finite($this->value));\n }", "title": "" }, { "docid": "55b07aa4c6322bb6bc8d37ee508eb88d", "score": "0.5140898", "text": "public function valid()\n {\n return ( current( $this->data ) !== false );\n }", "title": "" }, { "docid": "d0aabf29ddc740c1df48c9e984c53cd4", "score": "0.51392716", "text": "public function getHasCoordinates(){\n\t\treturn ($this->coordinates != '') ? 1:0;\n\t}", "title": "" }, { "docid": "7c8c93225593ecbfb33403ccbf7eba56", "score": "0.51328474", "text": "public function abuts(Interval $interval): bool;", "title": "" }, { "docid": "06cf7f37fcdcab0e32bd85642cb26d7a", "score": "0.5126836", "text": "protected function isRawData(): bool\n\t{\n\t\treturn 1 === (int) $this->controller->headers['x-raw-data'];\n\t}", "title": "" }, { "docid": "1b669bd4d999a84f639227f041e5075f", "score": "0.5126519", "text": "public function isCountLoosePoints()\n {\n return true;\n }", "title": "" }, { "docid": "98cae0606b05719d9a7022947f9a98dd", "score": "0.51165164", "text": "public function valid() {\n return $this->index < $this->count;\n }", "title": "" }, { "docid": "7a994b9a8989a196f88eb483544aa24c", "score": "0.5108043", "text": "public function hasCurhair(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "d3adb5628d6ba503f4d3fb85352f0467", "score": "0.51040137", "text": "public function checkFull() {\n return (($this->col_values[5] !== '.') ? TRUE : FALSE);\n }", "title": "" }, { "docid": "5c13bf96fc759935acb916e71bd59998", "score": "0.5102441", "text": "public function isZero() {\n\t\tfor( $row = 0; $row < $this->getRows(); ++$row ) {\n\t\t\tfor( $col = 0; $col < $this->getCols(); ++$col ) {\n\t\t\t\tif( $this->matrix[$row][$col] != 0 ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ccd013fdbae953157e93097a9f92b0ef", "score": "0.5101689", "text": "public function hasPos(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "40cb4e36f252b6f945b7c82ff89bef40", "score": "0.5085089", "text": "public function valid() {\n return isset($this->_data[$this->_pointer]);\n }", "title": "" }, { "docid": "2b6a1ddbe5136a18c1fad0b68f918b71", "score": "0.508335", "text": "function valid() {\r\n return isset($this->_data[$this->_position]);\r\n }", "title": "" }, { "docid": "757011e81fb983e5a5f91b3fb222eb35", "score": "0.5075995", "text": "public function hasMarkers()\n {\n return $this->markers->count() > 0;\n }", "title": "" }, { "docid": "161ad593ff98ca65a9cbbe5377f489f0", "score": "0.50750554", "text": "public function BeginningOfSeek()\n {\n if ($this->active_row < 1)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "title": "" }, { "docid": "9b2cc1427addf6be7864fcfa32fff184", "score": "0.50724167", "text": "public function empty() : bool\n {\n return empty($this->samples);\n }", "title": "" }, { "docid": "efa8556f7e6950cf2382810dca4d9246", "score": "0.5068524", "text": "public function valid()\n {\n return $this->current >= $this->min && $this->current <= $this->max;\n }", "title": "" }, { "docid": "5e0a08e80001086afa1d2122db6f31b3", "score": "0.5060187", "text": "public function isCounterClockwise()\n {\n if ($this->isEmpty()) {\n return Shapefile::UNDEFINED;\n }\n if ($this->getOuterRing()->isClockwise(true) === true) {\n return false;\n }\n foreach ($this->getInnerRings() as $Linestring) {\n if ($Linestring->isClockwise(true) === false) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "bdb7c35e6688493502c32475e962764a", "score": "0.5056168", "text": "public function isFull() : bool;", "title": "" }, { "docid": "34812199bb15b4ff18094e010430bb80", "score": "0.505498", "text": "public function valid(): bool\n {\n return $this->currentCol != $this->cols || $this->currentRow <= $this->rows;\n }", "title": "" }, { "docid": "80b4f751e3e6503b98488d7080f69073", "score": "0.5053254", "text": "public function valid() {\n return is_array($this->data) ? key($this->data) !== null : false;\n }", "title": "" }, { "docid": "f41dd04558d35e7d10e6c3a6acc55dc3", "score": "0.5048932", "text": "public function valid()\n {\n return $this->index <= $this->length;\n }", "title": "" }, { "docid": "55784b947b28dce86c243d683b05d596", "score": "0.5048625", "text": "public function in_interval($date, $start_date) {\n //$day_count = (int) (($date - $start_date) / ICIceCube::ONE_DAY);\n //return $day_count % $this->interval == 0\n return true;\n }", "title": "" }, { "docid": "85e01287ce1cbd4ab43bc384e2f721da", "score": "0.5043339", "text": "public /*boolean*/ function valid()\r\n\t{\r\n\t\treturn $this->_chunkItem < sizeof($this->_buffer);\r\n\t}", "title": "" }, { "docid": "18e1c86e9c5815146bc3185a619fcc73", "score": "0.50279635", "text": "public function isFull(): bool;", "title": "" }, { "docid": "6c361df59ec0fb58554bd661ec987812", "score": "0.5018139", "text": "public function hasNumberOfLeadingZeros()\n {\n return $this->hasNumberOfLeadingZeros;\n }", "title": "" }, { "docid": "ffce6ae0ab38cbd87ebfe483243688ab", "score": "0.50166094", "text": "function hasValidDataField()\r\n {\r\n $result=false;\r\n\r\n if ($this->_datafield!=\"\")\r\n {\r\n if ($this->_datasource!=null)\r\n {\r\n if ($this->_datasource->Dataset!=null)\r\n {\r\n $result=true;\r\n }\r\n }\r\n }\r\n\r\n return($result);\r\n }", "title": "" }, { "docid": "38f42fdffd39afe6a27583dde2078313", "score": "0.5015988", "text": "function valid() \n {\n return $this->offsetExists($this->position);\n }", "title": "" }, { "docid": "1b44b0e3666fc2c6247d819796013dd3", "score": "0.5015573", "text": "public function fullRank() : bool\n {\n return $this->rank() === min($this->shape());\n }", "title": "" }, { "docid": "6af6b202e650cd0225beb2b15b9fa12c", "score": "0.5015491", "text": "public function has_data()\n {\n }", "title": "" }, { "docid": "07e4508c3896684a5d51f6e15d6b9587", "score": "0.50111854", "text": "public function isBandwidthGraphAvailable()\n\t{\n\t\treturn !!$this->getHasGraph() && $this->isAssignedToDevice();\n\t}", "title": "" }, { "docid": "7b732de32235c4abb63cd1b357715e25", "score": "0.5008522", "text": "function valid() {\n return ($this->pos < $this->end);\n }", "title": "" }, { "docid": "a9bb31fc23b492ae4472f59970f4b180", "score": "0.50081384", "text": "public function hasCriticalEffectdf(){\r\n return $this->_has(12);\r\n }", "title": "" }, { "docid": "2f61ed7d0a60b0ef9617686d817d6d8b", "score": "0.50076264", "text": "public function hasLastCounts(){\n return $this->_has(8);\n }", "title": "" }, { "docid": "ae48a1418888b28efe343d63a08ee168", "score": "0.50074434", "text": "function isFallo();", "title": "" }, { "docid": "6ff56afe81d07228936ef9c0165dea79", "score": "0.5001159", "text": "function GChart_is_set_axis_range($axis_set){\n\tforeach ($axis_set as $a){\n\t\tif (!empty($a->start)||!empty($a->end)){\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "ef0475de949eded57495d299e0497b67", "score": "0.4997888", "text": "public function hasStopdf(){\r\n return $this->_has(26);\r\n }", "title": "" }, { "docid": "dc45c64b97a343def27dee997aa87e5f", "score": "0.4993058", "text": "function positiveVibrationalFequencies($array) {\n if(!empty($array)) {\n $error = 0;\n foreach($array as $line) {\n $num = floatval(substr($line, 0, -7));\n if($num < 0) {\n $error = 1;\n }\n }\n if($error == 0) {\n return TRUE;\n } else {\n return FALSE;\n }\n } else {\n return null;\n }\n}", "title": "" }, { "docid": "cb17d11715d75ea1cc402ca428535f4e", "score": "0.4985746", "text": "public function hasCurcolor(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "60a50bca0e68d87b5cdef3fb83504243", "score": "0.49805862", "text": "public function isEmpty(): bool\n {\n return [] === $this->periods;\n }", "title": "" }, { "docid": "a2f9b32e565e6a5293838c64a9de19d5", "score": "0.49788886", "text": "function is_empty()\n {\n if (null === $this->value) {\n return true;\n }\n\n return (abs($this->value->format('Y')) == 1);\n }", "title": "" }, { "docid": "92c50959ad989e33833fde1eff3dedd1", "score": "0.49733248", "text": "public function valid()\n {\n return $this->current <= $this->maximum ? true : false;\n }", "title": "" }, { "docid": "860d575ff3f1777c8166d572d1eef19f", "score": "0.4973237", "text": "public function isDummy(): bool;", "title": "" }, { "docid": "4b2fc2d5ff360627021eea85aa69c7c8", "score": "0.49589956", "text": "public function valid(): bool\n {\n return $this->_index < $this->_count;\n }", "title": "" }, { "docid": "4b5b34cd325b659342db951faa881b03", "score": "0.4954617", "text": "public function hasLatitude()\n {\n return $this->Latitude !== null;\n }", "title": "" }, { "docid": "74a22af945cf5307ca89bb882d86eaa3", "score": "0.49526915", "text": "public function isCountable(): bool\n {\n return $this->getType() === static::DEFAULT_TYPE;\n }", "title": "" }, { "docid": "de794a8456d8b96940a0ee096893f91a", "score": "0.49478728", "text": "public function hasCell(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "22e932b9d1f0788884772f55bc4bbd31", "score": "0.49441", "text": "function isFull() {\n return ($this->rear+1)%$this->size==$this->front;\n }", "title": "" }, { "docid": "8471724d7fcb5599fccb13f62260bc01", "score": "0.49408513", "text": "public function hasInters(){\n return $this->_has(23);\n }", "title": "" } ]
68f6908fd4ad3fce8f878f84ac36e70c
/ Return Authenticated user instance as object
[ { "docid": "37e76196da048a40a50281a23860eec8", "score": "0.7526047", "text": "public function user() {\n if(self::check()) {\n return session(self::$guard);\n } else {\n return (object) array(\n 'username' => null,\n 'id' => null,\n 'name' => null,\n 'email' => null,\n 'avatar' => null,\n );\n }\n }", "title": "" } ]
[ { "docid": "416067d7ddb45c58128441ab599011ec", "score": "0.7517769", "text": "public function user()\n {\n $rawUserData = $this->httpClient->getUserFromToken($this->extractTokenFromUrl());\n\n return $rawUserData ? new User($rawUserData) : null;\n }", "title": "" }, { "docid": "481598e1280ce3e62ca27eca8c45226f", "score": "0.75118184", "text": "protected function user() {\n\n $this->checkUser();\n\n return $this->user;\n }", "title": "" }, { "docid": "876ba488609f11ebe717393d24996d28", "score": "0.75023407", "text": "public function get_user():mixed \n {\n $user_session = session()->identity;\n if (isset($user_session['id'])) {\n $this->auth_user = $this->get_user_by_id($user_session['id']);\n } else {\n $loginLib = new LoginLib(Services::request());\n $cookie_user = $loginLib->login_from_cookie();\n if ($cookie_user) {\n $this->auth_user = $this->get_user_by_id($cookie_user->id);\n }\n }\n // unset($this->auth_user->user_password);\n // unset($this->auth_user->password_reset_token );\n // unset($this->auth_user->password_reset_expires_at);\n // unset($this->auth_user->user_password);\n return $this->auth_user;\n }", "title": "" }, { "docid": "5ec71530df7f025f5a92bd548929d491", "score": "0.7421367", "text": "public static function user()\n {\n return self::$user ?: (self::$user = (new UserType())->toObjectType());\n }", "title": "" }, { "docid": "6b7af7e26ef0a5f9284e0bfa18c75a70", "score": "0.737366", "text": "public function user()\n {\n if (!is_null($this->user)) {\n return $this->user;\n }\n\n $authen = $this->authenticate();\n\n if($authen) {\n return $this->user;\n }\n \n return null; \n //return $this->user ?: $this->authenticate();\n }", "title": "" }, { "docid": "3cbf67ea7741a01a30f8c0d597234fb7", "score": "0.73690915", "text": "public function getAuthenticatedUser()\n {\n return $this->authenticatedUser;\n }", "title": "" }, { "docid": "3bd6691461238e0e832fbc46b4b73f97", "score": "0.7348579", "text": "public function requestUser(): object\n {\n // Just for testing the package\n if (app()->environment() === 'testing') {\n return \\Daguilarm\\BelichTables\\Tests\\App\\Models\\User::find(1);\n }\n\n // The regular way\n return request()->user();\n }", "title": "" }, { "docid": "ee815ff24b4fc91e6ecc83fd405ea143", "score": "0.73437303", "text": "public function getUserObject()\n {\n if (!$this->userObject) {\n $this->userObject = User::fetchById($this->get('user'), $this->getConnection());\n }\n\n return $this->userObject;\n }", "title": "" }, { "docid": "071ddfd0fd7768984c78613639d3afcb", "score": "0.72992337", "text": "public function user()\n {\n return $this->auth->getUser();\n }", "title": "" }, { "docid": "32ef958a5f533d17c4e430f4b9dfb4c8", "score": "0.7293485", "text": "public function user()\n {\n if (!is_null($this->user)) {\n return $this->user;\n }\n $user = null;\n // retrieve via token\n $token = $this->getTokenForRequest();\n if (!empty($token)) {\n // the token was found, how you want to pass?\n $user = $this->provider->retrieveByToken(null, $token);\n }\n return $this->user = $user;\n }", "title": "" }, { "docid": "d76e171120b5439cb493bdfe307c9127", "score": "0.72635305", "text": "public function user()\n {\n /** If validated user or else, return directly **/\n if (!is_null($this->user)) {\n return $this->user;\n }\n\n $user = null;\n\n $api_token = $this->request->cookie('api_token');\n\n if (isset($api_token) && !empty($api_token)) {\n $user = User::where(['api_token' => $api_token])->first();\n }\n\n return $this->user = $user;\n\n }", "title": "" }, { "docid": "dac543e7cab89d8ff7df349b0eb9369e", "score": "0.7259424", "text": "public function user()\n\t{\n\t\tif ($this->hasUser()) {\n\t\t\treturn $this->user;\n\t\t}\n\n\t\t$user = null;\n\t\t$token = request()->bearerToken();\n\n\t\tif (!is_null($token) && $this->validateToken($token)) {\n\t\t\t$payload = $this->getTokenForPayload($token);\n\t\t\t$user = $payload;\n\t\t}\n\n\t\treturn $this->user = $user;\n\t}", "title": "" }, { "docid": "b7ba87973deaf9a52fd0d29c48e66270", "score": "0.72534627", "text": "public static function getUserInstance(){\n $userModel = new User();\n \n $session = BaseUser::getSession();\n \n return isset($session->id)? $userModel->findById($session->id) : NULL;\n }", "title": "" }, { "docid": "cce1b9cf87eb25dbfcfa89f23b5d3588", "score": "0.7247298", "text": "public function get_user();", "title": "" }, { "docid": "bd46a062df9ebb78e168951a6dfd56dd", "score": "0.7235942", "text": "public function user()\n {\n // If we've already retrieved the user for the current request we can just\n // return it back immediately. We do not want to fetch the user data on\n // every call to this method because that would be tremendously slow.\n if (! is_null($this->user)) {\n return $this->user;\n }\n\n $user = (new AuthenticationController($this->app['request']))->checkAuthentication();\n\n return $this->user = $user;\n }", "title": "" }, { "docid": "7e278f5bfa75cedbc64bb619facf34c3", "score": "0.7224605", "text": "public function getAuthedUser()\n\t{\n\t\treturn new Phlickr_AuthedUser($this->getApi());\n\t}", "title": "" }, { "docid": "88674ebdc14a3d5f496468b71fc7b619", "score": "0.7197118", "text": "protected function getUser()\n {\n return (new User());\n }", "title": "" }, { "docid": "9a414545add86f14d95a0a153122ba60", "score": "0.7195945", "text": "public function user()\r\n {\r\n if (isset($_SESSION['user'])) {\r\n return User::find($_SESSION['user']);\r\n }\r\n }", "title": "" }, { "docid": "77604175e85d27fe11f2628ca88669d3", "score": "0.7189181", "text": "public function getAuthUser()\n {\n $user = null;\n if (\\Auth::check()) {\n $user = \\Auth::user();\n }\n return $user;\n }", "title": "" }, { "docid": "a6c24d080fae7003ac3855c34fd18795", "score": "0.7186517", "text": "public function getUser()\n {\n if ($this->_user === false) {\n $this->_user = User::findOne([\n 'username' => $this->username,\n 'password' => md5($this->password),\n 'type' => $this->type,\n 'deleted' => self::NOT_DELETED,\n 'status' => self::STATUS_ACTIVE\n ]);\n }\n return $this->_user;\n }", "title": "" }, { "docid": "7e67ae06fe288621ccf2c16f9c2b2ab6", "score": "0.71736825", "text": "public function getUser() {\n\t\tif($this->hasSavedLoginData())\n\t\t\treturn \\user\\model\\User::__saved($this->getUsername(),\n\t\t\t\t\t\t\t\t\t\t\t $this->getPassword());\n\n\t\telse\n\t\t\treturn \\user\\model\\User::__login($this->getUsername(),\n\t\t\t\t\t\t\t\t\t\t\t $this->getPassword());\n\t}", "title": "" }, { "docid": "1d84a3a48eb26edee9e47f259e9ad1ee", "score": "0.7170118", "text": "public function getuser() {\r\n return new User($this->review->User);\r\n }", "title": "" }, { "docid": "543f9de377a58c4a6014d7b11e61b577", "score": "0.7158826", "text": "public function getUser()\r\n {\r\n return $this->getAuthStorage()->getUser();\r\n }", "title": "" }, { "docid": "54d1f8bac05822bcbf8eae5c1895f270", "score": "0.71524906", "text": "protected function getUser()\n {\n return (new User())\n ->setCompany(\n (new Company())\n )\n ->setEmail('test@test.com')\n ->setFocus(\n (new UserFocus())\n );\n }", "title": "" }, { "docid": "f129fe34e41d446e8ddc56d8e9d7f720", "score": "0.7143471", "text": "public function user()\n {\n // If we've already retrieved the user for the current request we can just\n // return it back immediately. We do not want to fetch the user data on\n // every call to this method because that would be tremendously slow.\n if (! is_null($this->user)) {\n return $this->user;\n }\n\n $user = null;\n\n // If a user ID was provided in the JWT, then\n // we should attempt to fetch their profile.\n if (! empty($this->id())) {\n $user = $this->provider->retrieveById($this->id());\n }\n\n return $this->user = $user;\n }", "title": "" }, { "docid": "77872b57ea65f6fe2e33831ed2e69548", "score": "0.713036", "text": "public function authUser(Request $request): User;", "title": "" }, { "docid": "979345fa2be8d935031dcb93a3ad5fa7", "score": "0.7124944", "text": "function getAuthenticatedUser()\n{\n global $session;\n return findUserByUsername($session->get('auth_username'));\n}", "title": "" }, { "docid": "58126e03b85fbc0806e0d68f86cc406e", "score": "0.71214646", "text": "protected function getUser()\n {\n return (new User())\n ->setCompany(new Company())\n ->setEmail('test@test.com')\n ->setFocus(new UserFocus());\n }", "title": "" }, { "docid": "ae1a5c3a90f6af4d49587a86d269a471", "score": "0.71192765", "text": "protected function userAuthenticated()\r\n {\r\n return $this->userRepository->find(Authorizer::getResourceOwnerId());\r\n }", "title": "" }, { "docid": "b1eb19a7a19c7ac6fef9d42c2145a663", "score": "0.7118331", "text": "public function user()\n {\n if (! is_null($this->user)) {\n return $this->user;\n }\n\n $apiToken = $this->apiToken();\n\n $user = optional($apiToken)->user;\n\n return $this->user = $user;\n }", "title": "" }, { "docid": "e96451f862aed2dcaf1414af8054b174", "score": "0.7109994", "text": "public function getUser(): ?Authenticatable;", "title": "" }, { "docid": "82714d901073a4dfe64a6b303ffb78c2", "score": "0.71062696", "text": "public function user() {\n \n // If we've already retrieved the user for the current request we can just\n // return it back immediately. We do not want to fetch the user data on\n // every call to this method because that would be tremendously slow.\n \n if (! is_null($this->user)) {\n return $this->user;\n }\n \n $this->user = null;\n \n $tokenString = $this->jwtAuth->getToken();\n if($this->jwtAuth->verifyToken($tokenString)) {\n \n $this->user = $this->jwtAuth->checkToken($tokenString);\n }\n \n return $this->user;\n }", "title": "" }, { "docid": "62f7d80fb533864130d1edbf8834f23c", "score": "0.71037084", "text": "public function getUser()\r\n {\r\n /** @var User $user */\r\n $user = $this->getToken()->getUser();\r\n if (!$this->isUserLoggedIn()) {\r\n $user = new User();\r\n $user->setUsername(static::USER_ANONYMOUS_NAME);\r\n }\r\n return $user;\r\n }", "title": "" }, { "docid": "71f7d6631418ccfdaea17327fed2aa4a", "score": "0.7095664", "text": "protected function getUser() {\n if(!$this->_user) {\n $this->setUser($this->zfcUserAuthentication()->getIdentity());\n }\n\n return $this->_user;\n }", "title": "" }, { "docid": "a1f7c812a25ecfaebc7705aa76917cda", "score": "0.70875174", "text": "public function getAuthenticatedUser()\n {\n try {\n\n if (!$user = JWTAuth::parseToken()->authenticate()) {\n return response()->json(['user_not_found'], 404);\n }\n\n } catch (TokenExpiredException $e) {\n\n return response()->json(['token_expired'], $e->getStatusCode());\n\n } catch (TokenInvalidException $e) {\n\n return response()->json(['token_invalid'], $e->getStatusCode());\n\n } catch (JWTException $e) {\n\n return response()->json(['token_absent'], $e->getStatusCode());\n\n }\n\n // the token is valid and we have found the user via the sub claim\n //return response()->json(compact('user'));\n\n return $this->item($user, new UserTransformer());\n }", "title": "" }, { "docid": "9d244619909c4bb96099913588d1dc57", "score": "0.7065222", "text": "public function authUser()\n {\n return JWTAuth::parseToken()->authenticate();\n }", "title": "" }, { "docid": "b6efa7660f815bd3d47dbb4118ffee3a", "score": "0.7057667", "text": "public function user()\n {\n if (!is_null($this->user)) {\n return $this->user;\n }\n\n $this->parseRequest();\n\n return $this->user;\n }", "title": "" }, { "docid": "93ee5ecd300e3b19085aa8566fdb727b", "score": "0.70570165", "text": "public function getUser() {\n\t\t$userID = 0;\n\t\tif ($this->isLoggedIn()) {\n\t\t\t$userID = self::$oSession->get(self::KEY_USERID);\n\t\t}\n\t\treturn new User($userID);\n\t}", "title": "" }, { "docid": "d18db79f5ed6a054e24a90f7fdd4531f", "score": "0.7055459", "text": "public static function ReturnUser() {\n // Set a default user up - by default they have a RoleId of 'guest'\n $user = new Model_Users();\n\n // If the user has a session, map the data to the user\n // This includes the appropriate RoleId.\n if (Zend_Auth::getInstance()->hasIdentity()) {\n $userInfo = Zend_Auth::getInstance()->getStorage()->read();\n $user_mapper = new Model_UsersMapper();\n $user = $user_mapper->find($userInfo->id, $user);\n }\n return $user;\n }", "title": "" }, { "docid": "3ddb37a29a26f5907368094c09f07d4b", "score": "0.70419395", "text": "public function user()\n {\n if (!is_null($this->user)) {\n return $this->user;\n }\n $token = $this->request->cookie(\"token\");\n if(!$token){\n $token = $this->request->header(\"Authorization\");\n if(!empty($token))\n $token = explode(\" \",$token)[1];\n else\n return null;\n }\n\n return $this->getUserFromToken($token);\n\n }", "title": "" }, { "docid": "d5df63cc9709e9ebe101735353ea9a29", "score": "0.70356846", "text": "public function user()\n {\n if (! is_null($this->user)) {\n return $this->user;\n }\n\n $user = null;\n $token = $this->getTokenForRequest();\n\n if (!empty($token)) {\n try {\n $valid = $this->ssoContract->apiToken($token);\n if ($valid) {\n $user = new User;\n $user->token = $token;\n $user->scopes = [];\n }\n } catch (SsoException $e) {\n return null;\n }\n\n }\n\n return $this->user = $user;\n }", "title": "" }, { "docid": "038b6212d467eb6d2bae5c93072fe112", "score": "0.70321274", "text": "public static function user()\n {\n if (isset($_SESSION['login']) && isset($_SESSION['id'])) {\n \n return User::findOne(['user_token' => $_SESSION['id']]);\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "0f1a1d3afec645b1bdea26f211e19bec", "score": "0.7029612", "text": "public function getUser()\n\t{\n\t\treturn $this->getObject('user', null, 'user');\n\t}", "title": "" }, { "docid": "7cedc7ad995d3baf5b7ff4b9c2a1a01f", "score": "0.7014189", "text": "public function user()\n {\n return $this->guard()->user();\n }", "title": "" }, { "docid": "195bddccb1a7c3dc1d76ce7d622bcb89", "score": "0.69970894", "text": "public function get_user()\n\t{\n\t\treturn $this->user;\n\t}", "title": "" }, { "docid": "b996dd184a7e453628826d4d71c41372", "score": "0.6986334", "text": "protected function getUser()\n {\n $user = $this->user->getById($this->request->getIntegerParam('user_id', $this->userSession->getId()));\n\n if (empty($user)) {\n $this->notfound();\n }\n\n if (! $this->userSession->isAdmin() && $this->userSession->getId() != $user['id']) {\n $this->forbidden();\n }\n\n return $user;\n }", "title": "" }, { "docid": "8fcaba6157684b8063e221070479e6b4", "score": "0.6985441", "text": "function getAuthUser(){\n try {\n $auth_user = JWTAuth::parseToken()->authenticate();\n } catch (Tymon\\JWTAuth\\Exceptions\\JWTException $e) {\n $auth_user = null;\n }\n\n return $auth_user;\n}", "title": "" }, { "docid": "6025f0f8ca72b87e0a396fe14c38d79e", "score": "0.6985413", "text": "protected function user()\n {\n return $this->guard()->user();\n }", "title": "" }, { "docid": "2298c36f4386208e99c2bf975bd1fddd", "score": "0.6982601", "text": "public function user()\n {\n if ($this->loggedOut) {\n return;\n }\n\n // If we have already retrieved the user for the current request we can just\n // return it back immediately. We do not want to pull the user data every\n // request into the method because that would tremendously slow an app.\n if (!is_null($this->user)) {\n return $this->user;\n }\n\n $id = $this->cookie->get($this->getName());\n\n $user = null;\n\n if (!is_null($id)) {\n $user = $this->provider->retrieveByToken();\n }\n\n return $this->user = $user;\n }", "title": "" }, { "docid": "f60064dc4bcded0526c252bfe4b29dc9", "score": "0.6969175", "text": "public function getCurrentUser()\n\t{\n\t\t$username = $_SESSION[$this->getTokenKey()];\n\t\t\n\t\t$user = $this->repo->getUser($username);\n\t\t\n\t\tif (empty($user))\n\t\t\treturn new \\Hx\\Authenticate\\User(\n\t\t\t\t'anonymous', \n\t\t\t\t'', \n\t\t\t\t\\Hx\\Authenticate\\UserInterface::LOGOUT,\n\t\t\t\t'');\n\t\telse \n\t\t\treturn $user;\n\t}", "title": "" }, { "docid": "2be7ab15076c942bcee61b8eb69e8668", "score": "0.69651777", "text": "public function get_user()\n\t{\n\t\treturn $this->session->get('loggedin', FALSE);\n\t}", "title": "" }, { "docid": "a2500e011b45220db0c759dfa3fb4d40", "score": "0.69623864", "text": "public function user()\n {\n if (!is_null($this->user)) {\n return $this->user;\n }\n $tokenStr = $this->getTokenForRequest();\n if (empty($tokenStr)) {\n return null;\n }\n $config = Configuration::forSymmetricSigner(\n new Sha256(),\n InMemory::file(base_path() . '/key.pem')\n );\n $config->setValidationConstraints(\n new IdentifiedBy(explode(':', config('app.key'))[1]),\n new SignedWith($config->signer(), $config->signingKey()),\n new LooseValidAt(new SystemClock(new DateTimeZone(\"Asia/Shanghai\")))\n );\n\n $token = $config->parser()->parse($tokenStr);\n assert($token instanceof UnencryptedToken);\n\n $constraints = $config->validationConstraints();\n\n try {\n $config->validator()->assert($token, ...$constraints);\n } catch (\\Exception $e) {\n return null;\n }\n $id = $token->claims()->get('id');\n return $this->user = $this->provider->retrieveById($id);\n }", "title": "" }, { "docid": "357536979ee7384d0e7a54c1f2e4d8ea", "score": "0.69596756", "text": "public function getUserFromRequest(){\n\t\t$this->usr = new User();\n\t\t\n\t\tif(is_numeric($_SESSION[$this->config->sessionVarName])){\n\t\t\t$this->usr = $this->um->getObjectById($_SESSION[$this->config->sessionVarName]);\n\t\t\t$this->authorize($this->usr);\n\t\t}\n\t\telseif(!empty($_COOKIE[$this->config->loginCookieName])){\n\t\t\t$cookieData = explode(\":\", $_COOKIE[$this->config->loginCookieName]);\n\t\t\t$userId = $cookieData[0];\n\t\t\t$encryptedSalt = $cookieData[1];\n\t\t\t\n\t\t\t$correctSalt = hash('sha256', $this->um->getLoginById($userId) . \":\" . $this->um->getPassword($userId));\n\t\t\t\n\t\t\tif($encryptedSalt === $correctSalt){\n\t\t\t\t$this->usr = $this->um->getObjectById($userId);\n\t\t\t\t$this->doLogin($this->usr->getLogin(), $this->um->getPassword($this->usr->getId()), false, true);\n\t\t\t}\n\t\t}\n\t\treturn $this->usr;\n\t}", "title": "" }, { "docid": "8fd19bf033111f82fc62d60c13b51eb3", "score": "0.6954899", "text": "public function user(): User {\n return $this->user;\n }", "title": "" }, { "docid": "9643fbb2ce7a2177641d42feea880ed8", "score": "0.69532394", "text": "public function user() {\r\n if ($this->loggedOut) {\r\n return null;\r\n }\r\n\r\n // If we've already retrieved the user for the current request we can just\r\n // return it back immediately. We do not want to fetch the user data on\r\n // every call to this method because that would be tremendously slow.\r\n if (!is_null($this->user)) {\r\n $this->user = $this->provider->autoUpdateToken($this->user);\r\n return $this->user;\r\n }\r\n\r\n try {\r\n $this->user = unserialize($this->session->get($this->getName()));\r\n if (!$this->user || !$this->checkToken($this->user->token) || !$this->verifyToken($this->user->token)) {\r\n $this->logout();\r\n return null;\r\n }\r\n } catch (\\Throwable $th) {\r\n $this->logout();\r\n return null;\r\n }\r\n\r\n return $this->user;\r\n }", "title": "" }, { "docid": "85588ee4b08127bc744874f49d915434", "score": "0.695196", "text": "public function getUserObject()\n\t{\n\t\treturn $this->user_object;\n\t}", "title": "" }, { "docid": "51f78d4bdcf924b56b53bc097116cf7a", "score": "0.6950845", "text": "public function get_user()\n {\n return $this->_user;\n }", "title": "" }, { "docid": "87c7f028f4077d0cf973de6a82594fd6", "score": "0.6938758", "text": "public function user(): User\n {\n $username = $this->request->session()->get('FORMWORK_USERNAME');\n return $this->users->get($username);\n }", "title": "" }, { "docid": "9bb86c0f19e5679151aa6e36a78dca4d", "score": "0.693083", "text": "public function retrieveUser();", "title": "" }, { "docid": "6cfb90bdc5aeb6acf0c9f87a15756874", "score": "0.69261354", "text": "public function getAuthenticatedUser()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif (!$user = JWTAuth::parseToken()->authenticate())\n\t\t\t{\n\t\t\t\treturn response()->json(['user_not_found'], 404);\n\t\t\t}\n\n\t\t}\n\t\tcatch (Tymon\\JWTAuth\\Exceptions\\TokenExpiredException $e)\n\t\t{\n\n\t\t\treturn response()->json(['token_expired'], $e->getStatusCode());\n\n\t\t}\n\t\tcatch (Tymon\\JWTAuth\\Exceptions\\TokenInvalidException $e)\n\t\t{\n\n\t\t\treturn response()->json(['token_invalid'], $e->getStatusCode());\n\n\t\t}\n\t\tcatch (Tymon\\JWTAuth\\Exceptions\\JWTException $e)\n\t\t{\n\n\t\t\treturn response()->json(['token_absent'], $e->getStatusCode());\n\n\t\t}\n\n\t\t// the token is valid and we have found the user via the sub claim\n\t\t//return response()->json(compact('user'));\n\t\treturn $user;\n\t}", "title": "" }, { "docid": "3fde37f94456ae0f10fc0011d33ed20d", "score": "0.6923916", "text": "public function getUser() {\n\t\treturn $this->object->getUser();\n\t}", "title": "" }, { "docid": "977c3de83fb9ab5a1e933f519c4717a8", "score": "0.691365", "text": "public function getUserProperty(): User|Authenticatable|null\n {\n return Auth::user();\n }", "title": "" }, { "docid": "ca49a615d734a2c1280bfde4ed332ba0", "score": "0.69099945", "text": "private function getUser()\n {\n $user = \\Fisdap\\Entity\\User::getLoggedInUser();\n \n // In this case, pull the user from the session...\n if ($user->isInstructor()) {\n\n // This gets set in the ShiftsController. Kind of gross, but it works.\n $widgetSession = new \\Zend_Session_Namespace(\"WidgetData\");\n\n // Only use the session if we locate a user_id\n if ($widgetSession->user_id) {\n return \\Fisdap\\EntityUtils::getEntity('User', $widgetSession->user_id);\n } else {\n return $user;\n }\n } else {\n return $user;\n }\n }", "title": "" }, { "docid": "687c9490c6b9edf25481adbfbe6bfdd5", "score": "0.690908", "text": "public function user()\n {\n $user = new User();\n $user->id = $this->request->get('open_id');\n $user->nickname = \"dummy nickname\";\n $user->avatar = 'avatar';\n $user->gender = User::GENDER_FEMALE;\n\n return $user;\n }", "title": "" }, { "docid": "655ccb97cb165ff4e425626805d67e1f", "score": "0.6906973", "text": "public function user()\n {\n if (!$user = Auth::getUser()) {\n return null;\n }\n\n return $user;\n }", "title": "" }, { "docid": "adc327f01b4021f277efa70a9af4c85b", "score": "0.69044334", "text": "public function user() {\n return $this->user;\n }", "title": "" }, { "docid": "038a25e8089fea778d468650960895b0", "score": "0.6902173", "text": "public function getUser()\n {\n $this->user = $this->repository->findByUsername($this->username);\n $this->userValidate();\n return $this->user;\n }", "title": "" }, { "docid": "da20f5f858c72d12e95bffa63a037176", "score": "0.6898899", "text": "public /*User_Provider*/ function user()\r\n\t{\r\n\t\treturn $this->user;\r\n\t}", "title": "" }, { "docid": "9ceeb5e04513747325564684845efc3c", "score": "0.6896322", "text": "public function getAuthenticatedUser()\n {\n return $this->client->get(new Route(['account']));\n }", "title": "" }, { "docid": "b949f78d837434ccf163a1d5ab77f428", "score": "0.6895594", "text": "public function getUser() : User{\n return $this->user;\n }", "title": "" }, { "docid": "f848840d0b3f2e32d1fe83e7b4a7e121", "score": "0.6894805", "text": "public static function getCurrentAuthUser();", "title": "" }, { "docid": "5cf88f18540c72451a625b572561be4a", "score": "0.6893807", "text": "protected function getUser()\n {\n return $this->getAuth()->user();\n }", "title": "" }, { "docid": "80325ee7b2df12960509fe277f1ee5dd", "score": "0.6889082", "text": "public function user()\n {\n return $this->user; \n }", "title": "" }, { "docid": "03e761dda75979fa5cf75cec2b2476f4", "score": "0.6888827", "text": "public function getUser()\n {\n return $this->user()->first();\n }", "title": "" }, { "docid": "c45c5884408b4d48ba2c82cb04ae3426", "score": "0.6881669", "text": "public function getUser()\n {\n return new User($this->review->User);\n }", "title": "" }, { "docid": "9d69dbf420ad594ef1a2ef27712fa459", "score": "0.6881146", "text": "protected function getUser()\n {\n if (!$this->stokenStorage) {\n throw new \\LogicException('The SecurityBundle is not registered in your application.');\n }\n\n if (null === $token = $this->stokenStorage->getToken()) {\n return;\n }\n\n if (!is_object($user = $token->getUser())) {\n // e.g. anonymous authentication\n return;\n }\n\n return $user;\n }", "title": "" }, { "docid": "de59b6492068ac227c0ed4be73ac2fcc", "score": "0.68741596", "text": "static function getUser() {\n\t\treturn User::get();\n\t}", "title": "" }, { "docid": "98c345fabe4d1acdce5f40c87e602774", "score": "0.68675756", "text": "public function getAuthUser()\n\t{\n\t\tif (!isset($this->session->sessiondata['userid'])) {\n\t\t\tredirect('login','refresh',301);\n\t\t} else {\n\t\t\t$para = array('id' => $this->session->sessiondata['userid']);\n\t\t\treturn $user = $this->op->userLogin($this->TBLUSERS,$para);\n\t\t}\n\t}", "title": "" }, { "docid": "e03fb9bd7e074a45c2cc6e430b6c44f2", "score": "0.68669343", "text": "public function user()\n {\n // If we've already retrieved the user for the current request we can just\n // return it back immediately. We do not want to fetch the user data on\n // every call to this method because that would be tremendously slow.\n if (! is_null($this->user)) {\n return $this->user;\n }\n $user = null;\n $request_token = $this->getTokenForRequest();\n $request_user = $this->getUserForRequest();\n if (! empty($request_token)) {\n $user = $this->provider->retrieveByCredentials([\n $this->storageKeyToken => $this->hash ? Hash::make( $request_token ) : $request_token,\n $this->storageKeyUser => $request_user\n ]);\n }\n return $this->user = $user;\n }", "title": "" }, { "docid": "c358a8ad7f485a783689ff000992fc00", "score": "0.68591", "text": "function authUser()\n {\n return Auth::user();\n }", "title": "" }, { "docid": "8bba08789a4ba372015cdc0e32ed39f3", "score": "0.6857163", "text": "public function user()\n {\n if (! is_null($this->user)) {\n return $this->user;\n }\n }", "title": "" }, { "docid": "b7bf62308abe062ac505a886c640e307", "score": "0.6850629", "text": "public function getUser() {\n\t\tif (!$this->container->has('security.context')) {\n\t\t\tthrow new \\LogicException('The SecurityBundle is not registered in your application.');\n\t\t}\n\n\t\tif (null === $token = $this->container->get('security.context')->getToken()) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!is_object($user = $token->getUser())) {\n\t\t\treturn;\n\t\t}\n\n\t\treturn $user;\n\t}", "title": "" }, { "docid": "04acc0888044bb10dae40fd8b64771a8", "score": "0.6849893", "text": "public function user() {\n\t\treturn $this->user;\n\t}", "title": "" }, { "docid": "c0211fc97e5375bde39a90418c55d520", "score": "0.6848885", "text": "public function getUser() {\n return $this->user;\n }", "title": "" }, { "docid": "55871070a9baffae36a38713eaff6d07", "score": "0.6848827", "text": "public function get_user() {\n return $this->user;\n }", "title": "" }, { "docid": "d17ce5d5f98cb0e4e8daae47ed8a8b53", "score": "0.6848353", "text": "public function getUser() {\r\n return $this->user;\r\n }", "title": "" }, { "docid": "61e21e14f9e118e99f030e871293f185", "score": "0.6845268", "text": "public function user()\n {\n if (!is_null($this->user)) {\n return $this->user;\n }\n\n $token = $this->jwt->setRequest($this->request)->getToken();\n if (!$token) {\n return null;\n }\n\n // get cached freshed token if exists for concurrency requests\n if ($this->getCachedToken()) {\n $this->jwt = $this->jwt->setToken($this->getCachedToken());\n }\n\n // token validation\n if ($this->getToken() &&\n ($payload = $this->jwt->check(true)) &&\n $this->validateSubject()\n ) {\n return $this->user = $this->provider->retrieveById($payload['sub']);\n }\n\n return $this->user;\n }", "title": "" }, { "docid": "2fb84b5939aeb9dfcf3eb3f58dd8394a", "score": "0.68448", "text": "public function getUser()\r\n {\r\n return $this->user;\r\n }", "title": "" }, { "docid": "c670a80f485b3263cb4013be8fc5f1a4", "score": "0.6834427", "text": "public function getUser()\n\t{\n\t\t$user = auth()->user();\n\t\treturn response([\n\t\t\t'data' => new $this->resource($user),\n\t\t], Response::HTTP_ACCEPTED);\n\t}", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.6832136", "text": "public function getUser();", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.6832136", "text": "public function getUser();", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.6832136", "text": "public function getUser();", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.6832136", "text": "public function getUser();", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.6832136", "text": "public function getUser();", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.6832136", "text": "public function getUser();", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.6832136", "text": "public function getUser();", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.6832136", "text": "public function getUser();", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.6832136", "text": "public function getUser();", "title": "" }, { "docid": "a2c3730c5d4b60e0ede2bfd4df6261d5", "score": "0.68320364", "text": "public function user()\n {\n\n // If we've already retrieved the user for the current request we can just\n // return it back immediately. We do not want to fetch the user data on\n // every call to this method because that would be tremendously slow.\n if (!is_null($this->user)) {\n// dd($this->user);\n return $this->user;\n }\n\n $user = null;\n\n $token_value = $this->getTokenForRequest();\n\n\n if (! empty($token_value)) {\n $token = Token::valid()->where('token_value', '=', $token_value)->first();\n\n if (!empty($token)) {\n $user = $this->provider->retrieveById($token->owner_user_id);\n }\n }\n\n return $this->user = $user;\n }", "title": "" }, { "docid": "5880ace834b27774f348da7cccf2b890", "score": "0.68309385", "text": "public static function getLoggedInUserObject()\n {\n $feUserUid = $GLOBALS['TSFE']->fe_user->user['uid'];\n if ($feUserUid > 0)\n {\n $feUserRepository = t3lib_div::makeInstance('Tx_Magenerator_Domain_Repository_FeUserRepository');\n /* @var $feUserRepository Tx_Magenerator_Domain_Repository_FeUserRepository */\n return $feUserRepository->findByUid(intval($feUserUid));\n }\n else\n {\n return NULL;\n }\n }", "title": "" } ]
15a4bde27922e7f69c2364d767d109e7
/ listar equipos de acuerdo al pais
[ { "docid": "5662a3b69fc062e5f9c3fcbc4b72d73a", "score": "0.60572076", "text": "public function getEquipos(){\n View::template(NULL);\n $this->torneo_id = Input::post('torneo_id');\n Load::model('equipos');\n $equipos = new Equipos();\n $torneos = new Torneos();\n $this->equipos=$equipos->buscarByPais(Input::post('pais_id'));\n $this->checkEquipos = $torneos->buscarEquiposTorneos(Input::post('torneo_id'));\n }", "title": "" } ]
[ { "docid": "57bcc4740cdec549f26fb8293622bb7d", "score": "0.6670644", "text": "public function equiposComputo(){\n return Equipo::where('tipo', \"Computo\")\n ->where('aula_id', $this->id)\n ->get();\n }", "title": "" }, { "docid": "a12d4f0399619bcc7eafb38cc37eb488", "score": "0.6666925", "text": "public function consultaEquipos() {\n $consultalistaEquipos = $this->db->select(\"SELECT * FROM equipo \");\n return $consultalistaEquipos;\n }", "title": "" }, { "docid": "a12d4f0399619bcc7eafb38cc37eb488", "score": "0.6666925", "text": "public function consultaEquipos() {\n $consultalistaEquipos = $this->db->select(\"SELECT * FROM equipo \");\n return $consultalistaEquipos;\n }", "title": "" }, { "docid": "86161bf35501052e8787d23623dd8fba", "score": "0.6512603", "text": "public function equiposAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n //OBTENGO LA INFORMACION DE LOS PROVEEDORES DE EQUIPOS QUE ESTEN ACTIVOS\n\n $id_tipoproveedor = 4;\n $estatus = 'A';\n $titulo = \"DE EQUIPOS TELESUR\";\n\n $dql = \"select d from ContenidosBundle:Datosproveedor d \n where d.idTipoprov=:id_tipoproveedor and d.estatus=:estatus\";\n $consulta = $em->createQuery($dql)->setParameters(\n array(\n 'id_tipoproveedor'=> $id_tipoproveedor, \n 'estatus' => $estatus,\n )\n\n\n );\n $entities = $consulta->getResult();\n return $this->render('ContenidosBundle:Datosproveedor:index.html.twig', array(\n 'entities' => $entities,\n 'titulo' => $titulo,\n ));\n }", "title": "" }, { "docid": "776216d423bf12c75d7a6ddc024def00", "score": "0.6491394", "text": "public function listaEquipos(){\n\t\t$idUsuario = $_SESSION['login_user_id'];\n\t\t$equipos = new Equipo();\n\t\t$contactos = new Contacto();\n\t\t$listaContactos = $contactos->getContactos($idUsuario);\t\t\t\t// Contactos del usuario, para crear su nuevo equipo.\n\t\t$data['listaContactos'] = $listaContactos;\n\t\t$listaEquipos = $equipos->getEquiposJugador($idUsuario); \t\t\t// Equipos en los que el jugador es el capitan.\n\t\t$data['listaEquipos'] = $listaEquipos;\n\t\tforeach ($listaEquipos as $key ) {\n\t\t\t$idEquipo = $key['idEquipo'];\n\t\t\t$listaMiembrosEquipo = $equipos->getMiembrosEquipo($idEquipo); \t// Jugadores de un determinado equipo.\n\t\t\t$data['listaMiembrosEquipo'.$idEquipo]= $listaMiembrosEquipo;\n\t\t}\n\t\t$listaEquiposMiembro = $equipos->getEquiposMiembro($idUsuario);\t\t// Equipos en los que el jugador es solo un miembro (no capitán).\n\t\t$data['listaEquiposMiembro'] = $listaEquiposMiembro;\n\t\tforeach ($listaEquiposMiembro as $key ) {\n\t\t\t$idEquipo = $key['idEquipo'];\n\t\t\t$listaMiembrosEquipo = $equipos->getMiembrosEquipo($idEquipo); \t\t// Jugadores de un determinado equipo.\n\t\t\t$data['listaMiembrosEquipo'.$idEquipo]= $listaMiembrosEquipo;\n\t\t}\n\t\tif (isset($_SESSION['accion'])){\n\t\t\t$data['accion'] = $_SESSION['accion'];\n\t\t}\n\t\t$_SESSION['accion'] = 0;\n\t\t$this->view->show('listaEquipos.php',$data);\n\t}", "title": "" }, { "docid": "39225a59fd550e3e7e24db0c16638017", "score": "0.6410372", "text": "function ComponentesLst(){\n $conexion = Conexion::singleton_conexion();\n $SQL = 'SELECT * FROM componentes';\n $sentence = $conexion -> prepare($SQL);\n $sentence -> execute();\n $resultados = $sentence -> fetchAll();\n if (empty($resultados)){\n }else{\n \tforeach ($resultados as $key){\n echo '\n <a id=\"theimtem'.$key['id'].'\" class=\"item-option\" data-option=\"'.$key['id'].'\" data-item=\"theimtem'.$key['id'].'\">\n <img src=\"plugins/'.$key['ruta'].'/'.$key['string'].'.png\">\n <p alt=\"'.$key['descripcion'].'\">'.$key['nombre'].'</p>\n </a>\n ';\n \t}\n }\t\n}", "title": "" }, { "docid": "e3a6acd9a4362df234731404f2e1e05a", "score": "0.6405144", "text": "public function listar() {\n $em = $this->__getDoctrineContainer()->getEntityManager();\n\n $result = $em->createQueryBuilder()\n ->select('p.id as idProduto, p.descricao, p.grade, f.id as idFabricante, p.tipo, c.id as idClasse, f.nome as nomeFabricante')\n ->from('wms:Produto', 'p')\n ->innerJoin('p.fabricante', 'f')\n ->innerJoin('p.classe', 'c')\n ->orderBy('p.descricao')\n ->getQuery()\n ->getArrayResult();\n\n return $result;\n }", "title": "" }, { "docid": "e479d662bda9d2944d68f63c8e77e17a", "score": "0.6313796", "text": "public function menuApartados()\n {\n $this->conectar(1);\n $sql = \"SELECT id, seccion FROM Apartado WHERE 1\";\n $result = $this->conn->query($sql);\n\n if ($result->num_rows > 0) {\n while($row = $result->fetch_assoc()) {\n echo '<option value=\"'.$row['id'].'\">'.$row['seccion'].'</option>';\n }\n }\n \n $this->conn->close();\n }", "title": "" }, { "docid": "abdfc66b311ffef68a7598d566d1e5b3", "score": "0.6310398", "text": "public function listadopaciente(){\n $stmt = $this->objPDO->prepare(\"SELECT pac.id_paciente,pac.dni,(pac.a_paterno||(' ')||pac.a_materno||(' ')||pac.nombre) as nombres,u.distrito,tp.descripcion from sisemer.paciente pac inner join \n sisemer.ubigeo u on pac.id_ubigeo=u.id_ubigeo inner join sisemer.tipo_paciente tp on pac.id_tipo_paciente = tp.id_tipo_paciente\");\n $stmt->execute();\n $lpac=$stmt->fetchAll(PDO::FETCH_OBJ);\n return $lpac;\n }", "title": "" }, { "docid": "4ba463fead5c776d4ac9f7b99ae720b0", "score": "0.62718886", "text": "public function getEquipos(){\n $team = Equipo::with('estadio','patrocinador')->paginate(10);\n\n return view('equipos',[\n 'lista' => $team\n ]);\n }", "title": "" }, { "docid": "8ce28d0b8828c6828d8c698a8f44bf22", "score": "0.62572956", "text": "public function listarCadastrar()\n {\n // $listar->exeReadEspecifico(\"SELECT id id_nivac, nome nome_nivac FROM adm_niveis_acesso WHERE ordem //>=:ordem ORDER BY nome ASC\",\n // \"ordem=\" . $_SESSION['ordem_nivac']);\n// $registro['nivac'] = $listar->getResult();\n\n // $listar->exeReadEspecifico(\"SELECT id id_sit, nome nome_sit FROM adm_situacao ORDER BY nome ASC\");\n // $registro['sit'] = $listar->getResult();\n\n // $this->result = ['nivac' => $registro['nivac'], 'sit' => $registro['sit']];\n\n return $this->result;\n }", "title": "" }, { "docid": "87c411e7332839f147a0b4c805173c36", "score": "0.6221481", "text": "public function listar(){\n\t\t$sql = \"SELECT ar.idarticulo, ar.idcategoria, ca.nombre as categoria, ar.codigo,\n\t\tar.nombre, ar.stock, ar.descripcion, ar.imagen, ar.condicion FROM articulo ar INNER JOIN categoria ca ON ar.idcategoria = ca.idcategoria\";\n\t\treturn ejecutarConsulta($sql);\n\t}", "title": "" }, { "docid": "52543d9078edf6e5eb0479668f8cea2f", "score": "0.6175141", "text": "function listarDisp() {\n\n $sCampos = \" la50_i_atributo as item\";\n $sSql = cl_lab_examedisp::sql_query( \"\", $sCampos, \"\", \" la42_i_exame = {$this->iExame} \");\n $rResult = cl_lab_examedisp::sql_record( $sSql );\n $aLista = array();\n\n if( $rResult != false ) {\n\n $oLista = db_utils::getCollectionByRecord($rResult);\n\n for( $x = 0; $x < count( $oLista ); $x++ ) {\n $aLista[$x] = $oLista[$x]->item;\n }\n\n $this->atributosdisp = $aLista;\n }\n }", "title": "" }, { "docid": "2707a9f12337aa87b46f9563407bebce", "score": "0.61308366", "text": "public function listarAction()\n\t{\n\t\t$this->view->message = $this->_flashMessenger->getMessages();\n\t\t\n\t\t$list = $this->_model->listar(NULL, NULL, Application_Model_Corretor::SITUACAO_ATIVO);\n\t\t\n\t\t$this->view->list = $list;\n\t}", "title": "" }, { "docid": "776e99f85f3e28b41532dc67b4328bab", "score": "0.6129719", "text": "public function listarActivos(){\n $sql = \"SELECT c.idcompra, c.nrofactura, date(c.fecha) as fecha, p.razonsocial AS proveedor, concat(per.nombre, ' ', per.apellido) AS personal, c.monto, c.estado \n FROM compras c JOIN proveedores p ON c.idproveedor = p.idproveedor JOIN personales per ON c.idpersonal = per.idpersonal WHERE c.estado = '1'\n ORDER BY c.idcompra DESC\";\n return ejecutarConsulta($sql);\n }", "title": "" }, { "docid": "c31c8aaa42b141132ec60fabf6449fa1", "score": "0.6121516", "text": "public function select($uso_equipos);", "title": "" }, { "docid": "8e59c3fa48c0069a6fc7a770dc396c5d", "score": "0.60907936", "text": "public function listarAvistamientos(){\n\t\t$avistamientos = Avistamiento::all();\n\t\t\n\t\treturn view ('cpanel.listadoAvistamientos', [\n\t\t\t'avistamientos' => $avistamientos\n\t\t]);\n\t}", "title": "" }, { "docid": "ca406cb3785677ab1b85b5b69527aad4", "score": "0.60879177", "text": "function listarItems($cadena) {\n global $sql;\n $respuesta = array();\n $consulta = $sql->seleccionar(array('proveedores'), array('id', 'id_proveedor', 'nombre'), '(nombre LIKE \"%' . $cadena . '%\" OR id_proveedor LIKE \"%' . $cadena . '%\") AND activo = \"1\" AND id NOT IN(0)', '', 'nombre ASC', 0, 20);\n\n while ($fila = $sql->filaEnObjeto($consulta)) {\n $respuesta1 = array();\n $respuesta1[\"label\"] = $fila->id_proveedor . ' :: ' . $fila->nombre;\n $respuesta1[\"value\"] = $fila->id;\n $respuesta1[\"nombre\"] = $fila->nombre;\n $respuesta[] = $respuesta1;\n }\n\n Servidor::enviarJSON($respuesta);\n}", "title": "" }, { "docid": "2671bc2ab11b9c2a6e42fe9017c0f3b4", "score": "0.6078879", "text": "static function get_carpetas_posibles($proyecto=null)\r\n\t{\r\n\t\tif (! isset($proyecto)) {\r\n\t\t\t$proyecto = toba_contexto_info::get_proyecto();\r\n\t\t}\r\n\t\t$catalogador = new toba_catalogo_items($proyecto);\r\n\t\t$catalogador->cargar_todo(array('solo_carpetas' => 1));\r\n\t\tif (! defined('ENT_HTML401')) {\r\n\t\t\tdefine('ENT_HTML401', 0);\r\n\t\t}\t\t\r\n\t\t$esp = html_entity_decode('&nbsp;', ENT_COMPAT | ENT_HTML401, \"ISO-8859-1\");\r\n\t\tforeach($catalogador->items() as $carpeta) {\r\n\t\t\t$nivel = $carpeta->get_nivel_prof() - 1;\r\n\t\t\tif($nivel >= 0) {\r\n\t\t\t\t$inden = $esp . str_repeat(\"|\" . str_repeat($esp,8), $nivel) . \"|__$esp\";\r\n\t\t\t} else {\r\n\t\t\t\t$inden = \"\";\r\n\t\t\t}\r\n\t\t\t$datos[] = array('proyecto' => $proyecto,\r\n\t\t\t\t\t\t\t\t'id' => $carpeta->get_id(), \r\n\t\t\t\t\t\t\t\t'padre' => $carpeta->get_id(),\t\t//Necesario para el macheo por agrupacion\r\n\t\t\t\t\t\t\t\t'nombre' => $inden . $carpeta->get_nombre());\r\n\t\t}\r\n\t\treturn $datos;\r\n\t}", "title": "" }, { "docid": "6699829bd18955852a2dcbca649cfc8c", "score": "0.6069568", "text": "public function listarInstructores()\n\t{\n\t\t$this->sql = \"SELECT * FROM tbl_usuarios WHERE rol_usuario = 'Instructor';\";\n\n\t\t$this->abrirBaseDatos();\n\t\t$this->res = $this->ejecutarConsulta($this->sql);\n\t\twhile ($campo = mysql_fetch_array($this->res)) \n\t\t{\n\t\t\techo \"<tr>\";\n\t\t\techo \"<td>\".$campo['ide_usuario'].\"</td>\";\n\t\t\techo \"<td>\".$campo['nom_usuario'].\" \".$campo['ape_usuario'].\"</td>\";\n\t\t\techo \"<td>\".$campo['cor_usuario'].\"</td>\";\n\t\t\techo \"<td>\";\n\t\t\techo \"<a href='consultarInstructor.php?id=\".$campo['ide_usuario'].\"'>\n\t\t\t<i class='circular inverted red search icon'></i></a> | \";\n\t\t\techo \"<a href='modificarInstructor.php?id=\".$campo['ide_usuario'].\"'>\n\t\t\t<i class='circular inverted green edit sign icon'></i></a> | \";\n\t\t\techo \"<a href='javascript:;' onclick='confirmar(\".$campo['ide_usuario'].\");'>\n\t\t\t<i class='circular inverted purple trash icon'></i></a>\";\n\t\t\techo \"</td>\";\n\t\t\techo \"</tr>\";\n\t\t}\n\t\t$this->cerrarBaseDatos();\n\t}", "title": "" }, { "docid": "8d8f3bbacc12eb1492a361a97d75087b", "score": "0.6057336", "text": "public function listarActivos(){\n\t\t$sql = \"SELECT ar.idarticulo, ar.idcategoria, ca.nombre as categoria, ar.codigo,\n\t\tar.nombre, ar.stock, ar.descripcion, ar.imagen, ar.condicion FROM articulo ar INNER JOIN categoria ca ON ar.idcategoria = ca.idcategoria WHERE ar.condicion = '1'\";\n\t\treturn ejecutarConsulta($sql);\n\t}", "title": "" }, { "docid": "ef7764ec1896ef23699418d7298e429c", "score": "0.6050041", "text": "public function listarProduto(){\n $sql = \"SELECT\n produto.idproduto,\n produto.nome,\n produto.preco,\n produto.descricao,\n departamento.nome as 'departamento'\n \n FROM produto\n INNER JOIN departamento\n ON produto.fk_departamento_produto = departamento.iddepartamento\" ;\n \n $con = Conexao:: getInstance() -> prepare($sql);\n $con -> execute();\n\n $lista = array();\n\n while($produto = $con->fetch(PDO::FETCH_ASSOC)){\n $lista[] = $produto;\n }\n\n return $lista;\n }", "title": "" }, { "docid": "001099b381084b096663489621154e00", "score": "0.60445637", "text": "public function list(){\n $tipoEquipamento = tipoEquipamentos::where('status','Ativo')->get();\n \n return Datatables::of($tipoEquipamento)\n ->editColumn('acao',function($tipoEquipamento){\n return $this->setDataButtons($tipoEquipamento);\n })\n ->editColumn('nome', function($tipoEquipamento){\n return $tipoEquipamento->nome;\n })\n ->editColumn('observacao', function($tipoEquipamento){\n return $tipoEquipamento->observacao;\n })\n ->editColumn('status', function($tipoEquipamento){\n if($tipoEquipamento->status)\n return \" <span class='label label-success' style='font-size:14px'>Ativo</span>\";\n else\n return \" <span class='label label-default' style='font-size:14px'>Inativo</span>\";\n })\n ->escapeColumns([0])\n ->make(true);\n }", "title": "" }, { "docid": "c3f15ecc9964e22e32dffd49a5b96baf", "score": "0.6036653", "text": "public function lista () {\n ?>\n <ul>\n <li> <?php echo $this-> nome; ?> </li>\n <li> <?php echo $this-> location; ?> </li>\n <?php\n for ($i=0; $i < count($this-> prodotti) ; $i++) {\n ?> <li> Prodotto <?php echo $i + 1 ?> </li> <?php\n foreach ($this-> prodotti[$i] as $value) {\n ?>\n <ul>\n <li> <?php echo $value; ?> </li>\n </ul>\n <?php\n }\n }\n ?>\n </ul>\n <?php\n }", "title": "" }, { "docid": "803fde844d1f2c29164162f06855d209", "score": "0.603502", "text": "public function ventapaqueteAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DGPlusbelleBundle:Paciente')->findAll();\n\n return array(\n 'pacientes' => $entities,\n );\n\n\n }", "title": "" }, { "docid": "7ea1d4bd0a7c372493bbe51170a5a0a1", "score": "0.60190827", "text": "function listarTramitesAjustables(){\n\t\t$this->procedimiento='pre.ft_partida_ejecucion_sel';\n\t\t$this->transaccion='PRE_LISTRAPE_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\n\t\t$this->setParametro('fecha_ajuste','fecha_ajuste','date');\n\t\t$this->captura('id_gestion','int4');\n $this->captura('nro_tramite','varchar');\n $this->captura('codigo','varchar');\n\t\t$this->captura('id_moneda','int4');\n\t\t$this->captura('desc_moneda','varchar');\n\t\t\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "7d060377083f1d4b708a6a6a77ba79ce", "score": "0.6018411", "text": "public function listar(){\n\t\t$sql = \"SELECT * FROM permiso\";\n\t\treturn ejecutarConsulta($sql);\n\t}", "title": "" }, { "docid": "22be0635e0a4d383213422850fda2955", "score": "0.6017002", "text": "function listarAsociarBoletos(){\r\n\t\t$this->objFunc=$this->create('MODVentaFacturacion');\r\n\t\t$this->res=$this->objFunc->listarAsociarBoletos($this->objParam);\r\n\t\t$this->res->imprimirRespuesta($this->res->generarJson());\r\n }", "title": "" }, { "docid": "6896cbd295878e3786549f7997f60818", "score": "0.60069096", "text": "public function relatorioEquipamentosCadastrados()\n {\n //Orderando e tratando dados do equipamento\n $dados['equipamentos'] = DB::table('equipamentos')->orderBy('nome')->get()->toArray();\n array_walk($dados['equipamentos'], function(&$v, $k){\n unset($v->created_at);\n unset($v->updated_at);\n return $v;\n });\n\n return view('equipamentos_cadastrados', $dados);\n }", "title": "" }, { "docid": "b5a8844126f5e1aaca8801f8259815bd", "score": "0.6005091", "text": "function equipos_club(){\n\t\tglobal $query;\n\t\t$datos=$query->equipos_completo();\n\t\tformatea_envia($datos);\n\t}", "title": "" }, { "docid": "c4aefb961aed32feb1894c101ad8f95b", "score": "0.60030955", "text": "public function getAllPettorine()\n\t{\n\t\t$sql = 'SELECT casacca FROM atleta ORDER BY casacca';\n\t\t$query = $this->db->query($sql);\n\n\t\treturn $query->fetchAll();\n\t}", "title": "" }, { "docid": "0589a9c702e6f950983044976e967e57", "score": "0.5981084", "text": "function listarBoletoAmadeus(){\n $this->procedimiento='obingresos.ft_boleto_amadeus_sel';\n $this->transaccion='OBING_BOLREPAMA_SEL';\n $this->tipo_procedimiento='SEL';//tipo de transaccion\n //Definicion de la lista del resultado del query\n $this->captura('id_boleto_amadeus','int4');\n $this->captura('fecha_emision','date');\n $this->captura('estado','varchar');\n $this->captura('moneda','varchar');\n $this->captura('total','numeric');\n $this->captura('pasajero','varchar');\n $this->captura('id_moneda_boleto','int4');\n $this->captura('estado_reg','varchar');\n $this->captura('neto','numeric');\n $this->captura('liquido','numeric');\n $this->captura('nro_boleto','varchar');\n $this->captura('id_usuario_ai','int4');\n $this->captura('id_usuario_reg','int4');\n $this->captura('fecha_reg','timestamp');\n $this->captura('usuario_ai','varchar');\n $this->captura('id_usuario_mod','int4');\n $this->captura('fecha_mod','timestamp');\n $this->captura('usr_reg','varchar');\n $this->captura('usr_mod','varchar');\n $this->captura('id_forma_pago','integer');\n $this->captura('forma_pago','varchar');\n $this->captura('forma_pago_amadeus','varchar');\n $this->captura('monto_forma_pago','numeric');\n $this->captura('codigo_forma_pago','varchar');\n $this->captura('numero_tarjeta','varchar');\n $this->captura('codigo_tarjeta','varchar');\n $this->captura('ctacte','varchar');\n $this->captura('moneda_fp1','varchar');\n $this->captura('id_forma_pago2','integer');\n $this->captura('forma_pago2','varchar');\n $this->captura('forma_pago_amadeus2','varchar');\n $this->captura('monto_forma_pago2','numeric');\n $this->captura('codigo_forma_pago2','varchar');\n $this->captura('numero_tarjeta2','varchar');\n $this->captura('codigo_tarjeta2','varchar');\n $this->captura('ctacte2','varchar');\n $this->captura('moneda_fp2','varchar');\n $this->captura('voided','varchar');\n $this->captura('monto_total_fp','numeric');\n $this->captura('localizador','varchar');\n $this->captura('forma_pag_amadeus','varchar');\n $this->captura('officeid','varchar');\n $this->captura('codigo_iata','varchar');\n $this->captura('mco','varchar');\n $this->captura('mco2','varchar');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n //var_dump($this->consulta); exit;\n //Devuelve la respuesta\n return $this->respuesta;\n }", "title": "" }, { "docid": "5f98873bc71902ead32849b612ba8408", "score": "0.59768116", "text": "public function productos()\n {\n $rol = $this->session->get('status');\n $datos = array('rol' => $rol);\n $this->vista('Tivicom/products', $datos);\n }", "title": "" }, { "docid": "4748639f3a48766ea6440f37b3f75c2c", "score": "0.596092", "text": "public function mostrarAlunos() {\r\n\t\tforeach($this->alunos as $aluno) {\r\n\t\t\techo $aluno->nome . '<br>';\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fcc29003bf6da96dbe4a49faefd03508", "score": "0.59516394", "text": "function listar()\n\t{\n\t\t$data['porhacer'] \t= $this->model_pedido->getPedidoPorHacer();\n\t\t$data['vistaporhacer'] \t= $this->model_pedido->getVistaPedidoPorHacer();\n\n\t\t$data['progreso'] \t= $this->model_pedido->getPedidoEnProgreso();\n\t\t$data['vistaenprogreso'] = $this->model_pedido->getVistaPedidoEnProgreso();\n\t\t\n\n\t\t$data['completado'] \t= $this->model_pedido->getPedidoCompletado();\n\t\t$data['vistacompletado'] = $this->model_pedido->getVistaPedidoCompletado();\n\t\t$this->load->view('admin/pedidos',$data);\n\t}", "title": "" }, { "docid": "c5a2bec4ab97ed8321f887db579d343b", "score": "0.5950445", "text": "static function get_items_para_combo($proyecto = null, $incluir_carpetas = false)\r\n\t{\r\n\t\tif (! isset($proyecto)) {\r\n\t\t\t$proyecto = toba_contexto_info::get_proyecto();\r\n\t\t}\r\n\t\t$catalogador = new toba_catalogo_items($proyecto);\r\n\t\t$catalogador->cargar_todo();\t\r\n\t\t$esp = html_entity_decode('&nbsp;', ENT_COMPAT | ENT_HTML401, \"ISO-8859-1\");\r\n\t\t\r\n\t\tforeach($catalogador->items() as $item) {\r\n\t\t\tif (! $item->es_carpeta() || $incluir_carpetas) {\r\n\t\t\t\t$nivel = $item->get_nivel_prof() - 1;\r\n\t\t\t\tif($nivel >= 1){\r\n\t\t\t\t\t$inden = $esp . str_repeat('|' . str_repeat($esp, 8), $nivel -1) . \"|__$esp\";\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$inden = \"\";\r\n\t\t\t\t}\r\n\t\t\t\t$datos[] = array('proyecto' => toba_contexto_info::get_proyecto(),\r\n\t\t\t\t\t\t\t\t\t'id' => $item->get_id(), \r\n\t\t\t\t\t\t\t\t\t'padre' => $item->get_id_padre(),\r\n\t\t\t\t\t\t\t\t\t'descripcion' => $inden . $item->get_nombre());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $datos;\t\t\r\n\t}", "title": "" }, { "docid": "3423ea0197c8a81ca163af3d0b546094", "score": "0.5942235", "text": "public static function lista()\n {\n\n return DB::select( 'id', 'nombre' )\n ->from( 'pais' )\n ->where( 'activo', '=', '1' )\n ->order_by( 'nombre', 'asc' )\n ->execute()\n ->as_array( 'id', 'nombre' );\n\n }", "title": "" }, { "docid": "129528f4f3c28a735a6bb8734a4e6ff9", "score": "0.59330034", "text": "function plantillas_equipos_club($equipo){\n\t\tglobal $query;\n\t\t$datos=$query->personal_equipo($equipo);\n\t\tformatea_envia($datos);\n\t}", "title": "" }, { "docid": "cef41ad49a0c285c075bfcd083865a29", "score": "0.5925626", "text": "public static function listarPorIdAcompanhante($id){\r\n $instancia = AvaliacaoDAO::getInstancia();\r\n // executando o metodo //\r\n $avaliacao = $instancia->listarPorIdAcompanhante($id);\r\n // checando se o retorno foi falso //\r\n if(!$avaliacao)\r\n // levantando a excessao ListaVazia //\r\n throw new ListaVazia(ListaVazia::AVALIACAO);\r\n // percorrendo os usuarios //\r\n foreach($avaliacao as $avaliacao){\r\n \r\n // instanciando e jogando dentro da colecao $objetos o Usuario //\r\n $objetos[] = self::factoryObj($avaliacao);\r\n }\r\n // retornando a colecao $objetos //\r\n return $objetos;\r\n }", "title": "" }, { "docid": "eb13bc2b0d86c5b5d97bac7c1b2a6bf8", "score": "0.5924693", "text": "public function agua(){\n $answer = $this->queryList(\"SELECT tipo_agua FROM paciente\",[]);\n return $answer;\n }", "title": "" }, { "docid": "3642de18c127b31b7c4c8e4048ab94d2", "score": "0.59135246", "text": "function listar(){\n\t\t$html = file_get_html('http://www.aemet.es/es/eltiempo/prediccion/municipios?p=50&w=t');\n\t\t$aes = $html->find('table tbody tr td a');\n\t\t$options =\"\";\n\t\tforeach($aes as $a){\n\t\t\t$stringid = $a -> href;\n\t\t\t$id = explode(\"-id\", $stringid)[1];\n\t\t\t$nombre = $a -> plaintext;\n\n\t\t\tif(strcmp($id,\"50297\")==0){ // Zaragoza selected\n\t\t\t\t$options .= \"<option selected=\\\"selected\\\" value=\\\"\".$id.\"\\\">\".$nombre.\"</option>\\n\";\n\t\t\t}else{\n\t\t\t\t$options .= \"<option value=\\\"\".$id.\"\\\">\".$nombre.\"</option>\\n\";\n\t\t\t}\n\n\t\t}\n\t\techo $options;\n\t}", "title": "" }, { "docid": "ea94aa6e9723f73bc82d91c938371fcc", "score": "0.59120876", "text": "function listarUnidadconstructivaetaitem(){\n\t\t$this->procedimiento='snx.ft_unidadconstructivaetaitem_sel';\n\t\t$this->transaccion='SNX_UCBETAI_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_unidadconstructivaetaitem','int4');\n\t\t$this->captura('id_unidadconstructivaeta','int4');\n\t\t$this->captura('id_unidad','int4');\n\t\t$this->captura('valorunitario','numeric');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('cantidaditem','numeric');\n\t\t$this->captura('unidadconstructivaetaitem','varchar');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('usuario_ai','varchar');\n\t\t$this->captura('id_usuario_ai','int4');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t$this->captura('desc_unidadabrev','varchar');\n\t\t$this->captura('valortotaletaitem','numeric');\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": "3deaf6917df9369809f0cf1fd8ed4bd8", "score": "0.5910754", "text": "function listar() {\r\n $sql = \"SELECT codigo, codproy, codprod, cantidad, umedida, preciou, preciot, FROM hs_prydb02 WHERE codigo = '$this->codigo'\";\r\n $result = $this->consultas($sql);\r\n $lista = $this->n_fila($result);\r\n return $lista;\r\n }", "title": "" }, { "docid": "851cb6017bf2be3654c3157ade809b26", "score": "0.590531", "text": "public function alunos () {\n\t\t// Verifica permissões\n\t\tif (!$this->temPermissao(2)) {\n\t\t\treturn;\n\t\t}\n\t\t// Busca as infos e carrega a tela\n\t\t$data['alunos'] = $this->pessoa->buscaAlunos();\n\t\t$this->load->view('cms/lista_alunos', $data);\n\t}", "title": "" }, { "docid": "6b6be9730abaaddbc2e4896c666b1dab", "score": "0.59000814", "text": "public function listVencidas()\n {\n $repository = $this->getDoctrine()->getRepository(Perimetral::class);\n $perimetralesVencidas=$repository->expedientesPerimetralesVencidas();\n return $this->render('perimetral/index.html.twig', array(\n 'perimetrales' => $perimetralesVencidas, \n 'titulo'=>'perimetrales vencidas',\n 'metodo' => 'listVencidas'\n ));\n }", "title": "" }, { "docid": "87d781a9e14d8d0103b57eb0d7c966f6", "score": "0.58895355", "text": "public function lista(){\n\t\t$produtos = Produto::all(); //mesma coisa q select * from tabela\"produtos\"\n\t\t//$produtos = Produto::only('nome');\n\t\treturn view('produto.listagem')->with('batata', $produtos);\n\t\t//return view('listagem')->withProdutos($produtos);\n\n\t}", "title": "" }, { "docid": "22e8a56507b42eb11b17231a77427d36", "score": "0.58891964", "text": "public function listar(){\n\n\t\t$sql = \"SELECT * FROM licenciatura\";\n\t\treturn ejecutarConsulta($sql);\n\n\t}", "title": "" }, { "docid": "220099abd3e945ba3a715a4f02042bf9", "score": "0.5859479", "text": "public static function list( )\n\t\t{\n\t\t\t//echo \"Listando as coisas\";\n\t\t\n\t\t\t$dao = new LivroDAO;\n\t\t\t$lista = $dao->listAll( );\n\n\t\t\tself::view( 'consulta' , $lista );\n\n\t\t}", "title": "" }, { "docid": "171ca028e10bc0e39d797b887a6be33a", "score": "0.58573353", "text": "function listar_itens($vtipo, $vid) {\n\t\t\n\t\t\n\t\t\n\t\t$db = Conexao::getInstance();\n\t\t\n\t\ttry{\n\t\t\tif($tipo=='P')\n\t\t\t{\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$sql = \"\n\t\t\t\tSELECT \n\t\t\t\t\tP.id_pecas_orcamento, \n\t\t\t\t\tP.orc_cabecalho_orcamento_id_orcamento, \n\t\t\t\t\tP.pec_desc_peca, \n\t\t\t\t\tP.pec_cod_peca,\n\t\t\t\t\tpec_quantidade,\n\t\t\t\t\tP.pec_ano, \n\t\t\t\t\tP.pec_cod_orcamento \n\t\t\t\tFROM \n\t\t\t\t\torc_pecas_orcamento P \n\t\t\t\tWHERE \n\t\t\t\t\tP.orc_cabecalho_orcamento_id_orcamento = \".$vid.\" \n\t\t\t\tORDER BY \n\t\t\t\t\tP.pec_cod_peca\";\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t$query = $db->query($sql);\n\t\t\t$tabela = \"\";\n\t\t\tforeach($query->fetchAll(PDO::FETCH_ASSOC) as $lista_itens) {\n\n\t\t\t\t\t\n\t\t\t\t\t$tabela .= ' \n\t\t\t\t\t<br />\n\t\t\t\t\t<br />\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t<div id=\"item_'.$lista_itens['pec_cod_peca'].'\">\n \t<table>\n <tbody>\n \t<tr>\n \t <td class=\"tdItem\" width=\"5%\" style=\"text-align:center\">'.$lista_itens['pec_cod_peca'].'</td> \n <td rowspan=\"2\" class=\"tdDesc\" width=\"95%\">'.utf8_encode($lista_itens['pec_desc_peca']).'</td>\n \t</tr>\n\t <tr>\n \t \t<td class=\"tdQtdad\" width=\"5%\" style=\"text-align:center\">'.$lista_itens['pec_quantidade'].'</td>\n \t </tr>\n </tbody>\n </table>\n </div>\n\t\t\t\t<br />\n\t\t\t\t\n\t\t\t\t<!-- Linha Alterada Atualizar no index--> \n\t\t\t\t\n\t\t\t\t<br />\n\t\t\t\t<div id=\"botoes_tabela_0\">\n\t\t\t\t\n\t\t\t\t<!-- BOTÃO HISTÓRICO COMERCIAL -->\n\t\t\t\t<input id = \"HC_'.$lista_itens[\"pec_cod_peca\"].'\" name=\"btn_historico_comercial\" type=\"button\" value=\"HISTÓRICO COMERCIAL\" class=\"barra_ferramenta\" item_id = \"'.$lista_itens['id_pecas_orcamento'].'\" ano=\"'.$lista_itens[\"pec_ano\"].'\" cod_orc = \"'.$lista_itens[\"pec_cod_orcamento\"].'\">\n\t\t\t\t\n\t\t\t\t<!-- BOTÃO PENDÊNCIAS COMERCIAL -->\n\t\t\t\t<input id = \"PC_'.$lista_itens[\"pec_cod_peca\"].'\" name=\"btn_historico_pendencia\" type=\"button\" value=\"PENDÊNCIAS COMERCIAL\" class=\"barra_ferramenta\" item_id = \"'.$lista_itens['id_pecas_orcamento'].'\" ano=\"'.$lista_itens[\"pec_ano\"].'\" cod_orc = \"'.$lista_itens[\"pec_cod_orcamento\"].'\">\n\t\t\t\t\n\t\t\t\t<!-- BOTÃO HISTÓRICO PROJETOS -->\n\t\t\t\t<input id = \"HP_'.$lista_itens[\"pec_cod_peca\"].'\" name=\"btn_historico_projetos\" type=\"button\" value=\"HISTÓRICO PROJETOS\" class=\"barra_ferramenta\" item_id = \"'.$lista_itens['id_pecas_orcamento'].'\" ano=\"'.$lista_itens[\"pec_ano\"].'\" cod_orc = \"'.$lista_itens[\"pec_cod_orcamento\"].'\">\n\t\t\t\t\n\t\t\t\t<!-- BOTÃO PENDÊNCIAS PROJETOS -->\n\t\t\t\t<input id = \"PP_'.$lista_itens[\"pec_cod_peca\"].'\" name=\"btn_historico_projetos\" type=\"button\" value=\"PENDÊNCIAS PROJETOS\" class=\"barra_ferramenta\" item_id = \"'.$lista_itens['id_pecas_orcamento'].'\" ano=\"'.$lista_itens[\"pec_ano\"].'\" cod_orc = \"'.$lista_itens[\"pec_cod_orcamento\"].'\">\n\t\t\t\t\n\t\t\t\t<!-- BOTÃO CRONOGRAMA -->\n\t\t\t\t<input id = \"CP_'.$lista_itens[\"pec_cod_peca\"].'\" name=\"btn_cronograma\" type=\"button\" value=\"CRONOGRAMA\" class=\"barra_ferramenta\" item_id = \"'.$lista_itens['id_pecas_orcamento'].'\" ano=\"'.$lista_itens[\"pec_ano\"].'\" cod_orc = \"'.$lista_itens[\"pec_cod_orcamento\"].'\">\n\t\t\t\t\n\t\t\t\t<!-- BOTÃO ALERTAS CRONOGRAMA -->\n\t\t\t\t<input id = \"AC_'.$lista_itens[\"pec_cod_peca\"].'\" name=\"btn_alerta\" type=\"button\" value=\"ALERTAS CRONOGRAMA\" class=\"barra_ferramenta\" item_id = \"'.$lista_itens['id_pecas_orcamento'].'\" ano=\"'.$lista_itens[\"pec_ano\"].'\" cod_orc = \"'.$lista_itens[\"pec_cod_orcamento\"].'\">\n\t\t\t\t\n\t\t\t\t<!-- BOTÃO OBSERVAÇÃO PRODUTOS -->\n\t\t\t\t<input id = \"OP_'.$lista_itens[\"pec_cod_peca\"].'\" name=\"btn_alerta\" type=\"button\" value=\"OBSERVAÇÃO PRODUTOS\" class=\"barra_ferramenta\" item_id = \"'.$lista_itens['id_pecas_orcamento'].'\" ano=\"'.$lista_itens[\"pec_ano\"].'\" cod_orc = \"'.$lista_itens[\"pec_cod_orcamento\"].'\">\n\t\t\t\t\n\t\t\t\t<!-- BOTÃO ALERTA PRODUTOS -->\n\t\t\t\t<input id = \"AP_'.$lista_itens[\"pec_cod_peca\"].'\" name=\"btn_alerta\" type=\"button\" value=\"ALERTAS PRODUTOS\" class=\"barra_ferramenta\" item_id = \"'.$lista_itens['id_pecas_orcamento'].'\" ano=\"'.$lista_itens[\"pec_ano\"].'\" cod_orc = \"'.$lista_itens[\"pec_cod_orcamento\"].'\">\n\t\t\t\t\n\t\t\t\t<!-- BOTÃO LISTA DE MATERIAIS SINTÉTICO -->\t\t\t\t\n\t\t\t\t<input id = \"LM_'.$lista_itens[\"pec_cod_peca\"].'\" name=\"btn_alerta\" type=\"button\" value=\"LISTA DE MATERIAIS SINTÉTICO\" class=\"barra_ferramenta\" item_id = \"'.$lista_itens['id_pecas_orcamento'].'\" ano=\"'.$lista_itens[\"pec_ano\"].'\" cod_orc = \"'.$lista_itens[\"pec_cod_orcamento\"].'\">\n\t\t\t\t\n\t\t\t\t<!-- BOTÃO LISTA DE MATERIAIS C/VALORES -->\t\t\t\t\n\t\t\t\t<input id = \"LV_'.$lista_itens[\"pec_cod_peca\"].'\" name=\"btn_alerta\" type=\"button\" value=\"LISTA DE MATERIAIS C/VALORES\" class=\"barra_ferramenta\" item_id = \"'.$lista_itens['id_pecas_orcamento'].'\" ano=\"'.$lista_itens[\"pec_ano\"].'\" cod_orc = \"'.$lista_itens[\"pec_cod_orcamento\"].'\">\t\t\n\t\t\t\t\n\t\t\t\t<!-- BOTÃO LISTA DE MATERIAIS NÃO CONFORME -->\n\t\t\t\t<input id = \"NC_'.$lista_itens[\"pec_cod_peca\"].'\" name=\"btn_alerta\" type=\"button\" value=\"LISTA DE MATERIAIS NÃO CONFORME\" class=\"barra_ferramenta\" item_id = \"'.$lista_itens['id_pecas_orcamento'].'\" ano=\"'.$lista_itens[\"pec_ano\"].'\" cod_orc = \"'.$lista_itens[\"pec_cod_orcamento\"].'\">\t\t\t\t\n\t\t\t\t\n\t\t\t\t<!-- BOTÃO ARQUIVOS COMERCIAL -->\n\t\t\t\t<input id = \"FC_'.$lista_itens[\"pec_cod_peca\"].'\" name=\"btn_alerta\" type=\"button\" value=\"ARQUIVOS COMERCIAL\" class=\"barra_ferramenta\" item_id = \"'.$lista_itens['id_pecas_orcamento'].'\" ano=\"'.$lista_itens[\"pec_ano\"].'\" cod_orc = \"'.$lista_itens[\"pec_cod_orcamento\"].'\">\t\n\t\t\t\t\n\t\t\t\t<!-- BOTÃO ARQUIVOS PROJETOS -->\n\t\t\t\t<input id = \"FP_'.$lista_itens[\"pec_cod_peca\"].'\" name=\"btn_alerta\" type=\"button\" value=\"ARQUIVOS PROJETOS\" class=\"barra_ferramenta\" item_id = \"'.$lista_itens['id_pecas_orcamento'].'\" ano=\"'.$lista_itens[\"pec_ano\"].'\" cod_orc = \"'.$lista_itens[\"pec_cod_orcamento\"].'\"><br /><br /><br /><br />\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t<br /><br /><div id=\"tb_'.$lista_itens[\"pec_cod_peca\"].'\"></div>';\n\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn $tabela;\n\t\t\t\n\t\t } catch (PDOException $ex) {\n\t\t\t\t\t\texit (\"Erro ao conectar com o banco de dados: \" . $ex->getMessage());\n\t\t }\n\n}", "title": "" }, { "docid": "bf1e17a08a4a3b030ecb719a50f1047f", "score": "0.5856356", "text": "public function getEquipidsList(){\n return $this->_get(4);\n }", "title": "" }, { "docid": "bce48a5ab4a30931be2851f4136afa7b", "score": "0.5854378", "text": "public function listInventory(){\r\n\t\t\t$dbo = db::getInstance();\r\n\t\t\t$stm = $dbo->prepare('SELECT * FROM \"Inventory\"');\r\n\t\t\t$stm->execute();\r\n\t\t\treturn $stm->fetchAll(PDO::FETCH_ASSOC); \r\n\t\t}", "title": "" }, { "docid": "9a8cdf671bc25e4608f720dd8abe6243", "score": "0.585358", "text": "function listarRespuestaAprobacion(){\n\t\t$this->procedimiento='agetic.ft_respuesta_aprobacion_sel';\n\t\t$this->transaccion='AGETIC_RESAPD_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_respuesta','int4');\n\t\t$this->captura('finalizado','bool');\n\t\t$this->captura('link','varchar');\n\t\t$this->captura('estado_proceso','varchar');\n\t\t$this->captura('id_dato_enviado','int4');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\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": "3a34cb23c25282fcfe7bf000cf6fa45f", "score": "0.58518475", "text": "public function equiposAudiovisuales(){\n return Equipo::where('tipo', \"Audiovisual\")\n ->where('aula_id', $this->id)\n ->get();\n }", "title": "" }, { "docid": "9f031f4c384a206051d4b9e03bde0489", "score": "0.58441687", "text": "public function listAvencer()\n {\n $em = $this->getDoctrine()->getManager();\n $diasPerimetral = $em->getRepository('AppBundle:VencimientoPerimetral')->findOneBy([]);\n $repository = $this->getDoctrine()->getRepository(Perimetral::class);\n $perimetralesVencidas=$repository->expedientesPerimetralesPorVencer($diasPerimetral->getDiasNotificacion());\n return $this->render('perimetral/index.html.twig', array(\n 'perimetrales' => $perimetralesVencidas, \n 'titulo'=>'perimetrales por vencer',\n 'metodo' => 'listAvencer'\n ));\n }", "title": "" }, { "docid": "f1db8f635212093e52738df9df061d85", "score": "0.5843339", "text": "public function getCompletados()\n {\n return $this->hasMany(Completados::class, ['juego_id' => 'id'])->via('juegos');\n }", "title": "" }, { "docid": "6dabd2817dc13a1743e5cdd5c64ac908", "score": "0.5841156", "text": "Public Function ListarProdutosVenda(){\r\n $dao = new ProdutosVendasDao();\r\n $lista = $dao->ListarProdutosVenda(); \r\n return $lista;\r\n }", "title": "" }, { "docid": "5911046f93e9cb29909c18cc18887eeb", "score": "0.58354616", "text": "public function getListeDesActes(){\n \t\t$adapter = $this->tableGateway->getAdapter();\n \t\t$sql = new Sql($adapter);\n \t\t$select = $sql->select();\n \t\t$select->columns(array('*'));\n \t\t$select->from(array('a'=>'actes'));\n \t\treturn $sql->prepareStatementForSqlObject($select)->execute();\n \t}", "title": "" }, { "docid": "53e4bedabef9cc37ef527c2c6dfec255", "score": "0.5827213", "text": "public function listar()\n {\n $sql = \"SELECT *from proyecto\";\n $resultado=$this->db->query($sql);\n \n if (!$resultado) {\n echo \"Estamos experimentando problemas, por favor intente más tarde.\" . PHP_EOL;\n // Esto es para nosotros mientras desarrollamos\n echo \"error en consulta:$sql\".PHP_EOL;\n echo \"errno de depuración: \" . mysqli_connect_errno() . PHP_EOL;\n echo \"error de depuración: \" . mysqli_connect_error() . PHP_EOL;\n exit;\n }\n //si todo esta bien:\n while($row = $resultado->fetch_assoc())\n {\n $this->proyectos;\n }\n return $this->proyectos;\n }", "title": "" }, { "docid": "9d4947ba09e2facfe855432ae2d68558", "score": "0.5822487", "text": "function listarCuencaArb()\n\t{\n\t\t$this->procedimiento='hidro.f_thd_cuenca_sel';\n\t\t$this-> setCount(false);\n\t\t$this->transaccion='HID_CUENCA_ARB_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\n\t\t$this->setParametro('id_padre','id_padre','varchar');\t\t\n\t\t//$this->setParametro('id_subsistema','id_subsistema','integer');\n\t\t\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_cuenca','integer');\n\t\t$this->captura('id_cuenca_fk','integer');\n\t\t$this->captura('tipo_cuenca','varchar');\n\t\t$this->captura('nombre','varchar');\n\t\t$this->captura('codigo','varchar');\n\t\t$this->captura('codigo_largo','varchar');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('fecha_reg','timestamp');\t\t\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\t\t\t\t\t\n\t\t//$this->captura('tipo_nodo','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": "92392b4527962eee745e3fc4d5f82dae", "score": "0.5817719", "text": "public function pega_equipamentos() {\n\t\t$obraID = $this->params['url']['obra_id'];\n\t\t\t\t\n\t\tif($obraID!='-1'){ // checa se o fornecedor é válido\n\t\t\t$this->loadModel('Lista_equipamento');\t\t\t\n\t\t\t$equipssel = $this->Lista_equipamento->find('all', array('order' => array('equipamento_nome' => 'asc'), 'conditions' => array('Lista_equipamento.obra_id' => $obraID)));\n\t\t\t$equipsel = '';\n\t\t\tforeach($equipssel as $M):\n\t\t\t\t$equipsel[$M['Lista_equipamento']['equipamento_id']]=$M['Equipamento']['equipamento_id'];\n\t\t\tendforeach;\n\t\t\t\t\t\t\n\t\t\t$this->loadModel('Estoque_equipamentos');\n\t\t\t$equipsnsel = $this->Estoque_equipamentos->find('all', array('order' => array('equipamento_nome' => 'asc'), 'conditions' => array('Estoque_equipamentos.quantidade >' => 0, \"NOT\" => array('Equipamento.equipamento_id' => $equipsel))));\n\t\t}\n\t\t\n\t\t$this->set('equipnsel', $equipsnsel);\n\t\t$this->set('equipsel', $equipssel);\n\t\t$this->Render('pega_equipamentos','ajax');\n\t}", "title": "" }, { "docid": "e04cd22bd5642d142a66e504a90ee00a", "score": "0.5799979", "text": "function getEquipo($conferencia){\n\n $sql=\"SELECT Nombre FROM equipos WHERE Conferencia='$conferencia'\";\n $equipos=mysqli_query($this->cnn, $sql);\n if($equipos){\n while ($row = mysqli_fetch_assoc($equipos)){\n $equipo[]=$row;\n }\n }\n\n return $equipo;\n }", "title": "" }, { "docid": "2203c5bb65dcad3984377a63f2a3cad4", "score": "0.5798752", "text": "public function avaliacao_list(){\n\t\t$this->load->model('avaliacao_model');\n\t\t$this->load->model('usuario_model');\n\n\n\t\t$data = array();\n\t\t$data['avaliacoes'] = $this->avaliacao_model->getAll();\n\t\t$data['usuarios'] = $this->usuario_model->getAll();\n\n\t\t$this->load->view('templates/panel_template/header');\n\t\t$this->load->view('painel/avaliacao_list', $data);\n\t\t$this->load->view('templates/panel_template/footer');\n\t}", "title": "" }, { "docid": "2c82918a548fa6101b62e415bae2e5bd", "score": "0.57968503", "text": "function listarProyectoActividad(){\n\t\t$this->procedimiento='sigep.ft_proyecto_actividad_sel';\n\t\t$this->transaccion='SIGEP_PRO_ACT_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_proyecto_actividad','int4');\n\t\t$this->captura('id_programa','int4');\n\t\t$this->captura('desc_catprg','varchar');\n\t\t$this->captura('id_catprg','int4');\n\t\t$this->captura('id_categoria_programatica','int4');\n\t\t$this->captura('programa','int4');\n\t\t$this->captura('id_entidad','int4');\n\t\t$this->captura('proyecto','varchar');\n\t\t$this->captura('nivel','varchar');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('actividad','int4');\n\t\t$this->captura('id_usuario_ai','int4');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('usuario_ai','varchar');\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('desc_cat_prog','varchar');\n\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": "5e998b9d09bb9c0c73d4541d294b3cc3", "score": "0.57939625", "text": "public function index()\n {\n return AtividadeResource::collection(Atividade::all());\n }", "title": "" }, { "docid": "80deb013154ca6a112054b2ee0035d67", "score": "0.57858384", "text": "private function listar()\n {\n $this->setFrameTemplate()\n ->setHeadTag()\n ->setMenuDerecha();\n \n IndexControllerComunidad::setCabecera($this->getTemplate());\n IndexControllerComunidad::setCenterHeader($this->getTemplate());\n\n $this->printMsgTop();\n\n //titulo seccion\n $this->getTemplate()->set_var(\"tituloSeccion\", \"Publicaciones Comunidad\");\n\n $this->getTemplate()->load_file_section(\"gui/vistas/comunidad/publicaciones.gui.html\", \"pageRightInnerMainCont\", \"ListadoPublicacionesBlock\");\n\n list($iItemsForPage, $iPage, $iMinLimit, $sOrderBy, $sOrder) = $this->initPaginator();\n\n $iRecordsTotal = 0;\n $aFichas = ComunidadController::getInstance()->buscarPublicacionesComunidad($filtro = null, $iRecordsTotal, $sOrderBy, $sOrder, $iMinLimit, $iItemsForPage);\n\n if(count($aFichas) > 0){\n\n foreach($aFichas as $oFicha){\n\n $oUsuario = $oFicha->getUsuario();\n $scrAvatarAutor = $this->getUploadHelper()->getDirectorioUploadFotos().$oUsuario->getNombreAvatar();\n\n $sNombreUsuario = $oUsuario->getApellido().\" \".$oUsuario->getNombre();\n $sTipoPublicacion = (get_class($oFicha) == \"Publicacion\")?\"Publicación\":\"Review\";\n\n $this->getTemplate()->set_var(\"iPublicacionId\", $oFicha->getId());\n $this->getTemplate()->set_var(\"sTipoPublicacionClass\", get_class($oFicha));\n $this->getTemplate()->set_var(\"scrAvatarAutor\", $scrAvatarAutor);\n $this->getTemplate()->set_var(\"sTitulo\", $oFicha->getTitulo());\n $this->getTemplate()->set_var(\"sAutor\", $sNombreUsuario);\n $this->getTemplate()->set_var(\"sFecha\", $oFicha->getFecha());\n $this->getTemplate()->set_var(\"sTipoPublicacion\", $sTipoPublicacion); \n $this->getTemplate()->set_var(\"sDescripcionBreve\", $oFicha->getDescripcionBreve());\n\n /*\n * la url de publicacion ampliada es diferente segun el tipo\n *\n * http://domain.com/comunidad/publicaciones/32-Nombre de la publicacion\n * http://domain.com/comunidad/reviews/32-Nombre del review\n */\n $sTituloUrl = $this->getInflectorHelper()->urlize($oFicha->getTitulo());\n if(get_class($oFicha) == 'Publicacion'){\n $this->getTemplate()->set_var(\"hrefAmpliarPublicacion\", $this->getRequest()->getBaseUrl().'/comunidad/publicaciones/'.$oFicha->getId().\"-\".$sTituloUrl);\n }else{\n $this->getTemplate()->set_var(\"hrefAmpliarPublicacion\", $this->getRequest()->getBaseUrl().'/comunidad/reviews/'.$oFicha->getId().\"-\".$sTituloUrl);\n }\n\n $this->thumbDestacadoFicha($oFicha);\n $this->comentariosFicha($oFicha);\n\n $this->getTemplate()->parse(\"PublicacionBlock\", true);\n }\n \n $this->getTemplate()->set_var(\"NoRecordsPublicacionesBlock\", \"\");\n\n $params[] = \"masPublicaciones=1\";\n $this->calcularPaginas($iItemsForPage, $iPage, $iRecordsTotal, \"comunidad/publicaciones/procesar\", \"listadoPublicacionesResult\", $params);\n }else{\n $this->getTemplate()->set_var(\"PublicacionBlock\", \"\");\n $this->getTemplate()->load_file_section(\"gui/vistas/comunidad/publicaciones.gui.html\", \"noRecords\", \"NoRecordsPublicacionesBlock\");\n $this->getTemplate()->set_var(\"sNoRecords\", \"No hay publicaciones cargados en la comunidad\");\n $this->getTemplate()->parse(\"noRecords\", false);\n }\n\n $this->getResponse()->setBody($this->getTemplate()->pparse('frame', false));\n }", "title": "" }, { "docid": "15d5d5b1fda702210d8bfc4ed7a2eb60", "score": "0.578565", "text": "function listarActividad(){\n\t\t$this->procedimiento='vef.ft_actividad_sel';\n\t\t$this->transaccion='VF_ACTIMP_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('actividad_id','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('codigo_actividad','varchar');\n\t\t$this->captura('descripcion','varchar');\n\t\t$this->captura('tipo_actividad','varchar');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_ai','int4');\n\t\t$this->captura('usuario_ai','varchar');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t$this->captura('id_actividad_economica','int4');\n\t\t$this->captura('codigo','varchar');\n\t\t$this->captura('desc_erp','text');\n\t\t$this->captura('nombre','varchar');\t\t\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "0041d6ac9342222122a175863a1444fc", "score": "0.5781225", "text": "public function listarAccesosUsuarios(){\n try {\n $consulta = \"SELECT * FROM acceso WHERE codUsuario > 0\";\n $param = array();\n $this->con->ConsultaNormalAssoc($consulta, $param);\n $this->result = array();\n foreach ($this->con->datos as $fila){\n $acceso[ $fila['codUsuario'] ] = $fila['codTienda'];\n }\n $this->result[] = $acceso;\n }catch (Exception $e){\n echo($e->getMessage());\n } \n }", "title": "" }, { "docid": "986576f26836e034d6964b6277014a4f", "score": "0.57780915", "text": "public function listarActivosVenta(){\n $conectar=Conectar::conexion();\n $sql=\"SELECT a.idarticulo, a.idcategoria, c.nombre as categoria, a.codigo, \n a.nombre, a.stock,(SELECT precio_venta FROM detalle_ingreso \n WHERE idarticulo = a.idarticulo ORDER BY iddetalle_ingreso desc limit 0,1) as precio_venta,\n a.descripcion, a.imagen, a.condicion\n from articulo a INNER JOIN categoria c ON a.idcategoria = c.idcategoria\n where a.condicion=1\";\n $sql=$conectar->prepare($sql);\n $sql->execute();\n\n while ($resultado = $sql->fetch()) {\n $this->listarActivosVentas[]=$resultado;\n }\n return $this->listarActivosVentas;\n }", "title": "" }, { "docid": "d97e571e10564d3da55da0e0a556a18c", "score": "0.57775813", "text": "public function listarOrcamentos() {\n\n $orcamento = \\App\\orcamentorap::All();\n return view('listarOrcamento', compact('orcamento'));\n\n }", "title": "" }, { "docid": "b53d276600c5a811653277924733f8e8", "score": "0.5771236", "text": "public function listadoPorPub()\n {\n $parameters = Route::getUrlParameters();\n $id = $parameters['id'];\n \n $com = new Comentario;\n $rta = $com->comentariosPorPub($id);\n \n View::renderJson($rta);\n }", "title": "" }, { "docid": "c0661bcb355014ffce28ed39c13217c6", "score": "0.5770886", "text": "public function index()\n {\n return view('listar.equipamentos');\n }", "title": "" }, { "docid": "52b588c4ccc56c934514e3bf6a58a7c5", "score": "0.57651246", "text": "function listar(){\n try{\n $sql=\"select * from listado\";\n $ps=$this->conexion->getConexion()->prepare($sql);\n $ps->execute(NULL);\n $resultado=[];\n while($row=$ps->fetch(PDO::FETCH_OBJ)){\n $componente=new componente();\n $componente->setPzReferencia($row->pz_referencia);\n $componente->setPzMotherboard($row->pz_motherboard);\n $componente->setPzProcesador($row->pz_procesador);\n $componente->setPzRam($row->pz_ram);\n $componente->setPzVideo($row->pz_video);\n $componente->setPzFuente($row->pz_fuente);\n array_push($resultado,$componente);\n }\n $this->conexion=null;\n }catch(PDOException $e){\n echo \"Falló la conexion\" . $e->getMessage();\n }\n return $resultado;\n }", "title": "" }, { "docid": "f12ee26a5046109662819964372bc3b5", "score": "0.5764886", "text": "function listarCuentaArb(){\n $node=$this->objParam->getParametro('node');\n\n $id_cuenta=$this->objParam->getParametro('id_cuenta');\n $tipo_nodo=$this->objParam->getParametro('tipo_nodo');\n \n \n if($node=='id'){\n $this->objParam->addParametro('id_padre','%');\n }\n else {\n $this->objParam->addParametro('id_padre',$id_cuenta);\n }\n \n\t\t$this->objFunc=$this->create('MODCuenta');\n $this->res=$this->objFunc->listarCuentaArb();\n \n $this->res->setTipoRespuestaArbol();\n \n $arreglo=array();\n \n array_push($arreglo,array('nombre'=>'id','valor'=>'id_cuenta'));\n array_push($arreglo,array('nombre'=>'id_p','valor'=>'id_cuenta_padre'));\n \n \n array_push($arreglo,array('nombre'=>'text','valores'=>'<b> #nro_cuenta# - #nombre_cuenta#</b>'));\n array_push($arreglo,array('nombre'=>'cls','valor'=>'nombre_cuenta'));\n array_push($arreglo,array('nombre'=>'qtip','valores'=>'<b> #nro_cuenta#</b><br/><b> #nombre_cuenta#</b><br> #desc_cuenta#'));\n \n \n $this->res->addNivelArbol('tipo_nodo','raiz',array('leaf'=>false,\n 'allowDelete'=>true,\n 'allowEdit'=>true,\n 'cls'=>'folder',\n 'tipo_nodo'=>'raiz',\n 'icon'=>'../../../lib/imagenes/a_form.png'),\n $arreglo);\n \n /*se ande un nivel al arbol incluyendo con tido de nivel carpeta con su arreglo de equivalencias\n es importante que entre los resultados devueltos por la base exista la variable\\\n tipo_dato que tenga el valor en texto = 'hoja' */\n \n\n $this->res->addNivelArbol('tipo_nodo','hijo',array(\n 'leaf'=>false,\n 'allowDelete'=>true,\n 'allowEdit'=>true,\n 'tipo_nodo'=>'hijo',\n 'icon'=>'../../../lib/imagenes/a_form.png'),\n $arreglo);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\n\t\t$this->res->addNivelArbol('tipo_nodo','hoja',array(\n 'leaf'=>true,\n 'allowDelete'=>true,\n 'allowEdit'=>true,\n 'tipo_nodo'=>'hoja',\n 'icon'=>'../../../lib/imagenes/a_table_gear.png'),\n $arreglo);\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\n $this->res->imprimirRespuesta($this->res->generarJson()); \n\n }", "title": "" }, { "docid": "9be0b082153ec366a1ec00c1b4efdab0", "score": "0.57613707", "text": "function listarTipoAplicacion(){\n\t\t$this->procedimiento='asis.ft_tipo_aplicacion_sel';\n\t\t$this->transaccion='ASIS_TAS_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_tipo_aplicacion','int4');\n\t\t$this->captura('id_tipo_columna','int4');\n\t\t$this->captura('nombre','varchar');\n\t\t$this->captura('descripcion','varchar');\n\t\t$this->captura('codigo_aplicacion','varchar');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('consolidable','varchar');\n\t\t$this->captura('id_usuario_ai','int4');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('usuario_ai','varchar');\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('desc_tipo_columna','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": "4104f1b744db155e60764f7d7a49a626", "score": "0.57572734", "text": "public function listaPiezas(){\n\t\t$query = \"SELECT * \n\t\t FROM pieza\n\t\t WHERE estado_pieza=1\";\n\t\t$pieza = $this->mysql->query($query);\n\t\treturn $pieza;\n\t}", "title": "" }, { "docid": "5a2d367b175bd1dd95c46eb20a64b1b6", "score": "0.57561433", "text": "function listarBoletosEmitidosAmadeus(){\n $this->procedimiento='obingresos.ft_boleto_sel';\n $this->transaccion='OBING_BOLEMI_SEL';\n $this->tipo_procedimiento='SEL';//tipo de transaccion\n //Definicion de la lista del resultado del query\n $this->captura('id_boleto_amadeus','integer');\n $this->captura('localizador','varchar');\n $this->captura('total','numeric');\n $this->captura('total_moneda_extranjera','numeric');\n $this->captura('liquido','numeric');\n $this->captura('id_moneda_boleto','int4');\n $this->captura('moneda','varchar');\n $this->captura('moneda_sucursal','varchar');\n $this->captura('tc','numeric');\n $this->captura('neto','numeric');\n $this->captura('comision','numeric');\n $this->captura('fecha_emision','date');\n $this->captura('tipo_comision','varchar');\n $this->captura('nro_boleto','varchar');\n $this->captura('pasajero','varchar');\n $this->captura('voided','varchar');\n $this->captura('estado','varchar');\n $this->captura('agente_venta','varchar');\n $this->captura('codigo_agente','varchar');\n $this->captura('forma_pago_amadeus','varchar');\n $this->captura('id_forma_pago','int4');\n $this->captura('moneda_fp1','varchar');\n $this->captura('forma_pago','varchar');\n $this->captura('codigo_forma_pago','varchar');\n $this->captura('numero_tarjeta','varchar');\n $this->captura('codigo_tarjeta','varchar');\n $this->captura('mco','varchar');\n $this->captura('id_auxiliar','int4');\n $this->captura('nombre_auxiliar','varchar');\n $this->captura('monto_forma_pago','numeric');\n $this->captura('id_forma_pago2','int4');\n $this->captura('moneda_fp2','varchar');\n $this->captura('forma_pago2','varchar');\n $this->captura('codigo_forma_pago2','varchar');\n $this->captura('numero_tarjeta2','varchar');\n $this->captura('codigo_tarjeta2','varchar');\n $this->captura('mco2','varchar');\n $this->captura('id_auxiliar2','int4');\n $this->captura('nombre_auxiliar2','varchar');\n $this->captura('monto_forma_pago2','numeric');\n $this->captura('ffid_consul','varchar');\n $this->captura('voucher_consu','varchar');\n\n $this->captura('trans_code','varchar');\n $this->captura('trans_issue_indicator','varchar');\n $this->captura('punto_venta','varchar');\n $this->captura('trans_code_exch','varchar');\n $this->captura('impreso','varchar');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n // echo($this->consulta); exit;\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "title": "" }, { "docid": "2816006439145ffc0da78154ee6ecc9c", "score": "0.5747097", "text": "function comboEntidades() {\n require_once 'Query.php';\n $sql = new Query(\"SG\");\n $sql->sql = \"\n select * from entidad_federativa order by nombre_entidad\n \";\n $nacionalidades = $sql->select(\"obj\");\n if ($nacionalidades) {\n foreach ($nacionalidades as $nac) {\n echo<<<nacio\n <option value = \"$nac->id_entidad_federativa\">$nac->nombre_entidad</option>\nnacio;\n }\n } else {\n echo <<<html\n <option value=\"\">No hay entidades</option>\nhtml;\n }\n}", "title": "" }, { "docid": "feea988df86dfb3868a42adad389174a", "score": "0.5747027", "text": "public function getVasaraList()\n {\n return self::$arVasara;\n }", "title": "" }, { "docid": "25ff9edc110d5e49d99ed78b8a80ab26", "score": "0.5739167", "text": "public function viviendas(){\n $answer = $this->queryList(\"SELECT tipo_vivienda FROM paciente\",[]);\n return $answer;\n }", "title": "" }, { "docid": "6ca6d60ae5c38f499c16b72395b34e9f", "score": "0.57352376", "text": "public function index()\n {\n $equipos=Equipos::All();\n return view('admin.partidos.equipos',compact('equipos'));\n\n\n }", "title": "" }, { "docid": "e4d6f2aee19b2b43878a0141ea44c36b", "score": "0.5735179", "text": "public function aliadosAction()\n {\n $repository = $this->getDoctrine()->getEntityManager();\n $BD2 = $repository->getConnection();\n $query2 = \"SELECT * FROM chh_aliados \";\n $prepare2 = $BD2->prepare($query2);\n $param2 = array();\n $prepare2->execute($param2);\n $home2 = $prepare2->fetchAll();\n \n \n //return new Response('asdasd'.$productos->;\n return $this->render('ProjectBundle:sitioProductivo:aliados.html.twig', array('home' => $home2));\n }", "title": "" }, { "docid": "bbc91bcd6c2e09b764231eb33d9c8bab", "score": "0.57332015", "text": "function getJugadores($equipo){\n\n $sql=\"SELECT Nombre FROM jugadores WHERE Nombre_equipo='$equipo'\";\n $jugador=mysqli_query($this->cnn,$sql);\n if($jugador){\n while ($row = mysqli_fetch_assoc($jugador)){\n $jugadores[]=$row;\n }\n }\n return $jugadores;\n }", "title": "" }, { "docid": "98afc1bf162f101d3792459f44b4af86", "score": "0.57326156", "text": "public function listar()\n {\n $sql = \"SELECT i.idingreso,DATE(i.fecha_hora) as fecha, i.idproveedor,p.nombre as proveedor, u.idusuario,u.nombre as usuario, i.tipo_comprobante, i.serie_comprobante, i.num_comprobante, i.total_compra,i.impuesto, i.estado FROM ingreso i INNER JOIN persona p ON i.idproveedor=p.idpersona INNER JOIN usuario u ON i.idusuario=u.idusuario ORDER BY i.idingreso desc\";\n return ejecutarConsulta($sql);\n }", "title": "" }, { "docid": "4bf737230adc7102164924e1995d53ef", "score": "0.5731699", "text": "public function listar()\n {\n $sql=\"SELECT * FROM lugares\";\n return ejecutarConsulta($sql);\n }", "title": "" }, { "docid": "be5d4901d7be5c6839bccef20aaf538e", "score": "0.5727878", "text": "function listerNomAppareils() {\n $con = connectDB();\n $requete_prepare = $con->prepare(\"SELECT a.idAppareil AS id_app, ty.designation AS nom_app FROM appareil AS a, typeappareil AS ty WHERE a.TypeAppareil_idTypeAppareil=ty.idTypeAppareil\");\n $requete_prepare->execute();\n while ($lignes = $requete_prepare->fetch(PDO::FETCH_OBJ)) {\n $tab[] = \"<option value='$lignes->id_app'>$lignes->nom_app</option>\";\n }\n return $tab;\n}", "title": "" }, { "docid": "5515911cd193ddf249753cae488cde4f", "score": "0.57253164", "text": "public function listar()\n {\n $sql = \"SELECT * FROM categoria\";\n return ejecutarConsulta($sql);\n }", "title": "" }, { "docid": "89b62d862aceac54af672f061f16b55a", "score": "0.57240736", "text": "function ListarVentaDetalles($venta)\n {\n $ocado = new cado();\n $sql = \"SELECT p.nombre,c.* from farm_venta_detalle c inner join farm_producto p on c.id_producto=p.id where id_venta=$venta\";\n $ejecutar = $ocado->ejecutar($sql);\n return $ejecutar;\n }", "title": "" }, { "docid": "d79d3a76dc74ba1cf5e634ba4fd3cc10", "score": "0.57234305", "text": "public function index(){\n echo \"<h4>Lista de produtos</h4>\";\n echo \"<ul>\";\n echo \"<li>Macarrão</li>\";\n echo \"<li>Feijão</li>\";\n echo \"<li>Carne Bovina</li>\";\n echo \"<li>Arroz</li>\";\n echo \"<li>Leite</li>\";\n echo \"</ul>\";\n }", "title": "" }, { "docid": "8c2e7c84ab1bb576dd621e2fc005dd52", "score": "0.57212365", "text": "public function recuperarAtividades( ) {\n\t\tglobal $DB;\n\t\t$curso_id = $this->_cursolv->getConfiguracao()->id_curso;\n\r\n\t\treturn $DB->get_records('wikilv', array('course'=>$curso_id));\n\t}", "title": "" }, { "docid": "2914429f2e527a1bb575e6c46852103c", "score": "0.5714521", "text": "function listarRespuestaSolicitudAprobacion(){\n\t\t$this->procedimiento='agetic.ft_respuesta_solicitud_aprobacion_sel';\n\t\t$this->transaccion='AGETIC_RESOLAPB_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_respuesta_solicitud','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('finalizado','bool');\n\t\t$this->captura('estado','bool');\n\t\t$this->captura('mensaje','text');\n\t\t$this->captura('link_verificacion','varchar');\n\t\t$this->captura('link_verificacion_unico','varchar');\n\t\t$this->captura('transaction_code','varchar');\n\t\t$this->captura('request_uuid','varchar');\n\t\t$this->captura('redirect_uri','varchar');\n\t\t$this->captura('id_notificacion_solicitud','int4');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_ai','int4');\n\t\t$this->captura('usuario_ai','varchar');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\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": "c8875d215a332c9a35738f33dc4193f6", "score": "0.5713875", "text": "public function getAchieveList(){\r\n return $this->_get(3);\r\n }", "title": "" }, { "docid": "ebd2b851a48c4ac74b846ea40370c9a1", "score": "0.570796", "text": "public function mostraractivos(){\n $conectar=Conectar::conexion();\n $sql=\"select a.idarticulo, a.idcategoria, c.nombre as categoria, a.codigo, \n a.nombre, a.stock, a.descripcion, a.imagen, a.condicion\n from articulo a INNER JOIN categoria c ON a.idcategoria = c.idcategoria\n where a.condicion=1\";\n $sql=$conectar->prepare($sql);\n $sql->execute();\n\n while ($resultado = $sql->fetch()) {\n $this->mostraractivos[]=$resultado;\n }\n return $this->mostraractivos;\n }", "title": "" }, { "docid": "26e82de000cd548b8afb38b51a42849c", "score": "0.57033926", "text": "public function lists($page=1)\n {\n\t$empleados= new Empleados();\n\t$this->listapersona=$empleados->paginacion($page);\n }", "title": "" }, { "docid": "1804fccbcb5bacb14a471ae4626a2a50", "score": "0.56909484", "text": "public function getVirtuozzoList()\n\t{\n\t\treturn $this->get('license/virtuozzo')->send()->getBody(true);\n\t}", "title": "" }, { "docid": "e0fe386c1cb6dbd22aa19fe7bbb87469", "score": "0.56878984", "text": "public function relatorioEquipamentosProduto()\n { \n //Orderando e tratando dados do equipamento\n $dados['equipamentos'] = DB::table('equipamentos')->orderBy('nome')->get()->toArray();\n array_walk($dados['equipamentos'], function(&$v, $k){\n unset($v->created_at);\n unset($v->updated_at);\n\n return $v;\n });\n\n $dados['manutencoes'] = null;\n $dados['equipamento_id'] = 0;\n return view('pesquisa_equipamento_produto', $dados);\n }", "title": "" }, { "docid": "f1ee8608c04b1052bd34f3a24b96e5b6", "score": "0.56874704", "text": "public function getElencoPettorine()\n\t{\n\t\t$sql = 'SELECT atleta.casacca, atleta.nome, atleta.cognome, scuola.nome_scuola\n\t\t\t\tFROM atleta, scuola WHERE atleta.id_scuola = scuola.id ORDER BY atleta.casacca';\n\t\t$query = $this->db->prepare($sql);\n\t\t$query->execute();\n\t\treturn $query->fetchAll();\n\t}", "title": "" }, { "docid": "7603479bf3638ce339e8d17894b052c0", "score": "0.5682731", "text": "public function list_parceiro() {\n $url = 'https://cartaomasterclin.com.br/api/v1/parceiro/';\n return $this->sendGet($url);\n }", "title": "" }, { "docid": "3de731340d4c66f19c97c65f4b188549", "score": "0.56796235", "text": "function mostrarInscripciones(){\n $rta = $this->inscripcionesDao->listar();\n if ($rta !== null) {\n echo $rta;\n } else {\n echo 'Hubo un error al mostrar la informacion';\n }\n }", "title": "" }, { "docid": "4085c5de20e4b75899d3685f209556ee", "score": "0.56766564", "text": "function ListarCompraDetalles($compra)\n {\n $ocado = new cado();\n $sql = \"SELECT p.nombre,c.* from farm_compra_detalle c inner join farm_producto p on c.id_producto=p.id where id_compra=$compra\";\n $ejecutar = $ocado->ejecutar($sql);\n return $ejecutar;\n }", "title": "" }, { "docid": "967a63f9c2216d38fa4354e537be323f", "score": "0.56757444", "text": "public static function ListeActivite()\r\n {\r\n // connection BDD \r\n $mysqli = AbiDAO::ConnectAbi();\r\n //Recupere la liste d'activite de la table activite\r\n $sql = \"select idActivite,secteur from activite\";\r\n $result = $mysqli->query($sql) or die (\"Requête SQL invalide\");\r\n $dataActivite = array();\r\n while($row = $result->fetch_array())\r\n {\r\n\t\t$dataActivite[] = $row;\r\n\t}\r\n\t\r\n\t//facultatif, pour faire propre… \r\n\t$result->free(); \r\n\tAbiDAO::Disconnect_abi($mysqli);\r\n\t\r\n\treturn $dataActivite;\r\n \r\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": "fa12d91e9349fafc5fadd2869e01afe7", "score": "0.81538695", "text": "public function show(Resource $resource) {\n //\n }", "title": "" }, { "docid": "364c14abc03f539e9a17828c2c3c5094", "score": "0.7142873", "text": "protected function makeDisplayFromResource()\n\t{\n\t\treturn $this->activeResource->makeDisplay();\n\t}", "title": "" }, { "docid": "c32c82f3c9f666d7ebd6a4a17c715dde", "score": "0.71033037", "text": "public function show(App\\Resource $resource){\n return $resource;\n }", "title": "" }, { "docid": "63ed4e18ae3ec83b0374866b78fa0cb2", "score": "0.69621414", "text": "public function show(Resources $resources)\n {\n //\n }", "title": "" }, { "docid": "028815e256d04884fbfd1abcd49553a0", "score": "0.6881821", "text": "public function show(ResourceInterface $resource)\n\t{\n if(Auth::user()->can('show', $resource)) {\n $variables = [];\n $variables['extends'] = Config::get('roles::extends');\n $variables['resource'] = $resource;\n $response = View::make('roles::resource.show', $variables);\n } else {\n $errors = new MessageBag();\n $errors->add('error', trans('roles::resource.show permission denied'));\n $response = Redirect::back()->withErrors($errors);\n }\n\n return $response;\n\t}", "title": "" }, { "docid": "72eb4a0f938598778f7d1bb6c9a7c01a", "score": "0.6460539", "text": "public function show(Res $res)\n {\n //\n }", "title": "" }, { "docid": "f9c75fc80c4e08207bdf6a688293bd30", "score": "0.64507407", "text": "public function actionDisplay() {\n global $mainframe, $user;\n if (!$user->isSuperAdmin()) {\n YiiMessage::raseNotice(\"Your account not have permission to visit page\");\n $this->redirect(Router::buildLink(\"cpanel\"));\n }\n $this->addIconToolbar(\"New\", Router::buildLink(\"users\",array('view'=>'resource','layout'=>'new')), \"new\");\n $this->addIconToolbar(\"Edit\", Router::buildLink(\"users\",array('view'=>'resource','layout'=>'edit')), \"edit\", 1, 1, \"Please select a item from the list to edit\"); \n $this->addIconToolbar(\"Publish\", Router::buildLink(\"users\",array('view'=>'resource','layout'=>'publish')), \"publish\");\n $this->addIconToolbar(\"Unpublish\", Router::buildLink(\"users\",array('view'=>'resource','layout'=>'unpublish')), \"unpublish\");\n $this->addIconToolbar(\"Delete\", Router::buildLink(\"users\",array('view'=>'resource','layout'=>'remove')), \"trash\", 1, 1, \"Please select a item from the list to Remove\"); \n $this->addBarTitle(\"Resource <small>[tree]</small>\", \"user\"); \n \n $model = Resource::getInstance();\n $items = $model->getItems();\n \n $this->render('default', array('items'=>$items));\n }", "title": "" }, { "docid": "9a30795d980babc94eaea5f358f9a346", "score": "0.6348493", "text": "public function view($id = null) {\n $resource = $this->resources[$id];\n $this->set(array('resource' => $resource, '_serialize' => 'resource'));\n }", "title": "" }, { "docid": "2fcca60eabc9fa263815bdb0af23227b", "score": "0.6310235", "text": "public function show($title)\n {\n $searchTerm = DB::table('searches')->where('query', '* '.$title)->first();\n if (isset($searchTerm)) $accesses = $searchTerm->accesses;\n $resource = Resource::where('title', '=', $title)->first();\n if (isset($resource)){\n return view('resources.show')\n ->with('title', $resource->title)\n ->with('body', $resource->body)\n ->with('accesses', $accesses); \n }\n else return \"resource not found\";\n }", "title": "" }, { "docid": "d88de1aa779e246b7fddebd9a98ba96d", "score": "0.6300392", "text": "public function resource($resource);", "title": "" }, { "docid": "5ff14c79a9b59fe32898fb8081a44d38", "score": "0.62861", "text": "public function show($id)\n {\n //abort('404');\n //$resource = Resource::find($id);\n\n // To throw an exception\n //$resource = Resource::findOrFail($id);\n $resource = Resource::find($id);\n if ( ! $resource) {\n // I think findOPrFail is equivalent\n abort(404); # @TODO Check what happens here and compare with the findOrFail\n }\n //dd($resource);\n return view('resources.show', compact('resource'));\n }", "title": "" }, { "docid": "3b18817b82995fa8322e3e648666dc69", "score": "0.62845415", "text": "public function show() {\n\t\tstatus_header(200);\n\t\t\n\t\tparent::show();\n\t}", "title": "" }, { "docid": "ba5a2c7902e0156425e3dea1470df9a3", "score": "0.6231386", "text": "public function show($id)\n {\n return \"This is show controller resource showing ID: \". $id;\n }", "title": "" }, { "docid": "9f4baef36bbd297dd8826a3cf4c65825", "score": "0.6228845", "text": "public function show($id)\n {\n $resource = Resource::findOrFail($id);\n $model = $resource;\n\n return view('backend.resources.show', compact('resource', 'model'));\n }", "title": "" }, { "docid": "6bca27d0e9ea5eb6ef16196ace65c00a", "score": "0.6185019", "text": "public function show($resource) {\n $id = $this->getUserIdByResource($resource);\n return $id ? $this->user->find($id) : $this->noSuchUserResponse();\n }", "title": "" }, { "docid": "cbf3bf22b6453f9015dd8d3552392655", "score": "0.6155763", "text": "protected function showResourceView($id)\n\t{\n\n\t\t$element = $this->getElements($id);\n\t\treturn Response::view('adm/IAS/element', array('data' => $element));\n\n\t}", "title": "" }, { "docid": "7ee4932d24e9f896454c46b5725bca09", "score": "0.61360765", "text": "public function resourceAction ()\n { \n $this->setRefer(); // Set auth referer\n \n $this->view->params = $this->_request->getParams(); // Pass params to view\n \n $resourceid = $this->_request->getParam('id'); // Get Article ID from params\n \n if (isset($resourceid)) : // If resource ID set continue\n \n\t\t // Setup Registry\n \t $registry = Zend_Registry::getInstance();\n \t\n \t // Get Article data\n \t $select = $registry->db->select()\n \t\t\t\t\t ->from(array('r' => 'resources'))\n\t\t\t\t \t\t ->join(array('c' => 'resources_categories'),'r.resource_category = c.rcat_id',array('c.rcat_title'))\n\t\t\t\t \t\t ->join(array('t' => 'resources_types'),'t.rtype_id = r.resource_type')\n\t\t\t\t \t\t ->join(array('b' => 'resources_brands'),'b.rbrand_id = r.resource_brand',array('b.rbrand_title','b.rbrand_id'))\n\t\t\t\t \t\t ->where('r.resource_status = ?','published')\n\t\t\t\t \t \t ->where('r.resource_id = ?',$resourceid)\n \t\t\t\t\t ->limit(1,0);\n\n \t // Set the data array\n\t\t $resourceArray = $registry->db->fetchall($select);\n\t\t\n\t\t if (count($resourceArray)) : // If resource exists\n\n // Pass Resource to View \n\t\t $this->view->resourceArray = $resourceArray[0];\n \n else : // Else redirect to 404 Error\n \n \t $this->_helper->layout->setLayout('main');\t \n $this->_forward('notfound','error','default');\n \n endif;\n \n $this->view->comment = NULL; // Reset the comment value\n \n if($this->_request->isPost()) // If form has been posted\n {\n if ($this->view->authenticated) // The user is authenticated\n {\n $options = array();\n\n $filters = array(\n \t\t\t'content' => array('StringTrim', 'StripTags')\n );\n\n $validators = array(\n 'content' => array(\n \t\t'presence' => 'required',\n \t\t'NotEmpty',\n \t\t\t'messages' => array(array( Zend_Validate_NotEmpty::IS_EMPTY => \"You did not enter a comment\"))\n ),\n );\n\n $input = new Zend_Filter_Input($filters, $validators, $_POST, $options);\n \n // setup database\n \t $registry = Zend_Registry::getInstance();\n\n if ($input->isValid()) // If the form input validates\n {\n // Set moderation variable\n if($this->view->resourceArray['resource_moderate'] == 'Y') :\n $approved = 'N';\n else :\n $approved = 'Y';\n endif;\n \n // Create our data array\n $data = array(\n \t'comment_type' => 'R',\n \t\t\t\t\t\t'comment_slave' => $this->view->resourceArray['resource_id'],\n \t\t\t\t\t\t'comment_approved' => $approved,\n \t\t\t'comment_content'\t=> $input->content,\n \t\t\t'comment_user'\t => $this->view->user->user_id,\n \t\t\t'comment_date'\t\t=> new Zend_Db_Expr('NOW()')\n );\n\n // Insert data into database\n $registry->db->insert('comments', $data);\n \n } else { // If input is invalid\n $this->view->messages = $input->getMessages(); // Pass Messages to view\n $this->view->comment = $_POST['content']; // Set value of message to match input\n }\n }\n }\n \n // Get Comments\n \t $select = $registry->db->select()\n \t\t\t\t\t ->from(array('c' => 'comments'),array('c.*'))\n\t\t\t\t \t\t ->join(array('u' => 'users'),'c.comment_user = u.user_id',array('u.user_alias','u.user_role'))\n\t\t\t\t \t\t ->where('comment_approved = ?','Y')\n\t\t\t\t \t\t ->where('comment_type = ?','R')\n\t\t\t\t \t\t ->where('comment_slave = ?',$resourceid)\n \t\t\t\t\t ->order('c.comment_date ASC');\n\n \t // Pass the comments to view\n\t\t $this->view->commentsArray = $registry->db->fetchall($select);\n\t\t\n\t\telse : // Else if Article ID not set redirect to 404 Error\n \n $this->_helper->layout->setLayout('main');\t \n $this->_forward('notfound','error','default');\n \n endif;\n }", "title": "" }, { "docid": "947c1c8f23ecc67503ddd9aaa8d0c053", "score": "0.6131235", "text": "public abstract function display(Response $response);", "title": "" }, { "docid": "d48eea5127e3c179d902a8be0b6f8468", "score": "0.6094903", "text": "public function show($id)\n {\n $resource = Resource::find($id);\n if (is_null($resource)) {\n return redirect()->route('resources.index');\n }\n return view(\n 'resources.show',\n ['resource' => $resource]\n );\n }", "title": "" }, { "docid": "15870f022600bd008a2dda714833e3a8", "score": "0.60690975", "text": "public function display() {\n\n\t\t$this->displayRequest();\n\t\tprint '<br /><br />';\n\t\t$this->displayResponse();\n\t}", "title": "" }, { "docid": "2c4681f3d2ea72046a4a8fbabafd2fda", "score": "0.60642564", "text": "public function viewResource($slug)\n {\n if ($resource = Resource::findBySlug($slug)) {\n // No se utiliza el metodo each() por que se trata de un solo recurso, no es necesario hacer un recorrido.\n $resource->category;\n $resource->tags;\n $resource->book;\n\n $ay_tags = $resource->tags;\n\n $actual_link = 'http://'.$_SERVER['HTTP_HOST'].'/resources/'.$slug;\n\n return view('front.resource')\n ->with('resource', $resource)\n ->with('ay_tags', $ay_tags)\n ->with('actual_link', $actual_link);\n }\n else {\n abort(404);\n }\n }", "title": "" }, { "docid": "f1919612984d797496fb91a1df6bfc28", "score": "0.60360175", "text": "public function show(Resident $resident)\n {\n //\n }", "title": "" }, { "docid": "ddc28327288006b3d29c6bdc8761ca44", "score": "0.598783", "text": "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "title": "" }, { "docid": "d091fe2536049092c575a390aa36ed46", "score": "0.5972", "text": "public function display()\n {\n switch ($this->platform->getPost('section')) {\n case 'download':\n $this->downloadAction();\n break;\n \n case 'remove_backup':\n $this->deleteBackupsAction();\n break;\n \n case 'backup_note':\n $this->updateBackupNoteAction();\n break;\n \n case 'restore_db':\n $this->restoreDbAction();\n break;\n }\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "53013b6882d008888ea7afca1b751f49", "score": "0.5934595", "text": "function render_individual_resource_page($v, $url){\n\tglobal $wpdb;\n\n\t// specify the template file to use\n\t$v->template = 'resource';\n\n\t// include the helper\n\trequire_once('helper.php');\n\n\t// create a resource object\n\t$resource = new en_Resource();\n\n\t// determine the slug, load it into the object\n\t$uri = $_SERVER['REQUEST_URI'];\n\t$slug = substr($uri, 11);\n\t$end = strrpos($slug, '/');\n\t$end = ($end ? $end : strrpos($slug, '.'));\n\tif($end){\n\t\t$slug = substr($slug, 0, $end);\n\t}\n\t$resource->slug = $slug;\n\n\t// load the resource data from the database\n\t$resource->load();\n\n\t// check that such a resource exists\n\t$v->body = '';\n\t$v->title = 'No resource Found';\n\tif($resource->name != '' && $resource->status == 'publish'){\n\t\t// load the name\n\t\t$v->title = $resource->name;\n\t}\n\n\t$_SESSION['en_resource'] = $resource;\n}", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "0d00cd39f55015604f557b3b7ebf1eca", "score": "0.5876515", "text": "public function show($id)\n\t{\n\t\t$resources = $this->resourcesRepository->find($id);\n\n\t\tif(empty($resources))\n\t\t{\n\t\t\tFlash::error('Resources not found');\n\n\t\t\treturn redirect(route('resources.index'));\n\t\t}\n\n\t\treturn view('resources.show')->with('resources', $resources);\n\t}", "title": "" }, { "docid": "d752fd3972b546ef194ae14ab221ca30", "score": "0.58688277", "text": "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "62de9bb9e8014b878862d1b3e9dfd27c", "score": "0.5865432", "text": "public function showResourcesPage()\n {\n $mTitle = $this->_mTitle;\n $title = trans(\"admin.resources\");\n $data = ['mTitle', 'title'];\n return view('home.resources')\n ->with(compact($data)); \n }", "title": "" }, { "docid": "7c25d9175a0b8f2be9a3f3b0c4a64c29", "score": "0.5860501", "text": "public function showAction()\r\n\t{\r\n\t\t$this->loadLayout()->renderLayout();\r\n\t}", "title": "" }, { "docid": "e1c49860e31b5bc5d738e44a442665de", "score": "0.58473253", "text": "public function displayAction()\n\t{\t// Look up policy with the given url parameters\n\t\t$policy = $this->db->getPolicy($this->_getParam('page'));\n\t\t$this->view->policy = $policy;\n\t}", "title": "" }, { "docid": "5a5e25617e1019b0143435d1dcee143b", "score": "0.58304006", "text": "public function edit(Resource $resource) {\n $resource = Resource::find($resource->id);\n return view('resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "305f64db85d64f68019d2fadcd0a85d2", "score": "0.58012545", "text": "public function show()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "55ebb313f26c5900b8cfe594dfa4e5eb", "score": "0.57751614", "text": "public function display() {\n\t\techo $this->render();\n\t}", "title": "" }, { "docid": "4de642a6f69c75724da5f78bd193b43e", "score": "0.57721317", "text": "public function display($name)\n {\n echo $this->fetch($name);\n }", "title": "" }, { "docid": "34a8fc606e2e5031dcfc0be2c4eda232", "score": "0.5769309", "text": "function resource($resource_id)\n\t{\n\t\t# Call model function to get resource record\n\t\t$q = $this -> ResourceDB_model -> get_resource_detail($resource_id);\n\t\t# Check that it exists (in case of URL editing in the browser)\n\t\tif ($q -> num_rows() == 0) \n\t\t{ \n\t\t\t$data['title'] = \"No such resource\"; $data['heading'] = \"Resource not found\"; \n\t\t\t$data['error'] = \"There is no resource with the ID $resource_id. Tough mazoomas.\n\t\t\t\t\t\t\t\tPlease choose another resource to edit.\"; \n\t\t\t$data['message'] = \"\";\n\t\t\t$this -> load -> view('resourcedb/database_error_view', $data);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$resource_title = $q -> row() -> title;\n\t\t\t$data['title'] = \"Edit resource \" . $resource_title;\n\t\t\t$data['heading'] = \"Edit resource \" . $resource_title;\n\t\t\t$data['resource__id'] = $resource_id; \n\t\t\t\n\t\t\t# Get the user ID to save as record editor\n\t\t\t$user_id = $this->ion_auth->user()->row()-> id;\n\t\t\t# Set messages for the view file\n\t\t\t$data['title'] = 'Global health repository: edit resource';\n\t\t\t$data['heading'] = 'Edit resource';\n\t\t\t# Set user message and error as blanks, to prevent PHP warning if one or t'other isn't set\n\t\t\t$data['message'] = \"\"; $data['error'] = \"\";\n\t\t\t\n\t\t\t# Populate form elements.\n\t\t\t# Get full resource record first \n\t\t\t$data['resource_detail_query'] = $this -> ResourceDB_model -> get_resource_detail($resource_id);\n\n\t\t\t# -- SUBJECTS ---\n\t\t\t# Get all subjects in the database, to display in the 'subjects' <div> in the view\n\t\t\t# False param indicates that all subjects should be returned, not just those 'in use'\n\t\t\t# by existing resources\n\t\t\t$data['subjects_query'] = $this -> ResourceDB_model -> get_subjects(false);\n\t\t\t# Get subjects attached to this resource, if any. These will be selected in the view\n\t\t\t$attached_subjects_query = $this -> ResourceDB_model -> get_resource_subjects($resource_id);\n\t\t\t$old_subjects_ary = array();\n\t\t\t# Create 2-D array, subject IDs as keys, subject titles as values\n\t\t\tforeach ($attached_subjects_query -> result() as $row)\n\t\t\t{\n\t\t\t\t$old_subjects_ary[$row -> id] = $row -> title;\n\t\t\t}\n\t\t\t# Pass currently attached subjects to the view page\n\t\t\t$data['attached_subjects_ary'] = $old_subjects_ary;\t\t\t\n\t\t\t\n\t\t\t# -- ORIGINS --\n\t\t\t$data['origins_query'] = $this -> ResourceDB_model -> get_origins();\n\n\t\t\t# -- RESOURCE TYPES ---\n\t\t\t$data['resource_types_query'] = $this -> ResourceDB_model -> get_resource_types();\n\t\t\t\n\t\t\t# -- TAGS --\n\t\t\t# Get all tags attached to this resource, both to use in the view and in this script\n\t\t\t# Note: only tag names stored as IDs aren't used in this script or the view\n\t\t\t$tags_query = $this -> ResourceDB_model -> get_resource_tags($resource_id);\n\t\t\t$old_tags_ary = array();\n\t\t\tforeach ($tags_query -> result() as $row)\n\t\t\t{\n\t\t\t\t$old_tags_ary[] = $row -> name;\t\n\t\t\t}\n\t\t\t$data['tags_ary'] = $old_tags_ary; \n\t\t\t\n\t\t\t# ==== FORM VALIDATION ======\n\t\t\t# Note that set_value() to repopulate the form *only* works on elements with \n\t\t\t# validation rules, hence a rul for all elements below. See CI Forum thread at:\n\t\t\t# http://codeigniter.com/forums/viewthread/170221/\n\n\t\t\t# NB: The callback function to check the title has the existing title as a 'parameter' in \n\t\t\t# sqare brackets, as just checking for the title existing would always \n\t\t\t# return true - we need to check that the edited title exists or not. \n\t\t\t$this->form_validation->set_rules('title', 'Title', \"required|trim|xss_clean|callback_title_check[$resource_title]\");\n\t\t\t$this->form_validation->set_rules('url', 'URL', 'required|trim|xss_clean|prep_url');\n\t\t\t$this->form_validation->set_rules('description', 'Description', 'required|xss_clean');\n\t\t\t$this->form_validation->set_rules('tags', 'Tags', 'trim|xss_clean');\n\t\t\t$this->form_validation->set_rules('creator', 'Creator', 'trim|xss_clean');\n\t\t\t$this->form_validation->set_rules('rights', 'Rights', 'trim|xss_clean');\t\t\n\t\t\t$this->form_validation->set_rules('notes', 'Notes', 'trim|xss_clean');\t\t\n\t\t\t\n\t\t\t# If the form doesn't validate, or indeed hasn't even been submitted, \n\t\t\t# (re)populate with user data\n\t\t\tif ($this->form_validation->run() == FALSE)\n\t\t\t{\n\t\t\t\t$data ['error'] = validation_errors();\t\n\t\t\t\t$this -> load -> view('resourcedb/editview', $data);\n\n\t\t\t}\n\t\t\t# If form validates, update record\n\t\t\telse\n\t\t\t{\n\t\t\t\t# Get form values for fields in RESOURCE table\n\t\t\t\t# What's the current date and time? Use the date helper - \n\t\t\t\t# now() returns current time as Unix timestamp, unix_to_human\n\t\t\t\t# converts it to YYYY-MM-DD HH:MM:SS which mySQL needs for the \n\t\t\t\t# DATETIME data type\n\t\t\t\t$now = \tunix_to_human(now(), TRUE, 'eu'); // Euro time with seconds\n\t\n\t\t\t\t$record_data = array (\n\t\t\t\t\t\t\t\t'title' => $_POST['title'], \n\t\t\t\t\t\t\t\t'url' => $_POST['url'], \n\t\t\t\t\t\t\t\t'description' => $_POST['description'], \n\t\t\t\t\t\t\t\t'type' => $_POST['type'], \n\t\t\t\t\t\t\t\t'creator' => $_POST['creator'], \n\t\t\t\t\t\t\t\t'source' => $_POST['source'], \n\t\t\t\t\t\t\t\t'rights' => $_POST['rights'], \n\t\t\t\t\t\t\t\t'restricted' => $_POST['restricted'], \n\t\t\t\t\t\t\t\t'visible' => $_POST['visible'], \n\t\t\t\t\t\t\t\t'metadata_created' => $now, \n\t\t\t\t\t\t\t\t'metadata_modified' => $now, \n\t\t\t\t\t\t\t\t'metadata_author' => $user_id, \n\t\t\t\t\t\t\t\t'notes' => $_POST['notes']\t\t\t\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t# Run update query in model\n\t\t\t\t$this -> Edit_model -> update_resource($record_data, $resource_id);\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t# ======== JUNCTION TABLES ==========\n\t\t\t\t# Now get form values for fields using junction tables\t\t\t\t\n\t\n\t\t\t\t# TAGS\n\t\t\t\t# First, get tag(s) user's inserted. Get cleaned field text...\n\t\t\t\t$tags = $this -> security -> xss_clean($_POST['tags']);\n\t\t\t\t# ...then split string by the semicolon delimiter...\n\t\t\t\t$tags_ary = explode(';', $tags);\n\t\t\t\t# ...then remove any duplicate tags...\t\t\t\n\t\t\t\t$tags_ary = array_unique($tags_ary);\n\t\t\t\t# ...then see if the user's removed any existing tags.\n\t\t\t\t$detached_tags_ary = $this -> compare_tags($old_tags_ary, $tags_ary);\n\t\t\t\t# Detach the tags removed from reource \n\t\t\t\t# (deleting rows in the RESOURCE_KEYWORD junction table)\n\t\t\t\tforeach($detached_tags_ary as $key => $val)\n\t\t\t\t{\n\t\t\t\t\t# Get id of tag to detach\n\t\t\t\t\t$q = $this -> ResourceDB_model -> get_tag_id($val);\n\t\t\t\t\t$tag_id = $q -> row() -> keyword_num;\n\t\t\t\t\t$this -> Edit_model -> detach_tag($resource_id, $tag_id);\n\t\t\t\t}\n\t\t\t\t# Go through user-entered tags and attach to the resource, \n\t\t\t\t# adding new tags to KEYWORDS if not already exist\n\t\t\t\t$this -> attach_tags($tags_ary, $resource_id);\n\t\t\t\t\n\t\t\t\t# SUBJECTS\n\t\t\t\t# The input form lists subjects as a series of checkboxes with the name\n\t\t\t\t# subjects[] which generates an array in POST, so go through that array\n\t\t\t\t# and 'attach' subjects to the resource in RESOURCE_SUBJECT junction table\n\t\t\t\t# First, check that any subjects are checked at all, and if not just create an \n\t\t\t\t# empty array so as not to generate a runtime error\n\t\t\t\tif (isset($_POST['subjects']))\n\t\t\t\t{ $subjects_id_ary = $_POST['subjects']; }\n\t\t\t\telse\n\t\t\t\t{ $subjects_id_ary = array(); }\n\t\t\t\t# Get an array of the IDs of subjects to detach\n\t\t\t\t$detached_subjects_id_ary = $this -> compare_subjects($old_subjects_ary, $subjects_id_ary);\n\t\t\t\tforeach ($detached_subjects_id_ary as $key => $val)\n\t\t\t\t{\n\t\t\t\t\t$this -> Edit_model -> detach_subject($resource_id, $val);\t\n\t\t\t\t}\n\n\t\t\t\tforeach ($subjects_id_ary as $val)\n\t\t\t\t{\n\t\t\t\t\t# The model function checks if subject already attached\n\t\t\t\t\t$this -> Edit_model -> attach_subject($resource_id, $val);\t\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t\t# Set messages etc for the result page\n\t\t\t\t$data['title'] = \"Edit resource: result\";\n\t\t\t\t$data['heading'] = \"Edit resource: result\";\n\t\t\t\t$data['resource_title'] = $record_data['title'];\n\t\t\t\t$data['resource_id'] = $resource_id; \n\t\t\t\t$data['message'] = 'Record edited ok'; \t\n\t\t\t\t# Load results page with data array\n\t\t\t\t$this->load->view('resourcedb/edit_result_view', $data);\n\t\t\t} // end if validates\n\t\t} // end else \n\t\t\n\t}", "title": "" }, { "docid": "64ca047c763cbf564dd5de6f46e00c8a", "score": "0.5757105", "text": "public function display(){}", "title": "" }, { "docid": "428d435450a183e9f2b1cf67fe4ca1ee", "score": "0.5746211", "text": "public function showAction($id)\n {\n }", "title": "" }, { "docid": "25fef2b3e221da4874ce751e7620e1b8", "score": "0.57376534", "text": "public function show($id)\n {\t\n\t\t//\n \n }", "title": "" }, { "docid": "8f15cdd2f287675d36c7b7df028043ec", "score": "0.5736634", "text": "public function show($id)\n\t{\n\t//\n\t}", "title": "" }, { "docid": "dbfb7ac40503919a18ba680b317c5bcf", "score": "0.57300025", "text": "function show()\r\n\t{\r\n\t\tparent::display();\r\n\t}", "title": "" }, { "docid": "6ec9b736dc660b1af85b3d3e6b5c2891", "score": "0.5728069", "text": "public function showAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('FklFranklinBundle:Intervention')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Intervention entity.');\n }\n\n return $this->render('FklFranklinBundle:Intervention:show.html.twig', array(\n 'entity' => $entity,\n ));\n }", "title": "" }, { "docid": "20397e06b8673db8692c5f84120c3011", "score": "0.5724891", "text": "public function show()\n\t{\n\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": "c422e600117f23ecb3e910d02cd71439", "score": "0.5719182", "text": "public function show($id)\n\t{ \n\t\t//\n\t}", "title": "" }, { "docid": "7464e9c5980c37f2e71c965980844f2f", "score": "0.57157016", "text": "public function display() {\r\n \r\n function pec_display($pecio, $template_path_c) {\r\n \tinclude($template_path_c);\r\n }\r\n \r\n \t// here we need to get the canonicalized template path, so that we can include it with `include()`\r\n $template_path_c = $this->template_resource->get('template')->get_directory_path();\r\n \r\n // that's the \"normal\" path to the template directory\r\n $template_path = $this->template_resource->get('template')->get_directory_path(false);\r\n \r\n $this->template_resource->set('template_path', $template_path);\r\n $this->template_resource->set('template_path_c', $template_path_c);\r\n \r\n $pecio = $this->template_resource;\r\n pec_display($pecio, $template_path_c . $this->template_file);\r\n }", "title": "" }, { "docid": "39d7fb3e638fbdb7af4616a9e66a7c1e", "score": "0.571459", "text": "public function display() {\n $id = $_GET['value'];\n $product = $this->productManager->findOne($id);\n $page = 'product';\n require('./View/default.php');\n }", "title": "" }, { "docid": "e5b68899adbea6a73109d8e4dd1a0aad", "score": "0.5703109", "text": "public function showAction() {\r\n // Load View template\r\n $actorModel = new ActorModel(\"actors\");\r\n $actor = $actorModel->getActor(\"id\");\r\n include CURR_VIEW_PATH . \"actors\". DS . \"show.php\";\r\n // actorDB/application/views/actors/show.php;\r\n }", "title": "" }, { "docid": "fa1c2eb41c95d94a4e3d5fbf93d1fb39", "score": "0.5700314", "text": "public function show($id)\n\t{\n\t\t$user = Sentry::getUser();\n\t\t$request = $user->requests()->with('file')->where('id', $id)->first();\n\n\t\tif (! $request) return App::abort(404, \"Request resource [$id] not found.\");\n\n\t\t$file = $request->file()->first();\n\n\t\t$this->layout->content = View::make('my.requests.show')\n\t\t\t\t\t\t\t\t\t->with('user', $user)\n\t\t\t\t\t\t\t\t\t->with('request', $request)\n\t\t\t\t\t\t\t\t\t->with('file', $file);\n\t}", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "7580b6a8a70ffcf0c85b9c5fd2d164c8", "score": "0.56878597", "text": "public function show($id)\n\t{\t\n\t\t\n\t}", "title": "" }, { "docid": "8fb8368b4d32374cf0802714864ca045", "score": "0.5686805", "text": "public function show(Spec $spec)\n {\n //\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": "" }, { "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": "" } ]